@cdktf-providers/newrelic 3.75.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/LICENSE +355 -0
  2. package/README.md +19 -0
  3. package/dist/account-management/index.d.ts +64 -0
  4. package/dist/account-management/index.js +131 -0
  5. package/dist/alert-channel/index.d.ts +347 -0
  6. package/dist/alert-channel/index.js +810 -0
  7. package/dist/alert-condition/index.d.ts +267 -0
  8. package/dist/alert-condition/index.js +587 -0
  9. package/dist/alert-muting-rule/index.d.ts +305 -0
  10. package/dist/alert-muting-rule/index.js +731 -0
  11. package/dist/alert-policy/index.d.ts +87 -0
  12. package/dist/alert-policy/index.js +180 -0
  13. package/dist/alert-policy-channel/index.d.ts +110 -0
  14. package/dist/alert-policy-channel/index.js +260 -0
  15. package/dist/api-access-key/index.d.ts +98 -0
  16. package/dist/api-access-key/index.js +230 -0
  17. package/dist/application-settings/index.d.ts +410 -0
  18. package/dist/application-settings/index.js +966 -0
  19. package/dist/browser-application/index.d.ts +101 -0
  20. package/dist/browser-application/index.js +215 -0
  21. package/dist/cloud-aws-govcloud-integrations/index.d.ts +1519 -0
  22. package/dist/cloud-aws-govcloud-integrations/index.js +3846 -0
  23. package/dist/cloud-aws-govcloud-link-account/index.d.ts +86 -0
  24. package/dist/cloud-aws-govcloud-link-account/index.js +177 -0
  25. package/dist/cloud-aws-integrations/index.d.ts +3294 -0
  26. package/dist/cloud-aws-integrations/index.js +8554 -0
  27. package/dist/cloud-aws-link-account/index.d.ts +86 -0
  28. package/dist/cloud-aws-link-account/index.js +177 -0
  29. package/dist/cloud-azure-integrations/index.d.ts +1662 -0
  30. package/dist/cloud-azure-integrations/index.js +4338 -0
  31. package/dist/cloud-azure-link-account/index.d.ts +105 -0
  32. package/dist/cloud-azure-link-account/index.js +214 -0
  33. package/dist/cloud-gcp-integrations/index.d.ts +1045 -0
  34. package/dist/cloud-gcp-integrations/index.js +2742 -0
  35. package/dist/cloud-gcp-link-account/index.d.ts +75 -0
  36. package/dist/cloud-gcp-link-account/index.js +154 -0
  37. package/dist/cloud-oci-link-account/index.d.ts +191 -0
  38. package/dist/cloud-oci-link-account/index.js +392 -0
  39. package/dist/data-newrelic-account/index.d.ts +77 -0
  40. package/dist/data-newrelic-account/index.js +160 -0
  41. package/dist/data-newrelic-alert-channel/index.d.ts +122 -0
  42. package/dist/data-newrelic-alert-channel/index.js +295 -0
  43. package/dist/data-newrelic-alert-policy/index.d.ts +78 -0
  44. package/dist/data-newrelic-alert-policy/index.js +165 -0
  45. package/dist/data-newrelic-application/index.d.ts +56 -0
  46. package/dist/data-newrelic-application/index.js +119 -0
  47. package/dist/data-newrelic-authentication-domain/index.d.ts +43 -0
  48. package/dist/data-newrelic-authentication-domain/index.js +92 -0
  49. package/dist/data-newrelic-cloud-account/index.d.ts +75 -0
  50. package/dist/data-newrelic-cloud-account/index.js +154 -0
  51. package/dist/data-newrelic-entity/index.d.ts +185 -0
  52. package/dist/data-newrelic-entity/index.js +414 -0
  53. package/dist/data-newrelic-group/index.d.ts +54 -0
  54. package/dist/data-newrelic-group/index.js +116 -0
  55. package/dist/data-newrelic-key-transaction/index.d.ts +78 -0
  56. package/dist/data-newrelic-key-transaction/index.js +165 -0
  57. package/dist/data-newrelic-notification-destination/index.d.ts +161 -0
  58. package/dist/data-newrelic-notification-destination/index.js +368 -0
  59. package/dist/data-newrelic-obfuscation-expression/index.d.ts +65 -0
  60. package/dist/data-newrelic-obfuscation-expression/index.js +134 -0
  61. package/dist/data-newrelic-service-level-alert-helper/index.d.ts +107 -0
  62. package/dist/data-newrelic-service-level-alert-helper/index.js +256 -0
  63. package/dist/data-newrelic-synthetics-private-location/index.d.ts +76 -0
  64. package/dist/data-newrelic-synthetics-private-location/index.js +157 -0
  65. package/dist/data-newrelic-synthetics-secure-credential/index.d.ts +67 -0
  66. package/dist/data-newrelic-synthetics-secure-credential/index.js +142 -0
  67. package/dist/data-newrelic-test-grok-pattern/index.d.ts +145 -0
  68. package/dist/data-newrelic-test-grok-pattern/index.js +312 -0
  69. package/dist/data-newrelic-user/index.d.ts +65 -0
  70. package/dist/data-newrelic-user/index.js +138 -0
  71. package/dist/data-partition-rule/index.d.ts +142 -0
  72. package/dist/data-partition-rule/index.js +327 -0
  73. package/dist/entity-tags/index.d.ts +152 -0
  74. package/dist/entity-tags/index.js +367 -0
  75. package/dist/events-to-metrics-rule/index.d.ts +98 -0
  76. package/dist/events-to-metrics-rule/index.js +204 -0
  77. package/dist/group/index.d.ts +75 -0
  78. package/dist/group/index.js +154 -0
  79. package/dist/index.d.ts +67 -0
  80. package/dist/index.js +68 -0
  81. package/dist/infra-alert-condition/index.d.ts +289 -0
  82. package/dist/infra-alert-condition/index.js +691 -0
  83. package/dist/insights-event/index.d.ts +182 -0
  84. package/dist/insights-event/index.js +427 -0
  85. package/dist/key-transaction/index.d.ts +96 -0
  86. package/dist/key-transaction/index.js +199 -0
  87. package/dist/lazy-index.d.ts +0 -0
  88. package/dist/lazy-index.js +68 -0
  89. package/dist/log-parsing-rule/index.d.ts +128 -0
  90. package/dist/log-parsing-rule/index.js +264 -0
  91. package/dist/monitor-downtime/index.d.ts +255 -0
  92. package/dist/monitor-downtime/index.js +603 -0
  93. package/dist/notification-channel/index.d.ts +236 -0
  94. package/dist/notification-channel/index.js +561 -0
  95. package/dist/notification-destination/index.d.ts +402 -0
  96. package/dist/notification-destination/index.js +1039 -0
  97. package/dist/nrql-alert-condition/index.d.ts +892 -0
  98. package/dist/nrql-alert-condition/index.js +2177 -0
  99. package/dist/nrql-drop-rule/index.d.ts +123 -0
  100. package/dist/nrql-drop-rule/index.js +291 -0
  101. package/dist/obfuscation-expression/index.d.ts +86 -0
  102. package/dist/obfuscation-expression/index.js +177 -0
  103. package/dist/obfuscation-rule/index.d.ts +169 -0
  104. package/dist/obfuscation-rule/index.js +372 -0
  105. package/dist/one-dashboard/index-structs/index.d.ts +2 -0
  106. package/dist/one-dashboard/index-structs/index.js +2 -0
  107. package/dist/one-dashboard/index-structs/structs0.d.ts +6996 -0
  108. package/dist/one-dashboard/index-structs/structs0.js +18191 -0
  109. package/dist/one-dashboard/index-structs/structs400.d.ts +3699 -0
  110. package/dist/one-dashboard/index-structs/structs400.js +9611 -0
  111. package/dist/one-dashboard/index.d.ts +112 -0
  112. package/dist/one-dashboard/index.js +232 -0
  113. package/dist/one-dashboard-json/index.d.ts +112 -0
  114. package/dist/one-dashboard-json/index.js +280 -0
  115. package/dist/one-dashboard-raw/index.d.ts +274 -0
  116. package/dist/one-dashboard-raw/index.js +666 -0
  117. package/dist/pipeline-cloud-rule/index.d.ts +86 -0
  118. package/dist/pipeline-cloud-rule/index.js +177 -0
  119. package/dist/provider/index.d.ts +160 -0
  120. package/dist/provider/index.js +378 -0
  121. package/dist/service-level/index.d.ts +501 -0
  122. package/dist/service-level/index.js +1425 -0
  123. package/dist/synthetics-alert-condition/index.d.ts +97 -0
  124. package/dist/synthetics-alert-condition/index.js +201 -0
  125. package/dist/synthetics-broken-links-monitor/index.d.ts +217 -0
  126. package/dist/synthetics-broken-links-monitor/index.js +474 -0
  127. package/dist/synthetics-cert-check-monitor/index.d.ts +222 -0
  128. package/dist/synthetics-cert-check-monitor/index.js +490 -0
  129. package/dist/synthetics-monitor/index.d.ts +404 -0
  130. package/dist/synthetics-monitor/index.js +885 -0
  131. package/dist/synthetics-multilocation-alert-condition/index.d.ts +177 -0
  132. package/dist/synthetics-multilocation-alert-condition/index.js +407 -0
  133. package/dist/synthetics-private-location/index.d.ts +90 -0
  134. package/dist/synthetics-private-location/index.js +193 -0
  135. package/dist/synthetics-script-monitor/index.d.ts +348 -0
  136. package/dist/synthetics-script-monitor/index.js +768 -0
  137. package/dist/synthetics-secure-credential/index.d.ts +132 -0
  138. package/dist/synthetics-secure-credential/index.js +306 -0
  139. package/dist/synthetics-step-monitor/index.d.ts +368 -0
  140. package/dist/synthetics-step-monitor/index.js +834 -0
  141. package/dist/user/index.d.ts +85 -0
  142. package/dist/user/index.js +174 -0
  143. package/dist/workflow/index.d.ts +441 -0
  144. package/dist/workflow/index.js +1066 -0
  145. package/dist/workload/index.d.ts +514 -0
  146. package/dist/workload/index.js +1283 -0
  147. package/package.json +50 -0
