UNPKG

@cdktf/provider-azurerm

Version:

Prebuilt azurerm Provider for Terraform CDK (cdktf)

1,115 lines 244 kB
"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.VpnServerConfiguration = exports.VpnServerConfigurationTimeoutsOutputReference = exports.vpnServerConfigurationTimeoutsToHclTerraform = exports.vpnServerConfigurationTimeoutsToTerraform = exports.VpnServerConfigurationRadiusOutputReference = exports.vpnServerConfigurationRadiusToHclTerraform = exports.vpnServerConfigurationRadiusToTerraform = exports.VpnServerConfigurationRadiusServerRootCertificateList = exports.VpnServerConfigurationRadiusServerRootCertificateOutputReference = exports.vpnServerConfigurationRadiusServerRootCertificateToHclTerraform = exports.vpnServerConfigurationRadiusServerRootCertificateToTerraform = exports.VpnServerConfigurationRadiusServerList = exports.VpnServerConfigurationRadiusServerOutputReference = exports.vpnServerConfigurationRadiusServerToHclTerraform = exports.vpnServerConfigurationRadiusServerToTerraform = exports.VpnServerConfigurationRadiusClientRootCertificateList = exports.VpnServerConfigurationRadiusClientRootCertificateOutputReference = exports.vpnServerConfigurationRadiusClientRootCertificateToHclTerraform = exports.vpnServerConfigurationRadiusClientRootCertificateToTerraform = exports.VpnServerConfigurationIpsecPolicyOutputReference = exports.vpnServerConfigurationIpsecPolicyToHclTerraform = exports.vpnServerConfigurationIpsecPolicyToTerraform = exports.VpnServerConfigurationClientRootCertificateList = exports.VpnServerConfigurationClientRootCertificateOutputReference = exports.vpnServerConfigurationClientRootCertificateToHclTerraform = exports.vpnServerConfigurationClientRootCertificateToTerraform = exports.VpnServerConfigurationClientRevokedCertificateList = exports.VpnServerConfigurationClientRevokedCertificateOutputReference = exports.vpnServerConfigurationClientRevokedCertificateToHclTerraform = exports.vpnServerConfigurationClientRevokedCertificateToTerraform = exports.VpnServerConfigurationAzureActiveDirectoryAuthenticationList = exports.VpnServerConfigurationAzureActiveDirectoryAuthenticationOutputReference = exports.vpnServerConfigurationAzureActiveDirectoryAuthenticationToHclTerraform = exports.vpnServerConfigurationAzureActiveDirectoryAuthenticationToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function vpnServerConfigurationAzureActiveDirectoryAuthenticationToTerraform(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 { audience: cdktf.stringToTerraform(struct.audience), issuer: cdktf.stringToTerraform(struct.issuer), tenant: cdktf.stringToTerraform(struct.tenant), }; } exports.vpnServerConfigurationAzureActiveDirectoryAuthenticationToTerraform = vpnServerConfigurationAzureActiveDirectoryAuthenticationToTerraform; function vpnServerConfigurationAzureActiveDirectoryAuthenticationToHclTerraform(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 = { audience: { value: cdktf.stringToHclTerraform(struct.audience), isBlock: false, type: "simple", storageClassType: "string", }, issuer: { value: cdktf.stringToHclTerraform(struct.issuer), isBlock: false, type: "simple", storageClassType: "string", }, tenant: { value: cdktf.stringToHclTerraform(struct.tenant), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.vpnServerConfigurationAzureActiveDirectoryAuthenticationToHclTerraform = vpnServerConfigurationAzureActiveDirectoryAuthenticationToHclTerraform; class VpnServerConfigurationAzureActiveDirectoryAuthenticationOutputReference 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._audience !== undefined) { hasAnyValues = true; internalValueResult.audience = this._audience; } if (this._issuer !== undefined) { hasAnyValues = true; internalValueResult.issuer = this._issuer; } if (this._tenant !== undefined) { hasAnyValues = true; internalValueResult.tenant = this._tenant; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._audience = undefined; this._issuer = undefined; this._tenant = 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._audience = value.audience; this._issuer = value.issuer; this._tenant = value.tenant; } } get audience() { return this.getStringAttribute('audience'); } set audience(value) { this._audience = value; } // Temporarily expose input value. Use with caution. get audienceInput() { return this._audience; } get issuer() { return this.getStringAttribute('issuer'); } set issuer(value) { this._issuer = value; } // Temporarily expose input value. Use with caution. get issuerInput() { return this._issuer; } get tenant() { return this.getStringAttribute('tenant'); } set tenant(value) { this._tenant = value; } // Temporarily expose input value. Use with caution. get tenantInput() { return this._tenant; } } exports.VpnServerConfigurationAzureActiveDirectoryAuthenticationOutputReference = VpnServerConfigurationAzureActiveDirectoryAuthenticationOutputReference; _a = JSII_RTTI_SYMBOL_1; VpnServerConfigurationAzureActiveDirectoryAuthenticationOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.vpnServerConfiguration.VpnServerConfigurationAzureActiveDirectoryAuthenticationOutputReference", version: "12.27.0" }; class VpnServerConfigurationAzureActiveDirectoryAuthenticationList 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 VpnServerConfigurationAzureActiveDirectoryAuthenticationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.VpnServerConfigurationAzureActiveDirectoryAuthenticationList = VpnServerConfigurationAzureActiveDirectoryAuthenticationList; _b = JSII_RTTI_SYMBOL_1; VpnServerConfigurationAzureActiveDirectoryAuthenticationList[_b] = { fqn: "@cdktf/provider-azurerm.vpnServerConfiguration.VpnServerConfigurationAzureActiveDirectoryAuthenticationList", version: "12.27.0" }; function vpnServerConfigurationClientRevokedCertificateToTerraform(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), thumbprint: cdktf.stringToTerraform(struct.thumbprint), }; } exports.vpnServerConfigurationClientRevokedCertificateToTerraform = vpnServerConfigurationClientRevokedCertificateToTerraform; function vpnServerConfigurationClientRevokedCertificateToHclTerraform(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", }, thumbprint: { value: cdktf.stringToHclTerraform(struct.thumbprint), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.vpnServerConfigurationClientRevokedCertificateToHclTerraform = vpnServerConfigurationClientRevokedCertificateToHclTerraform; class VpnServerConfigurationClientRevokedCertificateOutputReference 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._thumbprint !== undefined) { hasAnyValues = true; internalValueResult.thumbprint = this._thumbprint; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._name = undefined; this._thumbprint = 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._thumbprint = value.thumbprint; } } 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 thumbprint() { return this.getStringAttribute('thumbprint'); } set thumbprint(value) { this._thumbprint = value; } // Temporarily expose input value. Use with caution. get thumbprintInput() { return this._thumbprint; } } exports.VpnServerConfigurationClientRevokedCertificateOutputReference = VpnServerConfigurationClientRevokedCertificateOutputReference; _c = JSII_RTTI_SYMBOL_1; VpnServerConfigurationClientRevokedCertificateOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.vpnServerConfiguration.VpnServerConfigurationClientRevokedCertificateOutputReference", version: "12.27.0" }; class VpnServerConfigurationClientRevokedCertificateList 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 VpnServerConfigurationClientRevokedCertificateOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.VpnServerConfigurationClientRevokedCertificateList = VpnServerConfigurationClientRevokedCertificateList; _d = JSII_RTTI_SYMBOL_1; VpnServerConfigurationClientRevokedCertificateList[_d] = { fqn: "@cdktf/provider-azurerm.vpnServerConfiguration.VpnServerConfigurationClientRevokedCertificateList", version: "12.27.0" }; function vpnServerConfigurationClientRootCertificateToTerraform(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), public_cert_data: cdktf.stringToTerraform(struct.publicCertData), }; } exports.vpnServerConfigurationClientRootCertificateToTerraform = vpnServerConfigurationClientRootCertificateToTerraform; function vpnServerConfigurationClientRootCertificateToHclTerraform(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", }, public_cert_data: { value: cdktf.stringToHclTerraform(struct.publicCertData), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.vpnServerConfigurationClientRootCertificateToHclTerraform = vpnServerConfigurationClientRootCertificateToHclTerraform; class VpnServerConfigurationClientRootCertificateOutputReference 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._publicCertData !== undefined) { hasAnyValues = true; internalValueResult.publicCertData = this._publicCertData; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._name = undefined; this._publicCertData = 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._publicCertData = value.publicCertData; } } 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 publicCertData() { return this.getStringAttribute('public_cert_data'); } set publicCertData(value) { this._publicCertData = value; } // Temporarily expose input value. Use with caution. get publicCertDataInput() { return this._publicCertData; } } exports.VpnServerConfigurationClientRootCertificateOutputReference = VpnServerConfigurationClientRootCertificateOutputReference; _e = JSII_RTTI_SYMBOL_1; VpnServerConfigurationClientRootCertificateOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.vpnServerConfiguration.VpnServerConfigurationClientRootCertificateOutputReference", version: "12.27.0" }; class VpnServerConfigurationClientRootCertificateList 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 VpnServerConfigurationClientRootCertificateOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.VpnServerConfigurationClientRootCertificateList = VpnServerConfigurationClientRootCertificateList; _f = JSII_RTTI_SYMBOL_1; VpnServerConfigurationClientRootCertificateList[_f] = { fqn: "@cdktf/provider-azurerm.vpnServerConfiguration.VpnServerConfigurationClientRootCertificateList", version: "12.27.0" }; function vpnServerConfigurationIpsecPolicyToTerraform(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_kilobytes: cdktf.numberToTerraform(struct.saDataSizeKilobytes), sa_lifetime_seconds: cdktf.numberToTerraform(struct.saLifetimeSeconds), }; } exports.vpnServerConfigurationIpsecPolicyToTerraform = vpnServerConfigurationIpsecPolicyToTerraform; function vpnServerConfigurationIpsecPolicyToHclTerraform(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_kilobytes: { value: cdktf.numberToHclTerraform(struct.saDataSizeKilobytes), isBlock: false, type: "simple", storageClassType: "number", }, sa_lifetime_seconds: { value: cdktf.numberToHclTerraform(struct.saLifetimeSeconds), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.vpnServerConfigurationIpsecPolicyToHclTerraform = vpnServerConfigurationIpsecPolicyToHclTerraform; class VpnServerConfigurationIpsecPolicyOutputReference 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 = this._ikeEncryption; } if (this._ikeIntegrity !== undefined) { hasAnyValues = true; internalValueResult.ikeIntegrity = this._ikeIntegrity; } if (this._ipsecEncryption !== undefined) { hasAnyValues = true; internalValueResult.ipsecEncryption = this._ipsecEncryption; } if (this._ipsecIntegrity !== undefined) { hasAnyValues = true; internalValueResult.ipsecIntegrity = this._ipsecIntegrity; } if (this._pfsGroup !== undefined) { hasAnyValues = true; internalValueResult.pfsGroup = this._pfsGroup; } if (this._saDataSizeKilobytes !== undefined) { hasAnyValues = true; internalValueResult.saDataSizeKilobytes = this._saDataSizeKilobytes; } if (this._saLifetimeSeconds !== undefined) { hasAnyValues = true; internalValueResult.saLifetimeSeconds = this._saLifetimeSeconds; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._dhGroup = undefined; this._ikeEncryption = undefined; this._ikeIntegrity = undefined; this._ipsecEncryption = undefined; this._ipsecIntegrity = undefined; this._pfsGroup = undefined; this._saDataSizeKilobytes = undefined; this._saLifetimeSeconds = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._dhGroup = value.dhGroup; this._ikeEncryption = value.ikeEncryption; this._ikeIntegrity = value.ikeIntegrity; this._ipsecEncryption = value.ipsecEncryption; this._ipsecIntegrity = value.ipsecIntegrity; this._pfsGroup = value.pfsGroup; this._saDataSizeKilobytes = value.saDataSizeKilobytes; this._saLifetimeSeconds = value.saLifetimeSeconds; } } get dhGroup() { return this.getStringAttribute('dh_group'); } set dhGroup(value) { this._dhGroup = value; } // Temporarily expose input value. Use with caution. get dhGroupInput() { return this._dhGroup; } get ikeEncryption() { return this.getStringAttribute('ike_encryption'); } set ikeEncryption(value) { this._ikeEncryption = value; } // Temporarily expose input value. Use with caution. get ikeEncryptionInput() { return this._ikeEncryption; } get ikeIntegrity() { return this.getStringAttribute('ike_integrity'); } set ikeIntegrity(value) { this._ikeIntegrity = value; } // Temporarily expose input value. Use with caution. get ikeIntegrityInput() { return this._ikeIntegrity; } get ipsecEncryption() { return this.getStringAttribute('ipsec_encryption'); } set ipsecEncryption(value) { this._ipsecEncryption = value; } // Temporarily expose input value. Use with caution. get ipsecEncryptionInput() { return this._ipsecEncryption; } get ipsecIntegrity() { return this.getStringAttribute('ipsec_integrity'); } set ipsecIntegrity(value) { this._ipsecIntegrity = value; } // Temporarily expose input value. Use with caution. get ipsecIntegrityInput() { return this._ipsecIntegrity; } get pfsGroup() { return this.getStringAttribute('pfs_group'); } set pfsGroup(value) { this._pfsGroup = value; } // Temporarily expose input value. Use with caution. get pfsGroupInput() { return this._pfsGroup; } get saDataSizeKilobytes() { return this.getNumberAttribute('sa_data_size_kilobytes'); } set saDataSizeKilobytes(value) { this._saDataSizeKilobytes = value; } // Temporarily expose input value. Use with caution. get saDataSizeKilobytesInput() { return this._saDataSizeKilobytes; } get saLifetimeSeconds() { return this.getNumberAttribute('sa_lifetime_seconds'); } set saLifetimeSeconds(value) { this._saLifetimeSeconds = value; } // Temporarily expose input value. Use with caution. get saLifetimeSecondsInput() { return this._saLifetimeSeconds; } } exports.VpnServerConfigurationIpsecPolicyOutputReference = VpnServerConfigurationIpsecPolicyOutputReference; _g = JSII_RTTI_SYMBOL_1; VpnServerConfigurationIpsecPolicyOutputReference[_g] = { fqn: "@cdktf/provider-azurerm.vpnServerConfiguration.VpnServerConfigurationIpsecPolicyOutputReference", version: "12.27.0" }; function vpnServerConfigurationRadiusClientRootCertificateToTerraform(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), thumbprint: cdktf.stringToTerraform(struct.thumbprint), }; } exports.vpnServerConfigurationRadiusClientRootCertificateToTerraform = vpnServerConfigurationRadiusClientRootCertificateToTerraform; function vpnServerConfigurationRadiusClientRootCertificateToHclTerraform(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", }, thumbprint: { value: cdktf.stringToHclTerraform(struct.thumbprint), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.vpnServerConfigurationRadiusClientRootCertificateToHclTerraform = vpnServerConfigurationRadiusClientRootCertificateToHclTerraform; class VpnServerConfigurationRadiusClientRootCertificateOutputReference 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._thumbprint !== undefined) { hasAnyValues = true; internalValueResult.thumbprint = this._thumbprint; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._name = undefined; this._thumbprint = 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._thumbprint = value.thumbprint; } } 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 thumbprint() { return this.getStringAttribute('thumbprint'); } set thumbprint(value) { this._thumbprint = value; } // Temporarily expose input value. Use with caution. get thumbprintInput() { return this._thumbprint; } } exports.VpnServerConfigurationRadiusClientRootCertificateOutputReference = VpnServerConfigurationRadiusClientRootCertificateOutputReference; _h = JSII_RTTI_SYMBOL_1; VpnServerConfigurationRadiusClientRootCertificateOutputReference[_h] = { fqn: "@cdktf/provider-azurerm.vpnServerConfiguration.VpnServerConfigurationRadiusClientRootCertificateOutputReference", version: "12.27.0" }; class VpnServerConfigurationRadiusClientRootCertificateList 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 VpnServerConfigurationRadiusClientRootCertificateOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.VpnServerConfigurationRadiusClientRootCertificateList = VpnServerConfigurationRadiusClientRootCertificateList; _j = JSII_RTTI_SYMBOL_1; VpnServerConfigurationRadiusClientRootCertificateList[_j] = { fqn: "@cdktf/provider-azurerm.vpnServerConfiguration.VpnServerConfigurationRadiusClientRootCertificateList", version: "12.27.0" }; function vpnServerConfigurationRadiusServerToTerraform(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: cdktf.stringToTerraform(struct.address), score: cdktf.numberToTerraform(struct.score), secret: cdktf.stringToTerraform(struct.secret), }; } exports.vpnServerConfigurationRadiusServerToTerraform = vpnServerConfigurationRadiusServerToTerraform; function vpnServerConfigurationRadiusServerToHclTerraform(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: { value: cdktf.stringToHclTerraform(struct.address), isBlock: false, type: "simple", storageClassType: "string", }, score: { value: cdktf.numberToHclTerraform(struct.score), isBlock: false, type: "simple", storageClassType: "number", }, secret: { value: cdktf.stringToHclTerraform(struct.secret), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.vpnServerConfigurationRadiusServerToHclTerraform = vpnServerConfigurationRadiusServerToHclTerraform; class VpnServerConfigurationRadiusServerOutputReference 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._address !== undefined) { hasAnyValues = true; internalValueResult.address = this._address; } if (this._score !== undefined) { hasAnyValues = true; internalValueResult.score = this._score; } if (this._secret !== undefined) { hasAnyValues = true; internalValueResult.secret = this._secret; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._address = undefined; this._score = undefined; this._secret = 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._address = value.address; this._score = value.score; this._secret = value.secret; } } get address() { return this.getStringAttribute('address'); } set address(value) { this._address = value; } // Temporarily expose input value. Use with caution. get addressInput() { return this._address; } get score() { return this.getNumberAttribute('score'); } set score(value) { this._score = value; } // Temporarily expose input value. Use with caution. get scoreInput() { return this._score; } get secret() { return this.getStringAttribute('secret'); } set secret(value) { this._secret = value; } // Temporarily expose input value. Use with caution. get secretInput() { return this._secret; } } exports.VpnServerConfigurationRadiusServerOutputReference = VpnServerConfigurationRadiusServerOutputReference; _k = JSII_RTTI_SYMBOL_1; VpnServerConfigurationRadiusServerOutputReference[_k] = { fqn: "@cdktf/provider-azurerm.vpnServerConfiguration.VpnServerConfigurationRadiusServerOutputReference", version: "12.27.0" }; class VpnServerConfigurationRadiusServerList 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 VpnServerConfigurationRadiusServerOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.VpnServerConfigurationRadiusServerList = VpnServerConfigurationRadiusServerList; _l = JSII_RTTI_SYMBOL_1; VpnServerConfigurationRadiusServerList[_l] = { fqn: "@cdktf/provider-azurerm.vpnServerConfiguration.VpnServerConfigurationRadiusServerList", version: "12.27.0" }; function vpnServerConfigurationRadiusServerRootCertificateToTerraform(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), public_cert_data: cdktf.stringToTerraform(struct.publicCertData), }; } exports.vpnServerConfigurationRadiusServerRootCertificateToTerraform = vpnServerConfigurationRadiusServerRootCertificateToTerraform; function vpnServerConfigurationRadiusServerRootCertificateToHclTerraform(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", }, public_cert_data: { value: cdktf.stringToHclTerraform(struct.publicCertData), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.vpnServerConfigurationRadiusServerRootCertificateToHclTerraform = vpnServerConfigurationRadiusServerRootCertificateToHclTerraform; class VpnServerConfigurationRadiusServerRootCertificateOutputReference 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._publicCertData !== undefined) { hasAnyValues = true; internalValueResult.publicCertData = this._publicCertData; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._name = undefined; this._publicCertData = 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._publicCertData = value.publicCertData; } } 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 publicCertData() { return this.getStringAttribute('public_cert_data'); } set publicCertData(value) { this._publicCertData = value; } // Temporarily expose input value. Use with caution. get publicCertDataInput() { return this._publicCertData; } } exports.VpnServerConfigurationRadiusServerRootCertificateOutputReference = VpnServerConfigurationRadiusServerRootCertificateOutputReference; _m = JSII_RTTI_SYMBOL_1; VpnServerConfigurationRadiusServerRootCertificateOutputReference[_m] = { fqn: "@cdktf/provider-azurerm.vpnServerConfiguration.VpnServerConfigurationRadiusServerRootCertificateOutputReference", version: "12.27.0" }; class VpnServerConfigurationRadiusServerRootCertificateList 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 VpnServerConfigurationRadiusServerRootCertificateOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.VpnServerConfigurationRadiusServerRootCertificateList = VpnServerConfigurationRadiusServerRootCertificateList; _o = JSII_RTTI_SYMBOL_1; VpnServerConfigurationRadiusServerRootCertificateList[_o] = { fqn: "@cdktf/provider-azurerm.vpnServerConfiguration.VpnServerConfigurationRadiusServerRootCertificateList", version: "12.27.0" }; function vpnServerConfigurationRadiusToTerraform(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 { client_root_certificate: cdktf.listMapper(vpnServerConfigurationRadiusClientRootCertificateToTerraform, true)(struct.clientRootCertificate), server: cdktf.listMapper(vpnServerConfigurationRadiusServerToTerraform, true)(struct.server), server_root_certificate: cdktf.listMapper(vpnServerConfigurationRadiusServerRootCertificateToTerraform, true)(struct.serverRootCertificate), }; } exports.vpnServerConfigurationRadiusToTerraform = vpnServerConfigurationRadiusToTerraform; function vpnServerConfigurationRadiusToHclTerraform(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 = { client_root_certificate: { value: cdktf.listMapperHcl(vpnServerConfigurationRadiusClientRootCertificateToHclTerraform, true)(struct.clientRootCertificate), isBlock: true, type: "set", storageClassType: "VpnServerConfigurationRadiusClientRootCertificateList", }, server: { value: cdktf.listMapperHcl(vpnServerConfigurationRadiusServerToHclTerraform, true)(struct.server), isBlock: true, type: "list", storageClassType: "VpnServerConfigurationRadiusServerList", }, server_root_certificate: { value: cdktf.listMapperHcl(vpnServerConfigurationRadiusServerRootCertificateToHclTerraform, true)(struct.serverRootCertificate), isBlock: true, type: "set", storageClassType: "VpnServerConfigurationRadiusServerRootCertificateList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.vpnServerConfigurationRadiusToHclTerraform = vpnServerConfigurationRadiusToHclTerraform; class VpnServerConfigurationRadiusOutputReference 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; // client_root_certificate - computed: false, optional: true, required: false this._clientRootCertificat