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

export interface DsAddonVersionArgs {
  addonName: string | core.StringOut;

  kubernetesVersion: string | core.StringOut;

  mostRecent?: boolean | core.BooleanOut;
}

export class DsAddonVersion extends core.Data<DsAddonVersionArgs> {
  @core.attr(String)
  public addonName!: string | core.StringOut;

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

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

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

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

  constructor(name: string, args?: DsAddonVersionArgs) {
    super(name, "aws_eks_addon_version", args);
  }

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