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

export interface UsersArgs extends core.SchemaArgs {
  arn: string | core.StringOut;

  path: string | core.StringOut;

  userId: string | core.StringOut;

  userName: string | core.StringOut;
}

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

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

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

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

export interface DsGroupArgs {
  groupName: string | core.StringOut;
}

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

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

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

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

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

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

  constructor(name: string, args?: DsGroupArgs) {
    super(name, "aws_iam_group", args);
  }

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