Cluster Snapshot Args
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());
}
}
Content copied to clipboard
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
Content copied to clipboard