UNPKG

@cdktf/provider-aws

Version:

Prebuilt aws Provider for Terraform CDK (cdktf)

1,187 lines 260 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q; Object.defineProperty(exports, "__esModule", { value: true }); exports.EksNodeGroup = exports.EksNodeGroupUpdateConfigOutputReference = exports.EksNodeGroupTimeoutsOutputReference = exports.EksNodeGroupTaintList = exports.EksNodeGroupTaintOutputReference = exports.EksNodeGroupScalingConfigOutputReference = exports.EksNodeGroupRemoteAccessOutputReference = exports.EksNodeGroupNodeRepairConfigOutputReference = exports.EksNodeGroupNodeRepairConfigNodeRepairConfigOverridesList = exports.EksNodeGroupNodeRepairConfigNodeRepairConfigOverridesOutputReference = exports.EksNodeGroupLaunchTemplateOutputReference = exports.EksNodeGroupResourcesList = exports.EksNodeGroupResourcesOutputReference = exports.EksNodeGroupResourcesAutoscalingGroupsList = exports.EksNodeGroupResourcesAutoscalingGroupsOutputReference = void 0; exports.eksNodeGroupResourcesAutoscalingGroupsToTerraform = eksNodeGroupResourcesAutoscalingGroupsToTerraform; exports.eksNodeGroupResourcesAutoscalingGroupsToHclTerraform = eksNodeGroupResourcesAutoscalingGroupsToHclTerraform; exports.eksNodeGroupResourcesToTerraform = eksNodeGroupResourcesToTerraform; exports.eksNodeGroupResourcesToHclTerraform = eksNodeGroupResourcesToHclTerraform; exports.eksNodeGroupLaunchTemplateToTerraform = eksNodeGroupLaunchTemplateToTerraform; exports.eksNodeGroupLaunchTemplateToHclTerraform = eksNodeGroupLaunchTemplateToHclTerraform; exports.eksNodeGroupNodeRepairConfigNodeRepairConfigOverridesToTerraform = eksNodeGroupNodeRepairConfigNodeRepairConfigOverridesToTerraform; exports.eksNodeGroupNodeRepairConfigNodeRepairConfigOverridesToHclTerraform = eksNodeGroupNodeRepairConfigNodeRepairConfigOverridesToHclTerraform; exports.eksNodeGroupNodeRepairConfigToTerraform = eksNodeGroupNodeRepairConfigToTerraform; exports.eksNodeGroupNodeRepairConfigToHclTerraform = eksNodeGroupNodeRepairConfigToHclTerraform; exports.eksNodeGroupRemoteAccessToTerraform = eksNodeGroupRemoteAccessToTerraform; exports.eksNodeGroupRemoteAccessToHclTerraform = eksNodeGroupRemoteAccessToHclTerraform; exports.eksNodeGroupScalingConfigToTerraform = eksNodeGroupScalingConfigToTerraform; exports.eksNodeGroupScalingConfigToHclTerraform = eksNodeGroupScalingConfigToHclTerraform; exports.eksNodeGroupTaintToTerraform = eksNodeGroupTaintToTerraform; exports.eksNodeGroupTaintToHclTerraform = eksNodeGroupTaintToHclTerraform; exports.eksNodeGroupTimeoutsToTerraform = eksNodeGroupTimeoutsToTerraform; exports.eksNodeGroupTimeoutsToHclTerraform = eksNodeGroupTimeoutsToHclTerraform; exports.eksNodeGroupUpdateConfigToTerraform = eksNodeGroupUpdateConfigToTerraform; exports.eksNodeGroupUpdateConfigToHclTerraform = eksNodeGroupUpdateConfigToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function eksNodeGroupResourcesAutoscalingGroupsToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } function eksNodeGroupResourcesAutoscalingGroupsToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } class EksNodeGroupResourcesAutoscalingGroupsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // name - computed: true, optional: false, required: false get name() { return this.getStringAttribute('name'); } } exports.EksNodeGroupResourcesAutoscalingGroupsOutputReference = EksNodeGroupResourcesAutoscalingGroupsOutputReference; _a = JSII_RTTI_SYMBOL_1; EksNodeGroupResourcesAutoscalingGroupsOutputReference[_a] = { fqn: "@cdktf/provider-aws.eksNodeGroup.EksNodeGroupResourcesAutoscalingGroupsOutputReference", version: "21.22.1" }; class EksNodeGroupResourcesAutoscalingGroupsList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new EksNodeGroupResourcesAutoscalingGroupsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.EksNodeGroupResourcesAutoscalingGroupsList = EksNodeGroupResourcesAutoscalingGroupsList; _b = JSII_RTTI_SYMBOL_1; EksNodeGroupResourcesAutoscalingGroupsList[_b] = { fqn: "@cdktf/provider-aws.eksNodeGroup.EksNodeGroupResourcesAutoscalingGroupsList", version: "21.22.1" }; function eksNodeGroupResourcesToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } function eksNodeGroupResourcesToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } class EksNodeGroupResourcesOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; // autoscaling_groups - computed: true, optional: false, required: false this._autoscalingGroups = new EksNodeGroupResourcesAutoscalingGroupsList(this, "autoscaling_groups", false); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } get autoscalingGroups() { return this._autoscalingGroups; } // remote_access_security_group_id - computed: true, optional: false, required: false get remoteAccessSecurityGroupId() { return this.getStringAttribute('remote_access_security_group_id'); } } exports.EksNodeGroupResourcesOutputReference = EksNodeGroupResourcesOutputReference; _c = JSII_RTTI_SYMBOL_1; EksNodeGroupResourcesOutputReference[_c] = { fqn: "@cdktf/provider-aws.eksNodeGroup.EksNodeGroupResourcesOutputReference", version: "21.22.1" }; class EksNodeGroupResourcesList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new EksNodeGroupResourcesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.EksNodeGroupResourcesList = EksNodeGroupResourcesList; _d = JSII_RTTI_SYMBOL_1; EksNodeGroupResourcesList[_d] = { fqn: "@cdktf/provider-aws.eksNodeGroup.EksNodeGroupResourcesList", version: "21.22.1" }; function eksNodeGroupLaunchTemplateToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { id: cdktf.stringToTerraform(struct.id), name: cdktf.stringToTerraform(struct.name), version: cdktf.stringToTerraform(struct.version), }; } function eksNodeGroupLaunchTemplateToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { id: { value: cdktf.stringToHclTerraform(struct.id), isBlock: false, type: "simple", storageClassType: "string", }, name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, version: { value: cdktf.stringToHclTerraform(struct.version), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class EksNodeGroupLaunchTemplateOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._id !== undefined) { hasAnyValues = true; internalValueResult.id = this._id; } if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._version !== undefined) { hasAnyValues = true; internalValueResult.version = this._version; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._id = undefined; this._name = undefined; this._version = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._id = value.id; this._name = value.name; this._version = value.version; } } get id() { return this.getStringAttribute('id'); } set id(value) { this._id = value; } resetId() { this._id = undefined; } // Temporarily expose input value. Use with caution. get idInput() { return this._id; } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } resetName() { this._name = undefined; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } get version() { return this.getStringAttribute('version'); } set version(value) { this._version = value; } // Temporarily expose input value. Use with caution. get versionInput() { return this._version; } } exports.EksNodeGroupLaunchTemplateOutputReference = EksNodeGroupLaunchTemplateOutputReference; _e = JSII_RTTI_SYMBOL_1; EksNodeGroupLaunchTemplateOutputReference[_e] = { fqn: "@cdktf/provider-aws.eksNodeGroup.EksNodeGroupLaunchTemplateOutputReference", version: "21.22.1" }; function eksNodeGroupNodeRepairConfigNodeRepairConfigOverridesToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { min_repair_wait_time_mins: cdktf.numberToTerraform(struct.minRepairWaitTimeMins), node_monitoring_condition: cdktf.stringToTerraform(struct.nodeMonitoringCondition), node_unhealthy_reason: cdktf.stringToTerraform(struct.nodeUnhealthyReason), repair_action: cdktf.stringToTerraform(struct.repairAction), }; } function eksNodeGroupNodeRepairConfigNodeRepairConfigOverridesToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { min_repair_wait_time_mins: { value: cdktf.numberToHclTerraform(struct.minRepairWaitTimeMins), isBlock: false, type: "simple", storageClassType: "number", }, node_monitoring_condition: { value: cdktf.stringToHclTerraform(struct.nodeMonitoringCondition), isBlock: false, type: "simple", storageClassType: "string", }, node_unhealthy_reason: { value: cdktf.stringToHclTerraform(struct.nodeUnhealthyReason), isBlock: false, type: "simple", storageClassType: "string", }, repair_action: { value: cdktf.stringToHclTerraform(struct.repairAction), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class EksNodeGroupNodeRepairConfigNodeRepairConfigOverridesOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._minRepairWaitTimeMins !== undefined) { hasAnyValues = true; internalValueResult.minRepairWaitTimeMins = this._minRepairWaitTimeMins; } if (this._nodeMonitoringCondition !== undefined) { hasAnyValues = true; internalValueResult.nodeMonitoringCondition = this._nodeMonitoringCondition; } if (this._nodeUnhealthyReason !== undefined) { hasAnyValues = true; internalValueResult.nodeUnhealthyReason = this._nodeUnhealthyReason; } if (this._repairAction !== undefined) { hasAnyValues = true; internalValueResult.repairAction = this._repairAction; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._minRepairWaitTimeMins = undefined; this._nodeMonitoringCondition = undefined; this._nodeUnhealthyReason = undefined; this._repairAction = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._minRepairWaitTimeMins = value.minRepairWaitTimeMins; this._nodeMonitoringCondition = value.nodeMonitoringCondition; this._nodeUnhealthyReason = value.nodeUnhealthyReason; this._repairAction = value.repairAction; } } get minRepairWaitTimeMins() { return this.getNumberAttribute('min_repair_wait_time_mins'); } set minRepairWaitTimeMins(value) { this._minRepairWaitTimeMins = value; } // Temporarily expose input value. Use with caution. get minRepairWaitTimeMinsInput() { return this._minRepairWaitTimeMins; } get nodeMonitoringCondition() { return this.getStringAttribute('node_monitoring_condition'); } set nodeMonitoringCondition(value) { this._nodeMonitoringCondition = value; } // Temporarily expose input value. Use with caution. get nodeMonitoringConditionInput() { return this._nodeMonitoringCondition; } get nodeUnhealthyReason() { return this.getStringAttribute('node_unhealthy_reason'); } set nodeUnhealthyReason(value) { this._nodeUnhealthyReason = value; } // Temporarily expose input value. Use with caution. get nodeUnhealthyReasonInput() { return this._nodeUnhealthyReason; } get repairAction() { return this.getStringAttribute('repair_action'); } set repairAction(value) { this._repairAction = value; } // Temporarily expose input value. Use with caution. get repairActionInput() { return this._repairAction; } } exports.EksNodeGroupNodeRepairConfigNodeRepairConfigOverridesOutputReference = EksNodeGroupNodeRepairConfigNodeRepairConfigOverridesOutputReference; _f = JSII_RTTI_SYMBOL_1; EksNodeGroupNodeRepairConfigNodeRepairConfigOverridesOutputReference[_f] = { fqn: "@cdktf/provider-aws.eksNodeGroup.EksNodeGroupNodeRepairConfigNodeRepairConfigOverridesOutputReference", version: "21.22.1" }; class EksNodeGroupNodeRepairConfigNodeRepairConfigOverridesList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new EksNodeGroupNodeRepairConfigNodeRepairConfigOverridesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.EksNodeGroupNodeRepairConfigNodeRepairConfigOverridesList = EksNodeGroupNodeRepairConfigNodeRepairConfigOverridesList; _g = JSII_RTTI_SYMBOL_1; EksNodeGroupNodeRepairConfigNodeRepairConfigOverridesList[_g] = { fqn: "@cdktf/provider-aws.eksNodeGroup.EksNodeGroupNodeRepairConfigNodeRepairConfigOverridesList", version: "21.22.1" }; function eksNodeGroupNodeRepairConfigToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { enabled: cdktf.booleanToTerraform(struct.enabled), max_parallel_nodes_repaired_count: cdktf.numberToTerraform(struct.maxParallelNodesRepairedCount), max_parallel_nodes_repaired_percentage: cdktf.numberToTerraform(struct.maxParallelNodesRepairedPercentage), max_unhealthy_node_threshold_count: cdktf.numberToTerraform(struct.maxUnhealthyNodeThresholdCount), max_unhealthy_node_threshold_percentage: cdktf.numberToTerraform(struct.maxUnhealthyNodeThresholdPercentage), node_repair_config_overrides: cdktf.listMapper(eksNodeGroupNodeRepairConfigNodeRepairConfigOverridesToTerraform, true)(struct.nodeRepairConfigOverrides), }; } function eksNodeGroupNodeRepairConfigToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { enabled: { value: cdktf.booleanToHclTerraform(struct.enabled), isBlock: false, type: "simple", storageClassType: "boolean", }, max_parallel_nodes_repaired_count: { value: cdktf.numberToHclTerraform(struct.maxParallelNodesRepairedCount), isBlock: false, type: "simple", storageClassType: "number", }, max_parallel_nodes_repaired_percentage: { value: cdktf.numberToHclTerraform(struct.maxParallelNodesRepairedPercentage), isBlock: false, type: "simple", storageClassType: "number", }, max_unhealthy_node_threshold_count: { value: cdktf.numberToHclTerraform(struct.maxUnhealthyNodeThresholdCount), isBlock: false, type: "simple", storageClassType: "number", }, max_unhealthy_node_threshold_percentage: { value: cdktf.numberToHclTerraform(struct.maxUnhealthyNodeThresholdPercentage), isBlock: false, type: "simple", storageClassType: "number", }, node_repair_config_overrides: { value: cdktf.listMapperHcl(eksNodeGroupNodeRepairConfigNodeRepairConfigOverridesToHclTerraform, true)(struct.nodeRepairConfigOverrides), isBlock: true, type: "list", storageClassType: "EksNodeGroupNodeRepairConfigNodeRepairConfigOverridesList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class EksNodeGroupNodeRepairConfigOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; // node_repair_config_overrides - computed: false, optional: true, required: false this._nodeRepairConfigOverrides = new EksNodeGroupNodeRepairConfigNodeRepairConfigOverridesList(this, "node_repair_config_overrides", false); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._enabled !== undefined) { hasAnyValues = true; internalValueResult.enabled = this._enabled; } if (this._maxParallelNodesRepairedCount !== undefined) { hasAnyValues = true; internalValueResult.maxParallelNodesRepairedCount = this._maxParallelNodesRepairedCount; } if (this._maxParallelNodesRepairedPercentage !== undefined) { hasAnyValues = true; internalValueResult.maxParallelNodesRepairedPercentage = this._maxParallelNodesRepairedPercentage; } if (this._maxUnhealthyNodeThresholdCount !== undefined) { hasAnyValues = true; internalValueResult.maxUnhealthyNodeThresholdCount = this._maxUnhealthyNodeThresholdCount; } if (this._maxUnhealthyNodeThresholdPercentage !== undefined) { hasAnyValues = true; internalValueResult.maxUnhealthyNodeThresholdPercentage = this._maxUnhealthyNodeThresholdPercentage; } if (this._nodeRepairConfigOverrides?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.nodeRepairConfigOverrides = this._nodeRepairConfigOverrides?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._enabled = undefined; this._maxParallelNodesRepairedCount = undefined; this._maxParallelNodesRepairedPercentage = undefined; this._maxUnhealthyNodeThresholdCount = undefined; this._maxUnhealthyNodeThresholdPercentage = undefined; this._nodeRepairConfigOverrides.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._enabled = value.enabled; this._maxParallelNodesRepairedCount = value.maxParallelNodesRepairedCount; this._maxParallelNodesRepairedPercentage = value.maxParallelNodesRepairedPercentage; this._maxUnhealthyNodeThresholdCount = value.maxUnhealthyNodeThresholdCount; this._maxUnhealthyNodeThresholdPercentage = value.maxUnhealthyNodeThresholdPercentage; this._nodeRepairConfigOverrides.internalValue = value.nodeRepairConfigOverrides; } } get enabled() { return this.getBooleanAttribute('enabled'); } set enabled(value) { this._enabled = value; } resetEnabled() { this._enabled = undefined; } // Temporarily expose input value. Use with caution. get enabledInput() { return this._enabled; } get maxParallelNodesRepairedCount() { return this.getNumberAttribute('max_parallel_nodes_repaired_count'); } set maxParallelNodesRepairedCount(value) { this._maxParallelNodesRepairedCount = value; } resetMaxParallelNodesRepairedCount() { this._maxParallelNodesRepairedCount = undefined; } // Temporarily expose input value. Use with caution. get maxParallelNodesRepairedCountInput() { return this._maxParallelNodesRepairedCount; } get maxParallelNodesRepairedPercentage() { return this.getNumberAttribute('max_parallel_nodes_repaired_percentage'); } set maxParallelNodesRepairedPercentage(value) { this._maxParallelNodesRepairedPercentage = value; } resetMaxParallelNodesRepairedPercentage() { this._maxParallelNodesRepairedPercentage = undefined; } // Temporarily expose input value. Use with caution. get maxParallelNodesRepairedPercentageInput() { return this._maxParallelNodesRepairedPercentage; } get maxUnhealthyNodeThresholdCount() { return this.getNumberAttribute('max_unhealthy_node_threshold_count'); } set maxUnhealthyNodeThresholdCount(value) { this._maxUnhealthyNodeThresholdCount = value; } resetMaxUnhealthyNodeThresholdCount() { this._maxUnhealthyNodeThresholdCount = undefined; } // Temporarily expose input value. Use with caution. get maxUnhealthyNodeThresholdCountInput() { return this._maxUnhealthyNodeThresholdCount; } get maxUnhealthyNodeThresholdPercentage() { return this.getNumberAttribute('max_unhealthy_node_threshold_percentage'); } set maxUnhealthyNodeThresholdPercentage(value) { this._maxUnhealthyNodeThresholdPercentage = value; } resetMaxUnhealthyNodeThresholdPercentage() { this._maxUnhealthyNodeThresholdPercentage = undefined; } // Temporarily expose input value. Use with caution. get maxUnhealthyNodeThresholdPercentageInput() { return this._maxUnhealthyNodeThresholdPercentage; } get nodeRepairConfigOverrides() { return this._nodeRepairConfigOverrides; } putNodeRepairConfigOverrides(value) { this._nodeRepairConfigOverrides.internalValue = value; } resetNodeRepairConfigOverrides() { this._nodeRepairConfigOverrides.internalValue = undefined; } // Temporarily expose input value. Use with caution. get nodeRepairConfigOverridesInput() { return this._nodeRepairConfigOverrides.internalValue; } } exports.EksNodeGroupNodeRepairConfigOutputReference = EksNodeGroupNodeRepairConfigOutputReference; _h = JSII_RTTI_SYMBOL_1; EksNodeGroupNodeRepairConfigOutputReference[_h] = { fqn: "@cdktf/provider-aws.eksNodeGroup.EksNodeGroupNodeRepairConfigOutputReference", version: "21.22.1" }; function eksNodeGroupRemoteAccessToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { ec2_ssh_key: cdktf.stringToTerraform(struct.ec2SshKey), source_security_group_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.sourceSecurityGroupIds), }; } function eksNodeGroupRemoteAccessToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { ec2_ssh_key: { value: cdktf.stringToHclTerraform(struct.ec2SshKey), isBlock: false, type: "simple", storageClassType: "string", }, source_security_group_ids: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.sourceSecurityGroupIds), isBlock: false, type: "set", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class EksNodeGroupRemoteAccessOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._ec2SshKey !== undefined) { hasAnyValues = true; internalValueResult.ec2SshKey = this._ec2SshKey; } if (this._sourceSecurityGroupIds !== undefined) { hasAnyValues = true; internalValueResult.sourceSecurityGroupIds = this._sourceSecurityGroupIds; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._ec2SshKey = undefined; this._sourceSecurityGroupIds = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._ec2SshKey = value.ec2SshKey; this._sourceSecurityGroupIds = value.sourceSecurityGroupIds; } } get ec2SshKey() { return this.getStringAttribute('ec2_ssh_key'); } set ec2SshKey(value) { this._ec2SshKey = value; } resetEc2SshKey() { this._ec2SshKey = undefined; } // Temporarily expose input value. Use with caution. get ec2SshKeyInput() { return this._ec2SshKey; } get sourceSecurityGroupIds() { return cdktf.Fn.tolist(this.getListAttribute('source_security_group_ids')); } set sourceSecurityGroupIds(value) { this._sourceSecurityGroupIds = value; } resetSourceSecurityGroupIds() { this._sourceSecurityGroupIds = undefined; } // Temporarily expose input value. Use with caution. get sourceSecurityGroupIdsInput() { return this._sourceSecurityGroupIds; } } exports.EksNodeGroupRemoteAccessOutputReference = EksNodeGroupRemoteAccessOutputReference; _j = JSII_RTTI_SYMBOL_1; EksNodeGroupRemoteAccessOutputReference[_j] = { fqn: "@cdktf/provider-aws.eksNodeGroup.EksNodeGroupRemoteAccessOutputReference", version: "21.22.1" }; function eksNodeGroupScalingConfigToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { desired_size: cdktf.numberToTerraform(struct.desiredSize), max_size: cdktf.numberToTerraform(struct.maxSize), min_size: cdktf.numberToTerraform(struct.minSize), }; } function eksNodeGroupScalingConfigToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { desired_size: { value: cdktf.numberToHclTerraform(struct.desiredSize), isBlock: false, type: "simple", storageClassType: "number", }, max_size: { value: cdktf.numberToHclTerraform(struct.maxSize), isBlock: false, type: "simple", storageClassType: "number", }, min_size: { value: cdktf.numberToHclTerraform(struct.minSize), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class EksNodeGroupScalingConfigOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._desiredSize !== undefined) { hasAnyValues = true; internalValueResult.desiredSize = this._desiredSize; } if (this._maxSize !== undefined) { hasAnyValues = true; internalValueResult.maxSize = this._maxSize; } if (this._minSize !== undefined) { hasAnyValues = true; internalValueResult.minSize = this._minSize; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._desiredSize = undefined; this._maxSize = undefined; this._minSize = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._desiredSize = value.desiredSize; this._maxSize = value.maxSize; this._minSize = value.minSize; } } get desiredSize() { return this.getNumberAttribute('desired_size'); } set desiredSize(value) { this._desiredSize = value; } // Temporarily expose input value. Use with caution. get desiredSizeInput() { return this._desiredSize; } get maxSize() { return this.getNumberAttribute('max_size'); } set maxSize(value) { this._maxSize = value; } // Temporarily expose input value. Use with caution. get maxSizeInput() { return this._maxSize; } get minSize() { return this.getNumberAttribute('min_size'); } set minSize(value) { this._minSize = value; } // Temporarily expose input value. Use with caution. get minSizeInput() { return this._minSize; } } exports.EksNodeGroupScalingConfigOutputReference = EksNodeGroupScalingConfigOutputReference; _k = JSII_RTTI_SYMBOL_1; EksNodeGroupScalingConfigOutputReference[_k] = { fqn: "@cdktf/provider-aws.eksNodeGroup.EksNodeGroupScalingConfigOutputReference", version: "21.22.1" }; function eksNodeGroupTaintToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { effect: cdktf.stringToTerraform(struct.effect), key: cdktf.stringToTerraform(struct.key), value: cdktf.stringToTerraform(struct.value), }; } function eksNodeGroupTaintToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { effect: { value: cdktf.stringToHclTerraform(struct.effect), isBlock: false, type: "simple", storageClassType: "string", }, key: { value: cdktf.stringToHclTerraform(struct.key), isBlock: false, type: "simple", storageClassType: "string", }, value: { value: cdktf.stringToHclTerraform(struct.value), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class EksNodeGroupTaintOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._effect !== undefined) { hasAnyValues = true; internalValueResult.effect = this._effect; } if (this._key !== undefined) { hasAnyValues = true; internalValueResult.key = this._key; } if (this._value !== undefined) { hasAnyValues = true; internalValueResult.value = this._value; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._effect = undefined; this._key = undefined; this._value = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._effect = value.effect; this._key = value.key; this._value = value.value; } } get effect() { return this.getStringAttribute('effect'); } set effect(value) { this._effect = value; } // Temporarily expose input value. Use with caution. get effectInput() { return this._effect; } get key() { return this.getStringAttribute('key'); } set key(value) { this._key = value; } // Temporarily expose input value. Use with caution. get keyInput() { return this._key; } get value() { return this.getStringAttribute('value'); } set value(value) { this._value = value; } resetValue() { this._value = undefined; } // Temporarily expose input value. Use with caution. get valueInput() { return this._value; } } exports.EksNodeGroupTaintOutputReference = EksNodeGroupTaintOutputReference; _l = JSII_RTTI_SYMBOL_1; EksNodeGroupTaintOutputReference[_l] = { fqn: "@cdktf/provider-aws.eksNodeGroup.EksNodeGroupTaintOutputReference", version: "21.22.1" }; class EksNodeGroupTaintList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new EksNodeGroupTaintOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.EksNodeGroupTaintList = EksNodeGroupTaintList; _m = JSII_RTTI_SYMBOL_1; EksNodeGroupTaintList[_m] = { fqn: "@cdktf/provider-aws.eksNodeGroup.EksNodeGroupTaintList", version: "21.22.1" }; function eksNodeGroupTimeoutsToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { create: cdktf.stringToTerraform(struct.create), delete: cdktf.stringToTerraform(struct.delete), update: cdktf.stringToTerraform(struct.update), }; } function eksNodeGroupTimeoutsToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { create: { value: cdktf.stringToHclTerraform(struct.create), isBlock: false, type: "simple", storageClassType: "string", }, delete: { value: cdktf.stringToHclTerraform(struct.delete), isBlock: false, type: "simple", storageClassType: "string", }, update: { value: cdktf.stringToHclTerraform(struct.update), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class EksNodeGroupTimeoutsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._create !== undefined) { hasAnyValues = true; internalValueResult.create = this._create; } if (this._delete !== undefined) { hasAnyValues = true; internalValueResult.delete = this._delete; } if (this._update !== undefined) { hasAnyValues = true; internalValueResult.update = this._update; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._create = undefined; this._delete = undefined; this._update = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._create = value.create; this._delete = value.delete; this._update = value.update; } } get create() { return this.getStringAttribute('create'); } set create(value) { this._create = value; } resetCreate() { this._create = undefined; } // Temporarily expose input value. Use with caution. get createInput() { return this._create; } get delete() { return this.getStringAttribute('delete'); } set delete(value) { this._delete = value; } resetDelete() { this._delete = undefined; } // Temporarily expose input value. Use with caution. get deleteInput() { return this._delete; } get update() { return this.getStringAttribute('update'); } set update(value) { this._update = value; } resetUpdate() { this._update = undefined; } // Temporarily expose input value. Use with caution. get updateInput() { return this._update; } } exports.EksNodeGroupTimeoutsOutputReference = EksNodeGroupTimeoutsOutputReference; _o = JSII_RTTI_SYMBOL_1; EksNodeGroupTimeoutsOutputReference[_o] = { fqn: "@cdktf/provider-aws.eksNodeGroup.EksNodeGroupTimeoutsOutputReference", version: "21.22.1" }; function eksNodeGroupUpdateConfigToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return s