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

********************
get_account_settings
********************



.. py:method:: AppConfig.Client.get_account_settings()

  

  Returns information about the status of the ``DeletionProtection`` parameter.

  

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


  **Request Syntax**

  ::

    response = client.get_account_settings()
  :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.InternalServerException`

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

  