libZSservicesZSamazonka-redshiftZSamazonka-redshift
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.Redshift.Types.Snapshot

Description

 
Synopsis

Documentation

data Snapshot Source #

Describes a snapshot.

See: newSnapshot smart constructor.

Constructors

Snapshot' 

Fields

Instances

Instances details
Eq Snapshot Source # 
Instance details

Defined in Amazonka.Redshift.Types.Snapshot

Read Snapshot Source # 
Instance details

Defined in Amazonka.Redshift.Types.Snapshot

Show Snapshot Source # 
Instance details

Defined in Amazonka.Redshift.Types.Snapshot

Generic Snapshot Source # 
Instance details

Defined in Amazonka.Redshift.Types.Snapshot

Associated Types

type Rep Snapshot :: Type -> Type #

Methods

from :: Snapshot -> Rep Snapshot x #

to :: Rep Snapshot x -> Snapshot #

NFData Snapshot Source # 
Instance details

Defined in Amazonka.Redshift.Types.Snapshot

Methods

rnf :: Snapshot -> () #

Hashable Snapshot Source # 
Instance details

Defined in Amazonka.Redshift.Types.Snapshot

Methods

hashWithSalt :: Int -> Snapshot -> Int #

hash :: Snapshot -> Int #

FromXML Snapshot Source # 
Instance details

Defined in Amazonka.Redshift.Types.Snapshot

type Rep Snapshot Source # 
Instance details

Defined in Amazonka.Redshift.Types.Snapshot

type Rep Snapshot = D1 ('MetaData "Snapshot" "Amazonka.Redshift.Types.Snapshot" "libZSservicesZSamazonka-redshiftZSamazonka-redshift" 'False) (C1 ('MetaCons "Snapshot'" 'PrefixI 'True) (((((S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "restorableNodeTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 ('MetaSel ('Just "accountsWithRestoreAccess") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [AccountWithRestoreAccess])) :*: S1 ('MetaSel ('Just "manualSnapshotRetentionPeriod") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))) :*: ((S1 ('MetaSel ('Just "enhancedVpcRouting") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "snapshotIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "engineFullVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "encryptedWithHSM") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))))) :*: (((S1 ('MetaSel ('Just "masterUsername") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "sourceRegion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "maintenanceTrackName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "snapshotRetentionStartTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)))) :*: ((S1 ('MetaSel ('Just "manualSnapshotRemainingDays") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "vpcId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "backupProgressInMegaBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: (S1 ('MetaSel ('Just "encrypted") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "clusterIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))) :*: ((((S1 ('MetaSel ('Just "numberOfNodes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "snapshotType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "kmsKeyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "availabilityZone") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "currentBackupRateInMegaBytesPerSecond") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "snapshotCreateTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601))) :*: (S1 ('MetaSel ('Just "clusterVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "ownerAccount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: (((S1 ('MetaSel ('Just "nodeType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "elapsedTimeInSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer))) :*: (S1 ('MetaSel ('Just "clusterCreateTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)) :*: S1 ('MetaSel ('Just "estimatedSecondsToCompletion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)))) :*: ((S1 ('MetaSel ('Just "actualIncrementalBackupSizeInMegaBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag]))) :*: (S1 ('MetaSel ('Just "port") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "totalBackupSizeInMegaBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "dbName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))))))

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_masterUsername :: Lens' Snapshot (Maybe Text) Source #

The admin user name for the cluster.

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_numberOfNodes :: Lens' Snapshot (Maybe Int) Source #

The number of nodes in the cluster.

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_nodeType :: Lens' Snapshot (Maybe Text) Source #

The node type of the nodes in the cluster.

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_tags :: Lens' Snapshot (Maybe [Tag]) Source #

The list of tags for the cluster snapshot.

snapshot_port :: Lens' Snapshot (Maybe Int) Source #

The port that the cluster is listening on.

snapshot_totalBackupSizeInMegaBytes :: Lens' Snapshot (Maybe Double) Source #

The size of the complete set of backup data that would be used to restore the cluster.

snapshot_dbName :: Lens' Snapshot (Maybe Text) Source #

The name of the database that was created when the cluster was created.