ClusterSnapshotArgs

data class ClusterSnapshotArgs(val dbClusterIdentifier: Output<String>? = null, val dbClusterSnapshotIdentifier: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ClusterSnapshotArgs>

Manages an RDS database cluster snapshot for Aurora clusters. For managing RDS database instance snapshots, see the aws.rds.Snapshot resource.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.rds.ClusterSnapshot;
import com.pulumi.aws.rds.ClusterSnapshotArgs;
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 ClusterSnapshot("example", ClusterSnapshotArgs.builder()
.dbClusterIdentifier(aws_rds_cluster.example().id())
.dbClusterSnapshotIdentifier("resourcetestsnapshot1234")
.build());
}
}

Import

aws_db_cluster_snapshot can be imported by using the cluster snapshot identifier, e.g.,

$ pulumi import aws:rds/clusterSnapshot:ClusterSnapshot example my-cluster-snapshot

Constructors

Link copied to clipboard
constructor(dbClusterIdentifier: Output<String>? = null, dbClusterSnapshotIdentifier: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val dbClusterIdentifier: Output<String>? = null

The DB Cluster Identifier from which to take the snapshot.

Link copied to clipboard
val dbClusterSnapshotIdentifier: Output<String>? = null

The Identifier for the snapshot.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A map of tags to assign to the DB cluster. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Functions

Link copied to clipboard
open override fun toJava(): ClusterSnapshotArgs