create_channel
async
¶
create_channel(
cluster_arn: __string,
*,
config_overrides: Optional[AsyncKafkaClientConfig] = None,
channel_name: Optional[__string] = None,
encryption_configuration: Optional[EncryptionConfiguration] = None,
iceberg_destination_configuration: Optional[IcebergDestinationConfiguration] = None,
s3_destination_configuration: Optional[S3DestinationConfiguration] = None,
tags: Optional[__mapOf__string] = None,
topic_configuration_list: Optional[__listOfTopicConfiguration] = None,
logging_info: Optional[ChannelLoggingInfo] = None,
) -> CreateChannelResponse
Creates a Channel that streams records from an Amazon MSK Express cluster topic to Amazon S3 or Apache Iceberg.
Parameters:
-
channel_name(Optional[__string], default:None) –The name of the channel. Must be unique within the cluster.
-
cluster_arn(__string) –The Amazon Resource Name (ARN) that uniquely identifies the cluster.
-
encryption_configuration(Optional[EncryptionConfiguration], default:None) –The encryption configuration applied to the channel.
-
iceberg_destination_configuration(Optional[IcebergDestinationConfiguration], default:None) –The Apache Iceberg destination for the channel. Mutually exclusive with s3DestinationConfiguration.
-
s3_destination_configuration(Optional[S3DestinationConfiguration], default:None) –The Amazon S3 destination for the channel. Mutually exclusive with icebergDestinationConfiguration.
-
tags(Optional[__mapOf__string], default:None) –The tags attached to the channel.
-
topic_configuration_list(Optional[__listOfTopicConfiguration], default:None) –The list of topic configurations for the channel. Currently exactly one topic must be specified.
-
logging_info(Optional[ChannelLoggingInfo], default:None) –The destinations to which the channel publishes operational logs.
Raises:
-
BadRequestException–Returns information about an error.
-
ConflictException–Returns information about an error.
-
ForbiddenException–Returns information about an error.
-
InternalServerErrorException–Returns information about an error.
-
NotFoundException–Returns information about an error.
-
ServiceUnavailableException–Returns information about an error.
-
TooManyRequestsException–Returns information about an error.
-
UnauthorizedException–Returns information about an error.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_kafka/_services/async_kafka.py
440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 | |