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

export interface UserArgs extends core.ResourceArgs {
  forceDestroy?: boolean | core.BooleanOut;

  name: string | core.StringOut;

  path?: string | core.StringOut;

  permissionsBoundary?: string | core.StringOut;

  tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;
}

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

  @core.attr(Boolean)
  public forceDestroy?: boolean | core.BooleanOut;

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

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

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

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

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

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

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

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

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