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

export interface RoleAssociationArgs extends core.ResourceArgs {
  groupIds?: core.Array<string> | core.ArrayOut<core.StringOut>;

  role: string | core.StringOut;

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

  workspaceId: string | core.StringOut;
}

export class RoleAssociation extends core.Resource<RoleAssociationArgs> {
  @core.attr(String, { kind: "array" })
  public groupIds?: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

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

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

  constructor(name: string, args?: RoleAssociationArgs) {
    super(name, "aws_grafana_role_association", args);
  }

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