update_broker_type
async
¶
update_broker_type(
cluster_arn: __string,
*,
config_overrides: Optional[AsyncKafkaClientConfig] = None,
current_version: Optional[__string] = None,
target_instance_type: Optional[__string] = None,
topic_reassignment: Optional[TopicReassignment] = None,
) -> UpdateBrokerTypeResponse
Updates EC2 instance type.
Parameters:
-
cluster_arn(__string) –The Amazon Resource Name (ARN) that uniquely identifies the cluster.
-
current_version(Optional[__string], default:None) –The cluster version that you want to change. After this operation completes successfully, the cluster will have a new version.
-
target_instance_type(Optional[__string], default:None) –The type of Amazon EC2 instances to use for Kafka brokers. For in-place upgrades to Express, use the composite format to initiate mixed mode, the Express instance type to complete the upgrade, or the Standard instance type to rollback.
-
topic_reassignment(Optional[TopicReassignment], default:None) –Controls automatic topic reassignment when entering mixed broker mode. When set to AUTO, MSK automatically reassigns all topics to the target broker type after adding new brokers. When set to MANUAL (default), customers manage topic reassignment using the StartTopicReassignment API. Only valid when targetInstanceType is a composite mixed-mode value. Must be set to MANUAL before completing the upgrade or rolling back.
Raises:
-
BadRequestException–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
4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 | |