Skip to content

Resource: awsRedshiftserverlessSnapshot

Creates a new Amazon Redshift Serverless 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.redshiftserverlessSnapshot.RedshiftserverlessSnapshot(this, "example", {
  namespaceName: "${aws_redshiftserverless_workgroup.example.namespace_name}",
  snapshotName: "example",
});

Argument Reference

The following arguments are supported:

  • namespaceName - (Required) The namespace to create a snapshot for.
  • snapshotName - (Required) The name of the snapshot.
  • retentionPeriod - (Optional) How long to retain the created snapshot. Default value is 1.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • accountsWithProvisionedRestoreAccess - All of the Amazon Web Services accounts that have access to restore a snapshot to a provisioned cluster.
  • accountsWithRestoreAccess - All of the Amazon Web Services accounts that have access to restore a snapshot to a namespace.
  • adminUsername - The username of the database within a snapshot.
  • arn - The Amazon Resource Name (ARN) of the snapshot.
  • id - The name of the snapshot.
  • kmsKeyId - The unique identifier of the KMS key used to encrypt the snapshot.
  • namespaceArn - The Amazon Resource Name (ARN) of the namespace the snapshot was created from.
  • ownerAccount - The owner Amazon Web Services; account of the snapshot.

Import

Redshift Serverless Snapshots can be imported using the snapshotName, e.g.,

$ terraform import aws_redshiftserverless_snapshot.example example