UNPKG

@cdktf/provider-google

Version:

Prebuilt google Provider for Terraform CDK (cdktf)

1,350 lines 274 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j; Object.defineProperty(exports, "__esModule", { value: true }); exports.ComputeRegionHealthCheck = exports.ComputeRegionHealthCheckTimeoutsOutputReference = exports.computeRegionHealthCheckTimeoutsToHclTerraform = exports.computeRegionHealthCheckTimeoutsToTerraform = exports.ComputeRegionHealthCheckTcpHealthCheckOutputReference = exports.computeRegionHealthCheckTcpHealthCheckToHclTerraform = exports.computeRegionHealthCheckTcpHealthCheckToTerraform = exports.ComputeRegionHealthCheckSslHealthCheckOutputReference = exports.computeRegionHealthCheckSslHealthCheckToHclTerraform = exports.computeRegionHealthCheckSslHealthCheckToTerraform = exports.ComputeRegionHealthCheckLogConfigOutputReference = exports.computeRegionHealthCheckLogConfigToHclTerraform = exports.computeRegionHealthCheckLogConfigToTerraform = exports.ComputeRegionHealthCheckHttpsHealthCheckOutputReference = exports.computeRegionHealthCheckHttpsHealthCheckToHclTerraform = exports.computeRegionHealthCheckHttpsHealthCheckToTerraform = exports.ComputeRegionHealthCheckHttpHealthCheckOutputReference = exports.computeRegionHealthCheckHttpHealthCheckToHclTerraform = exports.computeRegionHealthCheckHttpHealthCheckToTerraform = exports.ComputeRegionHealthCheckHttp2HealthCheckOutputReference = exports.computeRegionHealthCheckHttp2HealthCheckToHclTerraform = exports.computeRegionHealthCheckHttp2HealthCheckToTerraform = exports.ComputeRegionHealthCheckGrpcHealthCheckOutputReference = exports.computeRegionHealthCheckGrpcHealthCheckToHclTerraform = exports.computeRegionHealthCheckGrpcHealthCheckToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function computeRegionHealthCheckGrpcHealthCheckToTerraform(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 { grpc_service_name: cdktf.stringToTerraform(struct.grpcServiceName), port: cdktf.numberToTerraform(struct.port), port_name: cdktf.stringToTerraform(struct.portName), port_specification: cdktf.stringToTerraform(struct.portSpecification), }; } exports.computeRegionHealthCheckGrpcHealthCheckToTerraform = computeRegionHealthCheckGrpcHealthCheckToTerraform; function computeRegionHealthCheckGrpcHealthCheckToHclTerraform(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 = { grpc_service_name: { value: cdktf.stringToHclTerraform(struct.grpcServiceName), isBlock: false, type: "simple", storageClassType: "string", }, port: { value: cdktf.numberToHclTerraform(struct.port), isBlock: false, type: "simple", storageClassType: "number", }, port_name: { value: cdktf.stringToHclTerraform(struct.portName), isBlock: false, type: "simple", storageClassType: "string", }, port_specification: { value: cdktf.stringToHclTerraform(struct.portSpecification), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.computeRegionHealthCheckGrpcHealthCheckToHclTerraform = computeRegionHealthCheckGrpcHealthCheckToHclTerraform; class ComputeRegionHealthCheckGrpcHealthCheckOutputReference 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._grpcServiceName !== undefined) { hasAnyValues = true; internalValueResult.grpcServiceName = this._grpcServiceName; } if (this._port !== undefined) { hasAnyValues = true; internalValueResult.port = this._port; } if (this._portName !== undefined) { hasAnyValues = true; internalValueResult.portName = this._portName; } if (this._portSpecification !== undefined) { hasAnyValues = true; internalValueResult.portSpecification = this._portSpecification; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._grpcServiceName = undefined; this._port = undefined; this._portName = undefined; this._portSpecification = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._grpcServiceName = value.grpcServiceName; this._port = value.port; this._portName = value.portName; this._portSpecification = value.portSpecification; } } get grpcServiceName() { return this.getStringAttribute('grpc_service_name'); } set grpcServiceName(value) { this._grpcServiceName = value; } resetGrpcServiceName() { this._grpcServiceName = undefined; } // Temporarily expose input value. Use with caution. get grpcServiceNameInput() { return this._grpcServiceName; } 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 portName() { return this.getStringAttribute('port_name'); } set portName(value) { this._portName = value; } resetPortName() { this._portName = undefined; } // Temporarily expose input value. Use with caution. get portNameInput() { return this._portName; } get portSpecification() { return this.getStringAttribute('port_specification'); } set portSpecification(value) { this._portSpecification = value; } resetPortSpecification() { this._portSpecification = undefined; } // Temporarily expose input value. Use with caution. get portSpecificationInput() { return this._portSpecification; } } exports.ComputeRegionHealthCheckGrpcHealthCheckOutputReference = ComputeRegionHealthCheckGrpcHealthCheckOutputReference; _a = JSII_RTTI_SYMBOL_1; ComputeRegionHealthCheckGrpcHealthCheckOutputReference[_a] = { fqn: "@cdktf/provider-google.computeRegionHealthCheck.ComputeRegionHealthCheckGrpcHealthCheckOutputReference", version: "14.12.0" }; function computeRegionHealthCheckHttp2HealthCheckToTerraform(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), port: cdktf.numberToTerraform(struct.port), port_name: cdktf.stringToTerraform(struct.portName), port_specification: cdktf.stringToTerraform(struct.portSpecification), proxy_header: cdktf.stringToTerraform(struct.proxyHeader), request_path: cdktf.stringToTerraform(struct.requestPath), response: cdktf.stringToTerraform(struct.response), }; } exports.computeRegionHealthCheckHttp2HealthCheckToTerraform = computeRegionHealthCheckHttp2HealthCheckToTerraform; function computeRegionHealthCheckHttp2HealthCheckToHclTerraform(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", }, port: { value: cdktf.numberToHclTerraform(struct.port), isBlock: false, type: "simple", storageClassType: "number", }, port_name: { value: cdktf.stringToHclTerraform(struct.portName), isBlock: false, type: "simple", storageClassType: "string", }, port_specification: { value: cdktf.stringToHclTerraform(struct.portSpecification), isBlock: false, type: "simple", storageClassType: "string", }, proxy_header: { value: cdktf.stringToHclTerraform(struct.proxyHeader), isBlock: false, type: "simple", storageClassType: "string", }, request_path: { value: cdktf.stringToHclTerraform(struct.requestPath), isBlock: false, type: "simple", storageClassType: "string", }, response: { value: cdktf.stringToHclTerraform(struct.response), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.computeRegionHealthCheckHttp2HealthCheckToHclTerraform = computeRegionHealthCheckHttp2HealthCheckToHclTerraform; class ComputeRegionHealthCheckHttp2HealthCheckOutputReference 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._port !== undefined) { hasAnyValues = true; internalValueResult.port = this._port; } if (this._portName !== undefined) { hasAnyValues = true; internalValueResult.portName = this._portName; } if (this._portSpecification !== undefined) { hasAnyValues = true; internalValueResult.portSpecification = this._portSpecification; } if (this._proxyHeader !== undefined) { hasAnyValues = true; internalValueResult.proxyHeader = this._proxyHeader; } if (this._requestPath !== undefined) { hasAnyValues = true; internalValueResult.requestPath = this._requestPath; } if (this._response !== undefined) { hasAnyValues = true; internalValueResult.response = this._response; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._host = undefined; this._port = undefined; this._portName = undefined; this._portSpecification = undefined; this._proxyHeader = undefined; this._requestPath = undefined; this._response = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._host = value.host; this._port = value.port; this._portName = value.portName; this._portSpecification = value.portSpecification; this._proxyHeader = value.proxyHeader; this._requestPath = value.requestPath; this._response = value.response; } } 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 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 portName() { return this.getStringAttribute('port_name'); } set portName(value) { this._portName = value; } resetPortName() { this._portName = undefined; } // Temporarily expose input value. Use with caution. get portNameInput() { return this._portName; } get portSpecification() { return this.getStringAttribute('port_specification'); } set portSpecification(value) { this._portSpecification = value; } resetPortSpecification() { this._portSpecification = undefined; } // Temporarily expose input value. Use with caution. get portSpecificationInput() { return this._portSpecification; } get proxyHeader() { return this.getStringAttribute('proxy_header'); } set proxyHeader(value) { this._proxyHeader = value; } resetProxyHeader() { this._proxyHeader = undefined; } // Temporarily expose input value. Use with caution. get proxyHeaderInput() { return this._proxyHeader; } get requestPath() { return this.getStringAttribute('request_path'); } set requestPath(value) { this._requestPath = value; } resetRequestPath() { this._requestPath = undefined; } // Temporarily expose input value. Use with caution. get requestPathInput() { return this._requestPath; } get response() { return this.getStringAttribute('response'); } set response(value) { this._response = value; } resetResponse() { this._response = undefined; } // Temporarily expose input value. Use with caution. get responseInput() { return this._response; } } exports.ComputeRegionHealthCheckHttp2HealthCheckOutputReference = ComputeRegionHealthCheckHttp2HealthCheckOutputReference; _b = JSII_RTTI_SYMBOL_1; ComputeRegionHealthCheckHttp2HealthCheckOutputReference[_b] = { fqn: "@cdktf/provider-google.computeRegionHealthCheck.ComputeRegionHealthCheckHttp2HealthCheckOutputReference", version: "14.12.0" }; function computeRegionHealthCheckHttpHealthCheckToTerraform(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), port: cdktf.numberToTerraform(struct.port), port_name: cdktf.stringToTerraform(struct.portName), port_specification: cdktf.stringToTerraform(struct.portSpecification), proxy_header: cdktf.stringToTerraform(struct.proxyHeader), request_path: cdktf.stringToTerraform(struct.requestPath), response: cdktf.stringToTerraform(struct.response), }; } exports.computeRegionHealthCheckHttpHealthCheckToTerraform = computeRegionHealthCheckHttpHealthCheckToTerraform; function computeRegionHealthCheckHttpHealthCheckToHclTerraform(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", }, port: { value: cdktf.numberToHclTerraform(struct.port), isBlock: false, type: "simple", storageClassType: "number", }, port_name: { value: cdktf.stringToHclTerraform(struct.portName), isBlock: false, type: "simple", storageClassType: "string", }, port_specification: { value: cdktf.stringToHclTerraform(struct.portSpecification), isBlock: false, type: "simple", storageClassType: "string", }, proxy_header: { value: cdktf.stringToHclTerraform(struct.proxyHeader), isBlock: false, type: "simple", storageClassType: "string", }, request_path: { value: cdktf.stringToHclTerraform(struct.requestPath), isBlock: false, type: "simple", storageClassType: "string", }, response: { value: cdktf.stringToHclTerraform(struct.response), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.computeRegionHealthCheckHttpHealthCheckToHclTerraform = computeRegionHealthCheckHttpHealthCheckToHclTerraform; class ComputeRegionHealthCheckHttpHealthCheckOutputReference 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._port !== undefined) { hasAnyValues = true; internalValueResult.port = this._port; } if (this._portName !== undefined) { hasAnyValues = true; internalValueResult.portName = this._portName; } if (this._portSpecification !== undefined) { hasAnyValues = true; internalValueResult.portSpecification = this._portSpecification; } if (this._proxyHeader !== undefined) { hasAnyValues = true; internalValueResult.proxyHeader = this._proxyHeader; } if (this._requestPath !== undefined) { hasAnyValues = true; internalValueResult.requestPath = this._requestPath; } if (this._response !== undefined) { hasAnyValues = true; internalValueResult.response = this._response; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._host = undefined; this._port = undefined; this._portName = undefined; this._portSpecification = undefined; this._proxyHeader = undefined; this._requestPath = undefined; this._response = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._host = value.host; this._port = value.port; this._portName = value.portName; this._portSpecification = value.portSpecification; this._proxyHeader = value.proxyHeader; this._requestPath = value.requestPath; this._response = value.response; } } 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 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 portName() { return this.getStringAttribute('port_name'); } set portName(value) { this._portName = value; } resetPortName() { this._portName = undefined; } // Temporarily expose input value. Use with caution. get portNameInput() { return this._portName; } get portSpecification() { return this.getStringAttribute('port_specification'); } set portSpecification(value) { this._portSpecification = value; } resetPortSpecification() { this._portSpecification = undefined; } // Temporarily expose input value. Use with caution. get portSpecificationInput() { return this._portSpecification; } get proxyHeader() { return this.getStringAttribute('proxy_header'); } set proxyHeader(value) { this._proxyHeader = value; } resetProxyHeader() { this._proxyHeader = undefined; } // Temporarily expose input value. Use with caution. get proxyHeaderInput() { return this._proxyHeader; } get requestPath() { return this.getStringAttribute('request_path'); } set requestPath(value) { this._requestPath = value; } resetRequestPath() { this._requestPath = undefined; } // Temporarily expose input value. Use with caution. get requestPathInput() { return this._requestPath; } get response() { return this.getStringAttribute('response'); } set response(value) { this._response = value; } resetResponse() { this._response = undefined; } // Temporarily expose input value. Use with caution. get responseInput() { return this._response; } } exports.ComputeRegionHealthCheckHttpHealthCheckOutputReference = ComputeRegionHealthCheckHttpHealthCheckOutputReference; _c = JSII_RTTI_SYMBOL_1; ComputeRegionHealthCheckHttpHealthCheckOutputReference[_c] = { fqn: "@cdktf/provider-google.computeRegionHealthCheck.ComputeRegionHealthCheckHttpHealthCheckOutputReference", version: "14.12.0" }; function computeRegionHealthCheckHttpsHealthCheckToTerraform(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), port: cdktf.numberToTerraform(struct.port), port_name: cdktf.stringToTerraform(struct.portName), port_specification: cdktf.stringToTerraform(struct.portSpecification), proxy_header: cdktf.stringToTerraform(struct.proxyHeader), request_path: cdktf.stringToTerraform(struct.requestPath), response: cdktf.stringToTerraform(struct.response), }; } exports.computeRegionHealthCheckHttpsHealthCheckToTerraform = computeRegionHealthCheckHttpsHealthCheckToTerraform; function computeRegionHealthCheckHttpsHealthCheckToHclTerraform(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", }, port: { value: cdktf.numberToHclTerraform(struct.port), isBlock: false, type: "simple", storageClassType: "number", }, port_name: { value: cdktf.stringToHclTerraform(struct.portName), isBlock: false, type: "simple", storageClassType: "string", }, port_specification: { value: cdktf.stringToHclTerraform(struct.portSpecification), isBlock: false, type: "simple", storageClassType: "string", }, proxy_header: { value: cdktf.stringToHclTerraform(struct.proxyHeader), isBlock: false, type: "simple", storageClassType: "string", }, request_path: { value: cdktf.stringToHclTerraform(struct.requestPath), isBlock: false, type: "simple", storageClassType: "string", }, response: { value: cdktf.stringToHclTerraform(struct.response), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.computeRegionHealthCheckHttpsHealthCheckToHclTerraform = computeRegionHealthCheckHttpsHealthCheckToHclTerraform; class ComputeRegionHealthCheckHttpsHealthCheckOutputReference 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._port !== undefined) { hasAnyValues = true; internalValueResult.port = this._port; } if (this._portName !== undefined) { hasAnyValues = true; internalValueResult.portName = this._portName; } if (this._portSpecification !== undefined) { hasAnyValues = true; internalValueResult.portSpecification = this._portSpecification; } if (this._proxyHeader !== undefined) { hasAnyValues = true; internalValueResult.proxyHeader = this._proxyHeader; } if (this._requestPath !== undefined) { hasAnyValues = true; internalValueResult.requestPath = this._requestPath; } if (this._response !== undefined) { hasAnyValues = true; internalValueResult.response = this._response; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._host = undefined; this._port = undefined; this._portName = undefined; this._portSpecification = undefined; this._proxyHeader = undefined; this._requestPath = undefined; this._response = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._host = value.host; this._port = value.port; this._portName = value.portName; this._portSpecification = value.portSpecification; this._proxyHeader = value.proxyHeader; this._requestPath = value.requestPath; this._response = value.response; } } 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 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 portName() { return this.getStringAttribute('port_name'); } set portName(value) { this._portName = value; } resetPortName() { this._portName = undefined; } // Temporarily expose input value. Use with caution. get portNameInput() { return this._portName; } get portSpecification() { return this.getStringAttribute('port_specification'); } set portSpecification(value) { this._portSpecification = value; } resetPortSpecification() { this._portSpecification = undefined; } // Temporarily expose input value. Use with caution. get portSpecificationInput() { return this._portSpecification; } get proxyHeader() { return this.getStringAttribute('proxy_header'); } set proxyHeader(value) { this._proxyHeader = value; } resetProxyHeader() { this._proxyHeader = undefined; } // Temporarily expose input value. Use with caution. get proxyHeaderInput() { return this._proxyHeader; } get requestPath() { return this.getStringAttribute('request_path'); } set requestPath(value) { this._requestPath = value; } resetRequestPath() { this._requestPath = undefined; } // Temporarily expose input value. Use with caution. get requestPathInput() { return this._requestPath; } get response() { return this.getStringAttribute('response'); } set response(value) { this._response = value; } resetResponse() { this._response = undefined; } // Temporarily expose input value. Use with caution. get responseInput() { return this._response; } } exports.ComputeRegionHealthCheckHttpsHealthCheckOutputReference = ComputeRegionHealthCheckHttpsHealthCheckOutputReference; _d = JSII_RTTI_SYMBOL_1; ComputeRegionHealthCheckHttpsHealthCheckOutputReference[_d] = { fqn: "@cdktf/provider-google.computeRegionHealthCheck.ComputeRegionHealthCheckHttpsHealthCheckOutputReference", version: "14.12.0" }; function computeRegionHealthCheckLogConfigToTerraform(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 { enable: cdktf.booleanToTerraform(struct.enable), }; } exports.computeRegionHealthCheckLogConfigToTerraform = computeRegionHealthCheckLogConfigToTerraform; function computeRegionHealthCheckLogConfigToHclTerraform(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 = { enable: { value: cdktf.booleanToHclTerraform(struct.enable), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.computeRegionHealthCheckLogConfigToHclTerraform = computeRegionHealthCheckLogConfigToHclTerraform; class ComputeRegionHealthCheckLogConfigOutputReference 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._enable !== undefined) { hasAnyValues = true; internalValueResult.enable = this._enable; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._enable = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._enable = value.enable; } } get enable() { return this.getBooleanAttribute('enable'); } set enable(value) { this._enable = value; } resetEnable() { this._enable = undefined; } // Temporarily expose input value. Use with caution. get enableInput() { return this._enable; } } exports.ComputeRegionHealthCheckLogConfigOutputReference = ComputeRegionHealthCheckLogConfigOutputReference; _e = JSII_RTTI_SYMBOL_1; ComputeRegionHealthCheckLogConfigOutputReference[_e] = { fqn: "@cdktf/provider-google.computeRegionHealthCheck.ComputeRegionHealthCheckLogConfigOutputReference", version: "14.12.0" }; function computeRegionHealthCheckSslHealthCheckToTerraform(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 { port: cdktf.numberToTerraform(struct.port), port_name: cdktf.stringToTerraform(struct.portName), port_specification: cdktf.stringToTerraform(struct.portSpecification), proxy_header: cdktf.stringToTerraform(struct.proxyHeader), request: cdktf.stringToTerraform(struct.request), response: cdktf.stringToTerraform(struct.response), }; } exports.computeRegionHealthCheckSslHealthCheckToTerraform = computeRegionHealthCheckSslHealthCheckToTerraform; function computeRegionHealthCheckSslHealthCheckToHclTerraform(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 = { port: { value: cdktf.numberToHclTerraform(struct.port), isBlock: false, type: "simple", storageClassType: "number", }, port_name: { value: cdktf.stringToHclTerraform(struct.portName), isBlock: false, type: "simple", storageClassType: "string", }, port_specification: { value: cdktf.stringToHclTerraform(struct.portSpecification), isBlock: false, type: "simple", storageClassType: "string", }, proxy_header: { value: cdktf.stringToHclTerraform(struct.proxyHeader), isBlock: false, type: "simple", storageClassType: "string", }, request: { value: cdktf.stringToHclTerraform(struct.request), isBlock: false, type: "simple", storageClassType: "string", }, response: { value: cdktf.stringToHclTerraform(struct.response), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.computeRegionHealthCheckSslHealthCheckToHclTerraform = computeRegionHealthCheckSslHealthCheckToHclTerraform; class ComputeRegionHealthCheckSslHealthCheckOutputReference 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._port !== undefined) { hasAnyValues = true; internalValueResult.port = this._port; } if (this._portName !== undefined) { hasAnyValues = true; internalValueResult.portName = this._portName; } if (this._portSpecification !== undefined) { hasAnyValues = true; internalValueResult.portSpecification = this._portSpecification; } if (this._proxyHeader !== undefined) { hasAnyValues = true; internalValueResult.proxyHeader = this._proxyHeader; } if (this._request !== undefined) { hasAnyValues = true; internalValueResult.request = this._request; } if (this._response !== undefined) { hasAnyValues = true; internalValueResult.response = this._response; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._port = undefined; this._portName = undefined; this._portSpecification = undefined; this._proxyHeader = undefined; this._request = undefined; this._response = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._port = value.port; this._portName = value.portName; this._portSpecification = value.portSpecification; this._proxyHeader = value.proxyHeader; this._request = value.request; this._response = value.response; } } 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 portName() { return this.getStringAttribute('port_name'); } set portName(value) { this._portName = value; } resetPortName() { this._portName = undefined; } // Temporarily expose input value. Use with caution. get portNameInput() { return this._portName; } get portSpecification() { return this.getStringAttribute('port_specification'); } set portSpecification(value) { this._portSpecification = value; } resetPortSpecification() { this._portSpecification = undefined; } // Temporarily expose input value. Use with caution. get portSpecificationInput() { return this._portSpecification; } get proxyHeader() { return this.getStringAttribute('proxy_header'); } set proxyHeader(value) { this._proxyHeader = value; } resetProxyHeader() { this._proxyHeader = undefined; } // Temporarily expose input value. Use with caution. get proxyHeaderInput() { return this._proxyHeader; } get request() { return this.getStringAttribute('request'); } set request(value) { this._request = value; } resetRequest() { this._request = undefined; } // Temporarily expose input value. Use with caution. get requestInput() { return this._request; } get response() { return this.getStringAttribute('response'); } set response(value) { this._response = value; } resetResponse() { this._response = undefined; } // Temporarily expose input value. Use with caution. get responseInput() { return this._response; } } exports.ComputeRegionHealthCheckSslHealthCheckOutputReference = ComputeRegionHealthCheckSslHealthCheckOutputReference; _f = JSII_RTTI_SYMBOL_1; ComputeRegionHealthCheckSslHealthCheckOutputReference[_f] = { fqn: "@cdktf/provider-google.computeRegionHealthCheck.ComputeRegionHealthCheckSslHealthCheckOutputReference", version: "14.12.0" }; function computeRegionHealthCheckTcpHealthCheckToTerraform(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 { port: cdktf.numberToTerraform(struct.port), port_name: cdktf.stringToTerraform(struct.portName), port_specification: cdktf.stringToTerraform(struct.portSpecification), proxy_header: cdktf.stringToTerraform(struct.proxyHeader), request: cdktf.stringToTerraform(struct.request), response: cdktf.stringToTerraform(struct.response), }; } exports.computeRegionHealthCheckTcpHealthCheckToTerraform = computeRegionHealthCheckTcpHealthCheckToTerraform; function computeRegionHealthCheckTcpHealthCheckToHclTerraform(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 = { port: { value: cdktf.numberToHclTerraform(struct.port), isBlock: false, type: "simple", storageClassType: "number", }, port_name: { value: cdktf.stringToHclTerraform(struct.portName), isBlock: false, type: "simple", storageClassType: "string", }, port_specification: { value: cdktf.stringToHclTerraform(struct.portSpecification), isBlock: false, type: "simple", storageClassType: "string", }, proxy_header: { value: cdktf.stringToHclTerraform(struct.proxyHeader), isBlock: false, type: "simple", storageClassType: "string", }, request: { value: cdktf.stringToHclTerraform(struct.request), isBlock: false, type: "simple", storageClassType: "string", }, response: { value: cdktf.stringToHclTerraform(struct.response), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.computeRegionHealthCheckTcpHealthCheckToHclTerraform = computeRegionHealthCheckTcpHealthCheckToHclTerraform; class ComputeRegionHealthCheckTcpHealthCheckOutputReference 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._port !== undefined) { hasAnyValues = true; internalValueResult.port = this._port; } if (this._portName !== undefined) { hasAnyValues = true; internalValueResult.portName = this._portName; } if (this._portSpecification !== undefined) { hasAnyValues = true; internalValueResult.portSpecification = this._portSpecification; } if (this._proxyHeader !== undefined) { hasAnyValues = true; internalValueResult.proxyHeader = this._proxyHeader; } if (this._request !== undefined) { hasAnyValues = true; internalValueResult.request = this._request; } if (this._response !== undefined) { hasAnyValues = true; internalValueResult.response = this._response; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._port = undefined; this._portName = undefined; this._portSpecification = undefined; this._proxyHeader = undefined; this._request = undefined; this._response = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._port = value.port; this._portName = value.portName; this._portSpecification = value.portSpecification; this._proxyHeader = value.proxyHeader; this._request = value.request; this._response = value.response; } } 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 portName() { return this.getStringAttribute('port_name'); } set portName(value) { this._portName = value; } resetPortName() { this._portName = undefined; } // Temporarily expose input value. Use with caution. get portNameInput() { return this._portName; } get portSpecification() { return this.getStringAttribute('port_specification'); } set portSpecification(value) { this._portSpecification = value; } resetPortSpecification() { this._portSpecification = undefined; } // Temporarily expose input value. Use with caution. get portSpecificationInput() { return this._portSpecification; } get proxyHeader() { return this.getStringAttribute('proxy_header'); } set proxyHeader(value) { this._proxyHeader = value; } resetProxyHeader() { this._proxyHeader = undefined; } // Temporarily expose input value. Use with caution. get proxyHeaderInput() { return this._proxyHeader; } get request() { return this.getStringAttribute('request'); } set request(value) { this._request = value; } resetRequest() { this._request = undefined; } // Temporarily expose input value. Use with caution. get requestInput() { return this._request; } get response() { return this.getStringAttribute('response'); } set response(value) { this._response = value; } resetResponse() { this._response = undefined; } // Temporarily expose input value. Use with caution. get responseInput() { return this._response; } } exports.ComputeRegionHealthCheckTcpHealthCheckOutputReference = ComputeRegionHealthCheckTcpHealthCheckOutputReference; _g = JSII_RTTI_SYMBOL_1; ComputeRegionHealthCheckTcpHealthCheckOutputReference[_g] = { fqn: "@cdktf/provider-google.computeRegionHealthCheck.ComputeRegionHealthCheckTcpHealthCheckOutputReference", version: "14.12.0" }; function computeRegionHealthCheckTimeoutsToTerraform(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/com