@@ -0,0 +1,368 @@
1
+ // https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/notification_destination
2
+ // generated from terraform resource schema
3
+ import * as cdktf from 'cdktf';
4
+ export function dataNewrelicNotificationDestinationPropertyToTerraform(struct) {
5
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
6
+ return struct;
7
+ }
8
+ if (cdktf.isComplexElement(struct)) {
9
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
10
+ }
11
+ return {};
12
+ }
13
+ export function dataNewrelicNotificationDestinationPropertyToHclTerraform(struct) {
14
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
15
+ return struct;
16
+ }
17
+ if (cdktf.isComplexElement(struct)) {
18
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
19
+ }
20
+ const attrs = {};
21
+ return attrs;
22
+ }
23
+ export class DataNewrelicNotificationDestinationPropertyOutputReference extends cdktf.ComplexObject {
24
+ isEmptyObject = false;
25
+ /**
26
+ * @param terraformResource The parent resource
27
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
28
+ * @param complexObjectIndex the index of this item in the list
29
+ * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
30
+ */
31
+ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
32
+ super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
33
+ }
34
+ get internalValue() {
35
+ let hasAnyValues = this.isEmptyObject;
36
+ const internalValueResult = {};
37
+ return hasAnyValues ? internalValueResult : undefined;
38
+ }
39
+ set internalValue(value) {
40
+ if (value === undefined) {
41
+ this.isEmptyObject = false;
42
+ }
43
+ else {
44
+ this.isEmptyObject = Object.keys(value).length === 0;
45
+ }
46
+ }
47
+ // display_value - computed: true, optional: false, required: false
48
+ get displayValue() {
49
+ return this.getStringAttribute('display_value');
50
+ }
51
+ // key - computed: true, optional: false, required: false
52
+ get key() {
53
+ return this.getStringAttribute('key');
54
+ }
55
+ // label - computed: true, optional: false, required: false
56
+ get label() {
57
+ return this.getStringAttribute('label');
58
+ }
59
+ // value - computed: true, optional: false, required: false
60
+ get value() {
61
+ return this.getStringAttribute('value');
62
+ }
63
+ }
64
+ export class DataNewrelicNotificationDestinationPropertyList extends cdktf.ComplexList {
65
+ terraformResource;
66
+ terraformAttribute;
67
+ wrapsSet;
68
+ /**
69
+ * @param terraformResource The parent resource
70
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
71
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
72
+ */
73
+ constructor(terraformResource, terraformAttribute, wrapsSet) {
74
+ super(terraformResource, terraformAttribute, wrapsSet);
75
+ this.terraformResource = terraformResource;
76
+ this.terraformAttribute = terraformAttribute;
77
+ this.wrapsSet = wrapsSet;
78
+ }
79
+ /**
80
+ * @param index the index of the item to return
81
+ */
82
+ get(index) {
83
+ return new DataNewrelicNotificationDestinationPropertyOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
84
+ }
85
+ }
86
+ export function dataNewrelicNotificationDestinationSecureUrlToTerraform(struct) {
87
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
88
+ return struct;
89
+ }
90
+ if (cdktf.isComplexElement(struct)) {
91
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
92
+ }
93
+ return {
94
+ prefix: cdktf.stringToTerraform(struct.prefix),
95
+ };
96
+ }
97
+ export function dataNewrelicNotificationDestinationSecureUrlToHclTerraform(struct) {
98
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
99
+ return struct;
100
+ }
101
+ if (cdktf.isComplexElement(struct)) {
102
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
103
+ }
104
+ const attrs = {
105
+ prefix: {
106
+ value: cdktf.stringToHclTerraform(struct.prefix),
107
+ isBlock: false,
108
+ type: "simple",
109
+ storageClassType: "string",
110
+ },
111
+ };
112
+ // remove undefined attributes
113
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
114
+ }
115
+ export class DataNewrelicNotificationDestinationSecureUrlOutputReference extends cdktf.ComplexObject {
116
+ isEmptyObject = false;
117
+ resolvableValue;
118
+ /**
119
+ * @param terraformResource The parent resource
120
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
121
+ * @param complexObjectIndex the index of this item in the list
122
+ * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
123
+ */
124
+ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
125
+ super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
126
+ }
127
+ get internalValue() {
128
+ if (this.resolvableValue) {
129
+ return this.resolvableValue;
130
+ }
131
+ let hasAnyValues = this.isEmptyObject;
132
+ const internalValueResult = {};
133
+ if (this._prefix !== undefined) {
134
+ hasAnyValues = true;
135
+ internalValueResult.prefix = this._prefix;
136
+ }
137
+ return hasAnyValues ? internalValueResult : undefined;
138
+ }
139
+ set internalValue(value) {
140
+ if (value === undefined) {
141
+ this.isEmptyObject = false;
142
+ this.resolvableValue = undefined;
143
+ this._prefix = undefined;
144
+ }
145
+ else if (cdktf.Tokenization.isResolvable(value)) {
146
+ this.isEmptyObject = false;
147
+ this.resolvableValue = value;
148
+ }
149
+ else {
150
+ this.isEmptyObject = Object.keys(value).length === 0;
151
+ this.resolvableValue = undefined;
152
+ this._prefix = value.prefix;
153
+ }
154
+ }
155
+ // prefix - computed: false, optional: false, required: true
156
+ _prefix;
157
+ get prefix() {
158
+ return this.getStringAttribute('prefix');
159
+ }
160
+ set prefix(value) {
161
+ this._prefix = value;
162
+ }
163
+ // Temporarily expose input value. Use with caution.
164
+ get prefixInput() {
165
+ return this._prefix;
166
+ }
167
+ }
168
+ export class DataNewrelicNotificationDestinationSecureUrlList extends cdktf.ComplexList {
169
+ terraformResource;
170
+ terraformAttribute;
171
+ wrapsSet;
172
+ internalValue;
173
+ /**
174
+ * @param terraformResource The parent resource
175
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
176
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
177
+ */
178
+ constructor(terraformResource, terraformAttribute, wrapsSet) {
179
+ super(terraformResource, terraformAttribute, wrapsSet);
180
+ this.terraformResource = terraformResource;
181
+ this.terraformAttribute = terraformAttribute;
182
+ this.wrapsSet = wrapsSet;
183
+ }
184
+ /**
185
+ * @param index the index of the item to return
186
+ */
187
+ get(index) {
188
+ return new DataNewrelicNotificationDestinationSecureUrlOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
189
+ }
190
+ }
191
+ /**
192
+ * Represents a {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/notification_destination newrelic_notification_destination}
193
+ */
194
+ export class DataNewrelicNotificationDestination extends cdktf.TerraformDataSource {
195
+ // =================
196
+ // STATIC PROPERTIES
197
+ // =================
198
+ static tfResourceType = "newrelic_notification_destination";
199
+ // ==============
200
+ // STATIC Methods
201
+ // ==============
202
+ /**
203
+ * Generates CDKTF code for importing a DataNewrelicNotificationDestination resource upon running "cdktf plan <stack-name>"
204
+ * @param scope The scope in which to define this construct
205
+ * @param importToId The construct id used in the generated config for the DataNewrelicNotificationDestination to import
206
+ * @param importFromId The id of the existing DataNewrelicNotificationDestination that should be imported. Refer to the {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/notification_destination#import import section} in the documentation of this resource for the id to use
207
+ * @param provider? Optional instance of the provider where the DataNewrelicNotificationDestination to import is found
208
+ */
209
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
210
+ return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "newrelic_notification_destination", importId: importFromId, provider });
211
+ }
212
+ // ===========
213
+ // INITIALIZER
214
+ // ===========
215
+ /**
216
+ * Create a new {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/notification_destination newrelic_notification_destination} Data Source
217
+ *
218
+ * @param scope The scope in which to define this construct
219
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
220
+ * @param options DataNewrelicNotificationDestinationConfig = {}
221
+ */
222
+ constructor(scope, id, config = {}) {
223
+ super(scope, id, {
224
+ terraformResourceType: 'newrelic_notification_destination',
225
+ terraformGeneratorMetadata: {
226
+ providerName: 'newrelic',
227
+ providerVersion: '3.75.4',
228
+ providerVersionConstraint: '3.75.4'
229
+ },
230
+ provider: config.provider,
231
+ dependsOn: config.dependsOn,
232
+ count: config.count,
233
+ lifecycle: config.lifecycle,
234
+ provisioners: config.provisioners,
235
+ connection: config.connection,
236
+ forEach: config.forEach
237
+ });
238
+ this._accountId = config.accountId;
239
+ this._id = config.id;
240
+ this._name = config.name;
241
+ this._secureUrl.internalValue = config.secureUrl;
242
+ }
243
+ // ==========
244
+ // ATTRIBUTES
245
+ // ==========
246
+ // account_id - computed: true, optional: true, required: false
247
+ _accountId;
248
+ get accountId() {
249
+ return this.getNumberAttribute('account_id');
250
+ }
251
+ set accountId(value) {
252
+ this._accountId = value;
253
+ }
254
+ resetAccountId() {
255
+ this._accountId = undefined;
256
+ }
257
+ // Temporarily expose input value. Use with caution.
258
+ get accountIdInput() {
259
+ return this._accountId;
260
+ }
261
+ // active - computed: true, optional: false, required: false
262
+ get active() {
263
+ return this.getBooleanAttribute('active');
264
+ }
265
+ // guid - computed: true, optional: false, required: false
266
+ get guid() {
267
+ return this.getStringAttribute('guid');
268
+ }
269
+ // id - computed: false, optional: true, required: false
270
+ _id;
271
+ get id() {
272
+ return this.getStringAttribute('id');
273
+ }
274
+ set id(value) {
275
+ this._id = value;
276
+ }
277
+ resetId() {
278
+ this._id = undefined;
279
+ }
280
+ // Temporarily expose input value. Use with caution.
281
+ get idInput() {
282
+ return this._id;
283
+ }
284
+ // name - computed: false, optional: true, required: false
285
+ _name;
286
+ get name() {
287
+ return this.getStringAttribute('name');
288
+ }
289
+ set name(value) {
290
+ this._name = value;
291
+ }
292
+ resetName() {
293
+ this._name = undefined;
294
+ }
295
+ // Temporarily expose input value. Use with caution.
296
+ get nameInput() {
297
+ return this._name;
298
+ }
299
+ // property - computed: true, optional: false, required: false
300
+ _property = new DataNewrelicNotificationDestinationPropertyList(this, "property", true);
301
+ get property() {
302
+ return this._property;
303
+ }
304
+ // status - computed: true, optional: false, required: false
305
+ get status() {
306
+ return this.getStringAttribute('status');
307
+ }
308
+ // type - computed: true, optional: false, required: false
309
+ get type() {
310
+ return this.getStringAttribute('type');
311
+ }
312
+ // secure_url - computed: false, optional: true, required: false
313
+ _secureUrl = new DataNewrelicNotificationDestinationSecureUrlList(this, "secure_url", true);
314
+ get secureUrl() {
315
+ return this._secureUrl;
316
+ }
317
+ putSecureUrl(value) {
318
+ this._secureUrl.internalValue = value;
319
+ }
320
+ resetSecureUrl() {
321
+ this._secureUrl.internalValue = undefined;
322
+ }
323
+ // Temporarily expose input value. Use with caution.
324
+ get secureUrlInput() {
325
+ return this._secureUrl.internalValue;
326
+ }
327
+ // =========
328
+ // SYNTHESIS
329
+ // =========
330
+ synthesizeAttributes() {
331
+ return {
332
+ account_id: cdktf.numberToTerraform(this._accountId),
333
+ id: cdktf.stringToTerraform(this._id),
334
+ name: cdktf.stringToTerraform(this._name),
335
+ secure_url: cdktf.listMapper(dataNewrelicNotificationDestinationSecureUrlToTerraform, true)(this._secureUrl.internalValue),
336
+ };
337
+ }
338
+ synthesizeHclAttributes() {
339
+ const attrs = {
340
+ account_id: {
341
+ value: cdktf.numberToHclTerraform(this._accountId),
342
+ isBlock: false,
343
+ type: "simple",
344
+ storageClassType: "number",
345
+ },
346
+ id: {
347
+ value: cdktf.stringToHclTerraform(this._id),
348
+ isBlock: false,
349
+ type: "simple",
350
+ storageClassType: "string",
351
+ },
352
+ name: {
353
+ value: cdktf.stringToHclTerraform(this._name),
354
+ isBlock: false,
355
+ type: "simple",
356
+ storageClassType: "string",
357
+ },
358
+ secure_url: {
359
+ value: cdktf.listMapperHcl(dataNewrelicNotificationDestinationSecureUrlToHclTerraform, true)(this._secureUrl.internalValue),
360
+ isBlock: true,
361
+ type: "set",
362
+ storageClassType: "DataNewrelicNotificationDestinationSecureUrlList",
363
+ },
364
+ };
365
+ // remove undefined attributes
366
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
367
+ }
368
+ }
@@ -0,0 +1,65 @@
1
+ import { Construct } from 'constructs';
2
+ import * as cdktf from 'cdktf';
3
+ export interface DataNewrelicObfuscationExpressionConfig extends cdktf.TerraformMetaArguments {
4
+ /**
5
+ * The account id associated with the obfuscation expression.
6
+ *
7
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/obfuscation_expression#account_id DataNewrelicObfuscationExpression#account_id}
8
+ */
9
+ readonly accountId?: number;
10
+ /**
11
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/obfuscation_expression#id DataNewrelicObfuscationExpression#id}
12
+ *
13
+ * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
14
+ * If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
15
+ */
16
+ readonly id?: string;
17
+ /**
18
+ * Name of expression.
19
+ *
20
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/obfuscation_expression#name DataNewrelicObfuscationExpression#name}
21
+ */
22
+ readonly name: string;
23
+ }
24
+ /**
25
+ * Represents a {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/obfuscation_expression newrelic_obfuscation_expression}
26
+ */
27
+ export declare class DataNewrelicObfuscationExpression extends cdktf.TerraformDataSource {
28
+ static readonly tfResourceType = "newrelic_obfuscation_expression";
29
+ /**
30
+ * Generates CDKTF code for importing a DataNewrelicObfuscationExpression resource upon running "cdktf plan <stack-name>"
31
+ * @param scope The scope in which to define this construct
32
+ * @param importToId The construct id used in the generated config for the DataNewrelicObfuscationExpression to import
33
+ * @param importFromId The id of the existing DataNewrelicObfuscationExpression that should be imported. Refer to the {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/obfuscation_expression#import import section} in the documentation of this resource for the id to use
34
+ * @param provider? Optional instance of the provider where the DataNewrelicObfuscationExpression to import is found
35
+ */
36
+ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
37
+ /**
38
+ * Create a new {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/obfuscation_expression newrelic_obfuscation_expression} Data Source
39
+ *
40
+ * @param scope The scope in which to define this construct
41
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
42
+ * @param options DataNewrelicObfuscationExpressionConfig
43
+ */
44
+ constructor(scope: Construct, id: string, config: DataNewrelicObfuscationExpressionConfig);
45
+ private _accountId?;
46
+ get accountId(): number;
47
+ set accountId(value: number);
48
+ resetAccountId(): void;
49
+ get accountIdInput(): number;
50
+ private _id?;
51
+ get id(): string;
52
+ set id(value: string);
53
+ resetId(): void;
54
+ get idInput(): string;
55
+ private _name?;
56
+ get name(): string;
57
+ set name(value: string);
58
+ get nameInput(): string;
59
+ protected synthesizeAttributes(): {
60
+ [name: string]: any;
61
+ };
62
+ protected synthesizeHclAttributes(): {
63
+ [name: string]: any;
64
+ };
65
+ }
@@ -0,0 +1,134 @@
1
+ // https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/obfuscation_expression
2
+ // generated from terraform resource schema
3
+ import * as cdktf from 'cdktf';
4
+ /**
5
+ * Represents a {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/obfuscation_expression newrelic_obfuscation_expression}
6
+ */
7
+ export class DataNewrelicObfuscationExpression extends cdktf.TerraformDataSource {
8
+ // =================
9
+ // STATIC PROPERTIES
10
+ // =================
11
+ static tfResourceType = "newrelic_obfuscation_expression";
12
+ // ==============
13
+ // STATIC Methods
14
+ // ==============
15
+ /**
16
+ * Generates CDKTF code for importing a DataNewrelicObfuscationExpression resource upon running "cdktf plan <stack-name>"
17
+ * @param scope The scope in which to define this construct
18
+ * @param importToId The construct id used in the generated config for the DataNewrelicObfuscationExpression to import
19
+ * @param importFromId The id of the existing DataNewrelicObfuscationExpression that should be imported. Refer to the {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/obfuscation_expression#import import section} in the documentation of this resource for the id to use
20
+ * @param provider? Optional instance of the provider where the DataNewrelicObfuscationExpression to import is found
21
+ */
22
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
23
+ return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "newrelic_obfuscation_expression", importId: importFromId, provider });
24
+ }
25
+ // ===========
26
+ // INITIALIZER
27
+ // ===========
28
+ /**
29
+ * Create a new {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/obfuscation_expression newrelic_obfuscation_expression} Data Source
30
+ *
31
+ * @param scope The scope in which to define this construct
32
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
33
+ * @param options DataNewrelicObfuscationExpressionConfig
34
+ */
35
+ constructor(scope, id, config) {
36
+ super(scope, id, {
37
+ terraformResourceType: 'newrelic_obfuscation_expression',
38
+ terraformGeneratorMetadata: {
39
+ providerName: 'newrelic',
40
+ providerVersion: '3.75.4',
41
+ providerVersionConstraint: '3.75.4'
42
+ },
43
+ provider: config.provider,
44
+ dependsOn: config.dependsOn,
45
+ count: config.count,
46
+ lifecycle: config.lifecycle,
47
+ provisioners: config.provisioners,
48
+ connection: config.connection,
49
+ forEach: config.forEach
50
+ });
51
+ this._accountId = config.accountId;
52
+ this._id = config.id;
53
+ this._name = config.name;
54
+ }
55
+ // ==========
56
+ // ATTRIBUTES
57
+ // ==========
58
+ // account_id - computed: false, optional: true, required: false
59
+ _accountId;
60
+ get accountId() {
61
+ return this.getNumberAttribute('account_id');
62
+ }
63
+ set accountId(value) {
64
+ this._accountId = value;
65
+ }
66
+ resetAccountId() {
67
+ this._accountId = undefined;
68
+ }
69
+ // Temporarily expose input value. Use with caution.
70
+ get accountIdInput() {
71
+ return this._accountId;
72
+ }
73
+ // id - computed: true, optional: true, required: false
74
+ _id;
75
+ get id() {
76
+ return this.getStringAttribute('id');
77
+ }
78
+ set id(value) {
79
+ this._id = value;
80
+ }
81
+ resetId() {
82
+ this._id = undefined;
83
+ }
84
+ // Temporarily expose input value. Use with caution.
85
+ get idInput() {
86
+ return this._id;
87
+ }
88
+ // name - computed: false, optional: false, required: true
89
+ _name;
90
+ get name() {
91
+ return this.getStringAttribute('name');
92
+ }
93
+ set name(value) {
94
+ this._name = value;
95
+ }
96
+ // Temporarily expose input value. Use with caution.
97
+ get nameInput() {
98
+ return this._name;
99
+ }
100
+ // =========
101
+ // SYNTHESIS
102
+ // =========
103
+ synthesizeAttributes() {
104
+ return {
105
+ account_id: cdktf.numberToTerraform(this._accountId),
106
+ id: cdktf.stringToTerraform(this._id),
107
+ name: cdktf.stringToTerraform(this._name),
108
+ };
109
+ }
110
+ synthesizeHclAttributes() {
111
+ const attrs = {
112
+ account_id: {
113
+ value: cdktf.numberToHclTerraform(this._accountId),
114
+ isBlock: false,
115
+ type: "simple",
116
+ storageClassType: "number",
117
+ },
118
+ id: {
119
+ value: cdktf.stringToHclTerraform(this._id),
120
+ isBlock: false,
121
+ type: "simple",
122
+ storageClassType: "string",
123
+ },
124
+ name: {
125
+ value: cdktf.stringToHclTerraform(this._name),
126
+ isBlock: false,
127
+ type: "simple",
128
+ storageClassType: "string",
129
+ },
130
+ };
131
+ // remove undefined attributes
132
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
133
+ }
134
+ }
@@ -0,0 +1,107 @@
1
+ import { Construct } from 'constructs';
2
+ import * as cdktf from 'cdktf';
3
+ export interface DataNewrelicServiceLevelAlertHelperConfig extends cdktf.TerraformMetaArguments {
4
+ /**
5
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/service_level_alert_helper#alert_type DataNewrelicServiceLevelAlertHelper#alert_type}
6
+ */
7
+ readonly alertType: string;
8
+ /**
9
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/service_level_alert_helper#custom_evaluation_period DataNewrelicServiceLevelAlertHelper#custom_evaluation_period}
10
+ */
11
+ readonly customEvaluationPeriod?: number;
12
+ /**
13
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/service_level_alert_helper#custom_tolerated_budget_consumption DataNewrelicServiceLevelAlertHelper#custom_tolerated_budget_consumption}
14
+ */
15
+ readonly customToleratedBudgetConsumption?: number;
16
+ /**
17
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/service_level_alert_helper#id DataNewrelicServiceLevelAlertHelper#id}
18
+ *
19
+ * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
20
+ * If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
21
+ */
22
+ readonly id?: string;
23
+ /**
24
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/service_level_alert_helper#is_bad_events DataNewrelicServiceLevelAlertHelper#is_bad_events}
25
+ */
26
+ readonly isBadEvents?: boolean | cdktf.IResolvable;
27
+ /**
28
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/service_level_alert_helper#sli_guid DataNewrelicServiceLevelAlertHelper#sli_guid}
29
+ */
30
+ readonly sliGuid: string;
31
+ /**
32
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/service_level_alert_helper#slo_period DataNewrelicServiceLevelAlertHelper#slo_period}
33
+ */
34
+ readonly sloPeriod: number;
35
+ /**
36
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/service_level_alert_helper#slo_target DataNewrelicServiceLevelAlertHelper#slo_target}
37
+ */
38
+ readonly sloTarget: number;
39
+ }
40
+ /**
41
+ * Represents a {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/service_level_alert_helper newrelic_service_level_alert_helper}
42
+ */
43
+ export declare class DataNewrelicServiceLevelAlertHelper extends cdktf.TerraformDataSource {
44
+ static readonly tfResourceType = "newrelic_service_level_alert_helper";
45
+ /**
46
+ * Generates CDKTF code for importing a DataNewrelicServiceLevelAlertHelper resource upon running "cdktf plan <stack-name>"
47
+ * @param scope The scope in which to define this construct
48
+ * @param importToId The construct id used in the generated config for the DataNewrelicServiceLevelAlertHelper to import
49
+ * @param importFromId The id of the existing DataNewrelicServiceLevelAlertHelper that should be imported. Refer to the {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/service_level_alert_helper#import import section} in the documentation of this resource for the id to use
50
+ * @param provider? Optional instance of the provider where the DataNewrelicServiceLevelAlertHelper to import is found
51
+ */
52
+ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
53
+ /**
54
+ * Create a new {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/service_level_alert_helper newrelic_service_level_alert_helper} Data Source
55
+ *
56
+ * @param scope The scope in which to define this construct
57
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
58
+ * @param options DataNewrelicServiceLevelAlertHelperConfig
59
+ */
60
+ constructor(scope: Construct, id: string, config: DataNewrelicServiceLevelAlertHelperConfig);
61
+ private _alertType?;
62
+ get alertType(): string;
63
+ set alertType(value: string);
64
+ get alertTypeInput(): string;
65
+ private _customEvaluationPeriod?;
66
+ get customEvaluationPeriod(): number;
67
+ set customEvaluationPeriod(value: number);
68
+ resetCustomEvaluationPeriod(): void;
69
+ get customEvaluationPeriodInput(): number;
70
+ private _customToleratedBudgetConsumption?;
71
+ get customToleratedBudgetConsumption(): number;
72
+ set customToleratedBudgetConsumption(value: number);
73
+ resetCustomToleratedBudgetConsumption(): void;
74
+ get customToleratedBudgetConsumptionInput(): number;
75
+ get evaluationPeriod(): any;
76
+ private _id?;
77
+ get id(): string;
78
+ set id(value: string);
79
+ resetId(): void;
80
+ get idInput(): string;
81
+ private _isBadEvents?;
82
+ get isBadEvents(): boolean | cdktf.IResolvable;
83
+ set isBadEvents(value: boolean | cdktf.IResolvable);
84
+ resetIsBadEvents(): void;
85
+ get isBadEventsInput(): any;
86
+ get nrql(): any;
87
+ private _sliGuid?;
88
+ get sliGuid(): string;
89
+ set sliGuid(value: string);
90
+ get sliGuidInput(): string;
91
+ private _sloPeriod?;
92
+ get sloPeriod(): number;
93
+ set sloPeriod(value: number);
94
+ get sloPeriodInput(): number;
95
+ private _sloTarget?;
96
+ get sloTarget(): number;
97
+ set sloTarget(value: number);
98
+ get sloTargetInput(): number;
99
+ get threshold(): any;
100
+ get toleratedBudgetConsumption(): any;
101
+ protected synthesizeAttributes(): {
102
+ [name: string]: any;
103
+ };
104
+ protected synthesizeHclAttributes(): {
105
+ [name: string]: any;
106
+ };
107
+ }