Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
- data CreateSnapshot
- createSnapshot :: Text -> CreateSnapshot
- cs2Description :: Lens' CreateSnapshot (Maybe Text)
- cs2DryRun :: Lens' CreateSnapshot (Maybe Bool)
- cs2VolumeId :: Lens' CreateSnapshot Text
- data CreateSnapshotResponse
- createSnapshotResponse :: Text -> Text -> SnapshotState -> UTCTime -> Text -> Text -> Text -> Int -> Bool -> CreateSnapshotResponse
- csr1Description :: Lens' CreateSnapshotResponse Text
- csr1Encrypted :: Lens' CreateSnapshotResponse Bool
- csr1KmsKeyId :: Lens' CreateSnapshotResponse (Maybe Text)
- csr1OwnerAlias :: Lens' CreateSnapshotResponse (Maybe Text)
- csr1OwnerId :: Lens' CreateSnapshotResponse Text
- csr1Progress :: Lens' CreateSnapshotResponse Text
- csr1SnapshotId :: Lens' CreateSnapshotResponse Text
- csr1StartTime :: Lens' CreateSnapshotResponse UTCTime
- csr1State :: Lens' CreateSnapshotResponse SnapshotState
- csr1Tags :: Lens' CreateSnapshotResponse [Tag]
- csr1VolumeId :: Lens' CreateSnapshotResponse Text
- csr1VolumeSize :: Lens' CreateSnapshotResponse Int
Request
data CreateSnapshot Source
Request constructor
CreateSnapshot
constructor.
The fields accessible through corresponding lenses are:
cs2Description
::
Maybe
Text
cs2DryRun
::
Maybe
Bool
cs2VolumeId
::
Text
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
:: Text | |
-> Text | |
-> SnapshotState | |
-> UTCTime | |
-> Text | |
-> Text | |
-> Text | |
-> Int | |
-> Bool | |
-> CreateSnapshotResponse |
CreateSnapshotResponse
constructor.
The fields accessible through corresponding lenses are:
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.
csr1SnapshotId :: Lens' CreateSnapshotResponse Text Source
The ID of the snapshot.
csr1StartTime :: Lens' CreateSnapshotResponse UTCTime Source
The time stamp when the snapshot was initiated.
csr1State :: Lens' CreateSnapshotResponse SnapshotState Source
The snapshot state.
csr1Tags :: Lens' CreateSnapshotResponse [Tag] Source
Any tags assigned to the snapshot.
csr1VolumeId :: Lens' CreateSnapshotResponse Text Source
The ID of the volume.
csr1VolumeSize :: Lens' CreateSnapshotResponse Int Source
The size of the volume, in GiB.