SnapshotSchedule
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var @default = new Aws.RedShift.SnapshotSchedule("default", new Aws.RedShift.SnapshotScheduleArgs
{
Definitions =
{
"rate(12 hours)",
},
Identifier = "tf-redshift-snapshot-schedule",
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/redshift"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := redshift.NewSnapshotSchedule(ctx, "_default", &redshift.SnapshotScheduleArgs{
Definitions: pulumi.StringArray{
pulumi.String("rate(12 hours)"),
},
Identifier: pulumi.String("tf-redshift-snapshot-schedule"),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
default = aws.redshift.SnapshotSchedule("default",
definitions=["rate(12 hours)"],
identifier="tf-redshift-snapshot-schedule")import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const defaultSnapshotSchedule = new aws.redshift.SnapshotSchedule("default", {
definitions: ["rate(12 hours)"],
identifier: "tf-redshift-snapshot-schedule",
});Create a SnapshotSchedule Resource
new SnapshotSchedule(name: string, args: SnapshotScheduleArgs, opts?: CustomResourceOptions);def SnapshotSchedule(resource_name, opts=None, definitions=None, description=None, force_destroy=None, identifier=None, identifier_prefix=None, tags=None, __props__=None);func NewSnapshotSchedule(ctx *Context, name string, args SnapshotScheduleArgs, opts ...ResourceOption) (*SnapshotSchedule, error)public SnapshotSchedule(string name, SnapshotScheduleArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args SnapshotScheduleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SnapshotScheduleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SnapshotScheduleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
SnapshotSchedule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The SnapshotSchedule resource accepts the following input properties:
- Definitions List<string>
The definition of the snapshot schedule. The definition is made up of schedule expressions, for example
cron(30 12 *)orrate(12 hours).- Description string
The description of the snapshot schedule.
- Force
Destroy bool Whether to destroy all associated clusters with this snapshot schedule on deletion. Must be enabled and applied before attempting deletion.
- Identifier string
The snapshot schedule identifier. If omitted, this provider will assign a random, unique identifier.
- Identifier
Prefix string Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier.- Dictionary<string, string>
A map of tags to assign to the resource.
- Definitions []string
The definition of the snapshot schedule. The definition is made up of schedule expressions, for example
cron(30 12 *)orrate(12 hours).- Description string
The description of the snapshot schedule.
- Force
Destroy bool Whether to destroy all associated clusters with this snapshot schedule on deletion. Must be enabled and applied before attempting deletion.
- Identifier string
The snapshot schedule identifier. If omitted, this provider will assign a random, unique identifier.
- Identifier
Prefix string Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier.- map[string]string
A map of tags to assign to the resource.
- definitions string[]
The definition of the snapshot schedule. The definition is made up of schedule expressions, for example
cron(30 12 *)orrate(12 hours).- description string
The description of the snapshot schedule.
- force
Destroy boolean Whether to destroy all associated clusters with this snapshot schedule on deletion. Must be enabled and applied before attempting deletion.
- identifier string
The snapshot schedule identifier. If omitted, this provider will assign a random, unique identifier.
- identifier
Prefix string Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier.- {[key: string]: string}
A map of tags to assign to the resource.
- definitions List[str]
The definition of the snapshot schedule. The definition is made up of schedule expressions, for example
cron(30 12 *)orrate(12 hours).- description str
The description of the snapshot schedule.
- force_
destroy bool Whether to destroy all associated clusters with this snapshot schedule on deletion. Must be enabled and applied before attempting deletion.
- identifier str
The snapshot schedule identifier. If omitted, this provider will assign a random, unique identifier.
- identifier_
prefix str Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier.- Dict[str, str]
A map of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the SnapshotSchedule resource produces the following output properties:
Look up an Existing SnapshotSchedule Resource
Get an existing SnapshotSchedule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SnapshotScheduleState, opts?: CustomResourceOptions): SnapshotSchedulestatic get(resource_name, id, opts=None, arn=None, definitions=None, description=None, force_destroy=None, identifier=None, identifier_prefix=None, tags=None, __props__=None);func GetSnapshotSchedule(ctx *Context, name string, id IDInput, state *SnapshotScheduleState, opts ...ResourceOption) (*SnapshotSchedule, error)public static SnapshotSchedule Get(string name, Input<string> id, SnapshotScheduleState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Arn string
- Definitions List<string>
The definition of the snapshot schedule. The definition is made up of schedule expressions, for example
cron(30 12 *)orrate(12 hours).- Description string
The description of the snapshot schedule.
- Force
Destroy bool Whether to destroy all associated clusters with this snapshot schedule on deletion. Must be enabled and applied before attempting deletion.
- Identifier string
The snapshot schedule identifier. If omitted, this provider will assign a random, unique identifier.
- Identifier
Prefix string Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier.- Dictionary<string, string>
A map of tags to assign to the resource.
- Arn string
- Definitions []string
The definition of the snapshot schedule. The definition is made up of schedule expressions, for example
cron(30 12 *)orrate(12 hours).- Description string
The description of the snapshot schedule.
- Force
Destroy bool Whether to destroy all associated clusters with this snapshot schedule on deletion. Must be enabled and applied before attempting deletion.
- Identifier string
The snapshot schedule identifier. If omitted, this provider will assign a random, unique identifier.
- Identifier
Prefix string Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier.- map[string]string
A map of tags to assign to the resource.
- arn string
- definitions string[]
The definition of the snapshot schedule. The definition is made up of schedule expressions, for example
cron(30 12 *)orrate(12 hours).- description string
The description of the snapshot schedule.
- force
Destroy boolean Whether to destroy all associated clusters with this snapshot schedule on deletion. Must be enabled and applied before attempting deletion.
- identifier string
The snapshot schedule identifier. If omitted, this provider will assign a random, unique identifier.
- identifier
Prefix string Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier.- {[key: string]: string}
A map of tags to assign to the resource.
- arn str
- definitions List[str]
The definition of the snapshot schedule. The definition is made up of schedule expressions, for example
cron(30 12 *)orrate(12 hours).- description str
The description of the snapshot schedule.
- force_
destroy bool Whether to destroy all associated clusters with this snapshot schedule on deletion. Must be enabled and applied before attempting deletion.
- identifier str
The snapshot schedule identifier. If omitted, this provider will assign a random, unique identifier.
- identifier_
prefix str Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier.- Dict[str, str]
A map of tags to assign to the resource.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.