UNPKG

@cdktf/provider-newrelic

Version:

Prebuilt newrelic Provider for Terraform CDK (cdktf)

1,188 lines • 538 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; Object.defineProperty(exports, "__esModule", { value: true }); exports.CloudAwsGovcloudIntegrations = exports.CloudAwsGovcloudIntegrationsSqsOutputReference = exports.CloudAwsGovcloudIntegrationsSnsOutputReference = exports.CloudAwsGovcloudIntegrationsS3OutputReference = exports.CloudAwsGovcloudIntegrationsRoute53OutputReference = exports.CloudAwsGovcloudIntegrationsRedShiftOutputReference = exports.CloudAwsGovcloudIntegrationsRdsOutputReference = exports.CloudAwsGovcloudIntegrationsLambdaOutputReference = exports.CloudAwsGovcloudIntegrationsIamOutputReference = exports.CloudAwsGovcloudIntegrationsEmrOutputReference = exports.CloudAwsGovcloudIntegrationsElbOutputReference = exports.CloudAwsGovcloudIntegrationsElasticSearchOutputReference = exports.CloudAwsGovcloudIntegrationsEc2OutputReference = exports.CloudAwsGovcloudIntegrationsEbsOutputReference = exports.CloudAwsGovcloudIntegrationsDynamoDbOutputReference = exports.CloudAwsGovcloudIntegrationsCloudtrailOutputReference = exports.CloudAwsGovcloudIntegrationsAwsStatesOutputReference = exports.CloudAwsGovcloudIntegrationsAwsDirectConnectOutputReference = exports.CloudAwsGovcloudIntegrationsAutoScalingOutputReference = exports.CloudAwsGovcloudIntegrationsApiGatewayOutputReference = exports.CloudAwsGovcloudIntegrationsAlbOutputReference = void 0; exports.cloudAwsGovcloudIntegrationsAlbToTerraform = cloudAwsGovcloudIntegrationsAlbToTerraform; exports.cloudAwsGovcloudIntegrationsAlbToHclTerraform = cloudAwsGovcloudIntegrationsAlbToHclTerraform; exports.cloudAwsGovcloudIntegrationsApiGatewayToTerraform = cloudAwsGovcloudIntegrationsApiGatewayToTerraform; exports.cloudAwsGovcloudIntegrationsApiGatewayToHclTerraform = cloudAwsGovcloudIntegrationsApiGatewayToHclTerraform; exports.cloudAwsGovcloudIntegrationsAutoScalingToTerraform = cloudAwsGovcloudIntegrationsAutoScalingToTerraform; exports.cloudAwsGovcloudIntegrationsAutoScalingToHclTerraform = cloudAwsGovcloudIntegrationsAutoScalingToHclTerraform; exports.cloudAwsGovcloudIntegrationsAwsDirectConnectToTerraform = cloudAwsGovcloudIntegrationsAwsDirectConnectToTerraform; exports.cloudAwsGovcloudIntegrationsAwsDirectConnectToHclTerraform = cloudAwsGovcloudIntegrationsAwsDirectConnectToHclTerraform; exports.cloudAwsGovcloudIntegrationsAwsStatesToTerraform = cloudAwsGovcloudIntegrationsAwsStatesToTerraform; exports.cloudAwsGovcloudIntegrationsAwsStatesToHclTerraform = cloudAwsGovcloudIntegrationsAwsStatesToHclTerraform; exports.cloudAwsGovcloudIntegrationsCloudtrailToTerraform = cloudAwsGovcloudIntegrationsCloudtrailToTerraform; exports.cloudAwsGovcloudIntegrationsCloudtrailToHclTerraform = cloudAwsGovcloudIntegrationsCloudtrailToHclTerraform; exports.cloudAwsGovcloudIntegrationsDynamoDbToTerraform = cloudAwsGovcloudIntegrationsDynamoDbToTerraform; exports.cloudAwsGovcloudIntegrationsDynamoDbToHclTerraform = cloudAwsGovcloudIntegrationsDynamoDbToHclTerraform; exports.cloudAwsGovcloudIntegrationsEbsToTerraform = cloudAwsGovcloudIntegrationsEbsToTerraform; exports.cloudAwsGovcloudIntegrationsEbsToHclTerraform = cloudAwsGovcloudIntegrationsEbsToHclTerraform; exports.cloudAwsGovcloudIntegrationsEc2ToTerraform = cloudAwsGovcloudIntegrationsEc2ToTerraform; exports.cloudAwsGovcloudIntegrationsEc2ToHclTerraform = cloudAwsGovcloudIntegrationsEc2ToHclTerraform; exports.cloudAwsGovcloudIntegrationsElasticSearchToTerraform = cloudAwsGovcloudIntegrationsElasticSearchToTerraform; exports.cloudAwsGovcloudIntegrationsElasticSearchToHclTerraform = cloudAwsGovcloudIntegrationsElasticSearchToHclTerraform; exports.cloudAwsGovcloudIntegrationsElbToTerraform = cloudAwsGovcloudIntegrationsElbToTerraform; exports.cloudAwsGovcloudIntegrationsElbToHclTerraform = cloudAwsGovcloudIntegrationsElbToHclTerraform; exports.cloudAwsGovcloudIntegrationsEmrToTerraform = cloudAwsGovcloudIntegrationsEmrToTerraform; exports.cloudAwsGovcloudIntegrationsEmrToHclTerraform = cloudAwsGovcloudIntegrationsEmrToHclTerraform; exports.cloudAwsGovcloudIntegrationsIamToTerraform = cloudAwsGovcloudIntegrationsIamToTerraform; exports.cloudAwsGovcloudIntegrationsIamToHclTerraform = cloudAwsGovcloudIntegrationsIamToHclTerraform; exports.cloudAwsGovcloudIntegrationsLambdaToTerraform = cloudAwsGovcloudIntegrationsLambdaToTerraform; exports.cloudAwsGovcloudIntegrationsLambdaToHclTerraform = cloudAwsGovcloudIntegrationsLambdaToHclTerraform; exports.cloudAwsGovcloudIntegrationsRdsToTerraform = cloudAwsGovcloudIntegrationsRdsToTerraform; exports.cloudAwsGovcloudIntegrationsRdsToHclTerraform = cloudAwsGovcloudIntegrationsRdsToHclTerraform; exports.cloudAwsGovcloudIntegrationsRedShiftToTerraform = cloudAwsGovcloudIntegrationsRedShiftToTerraform; exports.cloudAwsGovcloudIntegrationsRedShiftToHclTerraform = cloudAwsGovcloudIntegrationsRedShiftToHclTerraform; exports.cloudAwsGovcloudIntegrationsRoute53ToTerraform = cloudAwsGovcloudIntegrationsRoute53ToTerraform; exports.cloudAwsGovcloudIntegrationsRoute53ToHclTerraform = cloudAwsGovcloudIntegrationsRoute53ToHclTerraform; exports.cloudAwsGovcloudIntegrationsS3ToTerraform = cloudAwsGovcloudIntegrationsS3ToTerraform; exports.cloudAwsGovcloudIntegrationsS3ToHclTerraform = cloudAwsGovcloudIntegrationsS3ToHclTerraform; exports.cloudAwsGovcloudIntegrationsSnsToTerraform = cloudAwsGovcloudIntegrationsSnsToTerraform; exports.cloudAwsGovcloudIntegrationsSnsToHclTerraform = cloudAwsGovcloudIntegrationsSnsToHclTerraform; exports.cloudAwsGovcloudIntegrationsSqsToTerraform = cloudAwsGovcloudIntegrationsSqsToTerraform; exports.cloudAwsGovcloudIntegrationsSqsToHclTerraform = cloudAwsGovcloudIntegrationsSqsToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function cloudAwsGovcloudIntegrationsAlbToTerraform(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 { aws_regions: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.awsRegions), fetch_extended_inventory: cdktf.booleanToTerraform(struct.fetchExtendedInventory), fetch_tags: cdktf.booleanToTerraform(struct.fetchTags), load_balancer_prefixes: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.loadBalancerPrefixes), metrics_polling_interval: cdktf.numberToTerraform(struct.metricsPollingInterval), tag_key: cdktf.stringToTerraform(struct.tagKey), tag_value: cdktf.stringToTerraform(struct.tagValue), }; } function cloudAwsGovcloudIntegrationsAlbToHclTerraform(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 = { aws_regions: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.awsRegions), isBlock: false, type: "list", storageClassType: "stringList", }, fetch_extended_inventory: { value: cdktf.booleanToHclTerraform(struct.fetchExtendedInventory), isBlock: false, type: "simple", storageClassType: "boolean", }, fetch_tags: { value: cdktf.booleanToHclTerraform(struct.fetchTags), isBlock: false, type: "simple", storageClassType: "boolean", }, load_balancer_prefixes: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.loadBalancerPrefixes), isBlock: false, type: "list", storageClassType: "stringList", }, metrics_polling_interval: { value: cdktf.numberToHclTerraform(struct.metricsPollingInterval), isBlock: false, type: "simple", storageClassType: "number", }, tag_key: { value: cdktf.stringToHclTerraform(struct.tagKey), isBlock: false, type: "simple", storageClassType: "string", }, tag_value: { value: cdktf.stringToHclTerraform(struct.tagValue), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CloudAwsGovcloudIntegrationsAlbOutputReference 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._awsRegions !== undefined) { hasAnyValues = true; internalValueResult.awsRegions = this._awsRegions; } if (this._fetchExtendedInventory !== undefined) { hasAnyValues = true; internalValueResult.fetchExtendedInventory = this._fetchExtendedInventory; } if (this._fetchTags !== undefined) { hasAnyValues = true; internalValueResult.fetchTags = this._fetchTags; } if (this._loadBalancerPrefixes !== undefined) { hasAnyValues = true; internalValueResult.loadBalancerPrefixes = this._loadBalancerPrefixes; } if (this._metricsPollingInterval !== undefined) { hasAnyValues = true; internalValueResult.metricsPollingInterval = this._metricsPollingInterval; } if (this._tagKey !== undefined) { hasAnyValues = true; internalValueResult.tagKey = this._tagKey; } if (this._tagValue !== undefined) { hasAnyValues = true; internalValueResult.tagValue = this._tagValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._awsRegions = undefined; this._fetchExtendedInventory = undefined; this._fetchTags = undefined; this._loadBalancerPrefixes = undefined; this._metricsPollingInterval = undefined; this._tagKey = undefined; this._tagValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._awsRegions = value.awsRegions; this._fetchExtendedInventory = value.fetchExtendedInventory; this._fetchTags = value.fetchTags; this._loadBalancerPrefixes = value.loadBalancerPrefixes; this._metricsPollingInterval = value.metricsPollingInterval; this._tagKey = value.tagKey; this._tagValue = value.tagValue; } } get awsRegions() { return this.getListAttribute('aws_regions'); } set awsRegions(value) { this._awsRegions = value; } resetAwsRegions() { this._awsRegions = undefined; } // Temporarily expose input value. Use with caution. get awsRegionsInput() { return this._awsRegions; } get fetchExtendedInventory() { return this.getBooleanAttribute('fetch_extended_inventory'); } set fetchExtendedInventory(value) { this._fetchExtendedInventory = value; } resetFetchExtendedInventory() { this._fetchExtendedInventory = undefined; } // Temporarily expose input value. Use with caution. get fetchExtendedInventoryInput() { return this._fetchExtendedInventory; } get fetchTags() { return this.getBooleanAttribute('fetch_tags'); } set fetchTags(value) { this._fetchTags = value; } resetFetchTags() { this._fetchTags = undefined; } // Temporarily expose input value. Use with caution. get fetchTagsInput() { return this._fetchTags; } get loadBalancerPrefixes() { return this.getListAttribute('load_balancer_prefixes'); } set loadBalancerPrefixes(value) { this._loadBalancerPrefixes = value; } resetLoadBalancerPrefixes() { this._loadBalancerPrefixes = undefined; } // Temporarily expose input value. Use with caution. get loadBalancerPrefixesInput() { return this._loadBalancerPrefixes; } 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 tagKey() { return this.getStringAttribute('tag_key'); } set tagKey(value) { this._tagKey = value; } resetTagKey() { this._tagKey = undefined; } // Temporarily expose input value. Use with caution. get tagKeyInput() { return this._tagKey; } get tagValue() { return this.getStringAttribute('tag_value'); } set tagValue(value) { this._tagValue = value; } resetTagValue() { this._tagValue = undefined; } // Temporarily expose input value. Use with caution. get tagValueInput() { return this._tagValue; } } exports.CloudAwsGovcloudIntegrationsAlbOutputReference = CloudAwsGovcloudIntegrationsAlbOutputReference; _a = JSII_RTTI_SYMBOL_1; CloudAwsGovcloudIntegrationsAlbOutputReference[_a] = { fqn: "@cdktf/provider-newrelic.cloudAwsGovcloudIntegrations.CloudAwsGovcloudIntegrationsAlbOutputReference", version: "12.28.0" }; function cloudAwsGovcloudIntegrationsApiGatewayToTerraform(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 { aws_regions: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.awsRegions), metrics_polling_interval: cdktf.numberToTerraform(struct.metricsPollingInterval), stage_prefixes: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.stagePrefixes), tag_key: cdktf.stringToTerraform(struct.tagKey), tag_value: cdktf.stringToTerraform(struct.tagValue), }; } function cloudAwsGovcloudIntegrationsApiGatewayToHclTerraform(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 = { aws_regions: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.awsRegions), isBlock: false, type: "list", storageClassType: "stringList", }, metrics_polling_interval: { value: cdktf.numberToHclTerraform(struct.metricsPollingInterval), isBlock: false, type: "simple", storageClassType: "number", }, stage_prefixes: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.stagePrefixes), isBlock: false, type: "list", storageClassType: "stringList", }, tag_key: { value: cdktf.stringToHclTerraform(struct.tagKey), isBlock: false, type: "simple", storageClassType: "string", }, tag_value: { value: cdktf.stringToHclTerraform(struct.tagValue), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CloudAwsGovcloudIntegrationsApiGatewayOutputReference 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._awsRegions !== undefined) { hasAnyValues = true; internalValueResult.awsRegions = this._awsRegions; } if (this._metricsPollingInterval !== undefined) { hasAnyValues = true; internalValueResult.metricsPollingInterval = this._metricsPollingInterval; } if (this._stagePrefixes !== undefined) { hasAnyValues = true; internalValueResult.stagePrefixes = this._stagePrefixes; } if (this._tagKey !== undefined) { hasAnyValues = true; internalValueResult.tagKey = this._tagKey; } if (this._tagValue !== undefined) { hasAnyValues = true; internalValueResult.tagValue = this._tagValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._awsRegions = undefined; this._metricsPollingInterval = undefined; this._stagePrefixes = undefined; this._tagKey = undefined; this._tagValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._awsRegions = value.awsRegions; this._metricsPollingInterval = value.metricsPollingInterval; this._stagePrefixes = value.stagePrefixes; this._tagKey = value.tagKey; this._tagValue = value.tagValue; } } get awsRegions() { return this.getListAttribute('aws_regions'); } set awsRegions(value) { this._awsRegions = value; } resetAwsRegions() { this._awsRegions = undefined; } // Temporarily expose input value. Use with caution. get awsRegionsInput() { return this._awsRegions; } 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 stagePrefixes() { return this.getListAttribute('stage_prefixes'); } set stagePrefixes(value) { this._stagePrefixes = value; } resetStagePrefixes() { this._stagePrefixes = undefined; } // Temporarily expose input value. Use with caution. get stagePrefixesInput() { return this._stagePrefixes; } get tagKey() { return this.getStringAttribute('tag_key'); } set tagKey(value) { this._tagKey = value; } resetTagKey() { this._tagKey = undefined; } // Temporarily expose input value. Use with caution. get tagKeyInput() { return this._tagKey; } get tagValue() { return this.getStringAttribute('tag_value'); } set tagValue(value) { this._tagValue = value; } resetTagValue() { this._tagValue = undefined; } // Temporarily expose input value. Use with caution. get tagValueInput() { return this._tagValue; } } exports.CloudAwsGovcloudIntegrationsApiGatewayOutputReference = CloudAwsGovcloudIntegrationsApiGatewayOutputReference; _b = JSII_RTTI_SYMBOL_1; CloudAwsGovcloudIntegrationsApiGatewayOutputReference[_b] = { fqn: "@cdktf/provider-newrelic.cloudAwsGovcloudIntegrations.CloudAwsGovcloudIntegrationsApiGatewayOutputReference", version: "12.28.0" }; function cloudAwsGovcloudIntegrationsAutoScalingToTerraform(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 { aws_regions: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.awsRegions), metrics_polling_interval: cdktf.numberToTerraform(struct.metricsPollingInterval), }; } function cloudAwsGovcloudIntegrationsAutoScalingToHclTerraform(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 = { aws_regions: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.awsRegions), isBlock: false, type: "list", storageClassType: "stringList", }, metrics_polling_interval: { value: cdktf.numberToHclTerraform(struct.metricsPollingInterval), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CloudAwsGovcloudIntegrationsAutoScalingOutputReference 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._awsRegions !== undefined) { hasAnyValues = true; internalValueResult.awsRegions = this._awsRegions; } if (this._metricsPollingInterval !== undefined) { hasAnyValues = true; internalValueResult.metricsPollingInterval = this._metricsPollingInterval; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._awsRegions = undefined; this._metricsPollingInterval = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._awsRegions = value.awsRegions; this._metricsPollingInterval = value.metricsPollingInterval; } } get awsRegions() { return this.getListAttribute('aws_regions'); } set awsRegions(value) { this._awsRegions = value; } resetAwsRegions() { this._awsRegions = undefined; } // Temporarily expose input value. Use with caution. get awsRegionsInput() { return this._awsRegions; } 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; } } exports.CloudAwsGovcloudIntegrationsAutoScalingOutputReference = CloudAwsGovcloudIntegrationsAutoScalingOutputReference; _c = JSII_RTTI_SYMBOL_1; CloudAwsGovcloudIntegrationsAutoScalingOutputReference[_c] = { fqn: "@cdktf/provider-newrelic.cloudAwsGovcloudIntegrations.CloudAwsGovcloudIntegrationsAutoScalingOutputReference", version: "12.28.0" }; function cloudAwsGovcloudIntegrationsAwsDirectConnectToTerraform(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 { aws_regions: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.awsRegions), metrics_polling_interval: cdktf.numberToTerraform(struct.metricsPollingInterval), }; } function cloudAwsGovcloudIntegrationsAwsDirectConnectToHclTerraform(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 = { aws_regions: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.awsRegions), isBlock: false, type: "list", storageClassType: "stringList", }, metrics_polling_interval: { value: cdktf.numberToHclTerraform(struct.metricsPollingInterval), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CloudAwsGovcloudIntegrationsAwsDirectConnectOutputReference 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._awsRegions !== undefined) { hasAnyValues = true; internalValueResult.awsRegions = this._awsRegions; } if (this._metricsPollingInterval !== undefined) { hasAnyValues = true; internalValueResult.metricsPollingInterval = this._metricsPollingInterval; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._awsRegions = undefined; this._metricsPollingInterval = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._awsRegions = value.awsRegions; this._metricsPollingInterval = value.metricsPollingInterval; } } get awsRegions() { return this.getListAttribute('aws_regions'); } set awsRegions(value) { this._awsRegions = value; } resetAwsRegions() { this._awsRegions = undefined; } // Temporarily expose input value. Use with caution. get awsRegionsInput() { return this._awsRegions; } 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; } } exports.CloudAwsGovcloudIntegrationsAwsDirectConnectOutputReference = CloudAwsGovcloudIntegrationsAwsDirectConnectOutputReference; _d = JSII_RTTI_SYMBOL_1; CloudAwsGovcloudIntegrationsAwsDirectConnectOutputReference[_d] = { fqn: "@cdktf/provider-newrelic.cloudAwsGovcloudIntegrations.CloudAwsGovcloudIntegrationsAwsDirectConnectOutputReference", version: "12.28.0" }; function cloudAwsGovcloudIntegrationsAwsStatesToTerraform(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 { aws_regions: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.awsRegions), metrics_polling_interval: cdktf.numberToTerraform(struct.metricsPollingInterval), }; } function cloudAwsGovcloudIntegrationsAwsStatesToHclTerraform(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 = { aws_regions: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.awsRegions), isBlock: false, type: "list", storageClassType: "stringList", }, metrics_polling_interval: { value: cdktf.numberToHclTerraform(struct.metricsPollingInterval), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CloudAwsGovcloudIntegrationsAwsStatesOutputReference 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._awsRegions !== undefined) { hasAnyValues = true; internalValueResult.awsRegions = this._awsRegions; } if (this._metricsPollingInterval !== undefined) { hasAnyValues = true; internalValueResult.metricsPollingInterval = this._metricsPollingInterval; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._awsRegions = undefined; this._metricsPollingInterval = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._awsRegions = value.awsRegions; this._metricsPollingInterval = value.metricsPollingInterval; } } get awsRegions() { return this.getListAttribute('aws_regions'); } set awsRegions(value) { this._awsRegions = value; } resetAwsRegions() { this._awsRegions = undefined; } // Temporarily expose input value. Use with caution. get awsRegionsInput() { return this._awsRegions; } 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; } } exports.CloudAwsGovcloudIntegrationsAwsStatesOutputReference = CloudAwsGovcloudIntegrationsAwsStatesOutputReference; _e = JSII_RTTI_SYMBOL_1; CloudAwsGovcloudIntegrationsAwsStatesOutputReference[_e] = { fqn: "@cdktf/provider-newrelic.cloudAwsGovcloudIntegrations.CloudAwsGovcloudIntegrationsAwsStatesOutputReference", version: "12.28.0" }; function cloudAwsGovcloudIntegrationsCloudtrailToTerraform(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 { aws_regions: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.awsRegions), metrics_polling_interval: cdktf.numberToTerraform(struct.metricsPollingInterval), }; } function cloudAwsGovcloudIntegrationsCloudtrailToHclTerraform(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 = { aws_regions: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.awsRegions), isBlock: false, type: "list", storageClassType: "stringList", }, metrics_polling_interval: { value: cdktf.numberToHclTerraform(struct.metricsPollingInterval), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CloudAwsGovcloudIntegrationsCloudtrailOutputReference 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._awsRegions !== undefined) { hasAnyValues = true; internalValueResult.awsRegions = this._awsRegions; } if (this._metricsPollingInterval !== undefined) { hasAnyValues = true; internalValueResult.metricsPollingInterval = this._metricsPollingInterval; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._awsRegions = undefined; this._metricsPollingInterval = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._awsRegions = value.awsRegions; this._metricsPollingInterval = value.metricsPollingInterval; } } get awsRegions() { return this.getListAttribute('aws_regions'); } set awsRegions(value) { this._awsRegions = value; } resetAwsRegions() { this._awsRegions = undefined; } // Temporarily expose input value. Use with caution. get awsRegionsInput() { return this._awsRegions; } 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; } } exports.CloudAwsGovcloudIntegrationsCloudtrailOutputReference = CloudAwsGovcloudIntegrationsCloudtrailOutputReference; _f = JSII_RTTI_SYMBOL_1; CloudAwsGovcloudIntegrationsCloudtrailOutputReference[_f] = { fqn: "@cdktf/provider-newrelic.cloudAwsGovcloudIntegrations.CloudAwsGovcloudIntegrationsCloudtrailOutputReference", version: "12.28.0" }; function cloudAwsGovcloudIntegrationsDynamoDbToTerraform(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 { aws_regions: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.awsRegions), fetch_extended_inventory: cdktf.booleanToTerraform(struct.fetchExtendedInventory), fetch_tags: cdktf.booleanToTerraform(struct.fetchTags), metrics_polling_interval: cdktf.numberToTerraform(struct.metricsPollingInterval), tag_key: cdktf.stringToTerraform(struct.tagKey), tag_value: cdktf.stringToTerraform(struct.tagValue), }; } function cloudAwsGovcloudIntegrationsDynamoDbToHclTerraform(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 = { aws_regions: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.awsRegions), isBlock: false, type: "list", storageClassType: "stringList", }, fetch_extended_inventory: { value: cdktf.booleanToHclTerraform(struct.fetchExtendedInventory), isBlock: false, type: "simple", storageClassType: "boolean", }, fetch_tags: { value: cdktf.booleanToHclTerraform(struct.fetchTags), isBlock: false, type: "simple", storageClassType: "boolean", }, metrics_polling_interval: { value: cdktf.numberToHclTerraform(struct.metricsPollingInterval), isBlock: false, type: "simple", storageClassType: "number", }, tag_key: { value: cdktf.stringToHclTerraform(struct.tagKey), isBlock: false, type: "simple", storageClassType: "string", }, tag_value: { value: cdktf.stringToHclTerraform(struct.tagValue), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CloudAwsGovcloudIntegrationsDynamoDbOutputReference 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._awsRegions !== undefined) { hasAnyValues = true; internalValueResult.awsRegions = this._awsRegions; } if (this._fetchExtendedInventory !== undefined) { hasAnyValues = true; internalValueResult.fetchExtendedInventory = this._fetchExtendedInventory; } if (this._fetchTags !== undefined) { hasAnyValues = true; internalValueResult.fetchTags = this._fetchTags; } if (this._metricsPollingInterval !== undefined) { hasAnyValues = true; internalValueResult.metricsPollingInterval = this._metricsPollingInterval; } if (this._tagKey !== undefined) { hasAnyValues = true; internalValueResult.tagKey = this._tagKey; } if (this._tagValue !== undefined) { hasAnyValues = true; internalValueResult.tagValue = this._tagValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._awsRegions = undefined; this._fetchExtendedInventory = undefined; this._fetchTags = undefined; this._metricsPollingInterval = undefined; this._tagKey = undefined; this._tagValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._awsRegions = value.awsRegions; this._fetchExtendedInventory = value.fetchExtendedInventory; this._fetchTags = value.fetchTags; this._metricsPollingInterval = value.metricsPollingInterval; this._tagKey = value.tagKey; this._tagValue = value.tagValue; } } get awsRegions() { return this.getListAttribute('aws_regions'); } set awsRegions(value) { this._awsRegions = value; } resetAwsRegions() { this._awsRegions = undefined; } // Temporarily expose input value. Use with caution. get awsRegionsInput() { return this._awsRegions; } get fetchExtendedInventory() { return this.getBooleanAttribute('fetch_extended_inventory'); } set fetchExtendedInventory(value) { this._fetchExtendedInventory = value; } resetFetchExtendedInventory() { this._fetchExtendedInventory = undefined; } // Temporarily expose input value. Use with caution. get fetchExtendedInventoryInput() { return this._fetchExtendedInventory; } get fetchTags() { return this.getBooleanAttribute('fetch_tags'); } set fetchTags(value) { this._fetchTags = value; } resetFetchTags() { this._fetchTags = undefined; } // Temporarily expose input value. Use with caution. get fetchTagsInput() { return this._fetchTags; } 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 tagKey() { return this.getStringAttribute('tag_key'); } set tagKey(value) { this._tagKey = value; } resetTagKey() { this._tagKey = undefined; } // Temporarily expose input value. Use with caution. get tagKeyInput() { return this._tagKey; } get tagValue() { return this.getStringAttribute('tag_value'); } set tagValue(value) { this._tagValue = value; } resetTagValue() { this._tagValue = undefined; } // Temporarily expose input value. Use with caution. get tagValueInput() { return this._tagValue; } } exports.CloudAwsGovcloudIntegrationsDynamoDbOutputReference = CloudAwsGovcloudIntegrationsDynamoDbOutputReference; _g = JSII_RTTI_SYMBOL_1; CloudAwsGovcloudIntegrationsDynamoDbOutputReference[_g] = { fqn: "@cdktf/provider-newrelic.cloudAwsGovcloudIntegrations.CloudAwsGovcloudIntegrationsDynamoDbOutputReference", version: "12.28.0" }; function cloudAwsGovcloudIntegrationsEbsToTerraform(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 { aws_regions: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.awsRegions), fetch_extended_inventory: cdktf.booleanToTerraform(struct.fetchExtendedInventory), metrics_polling_interval: cdktf.numberToTerraform(struct.metricsPollingInterval), tag_key: cdktf.stringToTerraform(struct.tagKey), tag_value: cdktf.stringToTerraform(struct.tagValue), }; } function cloudAwsGovcloudIntegrationsEbsToHclTerraform(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 = { aws_regions: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.awsRegions), isBlock: false, type: "list", storageClassType: "stringList", }, fetch_extended_inventory: { value: cdktf.booleanToHclTerraform(struct.fetchExtendedInventory), isBlock: false, type: "simple", storageClassType: "boolean", }, metrics_polling_interval: { value: cdktf.numberToHclTerraform(struct.metricsPollingInterval), isBlock: false, type: "simple", storageClassType: "number", }, tag_key: { value: cdktf.stringToHclTerraform(struct.tagKey), isBlock: false, type: "simple", storageClassType: "string", }, tag_value: { value: cdktf.stringToHclTerraform(struct.tagValue), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CloudAwsGovcloudIntegrationsEbsOutputReference 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._awsRegions !== undefined) { hasAnyValues = true; internalValueResult.awsRegions = this._awsRegions; } if (this._fetchExtendedInventory !== undefined) { hasAnyValues = true; internalValueResult.fetchExtendedInventory = this._fetchExtendedInventory; } if (this._metricsPollingInterval !== undefined) { hasAnyValues = true; internalValueResult.metricsPollingInterval = this._metricsPollingInterval; } if (this._tagKey !== undefined) { hasAnyValues = true; internalValueResult.tagKey = this._tagKey; } if (this._tagValue !== undefined) { hasAnyValues = true; internalValueResult.tagValue = this._tagValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._awsRegions = undefined; this._fetchExtendedInventory = undefined; this._metricsPollingInterval = undefined; this._tagKey = undefined; this._tagValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._awsRegions = value.awsRegions; this._fetchExtendedInventory = value.fetchExtendedInventory; this._metricsPollingInterval = value.metricsPollingInterval; this._tagKey = value.tagKey; this._tagValue = value.tagValue; } } get awsRegions() { return this.getListAttribute('aws_regions'); } set awsRegions(value) { this._awsRegions = value; } resetAwsRegions() { this._awsRegions = undefined; } // Temporarily expose input value. Use with caution. get awsRegionsInput() { return this._awsRegions; } get fetchExtendedInventory() { return this.getBooleanAttribute('fetch_extended_inventory'); } set fetchExtendedInventory(value) { this._fetchExtendedInventory = value; } resetFetchExtendedInventory() { this._