UNPKG

rhizo-co-terraform-provider-oci

Version:

Prebuilt oci Provider for Terraform CDK (cdktf)

1,173 lines 290 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r; Object.defineProperty(exports, "__esModule", { value: true }); exports.CoreSecurityList = exports.CoreSecurityListTimeoutsOutputReference = exports.coreSecurityListTimeoutsToHclTerraform = exports.coreSecurityListTimeoutsToTerraform = exports.CoreSecurityListIngressSecurityRulesList = exports.CoreSecurityListIngressSecurityRulesOutputReference = exports.coreSecurityListIngressSecurityRulesToHclTerraform = exports.coreSecurityListIngressSecurityRulesToTerraform = exports.CoreSecurityListIngressSecurityRulesUdpOptionsOutputReference = exports.coreSecurityListIngressSecurityRulesUdpOptionsToHclTerraform = exports.coreSecurityListIngressSecurityRulesUdpOptionsToTerraform = exports.CoreSecurityListIngressSecurityRulesUdpOptionsSourcePortRangeOutputReference = exports.coreSecurityListIngressSecurityRulesUdpOptionsSourcePortRangeToHclTerraform = exports.coreSecurityListIngressSecurityRulesUdpOptionsSourcePortRangeToTerraform = exports.CoreSecurityListIngressSecurityRulesTcpOptionsOutputReference = exports.coreSecurityListIngressSecurityRulesTcpOptionsToHclTerraform = exports.coreSecurityListIngressSecurityRulesTcpOptionsToTerraform = exports.CoreSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeOutputReference = exports.coreSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeToHclTerraform = exports.coreSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeToTerraform = exports.CoreSecurityListIngressSecurityRulesIcmpOptionsOutputReference = exports.coreSecurityListIngressSecurityRulesIcmpOptionsToHclTerraform = exports.coreSecurityListIngressSecurityRulesIcmpOptionsToTerraform = exports.CoreSecurityListEgressSecurityRulesList = exports.CoreSecurityListEgressSecurityRulesOutputReference = exports.coreSecurityListEgressSecurityRulesToHclTerraform = exports.coreSecurityListEgressSecurityRulesToTerraform = exports.CoreSecurityListEgressSecurityRulesUdpOptionsOutputReference = exports.coreSecurityListEgressSecurityRulesUdpOptionsToHclTerraform = exports.coreSecurityListEgressSecurityRulesUdpOptionsToTerraform = exports.CoreSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeOutputReference = exports.coreSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeToHclTerraform = exports.coreSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeToTerraform = exports.CoreSecurityListEgressSecurityRulesTcpOptionsOutputReference = exports.coreSecurityListEgressSecurityRulesTcpOptionsToHclTerraform = exports.coreSecurityListEgressSecurityRulesTcpOptionsToTerraform = exports.CoreSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeOutputReference = exports.coreSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeToHclTerraform = exports.coreSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeToTerraform = exports.CoreSecurityListEgressSecurityRulesIcmpOptionsOutputReference = exports.coreSecurityListEgressSecurityRulesIcmpOptionsToHclTerraform = exports.coreSecurityListEgressSecurityRulesIcmpOptionsToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function coreSecurityListEgressSecurityRulesIcmpOptionsToTerraform(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 { code: cdktf.numberToTerraform(struct.code), type: cdktf.numberToTerraform(struct.type), }; } exports.coreSecurityListEgressSecurityRulesIcmpOptionsToTerraform = coreSecurityListEgressSecurityRulesIcmpOptionsToTerraform; function coreSecurityListEgressSecurityRulesIcmpOptionsToHclTerraform(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 = { code: { value: cdktf.numberToHclTerraform(struct.code), isBlock: false, type: "simple", storageClassType: "number", }, type: { value: cdktf.numberToHclTerraform(struct.type), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.coreSecurityListEgressSecurityRulesIcmpOptionsToHclTerraform = coreSecurityListEgressSecurityRulesIcmpOptionsToHclTerraform; class CoreSecurityListEgressSecurityRulesIcmpOptionsOutputReference 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._code !== undefined) { hasAnyValues = true; internalValueResult.code = this._code; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._code = undefined; this._type = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._code = value.code; this._type = value.type; } } get code() { return this.getNumberAttribute('code'); } set code(value) { this._code = value; } resetCode() { this._code = undefined; } // Temporarily expose input value. Use with caution. get codeInput() { return this._code; } get type() { return this.getNumberAttribute('type'); } set type(value) { this._type = value; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } } exports.CoreSecurityListEgressSecurityRulesIcmpOptionsOutputReference = CoreSecurityListEgressSecurityRulesIcmpOptionsOutputReference; _a = JSII_RTTI_SYMBOL_1; CoreSecurityListEgressSecurityRulesIcmpOptionsOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.coreSecurityList.CoreSecurityListEgressSecurityRulesIcmpOptionsOutputReference", version: "1.0.0" }; function coreSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeToTerraform(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 { max: cdktf.numberToTerraform(struct.max), min: cdktf.numberToTerraform(struct.min), }; } exports.coreSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeToTerraform = coreSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeToTerraform; function coreSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeToHclTerraform(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 = { max: { value: cdktf.numberToHclTerraform(struct.max), isBlock: false, type: "simple", storageClassType: "number", }, min: { value: cdktf.numberToHclTerraform(struct.min), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.coreSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeToHclTerraform = coreSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeToHclTerraform; class CoreSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeOutputReference 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._max !== undefined) { hasAnyValues = true; internalValueResult.max = this._max; } if (this._min !== undefined) { hasAnyValues = true; internalValueResult.min = this._min; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._max = undefined; this._min = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._max = value.max; this._min = value.min; } } get max() { return this.getNumberAttribute('max'); } set max(value) { this._max = value; } // Temporarily expose input value. Use with caution. get maxInput() { return this._max; } get min() { return this.getNumberAttribute('min'); } set min(value) { this._min = value; } // Temporarily expose input value. Use with caution. get minInput() { return this._min; } } exports.CoreSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeOutputReference = CoreSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeOutputReference; _b = JSII_RTTI_SYMBOL_1; CoreSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeOutputReference[_b] = { fqn: "rhizo-co-terraform-provider-oci.coreSecurityList.CoreSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeOutputReference", version: "1.0.0" }; function coreSecurityListEgressSecurityRulesTcpOptionsToTerraform(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 { max: cdktf.numberToTerraform(struct.max), min: cdktf.numberToTerraform(struct.min), source_port_range: coreSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeToTerraform(struct.sourcePortRange), }; } exports.coreSecurityListEgressSecurityRulesTcpOptionsToTerraform = coreSecurityListEgressSecurityRulesTcpOptionsToTerraform; function coreSecurityListEgressSecurityRulesTcpOptionsToHclTerraform(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 = { max: { value: cdktf.numberToHclTerraform(struct.max), isBlock: false, type: "simple", storageClassType: "number", }, min: { value: cdktf.numberToHclTerraform(struct.min), isBlock: false, type: "simple", storageClassType: "number", }, source_port_range: { value: coreSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeToHclTerraform(struct.sourcePortRange), isBlock: true, type: "list", storageClassType: "CoreSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.coreSecurityListEgressSecurityRulesTcpOptionsToHclTerraform = coreSecurityListEgressSecurityRulesTcpOptionsToHclTerraform; class CoreSecurityListEgressSecurityRulesTcpOptionsOutputReference 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; // source_port_range - computed: false, optional: true, required: false this._sourcePortRange = new CoreSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeOutputReference(this, "source_port_range"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._max !== undefined) { hasAnyValues = true; internalValueResult.max = this._max; } if (this._min !== undefined) { hasAnyValues = true; internalValueResult.min = this._min; } if (this._sourcePortRange?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.sourcePortRange = this._sourcePortRange?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._max = undefined; this._min = undefined; this._sourcePortRange.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._max = value.max; this._min = value.min; this._sourcePortRange.internalValue = value.sourcePortRange; } } get max() { return this.getNumberAttribute('max'); } set max(value) { this._max = value; } resetMax() { this._max = undefined; } // Temporarily expose input value. Use with caution. get maxInput() { return this._max; } get min() { return this.getNumberAttribute('min'); } set min(value) { this._min = value; } resetMin() { this._min = undefined; } // Temporarily expose input value. Use with caution. get minInput() { return this._min; } get sourcePortRange() { return this._sourcePortRange; } putSourcePortRange(value) { this._sourcePortRange.internalValue = value; } resetSourcePortRange() { this._sourcePortRange.internalValue = undefined; } // Temporarily expose input value. Use with caution. get sourcePortRangeInput() { return this._sourcePortRange.internalValue; } } exports.CoreSecurityListEgressSecurityRulesTcpOptionsOutputReference = CoreSecurityListEgressSecurityRulesTcpOptionsOutputReference; _c = JSII_RTTI_SYMBOL_1; CoreSecurityListEgressSecurityRulesTcpOptionsOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.coreSecurityList.CoreSecurityListEgressSecurityRulesTcpOptionsOutputReference", version: "1.0.0" }; function coreSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeToTerraform(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 { max: cdktf.numberToTerraform(struct.max), min: cdktf.numberToTerraform(struct.min), }; } exports.coreSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeToTerraform = coreSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeToTerraform; function coreSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeToHclTerraform(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 = { max: { value: cdktf.numberToHclTerraform(struct.max), isBlock: false, type: "simple", storageClassType: "number", }, min: { value: cdktf.numberToHclTerraform(struct.min), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.coreSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeToHclTerraform = coreSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeToHclTerraform; class CoreSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeOutputReference 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._max !== undefined) { hasAnyValues = true; internalValueResult.max = this._max; } if (this._min !== undefined) { hasAnyValues = true; internalValueResult.min = this._min; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._max = undefined; this._min = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._max = value.max; this._min = value.min; } } get max() { return this.getNumberAttribute('max'); } set max(value) { this._max = value; } // Temporarily expose input value. Use with caution. get maxInput() { return this._max; } get min() { return this.getNumberAttribute('min'); } set min(value) { this._min = value; } // Temporarily expose input value. Use with caution. get minInput() { return this._min; } } exports.CoreSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeOutputReference = CoreSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeOutputReference; _d = JSII_RTTI_SYMBOL_1; CoreSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeOutputReference[_d] = { fqn: "rhizo-co-terraform-provider-oci.coreSecurityList.CoreSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeOutputReference", version: "1.0.0" }; function coreSecurityListEgressSecurityRulesUdpOptionsToTerraform(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 { max: cdktf.numberToTerraform(struct.max), min: cdktf.numberToTerraform(struct.min), source_port_range: coreSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeToTerraform(struct.sourcePortRange), }; } exports.coreSecurityListEgressSecurityRulesUdpOptionsToTerraform = coreSecurityListEgressSecurityRulesUdpOptionsToTerraform; function coreSecurityListEgressSecurityRulesUdpOptionsToHclTerraform(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 = { max: { value: cdktf.numberToHclTerraform(struct.max), isBlock: false, type: "simple", storageClassType: "number", }, min: { value: cdktf.numberToHclTerraform(struct.min), isBlock: false, type: "simple", storageClassType: "number", }, source_port_range: { value: coreSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeToHclTerraform(struct.sourcePortRange), isBlock: true, type: "list", storageClassType: "CoreSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.coreSecurityListEgressSecurityRulesUdpOptionsToHclTerraform = coreSecurityListEgressSecurityRulesUdpOptionsToHclTerraform; class CoreSecurityListEgressSecurityRulesUdpOptionsOutputReference 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; // source_port_range - computed: false, optional: true, required: false this._sourcePortRange = new CoreSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeOutputReference(this, "source_port_range"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._max !== undefined) { hasAnyValues = true; internalValueResult.max = this._max; } if (this._min !== undefined) { hasAnyValues = true; internalValueResult.min = this._min; } if (this._sourcePortRange?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.sourcePortRange = this._sourcePortRange?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._max = undefined; this._min = undefined; this._sourcePortRange.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._max = value.max; this._min = value.min; this._sourcePortRange.internalValue = value.sourcePortRange; } } get max() { return this.getNumberAttribute('max'); } set max(value) { this._max = value; } resetMax() { this._max = undefined; } // Temporarily expose input value. Use with caution. get maxInput() { return this._max; } get min() { return this.getNumberAttribute('min'); } set min(value) { this._min = value; } resetMin() { this._min = undefined; } // Temporarily expose input value. Use with caution. get minInput() { return this._min; } get sourcePortRange() { return this._sourcePortRange; } putSourcePortRange(value) { this._sourcePortRange.internalValue = value; } resetSourcePortRange() { this._sourcePortRange.internalValue = undefined; } // Temporarily expose input value. Use with caution. get sourcePortRangeInput() { return this._sourcePortRange.internalValue; } } exports.CoreSecurityListEgressSecurityRulesUdpOptionsOutputReference = CoreSecurityListEgressSecurityRulesUdpOptionsOutputReference; _e = JSII_RTTI_SYMBOL_1; CoreSecurityListEgressSecurityRulesUdpOptionsOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.coreSecurityList.CoreSecurityListEgressSecurityRulesUdpOptionsOutputReference", version: "1.0.0" }; function coreSecurityListEgressSecurityRulesToTerraform(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 { description: cdktf.stringToTerraform(struct.description), destination: cdktf.stringToTerraform(struct.destination), destination_type: cdktf.stringToTerraform(struct.destinationType), protocol: cdktf.stringToTerraform(struct.protocol), stateless: cdktf.booleanToTerraform(struct.stateless), icmp_options: coreSecurityListEgressSecurityRulesIcmpOptionsToTerraform(struct.icmpOptions), tcp_options: coreSecurityListEgressSecurityRulesTcpOptionsToTerraform(struct.tcpOptions), udp_options: coreSecurityListEgressSecurityRulesUdpOptionsToTerraform(struct.udpOptions), }; } exports.coreSecurityListEgressSecurityRulesToTerraform = coreSecurityListEgressSecurityRulesToTerraform; function coreSecurityListEgressSecurityRulesToHclTerraform(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 = { description: { value: cdktf.stringToHclTerraform(struct.description), isBlock: false, type: "simple", storageClassType: "string", }, destination: { value: cdktf.stringToHclTerraform(struct.destination), isBlock: false, type: "simple", storageClassType: "string", }, destination_type: { value: cdktf.stringToHclTerraform(struct.destinationType), isBlock: false, type: "simple", storageClassType: "string", }, protocol: { value: cdktf.stringToHclTerraform(struct.protocol), isBlock: false, type: "simple", storageClassType: "string", }, stateless: { value: cdktf.booleanToHclTerraform(struct.stateless), isBlock: false, type: "simple", storageClassType: "boolean", }, icmp_options: { value: coreSecurityListEgressSecurityRulesIcmpOptionsToHclTerraform(struct.icmpOptions), isBlock: true, type: "list", storageClassType: "CoreSecurityListEgressSecurityRulesIcmpOptionsList", }, tcp_options: { value: coreSecurityListEgressSecurityRulesTcpOptionsToHclTerraform(struct.tcpOptions), isBlock: true, type: "list", storageClassType: "CoreSecurityListEgressSecurityRulesTcpOptionsList", }, udp_options: { value: coreSecurityListEgressSecurityRulesUdpOptionsToHclTerraform(struct.udpOptions), isBlock: true, type: "list", storageClassType: "CoreSecurityListEgressSecurityRulesUdpOptionsList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.coreSecurityListEgressSecurityRulesToHclTerraform = coreSecurityListEgressSecurityRulesToHclTerraform; class CoreSecurityListEgressSecurityRulesOutputReference 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; // icmp_options - computed: false, optional: true, required: false this._icmpOptions = new CoreSecurityListEgressSecurityRulesIcmpOptionsOutputReference(this, "icmp_options"); // tcp_options - computed: false, optional: true, required: false this._tcpOptions = new CoreSecurityListEgressSecurityRulesTcpOptionsOutputReference(this, "tcp_options"); // udp_options - computed: false, optional: true, required: false this._udpOptions = new CoreSecurityListEgressSecurityRulesUdpOptionsOutputReference(this, "udp_options"); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._description !== undefined) { hasAnyValues = true; internalValueResult.description = this._description; } if (this._destination !== undefined) { hasAnyValues = true; internalValueResult.destination = this._destination; } if (this._destinationType !== undefined) { hasAnyValues = true; internalValueResult.destinationType = this._destinationType; } if (this._protocol !== undefined) { hasAnyValues = true; internalValueResult.protocol = this._protocol; } if (this._stateless !== undefined) { hasAnyValues = true; internalValueResult.stateless = this._stateless; } if (this._icmpOptions?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.icmpOptions = this._icmpOptions?.internalValue; } if (this._tcpOptions?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.tcpOptions = this._tcpOptions?.internalValue; } if (this._udpOptions?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.udpOptions = this._udpOptions?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._description = undefined; this._destination = undefined; this._destinationType = undefined; this._protocol = undefined; this._stateless = undefined; this._icmpOptions.internalValue = undefined; this._tcpOptions.internalValue = undefined; this._udpOptions.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._description = value.description; this._destination = value.destination; this._destinationType = value.destinationType; this._protocol = value.protocol; this._stateless = value.stateless; this._icmpOptions.internalValue = value.icmpOptions; this._tcpOptions.internalValue = value.tcpOptions; this._udpOptions.internalValue = value.udpOptions; } } get description() { return this.getStringAttribute('description'); } set description(value) { this._description = value; } resetDescription() { this._description = undefined; } // Temporarily expose input value. Use with caution. get descriptionInput() { return this._description; } get destination() { return this.getStringAttribute('destination'); } set destination(value) { this._destination = value; } // Temporarily expose input value. Use with caution. get destinationInput() { return this._destination; } get destinationType() { return this.getStringAttribute('destination_type'); } set destinationType(value) { this._destinationType = value; } resetDestinationType() { this._destinationType = undefined; } // Temporarily expose input value. Use with caution. get destinationTypeInput() { return this._destinationType; } get protocol() { return this.getStringAttribute('protocol'); } set protocol(value) { this._protocol = value; } // Temporarily expose input value. Use with caution. get protocolInput() { return this._protocol; } get stateless() { return this.getBooleanAttribute('stateless'); } set stateless(value) { this._stateless = value; } resetStateless() { this._stateless = undefined; } // Temporarily expose input value. Use with caution. get statelessInput() { return this._stateless; } get icmpOptions() { return this._icmpOptions; } putIcmpOptions(value) { this._icmpOptions.internalValue = value; } resetIcmpOptions() { this._icmpOptions.internalValue = undefined; } // Temporarily expose input value. Use with caution. get icmpOptionsInput() { return this._icmpOptions.internalValue; } get tcpOptions() { return this._tcpOptions; } putTcpOptions(value) { this._tcpOptions.internalValue = value; } resetTcpOptions() { this._tcpOptions.internalValue = undefined; } // Temporarily expose input value. Use with caution. get tcpOptionsInput() { return this._tcpOptions.internalValue; } get udpOptions() { return this._udpOptions; } putUdpOptions(value) { this._udpOptions.internalValue = value; } resetUdpOptions() { this._udpOptions.internalValue = undefined; } // Temporarily expose input value. Use with caution. get udpOptionsInput() { return this._udpOptions.internalValue; } } exports.CoreSecurityListEgressSecurityRulesOutputReference = CoreSecurityListEgressSecurityRulesOutputReference; _f = JSII_RTTI_SYMBOL_1; CoreSecurityListEgressSecurityRulesOutputReference[_f] = { fqn: "rhizo-co-terraform-provider-oci.coreSecurityList.CoreSecurityListEgressSecurityRulesOutputReference", version: "1.0.0" }; class CoreSecurityListEgressSecurityRulesList 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 CoreSecurityListEgressSecurityRulesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.CoreSecurityListEgressSecurityRulesList = CoreSecurityListEgressSecurityRulesList; _g = JSII_RTTI_SYMBOL_1; CoreSecurityListEgressSecurityRulesList[_g] = { fqn: "rhizo-co-terraform-provider-oci.coreSecurityList.CoreSecurityListEgressSecurityRulesList", version: "1.0.0" }; function coreSecurityListIngressSecurityRulesIcmpOptionsToTerraform(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 { code: cdktf.numberToTerraform(struct.code), type: cdktf.numberToTerraform(struct.type), }; } exports.coreSecurityListIngressSecurityRulesIcmpOptionsToTerraform = coreSecurityListIngressSecurityRulesIcmpOptionsToTerraform; function coreSecurityListIngressSecurityRulesIcmpOptionsToHclTerraform(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 = { code: { value: cdktf.numberToHclTerraform(struct.code), isBlock: false, type: "simple", storageClassType: "number", }, type: { value: cdktf.numberToHclTerraform(struct.type), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.coreSecurityListIngressSecurityRulesIcmpOptionsToHclTerraform = coreSecurityListIngressSecurityRulesIcmpOptionsToHclTerraform; class CoreSecurityListIngressSecurityRulesIcmpOptionsOutputReference 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._code !== undefined) { hasAnyValues = true; internalValueResult.code = this._code; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._code = undefined; this._type = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._code = value.code; this._type = value.type; } } get code() { return this.getNumberAttribute('code'); } set code(value) { this._code = value; } resetCode() { this._code = undefined; } // Temporarily expose input value. Use with caution. get codeInput() { return this._code; } get type() { return this.getNumberAttribute('type'); } set type(value) { this._type = value; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } } exports.CoreSecurityListIngressSecurityRulesIcmpOptionsOutputReference = CoreSecurityListIngressSecurityRulesIcmpOptionsOutputReference; _h = JSII_RTTI_SYMBOL_1; CoreSecurityListIngressSecurityRulesIcmpOptionsOutputReference[_h] = { fqn: "rhizo-co-terraform-provider-oci.coreSecurityList.CoreSecurityListIngressSecurityRulesIcmpOptionsOutputReference", version: "1.0.0" }; function coreSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeToTerraform(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 { max: cdktf.numberToTerraform(struct.max), min: cdktf.numberToTerraform(struct.min), }; } exports.coreSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeToTerraform = coreSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeToTerraform; function coreSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeToHclTerraform(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 = { max: { value: cdktf.numberToHclTerraform(struct.max), isBlock: false, type: "simple", storageClassType: "number", }, min: { value: cdktf.numberToHclTerraform(struct.min), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.coreSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeToHclTerraform = coreSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeToHclTerraform; class CoreSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeOutputReference 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._max !== undefined) { hasAnyValues = true; internalValueResult.max = this._max; } if (this._min !== undefined) { hasAnyValues = true; internalValueResult.min = this._min; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._max = undefined; this._min = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._max = value.max; this._min = value.min; } } get max() { return this.getNumberAttribute('max'); } set max(value) { this._max = value; } // Temporarily expose input value. Use with caution. get maxInput() { return this._max; } get min() { return this.getNumberAttribute('min'); } set min(value) { this._min = value; } // Temporarily expose input value. Use with caution. get minInput() { return this._min; } } exports.CoreSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeOutputReference = CoreSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeOutputReference; _j = JSII_RTTI_SYMBOL_1; CoreSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeOutputReference[_j] = { fqn: "rhizo-co-terraform-provider-oci.coreSecurityList.CoreSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeOutputReference", version: "1.0.0" }; function coreSecurityListIngressSecurityRulesTcpOptionsToTerraform(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 { max: cdktf.numberToTerraform(struct.max), min: cdktf.numberToTerraform(struct.min), source_port_range: coreSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeToTerraform(struct.sourcePortRange), }; } exports.coreSecurityListIngressSecurityRulesTcpOptionsToTerraform = coreSecurityListIngressSecurityRulesTcpOptionsToTerraform; function coreSecurityListIngressSecurityRulesTcpOptionsToHclTerraform(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 = { max: { value: cdktf.numberToHclTerraform(struct.max), isBlock: false, type: "simple", storageClassType: "number", }, min: { value: cdktf.numberToHclTerraform(struct.min), isBlock: false, type: "simple", storageClassType: "number", }, source_port_range: { value: coreSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeToHclTerraform(struct.sourcePortRange), isBlock: true, type: "list", storageClassType: "CoreSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.coreSecurityListIngressSecurityRulesTcpOptionsToHclTerraform = coreSecurityListIngressSecurityRulesTcpOptionsToHclTerraform; class CoreSecurityListIngressSecurityRulesTcpOptionsOutputReference 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; // source_port_range - computed: false, optional: true, required: false this._sourcePortRange = new CoreSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeOutputReference(this, "source_port_range"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._max !== undefined) { hasAnyValues = true; internalValueResult.max = this._max; } if (this._min !== undefined) { hasAnyValues = true; internalValueResult.min = this._min; } if (this._sourcePortRange?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.sourcePortRange = this._sourcePortRange?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._max = undefined; this._min = undefined; this._sourcePortRange.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._max = value.max; this._min = value.min; this._sourcePortRange.internalValue = value.sourcePortRange; } } get max() { return this.getNumberAttribute('max'); } set max(value) { this._max = value; } resetMax() { this._max = undefined; } // Temporarily expose input value. Use with caution. get maxInput() { return this._max; } get min() { return this.getNumberAttribute('min'); } set min(value) { this._min = value; } resetMin() { this._min = undefined; } // Temporarily expose input value. Use with caution. get minInput() { return this._min; } get sourcePortRange() { return this._sourcePortRange; } putSourcePortRange(value) { this._sourcePortRange.internalValue = value; } resetSourcePortRange() { this._sourcePortRange.internalValue = undefined; } // Temporarily expose input value. Use with caution. get sourcePortRangeInput() { return this._sourcePortRange.internalValue; } } exports.CoreSecurityListIngressSecurityRulesTcpOptionsOutputReference = CoreSecurityListIngressSecurityRulesTcpOptionsOutputReference; _k = JSII_RTTI_SYMBOL_1; CoreSecurityListIngressSecurityRulesTcpOpti