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

export interface ParameterArgs extends core.ResourceArgs {
  allowedPattern?: string | core.StringOut;

  arn?: string | core.StringOut;

  dataType?: string | core.StringOut;

  description?: string | core.StringOut;

  insecureValue?: string | core.StringOut;

  keyId?: string | core.StringOut;

  name: string | core.StringOut;

  overwrite?: boolean | core.BooleanOut;

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

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

  tier?: string | core.StringOut;

  type: string | core.StringOut;

  value?: string | core.StringOut;
}

export class Parameter extends core.Resource<ParameterArgs> {
  @core.attr(String)
  public allowedPattern?: string | core.StringOut;

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

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

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

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

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

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

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

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

  @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 tier?: string | core.StringOut;

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

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

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

  constructor(name: string, args?: ParameterArgs) {
    super(name, "aws_ssm_parameter", args);
  }

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