AppConfig / Client / update_account_settings

update_account_settings#

AppConfig.Client.update_account_settings(**kwargs)#

Updates the value of the DeletionProtection parameter.

See also: AWS API Documentation

Request Syntax

response = client.update_account_settings(
    DeletionProtection={
        'Enabled': True|False,
        'ProtectionPeriodInMinutes': 123
    }
)
Parameters:

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 .

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.BadRequestException

  • AppConfig.Client.exceptions.InternalServerException