Copyright | (c) 2013-2016 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 |
Network.AWS.EC2.ResetImageAttribute
Description
Resets an attribute of an AMI to its default value.
- 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
Arguments
:: Text | |
-> ResetImageAttributeName | |
-> ResetImageAttribute |
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
.resImageId
- The ID of the AMI.resAttribute
- The attribute to reset (currently you can only reset the launch permission attribute).
data ResetImageAttribute #
Contains the parameters for ResetImageAttribute.
See: resetImageAttribute
smart constructor.
Instances
Request Lenses
resDryRun :: Lens' ResetImageAttribute (Maybe Bool) #
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 #
The ID of the AMI.
resAttribute :: Lens' ResetImageAttribute ResetImageAttributeName #
The attribute to reset (currently you can only reset the launch permission attribute).
Destructuring the Response
resetImageAttributeResponse :: ResetImageAttributeResponse #
Creates a value of ResetImageAttributeResponse
with the minimum fields required to make a request.
data ResetImageAttributeResponse #
See: resetImageAttributeResponse
smart constructor.