UNPKG

rhizo-co-terraform-provider-oci

Version:

Prebuilt oci Provider for Terraform CDK (cdktf)

1,015 lines (1,014 loc) 341 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v; Object.defineProperty(exports, "__esModule", { value: true }); exports.ContainerengineNodePool = exports.ContainerengineNodePoolTimeoutsOutputReference = exports.containerengineNodePoolTimeoutsToHclTerraform = exports.containerengineNodePoolTimeoutsToTerraform = exports.ContainerengineNodePoolNodeSourceDetailsOutputReference = exports.containerengineNodePoolNodeSourceDetailsToHclTerraform = exports.containerengineNodePoolNodeSourceDetailsToTerraform = exports.ContainerengineNodePoolNodeShapeConfigOutputReference = exports.containerengineNodePoolNodeShapeConfigToHclTerraform = exports.containerengineNodePoolNodeShapeConfigToTerraform = exports.ContainerengineNodePoolNodePoolCyclingDetailsOutputReference = exports.containerengineNodePoolNodePoolCyclingDetailsToHclTerraform = exports.containerengineNodePoolNodePoolCyclingDetailsToTerraform = exports.ContainerengineNodePoolNodeEvictionNodePoolSettingsOutputReference = exports.containerengineNodePoolNodeEvictionNodePoolSettingsToHclTerraform = exports.containerengineNodePoolNodeEvictionNodePoolSettingsToTerraform = exports.ContainerengineNodePoolNodeConfigDetailsOutputReference = exports.containerengineNodePoolNodeConfigDetailsToHclTerraform = exports.containerengineNodePoolNodeConfigDetailsToTerraform = exports.ContainerengineNodePoolNodeConfigDetailsPlacementConfigsList = exports.ContainerengineNodePoolNodeConfigDetailsPlacementConfigsOutputReference = exports.containerengineNodePoolNodeConfigDetailsPlacementConfigsToHclTerraform = exports.containerengineNodePoolNodeConfigDetailsPlacementConfigsToTerraform = exports.ContainerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigOutputReference = exports.containerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigToHclTerraform = exports.containerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigToTerraform = exports.ContainerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigPreemptionActionOutputReference = exports.containerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigPreemptionActionToHclTerraform = exports.containerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigPreemptionActionToTerraform = exports.ContainerengineNodePoolNodeConfigDetailsNodePoolPodNetworkOptionDetailsOutputReference = exports.containerengineNodePoolNodeConfigDetailsNodePoolPodNetworkOptionDetailsToHclTerraform = exports.containerengineNodePoolNodeConfigDetailsNodePoolPodNetworkOptionDetailsToTerraform = exports.ContainerengineNodePoolInitialNodeLabelsList = exports.ContainerengineNodePoolInitialNodeLabelsOutputReference = exports.containerengineNodePoolInitialNodeLabelsToHclTerraform = exports.containerengineNodePoolInitialNodeLabelsToTerraform = exports.ContainerengineNodePoolNodesList = exports.ContainerengineNodePoolNodesOutputReference = exports.containerengineNodePoolNodesToHclTerraform = exports.containerengineNodePoolNodesToTerraform = exports.ContainerengineNodePoolNodesErrorList = exports.ContainerengineNodePoolNodesErrorOutputReference = exports.containerengineNodePoolNodesErrorToHclTerraform = exports.containerengineNodePoolNodesErrorToTerraform = exports.ContainerengineNodePoolNodeSourceList = exports.ContainerengineNodePoolNodeSourceOutputReference = exports.containerengineNodePoolNodeSourceToHclTerraform = exports.containerengineNodePoolNodeSourceToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function containerengineNodePoolNodeSourceToTerraform(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 {}; } exports.containerengineNodePoolNodeSourceToTerraform = containerengineNodePoolNodeSourceToTerraform; function containerengineNodePoolNodeSourceToHclTerraform(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; } exports.containerengineNodePoolNodeSourceToHclTerraform = containerengineNodePoolNodeSourceToHclTerraform; class ContainerengineNodePoolNodeSourceOutputReference 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; } } // image_id - computed: true, optional: false, required: false get imageId() { return this.getStringAttribute('image_id'); } // source_name - computed: true, optional: false, required: false get sourceName() { return this.getStringAttribute('source_name'); } // source_type - computed: true, optional: false, required: false get sourceType() { return this.getStringAttribute('source_type'); } } exports.ContainerengineNodePoolNodeSourceOutputReference = ContainerengineNodePoolNodeSourceOutputReference; _a = JSII_RTTI_SYMBOL_1; ContainerengineNodePoolNodeSourceOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.containerengineNodePool.ContainerengineNodePoolNodeSourceOutputReference", version: "1.0.0" }; class ContainerengineNodePoolNodeSourceList 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 ContainerengineNodePoolNodeSourceOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ContainerengineNodePoolNodeSourceList = ContainerengineNodePoolNodeSourceList; _b = JSII_RTTI_SYMBOL_1; ContainerengineNodePoolNodeSourceList[_b] = { fqn: "rhizo-co-terraform-provider-oci.containerengineNodePool.ContainerengineNodePoolNodeSourceList", version: "1.0.0" }; function containerengineNodePoolNodesErrorToTerraform(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 {}; } exports.containerengineNodePoolNodesErrorToTerraform = containerengineNodePoolNodesErrorToTerraform; function containerengineNodePoolNodesErrorToHclTerraform(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; } exports.containerengineNodePoolNodesErrorToHclTerraform = containerengineNodePoolNodesErrorToHclTerraform; class ContainerengineNodePoolNodesErrorOutputReference 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; } } // code - computed: true, optional: false, required: false get code() { return this.getStringAttribute('code'); } // message - computed: true, optional: false, required: false get message() { return this.getStringAttribute('message'); } // status - computed: true, optional: false, required: false get status() { return this.getStringAttribute('status'); } } exports.ContainerengineNodePoolNodesErrorOutputReference = ContainerengineNodePoolNodesErrorOutputReference; _c = JSII_RTTI_SYMBOL_1; ContainerengineNodePoolNodesErrorOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.containerengineNodePool.ContainerengineNodePoolNodesErrorOutputReference", version: "1.0.0" }; class ContainerengineNodePoolNodesErrorList 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 ContainerengineNodePoolNodesErrorOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ContainerengineNodePoolNodesErrorList = ContainerengineNodePoolNodesErrorList; _d = JSII_RTTI_SYMBOL_1; ContainerengineNodePoolNodesErrorList[_d] = { fqn: "rhizo-co-terraform-provider-oci.containerengineNodePool.ContainerengineNodePoolNodesErrorList", version: "1.0.0" }; function containerengineNodePoolNodesToTerraform(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 {}; } exports.containerengineNodePoolNodesToTerraform = containerengineNodePoolNodesToTerraform; function containerengineNodePoolNodesToHclTerraform(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; } exports.containerengineNodePoolNodesToHclTerraform = containerengineNodePoolNodesToHclTerraform; class ContainerengineNodePoolNodesOutputReference 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; // defined_tags - computed: true, optional: false, required: false this._definedTags = new cdktf.StringMap(this, "defined_tags"); // error - computed: true, optional: false, required: false this._error = new ContainerengineNodePoolNodesErrorList(this, "error", false); // freeform_tags - computed: true, optional: false, required: false this._freeformTags = new cdktf.StringMap(this, "freeform_tags"); } 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; } } // availability_domain - computed: true, optional: false, required: false get availabilityDomain() { return this.getStringAttribute('availability_domain'); } get definedTags() { return this._definedTags; } get error() { return this._error; } // fault_domain - computed: true, optional: false, required: false get faultDomain() { return this.getStringAttribute('fault_domain'); } get freeformTags() { return this._freeformTags; } // id - computed: true, optional: false, required: false get id() { return this.getStringAttribute('id'); } // kubernetes_version - computed: true, optional: false, required: false get kubernetesVersion() { return this.getStringAttribute('kubernetes_version'); } // lifecycle_details - computed: true, optional: false, required: false get lifecycleDetails() { return this.getStringAttribute('lifecycle_details'); } // name - computed: true, optional: false, required: false get name() { return this.getStringAttribute('name'); } // node_pool_id - computed: true, optional: false, required: false get nodePoolId() { return this.getStringAttribute('node_pool_id'); } // private_ip - computed: true, optional: false, required: false get privateIp() { return this.getStringAttribute('private_ip'); } // public_ip - computed: true, optional: false, required: false get publicIp() { return this.getStringAttribute('public_ip'); } // state - computed: true, optional: false, required: false get state() { return this.getStringAttribute('state'); } // subnet_id - computed: true, optional: false, required: false get subnetId() { return this.getStringAttribute('subnet_id'); } } exports.ContainerengineNodePoolNodesOutputReference = ContainerengineNodePoolNodesOutputReference; _e = JSII_RTTI_SYMBOL_1; ContainerengineNodePoolNodesOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.containerengineNodePool.ContainerengineNodePoolNodesOutputReference", version: "1.0.0" }; class ContainerengineNodePoolNodesList 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 ContainerengineNodePoolNodesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ContainerengineNodePoolNodesList = ContainerengineNodePoolNodesList; _f = JSII_RTTI_SYMBOL_1; ContainerengineNodePoolNodesList[_f] = { fqn: "rhizo-co-terraform-provider-oci.containerengineNodePool.ContainerengineNodePoolNodesList", version: "1.0.0" }; function containerengineNodePoolInitialNodeLabelsToTerraform(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 { key: cdktf.stringToTerraform(struct.key), value: cdktf.stringToTerraform(struct.value), }; } exports.containerengineNodePoolInitialNodeLabelsToTerraform = containerengineNodePoolInitialNodeLabelsToTerraform; function containerengineNodePoolInitialNodeLabelsToHclTerraform(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 = { 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)); } exports.containerengineNodePoolInitialNodeLabelsToHclTerraform = containerengineNodePoolInitialNodeLabelsToHclTerraform; class ContainerengineNodePoolInitialNodeLabelsOutputReference 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._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._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._key = value.key; this._value = value.value; } } get key() { return this.getStringAttribute('key'); } set key(value) { this._key = value; } resetKey() { this._key = undefined; } // 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.ContainerengineNodePoolInitialNodeLabelsOutputReference = ContainerengineNodePoolInitialNodeLabelsOutputReference; _g = JSII_RTTI_SYMBOL_1; ContainerengineNodePoolInitialNodeLabelsOutputReference[_g] = { fqn: "rhizo-co-terraform-provider-oci.containerengineNodePool.ContainerengineNodePoolInitialNodeLabelsOutputReference", version: "1.0.0" }; class ContainerengineNodePoolInitialNodeLabelsList 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 ContainerengineNodePoolInitialNodeLabelsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ContainerengineNodePoolInitialNodeLabelsList = ContainerengineNodePoolInitialNodeLabelsList; _h = JSII_RTTI_SYMBOL_1; ContainerengineNodePoolInitialNodeLabelsList[_h] = { fqn: "rhizo-co-terraform-provider-oci.containerengineNodePool.ContainerengineNodePoolInitialNodeLabelsList", version: "1.0.0" }; function containerengineNodePoolNodeConfigDetailsNodePoolPodNetworkOptionDetailsToTerraform(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 { cni_type: cdktf.stringToTerraform(struct.cniType), max_pods_per_node: cdktf.numberToTerraform(struct.maxPodsPerNode), pod_nsg_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.podNsgIds), pod_subnet_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.podSubnetIds), }; } exports.containerengineNodePoolNodeConfigDetailsNodePoolPodNetworkOptionDetailsToTerraform = containerengineNodePoolNodeConfigDetailsNodePoolPodNetworkOptionDetailsToTerraform; function containerengineNodePoolNodeConfigDetailsNodePoolPodNetworkOptionDetailsToHclTerraform(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 = { cni_type: { value: cdktf.stringToHclTerraform(struct.cniType), isBlock: false, type: "simple", storageClassType: "string", }, max_pods_per_node: { value: cdktf.numberToHclTerraform(struct.maxPodsPerNode), isBlock: false, type: "simple", storageClassType: "number", }, pod_nsg_ids: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.podNsgIds), isBlock: false, type: "list", storageClassType: "stringList", }, pod_subnet_ids: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.podSubnetIds), isBlock: false, type: "list", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerengineNodePoolNodeConfigDetailsNodePoolPodNetworkOptionDetailsToHclTerraform = containerengineNodePoolNodeConfigDetailsNodePoolPodNetworkOptionDetailsToHclTerraform; class ContainerengineNodePoolNodeConfigDetailsNodePoolPodNetworkOptionDetailsOutputReference 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._cniType !== undefined) { hasAnyValues = true; internalValueResult.cniType = this._cniType; } if (this._maxPodsPerNode !== undefined) { hasAnyValues = true; internalValueResult.maxPodsPerNode = this._maxPodsPerNode; } if (this._podNsgIds !== undefined) { hasAnyValues = true; internalValueResult.podNsgIds = this._podNsgIds; } if (this._podSubnetIds !== undefined) { hasAnyValues = true; internalValueResult.podSubnetIds = this._podSubnetIds; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._cniType = undefined; this._maxPodsPerNode = undefined; this._podNsgIds = undefined; this._podSubnetIds = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._cniType = value.cniType; this._maxPodsPerNode = value.maxPodsPerNode; this._podNsgIds = value.podNsgIds; this._podSubnetIds = value.podSubnetIds; } } get cniType() { return this.getStringAttribute('cni_type'); } set cniType(value) { this._cniType = value; } // Temporarily expose input value. Use with caution. get cniTypeInput() { return this._cniType; } get maxPodsPerNode() { return this.getNumberAttribute('max_pods_per_node'); } set maxPodsPerNode(value) { this._maxPodsPerNode = value; } resetMaxPodsPerNode() { this._maxPodsPerNode = undefined; } // Temporarily expose input value. Use with caution. get maxPodsPerNodeInput() { return this._maxPodsPerNode; } get podNsgIds() { return this.getListAttribute('pod_nsg_ids'); } set podNsgIds(value) { this._podNsgIds = value; } resetPodNsgIds() { this._podNsgIds = undefined; } // Temporarily expose input value. Use with caution. get podNsgIdsInput() { return this._podNsgIds; } get podSubnetIds() { return this.getListAttribute('pod_subnet_ids'); } set podSubnetIds(value) { this._podSubnetIds = value; } resetPodSubnetIds() { this._podSubnetIds = undefined; } // Temporarily expose input value. Use with caution. get podSubnetIdsInput() { return this._podSubnetIds; } } exports.ContainerengineNodePoolNodeConfigDetailsNodePoolPodNetworkOptionDetailsOutputReference = ContainerengineNodePoolNodeConfigDetailsNodePoolPodNetworkOptionDetailsOutputReference; _j = JSII_RTTI_SYMBOL_1; ContainerengineNodePoolNodeConfigDetailsNodePoolPodNetworkOptionDetailsOutputReference[_j] = { fqn: "rhizo-co-terraform-provider-oci.containerengineNodePool.ContainerengineNodePoolNodeConfigDetailsNodePoolPodNetworkOptionDetailsOutputReference", version: "1.0.0" }; function containerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigPreemptionActionToTerraform(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 { is_preserve_boot_volume: cdktf.booleanToTerraform(struct.isPreserveBootVolume), type: cdktf.stringToTerraform(struct.type), }; } exports.containerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigPreemptionActionToTerraform = containerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigPreemptionActionToTerraform; function containerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigPreemptionActionToHclTerraform(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 = { is_preserve_boot_volume: { value: cdktf.booleanToHclTerraform(struct.isPreserveBootVolume), isBlock: false, type: "simple", storageClassType: "boolean", }, type: { value: cdktf.stringToHclTerraform(struct.type), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigPreemptionActionToHclTerraform = containerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigPreemptionActionToHclTerraform; class ContainerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigPreemptionActionOutputReference 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._isPreserveBootVolume !== undefined) { hasAnyValues = true; internalValueResult.isPreserveBootVolume = this._isPreserveBootVolume; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._isPreserveBootVolume = undefined; this._type = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._isPreserveBootVolume = value.isPreserveBootVolume; this._type = value.type; } } get isPreserveBootVolume() { return this.getBooleanAttribute('is_preserve_boot_volume'); } set isPreserveBootVolume(value) { this._isPreserveBootVolume = value; } resetIsPreserveBootVolume() { this._isPreserveBootVolume = undefined; } // Temporarily expose input value. Use with caution. get isPreserveBootVolumeInput() { return this._isPreserveBootVolume; } get type() { return this.getStringAttribute('type'); } set type(value) { this._type = value; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } } exports.ContainerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigPreemptionActionOutputReference = ContainerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigPreemptionActionOutputReference; _k = JSII_RTTI_SYMBOL_1; ContainerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigPreemptionActionOutputReference[_k] = { fqn: "rhizo-co-terraform-provider-oci.containerengineNodePool.ContainerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigPreemptionActionOutputReference", version: "1.0.0" }; function containerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigToTerraform(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 { preemption_action: containerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigPreemptionActionToTerraform(struct.preemptionAction), }; } exports.containerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigToTerraform = containerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigToTerraform; function containerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigToHclTerraform(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 = { preemption_action: { value: containerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigPreemptionActionToHclTerraform(struct.preemptionAction), isBlock: true, type: "list", storageClassType: "ContainerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigPreemptionActionList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigToHclTerraform = containerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigToHclTerraform; class ContainerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigOutputReference 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; // preemption_action - computed: false, optional: false, required: true this._preemptionAction = new ContainerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigPreemptionActionOutputReference(this, "preemption_action"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._preemptionAction?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.preemptionAction = this._preemptionAction?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._preemptionAction.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._preemptionAction.internalValue = value.preemptionAction; } } get preemptionAction() { return this._preemptionAction; } putPreemptionAction(value) { this._preemptionAction.internalValue = value; } // Temporarily expose input value. Use with caution. get preemptionActionInput() { return this._preemptionAction.internalValue; } } exports.ContainerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigOutputReference = ContainerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigOutputReference; _l = JSII_RTTI_SYMBOL_1; ContainerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigOutputReference[_l] = { fqn: "rhizo-co-terraform-provider-oci.containerengineNodePool.ContainerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigOutputReference", version: "1.0.0" }; function containerengineNodePoolNodeConfigDetailsPlacementConfigsToTerraform(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 { availability_domain: cdktf.stringToTerraform(struct.availabilityDomain), capacity_reservation_id: cdktf.stringToTerraform(struct.capacityReservationId), fault_domains: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.faultDomains), subnet_id: cdktf.stringToTerraform(struct.subnetId), preemptible_node_config: containerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigToTerraform(struct.preemptibleNodeConfig), }; } exports.containerengineNodePoolNodeConfigDetailsPlacementConfigsToTerraform = containerengineNodePoolNodeConfigDetailsPlacementConfigsToTerraform; function containerengineNodePoolNodeConfigDetailsPlacementConfigsToHclTerraform(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 = { availability_domain: { value: cdktf.stringToHclTerraform(struct.availabilityDomain), isBlock: false, type: "simple", storageClassType: "string", }, capacity_reservation_id: { value: cdktf.stringToHclTerraform(struct.capacityReservationId), isBlock: false, type: "simple", storageClassType: "string", }, fault_domains: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.faultDomains), isBlock: false, type: "list", storageClassType: "stringList", }, subnet_id: { value: cdktf.stringToHclTerraform(struct.subnetId), isBlock: false, type: "simple", storageClassType: "string", }, preemptible_node_config: { value: containerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigToHclTerraform(struct.preemptibleNodeConfig), isBlock: true, type: "list", storageClassType: "ContainerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerengineNodePoolNodeConfigDetailsPlacementConfigsToHclTerraform = containerengineNodePoolNodeConfigDetailsPlacementConfigsToHclTerraform; class ContainerengineNodePoolNodeConfigDetailsPlacementConfigsOutputReference 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; // preemptible_node_config - computed: false, optional: true, required: false this._preemptibleNodeConfig = new ContainerengineNodePoolNodeConfigDetailsPlacementConfigsPreemptibleNodeConfigOutputReference(this, "preemptible_node_config"); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._availabilityDomain !== undefined) { hasAnyValues = true; internalValueResult.availabilityDomain = this._availabilityDomain; } if (this._capacityReservationId !== undefined) { hasAnyValues = true; internalValueResult.capacityReservationId = this._capacityReservationId; } if (this._faultDomains !== undefined) { hasAnyValues = true; internalValueResult.faultDomains = this._faultDomains; } if (this._subnetId !== undefined) { hasAnyValues = true; internalValueResult.subnetId = this._subnetId; } if (this._preemptibleNodeConfig?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.preemptibleNodeConfig = this._preemptibleNodeConfig?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._availabilityDomain = undefined; this._capacityReservationId = undefined; this._faultDomains = undefined; this._subnetId = undefined; this._preemptibleNodeConfig.internalValue = 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._availabilityDomain = value.availabilityDomain; this._capacityReservationId = value.capacityReservationId; this._faultDomains = value.faultDomains; this._subnetId = value.subnetId; this._preemptibleNodeConfig.internalValue = value.preemptibleNodeConfig; } } get availabilityDomain() { return this.getStringAttribute('availability_domain'); } set availabilityDomain(value) { this._availabilityDomain = value; } // Temporarily expose input value. Use with caution. get availabilityDomainInput() { return this._availabilityDomain; } get capacityReservationId() { return this.getStringAttribute('capacity_reservation_id'); } set capacityReservationId(value) { this._capacityReservationId = value; } resetCapacityReservationId() { this._capacityReservationId = undefined; } // Temporarily expose input value. Use with caution. get capacityReservationIdInput() { return this._capacityReservationId; } get faultDomains() { return this.getListAttribute('fault_domains'); } set faultDomains(value) { this._faultDomains = value; } resetFaultDomains() { this._faultDomains = undefined; } // Temporarily expose input value. Use with caution. get faultDomainsInput() { return this._faultDomains; } get subnetId() { return this.getStringAttribute('subnet_id'); } set subnetId(value) { this._subnetId = value; } // Temporarily expose input value. Use with caution. get subnetIdInput() { return this._subnetId; } get preemptibleNodeConfig() { return this._preemptibleNodeConfig; } putPreemptibleNodeConfig(value) { this._preemptibleNodeConfig.internalValue = value; } resetPreemptibleNodeConfig() { this._preemptibleNodeConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. get preemptibleNodeConfigInput() { return this._preemptibleNodeConfig.internalValue; } } exports.ContainerengineNodePoolNodeConfigDetailsPlacementConfigsOutputReference = ContainerengineNodePoolNodeConfigDetailsPlacementConfigsOutputReference; _m = JSII_RTTI_SYMBOL_1; ContainerengineNodePoolNodeConfigDetailsPlacementConfigsOutputReference[_m] = { fqn: "rhizo-co-terraform-provider-oci.containerengineNodePool.ContainerengineNodePoolNodeConfigDetailsPlacementConfigsOutputReference", version: "1.0.0" }; class ContainerengineNodePoolNodeConfigDetailsPlacementConfigsList 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 ContainerengineNodePoolNodeConfigDetailsPlacementConfigsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ContainerengineNodePoolNodeConfigDetailsPlacementConfigsList = ContainerengineNodePoolNodeConfigDetailsPlacementConfigsList; _o = JSII_RTTI_SYMBOL_1; ContainerengineNodePoolNodeConfigDetailsPlacementConfigsList[_o] = { fqn: "rhizo-co-terraform-provider-oci.containerengineNodePool.ContainerengineNodePoolNodeConfigDetailsPlacementConfigsList", version: "1.0.0" }; function containerengineNodePoolNodeConfigDetailsToTerraform(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 { defined_tags: cdktf.hashMapper(cdktf.stringToTerraform)(struct.definedTags), freeform_tags: cdktf.hashMapper(cdktf.stringToTerraform)(struct.freeformTags), is_pv_encryption_in_transit_enabled: cdktf.booleanToTerraform(struct.isPvEncryptionInTransitEnabled), kms_key_id: cdktf.stringToTerraform(struct.kmsKeyId), nsg_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.nsgIds), size: cdktf.numberToTerraform(struct.size), node_pool_pod_network_option_details: containerengineNodePoolNodeConfigDetailsNodePoolPodNetworkOptionDetailsToTerraform(struct.nodePoolPodNetworkOptionDetails), placement_configs: cdktf.listMapper(containerengineNodePoolNodeConfigDetailsPlacementConfigsToTerraform, true)(struct.placementConfigs), }; } exports.containerengineNodePoolNodeConfigDetailsToTerraform = containerengineNodePoolNodeConfigDetailsToTerraform; function containerengineNodePoolNodeConfigDetailsToHclTerraform(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 = { defined_tags: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.definedTags), isBlock: false, type: "map", storageClassType: "stringMap", }, freeform_tags: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.freeformTags), isBlock: false, type: "map", storageClassType: "stringMap", }, is_pv_encryption_in_transit_enabled: { value: cdktf.booleanToHclTerraform(struct.isPvEncryptionInTransitEnabled), isBlock: false, type: "simple",