SnapshotScheduleArgs

data class SnapshotScheduleArgs(val definitions: Output<List<String>>? = null, val description: Output<String>? = null, val forceDestroy: Output<Boolean>? = null, val identifier: Output<String>? = null, val identifierPrefix: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<SnapshotScheduleArgs>

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.redshift.SnapshotSchedule;
import com.pulumi.aws.redshift.SnapshotScheduleArgs;
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 default_ = new SnapshotSchedule("default", SnapshotScheduleArgs.builder()
.definitions("rate(12 hours)")
.identifier("tf-redshift-snapshot-schedule")
.build());
}
}

Import

Redshift Snapshot Schedule can be imported using the identifier, e.g.,

$ pulumi import aws:redshift/snapshotSchedule:SnapshotSchedule default tf-redshift-snapshot-schedule

Constructors

Link copied to clipboard
constructor(definitions: Output<List<String>>? = null, description: Output<String>? = null, forceDestroy: Output<Boolean>? = null, identifier: Output<String>? = null, identifierPrefix: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

The definition of the snapshot schedule. The definition is made up of schedule expressions, for example cron(30 12 *) or rate(12 hours).

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

The description of the snapshot schedule.

Link copied to clipboard
val forceDestroy: Output<Boolean>? = null

Whether to destroy all associated clusters with this snapshot schedule on deletion. Must be enabled and applied before attempting deletion.

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

The snapshot schedule identifier. If omitted, this provider will assign a random, unique identifier.

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

Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.

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(): SnapshotScheduleArgs