Skip to content

get_operation_detail

get_operation_detail(
    operation_id: OperationId,
    *,
    config_overrides: Optional[Route53DomainsClientConfig] = 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/route53_domains.py
def get_operation_detail(
    self,
    operation_id: "capo_route_53_domains.types.operation_id.OperationId",
    *,
    config_overrides: Optional[Route53DomainsClientConfig] = 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.
    """

    def _handler(
        req: "OperationRequest[capo_route_53_domains.types.get_operation_detail_request.GetOperationDetailRequest]",
    ) -> OperationResponse[
        "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 = (
            capo_route_53_domains._operations.route53_domains_v20140515.get_operation_detail.get_operation_detail(
                req.options, req.input
            )
        )
        return OperationResponse(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 = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output