Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data Snapshot = Snapshot' {
- dataEncryptionKeyId :: Maybe Text
- kmsKeyId :: Maybe Text
- outpostArn :: Maybe Text
- ownerAlias :: Maybe Text
- restoreExpiryTime :: Maybe ISO8601
- stateMessage :: Maybe Text
- storageTier :: Maybe StorageTier
- tags :: Maybe [Tag]
- snapshotId :: Text
- ownerId :: Text
- volumeId :: Text
- volumeSize :: Int
- description :: Text
- startTime :: ISO8601
- progress :: Text
- state :: SnapshotState
- encrypted :: Bool
- newSnapshot :: Text -> Text -> Text -> Int -> Text -> UTCTime -> Text -> SnapshotState -> Bool -> Snapshot
- snapshot_dataEncryptionKeyId :: Lens' Snapshot (Maybe Text)
- snapshot_kmsKeyId :: Lens' Snapshot (Maybe Text)
- snapshot_outpostArn :: Lens' Snapshot (Maybe Text)
- snapshot_ownerAlias :: Lens' Snapshot (Maybe Text)
- snapshot_restoreExpiryTime :: Lens' Snapshot (Maybe UTCTime)
- snapshot_stateMessage :: Lens' Snapshot (Maybe Text)
- snapshot_storageTier :: Lens' Snapshot (Maybe StorageTier)
- snapshot_tags :: Lens' Snapshot (Maybe [Tag])
- snapshot_snapshotId :: Lens' Snapshot Text
- snapshot_ownerId :: Lens' Snapshot Text
- snapshot_volumeId :: Lens' Snapshot Text
- snapshot_volumeSize :: Lens' Snapshot Int
- snapshot_description :: Lens' Snapshot Text
- snapshot_startTime :: Lens' Snapshot UTCTime
- snapshot_progress :: Lens' Snapshot Text
- snapshot_state :: Lens' Snapshot SnapshotState
- snapshot_encrypted :: Lens' Snapshot Bool
Documentation
Describes a snapshot.
See: newSnapshot
smart constructor.
Snapshot' | |
|
Instances
Create a value of Snapshot
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:dataEncryptionKeyId:Snapshot'
, snapshot_dataEncryptionKeyId
- The data encryption key identifier for the snapshot. This value is a
unique identifier that corresponds to the data encryption key that was
used to encrypt the original volume or snapshot copy. Because data
encryption keys are inherited by volumes created from snapshots, and
vice versa, if snapshots share the same data encryption key identifier,
then they belong to the same volume/snapshot lineage. This parameter is
only returned by DescribeSnapshots.
$sel:kmsKeyId:Snapshot'
, snapshot_kmsKeyId
- The Amazon Resource Name (ARN) of the Key Management Service (KMS) KMS
key that was used to protect the volume encryption key for the parent
volume.
$sel:outpostArn:Snapshot'
, snapshot_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.
$sel:ownerAlias:Snapshot'
, snapshot_ownerAlias
- The Amazon Web Services owner alias, from an Amazon-maintained list
(amazon
). This is not the user-configured Amazon Web Services account
alias set using the IAM console.
$sel:restoreExpiryTime:Snapshot'
, snapshot_restoreExpiryTime
- Only for archived snapshots that are temporarily restored. Indicates the
date and time when a temporarily restored snapshot will be automatically
re-archived.
$sel:stateMessage:Snapshot'
, snapshot_stateMessage
- Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot
copy operation fails (for example, if the proper Key Management Service
(KMS) permissions are not obtained) this field displays error state
details to help you diagnose why the error occurred. This parameter is
only returned by DescribeSnapshots.
$sel:storageTier:Snapshot'
, snapshot_storageTier
- The storage tier in which the snapshot is stored. standard
indicates
that the snapshot is stored in the standard snapshot storage tier and
that it is ready for use. archive
indicates that the snapshot is
currently archived and that it must be restored before it can be used.
$sel:tags:Snapshot'
, snapshot_tags
- Any tags assigned to the snapshot.
$sel:snapshotId:Snapshot'
, snapshot_snapshotId
- The ID of the snapshot. Each snapshot receives a unique identifier when
it is created.
$sel:ownerId:Snapshot'
, snapshot_ownerId
- The ID of the Amazon Web Services account that owns the EBS snapshot.
$sel:volumeId:Snapshot'
, snapshot_volumeId
- The ID of the volume that was used to create the snapshot. Snapshots
created by the CopySnapshot action have an arbitrary volume ID that
should not be used for any purpose.
$sel:volumeSize:Snapshot'
, snapshot_volumeSize
- The size of the volume, in GiB.
$sel:description:Snapshot'
, snapshot_description
- The description for the snapshot.
$sel:startTime:Snapshot'
, snapshot_startTime
- The time stamp when the snapshot was initiated.
$sel:progress:Snapshot'
, snapshot_progress
- The progress of the snapshot, as a percentage.
$sel:state:Snapshot'
, snapshot_state
- The snapshot state.
$sel:encrypted:Snapshot'
, snapshot_encrypted
- Indicates whether the snapshot is encrypted.
snapshot_dataEncryptionKeyId :: Lens' Snapshot (Maybe Text) Source #
The data encryption key identifier for the snapshot. This value is a unique identifier that corresponds to the data encryption key that was used to encrypt the original volume or snapshot copy. Because data encryption keys are inherited by volumes created from snapshots, and vice versa, if snapshots share the same data encryption key identifier, then they belong to the same volume/snapshot lineage. This parameter is only returned by DescribeSnapshots.
snapshot_kmsKeyId :: Lens' Snapshot (Maybe Text) Source #
The Amazon Resource Name (ARN) of the Key Management Service (KMS) KMS key that was used to protect the volume encryption key for the parent volume.
snapshot_outpostArn :: Lens' Snapshot (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.
snapshot_ownerAlias :: Lens' Snapshot (Maybe Text) Source #
The Amazon Web Services owner alias, from an Amazon-maintained list
(amazon
). This is not the user-configured Amazon Web Services account
alias set using the IAM console.
snapshot_restoreExpiryTime :: Lens' Snapshot (Maybe UTCTime) Source #
Only for archived snapshots that are temporarily restored. Indicates the date and time when a temporarily restored snapshot will be automatically re-archived.
snapshot_stateMessage :: Lens' Snapshot (Maybe Text) Source #
Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy operation fails (for example, if the proper Key Management Service (KMS) permissions are not obtained) this field displays error state details to help you diagnose why the error occurred. This parameter is only returned by DescribeSnapshots.
snapshot_storageTier :: Lens' Snapshot (Maybe StorageTier) Source #
The storage tier in which the snapshot is stored. standard
indicates
that the snapshot is stored in the standard snapshot storage tier and
that it is ready for use. archive
indicates that the snapshot is
currently archived and that it must be restored before it can be used.
snapshot_snapshotId :: Lens' Snapshot Text Source #
The ID of the snapshot. Each snapshot receives a unique identifier when it is created.
snapshot_ownerId :: Lens' Snapshot Text Source #
The ID of the Amazon Web Services account that owns the EBS snapshot.
snapshot_volumeId :: Lens' Snapshot Text Source #
The ID of the volume that was used to create the snapshot. Snapshots created by the CopySnapshot action have an arbitrary volume ID that should not be used for any purpose.
snapshot_startTime :: Lens' Snapshot UTCTime Source #
The time stamp when the snapshot was initiated.
snapshot_state :: Lens' Snapshot SnapshotState Source #
The snapshot state.