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

export interface ProfileArgs extends core.ResourceArgs {
  durationSeconds?: number | core.NumberOut;

  enabled?: boolean | core.BooleanOut;

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

  name: string | core.StringOut;

  requireInstanceProperties?: boolean | core.BooleanOut;

  roleArns: core.Array<string> | core.ArrayOut<core.StringOut>;

  sessionPolicy?: string | core.StringOut;

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

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

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

  @core.attr(Number, { computed: true })
  public durationSeconds?: number | core.NumberOut;

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

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

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

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

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

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

  @core.attr(String)
  public sessionPolicy?: 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>;

  constructor(name: string, args?: ProfileArgs) {
    super(name, "aws_rolesanywhere_profile", args);
  }

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