import * as core from "@terrascript/core"; export interface SnapshotScheduleArgs extends core.ResourceArgs { /** * (Optional) The definition of the snapshot schedule. The definition is made up of schedule expression * s, for example `cron(30 12 *)` or `rate(12 hours)`. */ definitions: core.Array | core.ArrayOut; /** * (Optional) The description of the snapshot schedule. */ description?: string | core.StringOut; /** * (Optional) Whether to destroy all associated clusters with this snapshot schedule on deletion. Must * be enabled and applied before attempting deletion. */ forceDestroy?: boolean | core.BooleanOut; /** * (Optional, Forces new resource) The snapshot schedule identifier. If omitted, Terraform will assign * a random, unique identifier. */ identifier?: string | core.StringOut; /** * (Optional, Forces new resource) Creates a unique */ identifierPrefix?: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; } export class SnapshotSchedule extends core.Resource { /** * Amazon Resource Name (ARN) of the Redshift Snapshot Schedule. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) The definition of the snapshot schedule. The definition is made up of schedule expression * s, for example `cron(30 12 *)` or `rate(12 hours)`. */ @core.attr(String, { kind: "array" }) public definitions!: core.Array | core.ArrayOut; /** * (Optional) The description of the snapshot schedule. */ @core.attr(String) public description?: string | core.StringOut; /** * (Optional) Whether to destroy all associated clusters with this snapshot schedule on deletion. Must * be enabled and applied before attempting deletion. */ @core.attr(Boolean) public forceDestroy?: boolean | core.BooleanOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional, Forces new resource) The snapshot schedule identifier. If omitted, Terraform will assign * a random, unique identifier. */ @core.attr(String, { computed: true }) public identifier?: string | core.StringOut; /** * (Optional, Forces new resource) Creates a unique */ @core.attr(String, { computed: true }) public identifierPrefix?: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; constructor(name: string, args?: SnapshotScheduleArgs) { super(name, "aws_redshift_snapshot_schedule", args); } public override getNamespace(): string { return "aws_redshift"; } }