Snapshot Schedule Args
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
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const _default = new aws.redshift.SnapshotSchedule("default", {
identifier: "tf-redshift-snapshot-schedule",
definitions: ["rate(12 hours)"],
});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
default = aws.redshift.SnapshotSchedule("default",
identifier="tf-redshift-snapshot-schedule",
definitions=["rate(12 hours)"])
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var @default = new Aws.RedShift.SnapshotSchedule("default", new()
{
Identifier = "tf-redshift-snapshot-schedule",
Definitions = new[]
{
"rate(12 hours)",
},
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/redshift"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := redshift.NewSnapshotSchedule(ctx, "default", &redshift.SnapshotScheduleArgs{
Identifier: pulumi.String("tf-redshift-snapshot-schedule"),
Definitions: pulumi.StringArray{
pulumi.String("rate(12 hours)"),
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
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()
.identifier("tf-redshift-snapshot-schedule")
.definitions("rate(12 hours)")
.build());
}
}
Content copied to clipboard
resources:
default:
type: aws:redshift:SnapshotSchedule
properties:
identifier: tf-redshift-snapshot-schedule
definitions:
- rate(12 hours)
Content copied to clipboard
Import
Using pulumi import
, import Redshift Snapshot Schedule using the identifier
. For example:
$ pulumi import aws:redshift/snapshotSchedule:SnapshotSchedule default tf-redshift-snapshot-schedule
Content copied to clipboard
Constructors
Properties
Link copied to clipboard
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
The description of the snapshot schedule.
Link copied to clipboard
Whether to destroy all associated clusters with this snapshot schedule on deletion. Must be enabled and applied before attempting deletion.
Link copied to clipboard
The snapshot schedule identifier. If omitted, this provider will assign a random, unique identifier.
Link copied to clipboard
Creates a unique identifier beginning with the specified prefix. Conflicts with identifier
.