Returns the status and progress of a topic reassignment operation.
Parameters:
-
cluster_arn
(__string)
–
The Amazon Resource Name (ARN) of the cluster.
-
topic_reassignment_operation_arn
(__string)
–
The Amazon Resource Name (ARN) of the topic reassignment operation.
Raises:
Source code in docs_src/capo_kafka/_services/kafka.py
| def describe_topic_reassignment(
self,
cluster_arn: "capo_kafka.types.__string.__string",
topic_reassignment_operation_arn: "capo_kafka.types.__string.__string",
*,
config_overrides: Optional[KafkaClientConfig] = None,
) -> "capo_kafka.types.describe_topic_reassignment_response.DescribeTopicReassignmentResponse":
"""<p>Returns the status and progress of a topic reassignment operation.</p>
Args:
cluster_arn: <p>The Amazon Resource Name (ARN) of the cluster.</p>
topic_reassignment_operation_arn: <p>The Amazon Resource Name (ARN) of the topic reassignment operation.</p>
Raises:
capo_kafka.errors.bad_request_exception.BadRequestException: <p>Returns information about an error.</p>
capo_kafka.errors.forbidden_exception.ForbiddenException: <p>Returns information about an error.</p>
capo_kafka.errors.internal_server_error_exception.InternalServerErrorException: <p>Returns information about an error.</p>
capo_kafka.errors.not_found_exception.NotFoundException: <p>Returns information about an error.</p>
capo_kafka.errors.service_unavailable_exception.ServiceUnavailableException: <p>Returns information about an error.</p>
capo_kafka.errors.too_many_requests_exception.TooManyRequestsException: <p>Returns information about an error.</p>
capo_kafka.errors.unauthorized_exception.UnauthorizedException: <p>Returns information about an error.</p>
capo_kafka.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_kafka.types.describe_topic_reassignment_request.DescribeTopicReassignmentRequest]",
) -> OperationResponse[
"capo_kafka.types.describe_topic_reassignment_response.DescribeTopicReassignmentResponse"
]:
import capo_kafka._operations.kafka.describe_topic_reassignment
output, http_response = (
capo_kafka._operations.kafka.describe_topic_reassignment.describe_topic_reassignment(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeTopicReassignment")
)
input_: capo_kafka.types.describe_topic_reassignment_request.DescribeTopicReassignmentRequest = {
"cluster_arn": cluster_arn,
"topic_reassignment_operation_arn": topic_reassignment_operation_arn,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|