@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,474 @@
1
+ // https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_broken_links_monitor
2
+ // generated from terraform resource schema
3
+ import * as cdktf from 'cdktf';
4
+ export function syntheticsBrokenLinksMonitorTagToTerraform(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
+ key: cdktf.stringToTerraform(struct.key),
13
+ values: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.values),
14
+ };
15
+ }
16
+ export function syntheticsBrokenLinksMonitorTagToHclTerraform(struct) {
17
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
18
+ return struct;
19
+ }
20
+ if (cdktf.isComplexElement(struct)) {
21
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
22
+ }
23
+ const attrs = {
24
+ key: {
25
+ value: cdktf.stringToHclTerraform(struct.key),
26
+ isBlock: false,
27
+ type: "simple",
28
+ storageClassType: "string",
29
+ },
30
+ values: {
31
+ value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.values),
32
+ isBlock: false,
33
+ type: "list",
34
+ storageClassType: "stringList",
35
+ },
36
+ };
37
+ // remove undefined attributes
38
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
39
+ }
40
+ export class SyntheticsBrokenLinksMonitorTagOutputReference extends cdktf.ComplexObject {
41
+ isEmptyObject = false;
42
+ resolvableValue;
43
+ /**
44
+ * @param terraformResource The parent resource
45
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
46
+ * @param complexObjectIndex the index of this item in the list
47
+ * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
48
+ */
49
+ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
50
+ super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
51
+ }
52
+ get internalValue() {
53
+ if (this.resolvableValue) {
54
+ return this.resolvableValue;
55
+ }
56
+ let hasAnyValues = this.isEmptyObject;
57
+ const internalValueResult = {};
58
+ if (this._key !== undefined) {
59
+ hasAnyValues = true;
60
+ internalValueResult.key = this._key;
61
+ }
62
+ if (this._values !== undefined) {
63
+ hasAnyValues = true;
64
+ internalValueResult.values = this._values;
65
+ }
66
+ return hasAnyValues ? internalValueResult : undefined;
67
+ }
68
+ set internalValue(value) {
69
+ if (value === undefined) {
70
+ this.isEmptyObject = false;
71
+ this.resolvableValue = undefined;
72
+ this._key = undefined;
73
+ this._values = undefined;
74
+ }
75
+ else if (cdktf.Tokenization.isResolvable(value)) {
76
+ this.isEmptyObject = false;
77
+ this.resolvableValue = value;
78
+ }
79
+ else {
80
+ this.isEmptyObject = Object.keys(value).length === 0;
81
+ this.resolvableValue = undefined;
82
+ this._key = value.key;
83
+ this._values = value.values;
84
+ }
85
+ }
86
+ // key - computed: false, optional: false, required: true
87
+ _key;
88
+ get key() {
89
+ return this.getStringAttribute('key');
90
+ }
91
+ set key(value) {
92
+ this._key = value;
93
+ }
94
+ // Temporarily expose input value. Use with caution.
95
+ get keyInput() {
96
+ return this._key;
97
+ }
98
+ // values - computed: false, optional: false, required: true
99
+ _values;
100
+ get values() {
101
+ return this.getListAttribute('values');
102
+ }
103
+ set values(value) {
104
+ this._values = value;
105
+ }
106
+ // Temporarily expose input value. Use with caution.
107
+ get valuesInput() {
108
+ return this._values;
109
+ }
110
+ }
111
+ export class SyntheticsBrokenLinksMonitorTagList extends cdktf.ComplexList {
112
+ terraformResource;
113
+ terraformAttribute;
114
+ wrapsSet;
115
+ internalValue;
116
+ /**
117
+ * @param terraformResource The parent resource
118
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
119
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
120
+ */
121
+ constructor(terraformResource, terraformAttribute, wrapsSet) {
122
+ super(terraformResource, terraformAttribute, wrapsSet);
123
+ this.terraformResource = terraformResource;
124
+ this.terraformAttribute = terraformAttribute;
125
+ this.wrapsSet = wrapsSet;
126
+ }
127
+ /**
128
+ * @param index the index of the item to return
129
+ */
130
+ get(index) {
131
+ return new SyntheticsBrokenLinksMonitorTagOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
132
+ }
133
+ }
134
+ /**
135
+ * Represents a {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_broken_links_monitor newrelic_synthetics_broken_links_monitor}
136
+ */
137
+ export class SyntheticsBrokenLinksMonitor extends cdktf.TerraformResource {
138
+ // =================
139
+ // STATIC PROPERTIES
140
+ // =================
141
+ static tfResourceType = "newrelic_synthetics_broken_links_monitor";
142
+ // ==============
143
+ // STATIC Methods
144
+ // ==============
145
+ /**
146
+ * Generates CDKTF code for importing a SyntheticsBrokenLinksMonitor resource upon running "cdktf plan <stack-name>"
147
+ * @param scope The scope in which to define this construct
148
+ * @param importToId The construct id used in the generated config for the SyntheticsBrokenLinksMonitor to import
149
+ * @param importFromId The id of the existing SyntheticsBrokenLinksMonitor that should be imported. Refer to the {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_broken_links_monitor#import import section} in the documentation of this resource for the id to use
150
+ * @param provider? Optional instance of the provider where the SyntheticsBrokenLinksMonitor to import is found
151
+ */
152
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
153
+ return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "newrelic_synthetics_broken_links_monitor", importId: importFromId, provider });
154
+ }
155
+ // ===========
156
+ // INITIALIZER
157
+ // ===========
158
+ /**
159
+ * Create a new {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_broken_links_monitor newrelic_synthetics_broken_links_monitor} Resource
160
+ *
161
+ * @param scope The scope in which to define this construct
162
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
163
+ * @param options SyntheticsBrokenLinksMonitorConfig
164
+ */
165
+ constructor(scope, id, config) {
166
+ super(scope, id, {
167
+ terraformResourceType: 'newrelic_synthetics_broken_links_monitor',
168
+ terraformGeneratorMetadata: {
169
+ providerName: 'newrelic',
170
+ providerVersion: '3.75.4',
171
+ providerVersionConstraint: '3.75.4'
172
+ },
173
+ provider: config.provider,
174
+ dependsOn: config.dependsOn,
175
+ count: config.count,
176
+ lifecycle: config.lifecycle,
177
+ provisioners: config.provisioners,
178
+ connection: config.connection,
179
+ forEach: config.forEach
180
+ });
181
+ this._accountId = config.accountId;
182
+ this._id = config.id;
183
+ this._locationsPrivate = config.locationsPrivate;
184
+ this._locationsPublic = config.locationsPublic;
185
+ this._name = config.name;
186
+ this._period = config.period;
187
+ this._runtimeType = config.runtimeType;
188
+ this._runtimeTypeVersion = config.runtimeTypeVersion;
189
+ this._status = config.status;
190
+ this._uri = config.uri;
191
+ this._useUnsupportedLegacyRuntime = config.useUnsupportedLegacyRuntime;
192
+ this._tag.internalValue = config.tag;
193
+ }
194
+ // ==========
195
+ // ATTRIBUTES
196
+ // ==========
197
+ // account_id - computed: true, optional: true, required: false
198
+ _accountId;
199
+ get accountId() {
200
+ return this.getNumberAttribute('account_id');
201
+ }
202
+ set accountId(value) {
203
+ this._accountId = value;
204
+ }
205
+ resetAccountId() {
206
+ this._accountId = undefined;
207
+ }
208
+ // Temporarily expose input value. Use with caution.
209
+ get accountIdInput() {
210
+ return this._accountId;
211
+ }
212
+ // guid - computed: true, optional: false, required: false
213
+ get guid() {
214
+ return this.getStringAttribute('guid');
215
+ }
216
+ // id - computed: true, optional: true, required: false
217
+ _id;
218
+ get id() {
219
+ return this.getStringAttribute('id');
220
+ }
221
+ set id(value) {
222
+ this._id = value;
223
+ }
224
+ resetId() {
225
+ this._id = undefined;
226
+ }
227
+ // Temporarily expose input value. Use with caution.
228
+ get idInput() {
229
+ return this._id;
230
+ }
231
+ // locations_private - computed: false, optional: true, required: false
232
+ _locationsPrivate;
233
+ get locationsPrivate() {
234
+ return cdktf.Fn.tolist(this.getListAttribute('locations_private'));
235
+ }
236
+ set locationsPrivate(value) {
237
+ this._locationsPrivate = value;
238
+ }
239
+ resetLocationsPrivate() {
240
+ this._locationsPrivate = undefined;
241
+ }
242
+ // Temporarily expose input value. Use with caution.
243
+ get locationsPrivateInput() {
244
+ return this._locationsPrivate;
245
+ }
246
+ // locations_public - computed: false, optional: true, required: false
247
+ _locationsPublic;
248
+ get locationsPublic() {
249
+ return cdktf.Fn.tolist(this.getListAttribute('locations_public'));
250
+ }
251
+ set locationsPublic(value) {
252
+ this._locationsPublic = value;
253
+ }
254
+ resetLocationsPublic() {
255
+ this._locationsPublic = undefined;
256
+ }
257
+ // Temporarily expose input value. Use with caution.
258
+ get locationsPublicInput() {
259
+ return this._locationsPublic;
260
+ }
261
+ // monitor_id - computed: true, optional: false, required: false
262
+ get monitorId() {
263
+ return this.getStringAttribute('monitor_id');
264
+ }
265
+ // name - computed: false, optional: false, required: true
266
+ _name;
267
+ get name() {
268
+ return this.getStringAttribute('name');
269
+ }
270
+ set name(value) {
271
+ this._name = value;
272
+ }
273
+ // Temporarily expose input value. Use with caution.
274
+ get nameInput() {
275
+ return this._name;
276
+ }
277
+ // period - computed: false, optional: false, required: true
278
+ _period;
279
+ get period() {
280
+ return this.getStringAttribute('period');
281
+ }
282
+ set period(value) {
283
+ this._period = value;
284
+ }
285
+ // Temporarily expose input value. Use with caution.
286
+ get periodInput() {
287
+ return this._period;
288
+ }
289
+ // period_in_minutes - computed: true, optional: false, required: false
290
+ get periodInMinutes() {
291
+ return this.getNumberAttribute('period_in_minutes');
292
+ }
293
+ // runtime_type - computed: false, optional: true, required: false
294
+ _runtimeType;
295
+ get runtimeType() {
296
+ return this.getStringAttribute('runtime_type');
297
+ }
298
+ set runtimeType(value) {
299
+ this._runtimeType = value;
300
+ }
301
+ resetRuntimeType() {
302
+ this._runtimeType = undefined;
303
+ }
304
+ // Temporarily expose input value. Use with caution.
305
+ get runtimeTypeInput() {
306
+ return this._runtimeType;
307
+ }
308
+ // runtime_type_version - computed: false, optional: true, required: false
309
+ _runtimeTypeVersion;
310
+ get runtimeTypeVersion() {
311
+ return this.getStringAttribute('runtime_type_version');
312
+ }
313
+ set runtimeTypeVersion(value) {
314
+ this._runtimeTypeVersion = value;
315
+ }
316
+ resetRuntimeTypeVersion() {
317
+ this._runtimeTypeVersion = undefined;
318
+ }
319
+ // Temporarily expose input value. Use with caution.
320
+ get runtimeTypeVersionInput() {
321
+ return this._runtimeTypeVersion;
322
+ }
323
+ // status - computed: false, optional: false, required: true
324
+ _status;
325
+ get status() {
326
+ return this.getStringAttribute('status');
327
+ }
328
+ set status(value) {
329
+ this._status = value;
330
+ }
331
+ // Temporarily expose input value. Use with caution.
332
+ get statusInput() {
333
+ return this._status;
334
+ }
335
+ // uri - computed: false, optional: false, required: true
336
+ _uri;
337
+ get uri() {
338
+ return this.getStringAttribute('uri');
339
+ }
340
+ set uri(value) {
341
+ this._uri = value;
342
+ }
343
+ // Temporarily expose input value. Use with caution.
344
+ get uriInput() {
345
+ return this._uri;
346
+ }
347
+ // use_unsupported_legacy_runtime - computed: false, optional: true, required: false
348
+ _useUnsupportedLegacyRuntime;
349
+ get useUnsupportedLegacyRuntime() {
350
+ return this.getBooleanAttribute('use_unsupported_legacy_runtime');
351
+ }
352
+ set useUnsupportedLegacyRuntime(value) {
353
+ this._useUnsupportedLegacyRuntime = value;
354
+ }
355
+ resetUseUnsupportedLegacyRuntime() {
356
+ this._useUnsupportedLegacyRuntime = undefined;
357
+ }
358
+ // Temporarily expose input value. Use with caution.
359
+ get useUnsupportedLegacyRuntimeInput() {
360
+ return this._useUnsupportedLegacyRuntime;
361
+ }
362
+ // tag - computed: false, optional: true, required: false
363
+ _tag = new SyntheticsBrokenLinksMonitorTagList(this, "tag", true);
364
+ get tag() {
365
+ return this._tag;
366
+ }
367
+ putTag(value) {
368
+ this._tag.internalValue = value;
369
+ }
370
+ resetTag() {
371
+ this._tag.internalValue = undefined;
372
+ }
373
+ // Temporarily expose input value. Use with caution.
374
+ get tagInput() {
375
+ return this._tag.internalValue;
376
+ }
377
+ // =========
378
+ // SYNTHESIS
379
+ // =========
380
+ synthesizeAttributes() {
381
+ return {
382
+ account_id: cdktf.numberToTerraform(this._accountId),
383
+ id: cdktf.stringToTerraform(this._id),
384
+ locations_private: cdktf.listMapper(cdktf.stringToTerraform, false)(this._locationsPrivate),
385
+ locations_public: cdktf.listMapper(cdktf.stringToTerraform, false)(this._locationsPublic),
386
+ name: cdktf.stringToTerraform(this._name),
387
+ period: cdktf.stringToTerraform(this._period),
388
+ runtime_type: cdktf.stringToTerraform(this._runtimeType),
389
+ runtime_type_version: cdktf.stringToTerraform(this._runtimeTypeVersion),
390
+ status: cdktf.stringToTerraform(this._status),
391
+ uri: cdktf.stringToTerraform(this._uri),
392
+ use_unsupported_legacy_runtime: cdktf.booleanToTerraform(this._useUnsupportedLegacyRuntime),
393
+ tag: cdktf.listMapper(syntheticsBrokenLinksMonitorTagToTerraform, true)(this._tag.internalValue),
394
+ };
395
+ }
396
+ synthesizeHclAttributes() {
397
+ const attrs = {
398
+ account_id: {
399
+ value: cdktf.numberToHclTerraform(this._accountId),
400
+ isBlock: false,
401
+ type: "simple",
402
+ storageClassType: "number",
403
+ },
404
+ id: {
405
+ value: cdktf.stringToHclTerraform(this._id),
406
+ isBlock: false,
407
+ type: "simple",
408
+ storageClassType: "string",
409
+ },
410
+ locations_private: {
411
+ value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._locationsPrivate),
412
+ isBlock: false,
413
+ type: "set",
414
+ storageClassType: "stringList",
415
+ },
416
+ locations_public: {
417
+ value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._locationsPublic),
418
+ isBlock: false,
419
+ type: "set",
420
+ storageClassType: "stringList",
421
+ },
422
+ name: {
423
+ value: cdktf.stringToHclTerraform(this._name),
424
+ isBlock: false,
425
+ type: "simple",
426
+ storageClassType: "string",
427
+ },
428
+ period: {
429
+ value: cdktf.stringToHclTerraform(this._period),
430
+ isBlock: false,
431
+ type: "simple",
432
+ storageClassType: "string",
433
+ },
434
+ runtime_type: {
435
+ value: cdktf.stringToHclTerraform(this._runtimeType),
436
+ isBlock: false,
437
+ type: "simple",
438
+ storageClassType: "string",
439
+ },
440
+ runtime_type_version: {
441
+ value: cdktf.stringToHclTerraform(this._runtimeTypeVersion),
442
+ isBlock: false,
443
+ type: "simple",
444
+ storageClassType: "string",
445
+ },
446
+ status: {
447
+ value: cdktf.stringToHclTerraform(this._status),
448
+ isBlock: false,
449
+ type: "simple",
450
+ storageClassType: "string",
451
+ },
452
+ uri: {
453
+ value: cdktf.stringToHclTerraform(this._uri),
454
+ isBlock: false,
455
+ type: "simple",
456
+ storageClassType: "string",
457
+ },
458
+ use_unsupported_legacy_runtime: {
459
+ value: cdktf.booleanToHclTerraform(this._useUnsupportedLegacyRuntime),
460
+ isBlock: false,
461
+ type: "simple",
462
+ storageClassType: "boolean",
463
+ },
464
+ tag: {
465
+ value: cdktf.listMapperHcl(syntheticsBrokenLinksMonitorTagToHclTerraform, true)(this._tag.internalValue),
466
+ isBlock: true,
467
+ type: "set",
468
+ storageClassType: "SyntheticsBrokenLinksMonitorTagList",
469
+ },
470
+ };
471
+ // remove undefined attributes
472
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
473
+ }
474
+ }
@@ -0,0 +1,222 @@
1
+ import { Construct } from 'constructs';
2
+ import * as cdktf from 'cdktf';
3
+ export interface SyntheticsCertCheckMonitorConfig extends cdktf.TerraformMetaArguments {
4
+ /**
5
+ * ID of the newrelic account
6
+ *
7
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_cert_check_monitor#account_id SyntheticsCertCheckMonitor#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/resources/synthetics_cert_check_monitor#certificate_expiration SyntheticsCertCheckMonitor#certificate_expiration}
12
+ */
13
+ readonly certificateExpiration: number;
14
+ /**
15
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_cert_check_monitor#domain SyntheticsCertCheckMonitor#domain}
16
+ */
17
+ readonly domain: string;
18
+ /**
19
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_cert_check_monitor#id SyntheticsCertCheckMonitor#id}
20
+ *
21
+ * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
22
+ * 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.
23
+ */
24
+ readonly id?: string;
25
+ /**
26
+ * The locations in which this monitor should be run.
27
+ *
28
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_cert_check_monitor#locations_private SyntheticsCertCheckMonitor#locations_private}
29
+ */
30
+ readonly locationsPrivate?: string[];
31
+ /**
32
+ * The locations in which this monitor should be run.
33
+ *
34
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_cert_check_monitor#locations_public SyntheticsCertCheckMonitor#locations_public}
35
+ */
36
+ readonly locationsPublic?: string[];
37
+ /**
38
+ * name of the cert check monitor
39
+ *
40
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_cert_check_monitor#name SyntheticsCertCheckMonitor#name}
41
+ */
42
+ readonly name: string;
43
+ /**
44
+ * The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
45
+ *
46
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_cert_check_monitor#period SyntheticsCertCheckMonitor#period}
47
+ */
48
+ readonly period: string;
49
+ /**
50
+ * The runtime type that the monitor will run.
51
+ *
52
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_cert_check_monitor#runtime_type SyntheticsCertCheckMonitor#runtime_type}
53
+ */
54
+ readonly runtimeType?: string;
55
+ /**
56
+ * The specific semver version of the runtime type.
57
+ *
58
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_cert_check_monitor#runtime_type_version SyntheticsCertCheckMonitor#runtime_type_version}
59
+ */
60
+ readonly runtimeTypeVersion?: string;
61
+ /**
62
+ * The monitor status (ENABLED or DISABLED).
63
+ *
64
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_cert_check_monitor#status SyntheticsCertCheckMonitor#status}
65
+ */
66
+ readonly status: string;
67
+ /**
68
+ * A boolean attribute to be set true by the customer, if they would like to use the unsupported legacy runtime of Synthetic Monitors by means of an exemption given until the October 22, 2024 Legacy Runtime EOL. Setting this attribute to true would allow skipping validation performed by the the New Relic Terraform Provider starting v3.43.0 to disallow using the legacy runtime with new monitors. This would, hence, allow creation of monitors in the legacy runtime until the October 22, 2024 Legacy Runtime EOL, if exempt by the API.
69
+ *
70
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_cert_check_monitor#use_unsupported_legacy_runtime SyntheticsCertCheckMonitor#use_unsupported_legacy_runtime}
71
+ */
72
+ readonly useUnsupportedLegacyRuntime?: boolean | cdktf.IResolvable;
73
+ /**
74
+ * tag block
75
+ *
76
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_cert_check_monitor#tag SyntheticsCertCheckMonitor#tag}
77
+ */
78
+ readonly tag?: SyntheticsCertCheckMonitorTag[] | cdktf.IResolvable;
79
+ }
80
+ export interface SyntheticsCertCheckMonitorTag {
81
+ /**
82
+ * Name of the tag key
83
+ *
84
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_cert_check_monitor#key SyntheticsCertCheckMonitor#key}
85
+ */
86
+ readonly key: string;
87
+ /**
88
+ * Values associated with the tag key
89
+ *
90
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_cert_check_monitor#values SyntheticsCertCheckMonitor#values}
91
+ */
92
+ readonly values: string[];
93
+ }
94
+ export declare function syntheticsCertCheckMonitorTagToTerraform(struct?: SyntheticsCertCheckMonitorTag | cdktf.IResolvable): any;
95
+ export declare function syntheticsCertCheckMonitorTagToHclTerraform(struct?: SyntheticsCertCheckMonitorTag | cdktf.IResolvable): any;
96
+ export declare class SyntheticsCertCheckMonitorTagOutputReference extends cdktf.ComplexObject {
97
+ private isEmptyObject;
98
+ private resolvableValue?;
99
+ /**
100
+ * @param terraformResource The parent resource
101
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
102
+ * @param complexObjectIndex the index of this item in the list
103
+ * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
104
+ */
105
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
106
+ get internalValue(): SyntheticsCertCheckMonitorTag | cdktf.IResolvable | undefined;
107
+ set internalValue(value: SyntheticsCertCheckMonitorTag | cdktf.IResolvable | undefined);
108
+ private _key?;
109
+ get key(): string;
110
+ set key(value: string);
111
+ get keyInput(): string;
112
+ private _values?;
113
+ get values(): string[];
114
+ set values(value: string[]);
115
+ get valuesInput(): string[];
116
+ }
117
+ export declare class SyntheticsCertCheckMonitorTagList extends cdktf.ComplexList {
118
+ protected terraformResource: cdktf.IInterpolatingParent;
119
+ protected terraformAttribute: string;
120
+ protected wrapsSet: boolean;
121
+ internalValue?: SyntheticsCertCheckMonitorTag[] | cdktf.IResolvable;
122
+ /**
123
+ * @param terraformResource The parent resource
124
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
125
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
126
+ */
127
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
128
+ /**
129
+ * @param index the index of the item to return
130
+ */
131
+ get(index: number): SyntheticsCertCheckMonitorTagOutputReference;
132
+ }
133
+ /**
134
+ * Represents a {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_cert_check_monitor newrelic_synthetics_cert_check_monitor}
135
+ */
136
+ export declare class SyntheticsCertCheckMonitor extends cdktf.TerraformResource {
137
+ static readonly tfResourceType = "newrelic_synthetics_cert_check_monitor";
138
+ /**
139
+ * Generates CDKTF code for importing a SyntheticsCertCheckMonitor resource upon running "cdktf plan <stack-name>"
140
+ * @param scope The scope in which to define this construct
141
+ * @param importToId The construct id used in the generated config for the SyntheticsCertCheckMonitor to import
142
+ * @param importFromId The id of the existing SyntheticsCertCheckMonitor that should be imported. Refer to the {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_cert_check_monitor#import import section} in the documentation of this resource for the id to use
143
+ * @param provider? Optional instance of the provider where the SyntheticsCertCheckMonitor to import is found
144
+ */
145
+ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
146
+ /**
147
+ * Create a new {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_cert_check_monitor newrelic_synthetics_cert_check_monitor} Resource
148
+ *
149
+ * @param scope The scope in which to define this construct
150
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
151
+ * @param options SyntheticsCertCheckMonitorConfig
152
+ */
153
+ constructor(scope: Construct, id: string, config: SyntheticsCertCheckMonitorConfig);
154
+ private _accountId?;
155
+ get accountId(): number;
156
+ set accountId(value: number);
157
+ resetAccountId(): void;
158
+ get accountIdInput(): number;
159
+ private _certificateExpiration?;
160
+ get certificateExpiration(): number;
161
+ set certificateExpiration(value: number);
162
+ get certificateExpirationInput(): number;
163
+ private _domain?;
164
+ get domain(): string;
165
+ set domain(value: string);
166
+ get domainInput(): string;
167
+ private _id?;
168
+ get id(): string;
169
+ set id(value: string);
170
+ resetId(): void;
171
+ get idInput(): string;
172
+ private _locationsPrivate?;
173
+ get locationsPrivate(): string[];
174
+ set locationsPrivate(value: string[]);
175
+ resetLocationsPrivate(): void;
176
+ get locationsPrivateInput(): string[];
177
+ private _locationsPublic?;
178
+ get locationsPublic(): string[];
179
+ set locationsPublic(value: string[]);
180
+ resetLocationsPublic(): void;
181
+ get locationsPublicInput(): string[];
182
+ get monitorId(): any;
183
+ private _name?;
184
+ get name(): string;
185
+ set name(value: string);
186
+ get nameInput(): string;
187
+ private _period?;
188
+ get period(): string;
189
+ set period(value: string);
190
+ get periodInput(): string;
191
+ get periodInMinutes(): any;
192
+ private _runtimeType?;
193
+ get runtimeType(): string;
194
+ set runtimeType(value: string);
195
+ resetRuntimeType(): void;
196
+ get runtimeTypeInput(): string;
197
+ private _runtimeTypeVersion?;
198
+ get runtimeTypeVersion(): string;
199
+ set runtimeTypeVersion(value: string);
200
+ resetRuntimeTypeVersion(): void;
201
+ get runtimeTypeVersionInput(): string;
202
+ private _status?;
203
+ get status(): string;
204
+ set status(value: string);
205
+ get statusInput(): string;
206
+ private _useUnsupportedLegacyRuntime?;
207
+ get useUnsupportedLegacyRuntime(): boolean | cdktf.IResolvable;
208
+ set useUnsupportedLegacyRuntime(value: boolean | cdktf.IResolvable);
209
+ resetUseUnsupportedLegacyRuntime(): void;
210
+ get useUnsupportedLegacyRuntimeInput(): any;
211
+ private _tag;
212
+ get tag(): SyntheticsCertCheckMonitorTagList;
213
+ putTag(value: SyntheticsCertCheckMonitorTag[] | cdktf.IResolvable): void;
214
+ resetTag(): void;
215
+ get tagInput(): any;
216
+ protected synthesizeAttributes(): {
217
+ [name: string]: any;
218
+ };
219
+ protected synthesizeHclAttributes(): {
220
+ [name: string]: any;
221
+ };
222
+ }