amazonka-ec2-1.3.0: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <>
Portabilitynon-portable (GHC extensions)
Safe HaskellNone




Resets an attribute of an AMI to its default value.

The productCodes attribute can't be reset.

See: AWS API Reference for ResetImageAttribute.


Creating a Request

resetImageAttribute Source

Creates a value of ResetImageAttribute with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

resDryRun :: Lens' ResetImageAttribute (Maybe Bool) Source

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.

resAttribute :: Lens' ResetImageAttribute ResetImageAttributeName Source

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

Destructuring the Response

resetImageAttributeResponse :: ResetImageAttributeResponse Source

Creates a value of ResetImageAttributeResponse with the minimum fields required to make a request.