import * as core from "@terrascript/core"; export interface MountOptionsArgs extends core.SchemaArgs { version?: string | core.StringOut; } export class MountOptions extends core.Schema { @core.attr(String) public version?: string | core.StringOut; } export interface NfsArgs extends core.SchemaArgs { mountOptions: MountOptions; } export class Nfs extends core.Schema { @core.attr(MountOptions) public mountOptions!: MountOptions; } export interface ProtocolArgs extends core.SchemaArgs { nfs: Nfs; } export class Protocol extends core.Schema { @core.attr(Nfs) public nfs!: Nfs; } export interface LocationFsxOpenzfsFileSystemArgs extends core.ResourceArgs { /** * (Required) The Amazon Resource Name (ARN) for the FSx for OpenZfs file system. */ fsxFilesystemArn: string | core.StringOut; /** * (Required) The type of protocol that DataSync uses to access your file system. See below. */ protocol: Protocol; /** * (Optional) The Amazon Resource Names (ARNs) of the security groups that are to use to configure the * FSx for openzfs file system. */ securityGroupArns: core.Array | core.ArrayOut; /** * (Optional) Subdirectory to perform actions as source or destination. Must start with `/fsx`. */ subdirectory?: string | core.StringOut; /** * (Optional) Key-value pairs of resource tags to assign to the DataSync Location. 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 LocationFsxOpenzfsFileSystem extends core.Resource { /** * Amazon Resource Name (ARN) of the DataSync Location. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * The time that the FSx for openzfs location was created. */ @core.attr(String, { computed: true }) public creationTime!: string | core.StringOut; /** * (Required) The Amazon Resource Name (ARN) for the FSx for OpenZfs file system. */ @core.attr(String) public fsxFilesystemArn!: string | core.StringOut; /** * Amazon Resource Name (ARN) of the DataSync Location. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The type of protocol that DataSync uses to access your file system. See below. */ @core.attr(Protocol) public protocol!: Protocol; /** * (Optional) The Amazon Resource Names (ARNs) of the security groups that are to use to configure the * FSx for openzfs file system. */ @core.attr(String, { kind: "array" }) public securityGroupArns!: core.Array | core.ArrayOut; /** * (Optional) Subdirectory to perform actions as source or destination. Must start with `/fsx`. */ @core.attr(String, { computed: true }) public subdirectory?: string | core.StringOut; /** * (Optional) Key-value pairs of resource tags to assign to the DataSync Location. 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; /** * The URL of the FSx for openzfs location that was described. */ @core.attr(String, { computed: true }) public uri!: string | core.StringOut; constructor(name: string, args?: LocationFsxOpenzfsFileSystemArgs) { super(name, "aws_datasync_location_fsx_openzfs_file_system", args); } public override getNamespace(): string { return "aws_datasync"; } }