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 |
Amazonka.EC2.ResetSnapshotAttribute
Description
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.
Constructors
ResetSnapshotAttribute' | |
Fields
|
Instances
newResetSnapshotAttribute Source #
Arguments
:: SnapshotAttributeName | |
-> Text | |
-> ResetSnapshotAttribute |
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.
Constructors
ResetSnapshotAttributeResponse' | |
Instances
Generic ResetSnapshotAttributeResponse Source # | |
Defined in Amazonka.EC2.ResetSnapshotAttribute Associated Types type Rep ResetSnapshotAttributeResponse :: Type -> Type # | |
Read ResetSnapshotAttributeResponse Source # | |
Show ResetSnapshotAttributeResponse Source # | |
Defined in Amazonka.EC2.ResetSnapshotAttribute Methods showsPrec :: Int -> ResetSnapshotAttributeResponse -> ShowS # show :: ResetSnapshotAttributeResponse -> String # showList :: [ResetSnapshotAttributeResponse] -> ShowS # | |
NFData ResetSnapshotAttributeResponse Source # | |
Defined in Amazonka.EC2.ResetSnapshotAttribute Methods rnf :: ResetSnapshotAttributeResponse -> () # | |
Eq ResetSnapshotAttributeResponse Source # | |
Defined in Amazonka.EC2.ResetSnapshotAttribute | |
type Rep ResetSnapshotAttributeResponse Source # | |
Defined in Amazonka.EC2.ResetSnapshotAttribute |
newResetSnapshotAttributeResponse :: ResetSnapshotAttributeResponse Source #
Create a value of ResetSnapshotAttributeResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.