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

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

  expirationDate?: string | core.StringOut;

  iamRole: string | core.StringOut;

  name?: string | core.StringOut;

  registrationLimit?: number | core.NumberOut;

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

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

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

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

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

  @core.attr(Boolean, { computed: true })
  public expired!: boolean | core.BooleanOut;

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

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

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

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

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

  @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?: ActivationArgs) {
    super(name, "aws_ssm_activation", args);
  }

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