libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.StorageGateway.CreateSnapshotFromVolumeRecoveryPoint

Description

Initiates a snapshot of a gateway from a volume recovery point. This operation is only supported in the cached volume gateway type.

A volume recovery point is a point in time at which all data of the volume is consistent and from which you can create a snapshot. To get a list of volume recovery point for cached volume gateway, use ListVolumeRecoveryPoints.

In the CreateSnapshotFromVolumeRecoveryPoint request, you identify the volume by providing its Amazon Resource Name (ARN). You must also provide a description for the snapshot. When the gateway takes a snapshot of the specified volume, the snapshot and its description appear in the Storage Gateway console. In response, the gateway returns you a snapshot ID. You can use this snapshot ID to check the snapshot progress or later use it when you want to create a volume from a snapshot.

To list or delete a snapshot, you must use the Amazon EC2 API. For more information, see DescribeSnapshots or DeleteSnapshot in the Amazon Elastic Compute Cloud API Reference.

Synopsis

Creating a Request

data CreateSnapshotFromVolumeRecoveryPoint Source #

Constructors

CreateSnapshotFromVolumeRecoveryPoint' 

Fields

  • tags :: Maybe [Tag]

    A list of up to 50 tags that can be assigned to a snapshot. Each tag is a key-value pair.

    Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.

  • volumeARN :: Text

    The Amazon Resource Name (ARN) of the iSCSI volume target. Use the DescribeStorediSCSIVolumes operation to return to retrieve the TargetARN for specified VolumeARN.

  • snapshotDescription :: Text

    Textual description of the snapshot that appears in the Amazon EC2 console, Elastic Block Store snapshots panel in the Description field, and in the Storage Gateway snapshot Details pane, Description field.

Instances

Instances details
Eq CreateSnapshotFromVolumeRecoveryPoint Source # 
Instance details

Defined in Amazonka.StorageGateway.CreateSnapshotFromVolumeRecoveryPoint

Read CreateSnapshotFromVolumeRecoveryPoint Source # 
Instance details

Defined in Amazonka.StorageGateway.CreateSnapshotFromVolumeRecoveryPoint

Show CreateSnapshotFromVolumeRecoveryPoint Source # 
Instance details

Defined in Amazonka.StorageGateway.CreateSnapshotFromVolumeRecoveryPoint

Generic CreateSnapshotFromVolumeRecoveryPoint Source # 
Instance details

Defined in Amazonka.StorageGateway.CreateSnapshotFromVolumeRecoveryPoint

NFData CreateSnapshotFromVolumeRecoveryPoint Source # 
Instance details

Defined in Amazonka.StorageGateway.CreateSnapshotFromVolumeRecoveryPoint

Hashable CreateSnapshotFromVolumeRecoveryPoint Source # 
Instance details

Defined in Amazonka.StorageGateway.CreateSnapshotFromVolumeRecoveryPoint

ToJSON CreateSnapshotFromVolumeRecoveryPoint Source # 
Instance details

Defined in Amazonka.StorageGateway.CreateSnapshotFromVolumeRecoveryPoint

AWSRequest CreateSnapshotFromVolumeRecoveryPoint Source # 
Instance details

Defined in Amazonka.StorageGateway.CreateSnapshotFromVolumeRecoveryPoint

ToHeaders CreateSnapshotFromVolumeRecoveryPoint Source # 
Instance details

Defined in Amazonka.StorageGateway.CreateSnapshotFromVolumeRecoveryPoint

ToPath CreateSnapshotFromVolumeRecoveryPoint Source # 
Instance details

Defined in Amazonka.StorageGateway.CreateSnapshotFromVolumeRecoveryPoint

ToQuery CreateSnapshotFromVolumeRecoveryPoint Source # 
Instance details

Defined in Amazonka.StorageGateway.CreateSnapshotFromVolumeRecoveryPoint

type Rep CreateSnapshotFromVolumeRecoveryPoint Source # 
Instance details

Defined in Amazonka.StorageGateway.CreateSnapshotFromVolumeRecoveryPoint

