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

export interface UserGroupArgs extends core.ResourceArgs {
  description?: string | core.StringOut;

  name: string | core.StringOut;

  precedence?: number | core.NumberOut;

  roleArn?: string | core.StringOut;

  userPoolId: string | core.StringOut;
}

export class UserGroup extends core.Resource<UserGroupArgs> {
  @core.attr(String)
  public description?: string | core.StringOut;

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

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

  @core.attr(Number)
  public precedence?: number | core.NumberOut;

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

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

  constructor(name: string, args?: UserGroupArgs) {
    super(name, "aws_cognito_user_group", args);
  }

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