:doc:`EC2 <../../ec2>` / Client / reset_ebs_default_kms_key_id

****************************
reset_ebs_default_kms_key_id
****************************



.. py:method:: EC2.Client.reset_ebs_default_kms_key_id(**kwargs)

  

  Resets the default KMS key for EBS encryption for your account in this Region to the Amazon Web Services managed KMS key for EBS.

   

  After resetting the default KMS key to the Amazon Web Services managed KMS key, you can continue to encrypt by a customer managed KMS key by specifying it when you create the volume. For more information, see `Amazon EBS encryption <https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption.html>`__ in the *Amazon EBS User Guide*.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetEbsDefaultKmsKeyId>`_  


  **Request Syntax**
  ::

    response = client.reset_ebs_default_kms_key_id(
        DryRun=True|False
    )
    
  :type DryRun: boolean
  :param DryRun: 

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is ``DryRunOperation``. Otherwise, it is ``UnauthorizedOperation``.

    

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

    
    ::

      {
          'KmsKeyId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **KmsKeyId** *(string) --* 

        The Amazon Resource Name (ARN) of the default KMS key for EBS encryption by default.

        
  