Skip to content

get_acme_external_account_binding_credentials async

get_acme_external_account_binding_credentials(
    acme_external_account_binding_arn: AcmeExternalAccountBindingArn,
    *,
    config_overrides: Optional[AsyncACMClientConfig] = None,
) -> GetAcmeExternalAccountBindingCredentialsResponse

Retrieves the key ID and MAC key credentials for an external account binding. These credentials are used by ACME clients during account registration to bind to the endpoint.

Parameters:

Raises:

Source code in docs_src/capo_acm/_services/async_acm.py
async def get_acme_external_account_binding_credentials(
    self,
    acme_external_account_binding_arn: "capo_acm.types.acme_external_account_binding_arn.AcmeExternalAccountBindingArn",
    *,
    config_overrides: Optional[AsyncACMClientConfig] = None,
) -> "capo_acm.types.get_acme_external_account_binding_credentials_response.GetAcmeExternalAccountBindingCredentialsResponse":
    """<p>Retrieves the key ID and MAC key credentials for an external account binding. These credentials are used by ACME clients during account registration to bind to the endpoint.</p>

    Args:
        acme_external_account_binding_arn: <p>The Amazon Resource Name (ARN) of the ACME external account binding.</p>

    Raises:
        capo_acm.errors.access_denied_exception.AccessDeniedException: <p>You do not have access required to perform this action.</p>
        capo_acm.errors.internal_server_exception.InternalServerException: <p>The request processing has failed because of an unknown error, exception, or failure.</p>
        capo_acm.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified certificate cannot be found in the caller's account or the caller's account cannot be found.</p>
        capo_acm.errors.throttling_exception.ThrottlingException: <p>The request was denied because it exceeded a quota.</p>
        capo_acm.errors.validation_exception.ValidationException: <p>The supplied input failed to satisfy constraints of an Amazon Web Services service.</p>
        capo_acm.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_acm.types.get_acme_external_account_binding_credentials_request.GetAcmeExternalAccountBindingCredentialsRequest]",
    ) -> AsyncOperationResponse[
        "capo_acm.types.get_acme_external_account_binding_credentials_response.GetAcmeExternalAccountBindingCredentialsResponse"
    ]:
        import capo_acm._operations.certificate_manager.get_acme_external_account_binding_credentials

        (
            output,
            http_response,
        ) = await capo_acm._operations.certificate_manager.get_acme_external_account_binding_credentials.async_get_acme_external_account_binding_credentials(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    def _redact_output(
        output: "capo_acm.types.get_acme_external_account_binding_credentials_response.GetAcmeExternalAccountBindingCredentialsResponse",
    ) -> dict[str, Any]:
        import capo_acm.types.get_acme_external_account_binding_credentials_response

        return capo_acm.types.get_acme_external_account_binding_credentials_response.redact_sensitive(
            output
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging(
            "GetAcmeExternalAccountBindingCredentials", redact_output=_redact_output
        ),
    )
    input_: capo_acm.types.get_acme_external_account_binding_credentials_request.GetAcmeExternalAccountBindingCredentialsRequest = {
        "acme_external_account_binding_arn": acme_external_account_binding_arn
    }

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