import * as core from "@terrascript/core"; export interface InputParameterArgs extends core.SchemaArgs { name?: string | core.StringOut; value?: string | core.StringOut; } export class InputParameter extends core.Schema { @core.attr(String) public name?: string | core.StringOut; @core.attr(String) public value?: string | core.StringOut; } export interface ScopeArgs extends core.SchemaArgs { complianceResourceIds?: core.Array | core.ArrayOut; complianceResourceTypes?: core.Array | core.ArrayOut; tags?: core.Map | core.MapOut; } export class Scope extends core.Schema { @core.attr(String, { kind: "array" }) public complianceResourceIds?: | core.Array | core.ArrayOut; @core.attr(String, { kind: "array" }) public complianceResourceTypes?: | core.Array | core.ArrayOut; @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; } export interface ControlArgs extends core.SchemaArgs { inputParameter?: core.Array | core.ArrayOut; name: string | core.StringOut; scope?: Scope; } export class Control extends core.Schema { @core.attr(InputParameter, { kind: "array" }) public inputParameter?: | core.Array | core.ArrayOut; @core.attr(String) public name!: string | core.StringOut; @core.attr(Scope) public scope?: Scope; } export interface FrameworkArgs extends core.ResourceArgs { /** * (Required) One or more control blocks that make up the framework. Each control in the list has a nam * e, input parameters, and scope. Detailed below. */ control: core.Array | core.ArrayOut; /** * (Optional) The description of the framework with a maximum of 1,024 characters */ description?: string | core.StringOut; /** * (Required) The unique name of the framework. The name must be between 1 and 256 characters, starting * with a letter, and consisting of letters, numbers, and underscores. */ name: string | core.StringOut; /** * (Optional) Metadata that you can assign to help organize the frameworks you create. If configured wi * th 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 t * hose 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 Framework extends core.Resource { /** * The ARN of the backup framework. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Required) One or more control blocks that make up the framework. Each control in the list has a nam * e, input parameters, and scope. Detailed below. */ @core.attr(Control, { kind: "array" }) public control!: core.Array | core.ArrayOut; /** * The date and time that a framework is created, in Unix format and Coordinated Universal Time (UTC). */ @core.attr(String, { computed: true }) public creationTime!: string | core.StringOut; /** * The deployment status of a framework. The statuses are: `CREATE_IN_PROGRESS` | `UPDATE_IN_PROGRESS` * | `DELETE_IN_PROGRESS` | `COMPLETED` | `FAILED`. */ @core.attr(String, { computed: true }) public deploymentStatus!: string | core.StringOut; /** * (Optional) The description of the framework with a maximum of 1,024 characters */ @core.attr(String) public description?: string | core.StringOut; /** * The id of the backup framework. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The unique name of the framework. The name must be between 1 and 256 characters, starting * with a letter, and consisting of letters, numbers, and underscores. */ @core.attr(String) public name!: string | core.StringOut; /** * A framework consists of one or more controls. Each control governs a resource, such as backup plans, * backup selections, backup vaults, or recovery points. You can also turn AWS Config recording on or * off for each resource. For more information refer to the [AWS documentation for Framework Status](ht * tps://docs.aws.amazon.com/aws-backup/latest/devguide/API_DescribeFramework.html#Backup-DescribeFrame * work-response-FrameworkStatus) */ @core.attr(String, { computed: true }) public status!: string | core.StringOut; /** * (Optional) Metadata that you can assign to help organize the frameworks you create. If configured wi * th 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 t * hose 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; constructor(name: string, args?: FrameworkArgs) { super(name, "aws_backup_framework", args); } public override getNamespace(): string { return "aws_backup"; } }