rhizo-co-terraform-provider-oci
Version:
Prebuilt oci Provider for Terraform CDK (cdktf)
1,252 lines • 195 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h;
Object.defineProperty(exports, "__esModule", { value: true });
exports.LoadBalancerBackendset = exports.LoadBalancerBackendsetTimeoutsOutputReference = exports.loadBalancerBackendsetTimeoutsToHclTerraform = exports.loadBalancerBackendsetTimeoutsToTerraform = exports.LoadBalancerBackendsetSslConfigurationOutputReference = exports.loadBalancerBackendsetSslConfigurationToHclTerraform = exports.loadBalancerBackendsetSslConfigurationToTerraform = exports.LoadBalancerBackendsetSessionPersistenceConfigurationOutputReference = exports.loadBalancerBackendsetSessionPersistenceConfigurationToHclTerraform = exports.loadBalancerBackendsetSessionPersistenceConfigurationToTerraform = exports.LoadBalancerBackendsetLbCookieSessionPersistenceConfigurationOutputReference = exports.loadBalancerBackendsetLbCookieSessionPersistenceConfigurationToHclTerraform = exports.loadBalancerBackendsetLbCookieSessionPersistenceConfigurationToTerraform = exports.LoadBalancerBackendsetHealthCheckerOutputReference = exports.loadBalancerBackendsetHealthCheckerToHclTerraform = exports.loadBalancerBackendsetHealthCheckerToTerraform = exports.LoadBalancerBackendsetBackendList = exports.LoadBalancerBackendsetBackendOutputReference = exports.loadBalancerBackendsetBackendToHclTerraform = exports.loadBalancerBackendsetBackendToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function loadBalancerBackendsetBackendToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {};
}
exports.loadBalancerBackendsetBackendToTerraform = loadBalancerBackendsetBackendToTerraform;
function loadBalancerBackendsetBackendToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
exports.loadBalancerBackendsetBackendToHclTerraform = loadBalancerBackendsetBackendToHclTerraform;
class LoadBalancerBackendsetBackendOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// backup - computed: true, optional: false, required: false
get backup() {
return this.getBooleanAttribute('backup');
}
// drain - computed: true, optional: false, required: false
get drain() {
return this.getBooleanAttribute('drain');
}
// ip_address - computed: true, optional: false, required: false
get ipAddress() {
return this.getStringAttribute('ip_address');
}
// max_connections - computed: true, optional: false, required: false
get maxConnections() {
return this.getNumberAttribute('max_connections');
}
// name - computed: true, optional: false, required: false
get name() {
return this.getStringAttribute('name');
}
// offline - computed: true, optional: false, required: false
get offline() {
return this.getBooleanAttribute('offline');
}
// port - computed: true, optional: false, required: false
get port() {
return this.getNumberAttribute('port');
}
// weight - computed: true, optional: false, required: false
get weight() {
return this.getNumberAttribute('weight');
}
}
exports.LoadBalancerBackendsetBackendOutputReference = LoadBalancerBackendsetBackendOutputReference;
_a = JSII_RTTI_SYMBOL_1;
LoadBalancerBackendsetBackendOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.loadBalancerBackendset.LoadBalancerBackendsetBackendOutputReference", version: "1.0.0" };
class LoadBalancerBackendsetBackendList 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 LoadBalancerBackendsetBackendOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.LoadBalancerBackendsetBackendList = LoadBalancerBackendsetBackendList;
_b = JSII_RTTI_SYMBOL_1;
LoadBalancerBackendsetBackendList[_b] = { fqn: "rhizo-co-terraform-provider-oci.loadBalancerBackendset.LoadBalancerBackendsetBackendList", version: "1.0.0" };
function loadBalancerBackendsetHealthCheckerToTerraform(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 {
interval_ms: cdktf.numberToTerraform(struct.intervalMs),
is_force_plain_text: cdktf.booleanToTerraform(struct.isForcePlainText),
port: cdktf.numberToTerraform(struct.port),
protocol: cdktf.stringToTerraform(struct.protocol),
response_body_regex: cdktf.stringToTerraform(struct.responseBodyRegex),
retries: cdktf.numberToTerraform(struct.retries),
return_code: cdktf.numberToTerraform(struct.returnCode),
timeout_in_millis: cdktf.numberToTerraform(struct.timeoutInMillis),
url_path: cdktf.stringToTerraform(struct.urlPath),
};
}
exports.loadBalancerBackendsetHealthCheckerToTerraform = loadBalancerBackendsetHealthCheckerToTerraform;
function loadBalancerBackendsetHealthCheckerToHclTerraform(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 = {
interval_ms: {
value: cdktf.numberToHclTerraform(struct.intervalMs),
isBlock: false,
type: "simple",
storageClassType: "number",
},
is_force_plain_text: {
value: cdktf.booleanToHclTerraform(struct.isForcePlainText),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
port: {
value: cdktf.numberToHclTerraform(struct.port),
isBlock: false,
type: "simple",
storageClassType: "number",
},
protocol: {
value: cdktf.stringToHclTerraform(struct.protocol),
isBlock: false,
type: "simple",
storageClassType: "string",
},
response_body_regex: {
value: cdktf.stringToHclTerraform(struct.responseBodyRegex),
isBlock: false,
type: "simple",
storageClassType: "string",
},
retries: {
value: cdktf.numberToHclTerraform(struct.retries),
isBlock: false,
type: "simple",
storageClassType: "number",
},
return_code: {
value: cdktf.numberToHclTerraform(struct.returnCode),
isBlock: false,
type: "simple",
storageClassType: "number",
},
timeout_in_millis: {
value: cdktf.numberToHclTerraform(struct.timeoutInMillis),
isBlock: false,
type: "simple",
storageClassType: "number",
},
url_path: {
value: cdktf.stringToHclTerraform(struct.urlPath),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.loadBalancerBackendsetHealthCheckerToHclTerraform = loadBalancerBackendsetHealthCheckerToHclTerraform;
class LoadBalancerBackendsetHealthCheckerOutputReference 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._intervalMs !== undefined) {
hasAnyValues = true;
internalValueResult.intervalMs = this._intervalMs;
}
if (this._isForcePlainText !== undefined) {
hasAnyValues = true;
internalValueResult.isForcePlainText = this._isForcePlainText;
}
if (this._port !== undefined) {
hasAnyValues = true;
internalValueResult.port = this._port;
}
if (this._protocol !== undefined) {
hasAnyValues = true;
internalValueResult.protocol = this._protocol;
}
if (this._responseBodyRegex !== undefined) {
hasAnyValues = true;
internalValueResult.responseBodyRegex = this._responseBodyRegex;
}
if (this._retries !== undefined) {
hasAnyValues = true;
internalValueResult.retries = this._retries;
}
if (this._returnCode !== undefined) {
hasAnyValues = true;
internalValueResult.returnCode = this._returnCode;
}
if (this._timeoutInMillis !== undefined) {
hasAnyValues = true;
internalValueResult.timeoutInMillis = this._timeoutInMillis;
}
if (this._urlPath !== undefined) {
hasAnyValues = true;
internalValueResult.urlPath = this._urlPath;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._intervalMs = undefined;
this._isForcePlainText = undefined;
this._port = undefined;
this._protocol = undefined;
this._responseBodyRegex = undefined;
this._retries = undefined;
this._returnCode = undefined;
this._timeoutInMillis = undefined;
this._urlPath = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._intervalMs = value.intervalMs;
this._isForcePlainText = value.isForcePlainText;
this._port = value.port;
this._protocol = value.protocol;
this._responseBodyRegex = value.responseBodyRegex;
this._retries = value.retries;
this._returnCode = value.returnCode;
this._timeoutInMillis = value.timeoutInMillis;
this._urlPath = value.urlPath;
}
}
get intervalMs() {
return this.getNumberAttribute('interval_ms');
}
set intervalMs(value) {
this._intervalMs = value;
}
resetIntervalMs() {
this._intervalMs = undefined;
}
// Temporarily expose input value. Use with caution.
get intervalMsInput() {
return this._intervalMs;
}
get isForcePlainText() {
return this.getBooleanAttribute('is_force_plain_text');
}
set isForcePlainText(value) {
this._isForcePlainText = value;
}
resetIsForcePlainText() {
this._isForcePlainText = undefined;
}
// Temporarily expose input value. Use with caution.
get isForcePlainTextInput() {
return this._isForcePlainText;
}
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;
}
// Temporarily expose input value. Use with caution.
get protocolInput() {
return this._protocol;
}
get responseBodyRegex() {
return this.getStringAttribute('response_body_regex');
}
set responseBodyRegex(value) {
this._responseBodyRegex = value;
}
resetResponseBodyRegex() {
this._responseBodyRegex = undefined;
}
// Temporarily expose input value. Use with caution.
get responseBodyRegexInput() {
return this._responseBodyRegex;
}
get retries() {
return this.getNumberAttribute('retries');
}
set retries(value) {
this._retries = value;
}
resetRetries() {
this._retries = undefined;
}
// Temporarily expose input value. Use with caution.
get retriesInput() {
return this._retries;
}
get returnCode() {
return this.getNumberAttribute('return_code');
}
set returnCode(value) {
this._returnCode = value;
}
resetReturnCode() {
this._returnCode = undefined;
}
// Temporarily expose input value. Use with caution.
get returnCodeInput() {
return this._returnCode;
}
get timeoutInMillis() {
return this.getNumberAttribute('timeout_in_millis');
}
set timeoutInMillis(value) {
this._timeoutInMillis = value;
}
resetTimeoutInMillis() {
this._timeoutInMillis = undefined;
}
// Temporarily expose input value. Use with caution.
get timeoutInMillisInput() {
return this._timeoutInMillis;
}
get urlPath() {
return this.getStringAttribute('url_path');
}
set urlPath(value) {
this._urlPath = value;
}
resetUrlPath() {
this._urlPath = undefined;
}
// Temporarily expose input value. Use with caution.
get urlPathInput() {
return this._urlPath;
}
}
exports.LoadBalancerBackendsetHealthCheckerOutputReference = LoadBalancerBackendsetHealthCheckerOutputReference;
_c = JSII_RTTI_SYMBOL_1;
LoadBalancerBackendsetHealthCheckerOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.loadBalancerBackendset.LoadBalancerBackendsetHealthCheckerOutputReference", version: "1.0.0" };
function loadBalancerBackendsetLbCookieSessionPersistenceConfigurationToTerraform(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 {
cookie_name: cdktf.stringToTerraform(struct.cookieName),
disable_fallback: cdktf.booleanToTerraform(struct.disableFallback),
domain: cdktf.stringToTerraform(struct.domain),
is_http_only: cdktf.booleanToTerraform(struct.isHttpOnly),
is_secure: cdktf.booleanToTerraform(struct.isSecure),
max_age_in_seconds: cdktf.numberToTerraform(struct.maxAgeInSeconds),
path: cdktf.stringToTerraform(struct.path),
};
}
exports.loadBalancerBackendsetLbCookieSessionPersistenceConfigurationToTerraform = loadBalancerBackendsetLbCookieSessionPersistenceConfigurationToTerraform;
function loadBalancerBackendsetLbCookieSessionPersistenceConfigurationToHclTerraform(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 = {
cookie_name: {
value: cdktf.stringToHclTerraform(struct.cookieName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
disable_fallback: {
value: cdktf.booleanToHclTerraform(struct.disableFallback),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
domain: {
value: cdktf.stringToHclTerraform(struct.domain),
isBlock: false,
type: "simple",
storageClassType: "string",
},
is_http_only: {
value: cdktf.booleanToHclTerraform(struct.isHttpOnly),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
is_secure: {
value: cdktf.booleanToHclTerraform(struct.isSecure),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
max_age_in_seconds: {
value: cdktf.numberToHclTerraform(struct.maxAgeInSeconds),
isBlock: false,
type: "simple",
storageClassType: "number",
},
path: {
value: cdktf.stringToHclTerraform(struct.path),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.loadBalancerBackendsetLbCookieSessionPersistenceConfigurationToHclTerraform = loadBalancerBackendsetLbCookieSessionPersistenceConfigurationToHclTerraform;
class LoadBalancerBackendsetLbCookieSessionPersistenceConfigurationOutputReference 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._cookieName !== undefined) {
hasAnyValues = true;
internalValueResult.cookieName = this._cookieName;
}
if (this._disableFallback !== undefined) {
hasAnyValues = true;
internalValueResult.disableFallback = this._disableFallback;
}
if (this._domain !== undefined) {
hasAnyValues = true;
internalValueResult.domain = this._domain;
}
if (this._isHttpOnly !== undefined) {
hasAnyValues = true;
internalValueResult.isHttpOnly = this._isHttpOnly;
}
if (this._isSecure !== undefined) {
hasAnyValues = true;
internalValueResult.isSecure = this._isSecure;
}
if (this._maxAgeInSeconds !== undefined) {
hasAnyValues = true;
internalValueResult.maxAgeInSeconds = this._maxAgeInSeconds;
}
if (this._path !== undefined) {
hasAnyValues = true;
internalValueResult.path = this._path;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._cookieName = undefined;
this._disableFallback = undefined;
this._domain = undefined;
this._isHttpOnly = undefined;
this._isSecure = undefined;
this._maxAgeInSeconds = undefined;
this._path = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._cookieName = value.cookieName;
this._disableFallback = value.disableFallback;
this._domain = value.domain;
this._isHttpOnly = value.isHttpOnly;
this._isSecure = value.isSecure;
this._maxAgeInSeconds = value.maxAgeInSeconds;
this._path = value.path;
}
}
get cookieName() {
return this.getStringAttribute('cookie_name');
}
set cookieName(value) {
this._cookieName = value;
}
resetCookieName() {
this._cookieName = undefined;
}
// Temporarily expose input value. Use with caution.
get cookieNameInput() {
return this._cookieName;
}
get disableFallback() {
return this.getBooleanAttribute('disable_fallback');
}
set disableFallback(value) {
this._disableFallback = value;
}
resetDisableFallback() {
this._disableFallback = undefined;
}
// Temporarily expose input value. Use with caution.
get disableFallbackInput() {
return this._disableFallback;
}
get domain() {
return this.getStringAttribute('domain');
}
set domain(value) {
this._domain = value;
}
resetDomain() {
this._domain = undefined;
}
// Temporarily expose input value. Use with caution.
get domainInput() {
return this._domain;
}
get isHttpOnly() {
return this.getBooleanAttribute('is_http_only');
}
set isHttpOnly(value) {
this._isHttpOnly = value;
}
resetIsHttpOnly() {
this._isHttpOnly = undefined;
}
// Temporarily expose input value. Use with caution.
get isHttpOnlyInput() {
return this._isHttpOnly;
}
get isSecure() {
return this.getBooleanAttribute('is_secure');
}
set isSecure(value) {
this._isSecure = value;
}
resetIsSecure() {
this._isSecure = undefined;
}
// Temporarily expose input value. Use with caution.
get isSecureInput() {
return this._isSecure;
}
get maxAgeInSeconds() {
return this.getNumberAttribute('max_age_in_seconds');
}
set maxAgeInSeconds(value) {
this._maxAgeInSeconds = value;
}
resetMaxAgeInSeconds() {
this._maxAgeInSeconds = undefined;
}
// Temporarily expose input value. Use with caution.
get maxAgeInSecondsInput() {
return this._maxAgeInSeconds;
}
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;
}
}
exports.LoadBalancerBackendsetLbCookieSessionPersistenceConfigurationOutputReference = LoadBalancerBackendsetLbCookieSessionPersistenceConfigurationOutputReference;
_d = JSII_RTTI_SYMBOL_1;
LoadBalancerBackendsetLbCookieSessionPersistenceConfigurationOutputReference[_d] = { fqn: "rhizo-co-terraform-provider-oci.loadBalancerBackendset.LoadBalancerBackendsetLbCookieSessionPersistenceConfigurationOutputReference", version: "1.0.0" };
function loadBalancerBackendsetSessionPersistenceConfigurationToTerraform(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 {
cookie_name: cdktf.stringToTerraform(struct.cookieName),
disable_fallback: cdktf.booleanToTerraform(struct.disableFallback),
};
}
exports.loadBalancerBackendsetSessionPersistenceConfigurationToTerraform = loadBalancerBackendsetSessionPersistenceConfigurationToTerraform;
function loadBalancerBackendsetSessionPersistenceConfigurationToHclTerraform(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 = {
cookie_name: {
value: cdktf.stringToHclTerraform(struct.cookieName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
disable_fallback: {
value: cdktf.booleanToHclTerraform(struct.disableFallback),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.loadBalancerBackendsetSessionPersistenceConfigurationToHclTerraform = loadBalancerBackendsetSessionPersistenceConfigurationToHclTerraform;
class LoadBalancerBackendsetSessionPersistenceConfigurationOutputReference 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._cookieName !== undefined) {
hasAnyValues = true;
internalValueResult.cookieName = this._cookieName;
}
if (this._disableFallback !== undefined) {
hasAnyValues = true;
internalValueResult.disableFallback = this._disableFallback;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._cookieName = undefined;
this._disableFallback = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._cookieName = value.cookieName;
this._disableFallback = value.disableFallback;
}
}
get cookieName() {
return this.getStringAttribute('cookie_name');
}
set cookieName(value) {
this._cookieName = value;
}
// Temporarily expose input value. Use with caution.
get cookieNameInput() {
return this._cookieName;
}
get disableFallback() {
return this.getBooleanAttribute('disable_fallback');
}
set disableFallback(value) {
this._disableFallback = value;
}
resetDisableFallback() {
this._disableFallback = undefined;
}
// Temporarily expose input value. Use with caution.
get disableFallbackInput() {
return this._disableFallback;
}
}
exports.LoadBalancerBackendsetSessionPersistenceConfigurationOutputReference = LoadBalancerBackendsetSessionPersistenceConfigurationOutputReference;
_e = JSII_RTTI_SYMBOL_1;
LoadBalancerBackendsetSessionPersistenceConfigurationOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.loadBalancerBackendset.LoadBalancerBackendsetSessionPersistenceConfigurationOutputReference", version: "1.0.0" };
function loadBalancerBackendsetSslConfigurationToTerraform(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 {
certificate_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.certificateIds),
certificate_name: cdktf.stringToTerraform(struct.certificateName),
cipher_suite_name: cdktf.stringToTerraform(struct.cipherSuiteName),
protocols: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.protocols),
server_order_preference: cdktf.stringToTerraform(struct.serverOrderPreference),
trusted_certificate_authority_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.trustedCertificateAuthorityIds),
verify_depth: cdktf.numberToTerraform(struct.verifyDepth),
verify_peer_certificate: cdktf.booleanToTerraform(struct.verifyPeerCertificate),
};
}
exports.loadBalancerBackendsetSslConfigurationToTerraform = loadBalancerBackendsetSslConfigurationToTerraform;
function loadBalancerBackendsetSslConfigurationToHclTerraform(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 = {
certificate_ids: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.certificateIds),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
certificate_name: {
value: cdktf.stringToHclTerraform(struct.certificateName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
cipher_suite_name: {
value: cdktf.stringToHclTerraform(struct.cipherSuiteName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
protocols: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.protocols),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
server_order_preference: {
value: cdktf.stringToHclTerraform(struct.serverOrderPreference),
isBlock: false,
type: "simple",
storageClassType: "string",
},
trusted_certificate_authority_ids: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.trustedCertificateAuthorityIds),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
verify_depth: {
value: cdktf.numberToHclTerraform(struct.verifyDepth),
isBlock: false,
type: "simple",
storageClassType: "number",
},
verify_peer_certificate: {
value: cdktf.booleanToHclTerraform(struct.verifyPeerCertificate),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.loadBalancerBackendsetSslConfigurationToHclTerraform = loadBalancerBackendsetSslConfigurationToHclTerraform;
class LoadBalancerBackendsetSslConfigurationOutputReference 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._certificateIds !== undefined) {
hasAnyValues = true;
internalValueResult.certificateIds = this._certificateIds;
}
if (this._certificateName !== undefined) {
hasAnyValues = true;
internalValueResult.certificateName = this._certificateName;
}
if (this._cipherSuiteName !== undefined) {
hasAnyValues = true;
internalValueResult.cipherSuiteName = this._cipherSuiteName;
}
if (this._protocols !== undefined) {
hasAnyValues = true;
internalValueResult.protocols = this._protocols;
}
if (this._serverOrderPreference !== undefined) {
hasAnyValues = true;
internalValueResult.serverOrderPreference = this._serverOrderPreference;
}
if (this._trustedCertificateAuthorityIds !== undefined) {
hasAnyValues = true;
internalValueResult.trustedCertificateAuthorityIds = this._trustedCertificateAuthorityIds;
}
if (this._verifyDepth !== undefined) {
hasAnyValues = true;
internalValueResult.verifyDepth = this._verifyDepth;
}
if (this._verifyPeerCertificate !== undefined) {
hasAnyValues = true;
internalValueResult.verifyPeerCertificate = this._verifyPeerCertificate;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._certificateIds = undefined;
this._certificateName = undefined;
this._cipherSuiteName = undefined;
this._protocols = undefined;
this._serverOrderPreference = undefined;
this._trustedCertificateAuthorityIds = undefined;
this._verifyDepth = undefined;
this._verifyPeerCertificate = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._certificateIds = value.certificateIds;
this._certificateName = value.certificateName;
this._cipherSuiteName = value.cipherSuiteName;
this._protocols = value.protocols;
this._serverOrderPreference = value.serverOrderPreference;
this._trustedCertificateAuthorityIds = value.trustedCertificateAuthorityIds;
this._verifyDepth = value.verifyDepth;
this._verifyPeerCertificate = value.verifyPeerCertificate;
}
}
get certificateIds() {
return this.getListAttribute('certificate_ids');
}
set certificateIds(value) {
this._certificateIds = value;
}
resetCertificateIds() {
this._certificateIds = undefined;
}
// Temporarily expose input value. Use with caution.
get certificateIdsInput() {
return this._certificateIds;
}
get certificateName() {
return this.getStringAttribute('certificate_name');
}
set certificateName(value) {
this._certificateName = value;
}
resetCertificateName() {
this._certificateName = undefined;
}
// Temporarily expose input value. Use with caution.
get certificateNameInput() {
return this._certificateName;
}
get cipherSuiteName() {
return this.getStringAttribute('cipher_suite_name');
}
set cipherSuiteName(value) {
this._cipherSuiteName = value;
}
resetCipherSuiteName() {
this._cipherSuiteName = undefined;
}
// Temporarily expose input value. Use with caution.
get cipherSuiteNameInput() {
return this._cipherSuiteName;
}
get protocols() {
return this.getListAttribute('protocols');
}
set protocols(value) {
this._protocols = value;
}
resetProtocols() {
this._protocols = undefined;
}
// Temporarily expose input value. Use with caution.
get protocolsInput() {
return this._protocols;
}
get serverOrderPreference() {
return this.getStringAttribute('server_order_preference');
}
set serverOrderPreference(value) {
this._serverOrderPreference = value;
}
resetServerOrderPreference() {
this._serverOrderPreference = undefined;
}
// Temporarily expose input value. Use with caution.
get serverOrderPreferenceInput() {
return this._serverOrderPreference;
}
get trustedCertificateAuthorityIds() {
return this.getListAttribute('trusted_certificate_authority_ids');
}
set trustedCertificateAuthorityIds(value) {
this._trustedCertificateAuthorityIds = value;
}
resetTrustedCertificateAuthorityIds() {
this._trustedCertificateAuthorityIds = undefined;
}
// Temporarily expose input value. Use with caution.
get trustedCertificateAuthorityIdsInput() {
return this._trustedCertificateAuthorityIds;
}
get verifyDepth() {
return this.getNumberAttribute('verify_depth');
}
set verifyDepth(value) {
this._verifyDepth = value;
}
resetVerifyDepth() {
this._verifyDepth = undefined;
}
// Temporarily expose input value. Use with caution.
get verifyDepthInput() {
return this._verifyDepth;
}
get verifyPeerCertificate() {
return this.getBooleanAttribute('verify_peer_certificate');
}
set verifyPeerCertificate(value) {
this._verifyPeerCertificate = value;
}
resetVerifyPeerCertificate() {
this._verifyPeerCertificate = undefined;
}
// Temporarily expose input value. Use with caution.
get verifyPeerCertificateInput() {
return this._verifyPeerCertificate;
}
}
exports.LoadBalancerBackendsetSslConfigurationOutputReference = LoadBalancerBackendsetSslConfigurationOutputReference;
_f = JSII_RTTI_SYMBOL_1;
LoadBalancerBackendsetSslConfigurationOutputReference[_f] = { fqn: "rhizo-co-terraform-provider-oci.loadBalancerBackendset.LoadBalancerBackendsetSslConfigurationOutputReference", version: "1.0.0" };
function loadBalancerBackendsetTimeoutsToTerraform(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.loadBalancerBackendsetTimeoutsToTerraform = loadBalancerBackendsetTimeoutsToTerraform;
function loadBalancerBackendsetTimeoutsToHclTerraform(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.loadBalancerBackendsetTimeoutsToHclTerraform = loadBalancerBackendsetTimeoutsToHclTerraform;
class LoadBalancerBackendsetTimeoutsOutputReference 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.LoadBalancerBackendsetTimeoutsOutputReference = LoadBalancerBackendsetTimeoutsOutputReference;
_g = JSII_RTTI_SYMBOL_1;
LoadBalancerBackendsetTimeoutsOutputReference[_g] = { fqn: "rhizo-co-terraform-provider-oci.loadBalancerBackendset.LoadBalancerBackendsetTimeoutsOutputReference", version: "1.0.0" };
/**
* Represents a {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/load_balancer_backendset oci_load_balancer_backendset}
*/
class LoadBalancerBackendset extends cdktf.TerraformResource {
// ==============
// STATIC Methods
// ==============
/**
* Generates CDKTF code for importing a LoadBalancerBackendset 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 LoadBalancerBackendset to import
* @param importFromId The id of the existing LoadBalancerBackendset that should be imported. Refer to the {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/load_balancer_backendset#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the LoadBalancerBackendset to import is found
*/
static generateConfigForImport(scope, importToId, importFromId, provider) {
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "oci_load_balancer_backendset", importId: importFromId, provider });
}
// ===========
// INITIALIZER
// ===========
/**
* Create a new {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/load_balancer_backendset oci_load_balancer_backendset} 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 LoadBalancerBackendsetConfig
*/
constructor(scope, id, config) {
super(scope, id, {
terraformResourceType: 'oci_load_balancer_backendset',
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
});
// ==========
// ATTRIBUTES
// ==========
// backend - computed: true, optional: false, required: false
this._backend = new LoadBalancerBackendsetBackendList(this, "backend", true);
// health_checker - computed: false, optional: false, required: true
this._healthChecker = new LoadBalancerBackendsetHealthCheckerOutputReference(this, "health_checker");
// lb_cookie_session_persistence_configuration - computed: false, optional: true, required: false
this._lbCookieSessionPersistenceConfiguration = new LoadBalancerBackendsetLbCookieSessionPersistenceConfigurationOutputReference(this, "lb_cookie_session_persistence_configuration");
// session_persistence_configuration - computed: false, optional: true, required: false
this._sessionPersistenceConfiguration = new LoadBalancerBackendsetSessionPersistenceConfigurationOutputReference(this, "session_persistence_configuration");
// ssl_configuration - computed: false, optional: true, required: false
this._sslConfiguration = new LoadBalancerBackendsetSslConfigurationOutputReference(this, "ssl_configuration");
// timeouts - computed: false, optional: true, required: false
this._timeouts = new LoadBalancerBackendsetTimeoutsOutputReference(this, "timeouts");
this._backendMaxConnections = config.backendMaxConnections;
this._id = config.id;
this._loadBalancerId = config.loadBalancerId;
this._name = config.name;
this._policy = config.policy;
this._healthChecker.internalValue = config.healthChecker;
this._lbCookieSessionPersistenceConfiguration.internalValue = config.lbCookieSessionPersistenceConfiguration;
this._sessionPersistenceConfiguration.internalValue = config.sessionPersistenceConfiguration;
this._sslConfiguration.internalValue = config.sslConfiguration;
this._timeouts.internalValue = config.timeouts;
}
get backend() {
return this._backend;
}
get backendMaxConnections() {
return this.getNumberAttribute('backend_max_connections');
}
set backendMaxConnections(value) {
this._backendMaxConnections = value;
}
resetBackendMaxConnections() {
this._backendMaxConnections = undefined;
}
// Temporarily expose input value. Use with caution.
get backendMaxConnectionsInput() {
return this._backendMaxConnections;
}
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;
}
get policy() {
return this.getStringAttribute('policy');
}
set policy(value) {
this._policy = value;
}
// Temporarily expose input value. Use with caution.
get policyInput() {
return this._policy;
}
// state - computed: true, optional: false, required: false
get state() {
return this.getStringAttribute('state');
}
get healthChecker() {
return this._healthChecker;
}
putHea