import * as core from "@terrascript/core"; export interface LifecycleArgs extends core.SchemaArgs { coldStorageAfter?: number | core.NumberOut; deleteAfter?: number | core.NumberOut; } export class Lifecycle extends core.Schema { @core.attr(Number) public coldStorageAfter?: number | core.NumberOut; @core.attr(Number) public deleteAfter?: number | core.NumberOut; } export interface CopyActionArgs extends core.SchemaArgs { destinationVaultArn: string | core.StringOut; lifecycle?: Lifecycle; } export class CopyAction extends core.Schema { @core.attr(String) public destinationVaultArn!: string | core.StringOut; @core.attr(Lifecycle) public lifecycle?: Lifecycle; } export interface RuleArgs extends core.SchemaArgs { completionWindow?: number | core.NumberOut; copyAction?: core.Array | core.ArrayOut; enableContinuousBackup?: boolean | core.BooleanOut; lifecycle?: Lifecycle; recoveryPointTags?: core.Map | core.MapOut; ruleName: string | core.StringOut; schedule?: string | core.StringOut; startWindow?: number | core.NumberOut; targetVaultName: string | core.StringOut; } export class Rule extends core.Schema { @core.attr(Number) public completionWindow?: number | core.NumberOut; @core.attr(CopyAction, { kind: "array" }) public copyAction?: core.Array | core.ArrayOut; @core.attr(Boolean) public enableContinuousBackup?: boolean | core.BooleanOut; @core.attr(Lifecycle) public lifecycle?: Lifecycle; @core.attr(String, { kind: "map" }) public recoveryPointTags?: | core.Map | core.MapOut; @core.attr(String) public ruleName!: string | core.StringOut; @core.attr(String) public schedule?: string | core.StringOut; @core.attr(Number) public startWindow?: number | core.NumberOut; @core.attr(String) public targetVaultName!: string | core.StringOut; } export interface AdvancedBackupSettingArgs extends core.SchemaArgs { backupOptions: core.Map | core.MapOut; resourceType: string | core.StringOut; } export class AdvancedBackupSetting extends core.Schema { @core.attr(String, { kind: "map" }) public backupOptions!: core.Map | core.MapOut; @core.attr(String) public resourceType!: string | core.StringOut; } export interface PlanArgs extends core.ResourceArgs { /** * (Optional) An object that specifies backup options for each resource type. */ advancedBackupSetting?: | core.Array | core.ArrayOut; /** * (Required) The display name of a backup plan. */ name: string | core.StringOut; /** * (Required) A rule object that specifies a scheduled task that is used to back up a selection of reso * urces. */ rule: core.Array | core.ArrayOut; /** * (Optional) Metadata that you can assign to help organize the plans you create. If configured with a * provider [`default_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/ * latest/docs#default_tags-configuration-block) present, tags with matching keys will overwrite those * defined at the provider-level. */ 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 Plan extends core.Resource { /** * (Optional) An object that specifies backup options for each resource type. */ @core.attr(AdvancedBackupSetting, { kind: "array" }) public advancedBackupSetting?: | core.Array | core.ArrayOut; /** * The ARN of the backup plan. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * The id of the backup plan. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The display name of a backup plan. */ @core.attr(String) public name!: string | core.StringOut; /** * (Required) A rule object that specifies a scheduled task that is used to back up a selection of reso * urces. */ @core.attr(Rule, { kind: "array" }) public rule!: core.Array | core.ArrayOut; /** * (Optional) Metadata that you can assign to help organize the plans you create. If configured with a * provider [`default_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/ * latest/docs#default_tags-configuration-block) present, tags with matching keys will overwrite those * defined at the provider-level. */ @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; /** * Unique, randomly generated, Unicode, UTF-8 encoded string that serves as the version ID of the backu * p plan. */ @core.attr(String, { computed: true }) public version!: string | core.StringOut; constructor(name: string, args?: PlanArgs) { super(name, "aws_backup_plan", args); } public override getNamespace(): string { return "aws_backup"; } }