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

Description

Restores a snapshot from the Recycle Bin. For more information, see Restore snapshots from the Recycle Bin in the Amazon Elastic Compute Cloud User Guide.

Synopsis

Creating a Request

data RestoreSnapshotFromRecycleBin Source #

See: newRestoreSnapshotFromRecycleBin smart constructor.

Constructors

RestoreSnapshotFromRecycleBin' 

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.

  • snapshotId :: Text

    The ID of the snapshot to restore.

Instances

Instances details
ToHeaders RestoreSnapshotFromRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotFromRecycleBin

ToPath RestoreSnapshotFromRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotFromRecycleBin

ToQuery RestoreSnapshotFromRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotFromRecycleBin

AWSRequest RestoreSnapshotFromRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotFromRecycleBin

Generic RestoreSnapshotFromRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotFromRecycleBin

Associated Types

type Rep RestoreSnapshotFromRecycleBin :: Type -> Type #

Read RestoreSnapshotFromRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotFromRecycleBin

Show RestoreSnapshotFromRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotFromRecycleBin

NFData RestoreSnapshotFromRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotFromRecycleBin

Eq RestoreSnapshotFromRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotFromRecycleBin

Hashable RestoreSnapshotFromRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotFromRecycleBin

type AWSResponse RestoreSnapshotFromRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotFromRecycleBin

type Rep RestoreSnapshotFromRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotFromRecycleBin

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

newRestoreSnapshotFromRecycleBin Source #

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

RestoreSnapshotFromRecycleBin, restoreSnapshotFromRecycleBin_snapshotId - The ID of the snapshot to restore.

Request Lenses

restoreSnapshotFromRecycleBin_dryRun :: Lens' RestoreSnapshotFromRecycleBin (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.

Destructuring the Response

data RestoreSnapshotFromRecycleBinResponse Source #

Constructors

RestoreSnapshotFromRecycleBinResponse' 

Fields

Instances

Instances details
Generic RestoreSnapshotFromRecycleBinResponse Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotFromRecycleBin

Read RestoreSnapshotFromRecycleBinResponse Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotFromRecycleBin

Show RestoreSnapshotFromRecycleBinResponse Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotFromRecycleBin

NFData RestoreSnapshotFromRecycleBinResponse Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotFromRecycleBin

Eq RestoreSnapshotFromRecycleBinResponse Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotFromRecycleBin

type Rep RestoreSnapshotFromRecycleBinResponse Source # 
Instance details

Defined in Amazonka.EC2.RestoreSnapshotFromRecycleBin

type Rep RestoreSnapshotFromRecycleBinResponse = D1 ('MetaData "RestoreSnapshotFromRecycleBinResponse" "Amazonka.EC2.RestoreSnapshotFromRecycleBin" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "RestoreSnapshotFromRecycleBinResponse'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "encrypted") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "outpostArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "ownerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "progress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "snapshotId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "startTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)) :*: S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SnapshotState)))) :*: (S1 ('MetaSel ('Just "volumeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "volumeSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))))

newRestoreSnapshotFromRecycleBinResponse Source #

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

RestoreSnapshotFromRecycleBinResponse, restoreSnapshotFromRecycleBinResponse_description - The description for the snapshot.

RestoreSnapshotFromRecycleBinResponse, restoreSnapshotFromRecycleBinResponse_encrypted - Indicates whether the snapshot is encrypted.

RestoreSnapshotFromRecycleBinResponse, restoreSnapshotFromRecycleBinResponse_outpostArn - The ARN of the Outpost on which the snapshot is stored. For more information, see Amazon EBS local snapshots on Outposts in the Amazon Elastic Compute Cloud User Guide.

RestoreSnapshotFromRecycleBinResponse, restoreSnapshotFromRecycleBinResponse_ownerId - The ID of the Amazon Web Services account that owns the EBS snapshot.

RestoreSnapshotFromRecycleBinResponse, restoreSnapshotFromRecycleBinResponse_progress - The progress of the snapshot, as a percentage.

RestoreSnapshotFromRecycleBin, restoreSnapshotFromRecycleBinResponse_snapshotId - The ID of the snapshot.

RestoreSnapshotFromRecycleBinResponse, restoreSnapshotFromRecycleBinResponse_startTime - The time stamp when the snapshot was initiated.

RestoreSnapshotFromRecycleBinResponse, restoreSnapshotFromRecycleBinResponse_state - The state of the snapshot.

RestoreSnapshotFromRecycleBinResponse, restoreSnapshotFromRecycleBinResponse_volumeId - The ID of the volume that was used to create the snapshot.

RestoreSnapshotFromRecycleBinResponse, restoreSnapshotFromRecycleBinResponse_volumeSize - The size of the volume, in GiB.

$sel:httpStatus:RestoreSnapshotFromRecycleBinResponse', restoreSnapshotFromRecycleBinResponse_httpStatus - The response's http status code.

Response Lenses

restoreSnapshotFromRecycleBinResponse_outpostArn :: Lens' RestoreSnapshotFromRecycleBinResponse (Maybe Text) Source #

The ARN of the Outpost on which the snapshot is stored. For more information, see Amazon EBS local snapshots on Outposts in the Amazon Elastic Compute Cloud User Guide.

restoreSnapshotFromRecycleBinResponse_ownerId :: Lens' RestoreSnapshotFromRecycleBinResponse (Maybe Text) Source #

The ID of the Amazon Web Services account that owns the EBS snapshot.