Skip to content

get_operation_detail async

get_operation_detail(
    operation_id: OperationId,
    *,
    config_overrides: Optional[AsyncRoute53DomainsClientConfig] = None,
) -> GetOperationDetailResponse

This operation returns the current status of an operation that is not completed.

Parameters:

  • operation_id (OperationId) –

    The identifier for the operation for which you want to get the status. Route 53 returned the identifier in the response to the original request.

Raises:

  • InvalidInput –

    The requested item is not acceptable. For example, for APIs that accept a domain name, the request might specify a domain name that doesn't belong to the account that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount, the password might be invalid.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_route_53_domains/_services/async_route53_domains.py
async def get_operation_detail(
    self,
    operation_id: "capo_route_53_domains.types.operation_id.OperationId",
    *,
    config_overrides: Optional[AsyncRoute53DomainsClientConfig] = None,
) -> "capo_route_53_domains.types.get_operation_detail_response.GetOperationDetailResponse":
    """<p>This operation returns the current status of an operation that is not completed.</p>

    Args:
        operation_id: <p>The identifier for the operation for which you want to get the status. Route 53 returned the identifier in the response to the original request.</p>

    Raises:
        capo_route_53_domains.errors.invalid_input.InvalidInput: <p>The requested item is not acceptable. For example, for APIs that accept a domain name, the request might specify a domain name that doesn't belong to the account that submitted the request. For <code>AcceptDomainTransferFromAnotherAwsAccount</code>, the password might be invalid.</p>
        capo_route_53_domains.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_route_53_domains.types.get_operation_detail_request.GetOperationDetailRequest]",
    ) -> AsyncOperationResponse[
        "capo_route_53_domains.types.get_operation_detail_response.GetOperationDetailResponse"
    ]:
        import capo_route_53_domains._operations.route53_domains_v20140515.get_operation_detail

        (
            output,
            http_response,
        ) = await capo_route_53_domains._operations.route53_domains_v20140515.get_operation_detail.async_get_operation_detail(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetOperationDetail")
    )
    input_: capo_route_53_domains.types.get_operation_detail_request.GetOperationDetailRequest = {
        "operation_id": operation_id
    }

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