Skip to content

get_account_settings

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

Returns information about the status of the DeletionProtection parameter.

Raises:

Source code in docs_src/capo_appconfig/_services/app_config.py
def get_account_settings(
    self, *, config_overrides: Optional[AppConfigClientConfig] = 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.
    """

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

        output, http_response = (
            capo_appconfig._operations.amazon_app_config.get_account_settings.get_account_settings(
                req.options
            )
        )
        return OperationResponse(output=output, response=http_response)

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

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