ClusterSnapshotArgs

data class ClusterSnapshotArgs(val clusterIdentifier: Output<String>? = null, val manualSnapshotRetentionPeriod: Output<Int>? = null, val snapshotIdentifier: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ClusterSnapshotArgs>

Creates a Redshift cluster snapshot

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.redshift.ClusterSnapshot;
import com.pulumi.aws.redshift.ClusterSnapshotArgs;
import static com.pulumi.codegen.internal.Serialization.*;
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()
.clusterSnapshotName("example")
.clusterSnapshotContent(serializeJson(
jsonObject(
jsonProperty("AllowDBUserOverride", "1"),
jsonProperty("Client_ID", "ExampleClientID"),
jsonProperty("App_ID", "example")
)))
.build());
}
}

Import

Redshift Cluster Snapshots support import by snapshot_identifier, e.g., console

$ pulumi import aws:redshift/clusterSnapshot:ClusterSnapshot test example

Constructors

Link copied to clipboard
constructor(clusterIdentifier: Output<String>? = null, manualSnapshotRetentionPeriod: Output<Int>? = null, snapshotIdentifier: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

The cluster identifier for which you want a snapshot.

Link copied to clipboard
val manualSnapshotRetentionPeriod: Output<Int>? = null

The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely. Valid values are -1 and between 1 and 3653.

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

A unique identifier for the snapshot that you are requesting. This identifier must be unique for all snapshots within the Amazon Web Services account.

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

A map of tags to assign to the resource. 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