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

export interface WorkspacePropertiesArgs extends core.SchemaArgs {
  computeTypeName: string | core.StringOut;

  rootVolumeSizeGib: number | core.NumberOut;

  runningMode: string | core.StringOut;

  runningModeAutoStopTimeoutInMinutes: number | core.NumberOut;

  userVolumeSizeGib: number | core.NumberOut;
}

export class WorkspaceProperties extends core.Schema<WorkspacePropertiesArgs> {
  @core.attr(String, { computed: true })
  public computeTypeName!: string | core.StringOut;

  @core.attr(Number, { computed: true })
  public rootVolumeSizeGib!: number | core.NumberOut;

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

  @core.attr(Number, { computed: true })
  public runningModeAutoStopTimeoutInMinutes!: number | core.NumberOut;

  @core.attr(Number, { computed: true })
  public userVolumeSizeGib!: number | core.NumberOut;
}

export interface DsWorkspaceArgs {
  directoryId?: string | core.StringOut;

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

  userName?: string | core.StringOut;

  workspaceId?: string | core.StringOut;
}

export class DsWorkspace extends core.Data<DsWorkspaceArgs> {
  @core.attr(String, { computed: true })
  public bundleId!: string | core.StringOut;

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

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

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

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

  @core.attr(Boolean, { computed: true })
  public rootVolumeEncryptionEnabled!: boolean | core.BooleanOut;

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

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

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

  @core.attr(Boolean, { computed: true })
  public userVolumeEncryptionEnabled!: boolean | core.BooleanOut;

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

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

  @core.attr(WorkspaceProperties, { computed: true, kind: "array" })
  public workspaceProperties!:
    | core.Array<WorkspaceProperties>
    | core.ArrayOut<WorkspaceProperties>;

  constructor(name: string, args?: DsWorkspaceArgs) {
    super(name, "aws_workspaces_workspace", args);
  }

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