Skip to content

get_account_configuration async

get_account_configuration(
    *, config_overrides: Optional[AsyncACMClientConfig] = None
) -> GetAccountConfigurationResponse

Returns the account configuration options associated with an Amazon Web Services account.

Raises:

Source code in docs_src/capo_acm/_services/async_acm.py
async def get_account_configuration(
    self, *, config_overrides: Optional[AsyncACMClientConfig] = None
) -> "capo_acm.types.get_account_configuration_response.GetAccountConfigurationResponse":
    """<p>Returns the account configuration options associated with an Amazon Web Services account.</p>

    Raises:
        capo_acm.errors.access_denied_exception.AccessDeniedException: <p>You do not have access required to perform this action.</p>
        capo_acm.errors.throttling_exception.ThrottlingException: <p>The request was denied because it exceeded a quota.</p>
        capo_acm.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[None]",
    ) -> AsyncOperationResponse[
        "capo_acm.types.get_account_configuration_response.GetAccountConfigurationResponse"
    ]:
        import capo_acm._operations.certificate_manager.get_account_configuration

        (
            output,
            http_response,
        ) = await capo_acm._operations.certificate_manager.get_account_configuration.async_get_account_configuration(
            req.options
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetAccountConfiguration")
    )

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