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 LocationSmbArgs extends core.ResourceArgs {
  agentArns: core.Array<string> | core.ArrayOut<core.StringOut>;

  domain?: string | core.StringOut;

  mountOptions?: MountOptions;

  password: string | core.StringOut;

  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>;

  user: string | core.StringOut;
}

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

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

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

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

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

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

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

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

  constructor(name: string, args?: LocationSmbArgs) {
    super(name, "aws_datasync_location_smb", args);
  }

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