:doc:`Image <index>` / Action / reset_attribute

***************
reset_attribute
***************



.. py:method:: EC2.Image.reset_attribute(**kwargs)

  

  Resets an attribute of an AMI to its default value.

  

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


  **Request Syntax**
  ::

    response = image.reset_attribute(
        Attribute='launchPermission',
        DryRun=True|False
    )
    
  :type Attribute: string
  :param Attribute: **[REQUIRED]** 

    The attribute to reset (currently you can only reset the launch permission attribute).

    

  
  :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``.

    

  
  
  :returns: None