import * as core from "@terrascript/core"; export interface OpenzfsSnapshotArgs extends core.ResourceArgs { /** * (Required) The name of the Snapshot. You can use a maximum of 203 alphanumeric characters plus eithe * r _ or - or : or . for the name. */ name: 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 snapshot. This can be the root volume or a child volume. */ volumeId: string | core.StringOut; } export class OpenzfsSnapshot extends core.Resource { /** * Amazon Resource Name of the snapshot. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; @core.attr(String, { computed: true }) public creationTime!: string | core.StringOut; /** * Identifier of the snapshot, e.g., `fsvolsnap-12345678` */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The name of the Snapshot. You can use a maximum of 203 alphanumeric characters plus eithe * r _ or - or : or . for the name. */ @core.attr(String) public name!: 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; /** * (Optional) The ID of the volume to snapshot. This can be the root volume or a child volume. */ @core.attr(String) public volumeId!: string | core.StringOut; constructor(name: string, args?: OpenzfsSnapshotArgs) { super(name, "aws_fsx_openzfs_snapshot", args); } public override getNamespace(): string { return "aws_fsx"; } }