start_topic_reassignment
async
¶
start_topic_reassignment(
cluster_arn: __string,
*,
config_overrides: Optional[AsyncKafkaClientConfig] = None,
client_token: Optional[__stringMin1Max64] = None,
target_instance_type: Optional[__stringMin1Max256] = None,
topics_to_exclude: Optional[__listOf__stringMin1Max256] = None,
topics_to_include: Optional[__listOf__stringMin1Max256] = None,
) -> StartTopicReassignmentResponse
Initiates topic partition reassignment between broker types in a mixed-mode cluster.
Parameters:
-
client_token(Optional[__stringMin1Max64], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request with the same client token within 24 hours, the API returns the original response without creating a duplicate operation.
-
cluster_arn(__string) –The Amazon Resource Name (ARN) of the cluster.
-
target_instance_type(Optional[__stringMin1Max256], default:None) –Instance type of the target brokers. Must exist in the cluster. Use Express instance type (e.g., express.m7g.large) for Standard-to-Express migration. Use Standard instance type (e.g., kafka.m7g.large) to move topics back to Standard.
-
topics_to_exclude(Optional[__listOf__stringMin1Max256], default:None) –Regex patterns for topics to exclude from reassignment. Evaluated after include patterns.
-
topics_to_include(Optional[__listOf__stringMin1Max256], default:None) –Regex patterns for topics to reassign. Use ['.*'] for all topics. Max 10 patterns.
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
4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 | |