Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Resets an attribute of an AMI to its default value.
The productCodes attribute can't be reset.
See: AWS API Reference for ResetImageAttribute.
- resetImageAttribute :: Text -> ResetImageAttributeName -> ResetImageAttribute
- data ResetImageAttribute
- resDryRun :: Lens' ResetImageAttribute (Maybe Bool)
- resImageId :: Lens' ResetImageAttribute Text
- resAttribute :: Lens' ResetImageAttribute ResetImageAttributeName
- resetImageAttributeResponse :: ResetImageAttributeResponse
- data ResetImageAttributeResponse
Creating a Request
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:
data ResetImageAttribute Source
See: resetImageAttribute
smart constructor.
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
.
resImageId :: Lens' ResetImageAttribute Text Source
The ID of the AMI.
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.
data ResetImageAttributeResponse Source
See: resetImageAttributeResponse
smart constructor.