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

Description

Archives an Amazon EBS snapshot. When you archive a snapshot, it is converted to a full snapshot that includes all of the blocks of data that were written to the volume at the time the snapshot was created, and moved from the standard tier to the archive tier. For more information, see Archive Amazon EBS snapshots in the Amazon Elastic Compute Cloud User Guide.

Synopsis

Creating a Request

data ModifySnapshotTier Source #

See: newModifySnapshotTier smart constructor.

Constructors

ModifySnapshotTier' 

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.

  • storageTier :: Maybe TargetStorageTier

    The name of the storage tier. You must specify archive.

  • snapshotId :: Text

    The ID of the snapshot.

Instances

Instances details
ToHeaders ModifySnapshotTier Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotTier

ToPath ModifySnapshotTier Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotTier

ToQuery ModifySnapshotTier Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotTier

AWSRequest ModifySnapshotTier Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotTier

Associated Types

type AWSResponse ModifySnapshotTier #

Generic ModifySnapshotTier Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotTier

Associated Types

type Rep ModifySnapshotTier :: Type -> Type #

Read ModifySnapshotTier Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotTier

Show ModifySnapshotTier Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotTier

NFData ModifySnapshotTier Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotTier

Methods

rnf :: ModifySnapshotTier -> () #

Eq ModifySnapshotTier Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotTier

Hashable ModifySnapshotTier Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotTier

type AWSResponse ModifySnapshotTier Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotTier

type Rep ModifySnapshotTier Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotTier

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

newModifySnapshotTier Source #

Create a value of ModifySnapshotTier 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:ModifySnapshotTier', modifySnapshotTier_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.

ModifySnapshotTier, modifySnapshotTier_storageTier - The name of the storage tier. You must specify archive.

ModifySnapshotTier, modifySnapshotTier_snapshotId - The ID of the snapshot.

Request Lenses

modifySnapshotTier_dryRun :: Lens' ModifySnapshotTier (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.

modifySnapshotTier_storageTier :: Lens' ModifySnapshotTier (Maybe TargetStorageTier) Source #

The name of the storage tier. You must specify archive.

Destructuring the Response

data ModifySnapshotTierResponse Source #

See: newModifySnapshotTierResponse smart constructor.

Constructors

ModifySnapshotTierResponse' 

Fields

Instances

Instances details
Generic ModifySnapshotTierResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotTier

Associated Types

type Rep ModifySnapshotTierResponse :: Type -> Type #

Read ModifySnapshotTierResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotTier

Show ModifySnapshotTierResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotTier

NFData ModifySnapshotTierResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotTier

Eq ModifySnapshotTierResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotTier

type Rep ModifySnapshotTierResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifySnapshotTier

type Rep ModifySnapshotTierResponse = D1 ('MetaData "ModifySnapshotTierResponse" "Amazonka.EC2.ModifySnapshotTier" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ModifySnapshotTierResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "snapshotId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "tieringStartTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newModifySnapshotTierResponse Source #

Create a value of ModifySnapshotTierResponse 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:

ModifySnapshotTier, modifySnapshotTierResponse_snapshotId - The ID of the snapshot.

$sel:tieringStartTime:ModifySnapshotTierResponse', modifySnapshotTierResponse_tieringStartTime - The date and time when the archive process was started.

$sel:httpStatus:ModifySnapshotTierResponse', modifySnapshotTierResponse_httpStatus - The response's http status code.

Response Lenses

modifySnapshotTierResponse_tieringStartTime :: Lens' ModifySnapshotTierResponse (Maybe UTCTime) Source #

The date and time when the archive process was started.