UNPKG

rhizo-co-terraform-provider-oci

Version:

Prebuilt oci Provider for Terraform CDK (cdktf)

1,015 lines 212 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o; Object.defineProperty(exports, "__esModule", { value: true }); exports.CoreInstancePool = exports.CoreInstancePoolTimeoutsOutputReference = exports.coreInstancePoolTimeoutsToHclTerraform = exports.coreInstancePoolTimeoutsToTerraform = exports.CoreInstancePoolPlacementConfigurationsList = exports.CoreInstancePoolPlacementConfigurationsOutputReference = exports.coreInstancePoolPlacementConfigurationsToHclTerraform = exports.coreInstancePoolPlacementConfigurationsToTerraform = exports.CoreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsList = exports.CoreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsOutputReference = exports.coreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsToHclTerraform = exports.coreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsToTerraform = exports.CoreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsList = exports.CoreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsOutputReference = exports.coreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsToHclTerraform = exports.coreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsToTerraform = exports.CoreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsOutputReference = exports.coreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsToHclTerraform = exports.coreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsToTerraform = exports.CoreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsList = exports.CoreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsOutputReference = exports.coreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsToHclTerraform = exports.coreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsToTerraform = exports.CoreInstancePoolLoadBalancersList = exports.CoreInstancePoolLoadBalancersOutputReference = exports.coreInstancePoolLoadBalancersToHclTerraform = exports.coreInstancePoolLoadBalancersToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function coreInstancePoolLoadBalancersToTerraform(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 { backend_set_name: cdktf.stringToTerraform(struct.backendSetName), load_balancer_id: cdktf.stringToTerraform(struct.loadBalancerId), port: cdktf.numberToTerraform(struct.port), vnic_selection: cdktf.stringToTerraform(struct.vnicSelection), }; } exports.coreInstancePoolLoadBalancersToTerraform = coreInstancePoolLoadBalancersToTerraform; function coreInstancePoolLoadBalancersToHclTerraform(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 = { backend_set_name: { value: cdktf.stringToHclTerraform(struct.backendSetName), isBlock: false, type: "simple", storageClassType: "string", }, load_balancer_id: { value: cdktf.stringToHclTerraform(struct.loadBalancerId), isBlock: false, type: "simple", storageClassType: "string", }, port: { value: cdktf.numberToHclTerraform(struct.port), isBlock: false, type: "simple", storageClassType: "number", }, vnic_selection: { value: cdktf.stringToHclTerraform(struct.vnicSelection), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.coreInstancePoolLoadBalancersToHclTerraform = coreInstancePoolLoadBalancersToHclTerraform; class CoreInstancePoolLoadBalancersOutputReference 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._backendSetName !== undefined) { hasAnyValues = true; internalValueResult.backendSetName = this._backendSetName; } if (this._loadBalancerId !== undefined) { hasAnyValues = true; internalValueResult.loadBalancerId = this._loadBalancerId; } if (this._port !== undefined) { hasAnyValues = true; internalValueResult.port = this._port; } if (this._vnicSelection !== undefined) { hasAnyValues = true; internalValueResult.vnicSelection = this._vnicSelection; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._backendSetName = undefined; this._loadBalancerId = undefined; this._port = undefined; this._vnicSelection = 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._backendSetName = value.backendSetName; this._loadBalancerId = value.loadBalancerId; this._port = value.port; this._vnicSelection = value.vnicSelection; } } get backendSetName() { return this.getStringAttribute('backend_set_name'); } set backendSetName(value) { this._backendSetName = value; } // Temporarily expose input value. Use with caution. get backendSetNameInput() { return this._backendSetName; } // id - computed: true, optional: false, required: false get id() { return this.getStringAttribute('id'); } // instance_pool_id - computed: true, optional: false, required: false get instancePoolId() { return this.getStringAttribute('instance_pool_id'); } get loadBalancerId() { return this.getStringAttribute('load_balancer_id'); } set loadBalancerId(value) { this._loadBalancerId = value; } // Temporarily expose input value. Use with caution. get loadBalancerIdInput() { return this._loadBalancerId; } get port() { return this.getNumberAttribute('port'); } set port(value) { this._port = value; } // Temporarily expose input value. Use with caution. get portInput() { return this._port; } // state - computed: true, optional: false, required: false get state() { return this.getStringAttribute('state'); } get vnicSelection() { return this.getStringAttribute('vnic_selection'); } set vnicSelection(value) { this._vnicSelection = value; } // Temporarily expose input value. Use with caution. get vnicSelectionInput() { return this._vnicSelection; } } exports.CoreInstancePoolLoadBalancersOutputReference = CoreInstancePoolLoadBalancersOutputReference; _a = JSII_RTTI_SYMBOL_1; CoreInstancePoolLoadBalancersOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.coreInstancePool.CoreInstancePoolLoadBalancersOutputReference", version: "1.0.0" }; class CoreInstancePoolLoadBalancersList 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 CoreInstancePoolLoadBalancersOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.CoreInstancePoolLoadBalancersList = CoreInstancePoolLoadBalancersList; _b = JSII_RTTI_SYMBOL_1; CoreInstancePoolLoadBalancersList[_b] = { fqn: "rhizo-co-terraform-provider-oci.coreInstancePool.CoreInstancePoolLoadBalancersList", version: "1.0.0" }; function coreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsToTerraform(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 { ipv6subnet_cidr: cdktf.stringToTerraform(struct.ipv6SubnetCidr), }; } exports.coreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsToTerraform = coreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsToTerraform; function coreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsToHclTerraform(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 = { ipv6subnet_cidr: { value: cdktf.stringToHclTerraform(struct.ipv6SubnetCidr), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.coreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsToHclTerraform = coreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsToHclTerraform; class CoreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsOutputReference 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._ipv6SubnetCidr !== undefined) { hasAnyValues = true; internalValueResult.ipv6SubnetCidr = this._ipv6SubnetCidr; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._ipv6SubnetCidr = 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._ipv6SubnetCidr = value.ipv6SubnetCidr; } } get ipv6SubnetCidr() { return this.getStringAttribute('ipv6subnet_cidr'); } set ipv6SubnetCidr(value) { this._ipv6SubnetCidr = value; } resetIpv6SubnetCidr() { this._ipv6SubnetCidr = undefined; } // Temporarily expose input value. Use with caution. get ipv6SubnetCidrInput() { return this._ipv6SubnetCidr; } } exports.CoreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsOutputReference = CoreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsOutputReference; _c = JSII_RTTI_SYMBOL_1; CoreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.coreInstancePool.CoreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsOutputReference", version: "1.0.0" }; class CoreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsList 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 CoreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.CoreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsList = CoreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsList; _d = JSII_RTTI_SYMBOL_1; CoreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsList[_d] = { fqn: "rhizo-co-terraform-provider-oci.coreInstancePool.CoreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsList", version: "1.0.0" }; function coreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsToTerraform(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_assign_ipv6ip: cdktf.booleanToTerraform(struct.isAssignIpv6Ip), subnet_id: cdktf.stringToTerraform(struct.subnetId), ipv6address_ipv6subnet_cidr_pair_details: cdktf.listMapper(coreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsToTerraform, true)(struct.ipv6AddressIpv6SubnetCidrPairDetails), }; } exports.coreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsToTerraform = coreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsToTerraform; function coreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsToHclTerraform(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_assign_ipv6ip: { value: cdktf.booleanToHclTerraform(struct.isAssignIpv6Ip), isBlock: false, type: "simple", storageClassType: "boolean", }, subnet_id: { value: cdktf.stringToHclTerraform(struct.subnetId), isBlock: false, type: "simple", storageClassType: "string", }, ipv6address_ipv6subnet_cidr_pair_details: { value: cdktf.listMapperHcl(coreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsToHclTerraform, true)(struct.ipv6AddressIpv6SubnetCidrPairDetails), isBlock: true, type: "list", storageClassType: "CoreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.coreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsToHclTerraform = coreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsToHclTerraform; class CoreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsOutputReference 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; // ipv6address_ipv6subnet_cidr_pair_details - computed: false, optional: true, required: false this._ipv6AddressIpv6SubnetCidrPairDetails = new CoreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsList(this, "ipv6address_ipv6subnet_cidr_pair_details", false); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._isAssignIpv6Ip !== undefined) { hasAnyValues = true; internalValueResult.isAssignIpv6Ip = this._isAssignIpv6Ip; } if (this._subnetId !== undefined) { hasAnyValues = true; internalValueResult.subnetId = this._subnetId; } if (this._ipv6AddressIpv6SubnetCidrPairDetails?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.ipv6AddressIpv6SubnetCidrPairDetails = this._ipv6AddressIpv6SubnetCidrPairDetails?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._isAssignIpv6Ip = undefined; this._subnetId = undefined; this._ipv6AddressIpv6SubnetCidrPairDetails.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._isAssignIpv6Ip = value.isAssignIpv6Ip; this._subnetId = value.subnetId; this._ipv6AddressIpv6SubnetCidrPairDetails.internalValue = value.ipv6AddressIpv6SubnetCidrPairDetails; } } get isAssignIpv6Ip() { return this.getBooleanAttribute('is_assign_ipv6ip'); } set isAssignIpv6Ip(value) { this._isAssignIpv6Ip = value; } resetIsAssignIpv6Ip() { this._isAssignIpv6Ip = undefined; } // Temporarily expose input value. Use with caution. get isAssignIpv6IpInput() { return this._isAssignIpv6Ip; } 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 ipv6AddressIpv6SubnetCidrPairDetails() { return this._ipv6AddressIpv6SubnetCidrPairDetails; } putIpv6AddressIpv6SubnetCidrPairDetails(value) { this._ipv6AddressIpv6SubnetCidrPairDetails.internalValue = value; } resetIpv6AddressIpv6SubnetCidrPairDetails() { this._ipv6AddressIpv6SubnetCidrPairDetails.internalValue = undefined; } // Temporarily expose input value. Use with caution. get ipv6AddressIpv6SubnetCidrPairDetailsInput() { return this._ipv6AddressIpv6SubnetCidrPairDetails.internalValue; } } exports.CoreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsOutputReference = CoreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsOutputReference; _e = JSII_RTTI_SYMBOL_1; CoreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.coreInstancePool.CoreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsOutputReference", version: "1.0.0" }; function coreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsToTerraform(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 { ipv6subnet_cidr: cdktf.stringToTerraform(struct.ipv6SubnetCidr), }; } exports.coreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsToTerraform = coreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsToTerraform; function coreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsToHclTerraform(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 = { ipv6subnet_cidr: { value: cdktf.stringToHclTerraform(struct.ipv6SubnetCidr), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.coreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsToHclTerraform = coreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsToHclTerraform; class CoreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsOutputReference 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._ipv6SubnetCidr !== undefined) { hasAnyValues = true; internalValueResult.ipv6SubnetCidr = this._ipv6SubnetCidr; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._ipv6SubnetCidr = 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._ipv6SubnetCidr = value.ipv6SubnetCidr; } } get ipv6SubnetCidr() { return this.getStringAttribute('ipv6subnet_cidr'); } set ipv6SubnetCidr(value) { this._ipv6SubnetCidr = value; } resetIpv6SubnetCidr() { this._ipv6SubnetCidr = undefined; } // Temporarily expose input value. Use with caution. get ipv6SubnetCidrInput() { return this._ipv6SubnetCidr; } } exports.CoreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsOutputReference = CoreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsOutputReference; _f = JSII_RTTI_SYMBOL_1; CoreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsOutputReference[_f] = { fqn: "rhizo-co-terraform-provider-oci.coreInstancePool.CoreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsOutputReference", version: "1.0.0" }; class CoreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsList 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 CoreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.CoreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsList = CoreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsList; _g = JSII_RTTI_SYMBOL_1; CoreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsList[_g] = { fqn: "rhizo-co-terraform-provider-oci.coreInstancePool.CoreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsList", version: "1.0.0" }; function coreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsToTerraform(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 { display_name: cdktf.stringToTerraform(struct.displayName), is_assign_ipv6ip: cdktf.booleanToTerraform(struct.isAssignIpv6Ip), subnet_id: cdktf.stringToTerraform(struct.subnetId), ipv6address_ipv6subnet_cidr_pair_details: cdktf.listMapper(coreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsToTerraform, true)(struct.ipv6AddressIpv6SubnetCidrPairDetails), }; } exports.coreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsToTerraform = coreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsToTerraform; function coreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsToHclTerraform(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 = { display_name: { value: cdktf.stringToHclTerraform(struct.displayName), isBlock: false, type: "simple", storageClassType: "string", }, is_assign_ipv6ip: { value: cdktf.booleanToHclTerraform(struct.isAssignIpv6Ip), isBlock: false, type: "simple", storageClassType: "boolean", }, subnet_id: { value: cdktf.stringToHclTerraform(struct.subnetId), isBlock: false, type: "simple", storageClassType: "string", }, ipv6address_ipv6subnet_cidr_pair_details: { value: cdktf.listMapperHcl(coreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsToHclTerraform, true)(struct.ipv6AddressIpv6SubnetCidrPairDetails), isBlock: true, type: "list", storageClassType: "CoreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.coreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsToHclTerraform = coreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsToHclTerraform; class CoreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsOutputReference 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; // ipv6address_ipv6subnet_cidr_pair_details - computed: false, optional: true, required: false this._ipv6AddressIpv6SubnetCidrPairDetails = new CoreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsIpv6AddressIpv6SubnetCidrPairDetailsList(this, "ipv6address_ipv6subnet_cidr_pair_details", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._displayName !== undefined) { hasAnyValues = true; internalValueResult.displayName = this._displayName; } if (this._isAssignIpv6Ip !== undefined) { hasAnyValues = true; internalValueResult.isAssignIpv6Ip = this._isAssignIpv6Ip; } if (this._subnetId !== undefined) { hasAnyValues = true; internalValueResult.subnetId = this._subnetId; } if (this._ipv6AddressIpv6SubnetCidrPairDetails?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.ipv6AddressIpv6SubnetCidrPairDetails = this._ipv6AddressIpv6SubnetCidrPairDetails?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._displayName = undefined; this._isAssignIpv6Ip = undefined; this._subnetId = undefined; this._ipv6AddressIpv6SubnetCidrPairDetails.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._displayName = value.displayName; this._isAssignIpv6Ip = value.isAssignIpv6Ip; this._subnetId = value.subnetId; this._ipv6AddressIpv6SubnetCidrPairDetails.internalValue = value.ipv6AddressIpv6SubnetCidrPairDetails; } } get displayName() { return this.getStringAttribute('display_name'); } set displayName(value) { this._displayName = value; } resetDisplayName() { this._displayName = undefined; } // Temporarily expose input value. Use with caution. get displayNameInput() { return this._displayName; } get isAssignIpv6Ip() { return this.getBooleanAttribute('is_assign_ipv6ip'); } set isAssignIpv6Ip(value) { this._isAssignIpv6Ip = value; } resetIsAssignIpv6Ip() { this._isAssignIpv6Ip = undefined; } // Temporarily expose input value. Use with caution. get isAssignIpv6IpInput() { return this._isAssignIpv6Ip; } 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 ipv6AddressIpv6SubnetCidrPairDetails() { return this._ipv6AddressIpv6SubnetCidrPairDetails; } putIpv6AddressIpv6SubnetCidrPairDetails(value) { this._ipv6AddressIpv6SubnetCidrPairDetails.internalValue = value; } resetIpv6AddressIpv6SubnetCidrPairDetails() { this._ipv6AddressIpv6SubnetCidrPairDetails.internalValue = undefined; } // Temporarily expose input value. Use with caution. get ipv6AddressIpv6SubnetCidrPairDetailsInput() { return this._ipv6AddressIpv6SubnetCidrPairDetails.internalValue; } } exports.CoreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsOutputReference = CoreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsOutputReference; _h = JSII_RTTI_SYMBOL_1; CoreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsOutputReference[_h] = { fqn: "rhizo-co-terraform-provider-oci.coreInstancePool.CoreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsOutputReference", version: "1.0.0" }; class CoreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsList 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 CoreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.CoreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsList = CoreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsList; _j = JSII_RTTI_SYMBOL_1; CoreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsList[_j] = { fqn: "rhizo-co-terraform-provider-oci.coreInstancePool.CoreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsList", version: "1.0.0" }; function coreInstancePoolPlacementConfigurationsToTerraform(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), fault_domains: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.faultDomains), primary_subnet_id: cdktf.stringToTerraform(struct.primarySubnetId), primary_vnic_subnets: coreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsToTerraform(struct.primaryVnicSubnets), secondary_vnic_subnets: cdktf.listMapper(coreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsToTerraform, true)(struct.secondaryVnicSubnets), }; } exports.coreInstancePoolPlacementConfigurationsToTerraform = coreInstancePoolPlacementConfigurationsToTerraform; function coreInstancePoolPlacementConfigurationsToHclTerraform(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", }, fault_domains: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.faultDomains), isBlock: false, type: "list", storageClassType: "stringList", }, primary_subnet_id: { value: cdktf.stringToHclTerraform(struct.primarySubnetId), isBlock: false, type: "simple", storageClassType: "string", }, primary_vnic_subnets: { value: coreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsToHclTerraform(struct.primaryVnicSubnets), isBlock: true, type: "list", storageClassType: "CoreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsList", }, secondary_vnic_subnets: { value: cdktf.listMapperHcl(coreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsToHclTerraform, true)(struct.secondaryVnicSubnets), isBlock: true, type: "list", storageClassType: "CoreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.coreInstancePoolPlacementConfigurationsToHclTerraform = coreInstancePoolPlacementConfigurationsToHclTerraform; class CoreInstancePoolPlacementConfigurationsOutputReference 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; // primary_vnic_subnets - computed: false, optional: true, required: false this._primaryVnicSubnets = new CoreInstancePoolPlacementConfigurationsPrimaryVnicSubnetsOutputReference(this, "primary_vnic_subnets"); // secondary_vnic_subnets - computed: false, optional: true, required: false this._secondaryVnicSubnets = new CoreInstancePoolPlacementConfigurationsSecondaryVnicSubnetsList(this, "secondary_vnic_subnets", false); } 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._faultDomains !== undefined) { hasAnyValues = true; internalValueResult.faultDomains = this._faultDomains; } if (this._primarySubnetId !== undefined) { hasAnyValues = true; internalValueResult.primarySubnetId = this._primarySubnetId; } if (this._primaryVnicSubnets?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.primaryVnicSubnets = this._primaryVnicSubnets?.internalValue; } if (this._secondaryVnicSubnets?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.secondaryVnicSubnets = this._secondaryVnicSubnets?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._availabilityDomain = undefined; this._faultDomains = undefined; this._primarySubnetId = undefined; this._primaryVnicSubnets.internalValue = undefined; this._secondaryVnicSubnets.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._faultDomains = value.faultDomains; this._primarySubnetId = value.primarySubnetId; this._primaryVnicSubnets.internalValue = value.primaryVnicSubnets; this._secondaryVnicSubnets.internalValue = value.secondaryVnicSubnets; } } 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 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 primarySubnetId() { return this.getStringAttribute('primary_subnet_id'); } set primarySubnetId(value) { this._primarySubnetId = value; } resetPrimarySubnetId() { this._primarySubnetId = undefined; } // Temporarily expose input value. Use with caution. get primarySubnetIdInput() { return this._primarySubnetId; } get primaryVnicSubnets() { return this._primaryVnicSubnets; } putPrimaryVnicSubnets(value) { this._primaryVnicSubnets.internalValue = value; } resetPrimaryVnicSubnets() { this._primaryVnicSubnets.internalValue = undefined; } // Temporarily expose input value. Use with caution. get primaryVnicSubnetsInput() { return this._primaryVnicSubnets.internalValue; } get secondaryVnicSubnets() { return this._secondaryVnicSubnets; } putSecondaryVnicSubnets(value) { this._secondaryVnicSubnets.internalValue = value; } resetSecondaryVnicSubnets() { this._secondaryVnicSubnets.internalValue = undefined; } // Temporarily expose input value. Use with caution. get secondaryVnicSubnetsInput() { return this._secondaryVnicSubnets.internalValue; } } exports.CoreInstancePoolPlacementConfigurationsOutputReference = CoreInstancePoolPlacementConfigurationsOutputReference; _k = JSII_RTTI_SYMBOL_1; CoreInstancePoolPlacementConfigurationsOutputReference[_k] = { fqn: "rhizo-co-terraform-provider-oci.coreInstancePool.CoreInstancePoolPlacementConfigurationsOutputReference", version: "1.0.0" }; class CoreInstancePoolPlacementConfigurationsList 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 CoreInstancePoolPlacementConfigurationsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.CoreInstancePoolPlacementConfigurationsList = CoreInstancePoolPlacementConfigurationsList; _l = JSII_RTTI_SYMBOL_1; CoreInstancePoolPlacementConfigurationsList[_l] = { fqn: "rhizo-co-terraform-provider-oci.coreInstancePool.CoreInstancePoolPlacementConfigurationsList", version: "1.0.0" }; function coreInstancePoolTimeoutsToTerraform(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), }; } exports.coreInstancePoolTimeoutsToTerraform = coreInstancePoolTimeoutsToTerraform; function coreInstancePoolTimeoutsToHclTerraform(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)); } exports.coreInstancePoolTimeoutsToHclTerraform = coreInstancePoolTimeoutsToHclTerraform; class CoreInstancePoolTimeoutsOutputReference 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.i