Copyright | (c) 2013-2015 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 |
Adds or removes permission settings for the specified snapshot. You may add or remove specified AWS account IDs from a snapshot's list of create volume permissions, but you cannot do both in a single API call. If you need to both add and remove account IDs for a snapshot, you must use multiple API calls.
For more information on modifying snapshot permissions, see Sharing Snapshots in the Amazon Elastic Compute Cloud User Guide.
Snapshots with AWS Marketplace product codes cannot be made public.
See: AWS API Reference for ModifySnapshotAttribute.
- modifySnapshotAttribute :: Text -> ModifySnapshotAttribute
- data ModifySnapshotAttribute
- msaAttribute :: Lens' ModifySnapshotAttribute (Maybe SnapshotAttributeName)
- msaCreateVolumePermission :: Lens' ModifySnapshotAttribute (Maybe CreateVolumePermissionModifications)
- msaUserIds :: Lens' ModifySnapshotAttribute [Text]
- msaGroupNames :: Lens' ModifySnapshotAttribute [Text]
- msaOperationType :: Lens' ModifySnapshotAttribute (Maybe OperationType)
- msaDryRun :: Lens' ModifySnapshotAttribute (Maybe Bool)
- msaSnapshotId :: Lens' ModifySnapshotAttribute Text
- modifySnapshotAttributeResponse :: ModifySnapshotAttributeResponse
- data ModifySnapshotAttributeResponse
Creating a Request
modifySnapshotAttribute Source
Creates a value of ModifySnapshotAttribute
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ModifySnapshotAttribute Source
See: modifySnapshotAttribute
smart constructor.
Request Lenses
msaAttribute :: Lens' ModifySnapshotAttribute (Maybe SnapshotAttributeName) Source
The snapshot attribute to modify.
Only volume creation permissions may be modified at the customer level.
msaCreateVolumePermission :: Lens' ModifySnapshotAttribute (Maybe CreateVolumePermissionModifications) Source
A JSON representation of the snapshot attribute modification.
msaUserIds :: Lens' ModifySnapshotAttribute [Text] Source
The account ID to modify for the snapshot.
msaGroupNames :: Lens' ModifySnapshotAttribute [Text] Source
The group to modify for the snapshot.
msaOperationType :: Lens' ModifySnapshotAttribute (Maybe OperationType) Source
The type of operation to perform to the attribute.
msaDryRun :: Lens' ModifySnapshotAttribute (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
.
msaSnapshotId :: Lens' ModifySnapshotAttribute Text Source
The ID of the snapshot.
Destructuring the Response
modifySnapshotAttributeResponse :: ModifySnapshotAttributeResponse Source
Creates a value of ModifySnapshotAttributeResponse
with the minimum fields required to make a request.
data ModifySnapshotAttributeResponse Source
See: modifySnapshotAttributeResponse
smart constructor.