UNPKG

@cdktf/provider-azurerm

Version:

Prebuilt azurerm Provider for Terraform CDK (cdktf)

1,133 lines 408 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x; Object.defineProperty(exports, "__esModule", { value: true }); exports.VirtualNetworkGateway = exports.VirtualNetworkGatewayVpnClientConfigurationOutputReference = exports.virtualNetworkGatewayVpnClientConfigurationToHclTerraform = exports.virtualNetworkGatewayVpnClientConfigurationToTerraform = exports.VirtualNetworkGatewayVpnClientConfigurationVirtualNetworkGatewayClientConnectionList = exports.VirtualNetworkGatewayVpnClientConfigurationVirtualNetworkGatewayClientConnectionOutputReference = exports.virtualNetworkGatewayVpnClientConfigurationVirtualNetworkGatewayClientConnectionToHclTerraform = exports.virtualNetworkGatewayVpnClientConfigurationVirtualNetworkGatewayClientConnectionToTerraform = exports.VirtualNetworkGatewayVpnClientConfigurationRootCertificateList = exports.VirtualNetworkGatewayVpnClientConfigurationRootCertificateOutputReference = exports.virtualNetworkGatewayVpnClientConfigurationRootCertificateToHclTerraform = exports.virtualNetworkGatewayVpnClientConfigurationRootCertificateToTerraform = exports.VirtualNetworkGatewayVpnClientConfigurationRevokedCertificateList = exports.VirtualNetworkGatewayVpnClientConfigurationRevokedCertificateOutputReference = exports.virtualNetworkGatewayVpnClientConfigurationRevokedCertificateToHclTerraform = exports.virtualNetworkGatewayVpnClientConfigurationRevokedCertificateToTerraform = exports.VirtualNetworkGatewayVpnClientConfigurationRadiusServerList = exports.VirtualNetworkGatewayVpnClientConfigurationRadiusServerOutputReference = exports.virtualNetworkGatewayVpnClientConfigurationRadiusServerToHclTerraform = exports.virtualNetworkGatewayVpnClientConfigurationRadiusServerToTerraform = exports.VirtualNetworkGatewayVpnClientConfigurationIpsecPolicyOutputReference = exports.virtualNetworkGatewayVpnClientConfigurationIpsecPolicyToHclTerraform = exports.virtualNetworkGatewayVpnClientConfigurationIpsecPolicyToTerraform = exports.VirtualNetworkGatewayTimeoutsOutputReference = exports.virtualNetworkGatewayTimeoutsToHclTerraform = exports.virtualNetworkGatewayTimeoutsToTerraform = exports.VirtualNetworkGatewayPolicyGroupList = exports.VirtualNetworkGatewayPolicyGroupOutputReference = exports.virtualNetworkGatewayPolicyGroupToHclTerraform = exports.virtualNetworkGatewayPolicyGroupToTerraform = exports.VirtualNetworkGatewayPolicyGroupPolicyMemberList = exports.VirtualNetworkGatewayPolicyGroupPolicyMemberOutputReference = exports.virtualNetworkGatewayPolicyGroupPolicyMemberToHclTerraform = exports.virtualNetworkGatewayPolicyGroupPolicyMemberToTerraform = exports.VirtualNetworkGatewayIpConfigurationList = exports.VirtualNetworkGatewayIpConfigurationOutputReference = exports.virtualNetworkGatewayIpConfigurationToHclTerraform = exports.virtualNetworkGatewayIpConfigurationToTerraform = exports.VirtualNetworkGatewayCustomRouteOutputReference = exports.virtualNetworkGatewayCustomRouteToHclTerraform = exports.virtualNetworkGatewayCustomRouteToTerraform = exports.VirtualNetworkGatewayBgpSettingsOutputReference = exports.virtualNetworkGatewayBgpSettingsToHclTerraform = exports.virtualNetworkGatewayBgpSettingsToTerraform = exports.VirtualNetworkGatewayBgpSettingsPeeringAddressesList = exports.VirtualNetworkGatewayBgpSettingsPeeringAddressesOutputReference = exports.virtualNetworkGatewayBgpSettingsPeeringAddressesToHclTerraform = exports.virtualNetworkGatewayBgpSettingsPeeringAddressesToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function virtualNetworkGatewayBgpSettingsPeeringAddressesToTerraform(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 { apipa_addresses: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.apipaAddresses), ip_configuration_name: cdktf.stringToTerraform(struct.ipConfigurationName), }; } exports.virtualNetworkGatewayBgpSettingsPeeringAddressesToTerraform = virtualNetworkGatewayBgpSettingsPeeringAddressesToTerraform; function virtualNetworkGatewayBgpSettingsPeeringAddressesToHclTerraform(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 = { apipa_addresses: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.apipaAddresses), isBlock: false, type: "list", storageClassType: "stringList", }, ip_configuration_name: { value: cdktf.stringToHclTerraform(struct.ipConfigurationName), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.virtualNetworkGatewayBgpSettingsPeeringAddressesToHclTerraform = virtualNetworkGatewayBgpSettingsPeeringAddressesToHclTerraform; class VirtualNetworkGatewayBgpSettingsPeeringAddressesOutputReference 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._apipaAddresses !== undefined) { hasAnyValues = true; internalValueResult.apipaAddresses = this._apipaAddresses; } if (this._ipConfigurationName !== undefined) { hasAnyValues = true; internalValueResult.ipConfigurationName = this._ipConfigurationName; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._apipaAddresses = undefined; this._ipConfigurationName = 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._apipaAddresses = value.apipaAddresses; this._ipConfigurationName = value.ipConfigurationName; } } get apipaAddresses() { return this.getListAttribute('apipa_addresses'); } set apipaAddresses(value) { this._apipaAddresses = value; } resetApipaAddresses() { this._apipaAddresses = undefined; } // Temporarily expose input value. Use with caution. get apipaAddressesInput() { return this._apipaAddresses; } // default_addresses - computed: true, optional: false, required: false get defaultAddresses() { return this.getListAttribute('default_addresses'); } get ipConfigurationName() { return this.getStringAttribute('ip_configuration_name'); } set ipConfigurationName(value) { this._ipConfigurationName = value; } resetIpConfigurationName() { this._ipConfigurationName = undefined; } // Temporarily expose input value. Use with caution. get ipConfigurationNameInput() { return this._ipConfigurationName; } // tunnel_ip_addresses - computed: true, optional: false, required: false get tunnelIpAddresses() { return this.getListAttribute('tunnel_ip_addresses'); } } exports.VirtualNetworkGatewayBgpSettingsPeeringAddressesOutputReference = VirtualNetworkGatewayBgpSettingsPeeringAddressesOutputReference; _a = JSII_RTTI_SYMBOL_1; VirtualNetworkGatewayBgpSettingsPeeringAddressesOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.virtualNetworkGateway.VirtualNetworkGatewayBgpSettingsPeeringAddressesOutputReference", version: "12.27.0" }; class VirtualNetworkGatewayBgpSettingsPeeringAddressesList 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 VirtualNetworkGatewayBgpSettingsPeeringAddressesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.VirtualNetworkGatewayBgpSettingsPeeringAddressesList = VirtualNetworkGatewayBgpSettingsPeeringAddressesList; _b = JSII_RTTI_SYMBOL_1; VirtualNetworkGatewayBgpSettingsPeeringAddressesList[_b] = { fqn: "@cdktf/provider-azurerm.virtualNetworkGateway.VirtualNetworkGatewayBgpSettingsPeeringAddressesList", version: "12.27.0" }; function virtualNetworkGatewayBgpSettingsToTerraform(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 { asn: cdktf.numberToTerraform(struct.asn), peer_weight: cdktf.numberToTerraform(struct.peerWeight), peering_addresses: cdktf.listMapper(virtualNetworkGatewayBgpSettingsPeeringAddressesToTerraform, true)(struct.peeringAddresses), }; } exports.virtualNetworkGatewayBgpSettingsToTerraform = virtualNetworkGatewayBgpSettingsToTerraform; function virtualNetworkGatewayBgpSettingsToHclTerraform(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 = { asn: { value: cdktf.numberToHclTerraform(struct.asn), isBlock: false, type: "simple", storageClassType: "number", }, peer_weight: { value: cdktf.numberToHclTerraform(struct.peerWeight), isBlock: false, type: "simple", storageClassType: "number", }, peering_addresses: { value: cdktf.listMapperHcl(virtualNetworkGatewayBgpSettingsPeeringAddressesToHclTerraform, true)(struct.peeringAddresses), isBlock: true, type: "list", storageClassType: "VirtualNetworkGatewayBgpSettingsPeeringAddressesList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.virtualNetworkGatewayBgpSettingsToHclTerraform = virtualNetworkGatewayBgpSettingsToHclTerraform; class VirtualNetworkGatewayBgpSettingsOutputReference 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; // peering_addresses - computed: false, optional: true, required: false this._peeringAddresses = new VirtualNetworkGatewayBgpSettingsPeeringAddressesList(this, "peering_addresses", false); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._asn !== undefined) { hasAnyValues = true; internalValueResult.asn = this._asn; } if (this._peerWeight !== undefined) { hasAnyValues = true; internalValueResult.peerWeight = this._peerWeight; } if (this._peeringAddresses?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.peeringAddresses = this._peeringAddresses?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._asn = undefined; this._peerWeight = undefined; this._peeringAddresses.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._asn = value.asn; this._peerWeight = value.peerWeight; this._peeringAddresses.internalValue = value.peeringAddresses; } } get asn() { return this.getNumberAttribute('asn'); } set asn(value) { this._asn = value; } resetAsn() { this._asn = undefined; } // Temporarily expose input value. Use with caution. get asnInput() { return this._asn; } get peerWeight() { return this.getNumberAttribute('peer_weight'); } set peerWeight(value) { this._peerWeight = value; } resetPeerWeight() { this._peerWeight = undefined; } // Temporarily expose input value. Use with caution. get peerWeightInput() { return this._peerWeight; } get peeringAddresses() { return this._peeringAddresses; } putPeeringAddresses(value) { this._peeringAddresses.internalValue = value; } resetPeeringAddresses() { this._peeringAddresses.internalValue = undefined; } // Temporarily expose input value. Use with caution. get peeringAddressesInput() { return this._peeringAddresses.internalValue; } } exports.VirtualNetworkGatewayBgpSettingsOutputReference = VirtualNetworkGatewayBgpSettingsOutputReference; _c = JSII_RTTI_SYMBOL_1; VirtualNetworkGatewayBgpSettingsOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.virtualNetworkGateway.VirtualNetworkGatewayBgpSettingsOutputReference", version: "12.27.0" }; function virtualNetworkGatewayCustomRouteToTerraform(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 { address_prefixes: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.addressPrefixes), }; } exports.virtualNetworkGatewayCustomRouteToTerraform = virtualNetworkGatewayCustomRouteToTerraform; function virtualNetworkGatewayCustomRouteToHclTerraform(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 = { address_prefixes: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.addressPrefixes), isBlock: false, type: "set", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.virtualNetworkGatewayCustomRouteToHclTerraform = virtualNetworkGatewayCustomRouteToHclTerraform; class VirtualNetworkGatewayCustomRouteOutputReference 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._addressPrefixes !== undefined) { hasAnyValues = true; internalValueResult.addressPrefixes = this._addressPrefixes; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._addressPrefixes = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._addressPrefixes = value.addressPrefixes; } } get addressPrefixes() { return cdktf.Fn.tolist(this.getListAttribute('address_prefixes')); } set addressPrefixes(value) { this._addressPrefixes = value; } resetAddressPrefixes() { this._addressPrefixes = undefined; } // Temporarily expose input value. Use with caution. get addressPrefixesInput() { return this._addressPrefixes; } } exports.VirtualNetworkGatewayCustomRouteOutputReference = VirtualNetworkGatewayCustomRouteOutputReference; _d = JSII_RTTI_SYMBOL_1; VirtualNetworkGatewayCustomRouteOutputReference[_d] = { fqn: "@cdktf/provider-azurerm.virtualNetworkGateway.VirtualNetworkGatewayCustomRouteOutputReference", version: "12.27.0" }; function virtualNetworkGatewayIpConfigurationToTerraform(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 { name: cdktf.stringToTerraform(struct.name), private_ip_address_allocation: cdktf.stringToTerraform(struct.privateIpAddressAllocation), public_ip_address_id: cdktf.stringToTerraform(struct.publicIpAddressId), subnet_id: cdktf.stringToTerraform(struct.subnetId), }; } exports.virtualNetworkGatewayIpConfigurationToTerraform = virtualNetworkGatewayIpConfigurationToTerraform; function virtualNetworkGatewayIpConfigurationToHclTerraform(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 = { name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, private_ip_address_allocation: { value: cdktf.stringToHclTerraform(struct.privateIpAddressAllocation), isBlock: false, type: "simple", storageClassType: "string", }, public_ip_address_id: { value: cdktf.stringToHclTerraform(struct.publicIpAddressId), isBlock: false, type: "simple", storageClassType: "string", }, subnet_id: { value: cdktf.stringToHclTerraform(struct.subnetId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.virtualNetworkGatewayIpConfigurationToHclTerraform = virtualNetworkGatewayIpConfigurationToHclTerraform; class VirtualNetworkGatewayIpConfigurationOutputReference 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._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._privateIpAddressAllocation !== undefined) { hasAnyValues = true; internalValueResult.privateIpAddressAllocation = this._privateIpAddressAllocation; } if (this._publicIpAddressId !== undefined) { hasAnyValues = true; internalValueResult.publicIpAddressId = this._publicIpAddressId; } if (this._subnetId !== undefined) { hasAnyValues = true; internalValueResult.subnetId = this._subnetId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._name = undefined; this._privateIpAddressAllocation = undefined; this._publicIpAddressId = undefined; this._subnetId = 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._name = value.name; this._privateIpAddressAllocation = value.privateIpAddressAllocation; this._publicIpAddressId = value.publicIpAddressId; this._subnetId = value.subnetId; } } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } resetName() { this._name = undefined; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } get privateIpAddressAllocation() { return this.getStringAttribute('private_ip_address_allocation'); } set privateIpAddressAllocation(value) { this._privateIpAddressAllocation = value; } resetPrivateIpAddressAllocation() { this._privateIpAddressAllocation = undefined; } // Temporarily expose input value. Use with caution. get privateIpAddressAllocationInput() { return this._privateIpAddressAllocation; } get publicIpAddressId() { return this.getStringAttribute('public_ip_address_id'); } set publicIpAddressId(value) { this._publicIpAddressId = value; } // Temporarily expose input value. Use with caution. get publicIpAddressIdInput() { return this._publicIpAddressId; } get subnetId() { return this.getStringAttribute('subnet_id'); } set subnetId(value) { this._subnetId = value; } // Temporarily expose input value. Use with caution. get subnetIdInput() { return this._subnetId; } } exports.VirtualNetworkGatewayIpConfigurationOutputReference = VirtualNetworkGatewayIpConfigurationOutputReference; _e = JSII_RTTI_SYMBOL_1; VirtualNetworkGatewayIpConfigurationOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.virtualNetworkGateway.VirtualNetworkGatewayIpConfigurationOutputReference", version: "12.27.0" }; class VirtualNetworkGatewayIpConfigurationList 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 VirtualNetworkGatewayIpConfigurationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.VirtualNetworkGatewayIpConfigurationList = VirtualNetworkGatewayIpConfigurationList; _f = JSII_RTTI_SYMBOL_1; VirtualNetworkGatewayIpConfigurationList[_f] = { fqn: "@cdktf/provider-azurerm.virtualNetworkGateway.VirtualNetworkGatewayIpConfigurationList", version: "12.27.0" }; function virtualNetworkGatewayPolicyGroupPolicyMemberToTerraform(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 { name: cdktf.stringToTerraform(struct.name), type: cdktf.stringToTerraform(struct.type), value: cdktf.stringToTerraform(struct.value), }; } exports.virtualNetworkGatewayPolicyGroupPolicyMemberToTerraform = virtualNetworkGatewayPolicyGroupPolicyMemberToTerraform; function virtualNetworkGatewayPolicyGroupPolicyMemberToHclTerraform(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 = { name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, type: { value: cdktf.stringToHclTerraform(struct.type), isBlock: false, type: "simple", storageClassType: "string", }, value: { value: cdktf.stringToHclTerraform(struct.value), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.virtualNetworkGatewayPolicyGroupPolicyMemberToHclTerraform = virtualNetworkGatewayPolicyGroupPolicyMemberToHclTerraform; class VirtualNetworkGatewayPolicyGroupPolicyMemberOutputReference 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._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } if (this._value !== undefined) { hasAnyValues = true; internalValueResult.value = this._value; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._name = undefined; this._type = undefined; this._value = 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._name = value.name; this._type = value.type; this._value = value.value; } } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } get type() { return this.getStringAttribute('type'); } set type(value) { this._type = value; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } get value() { return this.getStringAttribute('value'); } set value(value) { this._value = value; } // Temporarily expose input value. Use with caution. get valueInput() { return this._value; } } exports.VirtualNetworkGatewayPolicyGroupPolicyMemberOutputReference = VirtualNetworkGatewayPolicyGroupPolicyMemberOutputReference; _g = JSII_RTTI_SYMBOL_1; VirtualNetworkGatewayPolicyGroupPolicyMemberOutputReference[_g] = { fqn: "@cdktf/provider-azurerm.virtualNetworkGateway.VirtualNetworkGatewayPolicyGroupPolicyMemberOutputReference", version: "12.27.0" }; class VirtualNetworkGatewayPolicyGroupPolicyMemberList 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 VirtualNetworkGatewayPolicyGroupPolicyMemberOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.VirtualNetworkGatewayPolicyGroupPolicyMemberList = VirtualNetworkGatewayPolicyGroupPolicyMemberList; _h = JSII_RTTI_SYMBOL_1; VirtualNetworkGatewayPolicyGroupPolicyMemberList[_h] = { fqn: "@cdktf/provider-azurerm.virtualNetworkGateway.VirtualNetworkGatewayPolicyGroupPolicyMemberList", version: "12.27.0" }; function virtualNetworkGatewayPolicyGroupToTerraform(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 { is_default: cdktf.booleanToTerraform(struct.isDefault), name: cdktf.stringToTerraform(struct.name), priority: cdktf.numberToTerraform(struct.priority), policy_member: cdktf.listMapper(virtualNetworkGatewayPolicyGroupPolicyMemberToTerraform, true)(struct.policyMember), }; } exports.virtualNetworkGatewayPolicyGroupToTerraform = virtualNetworkGatewayPolicyGroupToTerraform; function virtualNetworkGatewayPolicyGroupToHclTerraform(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 = { is_default: { value: cdktf.booleanToHclTerraform(struct.isDefault), isBlock: false, type: "simple", storageClassType: "boolean", }, name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, priority: { value: cdktf.numberToHclTerraform(struct.priority), isBlock: false, type: "simple", storageClassType: "number", }, policy_member: { value: cdktf.listMapperHcl(virtualNetworkGatewayPolicyGroupPolicyMemberToHclTerraform, true)(struct.policyMember), isBlock: true, type: "list", storageClassType: "VirtualNetworkGatewayPolicyGroupPolicyMemberList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.virtualNetworkGatewayPolicyGroupToHclTerraform = virtualNetworkGatewayPolicyGroupToHclTerraform; class VirtualNetworkGatewayPolicyGroupOutputReference 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; // policy_member - computed: false, optional: false, required: true this._policyMember = new VirtualNetworkGatewayPolicyGroupPolicyMemberList(this, "policy_member", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._isDefault !== undefined) { hasAnyValues = true; internalValueResult.isDefault = this._isDefault; } if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._priority !== undefined) { hasAnyValues = true; internalValueResult.priority = this._priority; } if (this._policyMember?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.policyMember = this._policyMember?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._isDefault = undefined; this._name = undefined; this._priority = undefined; this._policyMember.internalValue = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._isDefault = value.isDefault; this._name = value.name; this._priority = value.priority; this._policyMember.internalValue = value.policyMember; } } get isDefault() { return this.getBooleanAttribute('is_default'); } set isDefault(value) { this._isDefault = value; } resetIsDefault() { this._isDefault = undefined; } // Temporarily expose input value. Use with caution. get isDefaultInput() { return this._isDefault; } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } get priority() { return this.getNumberAttribute('priority'); } set priority(value) { this._priority = value; } resetPriority() { this._priority = undefined; } // Temporarily expose input value. Use with caution. get priorityInput() { return this._priority; } get policyMember() { return this._policyMember; } putPolicyMember(value) { this._policyMember.internalValue = value; } // Temporarily expose input value. Use with caution. get policyMemberInput() { return this._policyMember.internalValue; } } exports.VirtualNetworkGatewayPolicyGroupOutputReference = VirtualNetworkGatewayPolicyGroupOutputReference; _j = JSII_RTTI_SYMBOL_1; VirtualNetworkGatewayPolicyGroupOutputReference[_j] = { fqn: "@cdktf/provider-azurerm.virtualNetworkGateway.VirtualNetworkGatewayPolicyGroupOutputReference", version: "12.27.0" }; class VirtualNetworkGatewayPolicyGroupList 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 VirtualNetworkGatewayPolicyGroupOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.VirtualNetworkGatewayPolicyGroupList = VirtualNetworkGatewayPolicyGroupList; _k = JSII_RTTI_SYMBOL_1; VirtualNetworkGatewayPolicyGroupList[_k] = { fqn: "@cdktf/provider-azurerm.virtualNetworkGateway.VirtualNetworkGatewayPolicyGroupList", version: "12.27.0" }; function virtualNetworkGatewayTimeoutsToTerraform(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), read: cdktf.stringToTerraform(struct.read), update: cdktf.stringToTerraform(struct.update), }; } exports.virtualNetworkGatewayTimeoutsToTerraform = virtualNetworkGatewayTimeoutsToTerraform; function virtualNetworkGatewayTimeoutsToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { create: { value: cdktf.stringToHclTerraform(struct.create), isBlock: false, type: "simple", storageClassType: "string", }, delete: { value: cdktf.stringToHclTerraform(struct.delete), isBlock: false, type: "simple", storageClassType: "string", }, read: { value: cdktf.stringToHclTerraform(struct.read), isBlock: false, type: "simple", storageClassType: "string", }, update: { value: cdktf.stringToHclTerraform(struct.update), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.virtualNetworkGatewayTimeoutsToHclTerraform = virtualNetworkGatewayTimeoutsToHclTerraform; class VirtualNetworkGatewayTimeoutsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._create !== undefined) { hasAnyValues = true; internalValueResult.create = this._create; } if (this._delete !== undefined) { hasAnyValues = true; internalValueResult.delete = this._delete; } if (this._read !== undefined) { hasAnyValues = true; internalValueResult.read = this._read; } if (this._update !== undefined) { hasAnyValues = true; internalValueResult.update = this._update; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._create = undefined; this._delete = undefined; this._read = undefined; this._update = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._create = value.create; this._delete = value.delete; this._read = value.read; this._update = value.update; } } get create() { return this.getStringAttribute('create'); } set create(value) { this._create = value; } resetCreate() { this._create = undefined; } // Temporarily expose input value. Use with caution. get createInput() { return this._create; } get delete() { return this.getStringAttribute('delete'); } set delete(value) { this._delete = value; } resetDelete() { this._delete = undefined; } // Temporarily expose input value. Use with caution. get deleteInput() { return this._delete; } get read() { return this.getStringAttribute('read'); } set read(value) { this._read = value; } resetRead() { this._read = undefined; } // Temporarily expose input value. Use with caution. get readInput() { return this._read; } get update() { return this.getStringAttribute('update'); } set update(value) { this._update = value; } resetUpdate() { this._update = undefined; } // Temporarily expose input value. Use with caution. get updateInput() { return this._update; } } exports.VirtualNetworkGatewayTimeoutsOutputReference = VirtualNetworkGatewayTimeoutsOutputReference; _l = JSII_RTTI_SYMBOL_1; VirtualNetworkGatewayTimeoutsOutputReference[_l] = { fqn: "@cdktf/provider-azurerm.virtualNetworkGateway.VirtualNetworkGatewayTimeoutsOutputReference", version: "12.27.0" }; function virtualNetworkGatewayVpnClientConfigurationIpsecPolicyToTerraform(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 { dh_group: cdktf.stringToTerraform(struct.dhGroup), ike_encryption: cdktf.stringToTerraform(struct.ikeEncryption), ike_integrity: cdktf.stringToTerraform(struct.ikeIntegrity), ipsec_encryption: cdktf.stringToTerraform(struct.ipsecEncryption), ipsec_integrity: cdktf.stringToTerraform(struct.ipsecIntegrity), pfs_group: cdktf.stringToTerraform(struct.pfsGroup), sa_data_size_in_kilobytes: cdktf.numberToTerraform(struct.saDataSizeInKilobytes), sa_lifetime_in_seconds: cdktf.numberToTerraform(struct.saLifetimeInSeconds), }; } exports.virtualNetworkGatewayVpnClientConfigurationIpsecPolicyToTerraform = virtualNetworkGatewayVpnClientConfigurationIpsecPolicyToTerraform; function virtualNetworkGatewayVpnClientConfigurationIpsecPolicyToHclTerraform(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 = { dh_group: { value: cdktf.stringToHclTerraform(struct.dhGroup), isBlock: false, type: "simple", storageClassType: "string", }, ike_encryption: { value: cdktf.stringToHclTerraform(struct.ikeEncryption), isBlock: false, type: "simple", storageClassType: "string", }, ike_integrity: { value: cdktf.stringToHclTerraform(struct.ikeIntegrity), isBlock: false, type: "simple", storageClassType: "string", }, ipsec_encryption: { value: cdktf.stringToHclTerraform(struct.ipsecEncryption), isBlock: false, type: "simple", storageClassType: "string", }, ipsec_integrity: { value: cdktf.stringToHclTerraform(struct.ipsecIntegrity), isBlock: false, type: "simple", storageClassType: "string", }, pfs_group: { value: cdktf.stringToHclTerraform(struct.pfsGroup), isBlock: false, type: "simple", storageClassType: "string", }, sa_data_size_in_kilobytes: { value: cdktf.numberToHclTerraform(struct.saDataSizeInKilobytes), isBlock: false, type: "simple", storageClassType: "number", }, sa_lifetime_in_seconds: { value: cdktf.numberToHclTerraform(struct.saLifetimeInSeconds), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.virtualNetworkGatewayVpnClientConfigurationIpsecPolicyToHclTerraform = virtualNetworkGatewayVpnClientConfigurationIpsecPolicyToHclTerraform; class VirtualNetworkGatewayVpnClientConfigurationIpsecPolicyOutputReference 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._dhGroup !== undefined) { hasAnyValues = true; internalValueResult.dhGroup = this._dhGroup; } if (this._ikeEncryption !== undefined) { hasAnyValues = true; internalValueResult.ikeEncryption