rhizo-co-terraform-provider-oci
Version:
Prebuilt oci Provider for Terraform CDK (cdktf)
1,128 lines • 296 kB
JavaScript
"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.CoreDefaultSecurityList = exports.CoreDefaultSecurityListTimeoutsOutputReference = exports.coreDefaultSecurityListTimeoutsToHclTerraform = exports.coreDefaultSecurityListTimeoutsToTerraform = exports.CoreDefaultSecurityListIngressSecurityRulesList = exports.CoreDefaultSecurityListIngressSecurityRulesOutputReference = exports.coreDefaultSecurityListIngressSecurityRulesToHclTerraform = exports.coreDefaultSecurityListIngressSecurityRulesToTerraform = exports.CoreDefaultSecurityListIngressSecurityRulesUdpOptionsOutputReference = exports.coreDefaultSecurityListIngressSecurityRulesUdpOptionsToHclTerraform = exports.coreDefaultSecurityListIngressSecurityRulesUdpOptionsToTerraform = exports.CoreDefaultSecurityListIngressSecurityRulesUdpOptionsSourcePortRangeOutputReference = exports.coreDefaultSecurityListIngressSecurityRulesUdpOptionsSourcePortRangeToHclTerraform = exports.coreDefaultSecurityListIngressSecurityRulesUdpOptionsSourcePortRangeToTerraform = exports.CoreDefaultSecurityListIngressSecurityRulesTcpOptionsOutputReference = exports.coreDefaultSecurityListIngressSecurityRulesTcpOptionsToHclTerraform = exports.coreDefaultSecurityListIngressSecurityRulesTcpOptionsToTerraform = exports.CoreDefaultSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeOutputReference = exports.coreDefaultSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeToHclTerraform = exports.coreDefaultSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeToTerraform = exports.CoreDefaultSecurityListIngressSecurityRulesIcmpOptionsOutputReference = exports.coreDefaultSecurityListIngressSecurityRulesIcmpOptionsToHclTerraform = exports.coreDefaultSecurityListIngressSecurityRulesIcmpOptionsToTerraform = exports.CoreDefaultSecurityListEgressSecurityRulesList = exports.CoreDefaultSecurityListEgressSecurityRulesOutputReference = exports.coreDefaultSecurityListEgressSecurityRulesToHclTerraform = exports.coreDefaultSecurityListEgressSecurityRulesToTerraform = exports.CoreDefaultSecurityListEgressSecurityRulesUdpOptionsOutputReference = exports.coreDefaultSecurityListEgressSecurityRulesUdpOptionsToHclTerraform = exports.coreDefaultSecurityListEgressSecurityRulesUdpOptionsToTerraform = exports.CoreDefaultSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeOutputReference = exports.coreDefaultSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeToHclTerraform = exports.coreDefaultSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeToTerraform = exports.CoreDefaultSecurityListEgressSecurityRulesTcpOptionsOutputReference = exports.coreDefaultSecurityListEgressSecurityRulesTcpOptionsToHclTerraform = exports.coreDefaultSecurityListEgressSecurityRulesTcpOptionsToTerraform = exports.CoreDefaultSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeOutputReference = exports.coreDefaultSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeToHclTerraform = exports.coreDefaultSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeToTerraform = exports.CoreDefaultSecurityListEgressSecurityRulesIcmpOptionsOutputReference = exports.coreDefaultSecurityListEgressSecurityRulesIcmpOptionsToHclTerraform = exports.coreDefaultSecurityListEgressSecurityRulesIcmpOptionsToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function coreDefaultSecurityListEgressSecurityRulesIcmpOptionsToTerraform(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.coreDefaultSecurityListEgressSecurityRulesIcmpOptionsToTerraform = coreDefaultSecurityListEgressSecurityRulesIcmpOptionsToTerraform;
function coreDefaultSecurityListEgressSecurityRulesIcmpOptionsToHclTerraform(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.coreDefaultSecurityListEgressSecurityRulesIcmpOptionsToHclTerraform = coreDefaultSecurityListEgressSecurityRulesIcmpOptionsToHclTerraform;
class CoreDefaultSecurityListEgressSecurityRulesIcmpOptionsOutputReference 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.CoreDefaultSecurityListEgressSecurityRulesIcmpOptionsOutputReference = CoreDefaultSecurityListEgressSecurityRulesIcmpOptionsOutputReference;
_a = JSII_RTTI_SYMBOL_1;
CoreDefaultSecurityListEgressSecurityRulesIcmpOptionsOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.coreDefaultSecurityList.CoreDefaultSecurityListEgressSecurityRulesIcmpOptionsOutputReference", version: "1.0.0" };
function coreDefaultSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeToTerraform(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.coreDefaultSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeToTerraform = coreDefaultSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeToTerraform;
function coreDefaultSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeToHclTerraform(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.coreDefaultSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeToHclTerraform = coreDefaultSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeToHclTerraform;
class CoreDefaultSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeOutputReference 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.CoreDefaultSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeOutputReference = CoreDefaultSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeOutputReference;
_b = JSII_RTTI_SYMBOL_1;
CoreDefaultSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeOutputReference[_b] = { fqn: "rhizo-co-terraform-provider-oci.coreDefaultSecurityList.CoreDefaultSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeOutputReference", version: "1.0.0" };
function coreDefaultSecurityListEgressSecurityRulesTcpOptionsToTerraform(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: coreDefaultSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeToTerraform(struct.sourcePortRange),
};
}
exports.coreDefaultSecurityListEgressSecurityRulesTcpOptionsToTerraform = coreDefaultSecurityListEgressSecurityRulesTcpOptionsToTerraform;
function coreDefaultSecurityListEgressSecurityRulesTcpOptionsToHclTerraform(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: coreDefaultSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeToHclTerraform(struct.sourcePortRange),
isBlock: true,
type: "list",
storageClassType: "CoreDefaultSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.coreDefaultSecurityListEgressSecurityRulesTcpOptionsToHclTerraform = coreDefaultSecurityListEgressSecurityRulesTcpOptionsToHclTerraform;
class CoreDefaultSecurityListEgressSecurityRulesTcpOptionsOutputReference 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 CoreDefaultSecurityListEgressSecurityRulesTcpOptionsSourcePortRangeOutputReference(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.CoreDefaultSecurityListEgressSecurityRulesTcpOptionsOutputReference = CoreDefaultSecurityListEgressSecurityRulesTcpOptionsOutputReference;
_c = JSII_RTTI_SYMBOL_1;
CoreDefaultSecurityListEgressSecurityRulesTcpOptionsOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.coreDefaultSecurityList.CoreDefaultSecurityListEgressSecurityRulesTcpOptionsOutputReference", version: "1.0.0" };
function coreDefaultSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeToTerraform(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.coreDefaultSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeToTerraform = coreDefaultSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeToTerraform;
function coreDefaultSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeToHclTerraform(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.coreDefaultSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeToHclTerraform = coreDefaultSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeToHclTerraform;
class CoreDefaultSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeOutputReference 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.CoreDefaultSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeOutputReference = CoreDefaultSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeOutputReference;
_d = JSII_RTTI_SYMBOL_1;
CoreDefaultSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeOutputReference[_d] = { fqn: "rhizo-co-terraform-provider-oci.coreDefaultSecurityList.CoreDefaultSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeOutputReference", version: "1.0.0" };
function coreDefaultSecurityListEgressSecurityRulesUdpOptionsToTerraform(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: coreDefaultSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeToTerraform(struct.sourcePortRange),
};
}
exports.coreDefaultSecurityListEgressSecurityRulesUdpOptionsToTerraform = coreDefaultSecurityListEgressSecurityRulesUdpOptionsToTerraform;
function coreDefaultSecurityListEgressSecurityRulesUdpOptionsToHclTerraform(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: coreDefaultSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeToHclTerraform(struct.sourcePortRange),
isBlock: true,
type: "list",
storageClassType: "CoreDefaultSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.coreDefaultSecurityListEgressSecurityRulesUdpOptionsToHclTerraform = coreDefaultSecurityListEgressSecurityRulesUdpOptionsToHclTerraform;
class CoreDefaultSecurityListEgressSecurityRulesUdpOptionsOutputReference 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 CoreDefaultSecurityListEgressSecurityRulesUdpOptionsSourcePortRangeOutputReference(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.CoreDefaultSecurityListEgressSecurityRulesUdpOptionsOutputReference = CoreDefaultSecurityListEgressSecurityRulesUdpOptionsOutputReference;
_e = JSII_RTTI_SYMBOL_1;
CoreDefaultSecurityListEgressSecurityRulesUdpOptionsOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.coreDefaultSecurityList.CoreDefaultSecurityListEgressSecurityRulesUdpOptionsOutputReference", version: "1.0.0" };
function coreDefaultSecurityListEgressSecurityRulesToTerraform(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: coreDefaultSecurityListEgressSecurityRulesIcmpOptionsToTerraform(struct.icmpOptions),
tcp_options: coreDefaultSecurityListEgressSecurityRulesTcpOptionsToTerraform(struct.tcpOptions),
udp_options: coreDefaultSecurityListEgressSecurityRulesUdpOptionsToTerraform(struct.udpOptions),
};
}
exports.coreDefaultSecurityListEgressSecurityRulesToTerraform = coreDefaultSecurityListEgressSecurityRulesToTerraform;
function coreDefaultSecurityListEgressSecurityRulesToHclTerraform(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: coreDefaultSecurityListEgressSecurityRulesIcmpOptionsToHclTerraform(struct.icmpOptions),
isBlock: true,
type: "list",
storageClassType: "CoreDefaultSecurityListEgressSecurityRulesIcmpOptionsList",
},
tcp_options: {
value: coreDefaultSecurityListEgressSecurityRulesTcpOptionsToHclTerraform(struct.tcpOptions),
isBlock: true,
type: "list",
storageClassType: "CoreDefaultSecurityListEgressSecurityRulesTcpOptionsList",
},
udp_options: {
value: coreDefaultSecurityListEgressSecurityRulesUdpOptionsToHclTerraform(struct.udpOptions),
isBlock: true,
type: "list",
storageClassType: "CoreDefaultSecurityListEgressSecurityRulesUdpOptionsList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.coreDefaultSecurityListEgressSecurityRulesToHclTerraform = coreDefaultSecurityListEgressSecurityRulesToHclTerraform;
class CoreDefaultSecurityListEgressSecurityRulesOutputReference 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 CoreDefaultSecurityListEgressSecurityRulesIcmpOptionsOutputReference(this, "icmp_options");
// tcp_options - computed: false, optional: true, required: false
this._tcpOptions = new CoreDefaultSecurityListEgressSecurityRulesTcpOptionsOutputReference(this, "tcp_options");
// udp_options - computed: false, optional: true, required: false
this._udpOptions = new CoreDefaultSecurityListEgressSecurityRulesUdpOptionsOutputReference(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.CoreDefaultSecurityListEgressSecurityRulesOutputReference = CoreDefaultSecurityListEgressSecurityRulesOutputReference;
_f = JSII_RTTI_SYMBOL_1;
CoreDefaultSecurityListEgressSecurityRulesOutputReference[_f] = { fqn: "rhizo-co-terraform-provider-oci.coreDefaultSecurityList.CoreDefaultSecurityListEgressSecurityRulesOutputReference", version: "1.0.0" };
class CoreDefaultSecurityListEgressSecurityRulesList 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 CoreDefaultSecurityListEgressSecurityRulesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.CoreDefaultSecurityListEgressSecurityRulesList = CoreDefaultSecurityListEgressSecurityRulesList;
_g = JSII_RTTI_SYMBOL_1;
CoreDefaultSecurityListEgressSecurityRulesList[_g] = { fqn: "rhizo-co-terraform-provider-oci.coreDefaultSecurityList.CoreDefaultSecurityListEgressSecurityRulesList", version: "1.0.0" };
function coreDefaultSecurityListIngressSecurityRulesIcmpOptionsToTerraform(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.coreDefaultSecurityListIngressSecurityRulesIcmpOptionsToTerraform = coreDefaultSecurityListIngressSecurityRulesIcmpOptionsToTerraform;
function coreDefaultSecurityListIngressSecurityRulesIcmpOptionsToHclTerraform(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.coreDefaultSecurityListIngressSecurityRulesIcmpOptionsToHclTerraform = coreDefaultSecurityListIngressSecurityRulesIcmpOptionsToHclTerraform;
class CoreDefaultSecurityListIngressSecurityRulesIcmpOptionsOutputReference 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.CoreDefaultSecurityListIngressSecurityRulesIcmpOptionsOutputReference = CoreDefaultSecurityListIngressSecurityRulesIcmpOptionsOutputReference;
_h = JSII_RTTI_SYMBOL_1;
CoreDefaultSecurityListIngressSecurityRulesIcmpOptionsOutputReference[_h] = { fqn: "rhizo-co-terraform-provider-oci.coreDefaultSecurityList.CoreDefaultSecurityListIngressSecurityRulesIcmpOptionsOutputReference", version: "1.0.0" };
function coreDefaultSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeToTerraform(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.coreDefaultSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeToTerraform = coreDefaultSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeToTerraform;
function coreDefaultSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeToHclTerraform(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.coreDefaultSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeToHclTerraform = coreDefaultSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeToHclTerraform;
class CoreDefaultSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeOutputReference 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.CoreDefaultSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeOutputReference = CoreDefaultSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeOutputReference;
_j = JSII_RTTI_SYMBOL_1;
CoreDefaultSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeOutputReference[_j] = { fqn: "rhizo-co-terraform-provider-oci.coreDefaultSecurityList.CoreDefaultSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeOutputReference", version: "1.0.0" };
function coreDefaultSecurityListIngressSecurityRulesTcpOptionsToTerraform(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: coreDefaultSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeToTerraform(struct.sourcePortRange),
};
}
exports.coreDefaultSecurityListIngressSecurityRulesTcpOptionsToTerraform = coreDefaultSecurityListIngressSecurityRulesTcpOptionsToTerraform;
function coreDefaultSecurityListIngressSecurityRulesTcpOptionsToHclTerraform(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: coreDefaultSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeToHclTerraform(struct.sourcePortRange),
isBlock: true,
type: "list",
storageClassType: "CoreDefaultSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.coreDefaultSecurityListIngressSecurityRulesTcpOptionsToHclTerraform = coreDefaultSecurityListIngressSecurityRulesTcpOptionsToHclTerraform;
class CoreDefaultSecurityListIngressSecurityRulesTcpOptionsOutputReference 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 CoreDefaultSecurityListIngressSecurityRulesTcpOptionsSourcePortRangeOutputReference(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.inter