UNPKG

@cdktf/provider-newrelic

Version:

Prebuilt newrelic Provider for Terraform CDK (cdktf)

912 lines • 1.18 MB
"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, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60; Object.defineProperty(exports, "__esModule", { value: true }); exports.OneDashboardPageWidgetStackedBarUnitsSeriesOverridesOutputReference = exports.OneDashboardPageWidgetStackedBarNullValuesList = exports.OneDashboardPageWidgetStackedBarNullValuesOutputReference = exports.OneDashboardPageWidgetStackedBarNullValuesSeriesOverridesList = exports.OneDashboardPageWidgetStackedBarNullValuesSeriesOverridesOutputReference = exports.OneDashboardPageWidgetStackedBarNrqlQueryList = exports.OneDashboardPageWidgetStackedBarNrqlQueryOutputReference = exports.OneDashboardPageWidgetStackedBarInitialSortingOutputReference = exports.OneDashboardPageWidgetStackedBarDataFormatList = exports.OneDashboardPageWidgetStackedBarDataFormatOutputReference = exports.OneDashboardPageWidgetStackedBarColorsList = exports.OneDashboardPageWidgetStackedBarColorsOutputReference = exports.OneDashboardPageWidgetStackedBarColorsSeriesOverridesList = exports.OneDashboardPageWidgetStackedBarColorsSeriesOverridesOutputReference = exports.OneDashboardPageWidgetPieList = exports.OneDashboardPageWidgetPieOutputReference = exports.OneDashboardPageWidgetPieUnitsList = exports.OneDashboardPageWidgetPieUnitsOutputReference = exports.OneDashboardPageWidgetPieUnitsSeriesOverridesList = exports.OneDashboardPageWidgetPieUnitsSeriesOverridesOutputReference = exports.OneDashboardPageWidgetPieNullValuesList = exports.OneDashboardPageWidgetPieNullValuesOutputReference = exports.OneDashboardPageWidgetPieNullValuesSeriesOverridesList = exports.OneDashboardPageWidgetPieNullValuesSeriesOverridesOutputReference = exports.OneDashboardPageWidgetPieNrqlQueryList = exports.OneDashboardPageWidgetPieNrqlQueryOutputReference = exports.OneDashboardPageWidgetPieInitialSortingOutputReference = exports.OneDashboardPageWidgetPieDataFormatList = exports.OneDashboardPageWidgetPieDataFormatOutputReference = exports.OneDashboardPageWidgetPieColorsList = exports.OneDashboardPageWidgetPieColorsOutputReference = exports.OneDashboardPageWidgetPieColorsSeriesOverridesList = exports.OneDashboardPageWidgetPieColorsSeriesOverridesOutputReference = exports.OneDashboardPageWidgetMarkdownList = exports.OneDashboardPageWidgetMarkdownOutputReference = exports.OneDashboardPageWidgetMarkdownUnitsList = exports.OneDashboardPageWidgetMarkdownUnitsOutputReference = exports.OneDashboardPageWidgetMarkdownUnitsSeriesOverridesList = exports.OneDashboardPageWidgetMarkdownUnitsSeriesOverridesOutputReference = exports.OneDashboardPageWidgetMarkdownNullValuesList = exports.OneDashboardPageWidgetMarkdownNullValuesOutputReference = exports.OneDashboardPageWidgetMarkdownNullValuesSeriesOverridesList = exports.OneDashboardPageWidgetMarkdownNullValuesSeriesOverridesOutputReference = exports.OneDashboardPageWidgetMarkdownInitialSortingOutputReference = exports.OneDashboardPageWidgetMarkdownDataFormatList = exports.OneDashboardPageWidgetMarkdownDataFormatOutputReference = exports.OneDashboardPageWidgetMarkdownColorsList = exports.OneDashboardPageWidgetMarkdownColorsOutputReference = exports.OneDashboardPageWidgetMarkdownColorsSeriesOverridesList = exports.OneDashboardPageWidgetMarkdownColorsSeriesOverridesOutputReference = void 0; exports.OneDashboardVariableList = exports.OneDashboardVariableOutputReference = exports.OneDashboardVariableOptionsList = exports.OneDashboardVariableOptionsOutputReference = exports.OneDashboardVariableNrqlQueryOutputReference = exports.OneDashboardVariableItemList = exports.OneDashboardVariableItemOutputReference = exports.OneDashboardPageList = exports.OneDashboardPageOutputReference = exports.OneDashboardPageWidgetTableList = exports.OneDashboardPageWidgetTableOutputReference = exports.OneDashboardPageWidgetTableUnitsList = exports.OneDashboardPageWidgetTableUnitsOutputReference = exports.OneDashboardPageWidgetTableUnitsSeriesOverridesList = exports.OneDashboardPageWidgetTableUnitsSeriesOverridesOutputReference = exports.OneDashboardPageWidgetTableThresholdList = exports.OneDashboardPageWidgetTableThresholdOutputReference = exports.OneDashboardPageWidgetTableNullValuesList = exports.OneDashboardPageWidgetTableNullValuesOutputReference = exports.OneDashboardPageWidgetTableNullValuesSeriesOverridesList = exports.OneDashboardPageWidgetTableNullValuesSeriesOverridesOutputReference = exports.OneDashboardPageWidgetTableNrqlQueryList = exports.OneDashboardPageWidgetTableNrqlQueryOutputReference = exports.OneDashboardPageWidgetTableInitialSortingOutputReference = exports.OneDashboardPageWidgetTableDataFormatList = exports.OneDashboardPageWidgetTableDataFormatOutputReference = exports.OneDashboardPageWidgetTableColorsList = exports.OneDashboardPageWidgetTableColorsOutputReference = exports.OneDashboardPageWidgetTableColorsSeriesOverridesList = exports.OneDashboardPageWidgetTableColorsSeriesOverridesOutputReference = exports.OneDashboardPageWidgetStackedBarList = exports.OneDashboardPageWidgetStackedBarOutputReference = exports.OneDashboardPageWidgetStackedBarUnitsList = exports.OneDashboardPageWidgetStackedBarUnitsOutputReference = exports.OneDashboardPageWidgetStackedBarUnitsSeriesOverridesList = void 0; exports.oneDashboardPageWidgetMarkdownColorsSeriesOverridesToTerraform = oneDashboardPageWidgetMarkdownColorsSeriesOverridesToTerraform; exports.oneDashboardPageWidgetMarkdownColorsSeriesOverridesToHclTerraform = oneDashboardPageWidgetMarkdownColorsSeriesOverridesToHclTerraform; exports.oneDashboardPageWidgetMarkdownColorsToTerraform = oneDashboardPageWidgetMarkdownColorsToTerraform; exports.oneDashboardPageWidgetMarkdownColorsToHclTerraform = oneDashboardPageWidgetMarkdownColorsToHclTerraform; exports.oneDashboardPageWidgetMarkdownDataFormatToTerraform = oneDashboardPageWidgetMarkdownDataFormatToTerraform; exports.oneDashboardPageWidgetMarkdownDataFormatToHclTerraform = oneDashboardPageWidgetMarkdownDataFormatToHclTerraform; exports.oneDashboardPageWidgetMarkdownInitialSortingToTerraform = oneDashboardPageWidgetMarkdownInitialSortingToTerraform; exports.oneDashboardPageWidgetMarkdownInitialSortingToHclTerraform = oneDashboardPageWidgetMarkdownInitialSortingToHclTerraform; exports.oneDashboardPageWidgetMarkdownNullValuesSeriesOverridesToTerraform = oneDashboardPageWidgetMarkdownNullValuesSeriesOverridesToTerraform; exports.oneDashboardPageWidgetMarkdownNullValuesSeriesOverridesToHclTerraform = oneDashboardPageWidgetMarkdownNullValuesSeriesOverridesToHclTerraform; exports.oneDashboardPageWidgetMarkdownNullValuesToTerraform = oneDashboardPageWidgetMarkdownNullValuesToTerraform; exports.oneDashboardPageWidgetMarkdownNullValuesToHclTerraform = oneDashboardPageWidgetMarkdownNullValuesToHclTerraform; exports.oneDashboardPageWidgetMarkdownUnitsSeriesOverridesToTerraform = oneDashboardPageWidgetMarkdownUnitsSeriesOverridesToTerraform; exports.oneDashboardPageWidgetMarkdownUnitsSeriesOverridesToHclTerraform = oneDashboardPageWidgetMarkdownUnitsSeriesOverridesToHclTerraform; exports.oneDashboardPageWidgetMarkdownUnitsToTerraform = oneDashboardPageWidgetMarkdownUnitsToTerraform; exports.oneDashboardPageWidgetMarkdownUnitsToHclTerraform = oneDashboardPageWidgetMarkdownUnitsToHclTerraform; exports.oneDashboardPageWidgetMarkdownToTerraform = oneDashboardPageWidgetMarkdownToTerraform; exports.oneDashboardPageWidgetMarkdownToHclTerraform = oneDashboardPageWidgetMarkdownToHclTerraform; exports.oneDashboardPageWidgetPieColorsSeriesOverridesToTerraform = oneDashboardPageWidgetPieColorsSeriesOverridesToTerraform; exports.oneDashboardPageWidgetPieColorsSeriesOverridesToHclTerraform = oneDashboardPageWidgetPieColorsSeriesOverridesToHclTerraform; exports.oneDashboardPageWidgetPieColorsToTerraform = oneDashboardPageWidgetPieColorsToTerraform; exports.oneDashboardPageWidgetPieColorsToHclTerraform = oneDashboardPageWidgetPieColorsToHclTerraform; exports.oneDashboardPageWidgetPieDataFormatToTerraform = oneDashboardPageWidgetPieDataFormatToTerraform; exports.oneDashboardPageWidgetPieDataFormatToHclTerraform = oneDashboardPageWidgetPieDataFormatToHclTerraform; exports.oneDashboardPageWidgetPieInitialSortingToTerraform = oneDashboardPageWidgetPieInitialSortingToTerraform; exports.oneDashboardPageWidgetPieInitialSortingToHclTerraform = oneDashboardPageWidgetPieInitialSortingToHclTerraform; exports.oneDashboardPageWidgetPieNrqlQueryToTerraform = oneDashboardPageWidgetPieNrqlQueryToTerraform; exports.oneDashboardPageWidgetPieNrqlQueryToHclTerraform = oneDashboardPageWidgetPieNrqlQueryToHclTerraform; exports.oneDashboardPageWidgetPieNullValuesSeriesOverridesToTerraform = oneDashboardPageWidgetPieNullValuesSeriesOverridesToTerraform; exports.oneDashboardPageWidgetPieNullValuesSeriesOverridesToHclTerraform = oneDashboardPageWidgetPieNullValuesSeriesOverridesToHclTerraform; exports.oneDashboardPageWidgetPieNullValuesToTerraform = oneDashboardPageWidgetPieNullValuesToTerraform; exports.oneDashboardPageWidgetPieNullValuesToHclTerraform = oneDashboardPageWidgetPieNullValuesToHclTerraform; exports.oneDashboardPageWidgetPieUnitsSeriesOverridesToTerraform = oneDashboardPageWidgetPieUnitsSeriesOverridesToTerraform; exports.oneDashboardPageWidgetPieUnitsSeriesOverridesToHclTerraform = oneDashboardPageWidgetPieUnitsSeriesOverridesToHclTerraform; exports.oneDashboardPageWidgetPieUnitsToTerraform = oneDashboardPageWidgetPieUnitsToTerraform; exports.oneDashboardPageWidgetPieUnitsToHclTerraform = oneDashboardPageWidgetPieUnitsToHclTerraform; exports.oneDashboardPageWidgetPieToTerraform = oneDashboardPageWidgetPieToTerraform; exports.oneDashboardPageWidgetPieToHclTerraform = oneDashboardPageWidgetPieToHclTerraform; exports.oneDashboardPageWidgetStackedBarColorsSeriesOverridesToTerraform = oneDashboardPageWidgetStackedBarColorsSeriesOverridesToTerraform; exports.oneDashboardPageWidgetStackedBarColorsSeriesOverridesToHclTerraform = oneDashboardPageWidgetStackedBarColorsSeriesOverridesToHclTerraform; exports.oneDashboardPageWidgetStackedBarColorsToTerraform = oneDashboardPageWidgetStackedBarColorsToTerraform; exports.oneDashboardPageWidgetStackedBarColorsToHclTerraform = oneDashboardPageWidgetStackedBarColorsToHclTerraform; exports.oneDashboardPageWidgetStackedBarDataFormatToTerraform = oneDashboardPageWidgetStackedBarDataFormatToTerraform; exports.oneDashboardPageWidgetStackedBarDataFormatToHclTerraform = oneDashboardPageWidgetStackedBarDataFormatToHclTerraform; exports.oneDashboardPageWidgetStackedBarInitialSortingToTerraform = oneDashboardPageWidgetStackedBarInitialSortingToTerraform; exports.oneDashboardPageWidgetStackedBarInitialSortingToHclTerraform = oneDashboardPageWidgetStackedBarInitialSortingToHclTerraform; exports.oneDashboardPageWidgetStackedBarNrqlQueryToTerraform = oneDashboardPageWidgetStackedBarNrqlQueryToTerraform; exports.oneDashboardPageWidgetStackedBarNrqlQueryToHclTerraform = oneDashboardPageWidgetStackedBarNrqlQueryToHclTerraform; exports.oneDashboardPageWidgetStackedBarNullValuesSeriesOverridesToTerraform = oneDashboardPageWidgetStackedBarNullValuesSeriesOverridesToTerraform; exports.oneDashboardPageWidgetStackedBarNullValuesSeriesOverridesToHclTerraform = oneDashboardPageWidgetStackedBarNullValuesSeriesOverridesToHclTerraform; exports.oneDashboardPageWidgetStackedBarNullValuesToTerraform = oneDashboardPageWidgetStackedBarNullValuesToTerraform; exports.oneDashboardPageWidgetStackedBarNullValuesToHclTerraform = oneDashboardPageWidgetStackedBarNullValuesToHclTerraform; exports.oneDashboardPageWidgetStackedBarUnitsSeriesOverridesToTerraform = oneDashboardPageWidgetStackedBarUnitsSeriesOverridesToTerraform; exports.oneDashboardPageWidgetStackedBarUnitsSeriesOverridesToHclTerraform = oneDashboardPageWidgetStackedBarUnitsSeriesOverridesToHclTerraform; exports.oneDashboardPageWidgetStackedBarUnitsToTerraform = oneDashboardPageWidgetStackedBarUnitsToTerraform; exports.oneDashboardPageWidgetStackedBarUnitsToHclTerraform = oneDashboardPageWidgetStackedBarUnitsToHclTerraform; exports.oneDashboardPageWidgetStackedBarToTerraform = oneDashboardPageWidgetStackedBarToTerraform; exports.oneDashboardPageWidgetStackedBarToHclTerraform = oneDashboardPageWidgetStackedBarToHclTerraform; exports.oneDashboardPageWidgetTableColorsSeriesOverridesToTerraform = oneDashboardPageWidgetTableColorsSeriesOverridesToTerraform; exports.oneDashboardPageWidgetTableColorsSeriesOverridesToHclTerraform = oneDashboardPageWidgetTableColorsSeriesOverridesToHclTerraform; exports.oneDashboardPageWidgetTableColorsToTerraform = oneDashboardPageWidgetTableColorsToTerraform; exports.oneDashboardPageWidgetTableColorsToHclTerraform = oneDashboardPageWidgetTableColorsToHclTerraform; exports.oneDashboardPageWidgetTableDataFormatToTerraform = oneDashboardPageWidgetTableDataFormatToTerraform; exports.oneDashboardPageWidgetTableDataFormatToHclTerraform = oneDashboardPageWidgetTableDataFormatToHclTerraform; exports.oneDashboardPageWidgetTableInitialSortingToTerraform = oneDashboardPageWidgetTableInitialSortingToTerraform; exports.oneDashboardPageWidgetTableInitialSortingToHclTerraform = oneDashboardPageWidgetTableInitialSortingToHclTerraform; exports.oneDashboardPageWidgetTableNrqlQueryToTerraform = oneDashboardPageWidgetTableNrqlQueryToTerraform; exports.oneDashboardPageWidgetTableNrqlQueryToHclTerraform = oneDashboardPageWidgetTableNrqlQueryToHclTerraform; exports.oneDashboardPageWidgetTableNullValuesSeriesOverridesToTerraform = oneDashboardPageWidgetTableNullValuesSeriesOverridesToTerraform; exports.oneDashboardPageWidgetTableNullValuesSeriesOverridesToHclTerraform = oneDashboardPageWidgetTableNullValuesSeriesOverridesToHclTerraform; exports.oneDashboardPageWidgetTableNullValuesToTerraform = oneDashboardPageWidgetTableNullValuesToTerraform; exports.oneDashboardPageWidgetTableNullValuesToHclTerraform = oneDashboardPageWidgetTableNullValuesToHclTerraform; exports.oneDashboardPageWidgetTableThresholdToTerraform = oneDashboardPageWidgetTableThresholdToTerraform; exports.oneDashboardPageWidgetTableThresholdToHclTerraform = oneDashboardPageWidgetTableThresholdToHclTerraform; exports.oneDashboardPageWidgetTableUnitsSeriesOverridesToTerraform = oneDashboardPageWidgetTableUnitsSeriesOverridesToTerraform; exports.oneDashboardPageWidgetTableUnitsSeriesOverridesToHclTerraform = oneDashboardPageWidgetTableUnitsSeriesOverridesToHclTerraform; exports.oneDashboardPageWidgetTableUnitsToTerraform = oneDashboardPageWidgetTableUnitsToTerraform; exports.oneDashboardPageWidgetTableUnitsToHclTerraform = oneDashboardPageWidgetTableUnitsToHclTerraform; exports.oneDashboardPageWidgetTableToTerraform = oneDashboardPageWidgetTableToTerraform; exports.oneDashboardPageWidgetTableToHclTerraform = oneDashboardPageWidgetTableToHclTerraform; exports.oneDashboardPageToTerraform = oneDashboardPageToTerraform; exports.oneDashboardPageToHclTerraform = oneDashboardPageToHclTerraform; exports.oneDashboardVariableItemToTerraform = oneDashboardVariableItemToTerraform; exports.oneDashboardVariableItemToHclTerraform = oneDashboardVariableItemToHclTerraform; exports.oneDashboardVariableNrqlQueryToTerraform = oneDashboardVariableNrqlQueryToTerraform; exports.oneDashboardVariableNrqlQueryToHclTerraform = oneDashboardVariableNrqlQueryToHclTerraform; exports.oneDashboardVariableOptionsToTerraform = oneDashboardVariableOptionsToTerraform; exports.oneDashboardVariableOptionsToHclTerraform = oneDashboardVariableOptionsToHclTerraform; exports.oneDashboardVariableToTerraform = oneDashboardVariableToTerraform; exports.oneDashboardVariableToHclTerraform = oneDashboardVariableToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); /** * Copyright (c) HashiCorp, Inc. * SPDX-License-Identifier: MPL-2.0 */ const cdktf = require("cdktf"); const structs0_1 = require("./structs0"); function oneDashboardPageWidgetMarkdownColorsSeriesOverridesToTerraform(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 { color: cdktf.stringToTerraform(struct.color), series_name: cdktf.stringToTerraform(struct.seriesName), }; } function oneDashboardPageWidgetMarkdownColorsSeriesOverridesToHclTerraform(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 = { color: { value: cdktf.stringToHclTerraform(struct.color), isBlock: false, type: "simple", storageClassType: "string", }, series_name: { value: cdktf.stringToHclTerraform(struct.seriesName), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class OneDashboardPageWidgetMarkdownColorsSeriesOverridesOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._color !== undefined) { hasAnyValues = true; internalValueResult.color = this._color; } if (this._seriesName !== undefined) { hasAnyValues = true; internalValueResult.seriesName = this._seriesName; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._color = undefined; this._seriesName = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._color = value.color; this._seriesName = value.seriesName; } } get color() { return this.getStringAttribute('color'); } set color(value) { this._color = value; } resetColor() { this._color = undefined; } // Temporarily expose input value. Use with caution. get colorInput() { return this._color; } get seriesName() { return this.getStringAttribute('series_name'); } set seriesName(value) { this._seriesName = value; } resetSeriesName() { this._seriesName = undefined; } // Temporarily expose input value. Use with caution. get seriesNameInput() { return this._seriesName; } } exports.OneDashboardPageWidgetMarkdownColorsSeriesOverridesOutputReference = OneDashboardPageWidgetMarkdownColorsSeriesOverridesOutputReference; _a = JSII_RTTI_SYMBOL_1; OneDashboardPageWidgetMarkdownColorsSeriesOverridesOutputReference[_a] = { fqn: "@cdktf/provider-newrelic.oneDashboard.OneDashboardPageWidgetMarkdownColorsSeriesOverridesOutputReference", version: "13.1.0" }; class OneDashboardPageWidgetMarkdownColorsSeriesOverridesList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new OneDashboardPageWidgetMarkdownColorsSeriesOverridesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.OneDashboardPageWidgetMarkdownColorsSeriesOverridesList = OneDashboardPageWidgetMarkdownColorsSeriesOverridesList; _b = JSII_RTTI_SYMBOL_1; OneDashboardPageWidgetMarkdownColorsSeriesOverridesList[_b] = { fqn: "@cdktf/provider-newrelic.oneDashboard.OneDashboardPageWidgetMarkdownColorsSeriesOverridesList", version: "13.1.0" }; function oneDashboardPageWidgetMarkdownColorsToTerraform(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 { color: cdktf.stringToTerraform(struct.color), series_overrides: cdktf.listMapper(oneDashboardPageWidgetMarkdownColorsSeriesOverridesToTerraform, true)(struct.seriesOverrides), }; } function oneDashboardPageWidgetMarkdownColorsToHclTerraform(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 = { color: { value: cdktf.stringToHclTerraform(struct.color), isBlock: false, type: "simple", storageClassType: "string", }, series_overrides: { value: cdktf.listMapperHcl(oneDashboardPageWidgetMarkdownColorsSeriesOverridesToHclTerraform, true)(struct.seriesOverrides), isBlock: true, type: "list", storageClassType: "OneDashboardPageWidgetMarkdownColorsSeriesOverridesList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class OneDashboardPageWidgetMarkdownColorsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; // series_overrides - computed: false, optional: true, required: false this._seriesOverrides = new OneDashboardPageWidgetMarkdownColorsSeriesOverridesList(this, "series_overrides", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._color !== undefined) { hasAnyValues = true; internalValueResult.color = this._color; } if (this._seriesOverrides?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.seriesOverrides = this._seriesOverrides?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._color = undefined; this._seriesOverrides.internalValue = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._color = value.color; this._seriesOverrides.internalValue = value.seriesOverrides; } } get color() { return this.getStringAttribute('color'); } set color(value) { this._color = value; } resetColor() { this._color = undefined; } // Temporarily expose input value. Use with caution. get colorInput() { return this._color; } get seriesOverrides() { return this._seriesOverrides; } putSeriesOverrides(value) { this._seriesOverrides.internalValue = value; } resetSeriesOverrides() { this._seriesOverrides.internalValue = undefined; } // Temporarily expose input value. Use with caution. get seriesOverridesInput() { return this._seriesOverrides.internalValue; } } exports.OneDashboardPageWidgetMarkdownColorsOutputReference = OneDashboardPageWidgetMarkdownColorsOutputReference; _c = JSII_RTTI_SYMBOL_1; OneDashboardPageWidgetMarkdownColorsOutputReference[_c] = { fqn: "@cdktf/provider-newrelic.oneDashboard.OneDashboardPageWidgetMarkdownColorsOutputReference", version: "13.1.0" }; class OneDashboardPageWidgetMarkdownColorsList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new OneDashboardPageWidgetMarkdownColorsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.OneDashboardPageWidgetMarkdownColorsList = OneDashboardPageWidgetMarkdownColorsList; _d = JSII_RTTI_SYMBOL_1; OneDashboardPageWidgetMarkdownColorsList[_d] = { fqn: "@cdktf/provider-newrelic.oneDashboard.OneDashboardPageWidgetMarkdownColorsList", version: "13.1.0" }; function oneDashboardPageWidgetMarkdownDataFormatToTerraform(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 { format: cdktf.stringToTerraform(struct.format), name: cdktf.stringToTerraform(struct.name), precision: cdktf.numberToTerraform(struct.precision), type: cdktf.stringToTerraform(struct.type), }; } function oneDashboardPageWidgetMarkdownDataFormatToHclTerraform(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 = { format: { value: cdktf.stringToHclTerraform(struct.format), isBlock: false, type: "simple", storageClassType: "string", }, name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, precision: { value: cdktf.numberToHclTerraform(struct.precision), isBlock: false, type: "simple", storageClassType: "number", }, type: { value: cdktf.stringToHclTerraform(struct.type), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class OneDashboardPageWidgetMarkdownDataFormatOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._format !== undefined) { hasAnyValues = true; internalValueResult.format = this._format; } if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._precision !== undefined) { hasAnyValues = true; internalValueResult.precision = this._precision; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._format = undefined; this._name = undefined; this._precision = undefined; this._type = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._format = value.format; this._name = value.name; this._precision = value.precision; this._type = value.type; } } get format() { return this.getStringAttribute('format'); } set format(value) { this._format = value; } resetFormat() { this._format = undefined; } // Temporarily expose input value. Use with caution. get formatInput() { return this._format; } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } get precision() { return this.getNumberAttribute('precision'); } set precision(value) { this._precision = value; } resetPrecision() { this._precision = undefined; } // Temporarily expose input value. Use with caution. get precisionInput() { return this._precision; } get type() { return this.getStringAttribute('type'); } set type(value) { this._type = value; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } } exports.OneDashboardPageWidgetMarkdownDataFormatOutputReference = OneDashboardPageWidgetMarkdownDataFormatOutputReference; _e = JSII_RTTI_SYMBOL_1; OneDashboardPageWidgetMarkdownDataFormatOutputReference[_e] = { fqn: "@cdktf/provider-newrelic.oneDashboard.OneDashboardPageWidgetMarkdownDataFormatOutputReference", version: "13.1.0" }; class OneDashboardPageWidgetMarkdownDataFormatList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new OneDashboardPageWidgetMarkdownDataFormatOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.OneDashboardPageWidgetMarkdownDataFormatList = OneDashboardPageWidgetMarkdownDataFormatList; _f = JSII_RTTI_SYMBOL_1; OneDashboardPageWidgetMarkdownDataFormatList[_f] = { fqn: "@cdktf/provider-newrelic.oneDashboard.OneDashboardPageWidgetMarkdownDataFormatList", version: "13.1.0" }; function oneDashboardPageWidgetMarkdownInitialSortingToTerraform(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 { direction: cdktf.stringToTerraform(struct.direction), name: cdktf.stringToTerraform(struct.name), }; } function oneDashboardPageWidgetMarkdownInitialSortingToHclTerraform(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 = { direction: { value: cdktf.stringToHclTerraform(struct.direction), isBlock: false, type: "simple", storageClassType: "string", }, name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class OneDashboardPageWidgetMarkdownInitialSortingOutputReference 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._direction !== undefined) { hasAnyValues = true; internalValueResult.direction = this._direction; } if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._direction = undefined; this._name = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._direction = value.direction; this._name = value.name; } } get direction() { return this.getStringAttribute('direction'); } set direction(value) { this._direction = value; } // Temporarily expose input value. Use with caution. get directionInput() { return this._direction; } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } } exports.OneDashboardPageWidgetMarkdownInitialSortingOutputReference = OneDashboardPageWidgetMarkdownInitialSortingOutputReference; _g = JSII_RTTI_SYMBOL_1; OneDashboardPageWidgetMarkdownInitialSortingOutputReference[_g] = { fqn: "@cdktf/provider-newrelic.oneDashboard.OneDashboardPageWidgetMarkdownInitialSortingOutputReference", version: "13.1.0" }; function oneDashboardPageWidgetMarkdownNullValuesSeriesOverridesToTerraform(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 { null_value: cdktf.stringToTerraform(struct.nullValue), series_name: cdktf.stringToTerraform(struct.seriesName), }; } function oneDashboardPageWidgetMarkdownNullValuesSeriesOverridesToHclTerraform(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 = { null_value: { value: cdktf.stringToHclTerraform(struct.nullValue), isBlock: false, type: "simple", storageClassType: "string", }, series_name: { value: cdktf.stringToHclTerraform(struct.seriesName), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class OneDashboardPageWidgetMarkdownNullValuesSeriesOverridesOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._nullValue !== undefined) { hasAnyValues = true; internalValueResult.nullValue = this._nullValue; } if (this._seriesName !== undefined) { hasAnyValues = true; internalValueResult.seriesName = this._seriesName; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._nullValue = undefined; this._seriesName = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._nullValue = value.nullValue; this._seriesName = value.seriesName; } } get nullValue() { return this.getStringAttribute('null_value'); } set nullValue(value) { this._nullValue = value; } resetNullValue() { this._nullValue = undefined; } // Temporarily expose input value. Use with caution. get nullValueInput() { return this._nullValue; } get seriesName() { return this.getStringAttribute('series_name'); } set seriesName(value) { this._seriesName = value; } resetSeriesName() { this._seriesName = undefined; } // Temporarily expose input value. Use with caution. get seriesNameInput() { return this._seriesName; } } exports.OneDashboardPageWidgetMarkdownNullValuesSeriesOverridesOutputReference = OneDashboardPageWidgetMarkdownNullValuesSeriesOverridesOutputReference; _h = JSII_RTTI_SYMBOL_1; OneDashboardPageWidgetMarkdownNullValuesSeriesOverridesOutputReference[_h] = { fqn: "@cdktf/provider-newrelic.oneDashboard.OneDashboardPageWidgetMarkdownNullValuesSeriesOverridesOutputReference", version: "13.1.0" }; class OneDashboardPageWidgetMarkdownNullValuesSeriesOverridesList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new OneDashboardPageWidgetMarkdownNullValuesSeriesOverridesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.OneDashboardPageWidgetMarkdownNullValuesSeriesOverridesList = OneDashboardPageWidgetMarkdownNullValuesSeriesOverridesList; _j = JSII_RTTI_SYMBOL_1; OneDashboardPageWidgetMarkdownNullValuesSeriesOverridesList[_j] = { fqn: "@cdktf/provider-newrelic.oneDashboard.OneDashboardPageWidgetMarkdownNullValuesSeriesOverridesList", version: "13.1.0" }; function oneDashboardPageWidgetMarkdownNullValuesToTerraform(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 { null_value: cdktf.stringToTerraform(struct.nullValue), series_overrides: cdktf.listMapper(oneDashboardPageWidgetMarkdownNullValuesSeriesOverridesToTerraform, true)(struct.seriesOverrides), }; } function oneDashboardPageWidgetMarkdownNullValuesToHclTerraform(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 = { null_value: { value: cdktf.stringToHclTerraform(struct.nullValue), isBlock: false, type: "simple", storageClassType: "string", }, series_overrides: { value: cdktf.listMapperHcl(oneDashboardPageWidgetMarkdownNullValuesSeriesOverridesToHclTerraform, true)(struct.seriesOverrides), isBlock: true, type: "list", storageClassType: "OneDashboardPageWidgetMarkdownNullValuesSeriesOverridesList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class OneDashboardPageWidgetMarkdownNullValuesOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; // series_overrides - computed: false, optional: true, required: false this._seriesOverrides = new OneDashboardPageWidgetMarkdownNullValuesSeriesOverridesList(this, "series_overrides", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._nullValue !== undefined) { hasAnyValues = true; internalValueResult.nullValue = this._nullValue; } if (this._seriesOverrides?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.seriesOverrides = this._seriesOverrides?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._nullValue = undefined; this._seriesOverrides.internalValue = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._nullValue = value.nullValue; this._seriesOverrides.internalValue = value.seriesOverrides; } } get nullValue() { return this.getStringAttribute('null_value'); } set nullValue(value) { this._nullValue = value; } resetNullValue() { this._nullValue = undefined; } // Temporarily expose input value. Use with caution. get nullValueInput() { return this._nullValue; } get seriesOverrides() { return this._seriesOverrides; } putSeriesOverrides(value) { this._seriesOverrides.internalValue = value; } resetSeriesOverrides() { this._seriesOverrides.internalValue = undefined; } // Temporarily expose input value. Use with caution. get seriesOverridesInput() { return this._seriesOverrides.internalValue; } } exports.OneDashboardPageWidgetMarkdownNullValuesOutputReference = OneDashboardPageWidgetMarkdownNullValuesOutputReference; _k = JSII_RTTI_SYMBOL_1; OneDashboardPageWidgetMarkdownNullValuesOutputReference[_k] = { fqn: "@cdktf/provider-newrelic.oneDashboard.OneDashboardPageWidgetMarkdownNullValuesOutputReference", version: "13.1.0" }; class OneDashboardPageWidgetMarkdownNullValuesList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new OneDashboardPageWidgetMarkdownNullValuesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.OneDashboardPageWidgetMarkdownNullValuesList = OneDashboardPageWidgetMarkdownNullValuesList; _l = JSII_RTTI_SYMBOL_1; OneDashboardPageWidgetMarkdownNullValuesList[_l] = { fqn: "@cdktf/provider-newrelic.oneDashboard.OneDashboardPageWidgetMarkdownNullValuesList", version: "13.1.0" }; function oneDashboardPageWidg