Skip to content

describe_cluster_operation async

describe_cluster_operation(
    cluster_operation_arn: __string,
    *,
    config_overrides: Optional[AsyncKafkaClientConfig] = None,
) -> DescribeClusterOperationResponse

Returns a description of the cluster operation specified by the ARN.

Parameters:

  • cluster_operation_arn (__string) –

    The Amazon Resource Name (ARN) that uniquely identifies the MSK cluster operation.

Raises:

Source code in docs_src/capo_kafka/_services/async_kafka.py
async def describe_cluster_operation(
    self,
    cluster_operation_arn: "capo_kafka.types.__string.__string",
    *,
    config_overrides: Optional[AsyncKafkaClientConfig] = None,
) -> "capo_kafka.types.describe_cluster_operation_response.DescribeClusterOperationResponse":
    """<p>Returns a description of the cluster operation specified by the ARN.</p>

    Args:
        cluster_operation_arn: <p>The Amazon Resource Name (ARN) that uniquely identifies the MSK cluster 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.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.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_kafka.types.describe_cluster_operation_request.DescribeClusterOperationRequest]",
    ) -> AsyncOperationResponse[
        "capo_kafka.types.describe_cluster_operation_response.DescribeClusterOperationResponse"
    ]:
        import capo_kafka._operations.kafka.describe_cluster_operation

        (
            output,
            http_response,
        ) = await capo_kafka._operations.kafka.describe_cluster_operation.async_describe_cluster_operation(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeClusterOperation")
    )
    input_: capo_kafka.types.describe_cluster_operation_request.DescribeClusterOperationRequest = {
        "cluster_operation_arn": cluster_operation_arn
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output