UNPKG

@cdktf/provider-azurerm

Version:

Prebuilt azurerm Provider for Terraform CDK (cdktf)

1,045 lines 201 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l; Object.defineProperty(exports, "__esModule", { value: true }); exports.PaloAltoNextGenerationFirewallVirtualNetworkPanorama = exports.PaloAltoNextGenerationFirewallVirtualNetworkPanoramaTimeoutsOutputReference = exports.paloAltoNextGenerationFirewallVirtualNetworkPanoramaTimeoutsToHclTerraform = exports.paloAltoNextGenerationFirewallVirtualNetworkPanoramaTimeoutsToTerraform = exports.PaloAltoNextGenerationFirewallVirtualNetworkPanoramaNetworkProfileOutputReference = exports.paloAltoNextGenerationFirewallVirtualNetworkPanoramaNetworkProfileToHclTerraform = exports.paloAltoNextGenerationFirewallVirtualNetworkPanoramaNetworkProfileToTerraform = exports.PaloAltoNextGenerationFirewallVirtualNetworkPanoramaNetworkProfileVnetConfigurationOutputReference = exports.paloAltoNextGenerationFirewallVirtualNetworkPanoramaNetworkProfileVnetConfigurationToHclTerraform = exports.paloAltoNextGenerationFirewallVirtualNetworkPanoramaNetworkProfileVnetConfigurationToTerraform = exports.PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDnsSettingsOutputReference = exports.paloAltoNextGenerationFirewallVirtualNetworkPanoramaDnsSettingsToHclTerraform = exports.paloAltoNextGenerationFirewallVirtualNetworkPanoramaDnsSettingsToTerraform = exports.PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatList = exports.PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatOutputReference = exports.paloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatToHclTerraform = exports.paloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatToTerraform = exports.PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatFrontendConfigOutputReference = exports.paloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatFrontendConfigToHclTerraform = exports.paloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatFrontendConfigToTerraform = exports.PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatBackendConfigOutputReference = exports.paloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatBackendConfigToHclTerraform = exports.paloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatBackendConfigToTerraform = exports.PaloAltoNextGenerationFirewallVirtualNetworkPanoramaPanoramaList = exports.PaloAltoNextGenerationFirewallVirtualNetworkPanoramaPanoramaOutputReference = exports.paloAltoNextGenerationFirewallVirtualNetworkPanoramaPanoramaToHclTerraform = exports.paloAltoNextGenerationFirewallVirtualNetworkPanoramaPanoramaToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function paloAltoNextGenerationFirewallVirtualNetworkPanoramaPanoramaToTerraform(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 {}; } exports.paloAltoNextGenerationFirewallVirtualNetworkPanoramaPanoramaToTerraform = paloAltoNextGenerationFirewallVirtualNetworkPanoramaPanoramaToTerraform; function paloAltoNextGenerationFirewallVirtualNetworkPanoramaPanoramaToHclTerraform(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 = {}; return attrs; } exports.paloAltoNextGenerationFirewallVirtualNetworkPanoramaPanoramaToHclTerraform = paloAltoNextGenerationFirewallVirtualNetworkPanoramaPanoramaToHclTerraform; class PaloAltoNextGenerationFirewallVirtualNetworkPanoramaPanoramaOutputReference 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() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // device_group_name - computed: true, optional: false, required: false get deviceGroupName() { return this.getStringAttribute('device_group_name'); } // host_name - computed: true, optional: false, required: false get hostName() { return this.getStringAttribute('host_name'); } // name - computed: true, optional: false, required: false get name() { return this.getStringAttribute('name'); } // panorama_server_1 - computed: true, optional: false, required: false get panoramaServer1() { return this.getStringAttribute('panorama_server_1'); } // panorama_server_2 - computed: true, optional: false, required: false get panoramaServer2() { return this.getStringAttribute('panorama_server_2'); } // template_name - computed: true, optional: false, required: false get templateName() { return this.getStringAttribute('template_name'); } // virtual_machine_ssh_key - computed: true, optional: false, required: false get virtualMachineSshKey() { return this.getStringAttribute('virtual_machine_ssh_key'); } } exports.PaloAltoNextGenerationFirewallVirtualNetworkPanoramaPanoramaOutputReference = PaloAltoNextGenerationFirewallVirtualNetworkPanoramaPanoramaOutputReference; _a = JSII_RTTI_SYMBOL_1; PaloAltoNextGenerationFirewallVirtualNetworkPanoramaPanoramaOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.paloAltoNextGenerationFirewallVirtualNetworkPanorama.PaloAltoNextGenerationFirewallVirtualNetworkPanoramaPanoramaOutputReference", version: "12.27.0" }; class PaloAltoNextGenerationFirewallVirtualNetworkPanoramaPanoramaList 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 PaloAltoNextGenerationFirewallVirtualNetworkPanoramaPanoramaOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.PaloAltoNextGenerationFirewallVirtualNetworkPanoramaPanoramaList = PaloAltoNextGenerationFirewallVirtualNetworkPanoramaPanoramaList; _b = JSII_RTTI_SYMBOL_1; PaloAltoNextGenerationFirewallVirtualNetworkPanoramaPanoramaList[_b] = { fqn: "@cdktf/provider-azurerm.paloAltoNextGenerationFirewallVirtualNetworkPanorama.PaloAltoNextGenerationFirewallVirtualNetworkPanoramaPanoramaList", version: "12.27.0" }; function paloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatBackendConfigToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { port: cdktf.numberToTerraform(struct.port), public_ip_address: cdktf.stringToTerraform(struct.publicIpAddress), }; } exports.paloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatBackendConfigToTerraform = paloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatBackendConfigToTerraform; function paloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatBackendConfigToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { port: { value: cdktf.numberToHclTerraform(struct.port), isBlock: false, type: "simple", storageClassType: "number", }, public_ip_address: { value: cdktf.stringToHclTerraform(struct.publicIpAddress), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.paloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatBackendConfigToHclTerraform = paloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatBackendConfigToHclTerraform; class PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatBackendConfigOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._port !== undefined) { hasAnyValues = true; internalValueResult.port = this._port; } if (this._publicIpAddress !== undefined) { hasAnyValues = true; internalValueResult.publicIpAddress = this._publicIpAddress; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._port = undefined; this._publicIpAddress = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._port = value.port; this._publicIpAddress = value.publicIpAddress; } } get port() { return this.getNumberAttribute('port'); } set port(value) { this._port = value; } // Temporarily expose input value. Use with caution. get portInput() { return this._port; } get publicIpAddress() { return this.getStringAttribute('public_ip_address'); } set publicIpAddress(value) { this._publicIpAddress = value; } // Temporarily expose input value. Use with caution. get publicIpAddressInput() { return this._publicIpAddress; } } exports.PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatBackendConfigOutputReference = PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatBackendConfigOutputReference; _c = JSII_RTTI_SYMBOL_1; PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatBackendConfigOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.paloAltoNextGenerationFirewallVirtualNetworkPanorama.PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatBackendConfigOutputReference", version: "12.27.0" }; function paloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatFrontendConfigToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { port: cdktf.numberToTerraform(struct.port), public_ip_address_id: cdktf.stringToTerraform(struct.publicIpAddressId), }; } exports.paloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatFrontendConfigToTerraform = paloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatFrontendConfigToTerraform; function paloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatFrontendConfigToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { port: { value: cdktf.numberToHclTerraform(struct.port), isBlock: false, type: "simple", storageClassType: "number", }, public_ip_address_id: { value: cdktf.stringToHclTerraform(struct.publicIpAddressId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.paloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatFrontendConfigToHclTerraform = paloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatFrontendConfigToHclTerraform; class PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatFrontendConfigOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._port !== undefined) { hasAnyValues = true; internalValueResult.port = this._port; } if (this._publicIpAddressId !== undefined) { hasAnyValues = true; internalValueResult.publicIpAddressId = this._publicIpAddressId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._port = undefined; this._publicIpAddressId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._port = value.port; this._publicIpAddressId = value.publicIpAddressId; } } get port() { return this.getNumberAttribute('port'); } set port(value) { this._port = value; } // Temporarily expose input value. Use with caution. get portInput() { return this._port; } 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; } } exports.PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatFrontendConfigOutputReference = PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatFrontendConfigOutputReference; _d = JSII_RTTI_SYMBOL_1; PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatFrontendConfigOutputReference[_d] = { fqn: "@cdktf/provider-azurerm.paloAltoNextGenerationFirewallVirtualNetworkPanorama.PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatFrontendConfigOutputReference", version: "12.27.0" }; function paloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatToTerraform(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), protocol: cdktf.stringToTerraform(struct.protocol), backend_config: paloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatBackendConfigToTerraform(struct.backendConfig), frontend_config: paloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatFrontendConfigToTerraform(struct.frontendConfig), }; } exports.paloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatToTerraform = paloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatToTerraform; function paloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatToHclTerraform(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", }, protocol: { value: cdktf.stringToHclTerraform(struct.protocol), isBlock: false, type: "simple", storageClassType: "string", }, backend_config: { value: paloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatBackendConfigToHclTerraform(struct.backendConfig), isBlock: true, type: "list", storageClassType: "PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatBackendConfigList", }, frontend_config: { value: paloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatFrontendConfigToHclTerraform(struct.frontendConfig), isBlock: true, type: "list", storageClassType: "PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatFrontendConfigList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.paloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatToHclTerraform = paloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatToHclTerraform; class PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatOutputReference 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; // backend_config - computed: false, optional: true, required: false this._backendConfig = new PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatBackendConfigOutputReference(this, "backend_config"); // frontend_config - computed: false, optional: true, required: false this._frontendConfig = new PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatFrontendConfigOutputReference(this, "frontend_config"); } 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._protocol !== undefined) { hasAnyValues = true; internalValueResult.protocol = this._protocol; } if (this._backendConfig?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.backendConfig = this._backendConfig?.internalValue; } if (this._frontendConfig?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.frontendConfig = this._frontendConfig?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._name = undefined; this._protocol = undefined; this._backendConfig.internalValue = undefined; this._frontendConfig.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._name = value.name; this._protocol = value.protocol; this._backendConfig.internalValue = value.backendConfig; this._frontendConfig.internalValue = value.frontendConfig; } } 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 protocol() { return this.getStringAttribute('protocol'); } set protocol(value) { this._protocol = value; } // Temporarily expose input value. Use with caution. get protocolInput() { return this._protocol; } get backendConfig() { return this._backendConfig; } putBackendConfig(value) { this._backendConfig.internalValue = value; } resetBackendConfig() { this._backendConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. get backendConfigInput() { return this._backendConfig.internalValue; } get frontendConfig() { return this._frontendConfig; } putFrontendConfig(value) { this._frontendConfig.internalValue = value; } resetFrontendConfig() { this._frontendConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. get frontendConfigInput() { return this._frontendConfig.internalValue; } } exports.PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatOutputReference = PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatOutputReference; _e = JSII_RTTI_SYMBOL_1; PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.paloAltoNextGenerationFirewallVirtualNetworkPanorama.PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatOutputReference", version: "12.27.0" }; class PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatList 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 PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatList = PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatList; _f = JSII_RTTI_SYMBOL_1; PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatList[_f] = { fqn: "@cdktf/provider-azurerm.paloAltoNextGenerationFirewallVirtualNetworkPanorama.PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDestinationNatList", version: "12.27.0" }; function paloAltoNextGenerationFirewallVirtualNetworkPanoramaDnsSettingsToTerraform(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 { dns_servers: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.dnsServers), use_azure_dns: cdktf.booleanToTerraform(struct.useAzureDns), }; } exports.paloAltoNextGenerationFirewallVirtualNetworkPanoramaDnsSettingsToTerraform = paloAltoNextGenerationFirewallVirtualNetworkPanoramaDnsSettingsToTerraform; function paloAltoNextGenerationFirewallVirtualNetworkPanoramaDnsSettingsToHclTerraform(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 = { dns_servers: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.dnsServers), isBlock: false, type: "list", storageClassType: "stringList", }, use_azure_dns: { value: cdktf.booleanToHclTerraform(struct.useAzureDns), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.paloAltoNextGenerationFirewallVirtualNetworkPanoramaDnsSettingsToHclTerraform = paloAltoNextGenerationFirewallVirtualNetworkPanoramaDnsSettingsToHclTerraform; class PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDnsSettingsOutputReference 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._dnsServers !== undefined) { hasAnyValues = true; internalValueResult.dnsServers = this._dnsServers; } if (this._useAzureDns !== undefined) { hasAnyValues = true; internalValueResult.useAzureDns = this._useAzureDns; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._dnsServers = undefined; this._useAzureDns = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._dnsServers = value.dnsServers; this._useAzureDns = value.useAzureDns; } } // azure_dns_servers - computed: true, optional: false, required: false get azureDnsServers() { return this.getListAttribute('azure_dns_servers'); } get dnsServers() { return this.getListAttribute('dns_servers'); } set dnsServers(value) { this._dnsServers = value; } resetDnsServers() { this._dnsServers = undefined; } // Temporarily expose input value. Use with caution. get dnsServersInput() { return this._dnsServers; } get useAzureDns() { return this.getBooleanAttribute('use_azure_dns'); } set useAzureDns(value) { this._useAzureDns = value; } resetUseAzureDns() { this._useAzureDns = undefined; } // Temporarily expose input value. Use with caution. get useAzureDnsInput() { return this._useAzureDns; } } exports.PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDnsSettingsOutputReference = PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDnsSettingsOutputReference; _g = JSII_RTTI_SYMBOL_1; PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDnsSettingsOutputReference[_g] = { fqn: "@cdktf/provider-azurerm.paloAltoNextGenerationFirewallVirtualNetworkPanorama.PaloAltoNextGenerationFirewallVirtualNetworkPanoramaDnsSettingsOutputReference", version: "12.27.0" }; function paloAltoNextGenerationFirewallVirtualNetworkPanoramaNetworkProfileVnetConfigurationToTerraform(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 { trusted_subnet_id: cdktf.stringToTerraform(struct.trustedSubnetId), untrusted_subnet_id: cdktf.stringToTerraform(struct.untrustedSubnetId), virtual_network_id: cdktf.stringToTerraform(struct.virtualNetworkId), }; } exports.paloAltoNextGenerationFirewallVirtualNetworkPanoramaNetworkProfileVnetConfigurationToTerraform = paloAltoNextGenerationFirewallVirtualNetworkPanoramaNetworkProfileVnetConfigurationToTerraform; function paloAltoNextGenerationFirewallVirtualNetworkPanoramaNetworkProfileVnetConfigurationToHclTerraform(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 = { trusted_subnet_id: { value: cdktf.stringToHclTerraform(struct.trustedSubnetId), isBlock: false, type: "simple", storageClassType: "string", }, untrusted_subnet_id: { value: cdktf.stringToHclTerraform(struct.untrustedSubnetId), isBlock: false, type: "simple", storageClassType: "string", }, virtual_network_id: { value: cdktf.stringToHclTerraform(struct.virtualNetworkId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.paloAltoNextGenerationFirewallVirtualNetworkPanoramaNetworkProfileVnetConfigurationToHclTerraform = paloAltoNextGenerationFirewallVirtualNetworkPanoramaNetworkProfileVnetConfigurationToHclTerraform; class PaloAltoNextGenerationFirewallVirtualNetworkPanoramaNetworkProfileVnetConfigurationOutputReference 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._trustedSubnetId !== undefined) { hasAnyValues = true; internalValueResult.trustedSubnetId = this._trustedSubnetId; } if (this._untrustedSubnetId !== undefined) { hasAnyValues = true; internalValueResult.untrustedSubnetId = this._untrustedSubnetId; } if (this._virtualNetworkId !== undefined) { hasAnyValues = true; internalValueResult.virtualNetworkId = this._virtualNetworkId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._trustedSubnetId = undefined; this._untrustedSubnetId = undefined; this._virtualNetworkId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._trustedSubnetId = value.trustedSubnetId; this._untrustedSubnetId = value.untrustedSubnetId; this._virtualNetworkId = value.virtualNetworkId; } } // ip_of_trust_for_user_defined_routes - computed: true, optional: false, required: false get ipOfTrustForUserDefinedRoutes() { return this.getStringAttribute('ip_of_trust_for_user_defined_routes'); } get trustedSubnetId() { return this.getStringAttribute('trusted_subnet_id'); } set trustedSubnetId(value) { this._trustedSubnetId = value; } resetTrustedSubnetId() { this._trustedSubnetId = undefined; } // Temporarily expose input value. Use with caution. get trustedSubnetIdInput() { return this._trustedSubnetId; } get untrustedSubnetId() { return this.getStringAttribute('untrusted_subnet_id'); } set untrustedSubnetId(value) { this._untrustedSubnetId = value; } resetUntrustedSubnetId() { this._untrustedSubnetId = undefined; } // Temporarily expose input value. Use with caution. get untrustedSubnetIdInput() { return this._untrustedSubnetId; } get virtualNetworkId() { return this.getStringAttribute('virtual_network_id'); } set virtualNetworkId(value) { this._virtualNetworkId = value; } // Temporarily expose input value. Use with caution. get virtualNetworkIdInput() { return this._virtualNetworkId; } } exports.PaloAltoNextGenerationFirewallVirtualNetworkPanoramaNetworkProfileVnetConfigurationOutputReference = PaloAltoNextGenerationFirewallVirtualNetworkPanoramaNetworkProfileVnetConfigurationOutputReference; _h = JSII_RTTI_SYMBOL_1; PaloAltoNextGenerationFirewallVirtualNetworkPanoramaNetworkProfileVnetConfigurationOutputReference[_h] = { fqn: "@cdktf/provider-azurerm.paloAltoNextGenerationFirewallVirtualNetworkPanorama.PaloAltoNextGenerationFirewallVirtualNetworkPanoramaNetworkProfileVnetConfigurationOutputReference", version: "12.27.0" }; function paloAltoNextGenerationFirewallVirtualNetworkPanoramaNetworkProfileToTerraform(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 { egress_nat_ip_address_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.egressNatIpAddressIds), public_ip_address_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.publicIpAddressIds), trusted_address_ranges: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.trustedAddressRanges), vnet_configuration: paloAltoNextGenerationFirewallVirtualNetworkPanoramaNetworkProfileVnetConfigurationToTerraform(struct.vnetConfiguration), }; } exports.paloAltoNextGenerationFirewallVirtualNetworkPanoramaNetworkProfileToTerraform = paloAltoNextGenerationFirewallVirtualNetworkPanoramaNetworkProfileToTerraform; function paloAltoNextGenerationFirewallVirtualNetworkPanoramaNetworkProfileToHclTerraform(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 = { egress_nat_ip_address_ids: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.egressNatIpAddressIds), isBlock: false, type: "list", storageClassType: "stringList", }, public_ip_address_ids: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.publicIpAddressIds), isBlock: false, type: "list", storageClassType: "stringList", }, trusted_address_ranges: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.trustedAddressRanges), isBlock: false, type: "list", storageClassType: "stringList", }, vnet_configuration: { value: paloAltoNextGenerationFirewallVirtualNetworkPanoramaNetworkProfileVnetConfigurationToHclTerraform(struct.vnetConfiguration), isBlock: true, type: "list", storageClassType: "PaloAltoNextGenerationFirewallVirtualNetworkPanoramaNetworkProfileVnetConfigurationList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.paloAltoNextGenerationFirewallVirtualNetworkPanoramaNetworkProfileToHclTerraform = paloAltoNextGenerationFirewallVirtualNetworkPanoramaNetworkProfileToHclTerraform; class PaloAltoNextGenerationFirewallVirtualNetworkPanoramaNetworkProfileOutputReference 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; // vnet_configuration - computed: false, optional: false, required: true this._vnetConfiguration = new PaloAltoNextGenerationFirewallVirtualNetworkPanoramaNetworkProfileVnetConfigurationOutputReference(this, "vnet_configuration"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._egressNatIpAddressIds !== undefined) { hasAnyValues = true; internalValueResult.egressNatIpAddressIds = this._egressNatIpAddressIds; } if (this._publicIpAddressIds !== undefined) { hasAnyValues = true; internalValueResult.publicIpAddressIds = this._publicIpAddressIds; } if (this._trustedAddressRanges !== undefined) { hasAnyValues = true; internalValueResult.trustedAddressRanges = this._trustedAddressRanges; } if (this._vnetConfiguration?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.vnetConfiguration = this._vnetConfiguration?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._egressNatIpAddressIds = undefined; this._publicIpAddressIds = undefined; this._trustedAddressRanges = undefined; this._vnetConfiguration.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._egressNatIpAddressIds = value.egressNatIpAddressIds; this._publicIpAddressIds = value.publicIpAddressIds; this._trustedAddressRanges = value.trustedAddressRanges; this._vnetConfiguration.internalValue = value.vnetConfiguration; } } get egressNatIpAddressIds() { return this.getListAttribute('egress_nat_ip_address_ids'); } set egressNatIpAddressIds(value) { this._egressNatIpAddressIds = value; } resetEgressNatIpAddressIds() { this._egressNatIpAddressIds = undefined; } // Temporarily expose input value. Use with caution. get egressNatIpAddressIdsInput() { return this._egressNatIpAddressIds; } // egress_nat_ip_addresses - computed: true, optional: false, required: false get egressNatIpAddresses() { return this.getListAttribute('egress_nat_ip_addresses'); } get publicIpAddressIds() { return this.getListAttribute('public_ip_address_ids'); } set publicIpAddressIds(value) { this._publicIpAddressIds = value; } // Temporarily expose input value. Use with caution. get publicIpAddressIdsInput() { return this._publicIpAddressIds; } // public_ip_addresses - computed: true, optional: false, required: false get publicIpAddresses() { return this.getListAttribute('public_ip_addresses'); } get trustedAddressRanges() { return this.getListAttribute('trusted_address_ranges'); } set trustedAddressRanges(value) { this._trustedAddressRanges = value; } resetTrustedAddressRanges() { this._trustedAddressRanges = undefined; } // Temporarily expose input value. Use with caution. get trustedAddressRangesInput() { return this._trustedAddressRanges; } get vnetConfiguration() { return this._vnetConfiguration; } putVnetConfiguration(value) { this._vnetConfiguration.internalValue = value; } // Temporarily expose input value. Use with caution. get vnetConfigurationInput() { return this._vnetConfiguration.internalValue; } } exports.PaloAltoNextGenerationFirewallVirtualNetworkPanoramaNetworkProfileOutputReference = PaloAltoNextGenerationFirewallVirtualNetworkPanoramaNetworkProfileOutputReference; _j = JSII_RTTI_SYMBOL_1; PaloAltoNextGenerationFirewallVirtualNetworkPanoramaNetworkProfileOutputReference[_j] = { fqn: "@cdktf/provider-azurerm.paloAltoNextGenerationFirewallVirtualNetworkPanorama.PaloAltoNextGenerationFirewallVirtualNetworkPanoramaNetworkProfileOutputReference", version: "12.27.0" }; function paloAltoNextGenerationFirewallVirtualNetworkPanoramaTimeoutsToTerraform(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.paloAltoNextGenerationFirewallVirtualNetworkPanoramaTimeoutsToTerraform = paloAltoNextGenerationFirewallVirtualNetworkPanoramaTimeoutsToTerraform; function paloAltoNextGenerationFirewallVirtualNetworkPanoramaTimeoutsToHclTerraform(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.paloAltoNextGenerationFirewallVirtualNetworkPanoramaTimeoutsToHclTerraform = paloAltoNextGenerationFirewallVirtualNetworkPanoramaTimeoutsToHclTerraform; class PaloAltoNextGenerationFirewallVirtualNetworkPanoramaTimeoutsOutputReference 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.PaloAltoNextGenerationFirewallVirtualNetworkPanoramaTimeoutsOutputReference = PaloAltoNextGenerationFirewallVirtualNetworkPanoramaTimeoutsOutputReference; _k = JSII_RTTI_SYMBOL_1; PaloAltoNextGenerationFirewallVirtualNetworkPanoramaTimeoutsOutputReference[_k] = { fqn: "@cdktf/provider-azurerm.paloAltoNextGenerationFirewallVirtualNetworkPanorama.PaloAltoNextGenerationFirewallVirtualNetworkPanoramaTimeoutsOutputReference", version: "12.27.0" }; /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/palo_alto_next_generation_firewall_virtual_network_panorama azurerm_palo_alto_next_generation_firewall_virtual_network_panorama} */ class PaloAltoNextGenerationFirewallVirtualNetworkPanorama extends cdktf.TerraformResource { // ============== // STATIC Methods // ======