Cluster Snapshot Args
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());
}
}
Content copied to clipboard
Import
Redshift Cluster Snapshots support import by snapshot_identifier
, e.g., console
$ pulumi import aws:redshift/clusterSnapshot:ClusterSnapshot test example
Content copied to clipboard
Constructors
Properties
Link copied to clipboard
The cluster identifier for which you want a snapshot.
Link copied to clipboard
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
A unique identifier for the snapshot that you are requesting. This identifier must be unique for all snapshots within the Amazon Web Services account.