// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Elastic Kubernetes Service */ export interface DataAwsEksNodeGroupConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/eks_node_group.html#cluster_name DataAwsEksNodeGroup#cluster_name} */ readonly clusterName: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/eks_node_group.html#node_group_name DataAwsEksNodeGroup#node_group_name} */ readonly nodeGroupName: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/eks_node_group.html#tags DataAwsEksNodeGroup#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; } export class DataAwsEksNodeGroupRemoteAccess extends cdktf.ComplexComputedList { // ec2_ssh_key - computed: true, optional: false, required: false public get ec2SshKey() { return this.getStringAttribute('ec2_ssh_key'); } // source_security_group_ids - computed: true, optional: false, required: false public get sourceSecurityGroupIds() { return this.getListAttribute('source_security_group_ids'); } } export class DataAwsEksNodeGroupResourcesAutoscalingGroups extends cdktf.ComplexComputedList { // name - computed: true, optional: false, required: false public get name() { return this.getStringAttribute('name'); } } export class DataAwsEksNodeGroupResources extends cdktf.ComplexComputedList { // autoscaling_groups - computed: true, optional: false, required: false public get autoscalingGroups() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('autoscaling_groups') as any; } // remote_access_security_group_id - computed: true, optional: false, required: false public get remoteAccessSecurityGroupId() { return this.getStringAttribute('remote_access_security_group_id'); } } export class DataAwsEksNodeGroupScalingConfig extends cdktf.ComplexComputedList { // desired_size - computed: true, optional: false, required: false public get desiredSize() { return this.getNumberAttribute('desired_size'); } // max_size - computed: true, optional: false, required: false public get maxSize() { return this.getNumberAttribute('max_size'); } // min_size - computed: true, optional: false, required: false public get minSize() { return this.getNumberAttribute('min_size'); } } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/d/eks_node_group.html aws_eks_node_group} */ export class DataAwsEksNodeGroup extends cdktf.TerraformDataSource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_eks_node_group"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/d/eks_node_group.html aws_eks_node_group} 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 DataAwsEksNodeGroupConfig */ public constructor(scope: Construct, id: string, config: DataAwsEksNodeGroupConfig) { super(scope, id, { terraformResourceType: 'aws_eks_node_group', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._clusterName = config.clusterName; this._nodeGroupName = config.nodeGroupName; this._tags = config.tags; } // ========== // ATTRIBUTES // ========== // ami_type - computed: true, optional: false, required: false public get amiType() { return this.getStringAttribute('ami_type'); } // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // 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; } // disk_size - computed: true, optional: false, required: false public get diskSize() { return this.getNumberAttribute('disk_size'); } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // instance_types - computed: true, optional: false, required: false public get instanceTypes() { return this.getListAttribute('instance_types'); } // labels - computed: true, optional: false, required: false public labels(key: string): string { return new cdktf.StringMap(this, 'labels').lookup(key); } // node_group_name - computed: false, optional: false, required: true private _nodeGroupName?: string; public get nodeGroupName() { return this.getStringAttribute('node_group_name'); } public set nodeGroupName(value: string) { this._nodeGroupName = value; } // Temporarily expose input value. Use with caution. public get nodeGroupNameInput() { return this._nodeGroupName; } // node_role_arn - computed: true, optional: false, required: false public get nodeRoleArn() { return this.getStringAttribute('node_role_arn'); } // release_version - computed: true, optional: false, required: false public get releaseVersion() { return this.getStringAttribute('release_version'); } // remote_access - computed: true, optional: false, required: false public remoteAccess(index: string) { return new DataAwsEksNodeGroupRemoteAccess(this, 'remote_access', index); } // resources - computed: true, optional: false, required: false public resources(index: string) { return new DataAwsEksNodeGroupResources(this, 'resources', index); } // scaling_config - computed: true, optional: false, required: false public scalingConfig(index: string) { return new DataAwsEksNodeGroupScalingConfig(this, 'scaling_config', index); } // status - computed: true, optional: false, required: false public get status() { return this.getStringAttribute('status'); } // subnet_ids - computed: true, optional: false, required: false public get subnetIds() { return this.getListAttribute('subnet_ids'); } // tags - computed: true, optional: true, required: false private _tags?: { [key: string]: string } | cdktf.IResolvable; public get tags() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags') as any; } public set tags(value: { [key: string]: string } | cdktf.IResolvable) { this._tags = value; } public resetTags() { this._tags = undefined; } // Temporarily expose input value. Use with caution. public get tagsInput() { return this._tags; } // version - computed: true, optional: false, required: false public get version() { return this.getStringAttribute('version'); } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { cluster_name: cdktf.stringToTerraform(this._clusterName), node_group_name: cdktf.stringToTerraform(this._nodeGroupName), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), }; } }