@cdktf/provider-google
Version:
Prebuilt google Provider for Terraform CDK (cdktf)
1,101 lines • 233 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DnsManagedZone = exports.DnsManagedZoneTimeoutsOutputReference = exports.dnsManagedZoneTimeoutsToHclTerraform = exports.dnsManagedZoneTimeoutsToTerraform = exports.DnsManagedZonePrivateVisibilityConfigOutputReference = exports.dnsManagedZonePrivateVisibilityConfigToHclTerraform = exports.dnsManagedZonePrivateVisibilityConfigToTerraform = exports.DnsManagedZonePrivateVisibilityConfigNetworksList = exports.DnsManagedZonePrivateVisibilityConfigNetworksOutputReference = exports.dnsManagedZonePrivateVisibilityConfigNetworksToHclTerraform = exports.dnsManagedZonePrivateVisibilityConfigNetworksToTerraform = exports.DnsManagedZonePrivateVisibilityConfigGkeClustersList = exports.DnsManagedZonePrivateVisibilityConfigGkeClustersOutputReference = exports.dnsManagedZonePrivateVisibilityConfigGkeClustersToHclTerraform = exports.dnsManagedZonePrivateVisibilityConfigGkeClustersToTerraform = exports.DnsManagedZonePeeringConfigOutputReference = exports.dnsManagedZonePeeringConfigToHclTerraform = exports.dnsManagedZonePeeringConfigToTerraform = exports.DnsManagedZonePeeringConfigTargetNetworkOutputReference = exports.dnsManagedZonePeeringConfigTargetNetworkToHclTerraform = exports.dnsManagedZonePeeringConfigTargetNetworkToTerraform = exports.DnsManagedZoneForwardingConfigOutputReference = exports.dnsManagedZoneForwardingConfigToHclTerraform = exports.dnsManagedZoneForwardingConfigToTerraform = exports.DnsManagedZoneForwardingConfigTargetNameServersList = exports.DnsManagedZoneForwardingConfigTargetNameServersOutputReference = exports.dnsManagedZoneForwardingConfigTargetNameServersToHclTerraform = exports.dnsManagedZoneForwardingConfigTargetNameServersToTerraform = exports.DnsManagedZoneDnssecConfigOutputReference = exports.dnsManagedZoneDnssecConfigToHclTerraform = exports.dnsManagedZoneDnssecConfigToTerraform = exports.DnsManagedZoneDnssecConfigDefaultKeySpecsList = exports.DnsManagedZoneDnssecConfigDefaultKeySpecsOutputReference = exports.dnsManagedZoneDnssecConfigDefaultKeySpecsToHclTerraform = exports.dnsManagedZoneDnssecConfigDefaultKeySpecsToTerraform = exports.DnsManagedZoneCloudLoggingConfigOutputReference = exports.dnsManagedZoneCloudLoggingConfigToHclTerraform = exports.dnsManagedZoneCloudLoggingConfigToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function dnsManagedZoneCloudLoggingConfigToTerraform(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_logging: cdktf.booleanToTerraform(struct.enableLogging),
};
}
exports.dnsManagedZoneCloudLoggingConfigToTerraform = dnsManagedZoneCloudLoggingConfigToTerraform;
function dnsManagedZoneCloudLoggingConfigToHclTerraform(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_logging: {
value: cdktf.booleanToHclTerraform(struct.enableLogging),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.dnsManagedZoneCloudLoggingConfigToHclTerraform = dnsManagedZoneCloudLoggingConfigToHclTerraform;
class DnsManagedZoneCloudLoggingConfigOutputReference 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._enableLogging !== undefined) {
hasAnyValues = true;
internalValueResult.enableLogging = this._enableLogging;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._enableLogging = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._enableLogging = value.enableLogging;
}
}
get enableLogging() {
return this.getBooleanAttribute('enable_logging');
}
set enableLogging(value) {
this._enableLogging = value;
}
// Temporarily expose input value. Use with caution.
get enableLoggingInput() {
return this._enableLogging;
}
}
exports.DnsManagedZoneCloudLoggingConfigOutputReference = DnsManagedZoneCloudLoggingConfigOutputReference;
_a = JSII_RTTI_SYMBOL_1;
DnsManagedZoneCloudLoggingConfigOutputReference[_a] = { fqn: "@cdktf/provider-google.dnsManagedZone.DnsManagedZoneCloudLoggingConfigOutputReference", version: "14.12.0" };
function dnsManagedZoneDnssecConfigDefaultKeySpecsToTerraform(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 {
algorithm: cdktf.stringToTerraform(struct.algorithm),
key_length: cdktf.numberToTerraform(struct.keyLength),
key_type: cdktf.stringToTerraform(struct.keyType),
kind: cdktf.stringToTerraform(struct.kind),
};
}
exports.dnsManagedZoneDnssecConfigDefaultKeySpecsToTerraform = dnsManagedZoneDnssecConfigDefaultKeySpecsToTerraform;
function dnsManagedZoneDnssecConfigDefaultKeySpecsToHclTerraform(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 = {
algorithm: {
value: cdktf.stringToHclTerraform(struct.algorithm),
isBlock: false,
type: "simple",
storageClassType: "string",
},
key_length: {
value: cdktf.numberToHclTerraform(struct.keyLength),
isBlock: false,
type: "simple",
storageClassType: "number",
},
key_type: {
value: cdktf.stringToHclTerraform(struct.keyType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
kind: {
value: cdktf.stringToHclTerraform(struct.kind),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.dnsManagedZoneDnssecConfigDefaultKeySpecsToHclTerraform = dnsManagedZoneDnssecConfigDefaultKeySpecsToHclTerraform;
class DnsManagedZoneDnssecConfigDefaultKeySpecsOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._algorithm !== undefined) {
hasAnyValues = true;
internalValueResult.algorithm = this._algorithm;
}
if (this._keyLength !== undefined) {
hasAnyValues = true;
internalValueResult.keyLength = this._keyLength;
}
if (this._keyType !== undefined) {
hasAnyValues = true;
internalValueResult.keyType = this._keyType;
}
if (this._kind !== undefined) {
hasAnyValues = true;
internalValueResult.kind = this._kind;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._algorithm = undefined;
this._keyLength = undefined;
this._keyType = undefined;
this._kind = 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._algorithm = value.algorithm;
this._keyLength = value.keyLength;
this._keyType = value.keyType;
this._kind = value.kind;
}
}
get algorithm() {
return this.getStringAttribute('algorithm');
}
set algorithm(value) {
this._algorithm = value;
}
resetAlgorithm() {
this._algorithm = undefined;
}
// Temporarily expose input value. Use with caution.
get algorithmInput() {
return this._algorithm;
}
get keyLength() {
return this.getNumberAttribute('key_length');
}
set keyLength(value) {
this._keyLength = value;
}
resetKeyLength() {
this._keyLength = undefined;
}
// Temporarily expose input value. Use with caution.
get keyLengthInput() {
return this._keyLength;
}
get keyType() {
return this.getStringAttribute('key_type');
}
set keyType(value) {
this._keyType = value;
}
resetKeyType() {
this._keyType = undefined;
}
// Temporarily expose input value. Use with caution.
get keyTypeInput() {
return this._keyType;
}
get kind() {
return this.getStringAttribute('kind');
}
set kind(value) {
this._kind = value;
}
resetKind() {
this._kind = undefined;
}
// Temporarily expose input value. Use with caution.
get kindInput() {
return this._kind;
}
}
exports.DnsManagedZoneDnssecConfigDefaultKeySpecsOutputReference = DnsManagedZoneDnssecConfigDefaultKeySpecsOutputReference;
_b = JSII_RTTI_SYMBOL_1;
DnsManagedZoneDnssecConfigDefaultKeySpecsOutputReference[_b] = { fqn: "@cdktf/provider-google.dnsManagedZone.DnsManagedZoneDnssecConfigDefaultKeySpecsOutputReference", version: "14.12.0" };
class DnsManagedZoneDnssecConfigDefaultKeySpecsList 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 DnsManagedZoneDnssecConfigDefaultKeySpecsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DnsManagedZoneDnssecConfigDefaultKeySpecsList = DnsManagedZoneDnssecConfigDefaultKeySpecsList;
_c = JSII_RTTI_SYMBOL_1;
DnsManagedZoneDnssecConfigDefaultKeySpecsList[_c] = { fqn: "@cdktf/provider-google.dnsManagedZone.DnsManagedZoneDnssecConfigDefaultKeySpecsList", version: "14.12.0" };
function dnsManagedZoneDnssecConfigToTerraform(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 {
kind: cdktf.stringToTerraform(struct.kind),
non_existence: cdktf.stringToTerraform(struct.nonExistence),
state: cdktf.stringToTerraform(struct.state),
default_key_specs: cdktf.listMapper(dnsManagedZoneDnssecConfigDefaultKeySpecsToTerraform, true)(struct.defaultKeySpecs),
};
}
exports.dnsManagedZoneDnssecConfigToTerraform = dnsManagedZoneDnssecConfigToTerraform;
function dnsManagedZoneDnssecConfigToHclTerraform(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 = {
kind: {
value: cdktf.stringToHclTerraform(struct.kind),
isBlock: false,
type: "simple",
storageClassType: "string",
},
non_existence: {
value: cdktf.stringToHclTerraform(struct.nonExistence),
isBlock: false,
type: "simple",
storageClassType: "string",
},
state: {
value: cdktf.stringToHclTerraform(struct.state),
isBlock: false,
type: "simple",
storageClassType: "string",
},
default_key_specs: {
value: cdktf.listMapperHcl(dnsManagedZoneDnssecConfigDefaultKeySpecsToHclTerraform, true)(struct.defaultKeySpecs),
isBlock: true,
type: "list",
storageClassType: "DnsManagedZoneDnssecConfigDefaultKeySpecsList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.dnsManagedZoneDnssecConfigToHclTerraform = dnsManagedZoneDnssecConfigToHclTerraform;
class DnsManagedZoneDnssecConfigOutputReference 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;
// default_key_specs - computed: false, optional: true, required: false
this._defaultKeySpecs = new DnsManagedZoneDnssecConfigDefaultKeySpecsList(this, "default_key_specs", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._kind !== undefined) {
hasAnyValues = true;
internalValueResult.kind = this._kind;
}
if (this._nonExistence !== undefined) {
hasAnyValues = true;
internalValueResult.nonExistence = this._nonExistence;
}
if (this._state !== undefined) {
hasAnyValues = true;
internalValueResult.state = this._state;
}
if (this._defaultKeySpecs?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.defaultKeySpecs = this._defaultKeySpecs?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._kind = undefined;
this._nonExistence = undefined;
this._state = undefined;
this._defaultKeySpecs.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._kind = value.kind;
this._nonExistence = value.nonExistence;
this._state = value.state;
this._defaultKeySpecs.internalValue = value.defaultKeySpecs;
}
}
get kind() {
return this.getStringAttribute('kind');
}
set kind(value) {
this._kind = value;
}
resetKind() {
this._kind = undefined;
}
// Temporarily expose input value. Use with caution.
get kindInput() {
return this._kind;
}
get nonExistence() {
return this.getStringAttribute('non_existence');
}
set nonExistence(value) {
this._nonExistence = value;
}
resetNonExistence() {
this._nonExistence = undefined;
}
// Temporarily expose input value. Use with caution.
get nonExistenceInput() {
return this._nonExistence;
}
get state() {
return this.getStringAttribute('state');
}
set state(value) {
this._state = value;
}
resetState() {
this._state = undefined;
}
// Temporarily expose input value. Use with caution.
get stateInput() {
return this._state;
}
get defaultKeySpecs() {
return this._defaultKeySpecs;
}
putDefaultKeySpecs(value) {
this._defaultKeySpecs.internalValue = value;
}
resetDefaultKeySpecs() {
this._defaultKeySpecs.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get defaultKeySpecsInput() {
return this._defaultKeySpecs.internalValue;
}
}
exports.DnsManagedZoneDnssecConfigOutputReference = DnsManagedZoneDnssecConfigOutputReference;
_d = JSII_RTTI_SYMBOL_1;
DnsManagedZoneDnssecConfigOutputReference[_d] = { fqn: "@cdktf/provider-google.dnsManagedZone.DnsManagedZoneDnssecConfigOutputReference", version: "14.12.0" };
function dnsManagedZoneForwardingConfigTargetNameServersToTerraform(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 {
forwarding_path: cdktf.stringToTerraform(struct.forwardingPath),
ipv4_address: cdktf.stringToTerraform(struct.ipv4Address),
};
}
exports.dnsManagedZoneForwardingConfigTargetNameServersToTerraform = dnsManagedZoneForwardingConfigTargetNameServersToTerraform;
function dnsManagedZoneForwardingConfigTargetNameServersToHclTerraform(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 = {
forwarding_path: {
value: cdktf.stringToHclTerraform(struct.forwardingPath),
isBlock: false,
type: "simple",
storageClassType: "string",
},
ipv4_address: {
value: cdktf.stringToHclTerraform(struct.ipv4Address),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.dnsManagedZoneForwardingConfigTargetNameServersToHclTerraform = dnsManagedZoneForwardingConfigTargetNameServersToHclTerraform;
class DnsManagedZoneForwardingConfigTargetNameServersOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._forwardingPath !== undefined) {
hasAnyValues = true;
internalValueResult.forwardingPath = this._forwardingPath;
}
if (this._ipv4Address !== undefined) {
hasAnyValues = true;
internalValueResult.ipv4Address = this._ipv4Address;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._forwardingPath = undefined;
this._ipv4Address = 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._forwardingPath = value.forwardingPath;
this._ipv4Address = value.ipv4Address;
}
}
get forwardingPath() {
return this.getStringAttribute('forwarding_path');
}
set forwardingPath(value) {
this._forwardingPath = value;
}
resetForwardingPath() {
this._forwardingPath = undefined;
}
// Temporarily expose input value. Use with caution.
get forwardingPathInput() {
return this._forwardingPath;
}
get ipv4Address() {
return this.getStringAttribute('ipv4_address');
}
set ipv4Address(value) {
this._ipv4Address = value;
}
// Temporarily expose input value. Use with caution.
get ipv4AddressInput() {
return this._ipv4Address;
}
}
exports.DnsManagedZoneForwardingConfigTargetNameServersOutputReference = DnsManagedZoneForwardingConfigTargetNameServersOutputReference;
_e = JSII_RTTI_SYMBOL_1;
DnsManagedZoneForwardingConfigTargetNameServersOutputReference[_e] = { fqn: "@cdktf/provider-google.dnsManagedZone.DnsManagedZoneForwardingConfigTargetNameServersOutputReference", version: "14.12.0" };
class DnsManagedZoneForwardingConfigTargetNameServersList 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 DnsManagedZoneForwardingConfigTargetNameServersOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DnsManagedZoneForwardingConfigTargetNameServersList = DnsManagedZoneForwardingConfigTargetNameServersList;
_f = JSII_RTTI_SYMBOL_1;
DnsManagedZoneForwardingConfigTargetNameServersList[_f] = { fqn: "@cdktf/provider-google.dnsManagedZone.DnsManagedZoneForwardingConfigTargetNameServersList", version: "14.12.0" };
function dnsManagedZoneForwardingConfigToTerraform(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 {
target_name_servers: cdktf.listMapper(dnsManagedZoneForwardingConfigTargetNameServersToTerraform, true)(struct.targetNameServers),
};
}
exports.dnsManagedZoneForwardingConfigToTerraform = dnsManagedZoneForwardingConfigToTerraform;
function dnsManagedZoneForwardingConfigToHclTerraform(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 = {
target_name_servers: {
value: cdktf.listMapperHcl(dnsManagedZoneForwardingConfigTargetNameServersToHclTerraform, true)(struct.targetNameServers),
isBlock: true,
type: "set",
storageClassType: "DnsManagedZoneForwardingConfigTargetNameServersList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.dnsManagedZoneForwardingConfigToHclTerraform = dnsManagedZoneForwardingConfigToHclTerraform;
class DnsManagedZoneForwardingConfigOutputReference 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;
// target_name_servers - computed: false, optional: false, required: true
this._targetNameServers = new DnsManagedZoneForwardingConfigTargetNameServersList(this, "target_name_servers", true);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._targetNameServers?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.targetNameServers = this._targetNameServers?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._targetNameServers.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._targetNameServers.internalValue = value.targetNameServers;
}
}
get targetNameServers() {
return this._targetNameServers;
}
putTargetNameServers(value) {
this._targetNameServers.internalValue = value;
}
// Temporarily expose input value. Use with caution.
get targetNameServersInput() {
return this._targetNameServers.internalValue;
}
}
exports.DnsManagedZoneForwardingConfigOutputReference = DnsManagedZoneForwardingConfigOutputReference;
_g = JSII_RTTI_SYMBOL_1;
DnsManagedZoneForwardingConfigOutputReference[_g] = { fqn: "@cdktf/provider-google.dnsManagedZone.DnsManagedZoneForwardingConfigOutputReference", version: "14.12.0" };
function dnsManagedZonePeeringConfigTargetNetworkToTerraform(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 {
network_url: cdktf.stringToTerraform(struct.networkUrl),
};
}
exports.dnsManagedZonePeeringConfigTargetNetworkToTerraform = dnsManagedZonePeeringConfigTargetNetworkToTerraform;
function dnsManagedZonePeeringConfigTargetNetworkToHclTerraform(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 = {
network_url: {
value: cdktf.stringToHclTerraform(struct.networkUrl),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.dnsManagedZonePeeringConfigTargetNetworkToHclTerraform = dnsManagedZonePeeringConfigTargetNetworkToHclTerraform;
class DnsManagedZonePeeringConfigTargetNetworkOutputReference 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._networkUrl !== undefined) {
hasAnyValues = true;
internalValueResult.networkUrl = this._networkUrl;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._networkUrl = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._networkUrl = value.networkUrl;
}
}
get networkUrl() {
return this.getStringAttribute('network_url');
}
set networkUrl(value) {
this._networkUrl = value;
}
// Temporarily expose input value. Use with caution.
get networkUrlInput() {
return this._networkUrl;
}
}
exports.DnsManagedZonePeeringConfigTargetNetworkOutputReference = DnsManagedZonePeeringConfigTargetNetworkOutputReference;
_h = JSII_RTTI_SYMBOL_1;
DnsManagedZonePeeringConfigTargetNetworkOutputReference[_h] = { fqn: "@cdktf/provider-google.dnsManagedZone.DnsManagedZonePeeringConfigTargetNetworkOutputReference", version: "14.12.0" };
function dnsManagedZonePeeringConfigToTerraform(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 {
target_network: dnsManagedZonePeeringConfigTargetNetworkToTerraform(struct.targetNetwork),
};
}
exports.dnsManagedZonePeeringConfigToTerraform = dnsManagedZonePeeringConfigToTerraform;
function dnsManagedZonePeeringConfigToHclTerraform(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 = {
target_network: {
value: dnsManagedZonePeeringConfigTargetNetworkToHclTerraform(struct.targetNetwork),
isBlock: true,
type: "list",
storageClassType: "DnsManagedZonePeeringConfigTargetNetworkList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.dnsManagedZonePeeringConfigToHclTerraform = dnsManagedZonePeeringConfigToHclTerraform;
class DnsManagedZonePeeringConfigOutputReference 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;
// target_network - computed: false, optional: false, required: true
this._targetNetwork = new DnsManagedZonePeeringConfigTargetNetworkOutputReference(this, "target_network");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._targetNetwork?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.targetNetwork = this._targetNetwork?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._targetNetwork.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._targetNetwork.internalValue = value.targetNetwork;
}
}
get targetNetwork() {
return this._targetNetwork;
}
putTargetNetwork(value) {
this._targetNetwork.internalValue = value;
}
// Temporarily expose input value. Use with caution.
get targetNetworkInput() {
return this._targetNetwork.internalValue;
}
}
exports.DnsManagedZonePeeringConfigOutputReference = DnsManagedZonePeeringConfigOutputReference;
_j = JSII_RTTI_SYMBOL_1;
DnsManagedZonePeeringConfigOutputReference[_j] = { fqn: "@cdktf/provider-google.dnsManagedZone.DnsManagedZonePeeringConfigOutputReference", version: "14.12.0" };
function dnsManagedZonePrivateVisibilityConfigGkeClustersToTerraform(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 {
gke_cluster_name: cdktf.stringToTerraform(struct.gkeClusterName),
};
}
exports.dnsManagedZonePrivateVisibilityConfigGkeClustersToTerraform = dnsManagedZonePrivateVisibilityConfigGkeClustersToTerraform;
function dnsManagedZonePrivateVisibilityConfigGkeClustersToHclTerraform(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 = {
gke_cluster_name: {
value: cdktf.stringToHclTerraform(struct.gkeClusterName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.dnsManagedZonePrivateVisibilityConfigGkeClustersToHclTerraform = dnsManagedZonePrivateVisibilityConfigGkeClustersToHclTerraform;
class DnsManagedZonePrivateVisibilityConfigGkeClustersOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._gkeClusterName !== undefined) {
hasAnyValues = true;
internalValueResult.gkeClusterName = this._gkeClusterName;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._gkeClusterName = 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._gkeClusterName = value.gkeClusterName;
}
}
get gkeClusterName() {
return this.getStringAttribute('gke_cluster_name');
}
set gkeClusterName(value) {
this._gkeClusterName = value;
}
// Temporarily expose input value. Use with caution.
get gkeClusterNameInput() {
return this._gkeClusterName;
}
}
exports.DnsManagedZonePrivateVisibilityConfigGkeClustersOutputReference = DnsManagedZonePrivateVisibilityConfigGkeClustersOutputReference;
_k = JSII_RTTI_SYMBOL_1;
DnsManagedZonePrivateVisibilityConfigGkeClustersOutputReference[_k] = { fqn: "@cdktf/provider-google.dnsManagedZone.DnsManagedZonePrivateVisibilityConfigGkeClustersOutputReference", version: "14.12.0" };
class DnsManagedZonePrivateVisibilityConfigGkeClustersList 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 DnsManagedZonePrivateVisibilityConfigGkeClustersOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DnsManagedZonePrivateVisibilityConfigGkeClustersList = DnsManagedZonePrivateVisibilityConfigGkeClustersList;
_l = JSII_RTTI_SYMBOL_1;
DnsManagedZonePrivateVisibilityConfigGkeClustersList[_l] = { fqn: "@cdktf/provider-google.dnsManagedZone.DnsManagedZonePrivateVisibilityConfigGkeClustersList", version: "14.12.0" };
function dnsManagedZonePrivateVisibilityConfigNetworksToTerraform(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 {
network_url: cdktf.stringToTerraform(struct.networkUrl),
};
}
exports.dnsManagedZonePrivateVisibilityConfigNetworksToTerraform = dnsManagedZonePrivateVisibilityConfigNetworksToTerraform;
function dnsManagedZonePrivateVisibilityConfigNetworksToHclTerraform(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 = {
network_url: {
value: cdktf.stringToHclTerraform(struct.networkUrl),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.dnsManagedZonePrivateVisibilityConfigNetworksToHclTerraform = dnsManagedZonePrivateVisibilityConfigNetworksToHclTerraform;
class DnsManagedZonePrivateVisibilityConfigNetworksOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._networkUrl !== undefined) {
hasAnyValues = true;
internalValueResult.networkUrl = this._networkUrl;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._networkUrl = 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._networkUrl = value.networkUrl;
}
}
get networkUrl() {
return this.getStringAttribute('network_url');
}
set networkUrl(value) {
this._networkUrl = value;
}
// Temporarily expose input value. Use with caution.
get networkUrlInput() {
return this._networkUrl;
}
}
exports.DnsManagedZonePrivateVisibilityConfigNetworksOutputReference = DnsManagedZonePrivateVisibilityConfigNetworksOutputReference;
_m = JSII_RTTI_SYMBOL_1;
DnsManagedZonePrivateVisibilityConfigNetworksOutputReference[_m] = { fqn: "@cdktf/provider-google.dnsManagedZone.DnsManagedZonePrivateVisibilityConfigNetworksOutputReference", version: "14.12.0" };
class DnsManagedZonePrivateVisibilityConfigNetworksList 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 DnsManagedZonePrivateVisibilityConfigNetworksOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DnsManagedZonePrivateVisibilityConfigNetworksList = DnsManagedZonePrivateVisibilityConfigNetworksList;
_o = JSII_RTTI_SYMBOL_1;
DnsManagedZonePrivateVisibilityConfigNetworksList[_o] = { fqn: "@cdktf/provider-google.dnsManagedZone.DnsManagedZonePrivateVisibilityConfigNetworksList", version: "14.12.0" };
function dnsManagedZonePrivateVisibilityConfigToTerraform(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 {
gke_clusters: cdktf.listMapper(dnsManagedZonePrivateVisibilityConfigGkeClustersToTerraform, true)(struct.gkeClusters),
networks: cdktf.listMapper(dnsManagedZonePrivateVisibilityConfigNetworksToTerraform, true)(struct.networks),
};
}
exports.dnsManagedZonePrivateVisibilityConfigToTerraform = dnsManagedZonePrivateVisibilityConfigToTerraform;
function dnsManagedZonePrivateVisibilityConfigToHclTerraform(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 = {
gke_clusters: {
value: cdktf.listMapperHcl(dnsManagedZonePrivateVisibilityConfigGkeClustersToHclTerraform, true)(struct.gkeClusters),
isBlock: true,
type: "list",
storageClassType: "DnsManagedZonePrivateVisibilityConfigGkeClustersList",
},
networks: {
value: cdktf.listMapperHcl(dnsManagedZonePrivateVisibilityConfigNetworksToHclTerraform, true)(struct.networks),
isBlock: true,
type: "set",
storageClassType: "DnsManagedZonePrivateVisibilityConfigNetworksList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.dnsManagedZonePrivateVisibilityConfigToHclTerraform = dnsManagedZonePrivateVisibilityConfigToHclTerraform;
class DnsManagedZonePrivateVisibilityConfigOutputReference 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;
// gke_clusters - computed: false, optional: true, required: false
this._gkeClusters = new DnsManagedZonePrivateVisibilityConfigGkeClustersList(this, "gke_clusters", false);
// networks - computed: false, optional: true, required: false
this._networks = new DnsManagedZonePrivateVisibilityConfigNetworksList(this, "networks", true);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._gkeClusters?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.gkeClusters = this._gkeClusters?.internalValue;
}
if (this._networks?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.networks = this._networks?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._gkeClusters.internalValue = undefined;
this._networks.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._gkeClusters.internalValue = value.gkeClusters;
this._networks.internalValue = value.networks;
}
}
get gkeClusters() {
return this._gkeClusters;
}
putGkeClusters(value) {
this._gkeClusters.internalValue = value;
}
resetGkeClusters() {
this._gkeClusters.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get gkeClustersInput() {
return this._gkeClusters.internalValue;
}
get networks() {
return this._networks;
}
putNetworks(value) {
this._networks.internalValue = value;
}
resetNetworks() {
this._networks.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get networksInput() {
return this._networks.internalValue;
}
}
exports.DnsManagedZonePrivateVisibilityConfigOutputReference = DnsManagedZonePrivateVisibilityConfigOutputReference;
_p = JSII_RTTI_SYMBOL_1;
DnsManagedZonePrivateVisibilityConfigOutputReference[_p] = { fqn: "@cdktf/provider-google.dnsManagedZone.DnsManagedZonePrivateVisibilityConfigOutputReference", version: "14.12.0" };
function dnsManagedZoneTimeoutsToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as