import * as core from "@terrascript/core";

export interface MountOptionsArgs extends core.SchemaArgs {
  version?: string | core.StringOut;
}

export class MountOptions extends core.Schema<MountOptionsArgs> {
  @core.attr(String)
  public version?: string | core.StringOut;
}

export interface NfsArgs extends core.SchemaArgs {
  mountOptions: MountOptions;
}

export class Nfs extends core.Schema<NfsArgs> {
  @core.attr(MountOptions)
  public mountOptions!: MountOptions;
}

export interface ProtocolArgs extends core.SchemaArgs {
  nfs: Nfs;
}

export class Protocol extends core.Schema<ProtocolArgs> {
  @core.attr(Nfs)
  public nfs!: Nfs;
}

export interface LocationFsxOpenzfsFileSystemArgs extends core.ResourceArgs {
  fsxFilesystemArn: string | core.StringOut;

  protocol: Protocol;

  securityGroupArns: core.Array<string> | core.ArrayOut<core.StringOut>;

  subdirectory?: string | core.StringOut;

  tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;
}

export class LocationFsxOpenzfsFileSystem extends core.Resource<LocationFsxOpenzfsFileSystemArgs> {
  @core.attr(String, { computed: true })
  public arn!: string | core.StringOut;

  @core.attr(String, { computed: true })
  public creationTime!: string | core.StringOut;

  @core.attr(String)
  public fsxFilesystemArn!: string | core.StringOut;

  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

  @core.attr(Protocol)
  public protocol!: Protocol;

  @core.attr(String, { kind: "array" })
  public securityGroupArns!: core.Array<string> | core.ArrayOut<core.StringOut>;

  @core.attr(String, { computed: true })
  public subdirectory?: string | core.StringOut;

  @core.attr(String, { kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  @core.attr(String, { computed: true, kind: "map" })
  public tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;

  @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";
  }
}
