SnapshotSchedule

class SnapshotSchedule : KotlinCustomResource

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

Properties

Link copied to clipboard
val arn: Output<String>

Amazon Resource Name (ARN) of the Redshift Snapshot Schedule.

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

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>?

The description of the snapshot schedule.

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

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 id: Output<String>
Link copied to clipboard
val identifier: Output<String>

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.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tags: Output<Map<String, String>>?

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.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>