reset_image_attribute(**kwargs)¶Resets an attribute of an AMI to its default value.
See also: AWS API Documentation
Request Syntax
response = client.reset_image_attribute(
    Attribute='launchPermission',
    ImageId='string',
    DryRun=True|False
)
[REQUIRED]
The attribute to reset (currently you can only reset the launch permission attribute).
[REQUIRED]
The ID of the AMI.
DryRunOperation . Otherwise, it is UnauthorizedOperation .None
Examples
This example resets the launchPermission attribute for the specified AMI. By default, AMIs are private.
response = client.reset_image_attribute(
    Attribute='launchPermission',
    ImageId='ami-5731123e',
)
print(response)
Expected Output:
{
    'ResponseMetadata': {
        '...': '...',
    },
}