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

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

  userName: string | core.StringOut;
}

export class DsUser extends core.Data<DsUserArgs> {
  @core.attr(String, { computed: true })
  public arn!: 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(String, { computed: true })
  public permissionsBoundary!: string | core.StringOut;

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

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

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

  constructor(name: string, args?: DsUserArgs) {
    super(name, "aws_iam_user", args);
  }

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