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

export interface WorkspaceAccessPropertiesArgs extends core.SchemaArgs {
  deviceTypeAndroid: string | core.StringOut;

  deviceTypeChromeos: string | core.StringOut;

  deviceTypeIos: string | core.StringOut;

  deviceTypeLinux: string | core.StringOut;

  deviceTypeOsx: string | core.StringOut;

  deviceTypeWeb: string | core.StringOut;

  deviceTypeWindows: string | core.StringOut;

  deviceTypeZeroclient: string | core.StringOut;
}

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

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

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

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

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

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

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

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

export interface WorkspaceCreationPropertiesArgs extends core.SchemaArgs {
  customSecurityGroupId: string | core.StringOut;

  defaultOu: string | core.StringOut;

  enableInternetAccess: boolean | core.BooleanOut;

  enableMaintenanceMode: boolean | core.BooleanOut;

  userEnabledAsLocalAdministrator: boolean | core.BooleanOut;
}

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

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

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

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

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

export interface SelfServicePermissionsArgs extends core.SchemaArgs {
  changeComputeType: boolean | core.BooleanOut;

  increaseVolumeSize: boolean | core.BooleanOut;

  rebuildWorkspace: boolean | core.BooleanOut;

  restartWorkspace: boolean | core.BooleanOut;

  switchRunningMode: boolean | core.BooleanOut;
}

export class SelfServicePermissions extends core.Schema<SelfServicePermissionsArgs> {
  @core.attr(Boolean, { computed: true })
  public changeComputeType!: boolean | core.BooleanOut;

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

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

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

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

export interface DsDirectoryArgs {
  directoryId: string | core.StringOut;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DsDirectoryArgs) {
    super(name, "aws_workspaces_directory", args);
  }

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