Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Resets permission settings for the specified snapshot.
For more information about modifying snapshot permissions, see Share a snapshot in the Amazon Elastic Compute Cloud User Guide.
Synopsis
- data ResetSnapshotAttribute = ResetSnapshotAttribute' {}
- newResetSnapshotAttribute :: SnapshotAttributeName -> Text -> ResetSnapshotAttribute
- resetSnapshotAttribute_dryRun :: Lens' ResetSnapshotAttribute (Maybe Bool)
- resetSnapshotAttribute_attribute :: Lens' ResetSnapshotAttribute SnapshotAttributeName
- resetSnapshotAttribute_snapshotId :: Lens' ResetSnapshotAttribute Text
- data ResetSnapshotAttributeResponse = ResetSnapshotAttributeResponse' {
- newResetSnapshotAttributeResponse :: ResetSnapshotAttributeResponse
Creating a Request
data ResetSnapshotAttribute Source #
See: newResetSnapshotAttribute
smart constructor.
ResetSnapshotAttribute' | |
|
Instances
newResetSnapshotAttribute Source #
Create a value of ResetSnapshotAttribute
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dryRun:ResetSnapshotAttribute'
, resetSnapshotAttribute_dryRun
- 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
.
$sel:attribute:ResetSnapshotAttribute'
, resetSnapshotAttribute_attribute
- The attribute to reset. Currently, only the attribute for permission to
create volumes can be reset.
ResetSnapshotAttribute
, resetSnapshotAttribute_snapshotId
- The ID of the snapshot.
Request Lenses
resetSnapshotAttribute_dryRun :: Lens' ResetSnapshotAttribute (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
.
resetSnapshotAttribute_attribute :: Lens' ResetSnapshotAttribute SnapshotAttributeName Source #
The attribute to reset. Currently, only the attribute for permission to create volumes can be reset.
resetSnapshotAttribute_snapshotId :: Lens' ResetSnapshotAttribute Text Source #
The ID of the snapshot.
Destructuring the Response
data ResetSnapshotAttributeResponse Source #
See: newResetSnapshotAttributeResponse
smart constructor.
Instances
newResetSnapshotAttributeResponse :: ResetSnapshotAttributeResponse Source #
Create a value of ResetSnapshotAttributeResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.