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

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.ResetImageAttribute

Contents

Description

Resets an attribute of an AMI to its default value.

The productCodes attribute can't be reset.

See: AWS API Reference for ResetImageAttribute.

Synopsis

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.