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

export interface DsParametersByPathArgs {
  path: string | core.StringOut;

  recursive?: boolean | core.BooleanOut;

  withDecryption?: boolean | core.BooleanOut;
}

export class DsParametersByPath extends core.Data<DsParametersByPathArgs> {
  @core.attr(String, { computed: true, kind: "array" })
  public arns!: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

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

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

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

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

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

  constructor(name: string, args?: DsParametersByPathArgs) {
    super(name, "aws_ssm_parameters_by_path", args);
  }

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