amazonka-ec2-0.3.2: Amazon Elastic Compute Cloud SDK.

Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.ModifySnapshotAttribute

Contents

Description

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 for Linux.

Snapshots with AWS Marketplace product codes cannot be made public.

http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-ModifySnapshotAttribute.html

Synopsis

Request

Request constructor

Request lenses

msaAttribute :: Lens' ModifySnapshotAttribute (Maybe SnapshotAttributeName) Source

The snapshot attribute to modify.

msaCreateVolumePermission :: Lens' ModifySnapshotAttribute (Maybe CreateVolumePermissionModifications) Source

A JSON representation of the snapshot attribute modification.

msaGroupNames :: Lens' ModifySnapshotAttribute [Text] Source

The group to modify for the snapshot.

msaOperationType :: Lens' ModifySnapshotAttribute (Maybe Text) Source

The type of operation to perform to the attribute.

msaSnapshotId :: Lens' ModifySnapshotAttribute Text Source

The ID of the snapshot.

msaUserIds :: Lens' ModifySnapshotAttribute [Text] Source

The account ID to modify for the snapshot.

Response

Response constructor