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

export interface DsParameterArgs {
  name: string | core.StringOut;

  withDecryption?: boolean | core.BooleanOut;
}

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

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

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

  @core.attr(String, { computed: true })
  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;

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

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

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