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

export interface OnPremConfigArgs extends core.SchemaArgs {
  agentArns: core.Array<string> | core.ArrayOut<core.StringOut>;
}

export class OnPremConfig extends core.Schema<OnPremConfigArgs> {
  @core.attr(String, { kind: "array" })
  public agentArns!: core.Array<string> | core.ArrayOut<core.StringOut>;
}

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 LocationNfsArgs extends core.ResourceArgs {
  mountOptions?: MountOptions;

  onPremConfig: OnPremConfig;

  serverHostname: string | 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 LocationNfs extends core.Resource<LocationNfsArgs> {
  @core.attr(String, { computed: true })
  public arn!: string | core.StringOut;

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

  @core.attr(MountOptions)
  public mountOptions?: MountOptions;

  @core.attr(OnPremConfig)
  public onPremConfig!: OnPremConfig;

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

  @core.attr(String)
  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?: LocationNfsArgs) {
    super(name, "aws_datasync_location_nfs", args);
  }

  public override getNamespace(): string {
    return "aws_datasync";
  }
}
