Skip to content

get_account_settings async

get_account_settings(
    *, config_overrides: Optional[AsyncAppConfigClientConfig] = None
) -> AccountSettings

Returns information about the status of the DeletionProtection parameter.

Raises:

Source code in docs_src/capo_appconfig/_services/async_app_config.py
async def get_account_settings(
    self, *, config_overrides: Optional[AsyncAppConfigClientConfig] = None
) -> "capo_appconfig.types.account_settings.AccountSettings":
    """<p>Returns information about the status of the <code>DeletionProtection</code> parameter.</p>

    Raises:
        capo_appconfig.errors.bad_request_exception.BadRequestException: <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
        capo_appconfig.errors.internal_server_exception.InternalServerException: <p>There was an internal failure in the AppConfig service.</p>
        capo_appconfig.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[None]",
    ) -> AsyncOperationResponse[
        "capo_appconfig.types.account_settings.AccountSettings"
    ]:
        import capo_appconfig._operations.amazon_app_config.get_account_settings

        (
            output,
            http_response,
        ) = await capo_appconfig._operations.amazon_app_config.get_account_settings.async_get_account_settings(
            req.options
        )
        return AsyncOperationResponse(output=output, response=http_response)

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

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