@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.
- package/LICENSE +355 -0
- package/README.md +19 -0
- package/dist/account-management/index.d.ts +64 -0
- package/dist/account-management/index.js +131 -0
- package/dist/alert-channel/index.d.ts +347 -0
- package/dist/alert-channel/index.js +810 -0
- package/dist/alert-condition/index.d.ts +267 -0
- package/dist/alert-condition/index.js +587 -0
- package/dist/alert-muting-rule/index.d.ts +305 -0
- package/dist/alert-muting-rule/index.js +731 -0
- package/dist/alert-policy/index.d.ts +87 -0
- package/dist/alert-policy/index.js +180 -0
- package/dist/alert-policy-channel/index.d.ts +110 -0
- package/dist/alert-policy-channel/index.js +260 -0
- package/dist/api-access-key/index.d.ts +98 -0
- package/dist/api-access-key/index.js +230 -0
- package/dist/application-settings/index.d.ts +410 -0
- package/dist/application-settings/index.js +966 -0
- package/dist/browser-application/index.d.ts +101 -0
- package/dist/browser-application/index.js +215 -0
- package/dist/cloud-aws-govcloud-integrations/index.d.ts +1519 -0
- package/dist/cloud-aws-govcloud-integrations/index.js +3846 -0
- package/dist/cloud-aws-govcloud-link-account/index.d.ts +86 -0
- package/dist/cloud-aws-govcloud-link-account/index.js +177 -0
- package/dist/cloud-aws-integrations/index.d.ts +3294 -0
- package/dist/cloud-aws-integrations/index.js +8554 -0
- package/dist/cloud-aws-link-account/index.d.ts +86 -0
- package/dist/cloud-aws-link-account/index.js +177 -0
- package/dist/cloud-azure-integrations/index.d.ts +1662 -0
- package/dist/cloud-azure-integrations/index.js +4338 -0
- package/dist/cloud-azure-link-account/index.d.ts +105 -0
- package/dist/cloud-azure-link-account/index.js +214 -0
- package/dist/cloud-gcp-integrations/index.d.ts +1045 -0
- package/dist/cloud-gcp-integrations/index.js +2742 -0
- package/dist/cloud-gcp-link-account/index.d.ts +75 -0
- package/dist/cloud-gcp-link-account/index.js +154 -0
- package/dist/cloud-oci-link-account/index.d.ts +191 -0
- package/dist/cloud-oci-link-account/index.js +392 -0
- package/dist/data-newrelic-account/index.d.ts +77 -0
- package/dist/data-newrelic-account/index.js +160 -0
- package/dist/data-newrelic-alert-channel/index.d.ts +122 -0
- package/dist/data-newrelic-alert-channel/index.js +295 -0
- package/dist/data-newrelic-alert-policy/index.d.ts +78 -0
- package/dist/data-newrelic-alert-policy/index.js +165 -0
- package/dist/data-newrelic-application/index.d.ts +56 -0
- package/dist/data-newrelic-application/index.js +119 -0
- package/dist/data-newrelic-authentication-domain/index.d.ts +43 -0
- package/dist/data-newrelic-authentication-domain/index.js +92 -0
- package/dist/data-newrelic-cloud-account/index.d.ts +75 -0
- package/dist/data-newrelic-cloud-account/index.js +154 -0
- package/dist/data-newrelic-entity/index.d.ts +185 -0
- package/dist/data-newrelic-entity/index.js +414 -0
- package/dist/data-newrelic-group/index.d.ts +54 -0
- package/dist/data-newrelic-group/index.js +116 -0
- package/dist/data-newrelic-key-transaction/index.d.ts +78 -0
- package/dist/data-newrelic-key-transaction/index.js +165 -0
- package/dist/data-newrelic-notification-destination/index.d.ts +161 -0
- package/dist/data-newrelic-notification-destination/index.js +368 -0
- package/dist/data-newrelic-obfuscation-expression/index.d.ts +65 -0
- package/dist/data-newrelic-obfuscation-expression/index.js +134 -0
- package/dist/data-newrelic-service-level-alert-helper/index.d.ts +107 -0
- package/dist/data-newrelic-service-level-alert-helper/index.js +256 -0
- package/dist/data-newrelic-synthetics-private-location/index.d.ts +76 -0
- package/dist/data-newrelic-synthetics-private-location/index.js +157 -0
- package/dist/data-newrelic-synthetics-secure-credential/index.d.ts +67 -0
- package/dist/data-newrelic-synthetics-secure-credential/index.js +142 -0
- package/dist/data-newrelic-test-grok-pattern/index.d.ts +145 -0
- package/dist/data-newrelic-test-grok-pattern/index.js +312 -0
- package/dist/data-newrelic-user/index.d.ts +65 -0
- package/dist/data-newrelic-user/index.js +138 -0
- package/dist/data-partition-rule/index.d.ts +142 -0
- package/dist/data-partition-rule/index.js +327 -0
- package/dist/entity-tags/index.d.ts +152 -0
- package/dist/entity-tags/index.js +367 -0
- package/dist/events-to-metrics-rule/index.d.ts +98 -0
- package/dist/events-to-metrics-rule/index.js +204 -0
- package/dist/group/index.d.ts +75 -0
- package/dist/group/index.js +154 -0
- package/dist/index.d.ts +67 -0
- package/dist/index.js +68 -0
- package/dist/infra-alert-condition/index.d.ts +289 -0
- package/dist/infra-alert-condition/index.js +691 -0
- package/dist/insights-event/index.d.ts +182 -0
- package/dist/insights-event/index.js +427 -0
- package/dist/key-transaction/index.d.ts +96 -0
- package/dist/key-transaction/index.js +199 -0
- package/dist/lazy-index.d.ts +0 -0
- package/dist/lazy-index.js +68 -0
- package/dist/log-parsing-rule/index.d.ts +128 -0
- package/dist/log-parsing-rule/index.js +264 -0
- package/dist/monitor-downtime/index.d.ts +255 -0
- package/dist/monitor-downtime/index.js +603 -0
- package/dist/notification-channel/index.d.ts +236 -0
- package/dist/notification-channel/index.js +561 -0
- package/dist/notification-destination/index.d.ts +402 -0
- package/dist/notification-destination/index.js +1039 -0
- package/dist/nrql-alert-condition/index.d.ts +892 -0
- package/dist/nrql-alert-condition/index.js +2177 -0
- package/dist/nrql-drop-rule/index.d.ts +123 -0
- package/dist/nrql-drop-rule/index.js +291 -0
- package/dist/obfuscation-expression/index.d.ts +86 -0
- package/dist/obfuscation-expression/index.js +177 -0
- package/dist/obfuscation-rule/index.d.ts +169 -0
- package/dist/obfuscation-rule/index.js +372 -0
- package/dist/one-dashboard/index-structs/index.d.ts +2 -0
- package/dist/one-dashboard/index-structs/index.js +2 -0
- package/dist/one-dashboard/index-structs/structs0.d.ts +6996 -0
- package/dist/one-dashboard/index-structs/structs0.js +18191 -0
- package/dist/one-dashboard/index-structs/structs400.d.ts +3699 -0
- package/dist/one-dashboard/index-structs/structs400.js +9611 -0
- package/dist/one-dashboard/index.d.ts +112 -0
- package/dist/one-dashboard/index.js +232 -0
- package/dist/one-dashboard-json/index.d.ts +112 -0
- package/dist/one-dashboard-json/index.js +280 -0
- package/dist/one-dashboard-raw/index.d.ts +274 -0
- package/dist/one-dashboard-raw/index.js +666 -0
- package/dist/pipeline-cloud-rule/index.d.ts +86 -0
- package/dist/pipeline-cloud-rule/index.js +177 -0
- package/dist/provider/index.d.ts +160 -0
- package/dist/provider/index.js +378 -0
- package/dist/service-level/index.d.ts +501 -0
- package/dist/service-level/index.js +1425 -0
- package/dist/synthetics-alert-condition/index.d.ts +97 -0
- package/dist/synthetics-alert-condition/index.js +201 -0
- package/dist/synthetics-broken-links-monitor/index.d.ts +217 -0
- package/dist/synthetics-broken-links-monitor/index.js +474 -0
- package/dist/synthetics-cert-check-monitor/index.d.ts +222 -0
- package/dist/synthetics-cert-check-monitor/index.js +490 -0
- package/dist/synthetics-monitor/index.d.ts +404 -0
- package/dist/synthetics-monitor/index.js +885 -0
- package/dist/synthetics-multilocation-alert-condition/index.d.ts +177 -0
- package/dist/synthetics-multilocation-alert-condition/index.js +407 -0
- package/dist/synthetics-private-location/index.d.ts +90 -0
- package/dist/synthetics-private-location/index.js +193 -0
- package/dist/synthetics-script-monitor/index.d.ts +348 -0
- package/dist/synthetics-script-monitor/index.js +768 -0
- package/dist/synthetics-secure-credential/index.d.ts +132 -0
- package/dist/synthetics-secure-credential/index.js +306 -0
- package/dist/synthetics-step-monitor/index.d.ts +368 -0
- package/dist/synthetics-step-monitor/index.js +834 -0
- package/dist/user/index.d.ts +85 -0
- package/dist/user/index.js +174 -0
- package/dist/workflow/index.d.ts +441 -0
- package/dist/workflow/index.js +1066 -0
- package/dist/workload/index.d.ts +514 -0
- package/dist/workload/index.js +1283 -0
- package/package.json +50 -0
|
@@ -0,0 +1,885 @@
|
|
|
1
|
+
// https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_monitor
|
|
2
|
+
// generated from terraform resource schema
|
|
3
|
+
import * as cdktf from 'cdktf';
|
|
4
|
+
export function syntheticsMonitorCustomHeaderToTerraform(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
|
+
name: cdktf.stringToTerraform(struct.name),
|
|
13
|
+
value: cdktf.stringToTerraform(struct.value),
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export function syntheticsMonitorCustomHeaderToHclTerraform(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
|
+
name: {
|
|
25
|
+
value: cdktf.stringToHclTerraform(struct.name),
|
|
26
|
+
isBlock: false,
|
|
27
|
+
type: "simple",
|
|
28
|
+
storageClassType: "string",
|
|
29
|
+
},
|
|
30
|
+
value: {
|
|
31
|
+
value: cdktf.stringToHclTerraform(struct.value),
|
|
32
|
+
isBlock: false,
|
|
33
|
+
type: "simple",
|
|
34
|
+
storageClassType: "string",
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
// remove undefined attributes
|
|
38
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
39
|
+
}
|
|
40
|
+
export class SyntheticsMonitorCustomHeaderOutputReference 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._name !== undefined) {
|
|
59
|
+
hasAnyValues = true;
|
|
60
|
+
internalValueResult.name = this._name;
|
|
61
|
+
}
|
|
62
|
+
if (this._value !== undefined) {
|
|
63
|
+
hasAnyValues = true;
|
|
64
|
+
internalValueResult.value = this._value;
|
|
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._name = undefined;
|
|
73
|
+
this._value = 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._name = value.name;
|
|
83
|
+
this._value = value.value;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
// name - computed: false, optional: true, required: false
|
|
87
|
+
_name;
|
|
88
|
+
get name() {
|
|
89
|
+
return this.getStringAttribute('name');
|
|
90
|
+
}
|
|
91
|
+
set name(value) {
|
|
92
|
+
this._name = value;
|
|
93
|
+
}
|
|
94
|
+
resetName() {
|
|
95
|
+
this._name = undefined;
|
|
96
|
+
}
|
|
97
|
+
// Temporarily expose input value. Use with caution.
|
|
98
|
+
get nameInput() {
|
|
99
|
+
return this._name;
|
|
100
|
+
}
|
|
101
|
+
// value - computed: false, optional: true, required: false
|
|
102
|
+
_value;
|
|
103
|
+
get value() {
|
|
104
|
+
return this.getStringAttribute('value');
|
|
105
|
+
}
|
|
106
|
+
set value(value) {
|
|
107
|
+
this._value = value;
|
|
108
|
+
}
|
|
109
|
+
resetValue() {
|
|
110
|
+
this._value = undefined;
|
|
111
|
+
}
|
|
112
|
+
// Temporarily expose input value. Use with caution.
|
|
113
|
+
get valueInput() {
|
|
114
|
+
return this._value;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
export class SyntheticsMonitorCustomHeaderList extends cdktf.ComplexList {
|
|
118
|
+
terraformResource;
|
|
119
|
+
terraformAttribute;
|
|
120
|
+
wrapsSet;
|
|
121
|
+
internalValue;
|
|
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, terraformAttribute, wrapsSet) {
|
|
128
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
129
|
+
this.terraformResource = terraformResource;
|
|
130
|
+
this.terraformAttribute = terraformAttribute;
|
|
131
|
+
this.wrapsSet = wrapsSet;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* @param index the index of the item to return
|
|
135
|
+
*/
|
|
136
|
+
get(index) {
|
|
137
|
+
return new SyntheticsMonitorCustomHeaderOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
export function syntheticsMonitorTagToTerraform(struct) {
|
|
141
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
142
|
+
return struct;
|
|
143
|
+
}
|
|
144
|
+
if (cdktf.isComplexElement(struct)) {
|
|
145
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
146
|
+
}
|
|
147
|
+
return {
|
|
148
|
+
key: cdktf.stringToTerraform(struct.key),
|
|
149
|
+
values: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.values),
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
export function syntheticsMonitorTagToHclTerraform(struct) {
|
|
153
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
154
|
+
return struct;
|
|
155
|
+
}
|
|
156
|
+
if (cdktf.isComplexElement(struct)) {
|
|
157
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
158
|
+
}
|
|
159
|
+
const attrs = {
|
|
160
|
+
key: {
|
|
161
|
+
value: cdktf.stringToHclTerraform(struct.key),
|
|
162
|
+
isBlock: false,
|
|
163
|
+
type: "simple",
|
|
164
|
+
storageClassType: "string",
|
|
165
|
+
},
|
|
166
|
+
values: {
|
|
167
|
+
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.values),
|
|
168
|
+
isBlock: false,
|
|
169
|
+
type: "list",
|
|
170
|
+
storageClassType: "stringList",
|
|
171
|
+
},
|
|
172
|
+
};
|
|
173
|
+
// remove undefined attributes
|
|
174
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
175
|
+
}
|
|
176
|
+
export class SyntheticsMonitorTagOutputReference extends cdktf.ComplexObject {
|
|
177
|
+
isEmptyObject = false;
|
|
178
|
+
resolvableValue;
|
|
179
|
+
/**
|
|
180
|
+
* @param terraformResource The parent resource
|
|
181
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
182
|
+
* @param complexObjectIndex the index of this item in the list
|
|
183
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
184
|
+
*/
|
|
185
|
+
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
|
|
186
|
+
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
|
|
187
|
+
}
|
|
188
|
+
get internalValue() {
|
|
189
|
+
if (this.resolvableValue) {
|
|
190
|
+
return this.resolvableValue;
|
|
191
|
+
}
|
|
192
|
+
let hasAnyValues = this.isEmptyObject;
|
|
193
|
+
const internalValueResult = {};
|
|
194
|
+
if (this._key !== undefined) {
|
|
195
|
+
hasAnyValues = true;
|
|
196
|
+
internalValueResult.key = this._key;
|
|
197
|
+
}
|
|
198
|
+
if (this._values !== undefined) {
|
|
199
|
+
hasAnyValues = true;
|
|
200
|
+
internalValueResult.values = this._values;
|
|
201
|
+
}
|
|
202
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
203
|
+
}
|
|
204
|
+
set internalValue(value) {
|
|
205
|
+
if (value === undefined) {
|
|
206
|
+
this.isEmptyObject = false;
|
|
207
|
+
this.resolvableValue = undefined;
|
|
208
|
+
this._key = undefined;
|
|
209
|
+
this._values = undefined;
|
|
210
|
+
}
|
|
211
|
+
else if (cdktf.Tokenization.isResolvable(value)) {
|
|
212
|
+
this.isEmptyObject = false;
|
|
213
|
+
this.resolvableValue = value;
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
217
|
+
this.resolvableValue = undefined;
|
|
218
|
+
this._key = value.key;
|
|
219
|
+
this._values = value.values;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
// key - computed: false, optional: false, required: true
|
|
223
|
+
_key;
|
|
224
|
+
get key() {
|
|
225
|
+
return this.getStringAttribute('key');
|
|
226
|
+
}
|
|
227
|
+
set key(value) {
|
|
228
|
+
this._key = value;
|
|
229
|
+
}
|
|
230
|
+
// Temporarily expose input value. Use with caution.
|
|
231
|
+
get keyInput() {
|
|
232
|
+
return this._key;
|
|
233
|
+
}
|
|
234
|
+
// values - computed: false, optional: false, required: true
|
|
235
|
+
_values;
|
|
236
|
+
get values() {
|
|
237
|
+
return this.getListAttribute('values');
|
|
238
|
+
}
|
|
239
|
+
set values(value) {
|
|
240
|
+
this._values = value;
|
|
241
|
+
}
|
|
242
|
+
// Temporarily expose input value. Use with caution.
|
|
243
|
+
get valuesInput() {
|
|
244
|
+
return this._values;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
export class SyntheticsMonitorTagList extends cdktf.ComplexList {
|
|
248
|
+
terraformResource;
|
|
249
|
+
terraformAttribute;
|
|
250
|
+
wrapsSet;
|
|
251
|
+
internalValue;
|
|
252
|
+
/**
|
|
253
|
+
* @param terraformResource The parent resource
|
|
254
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
255
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
256
|
+
*/
|
|
257
|
+
constructor(terraformResource, terraformAttribute, wrapsSet) {
|
|
258
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
259
|
+
this.terraformResource = terraformResource;
|
|
260
|
+
this.terraformAttribute = terraformAttribute;
|
|
261
|
+
this.wrapsSet = wrapsSet;
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* @param index the index of the item to return
|
|
265
|
+
*/
|
|
266
|
+
get(index) {
|
|
267
|
+
return new SyntheticsMonitorTagOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* Represents a {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_monitor newrelic_synthetics_monitor}
|
|
272
|
+
*/
|
|
273
|
+
export class SyntheticsMonitor extends cdktf.TerraformResource {
|
|
274
|
+
// =================
|
|
275
|
+
// STATIC PROPERTIES
|
|
276
|
+
// =================
|
|
277
|
+
static tfResourceType = "newrelic_synthetics_monitor";
|
|
278
|
+
// ==============
|
|
279
|
+
// STATIC Methods
|
|
280
|
+
// ==============
|
|
281
|
+
/**
|
|
282
|
+
* Generates CDKTF code for importing a SyntheticsMonitor resource upon running "cdktf plan <stack-name>"
|
|
283
|
+
* @param scope The scope in which to define this construct
|
|
284
|
+
* @param importToId The construct id used in the generated config for the SyntheticsMonitor to import
|
|
285
|
+
* @param importFromId The id of the existing SyntheticsMonitor that should be imported. Refer to the {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_monitor#import import section} in the documentation of this resource for the id to use
|
|
286
|
+
* @param provider? Optional instance of the provider where the SyntheticsMonitor to import is found
|
|
287
|
+
*/
|
|
288
|
+
static generateConfigForImport(scope, importToId, importFromId, provider) {
|
|
289
|
+
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "newrelic_synthetics_monitor", importId: importFromId, provider });
|
|
290
|
+
}
|
|
291
|
+
// ===========
|
|
292
|
+
// INITIALIZER
|
|
293
|
+
// ===========
|
|
294
|
+
/**
|
|
295
|
+
* Create a new {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_monitor newrelic_synthetics_monitor} Resource
|
|
296
|
+
*
|
|
297
|
+
* @param scope The scope in which to define this construct
|
|
298
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
299
|
+
* @param options SyntheticsMonitorConfig
|
|
300
|
+
*/
|
|
301
|
+
constructor(scope, id, config) {
|
|
302
|
+
super(scope, id, {
|
|
303
|
+
terraformResourceType: 'newrelic_synthetics_monitor',
|
|
304
|
+
terraformGeneratorMetadata: {
|
|
305
|
+
providerName: 'newrelic',
|
|
306
|
+
providerVersion: '3.75.4',
|
|
307
|
+
providerVersionConstraint: '3.75.4'
|
|
308
|
+
},
|
|
309
|
+
provider: config.provider,
|
|
310
|
+
dependsOn: config.dependsOn,
|
|
311
|
+
count: config.count,
|
|
312
|
+
lifecycle: config.lifecycle,
|
|
313
|
+
provisioners: config.provisioners,
|
|
314
|
+
connection: config.connection,
|
|
315
|
+
forEach: config.forEach
|
|
316
|
+
});
|
|
317
|
+
this._accountId = config.accountId;
|
|
318
|
+
this._browsers = config.browsers;
|
|
319
|
+
this._bypassHeadRequest = config.bypassHeadRequest;
|
|
320
|
+
this._deviceOrientation = config.deviceOrientation;
|
|
321
|
+
this._deviceType = config.deviceType;
|
|
322
|
+
this._devices = config.devices;
|
|
323
|
+
this._enableScreenshotOnFailureAndScript = config.enableScreenshotOnFailureAndScript;
|
|
324
|
+
this._id = config.id;
|
|
325
|
+
this._locationsPrivate = config.locationsPrivate;
|
|
326
|
+
this._locationsPublic = config.locationsPublic;
|
|
327
|
+
this._name = config.name;
|
|
328
|
+
this._period = config.period;
|
|
329
|
+
this._runtimeType = config.runtimeType;
|
|
330
|
+
this._runtimeTypeVersion = config.runtimeTypeVersion;
|
|
331
|
+
this._scriptLanguage = config.scriptLanguage;
|
|
332
|
+
this._status = config.status;
|
|
333
|
+
this._treatRedirectAsFailure = config.treatRedirectAsFailure;
|
|
334
|
+
this._type = config.type;
|
|
335
|
+
this._uri = config.uri;
|
|
336
|
+
this._useUnsupportedLegacyRuntime = config.useUnsupportedLegacyRuntime;
|
|
337
|
+
this._validationString = config.validationString;
|
|
338
|
+
this._verifySsl = config.verifySsl;
|
|
339
|
+
this._customHeader.internalValue = config.customHeader;
|
|
340
|
+
this._tag.internalValue = config.tag;
|
|
341
|
+
}
|
|
342
|
+
// ==========
|
|
343
|
+
// ATTRIBUTES
|
|
344
|
+
// ==========
|
|
345
|
+
// account_id - computed: true, optional: true, required: false
|
|
346
|
+
_accountId;
|
|
347
|
+
get accountId() {
|
|
348
|
+
return this.getNumberAttribute('account_id');
|
|
349
|
+
}
|
|
350
|
+
set accountId(value) {
|
|
351
|
+
this._accountId = value;
|
|
352
|
+
}
|
|
353
|
+
resetAccountId() {
|
|
354
|
+
this._accountId = undefined;
|
|
355
|
+
}
|
|
356
|
+
// Temporarily expose input value. Use with caution.
|
|
357
|
+
get accountIdInput() {
|
|
358
|
+
return this._accountId;
|
|
359
|
+
}
|
|
360
|
+
// browsers - computed: false, optional: true, required: false
|
|
361
|
+
_browsers;
|
|
362
|
+
get browsers() {
|
|
363
|
+
return cdktf.Fn.tolist(this.getListAttribute('browsers'));
|
|
364
|
+
}
|
|
365
|
+
set browsers(value) {
|
|
366
|
+
this._browsers = value;
|
|
367
|
+
}
|
|
368
|
+
resetBrowsers() {
|
|
369
|
+
this._browsers = undefined;
|
|
370
|
+
}
|
|
371
|
+
// Temporarily expose input value. Use with caution.
|
|
372
|
+
get browsersInput() {
|
|
373
|
+
return this._browsers;
|
|
374
|
+
}
|
|
375
|
+
// bypass_head_request - computed: false, optional: true, required: false
|
|
376
|
+
_bypassHeadRequest;
|
|
377
|
+
get bypassHeadRequest() {
|
|
378
|
+
return this.getBooleanAttribute('bypass_head_request');
|
|
379
|
+
}
|
|
380
|
+
set bypassHeadRequest(value) {
|
|
381
|
+
this._bypassHeadRequest = value;
|
|
382
|
+
}
|
|
383
|
+
resetBypassHeadRequest() {
|
|
384
|
+
this._bypassHeadRequest = undefined;
|
|
385
|
+
}
|
|
386
|
+
// Temporarily expose input value. Use with caution.
|
|
387
|
+
get bypassHeadRequestInput() {
|
|
388
|
+
return this._bypassHeadRequest;
|
|
389
|
+
}
|
|
390
|
+
// device_orientation - computed: false, optional: true, required: false
|
|
391
|
+
_deviceOrientation;
|
|
392
|
+
get deviceOrientation() {
|
|
393
|
+
return this.getStringAttribute('device_orientation');
|
|
394
|
+
}
|
|
395
|
+
set deviceOrientation(value) {
|
|
396
|
+
this._deviceOrientation = value;
|
|
397
|
+
}
|
|
398
|
+
resetDeviceOrientation() {
|
|
399
|
+
this._deviceOrientation = undefined;
|
|
400
|
+
}
|
|
401
|
+
// Temporarily expose input value. Use with caution.
|
|
402
|
+
get deviceOrientationInput() {
|
|
403
|
+
return this._deviceOrientation;
|
|
404
|
+
}
|
|
405
|
+
// device_type - computed: false, optional: true, required: false
|
|
406
|
+
_deviceType;
|
|
407
|
+
get deviceType() {
|
|
408
|
+
return this.getStringAttribute('device_type');
|
|
409
|
+
}
|
|
410
|
+
set deviceType(value) {
|
|
411
|
+
this._deviceType = value;
|
|
412
|
+
}
|
|
413
|
+
resetDeviceType() {
|
|
414
|
+
this._deviceType = undefined;
|
|
415
|
+
}
|
|
416
|
+
// Temporarily expose input value. Use with caution.
|
|
417
|
+
get deviceTypeInput() {
|
|
418
|
+
return this._deviceType;
|
|
419
|
+
}
|
|
420
|
+
// devices - computed: false, optional: true, required: false
|
|
421
|
+
_devices;
|
|
422
|
+
get devices() {
|
|
423
|
+
return cdktf.Fn.tolist(this.getListAttribute('devices'));
|
|
424
|
+
}
|
|
425
|
+
set devices(value) {
|
|
426
|
+
this._devices = value;
|
|
427
|
+
}
|
|
428
|
+
resetDevices() {
|
|
429
|
+
this._devices = undefined;
|
|
430
|
+
}
|
|
431
|
+
// Temporarily expose input value. Use with caution.
|
|
432
|
+
get devicesInput() {
|
|
433
|
+
return this._devices;
|
|
434
|
+
}
|
|
435
|
+
// enable_screenshot_on_failure_and_script - computed: false, optional: true, required: false
|
|
436
|
+
_enableScreenshotOnFailureAndScript;
|
|
437
|
+
get enableScreenshotOnFailureAndScript() {
|
|
438
|
+
return this.getBooleanAttribute('enable_screenshot_on_failure_and_script');
|
|
439
|
+
}
|
|
440
|
+
set enableScreenshotOnFailureAndScript(value) {
|
|
441
|
+
this._enableScreenshotOnFailureAndScript = value;
|
|
442
|
+
}
|
|
443
|
+
resetEnableScreenshotOnFailureAndScript() {
|
|
444
|
+
this._enableScreenshotOnFailureAndScript = undefined;
|
|
445
|
+
}
|
|
446
|
+
// Temporarily expose input value. Use with caution.
|
|
447
|
+
get enableScreenshotOnFailureAndScriptInput() {
|
|
448
|
+
return this._enableScreenshotOnFailureAndScript;
|
|
449
|
+
}
|
|
450
|
+
// id - computed: true, optional: true, required: false
|
|
451
|
+
_id;
|
|
452
|
+
get id() {
|
|
453
|
+
return this.getStringAttribute('id');
|
|
454
|
+
}
|
|
455
|
+
set id(value) {
|
|
456
|
+
this._id = value;
|
|
457
|
+
}
|
|
458
|
+
resetId() {
|
|
459
|
+
this._id = undefined;
|
|
460
|
+
}
|
|
461
|
+
// Temporarily expose input value. Use with caution.
|
|
462
|
+
get idInput() {
|
|
463
|
+
return this._id;
|
|
464
|
+
}
|
|
465
|
+
// locations_private - computed: false, optional: true, required: false
|
|
466
|
+
_locationsPrivate;
|
|
467
|
+
get locationsPrivate() {
|
|
468
|
+
return cdktf.Fn.tolist(this.getListAttribute('locations_private'));
|
|
469
|
+
}
|
|
470
|
+
set locationsPrivate(value) {
|
|
471
|
+
this._locationsPrivate = value;
|
|
472
|
+
}
|
|
473
|
+
resetLocationsPrivate() {
|
|
474
|
+
this._locationsPrivate = undefined;
|
|
475
|
+
}
|
|
476
|
+
// Temporarily expose input value. Use with caution.
|
|
477
|
+
get locationsPrivateInput() {
|
|
478
|
+
return this._locationsPrivate;
|
|
479
|
+
}
|
|
480
|
+
// locations_public - computed: false, optional: true, required: false
|
|
481
|
+
_locationsPublic;
|
|
482
|
+
get locationsPublic() {
|
|
483
|
+
return cdktf.Fn.tolist(this.getListAttribute('locations_public'));
|
|
484
|
+
}
|
|
485
|
+
set locationsPublic(value) {
|
|
486
|
+
this._locationsPublic = value;
|
|
487
|
+
}
|
|
488
|
+
resetLocationsPublic() {
|
|
489
|
+
this._locationsPublic = undefined;
|
|
490
|
+
}
|
|
491
|
+
// Temporarily expose input value. Use with caution.
|
|
492
|
+
get locationsPublicInput() {
|
|
493
|
+
return this._locationsPublic;
|
|
494
|
+
}
|
|
495
|
+
// monitor_id - computed: true, optional: false, required: false
|
|
496
|
+
get monitorId() {
|
|
497
|
+
return this.getStringAttribute('monitor_id');
|
|
498
|
+
}
|
|
499
|
+
// name - computed: false, optional: false, required: true
|
|
500
|
+
_name;
|
|
501
|
+
get name() {
|
|
502
|
+
return this.getStringAttribute('name');
|
|
503
|
+
}
|
|
504
|
+
set name(value) {
|
|
505
|
+
this._name = value;
|
|
506
|
+
}
|
|
507
|
+
// Temporarily expose input value. Use with caution.
|
|
508
|
+
get nameInput() {
|
|
509
|
+
return this._name;
|
|
510
|
+
}
|
|
511
|
+
// period - computed: true, optional: true, required: false
|
|
512
|
+
_period;
|
|
513
|
+
get period() {
|
|
514
|
+
return this.getStringAttribute('period');
|
|
515
|
+
}
|
|
516
|
+
set period(value) {
|
|
517
|
+
this._period = value;
|
|
518
|
+
}
|
|
519
|
+
resetPeriod() {
|
|
520
|
+
this._period = undefined;
|
|
521
|
+
}
|
|
522
|
+
// Temporarily expose input value. Use with caution.
|
|
523
|
+
get periodInput() {
|
|
524
|
+
return this._period;
|
|
525
|
+
}
|
|
526
|
+
// period_in_minutes - computed: true, optional: false, required: false
|
|
527
|
+
get periodInMinutes() {
|
|
528
|
+
return this.getNumberAttribute('period_in_minutes');
|
|
529
|
+
}
|
|
530
|
+
// runtime_type - computed: false, optional: true, required: false
|
|
531
|
+
_runtimeType;
|
|
532
|
+
get runtimeType() {
|
|
533
|
+
return this.getStringAttribute('runtime_type');
|
|
534
|
+
}
|
|
535
|
+
set runtimeType(value) {
|
|
536
|
+
this._runtimeType = value;
|
|
537
|
+
}
|
|
538
|
+
resetRuntimeType() {
|
|
539
|
+
this._runtimeType = undefined;
|
|
540
|
+
}
|
|
541
|
+
// Temporarily expose input value. Use with caution.
|
|
542
|
+
get runtimeTypeInput() {
|
|
543
|
+
return this._runtimeType;
|
|
544
|
+
}
|
|
545
|
+
// runtime_type_version - computed: false, optional: true, required: false
|
|
546
|
+
_runtimeTypeVersion;
|
|
547
|
+
get runtimeTypeVersion() {
|
|
548
|
+
return this.getStringAttribute('runtime_type_version');
|
|
549
|
+
}
|
|
550
|
+
set runtimeTypeVersion(value) {
|
|
551
|
+
this._runtimeTypeVersion = value;
|
|
552
|
+
}
|
|
553
|
+
resetRuntimeTypeVersion() {
|
|
554
|
+
this._runtimeTypeVersion = undefined;
|
|
555
|
+
}
|
|
556
|
+
// Temporarily expose input value. Use with caution.
|
|
557
|
+
get runtimeTypeVersionInput() {
|
|
558
|
+
return this._runtimeTypeVersion;
|
|
559
|
+
}
|
|
560
|
+
// script_language - computed: false, optional: true, required: false
|
|
561
|
+
_scriptLanguage;
|
|
562
|
+
get scriptLanguage() {
|
|
563
|
+
return this.getStringAttribute('script_language');
|
|
564
|
+
}
|
|
565
|
+
set scriptLanguage(value) {
|
|
566
|
+
this._scriptLanguage = value;
|
|
567
|
+
}
|
|
568
|
+
resetScriptLanguage() {
|
|
569
|
+
this._scriptLanguage = undefined;
|
|
570
|
+
}
|
|
571
|
+
// Temporarily expose input value. Use with caution.
|
|
572
|
+
get scriptLanguageInput() {
|
|
573
|
+
return this._scriptLanguage;
|
|
574
|
+
}
|
|
575
|
+
// status - computed: false, optional: false, required: true
|
|
576
|
+
_status;
|
|
577
|
+
get status() {
|
|
578
|
+
return this.getStringAttribute('status');
|
|
579
|
+
}
|
|
580
|
+
set status(value) {
|
|
581
|
+
this._status = value;
|
|
582
|
+
}
|
|
583
|
+
// Temporarily expose input value. Use with caution.
|
|
584
|
+
get statusInput() {
|
|
585
|
+
return this._status;
|
|
586
|
+
}
|
|
587
|
+
// treat_redirect_as_failure - computed: false, optional: true, required: false
|
|
588
|
+
_treatRedirectAsFailure;
|
|
589
|
+
get treatRedirectAsFailure() {
|
|
590
|
+
return this.getBooleanAttribute('treat_redirect_as_failure');
|
|
591
|
+
}
|
|
592
|
+
set treatRedirectAsFailure(value) {
|
|
593
|
+
this._treatRedirectAsFailure = value;
|
|
594
|
+
}
|
|
595
|
+
resetTreatRedirectAsFailure() {
|
|
596
|
+
this._treatRedirectAsFailure = undefined;
|
|
597
|
+
}
|
|
598
|
+
// Temporarily expose input value. Use with caution.
|
|
599
|
+
get treatRedirectAsFailureInput() {
|
|
600
|
+
return this._treatRedirectAsFailure;
|
|
601
|
+
}
|
|
602
|
+
// type - computed: false, optional: false, required: true
|
|
603
|
+
_type;
|
|
604
|
+
get type() {
|
|
605
|
+
return this.getStringAttribute('type');
|
|
606
|
+
}
|
|
607
|
+
set type(value) {
|
|
608
|
+
this._type = value;
|
|
609
|
+
}
|
|
610
|
+
// Temporarily expose input value. Use with caution.
|
|
611
|
+
get typeInput() {
|
|
612
|
+
return this._type;
|
|
613
|
+
}
|
|
614
|
+
// uri - computed: false, optional: true, required: false
|
|
615
|
+
_uri;
|
|
616
|
+
get uri() {
|
|
617
|
+
return this.getStringAttribute('uri');
|
|
618
|
+
}
|
|
619
|
+
set uri(value) {
|
|
620
|
+
this._uri = value;
|
|
621
|
+
}
|
|
622
|
+
resetUri() {
|
|
623
|
+
this._uri = undefined;
|
|
624
|
+
}
|
|
625
|
+
// Temporarily expose input value. Use with caution.
|
|
626
|
+
get uriInput() {
|
|
627
|
+
return this._uri;
|
|
628
|
+
}
|
|
629
|
+
// use_unsupported_legacy_runtime - computed: false, optional: true, required: false
|
|
630
|
+
_useUnsupportedLegacyRuntime;
|
|
631
|
+
get useUnsupportedLegacyRuntime() {
|
|
632
|
+
return this.getBooleanAttribute('use_unsupported_legacy_runtime');
|
|
633
|
+
}
|
|
634
|
+
set useUnsupportedLegacyRuntime(value) {
|
|
635
|
+
this._useUnsupportedLegacyRuntime = value;
|
|
636
|
+
}
|
|
637
|
+
resetUseUnsupportedLegacyRuntime() {
|
|
638
|
+
this._useUnsupportedLegacyRuntime = undefined;
|
|
639
|
+
}
|
|
640
|
+
// Temporarily expose input value. Use with caution.
|
|
641
|
+
get useUnsupportedLegacyRuntimeInput() {
|
|
642
|
+
return this._useUnsupportedLegacyRuntime;
|
|
643
|
+
}
|
|
644
|
+
// validation_string - computed: false, optional: true, required: false
|
|
645
|
+
_validationString;
|
|
646
|
+
get validationString() {
|
|
647
|
+
return this.getStringAttribute('validation_string');
|
|
648
|
+
}
|
|
649
|
+
set validationString(value) {
|
|
650
|
+
this._validationString = value;
|
|
651
|
+
}
|
|
652
|
+
resetValidationString() {
|
|
653
|
+
this._validationString = undefined;
|
|
654
|
+
}
|
|
655
|
+
// Temporarily expose input value. Use with caution.
|
|
656
|
+
get validationStringInput() {
|
|
657
|
+
return this._validationString;
|
|
658
|
+
}
|
|
659
|
+
// verify_ssl - computed: false, optional: true, required: false
|
|
660
|
+
_verifySsl;
|
|
661
|
+
get verifySsl() {
|
|
662
|
+
return this.getBooleanAttribute('verify_ssl');
|
|
663
|
+
}
|
|
664
|
+
set verifySsl(value) {
|
|
665
|
+
this._verifySsl = value;
|
|
666
|
+
}
|
|
667
|
+
resetVerifySsl() {
|
|
668
|
+
this._verifySsl = undefined;
|
|
669
|
+
}
|
|
670
|
+
// Temporarily expose input value. Use with caution.
|
|
671
|
+
get verifySslInput() {
|
|
672
|
+
return this._verifySsl;
|
|
673
|
+
}
|
|
674
|
+
// custom_header - computed: false, optional: true, required: false
|
|
675
|
+
_customHeader = new SyntheticsMonitorCustomHeaderList(this, "custom_header", true);
|
|
676
|
+
get customHeader() {
|
|
677
|
+
return this._customHeader;
|
|
678
|
+
}
|
|
679
|
+
putCustomHeader(value) {
|
|
680
|
+
this._customHeader.internalValue = value;
|
|
681
|
+
}
|
|
682
|
+
resetCustomHeader() {
|
|
683
|
+
this._customHeader.internalValue = undefined;
|
|
684
|
+
}
|
|
685
|
+
// Temporarily expose input value. Use with caution.
|
|
686
|
+
get customHeaderInput() {
|
|
687
|
+
return this._customHeader.internalValue;
|
|
688
|
+
}
|
|
689
|
+
// tag - computed: false, optional: true, required: false
|
|
690
|
+
_tag = new SyntheticsMonitorTagList(this, "tag", true);
|
|
691
|
+
get tag() {
|
|
692
|
+
return this._tag;
|
|
693
|
+
}
|
|
694
|
+
putTag(value) {
|
|
695
|
+
this._tag.internalValue = value;
|
|
696
|
+
}
|
|
697
|
+
resetTag() {
|
|
698
|
+
this._tag.internalValue = undefined;
|
|
699
|
+
}
|
|
700
|
+
// Temporarily expose input value. Use with caution.
|
|
701
|
+
get tagInput() {
|
|
702
|
+
return this._tag.internalValue;
|
|
703
|
+
}
|
|
704
|
+
// =========
|
|
705
|
+
// SYNTHESIS
|
|
706
|
+
// =========
|
|
707
|
+
synthesizeAttributes() {
|
|
708
|
+
return {
|
|
709
|
+
account_id: cdktf.numberToTerraform(this._accountId),
|
|
710
|
+
browsers: cdktf.listMapper(cdktf.stringToTerraform, false)(this._browsers),
|
|
711
|
+
bypass_head_request: cdktf.booleanToTerraform(this._bypassHeadRequest),
|
|
712
|
+
device_orientation: cdktf.stringToTerraform(this._deviceOrientation),
|
|
713
|
+
device_type: cdktf.stringToTerraform(this._deviceType),
|
|
714
|
+
devices: cdktf.listMapper(cdktf.stringToTerraform, false)(this._devices),
|
|
715
|
+
enable_screenshot_on_failure_and_script: cdktf.booleanToTerraform(this._enableScreenshotOnFailureAndScript),
|
|
716
|
+
id: cdktf.stringToTerraform(this._id),
|
|
717
|
+
locations_private: cdktf.listMapper(cdktf.stringToTerraform, false)(this._locationsPrivate),
|
|
718
|
+
locations_public: cdktf.listMapper(cdktf.stringToTerraform, false)(this._locationsPublic),
|
|
719
|
+
name: cdktf.stringToTerraform(this._name),
|
|
720
|
+
period: cdktf.stringToTerraform(this._period),
|
|
721
|
+
runtime_type: cdktf.stringToTerraform(this._runtimeType),
|
|
722
|
+
runtime_type_version: cdktf.stringToTerraform(this._runtimeTypeVersion),
|
|
723
|
+
script_language: cdktf.stringToTerraform(this._scriptLanguage),
|
|
724
|
+
status: cdktf.stringToTerraform(this._status),
|
|
725
|
+
treat_redirect_as_failure: cdktf.booleanToTerraform(this._treatRedirectAsFailure),
|
|
726
|
+
type: cdktf.stringToTerraform(this._type),
|
|
727
|
+
uri: cdktf.stringToTerraform(this._uri),
|
|
728
|
+
use_unsupported_legacy_runtime: cdktf.booleanToTerraform(this._useUnsupportedLegacyRuntime),
|
|
729
|
+
validation_string: cdktf.stringToTerraform(this._validationString),
|
|
730
|
+
verify_ssl: cdktf.booleanToTerraform(this._verifySsl),
|
|
731
|
+
custom_header: cdktf.listMapper(syntheticsMonitorCustomHeaderToTerraform, true)(this._customHeader.internalValue),
|
|
732
|
+
tag: cdktf.listMapper(syntheticsMonitorTagToTerraform, true)(this._tag.internalValue),
|
|
733
|
+
};
|
|
734
|
+
}
|
|
735
|
+
synthesizeHclAttributes() {
|
|
736
|
+
const attrs = {
|
|
737
|
+
account_id: {
|
|
738
|
+
value: cdktf.numberToHclTerraform(this._accountId),
|
|
739
|
+
isBlock: false,
|
|
740
|
+
type: "simple",
|
|
741
|
+
storageClassType: "number",
|
|
742
|
+
},
|
|
743
|
+
browsers: {
|
|
744
|
+
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._browsers),
|
|
745
|
+
isBlock: false,
|
|
746
|
+
type: "set",
|
|
747
|
+
storageClassType: "stringList",
|
|
748
|
+
},
|
|
749
|
+
bypass_head_request: {
|
|
750
|
+
value: cdktf.booleanToHclTerraform(this._bypassHeadRequest),
|
|
751
|
+
isBlock: false,
|
|
752
|
+
type: "simple",
|
|
753
|
+
storageClassType: "boolean",
|
|
754
|
+
},
|
|
755
|
+
device_orientation: {
|
|
756
|
+
value: cdktf.stringToHclTerraform(this._deviceOrientation),
|
|
757
|
+
isBlock: false,
|
|
758
|
+
type: "simple",
|
|
759
|
+
storageClassType: "string",
|
|
760
|
+
},
|
|
761
|
+
device_type: {
|
|
762
|
+
value: cdktf.stringToHclTerraform(this._deviceType),
|
|
763
|
+
isBlock: false,
|
|
764
|
+
type: "simple",
|
|
765
|
+
storageClassType: "string",
|
|
766
|
+
},
|
|
767
|
+
devices: {
|
|
768
|
+
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._devices),
|
|
769
|
+
isBlock: false,
|
|
770
|
+
type: "set",
|
|
771
|
+
storageClassType: "stringList",
|
|
772
|
+
},
|
|
773
|
+
enable_screenshot_on_failure_and_script: {
|
|
774
|
+
value: cdktf.booleanToHclTerraform(this._enableScreenshotOnFailureAndScript),
|
|
775
|
+
isBlock: false,
|
|
776
|
+
type: "simple",
|
|
777
|
+
storageClassType: "boolean",
|
|
778
|
+
},
|
|
779
|
+
id: {
|
|
780
|
+
value: cdktf.stringToHclTerraform(this._id),
|
|
781
|
+
isBlock: false,
|
|
782
|
+
type: "simple",
|
|
783
|
+
storageClassType: "string",
|
|
784
|
+
},
|
|
785
|
+
locations_private: {
|
|
786
|
+
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._locationsPrivate),
|
|
787
|
+
isBlock: false,
|
|
788
|
+
type: "set",
|
|
789
|
+
storageClassType: "stringList",
|
|
790
|
+
},
|
|
791
|
+
locations_public: {
|
|
792
|
+
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._locationsPublic),
|
|
793
|
+
isBlock: false,
|
|
794
|
+
type: "set",
|
|
795
|
+
storageClassType: "stringList",
|
|
796
|
+
},
|
|
797
|
+
name: {
|
|
798
|
+
value: cdktf.stringToHclTerraform(this._name),
|
|
799
|
+
isBlock: false,
|
|
800
|
+
type: "simple",
|
|
801
|
+
storageClassType: "string",
|
|
802
|
+
},
|
|
803
|
+
period: {
|
|
804
|
+
value: cdktf.stringToHclTerraform(this._period),
|
|
805
|
+
isBlock: false,
|
|
806
|
+
type: "simple",
|
|
807
|
+
storageClassType: "string",
|
|
808
|
+
},
|
|
809
|
+
runtime_type: {
|
|
810
|
+
value: cdktf.stringToHclTerraform(this._runtimeType),
|
|
811
|
+
isBlock: false,
|
|
812
|
+
type: "simple",
|
|
813
|
+
storageClassType: "string",
|
|
814
|
+
},
|
|
815
|
+
runtime_type_version: {
|
|
816
|
+
value: cdktf.stringToHclTerraform(this._runtimeTypeVersion),
|
|
817
|
+
isBlock: false,
|
|
818
|
+
type: "simple",
|
|
819
|
+
storageClassType: "string",
|
|
820
|
+
},
|
|
821
|
+
script_language: {
|
|
822
|
+
value: cdktf.stringToHclTerraform(this._scriptLanguage),
|
|
823
|
+
isBlock: false,
|
|
824
|
+
type: "simple",
|
|
825
|
+
storageClassType: "string",
|
|
826
|
+
},
|
|
827
|
+
status: {
|
|
828
|
+
value: cdktf.stringToHclTerraform(this._status),
|
|
829
|
+
isBlock: false,
|
|
830
|
+
type: "simple",
|
|
831
|
+
storageClassType: "string",
|
|
832
|
+
},
|
|
833
|
+
treat_redirect_as_failure: {
|
|
834
|
+
value: cdktf.booleanToHclTerraform(this._treatRedirectAsFailure),
|
|
835
|
+
isBlock: false,
|
|
836
|
+
type: "simple",
|
|
837
|
+
storageClassType: "boolean",
|
|
838
|
+
},
|
|
839
|
+
type: {
|
|
840
|
+
value: cdktf.stringToHclTerraform(this._type),
|
|
841
|
+
isBlock: false,
|
|
842
|
+
type: "simple",
|
|
843
|
+
storageClassType: "string",
|
|
844
|
+
},
|
|
845
|
+
uri: {
|
|
846
|
+
value: cdktf.stringToHclTerraform(this._uri),
|
|
847
|
+
isBlock: false,
|
|
848
|
+
type: "simple",
|
|
849
|
+
storageClassType: "string",
|
|
850
|
+
},
|
|
851
|
+
use_unsupported_legacy_runtime: {
|
|
852
|
+
value: cdktf.booleanToHclTerraform(this._useUnsupportedLegacyRuntime),
|
|
853
|
+
isBlock: false,
|
|
854
|
+
type: "simple",
|
|
855
|
+
storageClassType: "boolean",
|
|
856
|
+
},
|
|
857
|
+
validation_string: {
|
|
858
|
+
value: cdktf.stringToHclTerraform(this._validationString),
|
|
859
|
+
isBlock: false,
|
|
860
|
+
type: "simple",
|
|
861
|
+
storageClassType: "string",
|
|
862
|
+
},
|
|
863
|
+
verify_ssl: {
|
|
864
|
+
value: cdktf.booleanToHclTerraform(this._verifySsl),
|
|
865
|
+
isBlock: false,
|
|
866
|
+
type: "simple",
|
|
867
|
+
storageClassType: "boolean",
|
|
868
|
+
},
|
|
869
|
+
custom_header: {
|
|
870
|
+
value: cdktf.listMapperHcl(syntheticsMonitorCustomHeaderToHclTerraform, true)(this._customHeader.internalValue),
|
|
871
|
+
isBlock: true,
|
|
872
|
+
type: "set",
|
|
873
|
+
storageClassType: "SyntheticsMonitorCustomHeaderList",
|
|
874
|
+
},
|
|
875
|
+
tag: {
|
|
876
|
+
value: cdktf.listMapperHcl(syntheticsMonitorTagToHclTerraform, true)(this._tag.internalValue),
|
|
877
|
+
isBlock: true,
|
|
878
|
+
type: "set",
|
|
879
|
+
storageClassType: "SyntheticsMonitorTagList",
|
|
880
|
+
},
|
|
881
|
+
};
|
|
882
|
+
// remove undefined attributes
|
|
883
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
884
|
+
}
|
|
885
|
+
}
|