Skip to main content

channels

Creates, updates, deletes, gets or lists a channels resource.

Overview

Namechannels
TypeResource
Idaws.kafka.channels

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
channel_arnstringThe Amazon Resource Name (ARN) that uniquely identifies the channel.
channel_namestringThe name of the channel.
cluster_operation_arnstringThe Amazon Resource Name (ARN) of the in-flight cluster operation. Returned only while the channel is in CREATING, UPDATING, or DELETING.
creation_timestring (date-time)The time when the channel was created.
destination_typestringThe type of destination configured for the channel. (ICEBERG, S3)
encryption_configurationobjectThe AWS KMS encryption configuration applied to data at rest.
iceberg_destination_configurationobjectConfiguration of an Apache Iceberg destination for a channel.
logging_infoobjectConfiguration for the destinations to which the channel publishes operational logs.
s3_destination_configurationobjectConfiguration of an Amazon S3 destination for a channel.
state_infoobjectAdditional context for the current channel state, populated when the channel is in FAILED.
statusstringThe current lifecycle state of the channel. (CREATING, ACTIVE, UPDATING, DELETING, FAILED, SUSPENDING, SUSPENDED)
tagsobjectThe tags attached to the channel.
topic_configuration_listarrayThe list of topic configurations for the channel.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_channelselectchannel_arn, cluster_arn, regionReturns the current configuration and state of a channel.
list_channelsselectcluster_arn, regionmaxResults, nextToken, topicNameFilterReturns the list of channels in a cluster.
create_channelinsertcluster_arn, region, ChannelName, TopicConfigurationListCreates a Channel that streams records from an Amazon MSK Express cluster topic to Amazon S3 or Apache Iceberg.
update_channelupdatechannel_arn, cluster_arn, regionUpdates the destination configuration of an existing channel. Exactly one of icebergDestinationUpdate or s3DestinationUpdate must be supplied.
delete_channeldeletechannel_arn, cluster_arn, regionDeletes the channel specified by channelArn from the cluster specified by clusterArn. The channel transitions through DELETING and is removed when the asynchronous delete completes.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
channel_arnstringThe Amazon Resource Name (ARN) that uniquely identifies the channel.
cluster_arnstringThe Amazon Resource Name (ARN) that uniquely identifies the cluster.
regionstringAWS region (default: us-east-1)
maxResultsintegerMaximum number of channels to return in a single response.
nextTokenstringIf the response of ListChannels is truncated, it returns a nextToken in the response. This nextToken should be sent in the subsequent request to ListChannels.
topicNameFilterstringFilters results to channels whose topic name matches the specified value.

SELECT examples

Returns the current configuration and state of a channel.

SELECT
channel_arn,
channel_name,
cluster_operation_arn,
creation_time,
destination_type,
encryption_configuration,
iceberg_destination_configuration,
logging_info,
s3_destination_configuration,
state_info,
status,
tags,
topic_configuration_list
FROM aws.kafka.channels
WHERE channel_arn = '{{ channel_arn }}' -- required
AND cluster_arn = '{{ cluster_arn }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a Channel that streams records from an Amazon MSK Express cluster topic to Amazon S3 or Apache Iceberg.

INSERT INTO aws.kafka.channels (
ChannelName,
EncryptionConfiguration,
IcebergDestinationConfiguration,
S3DestinationConfiguration,
Tags,
TopicConfigurationList,
LoggingInfo,
cluster_arn,
region
)
SELECT
'{{ ChannelName }}' /* required */,
'{{ EncryptionConfiguration }}',
'{{ IcebergDestinationConfiguration }}',
'{{ S3DestinationConfiguration }}',
'{{ Tags }}',
'{{ TopicConfigurationList }}' /* required */,
'{{ LoggingInfo }}',
'{{ cluster_arn }}',
'{{ region }}'
RETURNING
channel_arn,
cluster_operation_arn
;

UPDATE examples

Updates the destination configuration of an existing channel. Exactly one of icebergDestinationUpdate or s3DestinationUpdate must be supplied.

UPDATE aws.kafka.channels
SET
IcebergDestinationUpdate = '{{ IcebergDestinationUpdate }}',
S3DestinationUpdate = '{{ S3DestinationUpdate }}'
WHERE
channel_arn = '{{ channel_arn }}' --required
AND cluster_arn = '{{ cluster_arn }}' --required
AND region = '{{ region }}' --required
RETURNING
channel_arn,
cluster_operation_arn;

DELETE examples

Deletes the channel specified by channelArn from the cluster specified by clusterArn. The channel transitions through DELETING and is removed when the asynchronous delete completes.

DELETE FROM aws.kafka.channels
WHERE channel_arn = '{{ channel_arn }}' --required
AND cluster_arn = '{{ cluster_arn }}' --required
AND region = '{{ region }}' --required
;