:doc:`AppConfig <../../appconfig>` / Client / update_account_settings

***********************
update_account_settings
***********************



.. py:method:: AppConfig.Client.update_account_settings(**kwargs)

  

  Updates the value of the ``DeletionProtection`` parameter.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/UpdateAccountSettings>`_  


  **Request Syntax**
  ::

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

    A parameter to configure deletion protection. Deletion protection prevents a user from deleting a configuration profile or an environment if AppConfig has called either `GetLatestConfiguration <https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/API_appconfigdata_GetLatestConfiguration.html>`__ or for the configuration profile or from the environment during the specified interval. 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 <https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/API_appconfigdata_GetLatestConfiguration.html>`__ 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 .

      

    
  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

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

    

    - *(dict) --* 
      

      - **DeletionProtection** *(dict) --* 

        A parameter to configure deletion protection. Deletion protection prevents a user from deleting a configuration profile or an environment if AppConfig has called either `GetLatestConfiguration <https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/API_appconfigdata_GetLatestConfiguration.html>`__ or for the configuration profile or from the environment during the specified interval. 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 <https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/API_appconfigdata_GetLatestConfiguration.html>`__ 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**
  
  *   :py:class:`AppConfig.Client.exceptions.BadRequestException`

  
  *   :py:class:`AppConfig.Client.exceptions.InternalServerException`

  