Snapshot

class Snapshot : KotlinCustomResource

Creates a new Amazon Redshift Serverless Snapshot.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.redshiftserverless.Snapshot;
import com.pulumi.aws.redshiftserverless.SnapshotArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Snapshot("example", SnapshotArgs.builder()
.namespaceName(aws_redshiftserverless_workgroup.example().namespace_name())
.snapshotName("example")
.build());
}
}

Import

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

$ pulumi import aws:redshiftserverless/snapshot:Snapshot example example

Properties

Link copied to clipboard

All of the Amazon Web Services accounts that have access to restore a snapshot to a provisioned cluster.

Link copied to clipboard

All of the Amazon Web Services accounts that have access to restore a snapshot to a namespace.

Link copied to clipboard
val adminUsername: Output<String>

The username of the database within a snapshot.

Link copied to clipboard
val arn: Output<String>

The Amazon Resource Name (ARN) of the snapshot.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val kmsKeyId: Output<String>

The unique identifier of the KMS key used to encrypt the snapshot.

Link copied to clipboard
val namespaceArn: Output<String>

The Amazon Resource Name (ARN) of the namespace the snapshot was created from.

Link copied to clipboard
val namespaceName: Output<String>

The namespace to create a snapshot for.

Link copied to clipboard
val ownerAccount: Output<String>

The owner Amazon Web Services; account of the snapshot.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val retentionPeriod: Output<Int>?

How long to retain the created snapshot. Default value is -1.

Link copied to clipboard
val snapshotName: Output<String>

The name of the snapshot.

Link copied to clipboard
val urn: Output<String>