@cdktf/provider-google
Version:
Prebuilt google Provider for Terraform CDK (cdktf)
1,364 lines • 271 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ComputeHealthCheck = exports.ComputeHealthCheckTimeoutsOutputReference = exports.computeHealthCheckTimeoutsToHclTerraform = exports.computeHealthCheckTimeoutsToTerraform = exports.ComputeHealthCheckTcpHealthCheckOutputReference = exports.computeHealthCheckTcpHealthCheckToHclTerraform = exports.computeHealthCheckTcpHealthCheckToTerraform = exports.ComputeHealthCheckSslHealthCheckOutputReference = exports.computeHealthCheckSslHealthCheckToHclTerraform = exports.computeHealthCheckSslHealthCheckToTerraform = exports.ComputeHealthCheckLogConfigOutputReference = exports.computeHealthCheckLogConfigToHclTerraform = exports.computeHealthCheckLogConfigToTerraform = exports.ComputeHealthCheckHttpsHealthCheckOutputReference = exports.computeHealthCheckHttpsHealthCheckToHclTerraform = exports.computeHealthCheckHttpsHealthCheckToTerraform = exports.ComputeHealthCheckHttpHealthCheckOutputReference = exports.computeHealthCheckHttpHealthCheckToHclTerraform = exports.computeHealthCheckHttpHealthCheckToTerraform = exports.ComputeHealthCheckHttp2HealthCheckOutputReference = exports.computeHealthCheckHttp2HealthCheckToHclTerraform = exports.computeHealthCheckHttp2HealthCheckToTerraform = exports.ComputeHealthCheckGrpcHealthCheckOutputReference = exports.computeHealthCheckGrpcHealthCheckToHclTerraform = exports.computeHealthCheckGrpcHealthCheckToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function computeHealthCheckGrpcHealthCheckToTerraform(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.computeHealthCheckGrpcHealthCheckToTerraform = computeHealthCheckGrpcHealthCheckToTerraform;
function computeHealthCheckGrpcHealthCheckToHclTerraform(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.computeHealthCheckGrpcHealthCheckToHclTerraform = computeHealthCheckGrpcHealthCheckToHclTerraform;
class ComputeHealthCheckGrpcHealthCheckOutputReference 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.ComputeHealthCheckGrpcHealthCheckOutputReference = ComputeHealthCheckGrpcHealthCheckOutputReference;
_a = JSII_RTTI_SYMBOL_1;
ComputeHealthCheckGrpcHealthCheckOutputReference[_a] = { fqn: "@cdktf/provider-google.computeHealthCheck.ComputeHealthCheckGrpcHealthCheckOutputReference", version: "14.12.0" };
function computeHealthCheckHttp2HealthCheckToTerraform(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.computeHealthCheckHttp2HealthCheckToTerraform = computeHealthCheckHttp2HealthCheckToTerraform;
function computeHealthCheckHttp2HealthCheckToHclTerraform(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.computeHealthCheckHttp2HealthCheckToHclTerraform = computeHealthCheckHttp2HealthCheckToHclTerraform;
class ComputeHealthCheckHttp2HealthCheckOutputReference 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.ComputeHealthCheckHttp2HealthCheckOutputReference = ComputeHealthCheckHttp2HealthCheckOutputReference;
_b = JSII_RTTI_SYMBOL_1;
ComputeHealthCheckHttp2HealthCheckOutputReference[_b] = { fqn: "@cdktf/provider-google.computeHealthCheck.ComputeHealthCheckHttp2HealthCheckOutputReference", version: "14.12.0" };
function computeHealthCheckHttpHealthCheckToTerraform(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.computeHealthCheckHttpHealthCheckToTerraform = computeHealthCheckHttpHealthCheckToTerraform;
function computeHealthCheckHttpHealthCheckToHclTerraform(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.computeHealthCheckHttpHealthCheckToHclTerraform = computeHealthCheckHttpHealthCheckToHclTerraform;
class ComputeHealthCheckHttpHealthCheckOutputReference 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.ComputeHealthCheckHttpHealthCheckOutputReference = ComputeHealthCheckHttpHealthCheckOutputReference;
_c = JSII_RTTI_SYMBOL_1;
ComputeHealthCheckHttpHealthCheckOutputReference[_c] = { fqn: "@cdktf/provider-google.computeHealthCheck.ComputeHealthCheckHttpHealthCheckOutputReference", version: "14.12.0" };
function computeHealthCheckHttpsHealthCheckToTerraform(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.computeHealthCheckHttpsHealthCheckToTerraform = computeHealthCheckHttpsHealthCheckToTerraform;
function computeHealthCheckHttpsHealthCheckToHclTerraform(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.computeHealthCheckHttpsHealthCheckToHclTerraform = computeHealthCheckHttpsHealthCheckToHclTerraform;
class ComputeHealthCheckHttpsHealthCheckOutputReference 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.ComputeHealthCheckHttpsHealthCheckOutputReference = ComputeHealthCheckHttpsHealthCheckOutputReference;
_d = JSII_RTTI_SYMBOL_1;
ComputeHealthCheckHttpsHealthCheckOutputReference[_d] = { fqn: "@cdktf/provider-google.computeHealthCheck.ComputeHealthCheckHttpsHealthCheckOutputReference", version: "14.12.0" };
function computeHealthCheckLogConfigToTerraform(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.computeHealthCheckLogConfigToTerraform = computeHealthCheckLogConfigToTerraform;
function computeHealthCheckLogConfigToHclTerraform(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.computeHealthCheckLogConfigToHclTerraform = computeHealthCheckLogConfigToHclTerraform;
class ComputeHealthCheckLogConfigOutputReference 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.ComputeHealthCheckLogConfigOutputReference = ComputeHealthCheckLogConfigOutputReference;
_e = JSII_RTTI_SYMBOL_1;
ComputeHealthCheckLogConfigOutputReference[_e] = { fqn: "@cdktf/provider-google.computeHealthCheck.ComputeHealthCheckLogConfigOutputReference", version: "14.12.0" };
function computeHealthCheckSslHealthCheckToTerraform(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.computeHealthCheckSslHealthCheckToTerraform = computeHealthCheckSslHealthCheckToTerraform;
function computeHealthCheckSslHealthCheckToHclTerraform(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.computeHealthCheckSslHealthCheckToHclTerraform = computeHealthCheckSslHealthCheckToHclTerraform;
class ComputeHealthCheckSslHealthCheckOutputReference 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.ComputeHealthCheckSslHealthCheckOutputReference = ComputeHealthCheckSslHealthCheckOutputReference;
_f = JSII_RTTI_SYMBOL_1;
ComputeHealthCheckSslHealthCheckOutputReference[_f] = { fqn: "@cdktf/provider-google.computeHealthCheck.ComputeHealthCheckSslHealthCheckOutputReference", version: "14.12.0" };
function computeHealthCheckTcpHealthCheckToTerraform(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.computeHealthCheckTcpHealthCheckToTerraform = computeHealthCheckTcpHealthCheckToTerraform;
function computeHealthCheckTcpHealthCheckToHclTerraform(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.computeHealthCheckTcpHealthCheckToHclTerraform = computeHealthCheckTcpHealthCheckToHclTerraform;
class ComputeHealthCheckTcpHealthCheckOutputReference 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.ComputeHealthCheckTcpHealthCheckOutputReference = ComputeHealthCheckTcpHealthCheckOutputReference;
_g = JSII_RTTI_SYMBOL_1;
ComputeHealthCheckTcpHealthCheckOutputReference[_g] = { fqn: "@cdktf/provider-google.computeHealthCheck.ComputeHealthCheckTcpHealthCheckOutputReference", version: "14.12.0" };
function computeHealthCheckTimeoutsToTerraform(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.computeHealthCheckTimeoutsToTerraform = computeHealthCheckTimeoutsToTerraform;
function computeHealthCheckTimeoutsToHclTerraform(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-configur