Resource: awsRedshiftClusterSnapshot
Creates a Redshift cluster snapshot
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.redshiftClusterSnapshot.RedshiftClusterSnapshot(this, "example", {
cluster_snapshot_content:
'${jsonencode(\n {\n AllowDBUserOverride = "1"\n Client_ID = "ExampleClientID"\n App_ID = "example"\n }\n )}',
cluster_snapshot_name: "example",
});
Argument Reference
The following arguments are supported:
clusterIdentifier
- (Required, Forces new resource) The cluster identifier for which you want a snapshot.snapshotIdentifier
- (Required, Forces new resource) A unique identifier for the snapshot that you are requesting. This identifier must be unique for all snapshots within the Amazon Web Services account.manualSnapshotRetentionPeriod
- (Optional) The number of days that a manual snapshot is retained. If the value is1
, the manual snapshot is retained indefinitely. Valid values are -1 and between1
and3653
.tags
- (Optional) A map of tags to assign to the resource. If configured with a providerdefaultTags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
arn
- Amazon Resource Name (ARN) of the snapshot.id
- A unique identifier for the snapshot that you are requesting. This identifiermust be unique for all snapshots within the Amazon Web Services account.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.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.tagsAll
- A map of tags assigned to the resource, including those inherited from the providerdefaultTags
configuration block.
Import
Redshift Cluster Snapshots support import by snapshotIdentifier
, e.g.,