UNPKG

rhizo-co-terraform-provider-oci

Version:

Prebuilt oci Provider for Terraform CDK (cdktf)

1,259 lines 171 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j; Object.defineProperty(exports, "__esModule", { value: true }); exports.LoadBalancerRuleSet = exports.LoadBalancerRuleSetTimeoutsOutputReference = exports.loadBalancerRuleSetTimeoutsToHclTerraform = exports.loadBalancerRuleSetTimeoutsToTerraform = exports.LoadBalancerRuleSetItemsList = exports.LoadBalancerRuleSetItemsOutputReference = exports.loadBalancerRuleSetItemsToHclTerraform = exports.loadBalancerRuleSetItemsToTerraform = exports.LoadBalancerRuleSetItemsRedirectUriOutputReference = exports.loadBalancerRuleSetItemsRedirectUriToHclTerraform = exports.loadBalancerRuleSetItemsRedirectUriToTerraform = exports.LoadBalancerRuleSetItemsIpMaxConnectionsList = exports.LoadBalancerRuleSetItemsIpMaxConnectionsOutputReference = exports.loadBalancerRuleSetItemsIpMaxConnectionsToHclTerraform = exports.loadBalancerRuleSetItemsIpMaxConnectionsToTerraform = exports.LoadBalancerRuleSetItemsConditionsList = exports.LoadBalancerRuleSetItemsConditionsOutputReference = exports.loadBalancerRuleSetItemsConditionsToHclTerraform = exports.loadBalancerRuleSetItemsConditionsToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function loadBalancerRuleSetItemsConditionsToTerraform(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 { attribute_name: cdktf.stringToTerraform(struct.attributeName), attribute_value: cdktf.stringToTerraform(struct.attributeValue), operator: cdktf.stringToTerraform(struct.operator), }; } exports.loadBalancerRuleSetItemsConditionsToTerraform = loadBalancerRuleSetItemsConditionsToTerraform; function loadBalancerRuleSetItemsConditionsToHclTerraform(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 = { attribute_name: { value: cdktf.stringToHclTerraform(struct.attributeName), isBlock: false, type: "simple", storageClassType: "string", }, attribute_value: { value: cdktf.stringToHclTerraform(struct.attributeValue), isBlock: false, type: "simple", storageClassType: "string", }, operator: { value: cdktf.stringToHclTerraform(struct.operator), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.loadBalancerRuleSetItemsConditionsToHclTerraform = loadBalancerRuleSetItemsConditionsToHclTerraform; class LoadBalancerRuleSetItemsConditionsOutputReference 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._attributeName !== undefined) { hasAnyValues = true; internalValueResult.attributeName = this._attributeName; } if (this._attributeValue !== undefined) { hasAnyValues = true; internalValueResult.attributeValue = this._attributeValue; } if (this._operator !== undefined) { hasAnyValues = true; internalValueResult.operator = this._operator; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._attributeName = undefined; this._attributeValue = undefined; this._operator = 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._attributeName = value.attributeName; this._attributeValue = value.attributeValue; this._operator = value.operator; } } get attributeName() { return this.getStringAttribute('attribute_name'); } set attributeName(value) { this._attributeName = value; } // Temporarily expose input value. Use with caution. get attributeNameInput() { return this._attributeName; } get attributeValue() { return this.getStringAttribute('attribute_value'); } set attributeValue(value) { this._attributeValue = value; } // Temporarily expose input value. Use with caution. get attributeValueInput() { return this._attributeValue; } get operator() { return this.getStringAttribute('operator'); } set operator(value) { this._operator = value; } resetOperator() { this._operator = undefined; } // Temporarily expose input value. Use with caution. get operatorInput() { return this._operator; } } exports.LoadBalancerRuleSetItemsConditionsOutputReference = LoadBalancerRuleSetItemsConditionsOutputReference; _a = JSII_RTTI_SYMBOL_1; LoadBalancerRuleSetItemsConditionsOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.loadBalancerRuleSet.LoadBalancerRuleSetItemsConditionsOutputReference", version: "1.0.0" }; class LoadBalancerRuleSetItemsConditionsList 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 LoadBalancerRuleSetItemsConditionsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.LoadBalancerRuleSetItemsConditionsList = LoadBalancerRuleSetItemsConditionsList; _b = JSII_RTTI_SYMBOL_1; LoadBalancerRuleSetItemsConditionsList[_b] = { fqn: "rhizo-co-terraform-provider-oci.loadBalancerRuleSet.LoadBalancerRuleSetItemsConditionsList", version: "1.0.0" }; function loadBalancerRuleSetItemsIpMaxConnectionsToTerraform(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 { ip_addresses: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.ipAddresses), max_connections: cdktf.numberToTerraform(struct.maxConnections), }; } exports.loadBalancerRuleSetItemsIpMaxConnectionsToTerraform = loadBalancerRuleSetItemsIpMaxConnectionsToTerraform; function loadBalancerRuleSetItemsIpMaxConnectionsToHclTerraform(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 = { ip_addresses: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.ipAddresses), isBlock: false, type: "list", storageClassType: "stringList", }, max_connections: { value: cdktf.numberToHclTerraform(struct.maxConnections), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.loadBalancerRuleSetItemsIpMaxConnectionsToHclTerraform = loadBalancerRuleSetItemsIpMaxConnectionsToHclTerraform; class LoadBalancerRuleSetItemsIpMaxConnectionsOutputReference 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._ipAddresses !== undefined) { hasAnyValues = true; internalValueResult.ipAddresses = this._ipAddresses; } if (this._maxConnections !== undefined) { hasAnyValues = true; internalValueResult.maxConnections = this._maxConnections; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._ipAddresses = undefined; this._maxConnections = 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._ipAddresses = value.ipAddresses; this._maxConnections = value.maxConnections; } } get ipAddresses() { return this.getListAttribute('ip_addresses'); } set ipAddresses(value) { this._ipAddresses = value; } resetIpAddresses() { this._ipAddresses = undefined; } // Temporarily expose input value. Use with caution. get ipAddressesInput() { return this._ipAddresses; } get maxConnections() { return this.getNumberAttribute('max_connections'); } set maxConnections(value) { this._maxConnections = value; } resetMaxConnections() { this._maxConnections = undefined; } // Temporarily expose input value. Use with caution. get maxConnectionsInput() { return this._maxConnections; } } exports.LoadBalancerRuleSetItemsIpMaxConnectionsOutputReference = LoadBalancerRuleSetItemsIpMaxConnectionsOutputReference; _c = JSII_RTTI_SYMBOL_1; LoadBalancerRuleSetItemsIpMaxConnectionsOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.loadBalancerRuleSet.LoadBalancerRuleSetItemsIpMaxConnectionsOutputReference", version: "1.0.0" }; class LoadBalancerRuleSetItemsIpMaxConnectionsList 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 LoadBalancerRuleSetItemsIpMaxConnectionsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.LoadBalancerRuleSetItemsIpMaxConnectionsList = LoadBalancerRuleSetItemsIpMaxConnectionsList; _d = JSII_RTTI_SYMBOL_1; LoadBalancerRuleSetItemsIpMaxConnectionsList[_d] = { fqn: "rhizo-co-terraform-provider-oci.loadBalancerRuleSet.LoadBalancerRuleSetItemsIpMaxConnectionsList", version: "1.0.0" }; function loadBalancerRuleSetItemsRedirectUriToTerraform(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 { host: cdktf.stringToTerraform(struct.host), path: cdktf.stringToTerraform(struct.path), port: cdktf.numberToTerraform(struct.port), protocol: cdktf.stringToTerraform(struct.protocol), query: cdktf.stringToTerraform(struct.query), }; } exports.loadBalancerRuleSetItemsRedirectUriToTerraform = loadBalancerRuleSetItemsRedirectUriToTerraform; function loadBalancerRuleSetItemsRedirectUriToHclTerraform(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 = { host: { value: cdktf.stringToHclTerraform(struct.host), isBlock: false, type: "simple", storageClassType: "string", }, path: { value: cdktf.stringToHclTerraform(struct.path), isBlock: false, type: "simple", storageClassType: "string", }, port: { value: cdktf.numberToHclTerraform(struct.port), isBlock: false, type: "simple", storageClassType: "number", }, protocol: { value: cdktf.stringToHclTerraform(struct.protocol), isBlock: false, type: "simple", storageClassType: "string", }, query: { value: cdktf.stringToHclTerraform(struct.query), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.loadBalancerRuleSetItemsRedirectUriToHclTerraform = loadBalancerRuleSetItemsRedirectUriToHclTerraform; class LoadBalancerRuleSetItemsRedirectUriOutputReference 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._host !== undefined) { hasAnyValues = true; internalValueResult.host = this._host; } if (this._path !== undefined) { hasAnyValues = true; internalValueResult.path = this._path; } if (this._port !== undefined) { hasAnyValues = true; internalValueResult.port = this._port; } if (this._protocol !== undefined) { hasAnyValues = true; internalValueResult.protocol = this._protocol; } if (this._query !== undefined) { hasAnyValues = true; internalValueResult.query = this._query; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._host = undefined; this._path = undefined; this._port = undefined; this._protocol = undefined; this._query = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._host = value.host; this._path = value.path; this._port = value.port; this._protocol = value.protocol; this._query = value.query; } } get host() { return this.getStringAttribute('host'); } set host(value) { this._host = value; } resetHost() { this._host = undefined; } // Temporarily expose input value. Use with caution. get hostInput() { return this._host; } get path() { return this.getStringAttribute('path'); } set path(value) { this._path = value; } resetPath() { this._path = undefined; } // Temporarily expose input value. Use with caution. get pathInput() { return this._path; } get port() { return this.getNumberAttribute('port'); } set port(value) { this._port = value; } resetPort() { this._port = undefined; } // Temporarily expose input value. Use with caution. get portInput() { return this._port; } get protocol() { return this.getStringAttribute('protocol'); } set protocol(value) { this._protocol = value; } resetProtocol() { this._protocol = undefined; } // Temporarily expose input value. Use with caution. get protocolInput() { return this._protocol; } get query() { return this.getStringAttribute('query'); } set query(value) { this._query = value; } resetQuery() { this._query = undefined; } // Temporarily expose input value. Use with caution. get queryInput() { return this._query; } } exports.LoadBalancerRuleSetItemsRedirectUriOutputReference = LoadBalancerRuleSetItemsRedirectUriOutputReference; _e = JSII_RTTI_SYMBOL_1; LoadBalancerRuleSetItemsRedirectUriOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.loadBalancerRuleSet.LoadBalancerRuleSetItemsRedirectUriOutputReference", version: "1.0.0" }; function loadBalancerRuleSetItemsToTerraform(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 { action: cdktf.stringToTerraform(struct.action), allowed_methods: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.allowedMethods), are_invalid_characters_allowed: cdktf.booleanToTerraform(struct.areInvalidCharactersAllowed), default_max_connections: cdktf.numberToTerraform(struct.defaultMaxConnections), description: cdktf.stringToTerraform(struct.description), header: cdktf.stringToTerraform(struct.header), http_large_header_size_in_kb: cdktf.numberToTerraform(struct.httpLargeHeaderSizeInKb), prefix: cdktf.stringToTerraform(struct.prefix), response_code: cdktf.numberToTerraform(struct.responseCode), status_code: cdktf.numberToTerraform(struct.statusCode), suffix: cdktf.stringToTerraform(struct.suffix), value: cdktf.stringToTerraform(struct.value), conditions: cdktf.listMapper(loadBalancerRuleSetItemsConditionsToTerraform, true)(struct.conditions), ip_max_connections: cdktf.listMapper(loadBalancerRuleSetItemsIpMaxConnectionsToTerraform, true)(struct.ipMaxConnections), redirect_uri: loadBalancerRuleSetItemsRedirectUriToTerraform(struct.redirectUri), }; } exports.loadBalancerRuleSetItemsToTerraform = loadBalancerRuleSetItemsToTerraform; function loadBalancerRuleSetItemsToHclTerraform(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 = { action: { value: cdktf.stringToHclTerraform(struct.action), isBlock: false, type: "simple", storageClassType: "string", }, allowed_methods: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.allowedMethods), isBlock: false, type: "set", storageClassType: "stringList", }, are_invalid_characters_allowed: { value: cdktf.booleanToHclTerraform(struct.areInvalidCharactersAllowed), isBlock: false, type: "simple", storageClassType: "boolean", }, default_max_connections: { value: cdktf.numberToHclTerraform(struct.defaultMaxConnections), isBlock: false, type: "simple", storageClassType: "number", }, description: { value: cdktf.stringToHclTerraform(struct.description), isBlock: false, type: "simple", storageClassType: "string", }, header: { value: cdktf.stringToHclTerraform(struct.header), isBlock: false, type: "simple", storageClassType: "string", }, http_large_header_size_in_kb: { value: cdktf.numberToHclTerraform(struct.httpLargeHeaderSizeInKb), isBlock: false, type: "simple", storageClassType: "number", }, prefix: { value: cdktf.stringToHclTerraform(struct.prefix), isBlock: false, type: "simple", storageClassType: "string", }, response_code: { value: cdktf.numberToHclTerraform(struct.responseCode), isBlock: false, type: "simple", storageClassType: "number", }, status_code: { value: cdktf.numberToHclTerraform(struct.statusCode), isBlock: false, type: "simple", storageClassType: "number", }, suffix: { value: cdktf.stringToHclTerraform(struct.suffix), isBlock: false, type: "simple", storageClassType: "string", }, value: { value: cdktf.stringToHclTerraform(struct.value), isBlock: false, type: "simple", storageClassType: "string", }, conditions: { value: cdktf.listMapperHcl(loadBalancerRuleSetItemsConditionsToHclTerraform, true)(struct.conditions), isBlock: true, type: "list", storageClassType: "LoadBalancerRuleSetItemsConditionsList", }, ip_max_connections: { value: cdktf.listMapperHcl(loadBalancerRuleSetItemsIpMaxConnectionsToHclTerraform, true)(struct.ipMaxConnections), isBlock: true, type: "list", storageClassType: "LoadBalancerRuleSetItemsIpMaxConnectionsList", }, redirect_uri: { value: loadBalancerRuleSetItemsRedirectUriToHclTerraform(struct.redirectUri), isBlock: true, type: "list", storageClassType: "LoadBalancerRuleSetItemsRedirectUriList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.loadBalancerRuleSetItemsToHclTerraform = loadBalancerRuleSetItemsToHclTerraform; class LoadBalancerRuleSetItemsOutputReference 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; // conditions - computed: false, optional: true, required: false this._conditions = new LoadBalancerRuleSetItemsConditionsList(this, "conditions", false); // ip_max_connections - computed: false, optional: true, required: false this._ipMaxConnections = new LoadBalancerRuleSetItemsIpMaxConnectionsList(this, "ip_max_connections", false); // redirect_uri - computed: false, optional: true, required: false this._redirectUri = new LoadBalancerRuleSetItemsRedirectUriOutputReference(this, "redirect_uri"); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._action !== undefined) { hasAnyValues = true; internalValueResult.action = this._action; } if (this._allowedMethods !== undefined) { hasAnyValues = true; internalValueResult.allowedMethods = this._allowedMethods; } if (this._areInvalidCharactersAllowed !== undefined) { hasAnyValues = true; internalValueResult.areInvalidCharactersAllowed = this._areInvalidCharactersAllowed; } if (this._defaultMaxConnections !== undefined) { hasAnyValues = true; internalValueResult.defaultMaxConnections = this._defaultMaxConnections; } if (this._description !== undefined) { hasAnyValues = true; internalValueResult.description = this._description; } if (this._header !== undefined) { hasAnyValues = true; internalValueResult.header = this._header; } if (this._httpLargeHeaderSizeInKb !== undefined) { hasAnyValues = true; internalValueResult.httpLargeHeaderSizeInKb = this._httpLargeHeaderSizeInKb; } if (this._prefix !== undefined) { hasAnyValues = true; internalValueResult.prefix = this._prefix; } if (this._responseCode !== undefined) { hasAnyValues = true; internalValueResult.responseCode = this._responseCode; } if (this._statusCode !== undefined) { hasAnyValues = true; internalValueResult.statusCode = this._statusCode; } if (this._suffix !== undefined) { hasAnyValues = true; internalValueResult.suffix = this._suffix; } if (this._value !== undefined) { hasAnyValues = true; internalValueResult.value = this._value; } if (this._conditions?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.conditions = this._conditions?.internalValue; } if (this._ipMaxConnections?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.ipMaxConnections = this._ipMaxConnections?.internalValue; } if (this._redirectUri?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.redirectUri = this._redirectUri?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._action = undefined; this._allowedMethods = undefined; this._areInvalidCharactersAllowed = undefined; this._defaultMaxConnections = undefined; this._description = undefined; this._header = undefined; this._httpLargeHeaderSizeInKb = undefined; this._prefix = undefined; this._responseCode = undefined; this._statusCode = undefined; this._suffix = undefined; this._value = undefined; this._conditions.internalValue = undefined; this._ipMaxConnections.internalValue = undefined; this._redirectUri.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._action = value.action; this._allowedMethods = value.allowedMethods; this._areInvalidCharactersAllowed = value.areInvalidCharactersAllowed; this._defaultMaxConnections = value.defaultMaxConnections; this._description = value.description; this._header = value.header; this._httpLargeHeaderSizeInKb = value.httpLargeHeaderSizeInKb; this._prefix = value.prefix; this._responseCode = value.responseCode; this._statusCode = value.statusCode; this._suffix = value.suffix; this._value = value.value; this._conditions.internalValue = value.conditions; this._ipMaxConnections.internalValue = value.ipMaxConnections; this._redirectUri.internalValue = value.redirectUri; } } get action() { return this.getStringAttribute('action'); } set action(value) { this._action = value; } // Temporarily expose input value. Use with caution. get actionInput() { return this._action; } get allowedMethods() { return cdktf.Fn.tolist(this.getListAttribute('allowed_methods')); } set allowedMethods(value) { this._allowedMethods = value; } resetAllowedMethods() { this._allowedMethods = undefined; } // Temporarily expose input value. Use with caution. get allowedMethodsInput() { return this._allowedMethods; } get areInvalidCharactersAllowed() { return this.getBooleanAttribute('are_invalid_characters_allowed'); } set areInvalidCharactersAllowed(value) { this._areInvalidCharactersAllowed = value; } resetAreInvalidCharactersAllowed() { this._areInvalidCharactersAllowed = undefined; } // Temporarily expose input value. Use with caution. get areInvalidCharactersAllowedInput() { return this._areInvalidCharactersAllowed; } get defaultMaxConnections() { return this.getNumberAttribute('default_max_connections'); } set defaultMaxConnections(value) { this._defaultMaxConnections = value; } resetDefaultMaxConnections() { this._defaultMaxConnections = undefined; } // Temporarily expose input value. Use with caution. get defaultMaxConnectionsInput() { return this._defaultMaxConnections; } 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 header() { return this.getStringAttribute('header'); } set header(value) { this._header = value; } resetHeader() { this._header = undefined; } // Temporarily expose input value. Use with caution. get headerInput() { return this._header; } get httpLargeHeaderSizeInKb() { return this.getNumberAttribute('http_large_header_size_in_kb'); } set httpLargeHeaderSizeInKb(value) { this._httpLargeHeaderSizeInKb = value; } resetHttpLargeHeaderSizeInKb() { this._httpLargeHeaderSizeInKb = undefined; } // Temporarily expose input value. Use with caution. get httpLargeHeaderSizeInKbInput() { return this._httpLargeHeaderSizeInKb; } get prefix() { return this.getStringAttribute('prefix'); } set prefix(value) { this._prefix = value; } resetPrefix() { this._prefix = undefined; } // Temporarily expose input value. Use with caution. get prefixInput() { return this._prefix; } get responseCode() { return this.getNumberAttribute('response_code'); } set responseCode(value) { this._responseCode = value; } resetResponseCode() { this._responseCode = undefined; } // Temporarily expose input value. Use with caution. get responseCodeInput() { return this._responseCode; } get statusCode() { return this.getNumberAttribute('status_code'); } set statusCode(value) { this._statusCode = value; } resetStatusCode() { this._statusCode = undefined; } // Temporarily expose input value. Use with caution. get statusCodeInput() { return this._statusCode; } get suffix() { return this.getStringAttribute('suffix'); } set suffix(value) { this._suffix = value; } resetSuffix() { this._suffix = undefined; } // Temporarily expose input value. Use with caution. get suffixInput() { return this._suffix; } get value() { return this.getStringAttribute('value'); } set value(value) { this._value = value; } resetValue() { this._value = undefined; } // Temporarily expose input value. Use with caution. get valueInput() { return this._value; } get conditions() { return this._conditions; } putConditions(value) { this._conditions.internalValue = value; } resetConditions() { this._conditions.internalValue = undefined; } // Temporarily expose input value. Use with caution. get conditionsInput() { return this._conditions.internalValue; } get ipMaxConnections() { return this._ipMaxConnections; } putIpMaxConnections(value) { this._ipMaxConnections.internalValue = value; } resetIpMaxConnections() { this._ipMaxConnections.internalValue = undefined; } // Temporarily expose input value. Use with caution. get ipMaxConnectionsInput() { return this._ipMaxConnections.internalValue; } get redirectUri() { return this._redirectUri; } putRedirectUri(value) { this._redirectUri.internalValue = value; } resetRedirectUri() { this._redirectUri.internalValue = undefined; } // Temporarily expose input value. Use with caution. get redirectUriInput() { return this._redirectUri.internalValue; } } exports.LoadBalancerRuleSetItemsOutputReference = LoadBalancerRuleSetItemsOutputReference; _f = JSII_RTTI_SYMBOL_1; LoadBalancerRuleSetItemsOutputReference[_f] = { fqn: "rhizo-co-terraform-provider-oci.loadBalancerRuleSet.LoadBalancerRuleSetItemsOutputReference", version: "1.0.0" }; class LoadBalancerRuleSetItemsList 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 LoadBalancerRuleSetItemsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.LoadBalancerRuleSetItemsList = LoadBalancerRuleSetItemsList; _g = JSII_RTTI_SYMBOL_1; LoadBalancerRuleSetItemsList[_g] = { fqn: "rhizo-co-terraform-provider-oci.loadBalancerRuleSet.LoadBalancerRuleSetItemsList", version: "1.0.0" }; function loadBalancerRuleSetTimeoutsToTerraform(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.loadBalancerRuleSetTimeoutsToTerraform = loadBalancerRuleSetTimeoutsToTerraform; function loadBalancerRuleSetTimeoutsToHclTerraform(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.loadBalancerRuleSetTimeoutsToHclTerraform = loadBalancerRuleSetTimeoutsToHclTerraform; class LoadBalancerRuleSetTimeoutsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._create !== undefined) { hasAnyValues = true; internalValueResult.create = this._create; } if (this._delete !== undefined) { hasAnyValues = true; internalValueResult.delete = this._delete; } if (this._update !== undefined) { hasAnyValues = true; internalValueResult.update = this._update; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._create = undefined; this._delete = undefined; this._update = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._create = value.create; this._delete = value.delete; this._update = value.update; } } get create() { return this.getStringAttribute('create'); } set create(value) { this._create = value; } resetCreate() { this._create = undefined; } // Temporarily expose input value. Use with caution. get createInput() { return this._create; } get delete() { return this.getStringAttribute('delete'); } set delete(value) { this._delete = value; } resetDelete() { this._delete = undefined; } // Temporarily expose input value. Use with caution. get deleteInput() { return this._delete; } get update() { return this.getStringAttribute('update'); } set update(value) { this._update = value; } resetUpdate() { this._update = undefined; } // Temporarily expose input value. Use with caution. get updateInput() { return this._update; } } exports.LoadBalancerRuleSetTimeoutsOutputReference = LoadBalancerRuleSetTimeoutsOutputReference; _h = JSII_RTTI_SYMBOL_1; LoadBalancerRuleSetTimeoutsOutputReference[_h] = { fqn: "rhizo-co-terraform-provider-oci.loadBalancerRuleSet.LoadBalancerRuleSetTimeoutsOutputReference", version: "1.0.0" }; /** * Represents a {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/load_balancer_rule_set oci_load_balancer_rule_set} */ class LoadBalancerRuleSet extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a LoadBalancerRuleSet resource upon running "cdktf plan <stack-name>" * @param scope The scope in which to define this construct * @param importToId The construct id used in the generated config for the LoadBalancerRuleSet to import * @param importFromId The id of the existing LoadBalancerRuleSet that should be imported. Refer to the {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/load_balancer_rule_set#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the LoadBalancerRuleSet to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "oci_load_balancer_rule_set", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/load_balancer_rule_set oci_load_balancer_rule_set} Resource * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options LoadBalancerRuleSetConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'oci_load_balancer_rule_set', terraformGeneratorMetadata: { providerName: 'oci', providerVersion: '6.18.0', providerVersionConstraint: '~> 6.18.0' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle, provisioners: config.provisioners, connection: config.connection, forEach: config.forEach }); // items - computed: false, optional: false, required: true this._items = new LoadBalancerRuleSetItemsList(this, "items", true); // timeouts - computed: false, optional: true, required: false this._timeouts = new LoadBalancerRuleSetTimeoutsOutputReference(this, "timeouts"); this._id = config.id; this._loadBalancerId = config.loadBalancerId; this._name = config.name; this._items.internalValue = config.items; this._timeouts.internalValue = config.timeouts; } get id() { return this.getStringAttribute('id'); } set id(value) { this._id = value; } resetId() { this._id = undefined; } // Temporarily expose input value. Use with caution. get idInput() { return this._id; } get 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 name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } // state - computed: true, optional: false, required: false get state() { return this.getStringAttribute('state'); } get items() { return this._items; } putItems(value) { this._items.internalValue = value; } // Temporarily expose input value. Use with caution. get itemsInput() { return this._items.internalValue; } get timeouts() { return this._timeouts; } putTimeouts(value) { this._timeouts.internalValue = value; } resetTimeouts() { this._timeouts.internalValue = undefined; } // Temporarily expose input value. Use with caution. get timeoutsInput() { return this._timeouts.internalValue; } // ========= // SYNTHESIS // ========= synthesizeAttributes() { return { id: cdktf.stringToTerraform(this._id), load_balancer_id: cdktf.stringToTerraform(this._loadBalancerId), name: cdktf.stringToTerraform(this._name), items: cdktf.listMapper(loadBalancerRuleSetItemsToTerraform, true)(this._items.internalValue), timeouts: loadBalancerRuleSetTimeoutsToTerraform(this._timeouts.internalValue), }; } synthesizeHclAttributes() { const attrs = { id: { value: cdktf.stringToHclTerraform(this._id), isBlock: false, type: "simple", storageClassType: "string", }, load_balancer_id: { value: cdktf.stringToHclTerraform(this._loadBalancerId), isBlock: false, type: "simple", storageClassType: "string", }, name: { value: cdktf.stringToHclTerraform(this._name), isBlock: false, type: "simple", storageClassType: "string", }, items: { value: cdktf.listMapperHcl(loadBalancerRuleSetItemsToHclTerraform, true)(this._items.internalValue), isBlock: true, type: "set", storageClassType: "LoadBalancerRuleSetItemsList", }, timeouts: { value: loadBalancerRuleSetTimeoutsToHclTerraform(this._timeouts.internalValue), isBlock: true, type: "struct", storageClassType: "LoadBalancerRuleSetTimeouts", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } } exports.LoadBalancerRuleSet = LoadBalancerRuleSet; _j = JSII_RTTI_SYMBOL_1; LoadBalancerRuleSet[_j] = { fqn: "rhizo-co-terraform-provider-oci.loadBalancerRuleSet.LoadBalancerRuleSet", version: "1.0.0" }; // ================= // STATIC PROPERTIES // ================= LoadBalancerRuleSet.tfResourceType = "oci_load_balancer_rule_set"; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbG9hZC1iYWxhbmNlci1ydWxlLXNldC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUlBLCtCQUErQjtBQWdEL0IsU0FBZ0IsNkNBQTZDLENBQUMsTUFBK0Q7SUFDM0gsSUFBSSxDQUFDLEtBQUssQ0FBQyxVQUFVLENBQUMsTUFBTSxDQUFDLElBQUksS0FBSyxDQUFDLFlBQVksQ0FBQyxZQUFZLENBQUMsTU