UNPKG

@cdktf/provider-newrelic

Version:

Prebuilt newrelic Provider for Terraform CDK (cdktf)

932 lines • 1.27 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, _61, _62, _63; Object.defineProperty(exports, "__esModule", { value: true }); 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 = exports.OneDashboardPageWidgetLogTableList = exports.OneDashboardPageWidgetLogTableOutputReference = 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 = exports.OneDashboardPageWidgetStackedBarUnitsSeriesOverridesOutputReference = exports.OneDashboardPageWidgetStackedBarTooltipOutputReference = exports.OneDashboardPageWidgetStackedBarNullValuesList = void 0; exports.oneDashboardPageWidgetLogTableToTerraform = oneDashboardPageWidgetLogTableToTerraform; exports.oneDashboardPageWidgetLogTableToHclTerraform = oneDashboardPageWidgetLogTableToHclTerraform; 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.oneDashboardPageWidgetStackedBarTooltipToTerraform = oneDashboardPageWidgetStackedBarTooltipToTerraform; exports.oneDashboardPageWidgetStackedBarTooltipToHclTerraform = oneDashboardPageWidgetStackedBarTooltipToHclTerraform; 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 oneDashboardPageWidgetLogTableToTerraform(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 { column: cdktf.numberToTerraform(struct.column), facet_show_other_series: cdktf.booleanToTerraform(struct.facetShowOtherSeries), height: cdktf.numberToTerraform(struct.height), ignore_time_range: cdktf.booleanToTerraform(struct.ignoreTimeRange), legend_enabled: cdktf.booleanToTerraform(struct.legendEnabled), refresh_rate: cdktf.stringToTerraform(struct.refreshRate), row: cdktf.numberToTerraform(struct.row), title: cdktf.stringToTerraform(struct.title), width: cdktf.numberToTerraform(struct.width), y_axis_left_max: cdktf.numberToTerraform(struct.yAxisLeftMax), y_axis_left_min: cdktf.numberToTerraform(struct.yAxisLeftMin), colors: cdktf.listMapper(structs0_1.oneDashboardPageWidgetLogTableColorsToTerraform, true)(struct.colors), data_format: cdktf.listMapper(structs0_1.oneDashboardPageWidgetLogTableDataFormatToTerraform, true)(struct.dataFormat), initial_sorting: (0, structs0_1.oneDashboardPageWidgetLogTableInitialSortingToTerraform)(struct.initialSorting), nrql_query: cdktf.listMapper(structs0_1.oneDashboardPageWidgetLogTableNrqlQueryToTerraform, true)(struct.nrqlQuery), null_values: cdktf.listMapper(structs0_1.oneDashboardPageWidgetLogTableNullValuesToTerraform, true)(struct.nullValues), units: cdktf.listMapper(structs0_1.oneDashboardPageWidgetLogTableUnitsToTerraform, true)(struct.units), }; } function oneDashboardPageWidgetLogTableToHclTerraform(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 = { column: { value: cdktf.numberToHclTerraform(struct.column), isBlock: false, type: "simple", storageClassType: "number", }, facet_show_other_series: { value: cdktf.booleanToHclTerraform(struct.facetShowOtherSeries), isBlock: false, type: "simple", storageClassType: "boolean", }, height: { value: cdktf.numberToHclTerraform(struct.height), isBlock: false, type: "simple", storageClassType: "number", }, ignore_time_range: { value: cdktf.booleanToHclTerraform(struct.ignoreTimeRange), isBlock: false, type: "simple", storageClassType: "boolean", }, legend_enabled: { value: cdktf.booleanToHclTerraform(struct.legendEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, refresh_rate: { value: cdktf.stringToHclTerraform(struct.refreshRate), isBlock: false, type: "simple", storageClassType: "string", }, row: { value: cdktf.numberToHclTerraform(struct.row), isBlock: false, type: "simple", storageClassType: "number", }, title: { value: cdktf.stringToHclTerraform(struct.title), isBlock: false, type: "simple", storageClassType: "string", }, width: { value: cdktf.numberToHclTerraform(struct.width), isBlock: false, type: "simple", storageClassType: "number", }, y_axis_left_max: { value: cdktf.numberToHclTerraform(struct.yAxisLeftMax), isBlock: false, type: "simple", storageClassType: "number", }, y_axis_left_min: { value: cdktf.numberToHclTerraform(struct.yAxisLeftMin), isBlock: false, type: "simple", storageClassType: "number", }, colors: { value: cdktf.listMapperHcl(structs0_1.oneDashboardPageWidgetLogTableColorsToHclTerraform, true)(struct.colors), isBlock: true, type: "list", storageClassType: "OneDashboardPageWidgetLogTableColorsList", }, data_format: { value: cdktf.listMapperHcl(structs0_1.oneDashboardPageWidgetLogTableDataFormatToHclTerraform, true)(struct.dataFormat), isBlock: true, type: "list", storageClassType: "OneDashboardPageWidgetLogTableDataFormatList", }, initial_sorting: { value: (0, structs0_1.oneDashboardPageWidgetLogTableInitialSortingToHclTerraform)(struct.initialSorting), isBlock: true, type: "list", storageClassType: "OneDashboardPageWidgetLogTableInitialSortingList", }, nrql_query: { value: cdktf.listMapperHcl(structs0_1.oneDashboardPageWidgetLogTableNrqlQueryToHclTerraform, true)(struct.nrqlQuery), isBlock: true, type: "list", storageClassType: "OneDashboardPageWidgetLogTableNrqlQueryList", }, null_values: { value: cdktf.listMapperHcl(structs0_1.oneDashboardPageWidgetLogTableNullValuesToHclTerraform, true)(struct.nullValues), isBlock: true, type: "list", storageClassType: "OneDashboardPageWidgetLogTableNullValuesList", }, units: { value: cdktf.listMapperHcl(structs0_1.oneDashboardPageWidgetLogTableUnitsToHclTerraform, true)(struct.units), isBlock: true, type: "list", storageClassType: "OneDashboardPageWidgetLogTableUnitsList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class OneDashboardPageWidgetLogTableOutputReference 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; // colors - computed: false, optional: true, required: false this._colors = new structs0_1.OneDashboardPageWidgetLogTableColorsList(this, "colors", false); // data_format - computed: false, optional: true, required: false this._dataFormat = new structs0_1.OneDashboardPageWidgetLogTableDataFormatList(this, "data_format", false); // initial_sorting - computed: false, optional: true, required: false this._initialSorting = new structs0_1.OneDashboardPageWidgetLogTableInitialSortingOutputReference(this, "initial_sorting"); // nrql_query - computed: false, optional: false, required: true this._nrqlQuery = new structs0_1.OneDashboardPageWidgetLogTableNrqlQueryList(this, "nrql_query", false); // null_values - computed: false, optional: true, required: false this._nullValues = new structs0_1.OneDashboardPageWidgetLogTableNullValuesList(this, "null_values", false); // units - computed: false, optional: true, required: false this._units = new structs0_1.OneDashboardPageWidgetLogTableUnitsList(this, "units", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._column !== undefined) { hasAnyValues = true; internalValueResult.column = this._column; } if (this._facetShowOtherSeries !== undefined) { hasAnyValues = true; internalValueResult.facetShowOtherSeries = this._facetShowOtherSeries; } if (this._height !== undefined) { hasAnyValues = true; internalValueResult.height = this._height; } if (this._ignoreTimeRange !== undefined) { hasAnyValues = true; internalValueResult.ignoreTimeRange = this._ignoreTimeRange; } if (this._legendEnabled !== undefined) { hasAnyValues = true; internalValueResult.legendEnabled = this._legendEnabled; } if (this._refreshRate !== undefined) { hasAnyValues = true; internalValueResult.refreshRate = this._refreshRate; } if (this._row !== undefined) { hasAnyValues = true; internalValueResult.row = this._row; } if (this._title !== undefined) { hasAnyValues = true; internalValueResult.title = this._title; } if (this._width !== undefined) { hasAnyValues = true; internalValueResult.width = this._width; } if (this._yAxisLeftMax !== undefined) { hasAnyValues = true; internalValueResult.yAxisLeftMax = this._yAxisLeftMax; } if (this._yAxisLeftMin !== undefined) { hasAnyValues = true; internalValueResult.yAxisLeftMin = this._yAxisLeftMin; } if (this._colors?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.colors = this._colors?.internalValue; } if (this._dataFormat?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.dataFormat = this._dataFormat?.internalValue; } if (this._initialSorting?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.initialSorting = this._initialSorting?.internalValue; } if (this._nrqlQuery?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.nrqlQuery = this._nrqlQuery?.internalValue; } if (this._nullValues?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.nullValues = this._nullValues?.internalValue; } if (this._units?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.units = this._units?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._column = undefined; this._facetShowOtherSeries = undefined; this._height = undefined; this._ignoreTimeRange = undefined; this._legendEnabled = undefined; this._refreshRate = undefined; this._row = undefined; this._title = undefined; this._width = undefined; this._yAxisLeftMax = undefined; this._yAxisLeftMin = undefined; this._colors.internalValue = undefined; this._dataFormat.internalValue = undefined; this._initialSorting.internalValue = undefined; this._nrqlQuery.internalValue = undefined; this._nullValues.internalValue = undefined; this._units.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._column = value.column; this._facetShowOtherSeries = value.facetShowOtherSeries; this._height = value.height; this._ignoreTimeRange = value.ignoreTimeRange; this._legendEnabled = value.legendEnabled; this._refreshRate = value.refreshRate; this._row = value.row; this._title = value.title; this._width = value.width; this._yAxisLeftMax = value.yAxisLeftMax; this._yAxisLeftMin = value.yAxisLeftMin; this._colors.internalValue = value.colors; this._dataFormat.internalValue = value.dataFormat; this._initialSorting.internalValue = value.initialSorting; this._nrqlQuery.internalValue = value.nrqlQuery; this._nullValues.internalValue = value.nullValues; this._units.internalValue = value.units; } } get column() { return this.getNumberAttribute('column'); } set column(value) { this._column = value; } // Temporarily expose input value. Use with caution. get columnInput() { return this._column; } get facetShowOtherSeries() { return this.getBooleanAttribute('facet_show_other_series'); } set facetShowOtherSeries(value) { this._facetShowOtherSeries = value; } resetFacetShowOtherSeries() { this._facetShowOtherSeries = undefined; } // Temporarily expose input value. Use with caution. get facetShowOtherSeriesInput() { return this._facetShowOtherSeries; } get height() { return this.getNumberAttribute('height'); } set height(value) { this._height = value; } resetHeight() { this._height = undefined; } // Temporarily expose input value. Use with caution. get heightInput() { return this._height; } // id - computed: true, optional: false, required: false get id() { return this.getStringAttribute('id'); } get ignoreTimeRange() { return this.getBooleanAttribute('ignore_time_range'); } set ignoreTimeRange(value) { this._ignoreTimeRange = value; } resetIgnoreTimeRange() { this._ignoreTimeRange = undefined; } // Temporarily expose input value. Use with caution. get ignoreTimeRangeInput() { return this._ignoreTimeRange; } get legendEnabled() { return this.getBooleanAttribute('legend_enabled'); } set legendEnabled(value) { this._legendEnabled = value; } resetLegendEnabled() { this._legendEnabled = undefined; } // Temporarily expose input value. Use with caution. get legendEnabledInput() { return this._legendEnabled; } get refreshRate() { return this.getStringAttribute('refresh_rate'); } set refreshRate(value) { this._refreshRate = value; } resetRefreshRate() { this._refreshRate = undefined; } // Temporarily expose input value. Use with caution. get refreshRateInput() { return this._refreshRate; } get row() { return this.getNumberAttribute('row'); } set row(value) { this._row = value; } // Temporarily expose input value. Use with caution. get rowInput() { return this._row; } get title() { return this.getStringAttribute('title'); } set title(value) { this._title = value; } // Temporarily expose input value. Use with caution. get titleInput() { return this._title; } get width() { return this.getNumberAttribute('width'); } set width(value) { this._width = value; } resetWidth() { this._width = undefined; } // Temporarily expose input value. Use with caution. get widthInput() { return this._width; } get yAxisLeftMax() { return this.getNumberAttribute('y_axis_left_max'); } set yAxisLeftMax(value) { this._yAxisLeftMax = value; } resetYAxisLeftMax() { this._yAxisLeftMax = undefined; } // Temporarily expose input value. Use with caution. get yAxisLeftMaxInput() { return this._yAxisLeftMax; } get yAxisLeftMin() { return this.getNumberAttribute('y_axis_left_min'); } set yAxisLeftMin(value) { this._yAxisLeftMin = value; } resetYAxisLeftMin() { this._yAxisLeftMin = undefined; } // Temporarily expose input value. Use with caution. get yAxisLeftMinInput() { return this._yAxisLeftMin; } get colors() { return this._colors; } putColors(value) { this._colors.internalValue = value; } resetColors() { this._colors.internalValue = undefined; } // Temporarily expose input value. Use with caution. get colorsInput() { return this._colors.internalValue; } get dataFormat() { return this._dataFormat; } putDataFormat(value) { this._dataFormat.internalValue = value; } resetDataFormat() { this._dataFormat.internalValue = undefined; } // Temporarily expose input value. Use with caution. get dataFormatInput() { return this._dataFormat.internalValue; } get initialSorting() { return this._initialSorting; } putInitialSorting(value) { this._initialSorting.internalValue = value; } resetInitialSorting() { this._initialSorting.internalValue = undefined; } // Temporarily expose input value. Use with caution. get initialSortingInput() { return this._initialSorting.internalValue; } get nrqlQuery() { return this._nrqlQuery; } putNrqlQuery(value) { this._nrqlQuery.internalValue = value; } // Temporarily expose input value. Use with caution. get nrqlQueryInput() { return this._nrqlQuery.internalValue; } get nullValues() { return this._nullValues; } putNullValues(value) { this._nullValues.internalValue = value; } resetNullValues() { this._nullValues.internalValue = undefined; } // Temporarily expose input value. Use with caution. get nullValuesInput() { return this._nullValues.internalValue; } get units() { return this._units; } putUnits(value) { this._units.internalValue = value; } resetUnits() { this._units.internalValue = undefined; } // Temporarily expose input value. Use with caution. get unitsInput() { return this._units.internalValue; } } exports.OneDashboardPageWidgetLogTableOutputReference = OneDashboardPageWidgetLogTableOutputReference; _a = JSII_RTTI_SYMBOL_1; OneDashboardPageWidgetLogTableOutputReference[_a] = { fqn: "@cdktf/provider-newrelic.oneDashboard.OneDashboardPageWidgetLogTableOutputReference", version: "13.4.0" }; class OneDashboardPageWidgetLogTableList 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 OneDashboardPageWidgetLogTableOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.OneDashboardPageWidgetLogTableList = OneDashboardPageWidgetLogTableList; _b = JSII_RTTI_SYMBOL_1; OneDashboardPageWidgetLogTableList[_b] = { fqn: "@cdktf/provider-newrelic.oneDashboard.OneDashboardPageWidgetLogTableList", version: "13.4.0" }; 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; _c = JSII_RTTI_SYMBOL_1; OneDashboardPageWidgetMarkdownColorsSeriesOverridesOutputReference[_c] = { fqn: "@cdktf/provider-newrelic.oneDashboard.OneDashboardPageWidgetMarkdownColorsSeriesOverridesOutputReference", version: "13.4.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; _d = JSII_RTTI_SYMBOL_1; OneDashboardPageWidgetMarkdownColorsSeriesOverridesList[_d] = { fqn: "@cdktf/provider-newrelic.oneDashboard.OneDashboardPageWidgetMarkdownColorsSeriesOverridesList", version: "13.4.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; _e = JSII_RTTI_SYMBOL_1; OneDashboardPageWidgetMarkdownColorsOutputReference[_e] = { fqn: "@cdktf/provider-newrelic.oneDashboard.OneDashboardPageWidgetMarkdownColorsOutputReference", version: "13.4.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; _f = JSII_RTTI_SYMBOL_1; OneDashboardPageWidgetMarkdownColorsList[_f] = { fqn: "@cdktf/provider-newrelic.oneDashboard.OneDashboardPageWidgetMarkdownColorsList", version: "13.4.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: fa