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

export interface DsNodeGroupsArgs {
  clusterName: string | core.StringOut;
}

export class DsNodeGroups extends core.Data<DsNodeGroupsArgs> {
  @core.attr(String)
  public clusterName!: string | 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>;

  constructor(name: string, args?: DsNodeGroupsArgs) {
    super(name, "aws_eks_node_groups", args);
  }

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