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

export interface DsWorkspaceArgs {
  tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  workspaceId: string | core.StringOut;
}

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

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

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

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

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

  @core.attr(String, { computed: true })
  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 lastUpdatedDate!: string | core.StringOut;

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

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

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

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

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

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

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

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

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

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

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

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

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