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.ResetSnapshotAttribute
Description
Resets permission settings for the specified snapshot.
For more information on modifying snapshot permissions, see Sharing Snapshots in the Amazon Elastic Compute Cloud User Guide .
- resetSnapshotAttribute :: Text -> SnapshotAttributeName -> ResetSnapshotAttribute
- data ResetSnapshotAttribute
- rsaDryRun :: Lens' ResetSnapshotAttribute (Maybe Bool)
- rsaSnapshotId :: Lens' ResetSnapshotAttribute Text
- rsaAttribute :: Lens' ResetSnapshotAttribute SnapshotAttributeName
- resetSnapshotAttributeResponse :: ResetSnapshotAttributeResponse
- data ResetSnapshotAttributeResponse
Creating a Request
Arguments
:: Text | |
-> SnapshotAttributeName | |
-> ResetSnapshotAttribute |
Creates a value of ResetSnapshotAttribute
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rsaDryRun
- 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
.rsaSnapshotId
- The ID of the snapshot.rsaAttribute
- The attribute to reset. Currently, only the attribute for permission to create volumes can be reset.
data ResetSnapshotAttribute #
Contains the parameters for ResetSnapshotAttribute.
See: resetSnapshotAttribute
smart constructor.
Instances
Request Lenses
rsaDryRun :: Lens' ResetSnapshotAttribute (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
.
rsaSnapshotId :: Lens' ResetSnapshotAttribute Text #
The ID of the snapshot.
rsaAttribute :: Lens' ResetSnapshotAttribute SnapshotAttributeName #
The attribute to reset. Currently, only the attribute for permission to create volumes can be reset.
Destructuring the Response
resetSnapshotAttributeResponse :: ResetSnapshotAttributeResponse #
Creates a value of ResetSnapshotAttributeResponse
with the minimum fields required to make a request.
data ResetSnapshotAttributeResponse #
See: resetSnapshotAttributeResponse
smart constructor.