@cdktf/provider-newrelic
Version:
Prebuilt newrelic Provider for Terraform CDK (cdktf)
1,059 lines • 1.18 MB
JavaScript
"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, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CloudAwsIntegrationsTrustedAdvisorOutputReference = exports.CloudAwsIntegrationsSqsOutputReference = exports.CloudAwsIntegrationsSnsOutputReference = exports.CloudAwsIntegrationsSesOutputReference = exports.CloudAwsIntegrationsS3OutputReference = exports.CloudAwsIntegrationsRoute53OutputReference = exports.CloudAwsIntegrationsRedshiftOutputReference = exports.CloudAwsIntegrationsRdsOutputReference = exports.CloudAwsIntegrationsLambdaOutputReference = exports.CloudAwsIntegrationsKinesisFirehoseOutputReference = exports.CloudAwsIntegrationsKinesisOutputReference = exports.CloudAwsIntegrationsIotOutputReference = exports.CloudAwsIntegrationsIamOutputReference = exports.CloudAwsIntegrationsHealthOutputReference = exports.CloudAwsIntegrationsEmrOutputReference = exports.CloudAwsIntegrationsElbOutputReference = exports.CloudAwsIntegrationsElasticsearchOutputReference = exports.CloudAwsIntegrationsElasticbeanstalkOutputReference = exports.CloudAwsIntegrationsElasticacheOutputReference = exports.CloudAwsIntegrationsEfsOutputReference = exports.CloudAwsIntegrationsEcsOutputReference = exports.CloudAwsIntegrationsEc2OutputReference = exports.CloudAwsIntegrationsEbsOutputReference = exports.CloudAwsIntegrationsDynamodbOutputReference = exports.CloudAwsIntegrationsDocDbOutputReference = exports.CloudAwsIntegrationsCloudtrailOutputReference = exports.CloudAwsIntegrationsCloudfrontOutputReference = exports.CloudAwsIntegrationsBillingOutputReference = exports.CloudAwsIntegrationsAwsWafv2OutputReference = exports.CloudAwsIntegrationsAwsWafOutputReference = exports.CloudAwsIntegrationsAwsTransitGatewayOutputReference = exports.CloudAwsIntegrationsAwsStatesOutputReference = exports.CloudAwsIntegrationsAwsRoute53ResolverOutputReference = exports.CloudAwsIntegrationsAwsQldbOutputReference = exports.CloudAwsIntegrationsAwsNeptuneOutputReference = exports.CloudAwsIntegrationsAwsMskOutputReference = exports.CloudAwsIntegrationsAwsMqOutputReference = exports.CloudAwsIntegrationsAwsMediaPackageVodOutputReference = exports.CloudAwsIntegrationsAwsMediaConvertOutputReference = exports.CloudAwsIntegrationsAwsKinesisAnalyticsOutputReference = exports.CloudAwsIntegrationsAwsGlueOutputReference = exports.CloudAwsIntegrationsAwsFsxOutputReference = exports.CloudAwsIntegrationsAwsDirectConnectOutputReference = exports.CloudAwsIntegrationsAwsConnectOutputReference = exports.CloudAwsIntegrationsAwsCognitoOutputReference = exports.CloudAwsIntegrationsAwsAthenaOutputReference = exports.CloudAwsIntegrationsAwsAppSyncOutputReference = exports.CloudAwsIntegrationsAutoScalingOutputReference = exports.CloudAwsIntegrationsApiGatewayOutputReference = exports.CloudAwsIntegrationsAlbOutputReference = void 0;
exports.CloudAwsIntegrations = exports.CloudAwsIntegrationsXRayOutputReference = exports.CloudAwsIntegrationsVpcOutputReference = void 0;
exports.cloudAwsIntegrationsAlbToTerraform = cloudAwsIntegrationsAlbToTerraform;
exports.cloudAwsIntegrationsAlbToHclTerraform = cloudAwsIntegrationsAlbToHclTerraform;
exports.cloudAwsIntegrationsApiGatewayToTerraform = cloudAwsIntegrationsApiGatewayToTerraform;
exports.cloudAwsIntegrationsApiGatewayToHclTerraform = cloudAwsIntegrationsApiGatewayToHclTerraform;
exports.cloudAwsIntegrationsAutoScalingToTerraform = cloudAwsIntegrationsAutoScalingToTerraform;
exports.cloudAwsIntegrationsAutoScalingToHclTerraform = cloudAwsIntegrationsAutoScalingToHclTerraform;
exports.cloudAwsIntegrationsAwsAppSyncToTerraform = cloudAwsIntegrationsAwsAppSyncToTerraform;
exports.cloudAwsIntegrationsAwsAppSyncToHclTerraform = cloudAwsIntegrationsAwsAppSyncToHclTerraform;
exports.cloudAwsIntegrationsAwsAthenaToTerraform = cloudAwsIntegrationsAwsAthenaToTerraform;
exports.cloudAwsIntegrationsAwsAthenaToHclTerraform = cloudAwsIntegrationsAwsAthenaToHclTerraform;
exports.cloudAwsIntegrationsAwsCognitoToTerraform = cloudAwsIntegrationsAwsCognitoToTerraform;
exports.cloudAwsIntegrationsAwsCognitoToHclTerraform = cloudAwsIntegrationsAwsCognitoToHclTerraform;
exports.cloudAwsIntegrationsAwsConnectToTerraform = cloudAwsIntegrationsAwsConnectToTerraform;
exports.cloudAwsIntegrationsAwsConnectToHclTerraform = cloudAwsIntegrationsAwsConnectToHclTerraform;
exports.cloudAwsIntegrationsAwsDirectConnectToTerraform = cloudAwsIntegrationsAwsDirectConnectToTerraform;
exports.cloudAwsIntegrationsAwsDirectConnectToHclTerraform = cloudAwsIntegrationsAwsDirectConnectToHclTerraform;
exports.cloudAwsIntegrationsAwsFsxToTerraform = cloudAwsIntegrationsAwsFsxToTerraform;
exports.cloudAwsIntegrationsAwsFsxToHclTerraform = cloudAwsIntegrationsAwsFsxToHclTerraform;
exports.cloudAwsIntegrationsAwsGlueToTerraform = cloudAwsIntegrationsAwsGlueToTerraform;
exports.cloudAwsIntegrationsAwsGlueToHclTerraform = cloudAwsIntegrationsAwsGlueToHclTerraform;
exports.cloudAwsIntegrationsAwsKinesisAnalyticsToTerraform = cloudAwsIntegrationsAwsKinesisAnalyticsToTerraform;
exports.cloudAwsIntegrationsAwsKinesisAnalyticsToHclTerraform = cloudAwsIntegrationsAwsKinesisAnalyticsToHclTerraform;
exports.cloudAwsIntegrationsAwsMediaConvertToTerraform = cloudAwsIntegrationsAwsMediaConvertToTerraform;
exports.cloudAwsIntegrationsAwsMediaConvertToHclTerraform = cloudAwsIntegrationsAwsMediaConvertToHclTerraform;
exports.cloudAwsIntegrationsAwsMediaPackageVodToTerraform = cloudAwsIntegrationsAwsMediaPackageVodToTerraform;
exports.cloudAwsIntegrationsAwsMediaPackageVodToHclTerraform = cloudAwsIntegrationsAwsMediaPackageVodToHclTerraform;
exports.cloudAwsIntegrationsAwsMqToTerraform = cloudAwsIntegrationsAwsMqToTerraform;
exports.cloudAwsIntegrationsAwsMqToHclTerraform = cloudAwsIntegrationsAwsMqToHclTerraform;
exports.cloudAwsIntegrationsAwsMskToTerraform = cloudAwsIntegrationsAwsMskToTerraform;
exports.cloudAwsIntegrationsAwsMskToHclTerraform = cloudAwsIntegrationsAwsMskToHclTerraform;
exports.cloudAwsIntegrationsAwsNeptuneToTerraform = cloudAwsIntegrationsAwsNeptuneToTerraform;
exports.cloudAwsIntegrationsAwsNeptuneToHclTerraform = cloudAwsIntegrationsAwsNeptuneToHclTerraform;
exports.cloudAwsIntegrationsAwsQldbToTerraform = cloudAwsIntegrationsAwsQldbToTerraform;
exports.cloudAwsIntegrationsAwsQldbToHclTerraform = cloudAwsIntegrationsAwsQldbToHclTerraform;
exports.cloudAwsIntegrationsAwsRoute53ResolverToTerraform = cloudAwsIntegrationsAwsRoute53ResolverToTerraform;
exports.cloudAwsIntegrationsAwsRoute53ResolverToHclTerraform = cloudAwsIntegrationsAwsRoute53ResolverToHclTerraform;
exports.cloudAwsIntegrationsAwsStatesToTerraform = cloudAwsIntegrationsAwsStatesToTerraform;
exports.cloudAwsIntegrationsAwsStatesToHclTerraform = cloudAwsIntegrationsAwsStatesToHclTerraform;
exports.cloudAwsIntegrationsAwsTransitGatewayToTerraform = cloudAwsIntegrationsAwsTransitGatewayToTerraform;
exports.cloudAwsIntegrationsAwsTransitGatewayToHclTerraform = cloudAwsIntegrationsAwsTransitGatewayToHclTerraform;
exports.cloudAwsIntegrationsAwsWafToTerraform = cloudAwsIntegrationsAwsWafToTerraform;
exports.cloudAwsIntegrationsAwsWafToHclTerraform = cloudAwsIntegrationsAwsWafToHclTerraform;
exports.cloudAwsIntegrationsAwsWafv2ToTerraform = cloudAwsIntegrationsAwsWafv2ToTerraform;
exports.cloudAwsIntegrationsAwsWafv2ToHclTerraform = cloudAwsIntegrationsAwsWafv2ToHclTerraform;
exports.cloudAwsIntegrationsBillingToTerraform = cloudAwsIntegrationsBillingToTerraform;
exports.cloudAwsIntegrationsBillingToHclTerraform = cloudAwsIntegrationsBillingToHclTerraform;
exports.cloudAwsIntegrationsCloudfrontToTerraform = cloudAwsIntegrationsCloudfrontToTerraform;
exports.cloudAwsIntegrationsCloudfrontToHclTerraform = cloudAwsIntegrationsCloudfrontToHclTerraform;
exports.cloudAwsIntegrationsCloudtrailToTerraform = cloudAwsIntegrationsCloudtrailToTerraform;
exports.cloudAwsIntegrationsCloudtrailToHclTerraform = cloudAwsIntegrationsCloudtrailToHclTerraform;
exports.cloudAwsIntegrationsDocDbToTerraform = cloudAwsIntegrationsDocDbToTerraform;
exports.cloudAwsIntegrationsDocDbToHclTerraform = cloudAwsIntegrationsDocDbToHclTerraform;
exports.cloudAwsIntegrationsDynamodbToTerraform = cloudAwsIntegrationsDynamodbToTerraform;
exports.cloudAwsIntegrationsDynamodbToHclTerraform = cloudAwsIntegrationsDynamodbToHclTerraform;
exports.cloudAwsIntegrationsEbsToTerraform = cloudAwsIntegrationsEbsToTerraform;
exports.cloudAwsIntegrationsEbsToHclTerraform = cloudAwsIntegrationsEbsToHclTerraform;
exports.cloudAwsIntegrationsEc2ToTerraform = cloudAwsIntegrationsEc2ToTerraform;
exports.cloudAwsIntegrationsEc2ToHclTerraform = cloudAwsIntegrationsEc2ToHclTerraform;
exports.cloudAwsIntegrationsEcsToTerraform = cloudAwsIntegrationsEcsToTerraform;
exports.cloudAwsIntegrationsEcsToHclTerraform = cloudAwsIntegrationsEcsToHclTerraform;
exports.cloudAwsIntegrationsEfsToTerraform = cloudAwsIntegrationsEfsToTerraform;
exports.cloudAwsIntegrationsEfsToHclTerraform = cloudAwsIntegrationsEfsToHclTerraform;
exports.cloudAwsIntegrationsElasticacheToTerraform = cloudAwsIntegrationsElasticacheToTerraform;
exports.cloudAwsIntegrationsElasticacheToHclTerraform = cloudAwsIntegrationsElasticacheToHclTerraform;
exports.cloudAwsIntegrationsElasticbeanstalkToTerraform = cloudAwsIntegrationsElasticbeanstalkToTerraform;
exports.cloudAwsIntegrationsElasticbeanstalkToHclTerraform = cloudAwsIntegrationsElasticbeanstalkToHclTerraform;
exports.cloudAwsIntegrationsElasticsearchToTerraform = cloudAwsIntegrationsElasticsearchToTerraform;
exports.cloudAwsIntegrationsElasticsearchToHclTerraform = cloudAwsIntegrationsElasticsearchToHclTerraform;
exports.cloudAwsIntegrationsElbToTerraform = cloudAwsIntegrationsElbToTerraform;
exports.cloudAwsIntegrationsElbToHclTerraform = cloudAwsIntegrationsElbToHclTerraform;
exports.cloudAwsIntegrationsEmrToTerraform = cloudAwsIntegrationsEmrToTerraform;
exports.cloudAwsIntegrationsEmrToHclTerraform = cloudAwsIntegrationsEmrToHclTerraform;
exports.cloudAwsIntegrationsHealthToTerraform = cloudAwsIntegrationsHealthToTerraform;
exports.cloudAwsIntegrationsHealthToHclTerraform = cloudAwsIntegrationsHealthToHclTerraform;
exports.cloudAwsIntegrationsIamToTerraform = cloudAwsIntegrationsIamToTerraform;
exports.cloudAwsIntegrationsIamToHclTerraform = cloudAwsIntegrationsIamToHclTerraform;
exports.cloudAwsIntegrationsIotToTerraform = cloudAwsIntegrationsIotToTerraform;
exports.cloudAwsIntegrationsIotToHclTerraform = cloudAwsIntegrationsIotToHclTerraform;
exports.cloudAwsIntegrationsKinesisToTerraform = cloudAwsIntegrationsKinesisToTerraform;
exports.cloudAwsIntegrationsKinesisToHclTerraform = cloudAwsIntegrationsKinesisToHclTerraform;
exports.cloudAwsIntegrationsKinesisFirehoseToTerraform = cloudAwsIntegrationsKinesisFirehoseToTerraform;
exports.cloudAwsIntegrationsKinesisFirehoseToHclTerraform = cloudAwsIntegrationsKinesisFirehoseToHclTerraform;
exports.cloudAwsIntegrationsLambdaToTerraform = cloudAwsIntegrationsLambdaToTerraform;
exports.cloudAwsIntegrationsLambdaToHclTerraform = cloudAwsIntegrationsLambdaToHclTerraform;
exports.cloudAwsIntegrationsRdsToTerraform = cloudAwsIntegrationsRdsToTerraform;
exports.cloudAwsIntegrationsRdsToHclTerraform = cloudAwsIntegrationsRdsToHclTerraform;
exports.cloudAwsIntegrationsRedshiftToTerraform = cloudAwsIntegrationsRedshiftToTerraform;
exports.cloudAwsIntegrationsRedshiftToHclTerraform = cloudAwsIntegrationsRedshiftToHclTerraform;
exports.cloudAwsIntegrationsRoute53ToTerraform = cloudAwsIntegrationsRoute53ToTerraform;
exports.cloudAwsIntegrationsRoute53ToHclTerraform = cloudAwsIntegrationsRoute53ToHclTerraform;
exports.cloudAwsIntegrationsS3ToTerraform = cloudAwsIntegrationsS3ToTerraform;
exports.cloudAwsIntegrationsS3ToHclTerraform = cloudAwsIntegrationsS3ToHclTerraform;
exports.cloudAwsIntegrationsSesToTerraform = cloudAwsIntegrationsSesToTerraform;
exports.cloudAwsIntegrationsSesToHclTerraform = cloudAwsIntegrationsSesToHclTerraform;
exports.cloudAwsIntegrationsSnsToTerraform = cloudAwsIntegrationsSnsToTerraform;
exports.cloudAwsIntegrationsSnsToHclTerraform = cloudAwsIntegrationsSnsToHclTerraform;
exports.cloudAwsIntegrationsSqsToTerraform = cloudAwsIntegrationsSqsToTerraform;
exports.cloudAwsIntegrationsSqsToHclTerraform = cloudAwsIntegrationsSqsToHclTerraform;
exports.cloudAwsIntegrationsTrustedAdvisorToTerraform = cloudAwsIntegrationsTrustedAdvisorToTerraform;
exports.cloudAwsIntegrationsTrustedAdvisorToHclTerraform = cloudAwsIntegrationsTrustedAdvisorToHclTerraform;
exports.cloudAwsIntegrationsVpcToTerraform = cloudAwsIntegrationsVpcToTerraform;
exports.cloudAwsIntegrationsVpcToHclTerraform = cloudAwsIntegrationsVpcToHclTerraform;
exports.cloudAwsIntegrationsXRayToTerraform = cloudAwsIntegrationsXRayToTerraform;
exports.cloudAwsIntegrationsXRayToHclTerraform = cloudAwsIntegrationsXRayToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function cloudAwsIntegrationsAlbToTerraform(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 cloudAwsIntegrationsAlbToHclTerraform(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 CloudAwsIntegrationsAlbOutputReference 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.CloudAwsIntegrationsAlbOutputReference = CloudAwsIntegrationsAlbOutputReference;
_a = JSII_RTTI_SYMBOL_1;
CloudAwsIntegrationsAlbOutputReference[_a] = { fqn: "@cdktf/provider-newrelic.cloudAwsIntegrations.CloudAwsIntegrationsAlbOutputReference", version: "12.28.0" };
function cloudAwsIntegrationsApiGatewayToTerraform(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 cloudAwsIntegrationsApiGatewayToHclTerraform(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 CloudAwsIntegrationsApiGatewayOutputReference 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.CloudAwsIntegrationsApiGatewayOutputReference = CloudAwsIntegrationsApiGatewayOutputReference;
_b = JSII_RTTI_SYMBOL_1;
CloudAwsIntegrationsApiGatewayOutputReference[_b] = { fqn: "@cdktf/provider-newrelic.cloudAwsIntegrations.CloudAwsIntegrationsApiGatewayOutputReference", version: "12.28.0" };
function cloudAwsIntegrationsAutoScalingToTerraform(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 cloudAwsIntegrationsAutoScalingToHclTerraform(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 CloudAwsIntegrationsAutoScalingOutputReference 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.CloudAwsIntegrationsAutoScalingOutputReference = CloudAwsIntegrationsAutoScalingOutputReference;
_c = JSII_RTTI_SYMBOL_1;
CloudAwsIntegrationsAutoScalingOutputReference[_c] = { fqn: "@cdktf/provider-newrelic.cloudAwsIntegrations.CloudAwsIntegrationsAutoScalingOutputReference", version: "12.28.0" };
function cloudAwsIntegrationsAwsAppSyncToTerraform(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 cloudAwsIntegrationsAwsAppSyncToHclTerraform(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 CloudAwsIntegrationsAwsAppSyncOutputReference 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.CloudAwsIntegrationsAwsAppSyncOutputReference = CloudAwsIntegrationsAwsAppSyncOutputReference;
_d = JSII_RTTI_SYMBOL_1;
CloudAwsIntegrationsAwsAppSyncOutputReference[_d] = { fqn: "@cdktf/provider-newrelic.cloudAwsIntegrations.CloudAwsIntegrationsAwsAppSyncOutputReference", version: "12.28.0" };
function cloudAwsIntegrationsAwsAthenaToTerraform(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 cloudAwsIntegrationsAwsAthenaToHclTerraform(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 CloudAwsIntegrationsAwsAthenaOutputReference 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.CloudAwsIntegrationsAwsAthenaOutputReference = CloudAwsIntegrationsAwsAthenaOutputReference;
_e = JSII_RTTI_SYMBOL_1;
CloudAwsIntegrationsAwsAthenaOutputReference[_e] = { fqn: "@cdktf/provider-newrelic.cloudAwsIntegrations.CloudAwsIntegrationsAwsAthenaOutputReference", version: "12.28.0" };
function cloudAwsIntegrationsAwsCognitoToTerraform(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 cloudAwsIntegrationsAwsCognitoToHclTerraform(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 CloudAwsIntegrationsAwsCognitoOutputReference 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.CloudAwsIntegrationsAwsCognitoOutputReference = CloudAwsIntegrationsAwsCognitoOutputReference;
_f = JSII_RTTI_SYMBOL_1;
CloudAwsIntegrationsAwsCognitoOutputReference[_f] = { fqn: "@cdktf/provider-newrelic.cloudAwsIntegrations.CloudAwsIntegrationsAwsCognitoOutputReference", version: "12.28.0" };
function cloudAwsIntegrationsAwsConnectToTerraform(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 cloudAwsIntegrationsAwsConnectToHclTerraform(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 CloudAwsIntegrationsAwsConnectOutputReference 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.CloudAwsIntegrationsAwsConnectOutputReference = CloudAwsIntegrationsAwsConnectOutputReference;
_g = JSII_RTTI_SYMBOL_1;
CloudAwsIntegrationsAwsConnectOutputReference[_g] = { fqn: "@cdktf/provider-newrelic.cloudAwsIntegrations.CloudAwsIntegrationsAwsConnectOutputReference", version: "12.28.0" };
function cloudAwsIntegrationsAwsDirectConnectToTerraform(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 cloudAwsIntegrationsAwsDirectConnectToHclTerraform(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 CloudAwsIntegrationsAwsDirectConnectOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this cla