AppConfig / Client / get_account_settings

get_account_settings#

AppConfig.Client.get_account_settings()#

Returns information about the status of the DeletionProtection parameter.

See also: AWS API Documentation

Request Syntax

response = client.get_account_settings()
Return type:

dict

Returns:

Response Syntax

{
    'DeletionProtection': {
        'Enabled': True|False,
        'ProtectionPeriodInMinutes': 123
    }
}

Response Structure

  • (dict) –

    • DeletionProtection (dict) –

      A parameter to configure deletion protection. If enabled, deletion protection prevents a user from deleting a configuration profile or an environment if AppConfig has called either GetLatestConfiguration or for the configuration profile or from the environment during the specified interval. Deletion protection is disabled by default. The default interval for ProtectionPeriodInMinutes is 60.

      • Enabled (boolean) –

        A parameter that indicates if deletion protection is enabled or not.

      • ProtectionPeriodInMinutes (integer) –

        The time interval during which AppConfig monitors for calls to GetLatestConfiguration or for a configuration profile or from an environment. AppConfig returns an error if a user calls or for the designated configuration profile or environment. To bypass the error and delete a configuration profile or an environment, specify BYPASS for the DeletionProtectionCheck parameter for either or .

Exceptions

  • AppConfig.Client.exceptions.InternalServerException

  • AppConfig.Client.exceptions.BadRequestException