:doc:`ManagedintegrationsforIoTDeviceManagement <../../iot-managed-integrations>` / Client / put_default_encryption_configuration

************************************
put_default_encryption_configuration
************************************



.. py:method:: ManagedintegrationsforIoTDeviceManagement.Client.put_default_encryption_configuration(**kwargs)

  

  Sets the default encryption configuration for the Amazon Web Services account. For more information, see `Key management <https://docs.aws.amazon.com/iot-sitewise/latest/userguide/key-management.html>`__ in the AWS IoT SiteWise User Guide.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iot-managed-integrations-2025-03-03/PutDefaultEncryptionConfiguration>`_  


  **Request Syntax**
  ::

    response = client.put_default_encryption_configuration(
        encryptionType='MANAGED_INTEGRATIONS_DEFAULT_ENCRYPTION'|'CUSTOMER_KEY_ENCRYPTION',
        kmsKeyArn='string'
    )
    
  :type encryptionType: string
  :param encryptionType: **[REQUIRED]** 

    The type of encryption used for the encryption configuration.

    

  
  :type kmsKeyArn: string
  :param kmsKeyArn: 

    The Key Amazon Resource Name (ARN) of the AWS KMS key used for KMS encryption if you use ``KMS_BASED_ENCRYPTION``.

    

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

    
    ::

      {
          'configurationStatus': {
              'error': {
                  'code': 'string',
                  'message': 'string'
              },
              'state': 'ENABLED'|'UPDATE_IN_PROGRESS'|'UPDATE_FAILED'
          },
          'encryptionType': 'MANAGED_INTEGRATIONS_DEFAULT_ENCRYPTION'|'CUSTOMER_KEY_ENCRYPTION',
          'kmsKeyArn': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **configurationStatus** *(dict) --* 

        Provides the status of the default encryption configuration for an Amazon Web Services account.

        
        

        - **error** *(dict) --* 

          The error details describing a failed default encryption configuration update.

          
          

          - **code** *(string) --* 

            The error code returned when the default encryption configuration update fails.

            
          

          - **message** *(string) --* 

            The error message returned when the default encryption configuration update fails.

            
      
        

        - **state** *(string) --* 

          The status state describing the default encryption configuration update.

          
    
      

      - **encryptionType** *(string) --* 

        The type of encryption used for the encryption configuration.

        
      

      - **kmsKeyArn** *(string) --* 

        The Key Amazon Resource Name (ARN) of the AWS KMS key used for KMS encryption if you use ``KMS_BASED_ENCRYPTION``.

        
  
  **Exceptions**
  
  *   :py:class:`ManagedintegrationsforIoTDeviceManagement.Client.exceptions.ValidationException`

  
  *   :py:class:`ManagedintegrationsforIoTDeviceManagement.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`ManagedintegrationsforIoTDeviceManagement.Client.exceptions.InternalFailureException`

  
  *   :py:class:`ManagedintegrationsforIoTDeviceManagement.Client.exceptions.UnauthorizedException`

  
  *   :py:class:`ManagedintegrationsforIoTDeviceManagement.Client.exceptions.ServiceUnavailableException`

  
  *   :py:class:`ManagedintegrationsforIoTDeviceManagement.Client.exceptions.ThrottlingException`

  
  *   :py:class:`ManagedintegrationsforIoTDeviceManagement.Client.exceptions.ResourceNotFoundException`

  