// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Elastic Kubernetes Service */ export interface DataAwsEksNodeGroupsConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/eks_node_groups.html#cluster_name DataAwsEksNodeGroups#cluster_name} */ readonly clusterName: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/d/eks_node_groups.html aws_eks_node_groups} */ export class DataAwsEksNodeGroups extends cdktf.TerraformDataSource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_eks_node_groups"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/d/eks_node_groups.html aws_eks_node_groups} Data Source * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options DataAwsEksNodeGroupsConfig */ public constructor(scope: Construct, id: string, config: DataAwsEksNodeGroupsConfig) { super(scope, id, { terraformResourceType: 'aws_eks_node_groups', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._clusterName = config.clusterName; } // ========== // ATTRIBUTES // ========== // cluster_name - computed: false, optional: false, required: true private _clusterName?: string; public get clusterName() { return this.getStringAttribute('cluster_name'); } public set clusterName(value: string) { this._clusterName = value; } // Temporarily expose input value. Use with caution. public get clusterNameInput() { return this._clusterName; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // names - computed: true, optional: false, required: false public get names() { return this.getListAttribute('names'); } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { cluster_name: cdktf.stringToTerraform(this._clusterName), }; } }