Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@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.
- resetImageAttribute :: ResetImageAttributeName -> Text -> ResetImageAttribute
- data ResetImageAttribute
- resDryRun :: Lens' ResetImageAttribute (Maybe Bool)
- resAttribute :: Lens' ResetImageAttribute ResetImageAttributeName
- resImageId :: Lens' ResetImageAttribute Text
- 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:
resDryRun
- 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 isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.resAttribute
- The attribute to reset (currently you can only reset the launch permission attribute).resImageId
- The ID of the AMI.
data ResetImageAttribute Source #
Contains the parameters for ResetImageAttribute.
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
.
resAttribute :: Lens' ResetImageAttribute ResetImageAttributeName Source #
The attribute to reset (currently you can only reset the launch permission attribute).
resImageId :: Lens' ResetImageAttribute Text Source #
The ID of the AMI.
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.