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

export interface WorkspaceArgs extends core.ResourceArgs {
  accountAccessType: string | core.StringOut;

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

  dataSources?: core.Array<string> | core.ArrayOut<core.StringOut>;

  description?: string | core.StringOut;

  name?: string | core.StringOut;

  notificationDestinations?: core.Array<string> | core.ArrayOut<core.StringOut>;

  organizationRoleName?: string | core.StringOut;

  organizationalUnits?: core.Array<string> | core.ArrayOut<core.StringOut>;

  permissionType: string | core.StringOut;

  roleArn?: string | core.StringOut;

  stackSetName?: string | core.StringOut;

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

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

export class Workspace extends core.Resource<WorkspaceArgs> {
  @core.attr(String)
  public accountAccessType!: string | core.StringOut;

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

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

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

  @core.attr(String)
  public description?: string | core.StringOut;

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

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

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

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

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

  @core.attr(String)
  public organizationRoleName?: string | core.StringOut;

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

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

  @core.attr(String)
  public roleArn?: string | core.StringOut;

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

  @core.attr(String)
  public stackSetName?: 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>;

  constructor(name: string, args?: WorkspaceArgs) {
    super(name, "aws_grafana_workspace", args);
  }

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