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

Creating a Request

data ResetSnapshotAttribute Source #

See: newResetSnapshotAttribute smart constructor.

Constructors

ResetSnapshotAttribute' 

Fields

  • dryRun :: Maybe Bool

    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.

  • attribute :: SnapshotAttributeName

    The attribute to reset. Currently, only the attribute for permission to create volumes can be reset.

  • snapshotId :: Text

    The ID of the snapshot.

Instances

Instances details
ToHeaders ResetSnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetSnapshotAttribute

ToPath ResetSnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetSnapshotAttribute

ToQuery ResetSnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetSnapshotAttribute

AWSRequest ResetSnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetSnapshotAttribute

Associated Types

type AWSResponse ResetSnapshotAttribute #

Generic ResetSnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetSnapshotAttribute

Associated Types

type Rep ResetSnapshotAttribute :: Type -> Type #

Read ResetSnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetSnapshotAttribute

Show ResetSnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetSnapshotAttribute

NFData ResetSnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetSnapshotAttribute

Methods

rnf :: ResetSnapshotAttribute -> () #

Eq ResetSnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetSnapshotAttribute

Hashable ResetSnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetSnapshotAttribute

type AWSResponse ResetSnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetSnapshotAttribute

type Rep ResetSnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.ResetSnapshotAttribute

type Rep ResetSnapshotAttribute = D1 ('MetaData "ResetSnapshotAttribute" "Amazonka.EC2.ResetSnapshotAttribute" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ResetSnapshotAttribute'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "attribute") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SnapshotAttributeName) :*: S1 ('MetaSel ('Just "snapshotId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

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.

Destructuring the Response

data ResetSnapshotAttributeResponse Source #

See: newResetSnapshotAttributeResponse smart constructor.

Instances

Instances details
Generic ResetSnapshotAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ResetSnapshotAttribute

Associated Types

type Rep ResetSnapshotAttributeResponse :: Type -> Type #

Read ResetSnapshotAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ResetSnapshotAttribute

Show ResetSnapshotAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ResetSnapshotAttribute

NFData ResetSnapshotAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ResetSnapshotAttribute

Eq ResetSnapshotAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ResetSnapshotAttribute

type Rep ResetSnapshotAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ResetSnapshotAttribute

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

newResetSnapshotAttributeResponse :: ResetSnapshotAttributeResponse Source #

Create a value of ResetSnapshotAttributeResponse with all optional fields omitted.

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