amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.ModifySnapshotAttribute

Description

Adds or removes permission settings for the specified snapshot. You may add or remove specified Amazon Web Services account IDs from a snapshot's list of create volume permissions, but you cannot do both in a single operation. If you need to both add and remove account IDs for a snapshot, you must use multiple operations. You can make up to 500 modifications to a snapshot in a single operation.

Encrypted snapshots and snapshots with Amazon Web Services Marketplace product codes cannot be made public. Snapshots encrypted with your default KMS key cannot be shared with other accounts.

For more information about modifying snapshot permissions, see Share a snapshot in the Amazon Elastic Compute Cloud User Guide.

Synopsis

Creating a Request

data ModifySnapshotAttribute Source #

See: newModifySnapshotAttribute smart constructor.

Constructors

ModifySnapshotAttribute' 

Fields

Instances

Instances details
ToHeaders ModifySnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotAttribute

ToPath ModifySnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotAttribute

ToQuery ModifySnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotAttribute

AWSRequest ModifySnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotAttribute

Generic ModifySnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotAttribute

Associated Types

type Rep ModifySnapshotAttribute :: Type -> Type #

Read ModifySnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotAttribute

Show ModifySnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotAttribute

NFData ModifySnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotAttribute

Methods

rnf :: ModifySnapshotAttribute -> () #

Eq ModifySnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotAttribute

Hashable ModifySnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotAttribute

type AWSResponse ModifySnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotAttribute

type Rep ModifySnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotAttribute

newModifySnapshotAttribute Source #

Create a value of ModifySnapshotAttribute 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:attribute:ModifySnapshotAttribute', modifySnapshotAttribute_attribute - The snapshot attribute to modify. Only volume creation permissions can be modified.

$sel:createVolumePermission:ModifySnapshotAttribute', modifySnapshotAttribute_createVolumePermission - A JSON representation of the snapshot attribute modification.

$sel:dryRun:ModifySnapshotAttribute', modifySnapshotAttribute_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.

ModifySnapshotAttribute, modifySnapshotAttribute_groupNames - The group to modify for the snapshot.

$sel:operationType:ModifySnapshotAttribute', modifySnapshotAttribute_operationType - The type of operation to perform to the attribute.

$sel:userIds:ModifySnapshotAttribute', modifySnapshotAttribute_userIds - The account ID to modify for the snapshot.

ModifySnapshotAttribute, modifySnapshotAttribute_snapshotId - The ID of the snapshot.

Request Lenses

modifySnapshotAttribute_attribute :: Lens' ModifySnapshotAttribute (Maybe SnapshotAttributeName) Source #

The snapshot attribute to modify. Only volume creation permissions can be modified.

modifySnapshotAttribute_dryRun :: 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.

modifySnapshotAttribute_operationType :: Lens' ModifySnapshotAttribute (Maybe OperationType) Source #

The type of operation to perform to the attribute.

modifySnapshotAttribute_userIds :: Lens' ModifySnapshotAttribute (Maybe [Text]) Source #

The account ID to modify for the snapshot.

Destructuring the Response

data ModifySnapshotAttributeResponse Source #

See: newModifySnapshotAttributeResponse smart constructor.

Instances

Instances details
Generic ModifySnapshotAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotAttribute

Associated Types

type Rep ModifySnapshotAttributeResponse :: Type -> Type #

Read ModifySnapshotAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotAttribute

Show ModifySnapshotAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotAttribute

NFData ModifySnapshotAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotAttribute

Eq ModifySnapshotAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotAttribute

type Rep ModifySnapshotAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotAttribute

type Rep ModifySnapshotAttributeResponse = D1 ('MetaData "ModifySnapshotAttributeResponse" "Amazonka.EC2.ModifySnapshotAttribute" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ModifySnapshotAttributeResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newModifySnapshotAttributeResponse :: ModifySnapshotAttributeResponse Source #

Create a value of ModifySnapshotAttributeResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.