create_cluster
async
¶
create_cluster(
*,
config_overrides: Optional[AsyncKafkaClientConfig] = None,
broker_node_group_info: Optional[BrokerNodeGroupInfo] = None,
rebalancing: Optional[Rebalancing] = None,
client_authentication: Optional[ClientAuthentication] = None,
cluster_name: Optional[__stringMin1Max64] = None,
configuration_info: Optional[ConfigurationInfo] = None,
encryption_info: Optional[EncryptionInfo] = None,
enhanced_monitoring: Optional[EnhancedMonitoring] = None,
open_monitoring: Optional[OpenMonitoringInfo] = None,
kafka_version: Optional[__stringMin1Max128] = None,
logging_info: Optional[LoggingInfo] = None,
number_of_broker_nodes: Optional[__integerMin1Max15] = None,
tags: Optional[__mapOf__string] = None,
storage_mode: Optional[StorageMode] = None,
) -> CreateClusterResponse
Creates a new MSK cluster.
Parameters:
-
broker_node_group_info(Optional[BrokerNodeGroupInfo], default:None) –Information about the broker nodes in the cluster.
-
rebalancing(Optional[Rebalancing], default:None) –Specifies if intelligent rebalancing should be turned on for the new MSK Provisioned cluster with Express brokers. By default, intelligent rebalancing status is ACTIVE for all new clusters.
-
client_authentication(Optional[ClientAuthentication], default:None) –Includes all client authentication related information.
-
cluster_name(Optional[__stringMin1Max64], default:None) –The name of the cluster.
-
configuration_info(Optional[ConfigurationInfo], default:None) –Represents the configuration that you want MSK to use for the brokers in a cluster.
-
encryption_info(Optional[EncryptionInfo], default:None) –Includes all encryption-related information.
-
enhanced_monitoring(Optional[EnhancedMonitoring], default:None) –Specifies the level of monitoring for the MSK cluster. The possible values are DEFAULT, PER_BROKER, PER_TOPIC_PER_BROKER, and PER_TOPIC_PER_PARTITION.
-
open_monitoring(Optional[OpenMonitoringInfo], default:None) –The settings for open monitoring.
-
kafka_version(Optional[__stringMin1Max128], default:None) –The version of Apache Kafka.
-
number_of_broker_nodes(Optional[__integerMin1Max15], default:None) –The number of broker nodes in the cluster.
-
tags(Optional[__mapOf__string], default:None) –Create tags when creating the cluster.
-
storage_mode(Optional[StorageMode], default:None) –This controls storage mode for supported storage tiers.
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.
-
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
533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 | |