UNPKG

@cdktf/provider-newrelic

Version:

Prebuilt newrelic Provider for Terraform CDK (cdktf)

1,076 lines • 621 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, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8; Object.defineProperty(exports, "__esModule", { value: true }); exports.CloudAzureIntegrations = exports.CloudAzureIntegrationsVpnGatewayOutputReference = exports.CloudAzureIntegrationsVmsOutputReference = exports.CloudAzureIntegrationsVirtualNetworksOutputReference = exports.CloudAzureIntegrationsVirtualMachineOutputReference = exports.CloudAzureIntegrationsStorageOutputReference = exports.CloudAzureIntegrationsSqlManagedOutputReference = exports.CloudAzureIntegrationsSqlOutputReference = exports.CloudAzureIntegrationsServiceBusOutputReference = exports.CloudAzureIntegrationsRedisCacheOutputReference = exports.CloudAzureIntegrationsPowerBiDedicatedOutputReference = exports.CloudAzureIntegrationsPostgresqlFlexibleOutputReference = exports.CloudAzureIntegrationsPostgresqlOutputReference = exports.CloudAzureIntegrationsMysqlFlexibleOutputReference = exports.CloudAzureIntegrationsMysqlOutputReference = exports.CloudAzureIntegrationsMonitorOutputReference = exports.CloudAzureIntegrationsMariaDbOutputReference = exports.CloudAzureIntegrationsMachineLearningOutputReference = exports.CloudAzureIntegrationsLogicAppsOutputReference = exports.CloudAzureIntegrationsLoadBalancerOutputReference = exports.CloudAzureIntegrationsKeyVaultOutputReference = exports.CloudAzureIntegrationsFunctionsOutputReference = exports.CloudAzureIntegrationsFrontDoorOutputReference = exports.CloudAzureIntegrationsFirewallsOutputReference = exports.CloudAzureIntegrationsExpressRouteOutputReference = exports.CloudAzureIntegrationsEventHubOutputReference = exports.CloudAzureIntegrationsDataFactoryOutputReference = exports.CloudAzureIntegrationsCostManagementOutputReference = exports.CloudAzureIntegrationsCosmosDbOutputReference = exports.CloudAzureIntegrationsContainersOutputReference = exports.CloudAzureIntegrationsAppServiceOutputReference = exports.CloudAzureIntegrationsAppGatewayOutputReference = exports.CloudAzureIntegrationsApiManagementOutputReference = void 0; exports.cloudAzureIntegrationsApiManagementToTerraform = cloudAzureIntegrationsApiManagementToTerraform; exports.cloudAzureIntegrationsApiManagementToHclTerraform = cloudAzureIntegrationsApiManagementToHclTerraform; exports.cloudAzureIntegrationsAppGatewayToTerraform = cloudAzureIntegrationsAppGatewayToTerraform; exports.cloudAzureIntegrationsAppGatewayToHclTerraform = cloudAzureIntegrationsAppGatewayToHclTerraform; exports.cloudAzureIntegrationsAppServiceToTerraform = cloudAzureIntegrationsAppServiceToTerraform; exports.cloudAzureIntegrationsAppServiceToHclTerraform = cloudAzureIntegrationsAppServiceToHclTerraform; exports.cloudAzureIntegrationsContainersToTerraform = cloudAzureIntegrationsContainersToTerraform; exports.cloudAzureIntegrationsContainersToHclTerraform = cloudAzureIntegrationsContainersToHclTerraform; exports.cloudAzureIntegrationsCosmosDbToTerraform = cloudAzureIntegrationsCosmosDbToTerraform; exports.cloudAzureIntegrationsCosmosDbToHclTerraform = cloudAzureIntegrationsCosmosDbToHclTerraform; exports.cloudAzureIntegrationsCostManagementToTerraform = cloudAzureIntegrationsCostManagementToTerraform; exports.cloudAzureIntegrationsCostManagementToHclTerraform = cloudAzureIntegrationsCostManagementToHclTerraform; exports.cloudAzureIntegrationsDataFactoryToTerraform = cloudAzureIntegrationsDataFactoryToTerraform; exports.cloudAzureIntegrationsDataFactoryToHclTerraform = cloudAzureIntegrationsDataFactoryToHclTerraform; exports.cloudAzureIntegrationsEventHubToTerraform = cloudAzureIntegrationsEventHubToTerraform; exports.cloudAzureIntegrationsEventHubToHclTerraform = cloudAzureIntegrationsEventHubToHclTerraform; exports.cloudAzureIntegrationsExpressRouteToTerraform = cloudAzureIntegrationsExpressRouteToTerraform; exports.cloudAzureIntegrationsExpressRouteToHclTerraform = cloudAzureIntegrationsExpressRouteToHclTerraform; exports.cloudAzureIntegrationsFirewallsToTerraform = cloudAzureIntegrationsFirewallsToTerraform; exports.cloudAzureIntegrationsFirewallsToHclTerraform = cloudAzureIntegrationsFirewallsToHclTerraform; exports.cloudAzureIntegrationsFrontDoorToTerraform = cloudAzureIntegrationsFrontDoorToTerraform; exports.cloudAzureIntegrationsFrontDoorToHclTerraform = cloudAzureIntegrationsFrontDoorToHclTerraform; exports.cloudAzureIntegrationsFunctionsToTerraform = cloudAzureIntegrationsFunctionsToTerraform; exports.cloudAzureIntegrationsFunctionsToHclTerraform = cloudAzureIntegrationsFunctionsToHclTerraform; exports.cloudAzureIntegrationsKeyVaultToTerraform = cloudAzureIntegrationsKeyVaultToTerraform; exports.cloudAzureIntegrationsKeyVaultToHclTerraform = cloudAzureIntegrationsKeyVaultToHclTerraform; exports.cloudAzureIntegrationsLoadBalancerToTerraform = cloudAzureIntegrationsLoadBalancerToTerraform; exports.cloudAzureIntegrationsLoadBalancerToHclTerraform = cloudAzureIntegrationsLoadBalancerToHclTerraform; exports.cloudAzureIntegrationsLogicAppsToTerraform = cloudAzureIntegrationsLogicAppsToTerraform; exports.cloudAzureIntegrationsLogicAppsToHclTerraform = cloudAzureIntegrationsLogicAppsToHclTerraform; exports.cloudAzureIntegrationsMachineLearningToTerraform = cloudAzureIntegrationsMachineLearningToTerraform; exports.cloudAzureIntegrationsMachineLearningToHclTerraform = cloudAzureIntegrationsMachineLearningToHclTerraform; exports.cloudAzureIntegrationsMariaDbToTerraform = cloudAzureIntegrationsMariaDbToTerraform; exports.cloudAzureIntegrationsMariaDbToHclTerraform = cloudAzureIntegrationsMariaDbToHclTerraform; exports.cloudAzureIntegrationsMonitorToTerraform = cloudAzureIntegrationsMonitorToTerraform; exports.cloudAzureIntegrationsMonitorToHclTerraform = cloudAzureIntegrationsMonitorToHclTerraform; exports.cloudAzureIntegrationsMysqlToTerraform = cloudAzureIntegrationsMysqlToTerraform; exports.cloudAzureIntegrationsMysqlToHclTerraform = cloudAzureIntegrationsMysqlToHclTerraform; exports.cloudAzureIntegrationsMysqlFlexibleToTerraform = cloudAzureIntegrationsMysqlFlexibleToTerraform; exports.cloudAzureIntegrationsMysqlFlexibleToHclTerraform = cloudAzureIntegrationsMysqlFlexibleToHclTerraform; exports.cloudAzureIntegrationsPostgresqlToTerraform = cloudAzureIntegrationsPostgresqlToTerraform; exports.cloudAzureIntegrationsPostgresqlToHclTerraform = cloudAzureIntegrationsPostgresqlToHclTerraform; exports.cloudAzureIntegrationsPostgresqlFlexibleToTerraform = cloudAzureIntegrationsPostgresqlFlexibleToTerraform; exports.cloudAzureIntegrationsPostgresqlFlexibleToHclTerraform = cloudAzureIntegrationsPostgresqlFlexibleToHclTerraform; exports.cloudAzureIntegrationsPowerBiDedicatedToTerraform = cloudAzureIntegrationsPowerBiDedicatedToTerraform; exports.cloudAzureIntegrationsPowerBiDedicatedToHclTerraform = cloudAzureIntegrationsPowerBiDedicatedToHclTerraform; exports.cloudAzureIntegrationsRedisCacheToTerraform = cloudAzureIntegrationsRedisCacheToTerraform; exports.cloudAzureIntegrationsRedisCacheToHclTerraform = cloudAzureIntegrationsRedisCacheToHclTerraform; exports.cloudAzureIntegrationsServiceBusToTerraform = cloudAzureIntegrationsServiceBusToTerraform; exports.cloudAzureIntegrationsServiceBusToHclTerraform = cloudAzureIntegrationsServiceBusToHclTerraform; exports.cloudAzureIntegrationsSqlToTerraform = cloudAzureIntegrationsSqlToTerraform; exports.cloudAzureIntegrationsSqlToHclTerraform = cloudAzureIntegrationsSqlToHclTerraform; exports.cloudAzureIntegrationsSqlManagedToTerraform = cloudAzureIntegrationsSqlManagedToTerraform; exports.cloudAzureIntegrationsSqlManagedToHclTerraform = cloudAzureIntegrationsSqlManagedToHclTerraform; exports.cloudAzureIntegrationsStorageToTerraform = cloudAzureIntegrationsStorageToTerraform; exports.cloudAzureIntegrationsStorageToHclTerraform = cloudAzureIntegrationsStorageToHclTerraform; exports.cloudAzureIntegrationsVirtualMachineToTerraform = cloudAzureIntegrationsVirtualMachineToTerraform; exports.cloudAzureIntegrationsVirtualMachineToHclTerraform = cloudAzureIntegrationsVirtualMachineToHclTerraform; exports.cloudAzureIntegrationsVirtualNetworksToTerraform = cloudAzureIntegrationsVirtualNetworksToTerraform; exports.cloudAzureIntegrationsVirtualNetworksToHclTerraform = cloudAzureIntegrationsVirtualNetworksToHclTerraform; exports.cloudAzureIntegrationsVmsToTerraform = cloudAzureIntegrationsVmsToTerraform; exports.cloudAzureIntegrationsVmsToHclTerraform = cloudAzureIntegrationsVmsToHclTerraform; exports.cloudAzureIntegrationsVpnGatewayToTerraform = cloudAzureIntegrationsVpnGatewayToTerraform; exports.cloudAzureIntegrationsVpnGatewayToHclTerraform = cloudAzureIntegrationsVpnGatewayToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function cloudAzureIntegrationsApiManagementToTerraform(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 { metrics_polling_interval: cdktf.numberToTerraform(struct.metricsPollingInterval), resource_groups: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.resourceGroups), }; } function cloudAzureIntegrationsApiManagementToHclTerraform(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 = { metrics_polling_interval: { value: cdktf.numberToHclTerraform(struct.metricsPollingInterval), isBlock: false, type: "simple", storageClassType: "number", }, resource_groups: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.resourceGroups), isBlock: false, type: "list", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CloudAzureIntegrationsApiManagementOutputReference 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._metricsPollingInterval !== undefined) { hasAnyValues = true; internalValueResult.metricsPollingInterval = this._metricsPollingInterval; } if (this._resourceGroups !== undefined) { hasAnyValues = true; internalValueResult.resourceGroups = this._resourceGroups; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._metricsPollingInterval = undefined; this._resourceGroups = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._metricsPollingInterval = value.metricsPollingInterval; this._resourceGroups = value.resourceGroups; } } get metricsPollingInterval() { return this.getNumberAttribute('metrics_polling_interval'); } set metricsPollingInterval(value) { this._metricsPollingInterval = value; } resetMetricsPollingInterval() { this._metricsPollingInterval = undefined; } // Temporarily expose input value. Use with caution. get metricsPollingIntervalInput() { return this._metricsPollingInterval; } get resourceGroups() { return this.getListAttribute('resource_groups'); } set resourceGroups(value) { this._resourceGroups = value; } resetResourceGroups() { this._resourceGroups = undefined; } // Temporarily expose input value. Use with caution. get resourceGroupsInput() { return this._resourceGroups; } } exports.CloudAzureIntegrationsApiManagementOutputReference = CloudAzureIntegrationsApiManagementOutputReference; _a = JSII_RTTI_SYMBOL_1; CloudAzureIntegrationsApiManagementOutputReference[_a] = { fqn: "@cdktf/provider-newrelic.cloudAzureIntegrations.CloudAzureIntegrationsApiManagementOutputReference", version: "12.28.0" }; function cloudAzureIntegrationsAppGatewayToTerraform(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 { metrics_polling_interval: cdktf.numberToTerraform(struct.metricsPollingInterval), resource_groups: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.resourceGroups), }; } function cloudAzureIntegrationsAppGatewayToHclTerraform(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 = { metrics_polling_interval: { value: cdktf.numberToHclTerraform(struct.metricsPollingInterval), isBlock: false, type: "simple", storageClassType: "number", }, resource_groups: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.resourceGroups), isBlock: false, type: "list", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CloudAzureIntegrationsAppGatewayOutputReference 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._metricsPollingInterval !== undefined) { hasAnyValues = true; internalValueResult.metricsPollingInterval = this._metricsPollingInterval; } if (this._resourceGroups !== undefined) { hasAnyValues = true; internalValueResult.resourceGroups = this._resourceGroups; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._metricsPollingInterval = undefined; this._resourceGroups = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._metricsPollingInterval = value.metricsPollingInterval; this._resourceGroups = value.resourceGroups; } } get metricsPollingInterval() { return this.getNumberAttribute('metrics_polling_interval'); } set metricsPollingInterval(value) { this._metricsPollingInterval = value; } resetMetricsPollingInterval() { this._metricsPollingInterval = undefined; } // Temporarily expose input value. Use with caution. get metricsPollingIntervalInput() { return this._metricsPollingInterval; } get resourceGroups() { return this.getListAttribute('resource_groups'); } set resourceGroups(value) { this._resourceGroups = value; } resetResourceGroups() { this._resourceGroups = undefined; } // Temporarily expose input value. Use with caution. get resourceGroupsInput() { return this._resourceGroups; } } exports.CloudAzureIntegrationsAppGatewayOutputReference = CloudAzureIntegrationsAppGatewayOutputReference; _b = JSII_RTTI_SYMBOL_1; CloudAzureIntegrationsAppGatewayOutputReference[_b] = { fqn: "@cdktf/provider-newrelic.cloudAzureIntegrations.CloudAzureIntegrationsAppGatewayOutputReference", version: "12.28.0" }; function cloudAzureIntegrationsAppServiceToTerraform(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 { metrics_polling_interval: cdktf.numberToTerraform(struct.metricsPollingInterval), resource_groups: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.resourceGroups), }; } function cloudAzureIntegrationsAppServiceToHclTerraform(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 = { metrics_polling_interval: { value: cdktf.numberToHclTerraform(struct.metricsPollingInterval), isBlock: false, type: "simple", storageClassType: "number", }, resource_groups: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.resourceGroups), isBlock: false, type: "list", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CloudAzureIntegrationsAppServiceOutputReference 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._metricsPollingInterval !== undefined) { hasAnyValues = true; internalValueResult.metricsPollingInterval = this._metricsPollingInterval; } if (this._resourceGroups !== undefined) { hasAnyValues = true; internalValueResult.resourceGroups = this._resourceGroups; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._metricsPollingInterval = undefined; this._resourceGroups = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._metricsPollingInterval = value.metricsPollingInterval; this._resourceGroups = value.resourceGroups; } } get metricsPollingInterval() { return this.getNumberAttribute('metrics_polling_interval'); } set metricsPollingInterval(value) { this._metricsPollingInterval = value; } resetMetricsPollingInterval() { this._metricsPollingInterval = undefined; } // Temporarily expose input value. Use with caution. get metricsPollingIntervalInput() { return this._metricsPollingInterval; } get resourceGroups() { return this.getListAttribute('resource_groups'); } set resourceGroups(value) { this._resourceGroups = value; } resetResourceGroups() { this._resourceGroups = undefined; } // Temporarily expose input value. Use with caution. get resourceGroupsInput() { return this._resourceGroups; } } exports.CloudAzureIntegrationsAppServiceOutputReference = CloudAzureIntegrationsAppServiceOutputReference; _c = JSII_RTTI_SYMBOL_1; CloudAzureIntegrationsAppServiceOutputReference[_c] = { fqn: "@cdktf/provider-newrelic.cloudAzureIntegrations.CloudAzureIntegrationsAppServiceOutputReference", version: "12.28.0" }; function cloudAzureIntegrationsContainersToTerraform(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 { metrics_polling_interval: cdktf.numberToTerraform(struct.metricsPollingInterval), resource_groups: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.resourceGroups), }; } function cloudAzureIntegrationsContainersToHclTerraform(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 = { metrics_polling_interval: { value: cdktf.numberToHclTerraform(struct.metricsPollingInterval), isBlock: false, type: "simple", storageClassType: "number", }, resource_groups: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.resourceGroups), isBlock: false, type: "list", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CloudAzureIntegrationsContainersOutputReference 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._metricsPollingInterval !== undefined) { hasAnyValues = true; internalValueResult.metricsPollingInterval = this._metricsPollingInterval; } if (this._resourceGroups !== undefined) { hasAnyValues = true; internalValueResult.resourceGroups = this._resourceGroups; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._metricsPollingInterval = undefined; this._resourceGroups = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._metricsPollingInterval = value.metricsPollingInterval; this._resourceGroups = value.resourceGroups; } } get metricsPollingInterval() { return this.getNumberAttribute('metrics_polling_interval'); } set metricsPollingInterval(value) { this._metricsPollingInterval = value; } resetMetricsPollingInterval() { this._metricsPollingInterval = undefined; } // Temporarily expose input value. Use with caution. get metricsPollingIntervalInput() { return this._metricsPollingInterval; } get resourceGroups() { return this.getListAttribute('resource_groups'); } set resourceGroups(value) { this._resourceGroups = value; } resetResourceGroups() { this._resourceGroups = undefined; } // Temporarily expose input value. Use with caution. get resourceGroupsInput() { return this._resourceGroups; } } exports.CloudAzureIntegrationsContainersOutputReference = CloudAzureIntegrationsContainersOutputReference; _d = JSII_RTTI_SYMBOL_1; CloudAzureIntegrationsContainersOutputReference[_d] = { fqn: "@cdktf/provider-newrelic.cloudAzureIntegrations.CloudAzureIntegrationsContainersOutputReference", version: "12.28.0" }; function cloudAzureIntegrationsCosmosDbToTerraform(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 { metrics_polling_interval: cdktf.numberToTerraform(struct.metricsPollingInterval), resource_groups: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.resourceGroups), }; } function cloudAzureIntegrationsCosmosDbToHclTerraform(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 = { metrics_polling_interval: { value: cdktf.numberToHclTerraform(struct.metricsPollingInterval), isBlock: false, type: "simple", storageClassType: "number", }, resource_groups: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.resourceGroups), isBlock: false, type: "list", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CloudAzureIntegrationsCosmosDbOutputReference 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._metricsPollingInterval !== undefined) { hasAnyValues = true; internalValueResult.metricsPollingInterval = this._metricsPollingInterval; } if (this._resourceGroups !== undefined) { hasAnyValues = true; internalValueResult.resourceGroups = this._resourceGroups; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._metricsPollingInterval = undefined; this._resourceGroups = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._metricsPollingInterval = value.metricsPollingInterval; this._resourceGroups = value.resourceGroups; } } get metricsPollingInterval() { return this.getNumberAttribute('metrics_polling_interval'); } set metricsPollingInterval(value) { this._metricsPollingInterval = value; } resetMetricsPollingInterval() { this._metricsPollingInterval = undefined; } // Temporarily expose input value. Use with caution. get metricsPollingIntervalInput() { return this._metricsPollingInterval; } get resourceGroups() { return this.getListAttribute('resource_groups'); } set resourceGroups(value) { this._resourceGroups = value; } resetResourceGroups() { this._resourceGroups = undefined; } // Temporarily expose input value. Use with caution. get resourceGroupsInput() { return this._resourceGroups; } } exports.CloudAzureIntegrationsCosmosDbOutputReference = CloudAzureIntegrationsCosmosDbOutputReference; _e = JSII_RTTI_SYMBOL_1; CloudAzureIntegrationsCosmosDbOutputReference[_e] = { fqn: "@cdktf/provider-newrelic.cloudAzureIntegrations.CloudAzureIntegrationsCosmosDbOutputReference", version: "12.28.0" }; function cloudAzureIntegrationsCostManagementToTerraform(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 { metrics_polling_interval: cdktf.numberToTerraform(struct.metricsPollingInterval), tag_keys: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.tagKeys), }; } function cloudAzureIntegrationsCostManagementToHclTerraform(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 = { metrics_polling_interval: { value: cdktf.numberToHclTerraform(struct.metricsPollingInterval), isBlock: false, type: "simple", storageClassType: "number", }, tag_keys: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.tagKeys), isBlock: false, type: "list", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CloudAzureIntegrationsCostManagementOutputReference 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._metricsPollingInterval !== undefined) { hasAnyValues = true; internalValueResult.metricsPollingInterval = this._metricsPollingInterval; } if (this._tagKeys !== undefined) { hasAnyValues = true; internalValueResult.tagKeys = this._tagKeys; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._metricsPollingInterval = undefined; this._tagKeys = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._metricsPollingInterval = value.metricsPollingInterval; this._tagKeys = value.tagKeys; } } get metricsPollingInterval() { return this.getNumberAttribute('metrics_polling_interval'); } set metricsPollingInterval(value) { this._metricsPollingInterval = value; } resetMetricsPollingInterval() { this._metricsPollingInterval = undefined; } // Temporarily expose input value. Use with caution. get metricsPollingIntervalInput() { return this._metricsPollingInterval; } get tagKeys() { return this.getListAttribute('tag_keys'); } set tagKeys(value) { this._tagKeys = value; } resetTagKeys() { this._tagKeys = undefined; } // Temporarily expose input value. Use with caution. get tagKeysInput() { return this._tagKeys; } } exports.CloudAzureIntegrationsCostManagementOutputReference = CloudAzureIntegrationsCostManagementOutputReference; _f = JSII_RTTI_SYMBOL_1; CloudAzureIntegrationsCostManagementOutputReference[_f] = { fqn: "@cdktf/provider-newrelic.cloudAzureIntegrations.CloudAzureIntegrationsCostManagementOutputReference", version: "12.28.0" }; function cloudAzureIntegrationsDataFactoryToTerraform(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 { metrics_polling_interval: cdktf.numberToTerraform(struct.metricsPollingInterval), resource_groups: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.resourceGroups), }; } function cloudAzureIntegrationsDataFactoryToHclTerraform(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 = { metrics_polling_interval: { value: cdktf.numberToHclTerraform(struct.metricsPollingInterval), isBlock: false, type: "simple", storageClassType: "number", }, resource_groups: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.resourceGroups), isBlock: false, type: "list", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CloudAzureIntegrationsDataFactoryOutputReference 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._metricsPollingInterval !== undefined) { hasAnyValues = true; internalValueResult.metricsPollingInterval = this._metricsPollingInterval; } if (this._resourceGroups !== undefined) { hasAnyValues = true; internalValueResult.resourceGroups = this._resourceGroups; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._metricsPollingInterval = undefined; this._resourceGroups = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._metricsPollingInterval = value.metricsPollingInterval; this._resourceGroups = value.resourceGroups; } } get metricsPollingInterval() { return this.getNumberAttribute('metrics_polling_interval'); } set metricsPollingInterval(value) { this._metricsPollingInterval = value; } resetMetricsPollingInterval() { this._metricsPollingInterval = undefined; } // Temporarily expose input value. Use with caution. get metricsPollingIntervalInput() { return this._metricsPollingInterval; } get resourceGroups() { return this.getListAttribute('resource_groups'); } set resourceGroups(value) { this._resourceGroups = value; } resetResourceGroups() { this._resourceGroups = undefined; } // Temporarily expose input value. Use with caution. get resourceGroupsInput() { return this._resourceGroups; } } exports.CloudAzureIntegrationsDataFactoryOutputReference = CloudAzureIntegrationsDataFactoryOutputReference; _g = JSII_RTTI_SYMBOL_1; CloudAzureIntegrationsDataFactoryOutputReference[_g] = { fqn: "@cdktf/provider-newrelic.cloudAzureIntegrations.CloudAzureIntegrationsDataFactoryOutputReference", version: "12.28.0" }; function cloudAzureIntegrationsEventHubToTerraform(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 { metrics_polling_interval: cdktf.numberToTerraform(struct.metricsPollingInterval), resource_groups: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.resourceGroups), }; } function cloudAzureIntegrationsEventHubToHclTerraform(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 = { metrics_polling_interval: { value: cdktf.numberToHclTerraform(struct.metricsPollingInterval), isBlock: false, type: "simple", storageClassType: "number", }, resource_groups: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.resourceGroups), isBlock: false, type: "list", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CloudAzureIntegrationsEventHubOutputReference 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._metricsPollingInterval !== undefined) { hasAnyValues = true; internalValueResult.metricsPollingInterval = this._metricsPollingInterval; } if (this._resourceGroups !== undefined) { hasAnyValues = true; internalValueResult.resourceGroups = this._resourceGroups; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._metricsPollingInterval = undefined; this._resourceGroups = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._metricsPollingInterval = value.metricsPollingInterval; this._resourceGroups = value.resourceGroups; } } get metricsPollingInterval() { return this.getNumberAttribute('metrics_polling_interval'); } set metricsPollingInterval(value) { this._metricsPollingInterval = value; } resetMetricsPollingInterval() { this._metricsPollingInterval = undefined; } // Temporarily expose input value. Use with caution. get metricsPollingIntervalInput() { return this._metricsPollingInterval; } get resourceGroups() { return this.getListAttribute('resource_groups'); } set resourceGroups(value) { this._resourceGroups = value; } resetResourceGroups() { this._resourceGroups = undefined; } // Temporarily expose input value. Use with caution. get resourceGroupsInput() { return this._resourceGroups; } } exports.CloudAzureIntegrationsEventHubOutputReference = CloudAzureIntegrationsEventHubOutputReference; _h = JSII_RTTI_SYMBOL_1; CloudAzureIntegrationsEventHubOutputReference[_h] = { fqn: "@cdktf/provider-newrelic.cloudAzureIntegrations.CloudAzureIntegrationsEventHubOutputReference", version: "12.28.0" }; function cloudAzureIntegrationsExpressRouteToTerraform(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 { metrics_polling_interval: cdktf.numberToTerraform(struct.metricsPollingInterval), resource_groups: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.resourceGroups), }; } function cloudAzureIntegrationsExpressRouteToHclTerraform(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 = { metrics_polling_interval: { value: cdktf.numberToHclTerraform(struct.metricsPollingInterval), isBlock: false, type: "simple", storageClassType: "number", }, resource_groups: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.resourceGroups), isBlock: false, type: "list", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CloudAzureIntegrationsExpressRouteOutputReference 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._metricsPollingInterval !== undefined) { hasAnyValues = true; internalValueResult.metricsPollingInterval = this._metricsPollingInterval; } if (this._resourceGroups !== undefined) { hasAnyValues = true; internalValueResult.resourceGroups = this._resourceGroups; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._metricsPollingInterval = undefined; this._resourceGroups = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._metricsPollingInterval = value.metricsPollingInterval; this._resourceGroups = value.resourceGroups; } } get metricsPollingInterval() { return this.getNumberAttribute('metrics_polling_interval'); } set metricsPollingInterval(value) { this._metricsPollingInterval = value; } resetMetricsPollingInterval() { this._metricsPollingInterval = undefined; } // Temporarily expose input value. Use with caution. get metricsPollingIntervalInput() { return this._metricsPollingInterval; } get resourceGroups() { return this.getListAttribute('resource_groups'); } set resourceGroups(value) { this._resourceGroups = value; } resetResourceGroups() { this._resourceGroups = undefined; } // Temporarily expose input value. Use with caution. get resourceGroupsInput() { return this._resourceGroups; } } exports.CloudAzureIntegrationsExpressRouteOutputReference = CloudAzureIntegrationsExpressRouteOutputReference; _j = JSII_RTTI_SYMBOL_1; CloudAzureIntegrationsExpressRouteOutputReference[_j] = { fqn: "@cdktf/provider-newrelic.cloudAzureIntegrations.CloudAzureIntegrationsExpressRouteOutputReference", version: "12.28.0" }; function cloudAzureIntegrationsFirewallsToTerraform(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 { metrics_polling_interval: cdktf.numberToTerraform(struct.metricsPollingInterval), resource_groups: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.resourceGroups), }; } function cloudAzureIntegrationsFirewallsToHclTerraform(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 = { metrics_polling_interval: { value: cdktf.numberToHclTerraform(struct.metricsPollingInterval), isBlock: false, type: "simple", storageClassType: "number", }, resource_groups: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.resourceGroups), isBlock: false, type: "list", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CloudAzureIntegrationsFirewallsOutputReference 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._metricsPollingInterval !== undefined) { hasAnyValues = true; internalValueResult.metricsPollingInterval = this._metricsPollingInterval; } if (this._resourceGroups !== undefined) { hasAnyValues = true; internalValueResult.resourceGroups = this._resourceGroups; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._metricsPollingInterval = undefined; this._resourceGroups = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._metricsPollingInterval = value.metricsPollingInterval; this._resourceGroups = value.resourceGroups; } } get metricsPollingInterval() { return this.getNumberAttribute('metrics_polling_interval'); } set metricsPollingInterval(value) { this._metricsPollingInterval = value; } resetMetricsPollingInterval() { this._metricsPollingInterval = undefined; } // Temporarily expose input value. Use with caution. get metricsPollingIntervalInput() { return this._metricsPollingInterval; } get resourceGroups() { return this.getListAttribute('resource_groups'); } set resourceGroups(value) { this._resourceGroups = value; } resetResourceGroups() { this._resourceGroups = undefined; } // Temporarily expose input value. Use with caution. get resourceGroupsInput() { return this._resourceGroups; } } exports.CloudAzureIntegrationsFirewallsOutputReference = CloudAzureIntegrationsFirewallsOutputReference; _k = JSII_RTTI_SYMBOL_1; CloudAzureIntegrationsFirewallsOutputReference[_k] = { fqn: "@cdktf/provider-newrelic.cloudAzureIntegrations.CloudAzureIntegrationsFirewallsOutputReference", version: "12.28.0" }; function cloudAzureIntegrationsFrontDoorToTerraform(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-objec