Skip to content

get_account_configuration

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

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

Raises:

Source code in docs_src/capo_acm/_services/acm.py
def get_account_configuration(
    self, *, config_overrides: Optional[ACMClientConfig] = 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.
    """

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

        output, http_response = (
            capo_acm._operations.certificate_manager.get_account_configuration.get_account_configuration(
                req.options
            )
        )
        return OperationResponse(output=output, response=http_response)

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

    response = execute_pipeline(
        OperationRequest(input=None, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output