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

Description

Restores an archived Amazon EBS snapshot for use temporarily or permanently, or modifies the restore period or restore type for a snapshot that was previously temporarily restored.

For more information see Restore an archived snapshot and modify the restore period or restore type for a temporarily restored snapshot in the Amazon Elastic Compute Cloud User Guide.

Synopsis

Creating a Request

data RestoreSnapshotTier Source #

See: newRestoreSnapshotTier smart constructor.

Constructors

RestoreSnapshotTier' 

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.

  • permanentRestore :: Maybe Bool

    Indicates whether to permanently restore an archived snapshot. To permanently restore an archived snapshot, specify true and omit the RestoreSnapshotTierRequest$TemporaryRestoreDays parameter.

  • temporaryRestoreDays :: Maybe Int

    Specifies the number of days for which to temporarily restore an archived snapshot. Required for temporary restores only. The snapshot will be automatically re-archived after this period.

    To temporarily restore an archived snapshot, specify the number of days and omit the PermanentRestore parameter or set it to false.

  • snapshotId :: Text

    The ID of the snapshot to restore.

Instances

Instances details
ToHeaders RestoreSnapshotTier Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotTier

ToPath RestoreSnapshotTier Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotTier

ToQuery RestoreSnapshotTier Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotTier

AWSRequest RestoreSnapshotTier Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotTier

Associated Types

type AWSResponse RestoreSnapshotTier #

Generic RestoreSnapshotTier Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotTier

Associated Types

type Rep RestoreSnapshotTier :: Type -> Type #

Read RestoreSnapshotTier Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotTier

Show RestoreSnapshotTier Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotTier

NFData RestoreSnapshotTier Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotTier

Methods

rnf :: RestoreSnapshotTier -> () #

Eq RestoreSnapshotTier Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotTier

Hashable RestoreSnapshotTier Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotTier

type AWSResponse RestoreSnapshotTier Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotTier

type Rep RestoreSnapshotTier Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotTier

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

newRestoreSnapshotTier Source #

Create a value of RestoreSnapshotTier 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:RestoreSnapshotTier', restoreSnapshotTier_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:permanentRestore:RestoreSnapshotTier', restoreSnapshotTier_permanentRestore - Indicates whether to permanently restore an archived snapshot. To permanently restore an archived snapshot, specify true and omit the RestoreSnapshotTierRequest$TemporaryRestoreDays parameter.

$sel:temporaryRestoreDays:RestoreSnapshotTier', restoreSnapshotTier_temporaryRestoreDays - Specifies the number of days for which to temporarily restore an archived snapshot. Required for temporary restores only. The snapshot will be automatically re-archived after this period.

To temporarily restore an archived snapshot, specify the number of days and omit the PermanentRestore parameter or set it to false.

RestoreSnapshotTier, restoreSnapshotTier_snapshotId - The ID of the snapshot to restore.

Request Lenses

restoreSnapshotTier_dryRun :: Lens' RestoreSnapshotTier (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.

restoreSnapshotTier_permanentRestore :: Lens' RestoreSnapshotTier (Maybe Bool) Source #

Indicates whether to permanently restore an archived snapshot. To permanently restore an archived snapshot, specify true and omit the RestoreSnapshotTierRequest$TemporaryRestoreDays parameter.

restoreSnapshotTier_temporaryRestoreDays :: Lens' RestoreSnapshotTier (Maybe Int) Source #

Specifies the number of days for which to temporarily restore an archived snapshot. Required for temporary restores only. The snapshot will be automatically re-archived after this period.

To temporarily restore an archived snapshot, specify the number of days and omit the PermanentRestore parameter or set it to false.

Destructuring the Response

data RestoreSnapshotTierResponse Source #

See: newRestoreSnapshotTierResponse smart constructor.

Constructors

RestoreSnapshotTierResponse' 

Fields

Instances

Instances details
Generic RestoreSnapshotTierResponse Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotTier

Associated Types

type Rep RestoreSnapshotTierResponse :: Type -> Type #

Read RestoreSnapshotTierResponse Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotTier

Show RestoreSnapshotTierResponse Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotTier

NFData RestoreSnapshotTierResponse Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotTier

Eq RestoreSnapshotTierResponse Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotTier

type Rep RestoreSnapshotTierResponse Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotTier

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

newRestoreSnapshotTierResponse Source #

Create a value of RestoreSnapshotTierResponse 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:isPermanentRestore:RestoreSnapshotTierResponse', restoreSnapshotTierResponse_isPermanentRestore - Indicates whether the snapshot is permanently restored. true indicates a permanent restore. false indicates a temporary restore.

$sel:restoreDuration:RestoreSnapshotTierResponse', restoreSnapshotTierResponse_restoreDuration - For temporary restores only. The number of days for which the archived snapshot is temporarily restored.

$sel:restoreStartTime:RestoreSnapshotTierResponse', restoreSnapshotTierResponse_restoreStartTime - The date and time when the snapshot restore process started.

RestoreSnapshotTier, restoreSnapshotTierResponse_snapshotId - The ID of the snapshot.

$sel:httpStatus:RestoreSnapshotTierResponse', restoreSnapshotTierResponse_httpStatus - The response's http status code.

Response Lenses

restoreSnapshotTierResponse_isPermanentRestore :: Lens' RestoreSnapshotTierResponse (Maybe Bool) Source #

Indicates whether the snapshot is permanently restored. true indicates a permanent restore. false indicates a temporary restore.

restoreSnapshotTierResponse_restoreDuration :: Lens' RestoreSnapshotTierResponse (Maybe Int) Source #

For temporary restores only. The number of days for which the archived snapshot is temporarily restored.

restoreSnapshotTierResponse_restoreStartTime :: Lens' RestoreSnapshotTierResponse (Maybe UTCTime) Source #

The date and time when the snapshot restore process started.