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

export interface DsSolutionStackArgs {
  mostRecent?: boolean | core.BooleanOut;

  nameRegex: string | core.StringOut;
}

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

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

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

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

  constructor(name: string, args?: DsSolutionStackArgs) {
    super(name, "aws_elastic_beanstalk_solution_stack", args);
  }

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