@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,768 @@
|
|
|
1
|
+
// https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_script_monitor
|
|
2
|
+
// generated from terraform resource schema
|
|
3
|
+
import * as cdktf from 'cdktf';
|
|
4
|
+
export function syntheticsScriptMonitorLocationPrivateToTerraform(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
|
+
guid: cdktf.stringToTerraform(struct.guid),
|
|
13
|
+
vse_password: cdktf.stringToTerraform(struct.vsePassword),
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export function syntheticsScriptMonitorLocationPrivateToHclTerraform(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
|
+
guid: {
|
|
25
|
+
value: cdktf.stringToHclTerraform(struct.guid),
|
|
26
|
+
isBlock: false,
|
|
27
|
+
type: "simple",
|
|
28
|
+
storageClassType: "string",
|
|
29
|
+
},
|
|
30
|
+
vse_password: {
|
|
31
|
+
value: cdktf.stringToHclTerraform(struct.vsePassword),
|
|
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 SyntheticsScriptMonitorLocationPrivateOutputReference 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._guid !== undefined) {
|
|
59
|
+
hasAnyValues = true;
|
|
60
|
+
internalValueResult.guid = this._guid;
|
|
61
|
+
}
|
|
62
|
+
if (this._vsePassword !== undefined) {
|
|
63
|
+
hasAnyValues = true;
|
|
64
|
+
internalValueResult.vsePassword = this._vsePassword;
|
|
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._guid = undefined;
|
|
73
|
+
this._vsePassword = 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._guid = value.guid;
|
|
83
|
+
this._vsePassword = value.vsePassword;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
// guid - computed: false, optional: false, required: true
|
|
87
|
+
_guid;
|
|
88
|
+
get guid() {
|
|
89
|
+
return this.getStringAttribute('guid');
|
|
90
|
+
}
|
|
91
|
+
set guid(value) {
|
|
92
|
+
this._guid = value;
|
|
93
|
+
}
|
|
94
|
+
// Temporarily expose input value. Use with caution.
|
|
95
|
+
get guidInput() {
|
|
96
|
+
return this._guid;
|
|
97
|
+
}
|
|
98
|
+
// vse_password - computed: false, optional: true, required: false
|
|
99
|
+
_vsePassword;
|
|
100
|
+
get vsePassword() {
|
|
101
|
+
return this.getStringAttribute('vse_password');
|
|
102
|
+
}
|
|
103
|
+
set vsePassword(value) {
|
|
104
|
+
this._vsePassword = value;
|
|
105
|
+
}
|
|
106
|
+
resetVsePassword() {
|
|
107
|
+
this._vsePassword = undefined;
|
|
108
|
+
}
|
|
109
|
+
// Temporarily expose input value. Use with caution.
|
|
110
|
+
get vsePasswordInput() {
|
|
111
|
+
return this._vsePassword;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
export class SyntheticsScriptMonitorLocationPrivateList extends cdktf.ComplexList {
|
|
115
|
+
terraformResource;
|
|
116
|
+
terraformAttribute;
|
|
117
|
+
wrapsSet;
|
|
118
|
+
internalValue;
|
|
119
|
+
/**
|
|
120
|
+
* @param terraformResource The parent resource
|
|
121
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
122
|
+
* @param wrapsSet 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, wrapsSet) {
|
|
125
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
126
|
+
this.terraformResource = terraformResource;
|
|
127
|
+
this.terraformAttribute = terraformAttribute;
|
|
128
|
+
this.wrapsSet = wrapsSet;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* @param index the index of the item to return
|
|
132
|
+
*/
|
|
133
|
+
get(index) {
|
|
134
|
+
return new SyntheticsScriptMonitorLocationPrivateOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
export function syntheticsScriptMonitorTagToTerraform(struct) {
|
|
138
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
139
|
+
return struct;
|
|
140
|
+
}
|
|
141
|
+
if (cdktf.isComplexElement(struct)) {
|
|
142
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
143
|
+
}
|
|
144
|
+
return {
|
|
145
|
+
key: cdktf.stringToTerraform(struct.key),
|
|
146
|
+
values: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.values),
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
export function syntheticsScriptMonitorTagToHclTerraform(struct) {
|
|
150
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
151
|
+
return struct;
|
|
152
|
+
}
|
|
153
|
+
if (cdktf.isComplexElement(struct)) {
|
|
154
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
155
|
+
}
|
|
156
|
+
const attrs = {
|
|
157
|
+
key: {
|
|
158
|
+
value: cdktf.stringToHclTerraform(struct.key),
|
|
159
|
+
isBlock: false,
|
|
160
|
+
type: "simple",
|
|
161
|
+
storageClassType: "string",
|
|
162
|
+
},
|
|
163
|
+
values: {
|
|
164
|
+
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.values),
|
|
165
|
+
isBlock: false,
|
|
166
|
+
type: "list",
|
|
167
|
+
storageClassType: "stringList",
|
|
168
|
+
},
|
|
169
|
+
};
|
|
170
|
+
// remove undefined attributes
|
|
171
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
172
|
+
}
|
|
173
|
+
export class SyntheticsScriptMonitorTagOutputReference extends cdktf.ComplexObject {
|
|
174
|
+
isEmptyObject = false;
|
|
175
|
+
resolvableValue;
|
|
176
|
+
/**
|
|
177
|
+
* @param terraformResource The parent resource
|
|
178
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
179
|
+
* @param complexObjectIndex the index of this item in the list
|
|
180
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
181
|
+
*/
|
|
182
|
+
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
|
|
183
|
+
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
|
|
184
|
+
}
|
|
185
|
+
get internalValue() {
|
|
186
|
+
if (this.resolvableValue) {
|
|
187
|
+
return this.resolvableValue;
|
|
188
|
+
}
|
|
189
|
+
let hasAnyValues = this.isEmptyObject;
|
|
190
|
+
const internalValueResult = {};
|
|
191
|
+
if (this._key !== undefined) {
|
|
192
|
+
hasAnyValues = true;
|
|
193
|
+
internalValueResult.key = this._key;
|
|
194
|
+
}
|
|
195
|
+
if (this._values !== undefined) {
|
|
196
|
+
hasAnyValues = true;
|
|
197
|
+
internalValueResult.values = this._values;
|
|
198
|
+
}
|
|
199
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
200
|
+
}
|
|
201
|
+
set internalValue(value) {
|
|
202
|
+
if (value === undefined) {
|
|
203
|
+
this.isEmptyObject = false;
|
|
204
|
+
this.resolvableValue = undefined;
|
|
205
|
+
this._key = undefined;
|
|
206
|
+
this._values = undefined;
|
|
207
|
+
}
|
|
208
|
+
else if (cdktf.Tokenization.isResolvable(value)) {
|
|
209
|
+
this.isEmptyObject = false;
|
|
210
|
+
this.resolvableValue = value;
|
|
211
|
+
}
|
|
212
|
+
else {
|
|
213
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
214
|
+
this.resolvableValue = undefined;
|
|
215
|
+
this._key = value.key;
|
|
216
|
+
this._values = value.values;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
// key - computed: false, optional: false, required: true
|
|
220
|
+
_key;
|
|
221
|
+
get key() {
|
|
222
|
+
return this.getStringAttribute('key');
|
|
223
|
+
}
|
|
224
|
+
set key(value) {
|
|
225
|
+
this._key = value;
|
|
226
|
+
}
|
|
227
|
+
// Temporarily expose input value. Use with caution.
|
|
228
|
+
get keyInput() {
|
|
229
|
+
return this._key;
|
|
230
|
+
}
|
|
231
|
+
// values - computed: false, optional: false, required: true
|
|
232
|
+
_values;
|
|
233
|
+
get values() {
|
|
234
|
+
return this.getListAttribute('values');
|
|
235
|
+
}
|
|
236
|
+
set values(value) {
|
|
237
|
+
this._values = value;
|
|
238
|
+
}
|
|
239
|
+
// Temporarily expose input value. Use with caution.
|
|
240
|
+
get valuesInput() {
|
|
241
|
+
return this._values;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
export class SyntheticsScriptMonitorTagList extends cdktf.ComplexList {
|
|
245
|
+
terraformResource;
|
|
246
|
+
terraformAttribute;
|
|
247
|
+
wrapsSet;
|
|
248
|
+
internalValue;
|
|
249
|
+
/**
|
|
250
|
+
* @param terraformResource The parent resource
|
|
251
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
252
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
253
|
+
*/
|
|
254
|
+
constructor(terraformResource, terraformAttribute, wrapsSet) {
|
|
255
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
256
|
+
this.terraformResource = terraformResource;
|
|
257
|
+
this.terraformAttribute = terraformAttribute;
|
|
258
|
+
this.wrapsSet = wrapsSet;
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* @param index the index of the item to return
|
|
262
|
+
*/
|
|
263
|
+
get(index) {
|
|
264
|
+
return new SyntheticsScriptMonitorTagOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Represents a {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_script_monitor newrelic_synthetics_script_monitor}
|
|
269
|
+
*/
|
|
270
|
+
export class SyntheticsScriptMonitor extends cdktf.TerraformResource {
|
|
271
|
+
// =================
|
|
272
|
+
// STATIC PROPERTIES
|
|
273
|
+
// =================
|
|
274
|
+
static tfResourceType = "newrelic_synthetics_script_monitor";
|
|
275
|
+
// ==============
|
|
276
|
+
// STATIC Methods
|
|
277
|
+
// ==============
|
|
278
|
+
/**
|
|
279
|
+
* Generates CDKTF code for importing a SyntheticsScriptMonitor resource upon running "cdktf plan <stack-name>"
|
|
280
|
+
* @param scope The scope in which to define this construct
|
|
281
|
+
* @param importToId The construct id used in the generated config for the SyntheticsScriptMonitor to import
|
|
282
|
+
* @param importFromId The id of the existing SyntheticsScriptMonitor that should be imported. Refer to the {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_script_monitor#import import section} in the documentation of this resource for the id to use
|
|
283
|
+
* @param provider? Optional instance of the provider where the SyntheticsScriptMonitor to import is found
|
|
284
|
+
*/
|
|
285
|
+
static generateConfigForImport(scope, importToId, importFromId, provider) {
|
|
286
|
+
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "newrelic_synthetics_script_monitor", importId: importFromId, provider });
|
|
287
|
+
}
|
|
288
|
+
// ===========
|
|
289
|
+
// INITIALIZER
|
|
290
|
+
// ===========
|
|
291
|
+
/**
|
|
292
|
+
* Create a new {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/synthetics_script_monitor newrelic_synthetics_script_monitor} Resource
|
|
293
|
+
*
|
|
294
|
+
* @param scope The scope in which to define this construct
|
|
295
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
296
|
+
* @param options SyntheticsScriptMonitorConfig
|
|
297
|
+
*/
|
|
298
|
+
constructor(scope, id, config) {
|
|
299
|
+
super(scope, id, {
|
|
300
|
+
terraformResourceType: 'newrelic_synthetics_script_monitor',
|
|
301
|
+
terraformGeneratorMetadata: {
|
|
302
|
+
providerName: 'newrelic',
|
|
303
|
+
providerVersion: '3.75.4',
|
|
304
|
+
providerVersionConstraint: '3.75.4'
|
|
305
|
+
},
|
|
306
|
+
provider: config.provider,
|
|
307
|
+
dependsOn: config.dependsOn,
|
|
308
|
+
count: config.count,
|
|
309
|
+
lifecycle: config.lifecycle,
|
|
310
|
+
provisioners: config.provisioners,
|
|
311
|
+
connection: config.connection,
|
|
312
|
+
forEach: config.forEach
|
|
313
|
+
});
|
|
314
|
+
this._accountId = config.accountId;
|
|
315
|
+
this._browsers = config.browsers;
|
|
316
|
+
this._deviceOrientation = config.deviceOrientation;
|
|
317
|
+
this._deviceType = config.deviceType;
|
|
318
|
+
this._devices = config.devices;
|
|
319
|
+
this._enableScreenshotOnFailureAndScript = config.enableScreenshotOnFailureAndScript;
|
|
320
|
+
this._id = config.id;
|
|
321
|
+
this._locationsPublic = config.locationsPublic;
|
|
322
|
+
this._name = config.name;
|
|
323
|
+
this._period = config.period;
|
|
324
|
+
this._runtimeType = config.runtimeType;
|
|
325
|
+
this._runtimeTypeVersion = config.runtimeTypeVersion;
|
|
326
|
+
this._script = config.script;
|
|
327
|
+
this._scriptLanguage = config.scriptLanguage;
|
|
328
|
+
this._status = config.status;
|
|
329
|
+
this._type = config.type;
|
|
330
|
+
this._useUnsupportedLegacyRuntime = config.useUnsupportedLegacyRuntime;
|
|
331
|
+
this._locationPrivate.internalValue = config.locationPrivate;
|
|
332
|
+
this._tag.internalValue = config.tag;
|
|
333
|
+
}
|
|
334
|
+
// ==========
|
|
335
|
+
// ATTRIBUTES
|
|
336
|
+
// ==========
|
|
337
|
+
// account_id - computed: true, optional: true, required: false
|
|
338
|
+
_accountId;
|
|
339
|
+
get accountId() {
|
|
340
|
+
return this.getNumberAttribute('account_id');
|
|
341
|
+
}
|
|
342
|
+
set accountId(value) {
|
|
343
|
+
this._accountId = value;
|
|
344
|
+
}
|
|
345
|
+
resetAccountId() {
|
|
346
|
+
this._accountId = undefined;
|
|
347
|
+
}
|
|
348
|
+
// Temporarily expose input value. Use with caution.
|
|
349
|
+
get accountIdInput() {
|
|
350
|
+
return this._accountId;
|
|
351
|
+
}
|
|
352
|
+
// browsers - computed: false, optional: true, required: false
|
|
353
|
+
_browsers;
|
|
354
|
+
get browsers() {
|
|
355
|
+
return cdktf.Fn.tolist(this.getListAttribute('browsers'));
|
|
356
|
+
}
|
|
357
|
+
set browsers(value) {
|
|
358
|
+
this._browsers = value;
|
|
359
|
+
}
|
|
360
|
+
resetBrowsers() {
|
|
361
|
+
this._browsers = undefined;
|
|
362
|
+
}
|
|
363
|
+
// Temporarily expose input value. Use with caution.
|
|
364
|
+
get browsersInput() {
|
|
365
|
+
return this._browsers;
|
|
366
|
+
}
|
|
367
|
+
// device_orientation - computed: false, optional: true, required: false
|
|
368
|
+
_deviceOrientation;
|
|
369
|
+
get deviceOrientation() {
|
|
370
|
+
return this.getStringAttribute('device_orientation');
|
|
371
|
+
}
|
|
372
|
+
set deviceOrientation(value) {
|
|
373
|
+
this._deviceOrientation = value;
|
|
374
|
+
}
|
|
375
|
+
resetDeviceOrientation() {
|
|
376
|
+
this._deviceOrientation = undefined;
|
|
377
|
+
}
|
|
378
|
+
// Temporarily expose input value. Use with caution.
|
|
379
|
+
get deviceOrientationInput() {
|
|
380
|
+
return this._deviceOrientation;
|
|
381
|
+
}
|
|
382
|
+
// device_type - computed: false, optional: true, required: false
|
|
383
|
+
_deviceType;
|
|
384
|
+
get deviceType() {
|
|
385
|
+
return this.getStringAttribute('device_type');
|
|
386
|
+
}
|
|
387
|
+
set deviceType(value) {
|
|
388
|
+
this._deviceType = value;
|
|
389
|
+
}
|
|
390
|
+
resetDeviceType() {
|
|
391
|
+
this._deviceType = undefined;
|
|
392
|
+
}
|
|
393
|
+
// Temporarily expose input value. Use with caution.
|
|
394
|
+
get deviceTypeInput() {
|
|
395
|
+
return this._deviceType;
|
|
396
|
+
}
|
|
397
|
+
// devices - computed: false, optional: true, required: false
|
|
398
|
+
_devices;
|
|
399
|
+
get devices() {
|
|
400
|
+
return cdktf.Fn.tolist(this.getListAttribute('devices'));
|
|
401
|
+
}
|
|
402
|
+
set devices(value) {
|
|
403
|
+
this._devices = value;
|
|
404
|
+
}
|
|
405
|
+
resetDevices() {
|
|
406
|
+
this._devices = undefined;
|
|
407
|
+
}
|
|
408
|
+
// Temporarily expose input value. Use with caution.
|
|
409
|
+
get devicesInput() {
|
|
410
|
+
return this._devices;
|
|
411
|
+
}
|
|
412
|
+
// enable_screenshot_on_failure_and_script - computed: false, optional: true, required: false
|
|
413
|
+
_enableScreenshotOnFailureAndScript;
|
|
414
|
+
get enableScreenshotOnFailureAndScript() {
|
|
415
|
+
return this.getBooleanAttribute('enable_screenshot_on_failure_and_script');
|
|
416
|
+
}
|
|
417
|
+
set enableScreenshotOnFailureAndScript(value) {
|
|
418
|
+
this._enableScreenshotOnFailureAndScript = value;
|
|
419
|
+
}
|
|
420
|
+
resetEnableScreenshotOnFailureAndScript() {
|
|
421
|
+
this._enableScreenshotOnFailureAndScript = undefined;
|
|
422
|
+
}
|
|
423
|
+
// Temporarily expose input value. Use with caution.
|
|
424
|
+
get enableScreenshotOnFailureAndScriptInput() {
|
|
425
|
+
return this._enableScreenshotOnFailureAndScript;
|
|
426
|
+
}
|
|
427
|
+
// guid - computed: true, optional: false, required: false
|
|
428
|
+
get guid() {
|
|
429
|
+
return this.getStringAttribute('guid');
|
|
430
|
+
}
|
|
431
|
+
// id - computed: true, optional: true, required: false
|
|
432
|
+
_id;
|
|
433
|
+
get id() {
|
|
434
|
+
return this.getStringAttribute('id');
|
|
435
|
+
}
|
|
436
|
+
set id(value) {
|
|
437
|
+
this._id = value;
|
|
438
|
+
}
|
|
439
|
+
resetId() {
|
|
440
|
+
this._id = undefined;
|
|
441
|
+
}
|
|
442
|
+
// Temporarily expose input value. Use with caution.
|
|
443
|
+
get idInput() {
|
|
444
|
+
return this._id;
|
|
445
|
+
}
|
|
446
|
+
// locations_public - computed: false, optional: true, required: false
|
|
447
|
+
_locationsPublic;
|
|
448
|
+
get locationsPublic() {
|
|
449
|
+
return cdktf.Fn.tolist(this.getListAttribute('locations_public'));
|
|
450
|
+
}
|
|
451
|
+
set locationsPublic(value) {
|
|
452
|
+
this._locationsPublic = value;
|
|
453
|
+
}
|
|
454
|
+
resetLocationsPublic() {
|
|
455
|
+
this._locationsPublic = undefined;
|
|
456
|
+
}
|
|
457
|
+
// Temporarily expose input value. Use with caution.
|
|
458
|
+
get locationsPublicInput() {
|
|
459
|
+
return this._locationsPublic;
|
|
460
|
+
}
|
|
461
|
+
// monitor_id - computed: true, optional: false, required: false
|
|
462
|
+
get monitorId() {
|
|
463
|
+
return this.getStringAttribute('monitor_id');
|
|
464
|
+
}
|
|
465
|
+
// name - computed: false, optional: false, required: true
|
|
466
|
+
_name;
|
|
467
|
+
get name() {
|
|
468
|
+
return this.getStringAttribute('name');
|
|
469
|
+
}
|
|
470
|
+
set name(value) {
|
|
471
|
+
this._name = value;
|
|
472
|
+
}
|
|
473
|
+
// Temporarily expose input value. Use with caution.
|
|
474
|
+
get nameInput() {
|
|
475
|
+
return this._name;
|
|
476
|
+
}
|
|
477
|
+
// period - computed: false, optional: false, required: true
|
|
478
|
+
_period;
|
|
479
|
+
get period() {
|
|
480
|
+
return this.getStringAttribute('period');
|
|
481
|
+
}
|
|
482
|
+
set period(value) {
|
|
483
|
+
this._period = value;
|
|
484
|
+
}
|
|
485
|
+
// Temporarily expose input value. Use with caution.
|
|
486
|
+
get periodInput() {
|
|
487
|
+
return this._period;
|
|
488
|
+
}
|
|
489
|
+
// period_in_minutes - computed: true, optional: false, required: false
|
|
490
|
+
get periodInMinutes() {
|
|
491
|
+
return this.getNumberAttribute('period_in_minutes');
|
|
492
|
+
}
|
|
493
|
+
// runtime_type - computed: false, optional: true, required: false
|
|
494
|
+
_runtimeType;
|
|
495
|
+
get runtimeType() {
|
|
496
|
+
return this.getStringAttribute('runtime_type');
|
|
497
|
+
}
|
|
498
|
+
set runtimeType(value) {
|
|
499
|
+
this._runtimeType = value;
|
|
500
|
+
}
|
|
501
|
+
resetRuntimeType() {
|
|
502
|
+
this._runtimeType = undefined;
|
|
503
|
+
}
|
|
504
|
+
// Temporarily expose input value. Use with caution.
|
|
505
|
+
get runtimeTypeInput() {
|
|
506
|
+
return this._runtimeType;
|
|
507
|
+
}
|
|
508
|
+
// runtime_type_version - computed: false, optional: true, required: false
|
|
509
|
+
_runtimeTypeVersion;
|
|
510
|
+
get runtimeTypeVersion() {
|
|
511
|
+
return this.getStringAttribute('runtime_type_version');
|
|
512
|
+
}
|
|
513
|
+
set runtimeTypeVersion(value) {
|
|
514
|
+
this._runtimeTypeVersion = value;
|
|
515
|
+
}
|
|
516
|
+
resetRuntimeTypeVersion() {
|
|
517
|
+
this._runtimeTypeVersion = undefined;
|
|
518
|
+
}
|
|
519
|
+
// Temporarily expose input value. Use with caution.
|
|
520
|
+
get runtimeTypeVersionInput() {
|
|
521
|
+
return this._runtimeTypeVersion;
|
|
522
|
+
}
|
|
523
|
+
// script - computed: false, optional: true, required: false
|
|
524
|
+
_script;
|
|
525
|
+
get script() {
|
|
526
|
+
return this.getStringAttribute('script');
|
|
527
|
+
}
|
|
528
|
+
set script(value) {
|
|
529
|
+
this._script = value;
|
|
530
|
+
}
|
|
531
|
+
resetScript() {
|
|
532
|
+
this._script = undefined;
|
|
533
|
+
}
|
|
534
|
+
// Temporarily expose input value. Use with caution.
|
|
535
|
+
get scriptInput() {
|
|
536
|
+
return this._script;
|
|
537
|
+
}
|
|
538
|
+
// script_language - computed: false, optional: true, required: false
|
|
539
|
+
_scriptLanguage;
|
|
540
|
+
get scriptLanguage() {
|
|
541
|
+
return this.getStringAttribute('script_language');
|
|
542
|
+
}
|
|
543
|
+
set scriptLanguage(value) {
|
|
544
|
+
this._scriptLanguage = value;
|
|
545
|
+
}
|
|
546
|
+
resetScriptLanguage() {
|
|
547
|
+
this._scriptLanguage = undefined;
|
|
548
|
+
}
|
|
549
|
+
// Temporarily expose input value. Use with caution.
|
|
550
|
+
get scriptLanguageInput() {
|
|
551
|
+
return this._scriptLanguage;
|
|
552
|
+
}
|
|
553
|
+
// status - computed: false, optional: false, required: true
|
|
554
|
+
_status;
|
|
555
|
+
get status() {
|
|
556
|
+
return this.getStringAttribute('status');
|
|
557
|
+
}
|
|
558
|
+
set status(value) {
|
|
559
|
+
this._status = value;
|
|
560
|
+
}
|
|
561
|
+
// Temporarily expose input value. Use with caution.
|
|
562
|
+
get statusInput() {
|
|
563
|
+
return this._status;
|
|
564
|
+
}
|
|
565
|
+
// type - computed: false, optional: false, required: true
|
|
566
|
+
_type;
|
|
567
|
+
get type() {
|
|
568
|
+
return this.getStringAttribute('type');
|
|
569
|
+
}
|
|
570
|
+
set type(value) {
|
|
571
|
+
this._type = value;
|
|
572
|
+
}
|
|
573
|
+
// Temporarily expose input value. Use with caution.
|
|
574
|
+
get typeInput() {
|
|
575
|
+
return this._type;
|
|
576
|
+
}
|
|
577
|
+
// use_unsupported_legacy_runtime - computed: false, optional: true, required: false
|
|
578
|
+
_useUnsupportedLegacyRuntime;
|
|
579
|
+
get useUnsupportedLegacyRuntime() {
|
|
580
|
+
return this.getBooleanAttribute('use_unsupported_legacy_runtime');
|
|
581
|
+
}
|
|
582
|
+
set useUnsupportedLegacyRuntime(value) {
|
|
583
|
+
this._useUnsupportedLegacyRuntime = value;
|
|
584
|
+
}
|
|
585
|
+
resetUseUnsupportedLegacyRuntime() {
|
|
586
|
+
this._useUnsupportedLegacyRuntime = undefined;
|
|
587
|
+
}
|
|
588
|
+
// Temporarily expose input value. Use with caution.
|
|
589
|
+
get useUnsupportedLegacyRuntimeInput() {
|
|
590
|
+
return this._useUnsupportedLegacyRuntime;
|
|
591
|
+
}
|
|
592
|
+
// location_private - computed: false, optional: true, required: false
|
|
593
|
+
_locationPrivate = new SyntheticsScriptMonitorLocationPrivateList(this, "location_private", true);
|
|
594
|
+
get locationPrivate() {
|
|
595
|
+
return this._locationPrivate;
|
|
596
|
+
}
|
|
597
|
+
putLocationPrivate(value) {
|
|
598
|
+
this._locationPrivate.internalValue = value;
|
|
599
|
+
}
|
|
600
|
+
resetLocationPrivate() {
|
|
601
|
+
this._locationPrivate.internalValue = undefined;
|
|
602
|
+
}
|
|
603
|
+
// Temporarily expose input value. Use with caution.
|
|
604
|
+
get locationPrivateInput() {
|
|
605
|
+
return this._locationPrivate.internalValue;
|
|
606
|
+
}
|
|
607
|
+
// tag - computed: false, optional: true, required: false
|
|
608
|
+
_tag = new SyntheticsScriptMonitorTagList(this, "tag", true);
|
|
609
|
+
get tag() {
|
|
610
|
+
return this._tag;
|
|
611
|
+
}
|
|
612
|
+
putTag(value) {
|
|
613
|
+
this._tag.internalValue = value;
|
|
614
|
+
}
|
|
615
|
+
resetTag() {
|
|
616
|
+
this._tag.internalValue = undefined;
|
|
617
|
+
}
|
|
618
|
+
// Temporarily expose input value. Use with caution.
|
|
619
|
+
get tagInput() {
|
|
620
|
+
return this._tag.internalValue;
|
|
621
|
+
}
|
|
622
|
+
// =========
|
|
623
|
+
// SYNTHESIS
|
|
624
|
+
// =========
|
|
625
|
+
synthesizeAttributes() {
|
|
626
|
+
return {
|
|
627
|
+
account_id: cdktf.numberToTerraform(this._accountId),
|
|
628
|
+
browsers: cdktf.listMapper(cdktf.stringToTerraform, false)(this._browsers),
|
|
629
|
+
device_orientation: cdktf.stringToTerraform(this._deviceOrientation),
|
|
630
|
+
device_type: cdktf.stringToTerraform(this._deviceType),
|
|
631
|
+
devices: cdktf.listMapper(cdktf.stringToTerraform, false)(this._devices),
|
|
632
|
+
enable_screenshot_on_failure_and_script: cdktf.booleanToTerraform(this._enableScreenshotOnFailureAndScript),
|
|
633
|
+
id: cdktf.stringToTerraform(this._id),
|
|
634
|
+
locations_public: cdktf.listMapper(cdktf.stringToTerraform, false)(this._locationsPublic),
|
|
635
|
+
name: cdktf.stringToTerraform(this._name),
|
|
636
|
+
period: cdktf.stringToTerraform(this._period),
|
|
637
|
+
runtime_type: cdktf.stringToTerraform(this._runtimeType),
|
|
638
|
+
runtime_type_version: cdktf.stringToTerraform(this._runtimeTypeVersion),
|
|
639
|
+
script: cdktf.stringToTerraform(this._script),
|
|
640
|
+
script_language: cdktf.stringToTerraform(this._scriptLanguage),
|
|
641
|
+
status: cdktf.stringToTerraform(this._status),
|
|
642
|
+
type: cdktf.stringToTerraform(this._type),
|
|
643
|
+
use_unsupported_legacy_runtime: cdktf.booleanToTerraform(this._useUnsupportedLegacyRuntime),
|
|
644
|
+
location_private: cdktf.listMapper(syntheticsScriptMonitorLocationPrivateToTerraform, true)(this._locationPrivate.internalValue),
|
|
645
|
+
tag: cdktf.listMapper(syntheticsScriptMonitorTagToTerraform, true)(this._tag.internalValue),
|
|
646
|
+
};
|
|
647
|
+
}
|
|
648
|
+
synthesizeHclAttributes() {
|
|
649
|
+
const attrs = {
|
|
650
|
+
account_id: {
|
|
651
|
+
value: cdktf.numberToHclTerraform(this._accountId),
|
|
652
|
+
isBlock: false,
|
|
653
|
+
type: "simple",
|
|
654
|
+
storageClassType: "number",
|
|
655
|
+
},
|
|
656
|
+
browsers: {
|
|
657
|
+
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._browsers),
|
|
658
|
+
isBlock: false,
|
|
659
|
+
type: "set",
|
|
660
|
+
storageClassType: "stringList",
|
|
661
|
+
},
|
|
662
|
+
device_orientation: {
|
|
663
|
+
value: cdktf.stringToHclTerraform(this._deviceOrientation),
|
|
664
|
+
isBlock: false,
|
|
665
|
+
type: "simple",
|
|
666
|
+
storageClassType: "string",
|
|
667
|
+
},
|
|
668
|
+
device_type: {
|
|
669
|
+
value: cdktf.stringToHclTerraform(this._deviceType),
|
|
670
|
+
isBlock: false,
|
|
671
|
+
type: "simple",
|
|
672
|
+
storageClassType: "string",
|
|
673
|
+
},
|
|
674
|
+
devices: {
|
|
675
|
+
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._devices),
|
|
676
|
+
isBlock: false,
|
|
677
|
+
type: "set",
|
|
678
|
+
storageClassType: "stringList",
|
|
679
|
+
},
|
|
680
|
+
enable_screenshot_on_failure_and_script: {
|
|
681
|
+
value: cdktf.booleanToHclTerraform(this._enableScreenshotOnFailureAndScript),
|
|
682
|
+
isBlock: false,
|
|
683
|
+
type: "simple",
|
|
684
|
+
storageClassType: "boolean",
|
|
685
|
+
},
|
|
686
|
+
id: {
|
|
687
|
+
value: cdktf.stringToHclTerraform(this._id),
|
|
688
|
+
isBlock: false,
|
|
689
|
+
type: "simple",
|
|
690
|
+
storageClassType: "string",
|
|
691
|
+
},
|
|
692
|
+
locations_public: {
|
|
693
|
+
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._locationsPublic),
|
|
694
|
+
isBlock: false,
|
|
695
|
+
type: "set",
|
|
696
|
+
storageClassType: "stringList",
|
|
697
|
+
},
|
|
698
|
+
name: {
|
|
699
|
+
value: cdktf.stringToHclTerraform(this._name),
|
|
700
|
+
isBlock: false,
|
|
701
|
+
type: "simple",
|
|
702
|
+
storageClassType: "string",
|
|
703
|
+
},
|
|
704
|
+
period: {
|
|
705
|
+
value: cdktf.stringToHclTerraform(this._period),
|
|
706
|
+
isBlock: false,
|
|
707
|
+
type: "simple",
|
|
708
|
+
storageClassType: "string",
|
|
709
|
+
},
|
|
710
|
+
runtime_type: {
|
|
711
|
+
value: cdktf.stringToHclTerraform(this._runtimeType),
|
|
712
|
+
isBlock: false,
|
|
713
|
+
type: "simple",
|
|
714
|
+
storageClassType: "string",
|
|
715
|
+
},
|
|
716
|
+
runtime_type_version: {
|
|
717
|
+
value: cdktf.stringToHclTerraform(this._runtimeTypeVersion),
|
|
718
|
+
isBlock: false,
|
|
719
|
+
type: "simple",
|
|
720
|
+
storageClassType: "string",
|
|
721
|
+
},
|
|
722
|
+
script: {
|
|
723
|
+
value: cdktf.stringToHclTerraform(this._script),
|
|
724
|
+
isBlock: false,
|
|
725
|
+
type: "simple",
|
|
726
|
+
storageClassType: "string",
|
|
727
|
+
},
|
|
728
|
+
script_language: {
|
|
729
|
+
value: cdktf.stringToHclTerraform(this._scriptLanguage),
|
|
730
|
+
isBlock: false,
|
|
731
|
+
type: "simple",
|
|
732
|
+
storageClassType: "string",
|
|
733
|
+
},
|
|
734
|
+
status: {
|
|
735
|
+
value: cdktf.stringToHclTerraform(this._status),
|
|
736
|
+
isBlock: false,
|
|
737
|
+
type: "simple",
|
|
738
|
+
storageClassType: "string",
|
|
739
|
+
},
|
|
740
|
+
type: {
|
|
741
|
+
value: cdktf.stringToHclTerraform(this._type),
|
|
742
|
+
isBlock: false,
|
|
743
|
+
type: "simple",
|
|
744
|
+
storageClassType: "string",
|
|
745
|
+
},
|
|
746
|
+
use_unsupported_legacy_runtime: {
|
|
747
|
+
value: cdktf.booleanToHclTerraform(this._useUnsupportedLegacyRuntime),
|
|
748
|
+
isBlock: false,
|
|
749
|
+
type: "simple",
|
|
750
|
+
storageClassType: "boolean",
|
|
751
|
+
},
|
|
752
|
+
location_private: {
|
|
753
|
+
value: cdktf.listMapperHcl(syntheticsScriptMonitorLocationPrivateToHclTerraform, true)(this._locationPrivate.internalValue),
|
|
754
|
+
isBlock: true,
|
|
755
|
+
type: "set",
|
|
756
|
+
storageClassType: "SyntheticsScriptMonitorLocationPrivateList",
|
|
757
|
+
},
|
|
758
|
+
tag: {
|
|
759
|
+
value: cdktf.listMapperHcl(syntheticsScriptMonitorTagToHclTerraform, true)(this._tag.internalValue),
|
|
760
|
+
isBlock: true,
|
|
761
|
+
type: "set",
|
|
762
|
+
storageClassType: "SyntheticsScriptMonitorTagList",
|
|
763
|
+
},
|
|
764
|
+
};
|
|
765
|
+
// remove undefined attributes
|
|
766
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
767
|
+
}
|
|
768
|
+
}
|