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

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)"],
});
import pulumi
import pulumi_aws as aws
default = aws.redshift.SnapshotSchedule("default",
identifier="tf-redshift-snapshot-schedule",
definitions=["rate(12 hours)"])
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)",
},
});
});
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
})
}
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());
}
}
resources:
default:
type: aws:redshift:SnapshotSchedule
properties:
identifier: tf-redshift-snapshot-schedule
definitions:
- rate(12 hours)

Import

Using pulumi import, import Redshift Snapshot Schedule using the identifier. For example:

$ 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