amazonka-ec2-0.3.6: Amazon Elastic Compute Cloud SDK.

Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.CreateSnapshot

Contents

Description

Creates a snapshot of an EBS volume and stores it in Amazon S3. You can use snapshots for backups, to make copies of EBS volumes, and to save data before shutting down an instance.

When a snapshot is created, any AWS Marketplace product codes that are associated with the source volume are propagated to the snapshot.

You can take a snapshot of an attached volume that is in use. However, snapshots only capture data that has been written to your EBS volume at the time the snapshot command is issued; this may exclude any data that has been cached by any applications or the operating system. If you can pause any file systems on the volume long enough to take a snapshot, your snapshot should be complete. However, if you cannot pause all file writes to the volume, you should unmount the volume from within the instance, issue the snapshot command, and then remount the volume to ensure a consistent and complete snapshot. You may remount and use your volume while the snapshot status is pending.

To create a snapshot for EBS volumes that serve as root devices, you should stop the instance before taking the snapshot.

Snapshots that are taken from encrypted volumes are automatically encrypted. Volumes that are created from encrypted snapshots are also automatically encrypted. Your encrypted volumes and any associated snapshots always remain protected.

For more information, see Amazon Elastic Block Store and Amazon EBSEncryption in the Amazon Elastic Compute Cloud User Guide.

http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-CreateSnapshot.html

Synopsis

Request

Request constructor

createSnapshot Source

CreateSnapshot constructor.

The fields accessible through corresponding lenses are:

Request lenses

cs2Description :: Lens' CreateSnapshot (Maybe Text) Source

A description for the snapshot.

cs2DryRun :: Lens' CreateSnapshot (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.

cs2VolumeId :: Lens' CreateSnapshot Text Source

The ID of the EBS volume.

Response

Response constructor

Response lenses

csr1Description :: Lens' CreateSnapshotResponse Text Source

The description for the snapshot.

csr1Encrypted :: Lens' CreateSnapshotResponse Bool Source

Indicates whether the snapshot is encrypted.

csr1KmsKeyId :: Lens' CreateSnapshotResponse (Maybe Text) Source

The full ARN of the AWS Key Management Service (KMS) master key that was used to protect the volume encryption key for the parent volume.

csr1OwnerAlias :: Lens' CreateSnapshotResponse (Maybe Text) Source

The AWS account alias (for example, amazon, self) or AWS account ID that owns the snapshot.

csr1OwnerId :: Lens' CreateSnapshotResponse Text Source

The AWS account ID of the EBS snapshot owner.

csr1Progress :: Lens' CreateSnapshotResponse Text Source

The progress of the snapshot, as a percentage.

csr1StartTime :: Lens' CreateSnapshotResponse UTCTime Source

The time stamp when the snapshot was initiated.

csr1Tags :: Lens' CreateSnapshotResponse [Tag] Source

Any tags assigned to the snapshot.

csr1VolumeSize :: Lens' CreateSnapshotResponse Int Source

The size of the volume, in GiB.