Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data Snapshot = Snapshot' {
- status :: Maybe Text
- restorableNodeTypes :: Maybe [Text]
- accountsWithRestoreAccess :: Maybe [AccountWithRestoreAccess]
- manualSnapshotRetentionPeriod :: Maybe Int
- enhancedVpcRouting :: Maybe Bool
- snapshotIdentifier :: Maybe Text
- engineFullVersion :: Maybe Text
- encryptedWithHSM :: Maybe Bool
- masterUsername :: Maybe Text
- sourceRegion :: Maybe Text
- maintenanceTrackName :: Maybe Text
- snapshotRetentionStartTime :: Maybe ISO8601
- manualSnapshotRemainingDays :: Maybe Int
- vpcId :: Maybe Text
- backupProgressInMegaBytes :: Maybe Double
- encrypted :: Maybe Bool
- clusterIdentifier :: Maybe Text
- numberOfNodes :: Maybe Int
- snapshotType :: Maybe Text
- kmsKeyId :: Maybe Text
- availabilityZone :: Maybe Text
- currentBackupRateInMegaBytesPerSecond :: Maybe Double
- snapshotCreateTime :: Maybe ISO8601
- clusterVersion :: Maybe Text
- ownerAccount :: Maybe Text
- nodeType :: Maybe Text
- elapsedTimeInSeconds :: Maybe Integer
- clusterCreateTime :: Maybe ISO8601
- estimatedSecondsToCompletion :: Maybe Integer
- actualIncrementalBackupSizeInMegaBytes :: Maybe Double
- tags :: Maybe [Tag]
- port :: Maybe Int
- totalBackupSizeInMegaBytes :: Maybe Double
- dbName :: Maybe Text
- newSnapshot :: Snapshot
- snapshot_status :: Lens' Snapshot (Maybe Text)
- snapshot_restorableNodeTypes :: Lens' Snapshot (Maybe [Text])
- snapshot_accountsWithRestoreAccess :: Lens' Snapshot (Maybe [AccountWithRestoreAccess])
- snapshot_manualSnapshotRetentionPeriod :: Lens' Snapshot (Maybe Int)
- snapshot_enhancedVpcRouting :: Lens' Snapshot (Maybe Bool)
- snapshot_snapshotIdentifier :: Lens' Snapshot (Maybe Text)
- snapshot_engineFullVersion :: Lens' Snapshot (Maybe Text)
- snapshot_encryptedWithHSM :: Lens' Snapshot (Maybe Bool)
- snapshot_masterUsername :: Lens' Snapshot (Maybe Text)
- snapshot_sourceRegion :: Lens' Snapshot (Maybe Text)
- snapshot_maintenanceTrackName :: Lens' Snapshot (Maybe Text)
- snapshot_snapshotRetentionStartTime :: Lens' Snapshot (Maybe UTCTime)
- snapshot_manualSnapshotRemainingDays :: Lens' Snapshot (Maybe Int)
- snapshot_vpcId :: Lens' Snapshot (Maybe Text)
- snapshot_backupProgressInMegaBytes :: Lens' Snapshot (Maybe Double)
- snapshot_encrypted :: Lens' Snapshot (Maybe Bool)
- snapshot_clusterIdentifier :: Lens' Snapshot (Maybe Text)
- snapshot_numberOfNodes :: Lens' Snapshot (Maybe Int)
- snapshot_snapshotType :: Lens' Snapshot (Maybe Text)
- snapshot_kmsKeyId :: Lens' Snapshot (Maybe Text)
- snapshot_availabilityZone :: Lens' Snapshot (Maybe Text)
- snapshot_currentBackupRateInMegaBytesPerSecond :: Lens' Snapshot (Maybe Double)
- snapshot_snapshotCreateTime :: Lens' Snapshot (Maybe UTCTime)
- snapshot_clusterVersion :: Lens' Snapshot (Maybe Text)
- snapshot_ownerAccount :: Lens' Snapshot (Maybe Text)
- snapshot_nodeType :: Lens' Snapshot (Maybe Text)
- snapshot_elapsedTimeInSeconds :: Lens' Snapshot (Maybe Integer)
- snapshot_clusterCreateTime :: Lens' Snapshot (Maybe UTCTime)
- snapshot_estimatedSecondsToCompletion :: Lens' Snapshot (Maybe Integer)
- snapshot_actualIncrementalBackupSizeInMegaBytes :: Lens' Snapshot (Maybe Double)
- snapshot_tags :: Lens' Snapshot (Maybe [Tag])
- snapshot_port :: Lens' Snapshot (Maybe Int)
- snapshot_totalBackupSizeInMegaBytes :: Lens' Snapshot (Maybe Double)
- snapshot_dbName :: Lens' Snapshot (Maybe Text)
Documentation
Describes a snapshot.
See: newSnapshot
smart constructor.
Snapshot' | |
|
Instances
newSnapshot :: Snapshot Source #
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:status:Snapshot'
, snapshot_status
- The snapshot status. The value of the status depends on the API
operation used:
- CreateClusterSnapshot and CopyClusterSnapshot returns status as "creating".
- DescribeClusterSnapshots returns status as "creating", "available", "final snapshot", or "failed".
- DeleteClusterSnapshot returns status as "deleted".
$sel:restorableNodeTypes:Snapshot'
, snapshot_restorableNodeTypes
- The list of node types that this cluster snapshot is able to restore
into.
$sel:accountsWithRestoreAccess:Snapshot'
, snapshot_accountsWithRestoreAccess
- A list of the Amazon Web Services accounts authorized to restore the
snapshot. Returns null
if no accounts are authorized. Visible only to
the snapshot owner.
$sel:manualSnapshotRetentionPeriod:Snapshot'
, snapshot_manualSnapshotRetentionPeriod
- The number of days that a manual snapshot is retained. If the value is
-1, the manual snapshot is retained indefinitely.
The value must be either -1 or an integer between 1 and 3,653.
$sel:enhancedVpcRouting:Snapshot'
, snapshot_enhancedVpcRouting
- An option that specifies whether to create the cluster with enhanced VPC
routing enabled. To create a cluster that uses enhanced VPC routing, the
cluster must be in a VPC. For more information, see
Enhanced VPC Routing
in the Amazon Redshift Cluster Management Guide.
If this option is true
, enhanced VPC routing is enabled.
Default: false
$sel:snapshotIdentifier:Snapshot'
, snapshot_snapshotIdentifier
- The snapshot identifier that is provided in the request.
$sel:engineFullVersion:Snapshot'
, snapshot_engineFullVersion
- The cluster version of the cluster used to create the snapshot. For
example, 1.0.15503.
$sel:encryptedWithHSM:Snapshot'
, snapshot_encryptedWithHSM
- A boolean that indicates whether the snapshot data is encrypted using
the HSM keys of the source cluster. true
indicates that the data is
encrypted using HSM keys.
$sel:masterUsername:Snapshot'
, snapshot_masterUsername
- The admin user name for the cluster.
$sel:sourceRegion:Snapshot'
, snapshot_sourceRegion
- The source region from which the snapshot was copied.
$sel:maintenanceTrackName:Snapshot'
, snapshot_maintenanceTrackName
- The name of the maintenance track for the snapshot.
$sel:snapshotRetentionStartTime:Snapshot'
, snapshot_snapshotRetentionStartTime
- A timestamp representing the start of the retention period for the
snapshot.
$sel:manualSnapshotRemainingDays:Snapshot'
, snapshot_manualSnapshotRemainingDays
- The number of days until a manual snapshot will pass its retention
period.
$sel:vpcId:Snapshot'
, snapshot_vpcId
- The VPC identifier of the cluster if the snapshot is from a cluster in a
VPC. Otherwise, this field is not in the output.
$sel:backupProgressInMegaBytes:Snapshot'
, snapshot_backupProgressInMegaBytes
- The number of megabytes that have been transferred to the snapshot
backup.
$sel:encrypted:Snapshot'
, snapshot_encrypted
- If true
, the data in the snapshot is encrypted at rest.
$sel:clusterIdentifier:Snapshot'
, snapshot_clusterIdentifier
- The identifier of the cluster for which the snapshot was taken.
$sel:numberOfNodes:Snapshot'
, snapshot_numberOfNodes
- The number of nodes in the cluster.
$sel:snapshotType:Snapshot'
, snapshot_snapshotType
- The snapshot type. Snapshots created using CreateClusterSnapshot and
CopyClusterSnapshot are of type "manual".
$sel:kmsKeyId:Snapshot'
, snapshot_kmsKeyId
- The Key Management Service (KMS) key ID of the encryption key that was
used to encrypt data in the cluster from which the snapshot was taken.
$sel:availabilityZone:Snapshot'
, snapshot_availabilityZone
- The Availability Zone in which the cluster was created.
$sel:currentBackupRateInMegaBytesPerSecond:Snapshot'
, snapshot_currentBackupRateInMegaBytesPerSecond
- The number of megabytes per second being transferred to the snapshot
backup. Returns 0
for a completed backup.
$sel:snapshotCreateTime:Snapshot'
, snapshot_snapshotCreateTime
- The time (in UTC format) when Amazon Redshift began the snapshot. A
snapshot contains a copy of the cluster data as of this exact time.
$sel:clusterVersion:Snapshot'
, snapshot_clusterVersion
- The version ID of the Amazon Redshift engine that is running on the
cluster.
$sel:ownerAccount:Snapshot'
, snapshot_ownerAccount
- For manual snapshots, the Amazon Web Services account used to create or
copy the snapshot. For automatic snapshots, the owner of the cluster.
The owner can perform all snapshot actions, such as sharing a manual
snapshot.
$sel:nodeType:Snapshot'
, snapshot_nodeType
- The node type of the nodes in the cluster.
$sel:elapsedTimeInSeconds:Snapshot'
, snapshot_elapsedTimeInSeconds
- The amount of time an in-progress snapshot backup has been running, or
the amount of time it took a completed backup to finish.
$sel:clusterCreateTime:Snapshot'
, snapshot_clusterCreateTime
- The time (UTC) when the cluster was originally created.
$sel:estimatedSecondsToCompletion:Snapshot'
, snapshot_estimatedSecondsToCompletion
- The estimate of the time remaining before the snapshot backup will
complete. Returns 0
for a completed backup.
$sel:actualIncrementalBackupSizeInMegaBytes:Snapshot'
, snapshot_actualIncrementalBackupSizeInMegaBytes
- The size of the incremental backup.
$sel:tags:Snapshot'
, snapshot_tags
- The list of tags for the cluster snapshot.
$sel:port:Snapshot'
, snapshot_port
- The port that the cluster is listening on.
$sel:totalBackupSizeInMegaBytes:Snapshot'
, snapshot_totalBackupSizeInMegaBytes
- The size of the complete set of backup data that would be used to
restore the cluster.
$sel:dbName:Snapshot'
, snapshot_dbName
- The name of the database that was created when the cluster was created.
snapshot_status :: Lens' Snapshot (Maybe Text) Source #
The snapshot status. The value of the status depends on the API operation used:
- CreateClusterSnapshot and CopyClusterSnapshot returns status as "creating".
- DescribeClusterSnapshots returns status as "creating", "available", "final snapshot", or "failed".
- DeleteClusterSnapshot returns status as "deleted".
snapshot_restorableNodeTypes :: Lens' Snapshot (Maybe [Text]) Source #
The list of node types that this cluster snapshot is able to restore into.
snapshot_accountsWithRestoreAccess :: Lens' Snapshot (Maybe [AccountWithRestoreAccess]) Source #
A list of the Amazon Web Services accounts authorized to restore the
snapshot. Returns null
if no accounts are authorized. Visible only to
the snapshot owner.
snapshot_manualSnapshotRetentionPeriod :: Lens' Snapshot (Maybe Int) Source #
The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely.
The value must be either -1 or an integer between 1 and 3,653.
snapshot_enhancedVpcRouting :: Lens' Snapshot (Maybe Bool) Source #
An option that specifies whether to create the cluster with enhanced VPC routing enabled. To create a cluster that uses enhanced VPC routing, the cluster must be in a VPC. For more information, see Enhanced VPC Routing in the Amazon Redshift Cluster Management Guide.
If this option is true
, enhanced VPC routing is enabled.
Default: false
snapshot_snapshotIdentifier :: Lens' Snapshot (Maybe Text) Source #
The snapshot identifier that is provided in the request.
snapshot_engineFullVersion :: Lens' Snapshot (Maybe Text) Source #
The cluster version of the cluster used to create the snapshot. For example, 1.0.15503.
snapshot_encryptedWithHSM :: Lens' Snapshot (Maybe Bool) Source #
A boolean that indicates whether the snapshot data is encrypted using
the HSM keys of the source cluster. true
indicates that the data is
encrypted using HSM keys.
snapshot_sourceRegion :: Lens' Snapshot (Maybe Text) Source #
The source region from which the snapshot was copied.
snapshot_maintenanceTrackName :: Lens' Snapshot (Maybe Text) Source #
The name of the maintenance track for the snapshot.
snapshot_snapshotRetentionStartTime :: Lens' Snapshot (Maybe UTCTime) Source #
A timestamp representing the start of the retention period for the snapshot.
snapshot_manualSnapshotRemainingDays :: Lens' Snapshot (Maybe Int) Source #
The number of days until a manual snapshot will pass its retention period.
snapshot_vpcId :: Lens' Snapshot (Maybe Text) Source #
The VPC identifier of the cluster if the snapshot is from a cluster in a VPC. Otherwise, this field is not in the output.
snapshot_backupProgressInMegaBytes :: Lens' Snapshot (Maybe Double) Source #
The number of megabytes that have been transferred to the snapshot backup.
snapshot_encrypted :: Lens' Snapshot (Maybe Bool) Source #
If true
, the data in the snapshot is encrypted at rest.
snapshot_clusterIdentifier :: Lens' Snapshot (Maybe Text) Source #
The identifier of the cluster for which the snapshot was taken.
snapshot_snapshotType :: Lens' Snapshot (Maybe Text) Source #
The snapshot type. Snapshots created using CreateClusterSnapshot and CopyClusterSnapshot are of type "manual".
snapshot_kmsKeyId :: Lens' Snapshot (Maybe Text) Source #
The Key Management Service (KMS) key ID of the encryption key that was used to encrypt data in the cluster from which the snapshot was taken.
snapshot_availabilityZone :: Lens' Snapshot (Maybe Text) Source #
The Availability Zone in which the cluster was created.
snapshot_currentBackupRateInMegaBytesPerSecond :: Lens' Snapshot (Maybe Double) Source #
The number of megabytes per second being transferred to the snapshot
backup. Returns 0
for a completed backup.
snapshot_snapshotCreateTime :: Lens' Snapshot (Maybe UTCTime) Source #
The time (in UTC format) when Amazon Redshift began the snapshot. A snapshot contains a copy of the cluster data as of this exact time.
snapshot_clusterVersion :: Lens' Snapshot (Maybe Text) Source #
The version ID of the Amazon Redshift engine that is running on the cluster.
snapshot_ownerAccount :: Lens' Snapshot (Maybe Text) Source #
For manual snapshots, the Amazon Web Services account used to create or copy the snapshot. For automatic snapshots, the owner of the cluster. The owner can perform all snapshot actions, such as sharing a manual snapshot.
snapshot_elapsedTimeInSeconds :: Lens' Snapshot (Maybe Integer) Source #
The amount of time an in-progress snapshot backup has been running, or the amount of time it took a completed backup to finish.
snapshot_clusterCreateTime :: Lens' Snapshot (Maybe UTCTime) Source #
The time (UTC) when the cluster was originally created.
snapshot_estimatedSecondsToCompletion :: Lens' Snapshot (Maybe Integer) Source #
The estimate of the time remaining before the snapshot backup will
complete. Returns 0
for a completed backup.
snapshot_actualIncrementalBackupSizeInMegaBytes :: Lens' Snapshot (Maybe Double) Source #
The size of the incremental backup.