type Rep CreateSnapshotFromVolumeRecoveryPoint = D1 ('MetaData "CreateSnapshotFromVolumeRecoveryPoint" "Amazonka.StorageGateway.CreateSnapshotFromVolumeRecoveryPoint" "libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway" 'False) (C1 ('MetaCons "CreateSnapshotFromVolumeRecoveryPoint'" 'PrefixI 'True) (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: (S1 ('MetaSel ('Just "volumeARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "snapshotDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse CreateSnapshotFromVolumeRecoveryPoint Source # 
Instance details

Defined in Amazonka.StorageGateway.CreateSnapshotFromVolumeRecoveryPoint

newCreateSnapshotFromVolumeRecoveryPoint Source #

Create a value of CreateSnapshotFromVolumeRecoveryPoint 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:tags:CreateSnapshotFromVolumeRecoveryPoint', createSnapshotFromVolumeRecoveryPoint_tags - A list of up to 50 tags that can be assigned to a snapshot. Each tag is a key-value pair.

Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.

$sel:volumeARN:CreateSnapshotFromVolumeRecoveryPoint', createSnapshotFromVolumeRecoveryPoint_volumeARN - The Amazon Resource Name (ARN) of the iSCSI volume target. Use the DescribeStorediSCSIVolumes operation to return to retrieve the TargetARN for specified VolumeARN.

$sel:snapshotDescription:CreateSnapshotFromVolumeRecoveryPoint', createSnapshotFromVolumeRecoveryPoint_snapshotDescription - Textual description of the snapshot that appears in the Amazon EC2 console, Elastic Block Store snapshots panel in the Description field, and in the Storage Gateway snapshot Details pane, Description field.

Request Lenses

createSnapshotFromVolumeRecoveryPoint_tags :: Lens' CreateSnapshotFromVolumeRecoveryPoint (Maybe [Tag]) Source #

A list of up to 50 tags that can be assigned to a snapshot. Each tag is a key-value pair.

Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.

createSnapshotFromVolumeRecoveryPoint_volumeARN :: Lens' CreateSnapshotFromVolumeRecoveryPoint Text Source #

The Amazon Resource Name (ARN) of the iSCSI volume target. Use the DescribeStorediSCSIVolumes operation to return to retrieve the TargetARN for specified VolumeARN.

createSnapshotFromVolumeRecoveryPoint_snapshotDescription :: Lens' CreateSnapshotFromVolumeRecoveryPoint Text Source #

Textual description of the snapshot that appears in the Amazon EC2 console, Elastic Block Store snapshots panel in the Description field, and in the Storage Gateway snapshot Details pane, Description field.

Destructuring the Response

data CreateSnapshotFromVolumeRecoveryPointResponse Source #

Constructors

CreateSnapshotFromVolumeRecoveryPointResponse' 

Fields

Instances

Instances details
Eq CreateSnapshotFromVolumeRecoveryPointResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.CreateSnapshotFromVolumeRecoveryPoint

Read CreateSnapshotFromVolumeRecoveryPointResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.CreateSnapshotFromVolumeRecoveryPoint

Show CreateSnapshotFromVolumeRecoveryPointResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.CreateSnapshotFromVolumeRecoveryPoint

Generic CreateSnapshotFromVolumeRecoveryPointResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.CreateSnapshotFromVolumeRecoveryPoint

NFData CreateSnapshotFromVolumeRecoveryPointResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.CreateSnapshotFromVolumeRecoveryPoint

type Rep CreateSnapshotFromVolumeRecoveryPointResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.CreateSnapshotFromVolumeRecoveryPoint

type Rep CreateSnapshotFromVolumeRecoveryPointResponse = D1 ('MetaData "CreateSnapshotFromVolumeRecoveryPointResponse" "Amazonka.StorageGateway.CreateSnapshotFromVolumeRecoveryPoint" "libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway" 'False) (C1 ('MetaCons "CreateSnapshotFromVolumeRecoveryPointResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "volumeRecoveryPointTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "volumeARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "snapshotId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newCreateSnapshotFromVolumeRecoveryPointResponse Source #

Create a value of CreateSnapshotFromVolumeRecoveryPointResponse 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:volumeRecoveryPointTime:CreateSnapshotFromVolumeRecoveryPointResponse', createSnapshotFromVolumeRecoveryPointResponse_volumeRecoveryPointTime - The time the volume was created from the recovery point.

$sel:volumeARN:CreateSnapshotFromVolumeRecoveryPoint', createSnapshotFromVolumeRecoveryPointResponse_volumeARN - The Amazon Resource Name (ARN) of the iSCSI volume target. Use the DescribeStorediSCSIVolumes operation to return to retrieve the TargetARN for specified VolumeARN.

$sel:snapshotId:CreateSnapshotFromVolumeRecoveryPointResponse', createSnapshotFromVolumeRecoveryPointResponse_snapshotId - The ID of the snapshot.

$sel:httpStatus:CreateSnapshotFromVolumeRecoveryPointResponse', createSnapshotFromVolumeRecoveryPointResponse_httpStatus - The response's http status code.

Response Lenses

createSnapshotFromVolumeRecoveryPointResponse_volumeARN :: Lens' CreateSnapshotFromVolumeRecoveryPointResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the iSCSI volume target. Use the DescribeStorediSCSIVolumes operation to return to retrieve the TargetARN for specified VolumeARN.