import * as core from "@terrascript/core"; export interface BackupArgs extends core.ResourceArgs { /** * (Optional) The ID of the file system to back up. Required if backing up Lustre or Windows file syste * ms. */ fileSystemId?: string | core.StringOut; /** * (Optional) A map of tags to assign to the file system. 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. If you have set `copy_tags_to_backups` to true, and you specify one or more tags, no existing * file system tags are copied from the file system to the backup. */ 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; /** * (Optional) The ID of the volume to back up. Required if backing up a ONTAP Volume. */ volumeId?: string | core.StringOut; } export class Backup extends core.Resource { /** * Amazon Resource Name of the backup. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) The ID of the file system to back up. Required if backing up Lustre or Windows file syste * ms. */ @core.attr(String) public fileSystemId?: string | core.StringOut; /** * Identifier of the backup, e.g., `fs-12345678` */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * The ID of the AWS Key Management Service (AWS KMS) key used to encrypt the backup of the Amazon FSx * file system's data at rest. */ @core.attr(String, { computed: true }) public kmsKeyId!: string | core.StringOut; /** * AWS account identifier that created the file system. */ @core.attr(String, { computed: true }) public ownerId!: string | core.StringOut; /** * (Optional) A map of tags to assign to the file system. 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. If you have set `copy_tags_to_backups` to true, and you specify one or more tags, no existing * file system tags are copied from the file system to the backup. */ @core.attr(String, { computed: true, 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; /** * The type of the file system backup. */ @core.attr(String, { computed: true }) public type!: string | core.StringOut; /** * (Optional) The ID of the volume to back up. Required if backing up a ONTAP Volume. */ @core.attr(String) public volumeId?: string | core.StringOut; constructor(name: string, args?: BackupArgs) { super(name, "aws_fsx_backup", args); } public override getNamespace(): string { return "aws_fsx"; } }