@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,966 @@
|
|
|
1
|
+
// https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/application_settings
|
|
2
|
+
// generated from terraform resource schema
|
|
3
|
+
import * as cdktf from 'cdktf';
|
|
4
|
+
export function applicationSettingsErrorCollectorToTerraform(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
|
+
expected_error_classes: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.expectedErrorClasses),
|
|
13
|
+
expected_error_codes: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.expectedErrorCodes),
|
|
14
|
+
ignored_error_classes: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.ignoredErrorClasses),
|
|
15
|
+
ignored_error_codes: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.ignoredErrorCodes),
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export function applicationSettingsErrorCollectorToHclTerraform(struct) {
|
|
19
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
20
|
+
return struct;
|
|
21
|
+
}
|
|
22
|
+
if (cdktf.isComplexElement(struct)) {
|
|
23
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
24
|
+
}
|
|
25
|
+
const attrs = {
|
|
26
|
+
expected_error_classes: {
|
|
27
|
+
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.expectedErrorClasses),
|
|
28
|
+
isBlock: false,
|
|
29
|
+
type: "list",
|
|
30
|
+
storageClassType: "stringList",
|
|
31
|
+
},
|
|
32
|
+
expected_error_codes: {
|
|
33
|
+
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.expectedErrorCodes),
|
|
34
|
+
isBlock: false,
|
|
35
|
+
type: "list",
|
|
36
|
+
storageClassType: "stringList",
|
|
37
|
+
},
|
|
38
|
+
ignored_error_classes: {
|
|
39
|
+
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.ignoredErrorClasses),
|
|
40
|
+
isBlock: false,
|
|
41
|
+
type: "list",
|
|
42
|
+
storageClassType: "stringList",
|
|
43
|
+
},
|
|
44
|
+
ignored_error_codes: {
|
|
45
|
+
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.ignoredErrorCodes),
|
|
46
|
+
isBlock: false,
|
|
47
|
+
type: "list",
|
|
48
|
+
storageClassType: "stringList",
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
// remove undefined attributes
|
|
52
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
53
|
+
}
|
|
54
|
+
export class ApplicationSettingsErrorCollectorOutputReference extends cdktf.ComplexObject {
|
|
55
|
+
isEmptyObject = false;
|
|
56
|
+
resolvableValue;
|
|
57
|
+
/**
|
|
58
|
+
* @param terraformResource The parent resource
|
|
59
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
60
|
+
* @param complexObjectIndex the index of this item in the list
|
|
61
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
62
|
+
*/
|
|
63
|
+
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
|
|
64
|
+
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
|
|
65
|
+
}
|
|
66
|
+
get internalValue() {
|
|
67
|
+
if (this.resolvableValue) {
|
|
68
|
+
return this.resolvableValue;
|
|
69
|
+
}
|
|
70
|
+
let hasAnyValues = this.isEmptyObject;
|
|
71
|
+
const internalValueResult = {};
|
|
72
|
+
if (this._expectedErrorClasses !== undefined) {
|
|
73
|
+
hasAnyValues = true;
|
|
74
|
+
internalValueResult.expectedErrorClasses = this._expectedErrorClasses;
|
|
75
|
+
}
|
|
76
|
+
if (this._expectedErrorCodes !== undefined) {
|
|
77
|
+
hasAnyValues = true;
|
|
78
|
+
internalValueResult.expectedErrorCodes = this._expectedErrorCodes;
|
|
79
|
+
}
|
|
80
|
+
if (this._ignoredErrorClasses !== undefined) {
|
|
81
|
+
hasAnyValues = true;
|
|
82
|
+
internalValueResult.ignoredErrorClasses = this._ignoredErrorClasses;
|
|
83
|
+
}
|
|
84
|
+
if (this._ignoredErrorCodes !== undefined) {
|
|
85
|
+
hasAnyValues = true;
|
|
86
|
+
internalValueResult.ignoredErrorCodes = this._ignoredErrorCodes;
|
|
87
|
+
}
|
|
88
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
89
|
+
}
|
|
90
|
+
set internalValue(value) {
|
|
91
|
+
if (value === undefined) {
|
|
92
|
+
this.isEmptyObject = false;
|
|
93
|
+
this.resolvableValue = undefined;
|
|
94
|
+
this._expectedErrorClasses = undefined;
|
|
95
|
+
this._expectedErrorCodes = undefined;
|
|
96
|
+
this._ignoredErrorClasses = undefined;
|
|
97
|
+
this._ignoredErrorCodes = undefined;
|
|
98
|
+
}
|
|
99
|
+
else if (cdktf.Tokenization.isResolvable(value)) {
|
|
100
|
+
this.isEmptyObject = false;
|
|
101
|
+
this.resolvableValue = value;
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
105
|
+
this.resolvableValue = undefined;
|
|
106
|
+
this._expectedErrorClasses = value.expectedErrorClasses;
|
|
107
|
+
this._expectedErrorCodes = value.expectedErrorCodes;
|
|
108
|
+
this._ignoredErrorClasses = value.ignoredErrorClasses;
|
|
109
|
+
this._ignoredErrorCodes = value.ignoredErrorCodes;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
// expected_error_classes - computed: false, optional: true, required: false
|
|
113
|
+
_expectedErrorClasses;
|
|
114
|
+
get expectedErrorClasses() {
|
|
115
|
+
return this.getListAttribute('expected_error_classes');
|
|
116
|
+
}
|
|
117
|
+
set expectedErrorClasses(value) {
|
|
118
|
+
this._expectedErrorClasses = value;
|
|
119
|
+
}
|
|
120
|
+
resetExpectedErrorClasses() {
|
|
121
|
+
this._expectedErrorClasses = undefined;
|
|
122
|
+
}
|
|
123
|
+
// Temporarily expose input value. Use with caution.
|
|
124
|
+
get expectedErrorClassesInput() {
|
|
125
|
+
return this._expectedErrorClasses;
|
|
126
|
+
}
|
|
127
|
+
// expected_error_codes - computed: false, optional: true, required: false
|
|
128
|
+
_expectedErrorCodes;
|
|
129
|
+
get expectedErrorCodes() {
|
|
130
|
+
return this.getListAttribute('expected_error_codes');
|
|
131
|
+
}
|
|
132
|
+
set expectedErrorCodes(value) {
|
|
133
|
+
this._expectedErrorCodes = value;
|
|
134
|
+
}
|
|
135
|
+
resetExpectedErrorCodes() {
|
|
136
|
+
this._expectedErrorCodes = undefined;
|
|
137
|
+
}
|
|
138
|
+
// Temporarily expose input value. Use with caution.
|
|
139
|
+
get expectedErrorCodesInput() {
|
|
140
|
+
return this._expectedErrorCodes;
|
|
141
|
+
}
|
|
142
|
+
// ignored_error_classes - computed: false, optional: true, required: false
|
|
143
|
+
_ignoredErrorClasses;
|
|
144
|
+
get ignoredErrorClasses() {
|
|
145
|
+
return this.getListAttribute('ignored_error_classes');
|
|
146
|
+
}
|
|
147
|
+
set ignoredErrorClasses(value) {
|
|
148
|
+
this._ignoredErrorClasses = value;
|
|
149
|
+
}
|
|
150
|
+
resetIgnoredErrorClasses() {
|
|
151
|
+
this._ignoredErrorClasses = undefined;
|
|
152
|
+
}
|
|
153
|
+
// Temporarily expose input value. Use with caution.
|
|
154
|
+
get ignoredErrorClassesInput() {
|
|
155
|
+
return this._ignoredErrorClasses;
|
|
156
|
+
}
|
|
157
|
+
// ignored_error_codes - computed: false, optional: true, required: false
|
|
158
|
+
_ignoredErrorCodes;
|
|
159
|
+
get ignoredErrorCodes() {
|
|
160
|
+
return this.getListAttribute('ignored_error_codes');
|
|
161
|
+
}
|
|
162
|
+
set ignoredErrorCodes(value) {
|
|
163
|
+
this._ignoredErrorCodes = value;
|
|
164
|
+
}
|
|
165
|
+
resetIgnoredErrorCodes() {
|
|
166
|
+
this._ignoredErrorCodes = undefined;
|
|
167
|
+
}
|
|
168
|
+
// Temporarily expose input value. Use with caution.
|
|
169
|
+
get ignoredErrorCodesInput() {
|
|
170
|
+
return this._ignoredErrorCodes;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
export class ApplicationSettingsErrorCollectorList extends cdktf.ComplexList {
|
|
174
|
+
terraformResource;
|
|
175
|
+
terraformAttribute;
|
|
176
|
+
wrapsSet;
|
|
177
|
+
internalValue;
|
|
178
|
+
/**
|
|
179
|
+
* @param terraformResource The parent resource
|
|
180
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
181
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
182
|
+
*/
|
|
183
|
+
constructor(terraformResource, terraformAttribute, wrapsSet) {
|
|
184
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
185
|
+
this.terraformResource = terraformResource;
|
|
186
|
+
this.terraformAttribute = terraformAttribute;
|
|
187
|
+
this.wrapsSet = wrapsSet;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* @param index the index of the item to return
|
|
191
|
+
*/
|
|
192
|
+
get(index) {
|
|
193
|
+
return new ApplicationSettingsErrorCollectorOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
export function applicationSettingsTransactionTracerExplainQueryPlansToTerraform(struct) {
|
|
197
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
198
|
+
return struct;
|
|
199
|
+
}
|
|
200
|
+
if (cdktf.isComplexElement(struct)) {
|
|
201
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
202
|
+
}
|
|
203
|
+
return {
|
|
204
|
+
query_plan_threshold_type: cdktf.stringToTerraform(struct.queryPlanThresholdType),
|
|
205
|
+
query_plan_threshold_value: cdktf.numberToTerraform(struct.queryPlanThresholdValue),
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
export function applicationSettingsTransactionTracerExplainQueryPlansToHclTerraform(struct) {
|
|
209
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
210
|
+
return struct;
|
|
211
|
+
}
|
|
212
|
+
if (cdktf.isComplexElement(struct)) {
|
|
213
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
214
|
+
}
|
|
215
|
+
const attrs = {
|
|
216
|
+
query_plan_threshold_type: {
|
|
217
|
+
value: cdktf.stringToHclTerraform(struct.queryPlanThresholdType),
|
|
218
|
+
isBlock: false,
|
|
219
|
+
type: "simple",
|
|
220
|
+
storageClassType: "string",
|
|
221
|
+
},
|
|
222
|
+
query_plan_threshold_value: {
|
|
223
|
+
value: cdktf.numberToHclTerraform(struct.queryPlanThresholdValue),
|
|
224
|
+
isBlock: false,
|
|
225
|
+
type: "simple",
|
|
226
|
+
storageClassType: "number",
|
|
227
|
+
},
|
|
228
|
+
};
|
|
229
|
+
// remove undefined attributes
|
|
230
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
231
|
+
}
|
|
232
|
+
export class ApplicationSettingsTransactionTracerExplainQueryPlansOutputReference extends cdktf.ComplexObject {
|
|
233
|
+
isEmptyObject = false;
|
|
234
|
+
resolvableValue;
|
|
235
|
+
/**
|
|
236
|
+
* @param terraformResource The parent resource
|
|
237
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
238
|
+
* @param complexObjectIndex the index of this item in the list
|
|
239
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
240
|
+
*/
|
|
241
|
+
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
|
|
242
|
+
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
|
|
243
|
+
}
|
|
244
|
+
get internalValue() {
|
|
245
|
+
if (this.resolvableValue) {
|
|
246
|
+
return this.resolvableValue;
|
|
247
|
+
}
|
|
248
|
+
let hasAnyValues = this.isEmptyObject;
|
|
249
|
+
const internalValueResult = {};
|
|
250
|
+
if (this._queryPlanThresholdType !== undefined) {
|
|
251
|
+
hasAnyValues = true;
|
|
252
|
+
internalValueResult.queryPlanThresholdType = this._queryPlanThresholdType;
|
|
253
|
+
}
|
|
254
|
+
if (this._queryPlanThresholdValue !== undefined) {
|
|
255
|
+
hasAnyValues = true;
|
|
256
|
+
internalValueResult.queryPlanThresholdValue = this._queryPlanThresholdValue;
|
|
257
|
+
}
|
|
258
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
259
|
+
}
|
|
260
|
+
set internalValue(value) {
|
|
261
|
+
if (value === undefined) {
|
|
262
|
+
this.isEmptyObject = false;
|
|
263
|
+
this.resolvableValue = undefined;
|
|
264
|
+
this._queryPlanThresholdType = undefined;
|
|
265
|
+
this._queryPlanThresholdValue = undefined;
|
|
266
|
+
}
|
|
267
|
+
else if (cdktf.Tokenization.isResolvable(value)) {
|
|
268
|
+
this.isEmptyObject = false;
|
|
269
|
+
this.resolvableValue = value;
|
|
270
|
+
}
|
|
271
|
+
else {
|
|
272
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
273
|
+
this.resolvableValue = undefined;
|
|
274
|
+
this._queryPlanThresholdType = value.queryPlanThresholdType;
|
|
275
|
+
this._queryPlanThresholdValue = value.queryPlanThresholdValue;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
// query_plan_threshold_type - computed: false, optional: true, required: false
|
|
279
|
+
_queryPlanThresholdType;
|
|
280
|
+
get queryPlanThresholdType() {
|
|
281
|
+
return this.getStringAttribute('query_plan_threshold_type');
|
|
282
|
+
}
|
|
283
|
+
set queryPlanThresholdType(value) {
|
|
284
|
+
this._queryPlanThresholdType = value;
|
|
285
|
+
}
|
|
286
|
+
resetQueryPlanThresholdType() {
|
|
287
|
+
this._queryPlanThresholdType = undefined;
|
|
288
|
+
}
|
|
289
|
+
// Temporarily expose input value. Use with caution.
|
|
290
|
+
get queryPlanThresholdTypeInput() {
|
|
291
|
+
return this._queryPlanThresholdType;
|
|
292
|
+
}
|
|
293
|
+
// query_plan_threshold_value - computed: false, optional: true, required: false
|
|
294
|
+
_queryPlanThresholdValue;
|
|
295
|
+
get queryPlanThresholdValue() {
|
|
296
|
+
return this.getNumberAttribute('query_plan_threshold_value');
|
|
297
|
+
}
|
|
298
|
+
set queryPlanThresholdValue(value) {
|
|
299
|
+
this._queryPlanThresholdValue = value;
|
|
300
|
+
}
|
|
301
|
+
resetQueryPlanThresholdValue() {
|
|
302
|
+
this._queryPlanThresholdValue = undefined;
|
|
303
|
+
}
|
|
304
|
+
// Temporarily expose input value. Use with caution.
|
|
305
|
+
get queryPlanThresholdValueInput() {
|
|
306
|
+
return this._queryPlanThresholdValue;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
export class ApplicationSettingsTransactionTracerExplainQueryPlansList extends cdktf.ComplexList {
|
|
310
|
+
terraformResource;
|
|
311
|
+
terraformAttribute;
|
|
312
|
+
wrapsSet;
|
|
313
|
+
internalValue;
|
|
314
|
+
/**
|
|
315
|
+
* @param terraformResource The parent resource
|
|
316
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
317
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
318
|
+
*/
|
|
319
|
+
constructor(terraformResource, terraformAttribute, wrapsSet) {
|
|
320
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
321
|
+
this.terraformResource = terraformResource;
|
|
322
|
+
this.terraformAttribute = terraformAttribute;
|
|
323
|
+
this.wrapsSet = wrapsSet;
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* @param index the index of the item to return
|
|
327
|
+
*/
|
|
328
|
+
get(index) {
|
|
329
|
+
return new ApplicationSettingsTransactionTracerExplainQueryPlansOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
export function applicationSettingsTransactionTracerSqlToTerraform(struct) {
|
|
333
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
334
|
+
return struct;
|
|
335
|
+
}
|
|
336
|
+
if (cdktf.isComplexElement(struct)) {
|
|
337
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
338
|
+
}
|
|
339
|
+
return {
|
|
340
|
+
record_sql: cdktf.stringToTerraform(struct.recordSql),
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
export function applicationSettingsTransactionTracerSqlToHclTerraform(struct) {
|
|
344
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
345
|
+
return struct;
|
|
346
|
+
}
|
|
347
|
+
if (cdktf.isComplexElement(struct)) {
|
|
348
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
349
|
+
}
|
|
350
|
+
const attrs = {
|
|
351
|
+
record_sql: {
|
|
352
|
+
value: cdktf.stringToHclTerraform(struct.recordSql),
|
|
353
|
+
isBlock: false,
|
|
354
|
+
type: "simple",
|
|
355
|
+
storageClassType: "string",
|
|
356
|
+
},
|
|
357
|
+
};
|
|
358
|
+
// remove undefined attributes
|
|
359
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
360
|
+
}
|
|
361
|
+
export class ApplicationSettingsTransactionTracerSqlOutputReference extends cdktf.ComplexObject {
|
|
362
|
+
isEmptyObject = false;
|
|
363
|
+
/**
|
|
364
|
+
* @param terraformResource The parent resource
|
|
365
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
366
|
+
*/
|
|
367
|
+
constructor(terraformResource, terraformAttribute) {
|
|
368
|
+
super(terraformResource, terraformAttribute, false, 0);
|
|
369
|
+
}
|
|
370
|
+
get internalValue() {
|
|
371
|
+
let hasAnyValues = this.isEmptyObject;
|
|
372
|
+
const internalValueResult = {};
|
|
373
|
+
if (this._recordSql !== undefined) {
|
|
374
|
+
hasAnyValues = true;
|
|
375
|
+
internalValueResult.recordSql = this._recordSql;
|
|
376
|
+
}
|
|
377
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
378
|
+
}
|
|
379
|
+
set internalValue(value) {
|
|
380
|
+
if (value === undefined) {
|
|
381
|
+
this.isEmptyObject = false;
|
|
382
|
+
this._recordSql = undefined;
|
|
383
|
+
}
|
|
384
|
+
else {
|
|
385
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
386
|
+
this._recordSql = value.recordSql;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
// record_sql - computed: false, optional: false, required: true
|
|
390
|
+
_recordSql;
|
|
391
|
+
get recordSql() {
|
|
392
|
+
return this.getStringAttribute('record_sql');
|
|
393
|
+
}
|
|
394
|
+
set recordSql(value) {
|
|
395
|
+
this._recordSql = value;
|
|
396
|
+
}
|
|
397
|
+
// Temporarily expose input value. Use with caution.
|
|
398
|
+
get recordSqlInput() {
|
|
399
|
+
return this._recordSql;
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
export function applicationSettingsTransactionTracerToTerraform(struct) {
|
|
403
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
404
|
+
return struct;
|
|
405
|
+
}
|
|
406
|
+
if (cdktf.isComplexElement(struct)) {
|
|
407
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
408
|
+
}
|
|
409
|
+
return {
|
|
410
|
+
stack_trace_threshold_value: cdktf.numberToTerraform(struct.stackTraceThresholdValue),
|
|
411
|
+
transaction_threshold_type: cdktf.stringToTerraform(struct.transactionThresholdType),
|
|
412
|
+
transaction_threshold_value: cdktf.numberToTerraform(struct.transactionThresholdValue),
|
|
413
|
+
explain_query_plans: cdktf.listMapper(applicationSettingsTransactionTracerExplainQueryPlansToTerraform, true)(struct.explainQueryPlans),
|
|
414
|
+
sql: applicationSettingsTransactionTracerSqlToTerraform(struct.sql),
|
|
415
|
+
};
|
|
416
|
+
}
|
|
417
|
+
export function applicationSettingsTransactionTracerToHclTerraform(struct) {
|
|
418
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
419
|
+
return struct;
|
|
420
|
+
}
|
|
421
|
+
if (cdktf.isComplexElement(struct)) {
|
|
422
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
423
|
+
}
|
|
424
|
+
const attrs = {
|
|
425
|
+
stack_trace_threshold_value: {
|
|
426
|
+
value: cdktf.numberToHclTerraform(struct.stackTraceThresholdValue),
|
|
427
|
+
isBlock: false,
|
|
428
|
+
type: "simple",
|
|
429
|
+
storageClassType: "number",
|
|
430
|
+
},
|
|
431
|
+
transaction_threshold_type: {
|
|
432
|
+
value: cdktf.stringToHclTerraform(struct.transactionThresholdType),
|
|
433
|
+
isBlock: false,
|
|
434
|
+
type: "simple",
|
|
435
|
+
storageClassType: "string",
|
|
436
|
+
},
|
|
437
|
+
transaction_threshold_value: {
|
|
438
|
+
value: cdktf.numberToHclTerraform(struct.transactionThresholdValue),
|
|
439
|
+
isBlock: false,
|
|
440
|
+
type: "simple",
|
|
441
|
+
storageClassType: "number",
|
|
442
|
+
},
|
|
443
|
+
explain_query_plans: {
|
|
444
|
+
value: cdktf.listMapperHcl(applicationSettingsTransactionTracerExplainQueryPlansToHclTerraform, true)(struct.explainQueryPlans),
|
|
445
|
+
isBlock: true,
|
|
446
|
+
type: "list",
|
|
447
|
+
storageClassType: "ApplicationSettingsTransactionTracerExplainQueryPlansList",
|
|
448
|
+
},
|
|
449
|
+
sql: {
|
|
450
|
+
value: applicationSettingsTransactionTracerSqlToHclTerraform(struct.sql),
|
|
451
|
+
isBlock: true,
|
|
452
|
+
type: "list",
|
|
453
|
+
storageClassType: "ApplicationSettingsTransactionTracerSqlList",
|
|
454
|
+
},
|
|
455
|
+
};
|
|
456
|
+
// remove undefined attributes
|
|
457
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
458
|
+
}
|
|
459
|
+
export class ApplicationSettingsTransactionTracerOutputReference extends cdktf.ComplexObject {
|
|
460
|
+
isEmptyObject = false;
|
|
461
|
+
resolvableValue;
|
|
462
|
+
/**
|
|
463
|
+
* @param terraformResource The parent resource
|
|
464
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
465
|
+
* @param complexObjectIndex the index of this item in the list
|
|
466
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
467
|
+
*/
|
|
468
|
+
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
|
|
469
|
+
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
|
|
470
|
+
}
|
|
471
|
+
get internalValue() {
|
|
472
|
+
if (this.resolvableValue) {
|
|
473
|
+
return this.resolvableValue;
|
|
474
|
+
}
|
|
475
|
+
let hasAnyValues = this.isEmptyObject;
|
|
476
|
+
const internalValueResult = {};
|
|
477
|
+
if (this._stackTraceThresholdValue !== undefined) {
|
|
478
|
+
hasAnyValues = true;
|
|
479
|
+
internalValueResult.stackTraceThresholdValue = this._stackTraceThresholdValue;
|
|
480
|
+
}
|
|
481
|
+
if (this._transactionThresholdType !== undefined) {
|
|
482
|
+
hasAnyValues = true;
|
|
483
|
+
internalValueResult.transactionThresholdType = this._transactionThresholdType;
|
|
484
|
+
}
|
|
485
|
+
if (this._transactionThresholdValue !== undefined) {
|
|
486
|
+
hasAnyValues = true;
|
|
487
|
+
internalValueResult.transactionThresholdValue = this._transactionThresholdValue;
|
|
488
|
+
}
|
|
489
|
+
if (this._explainQueryPlans?.internalValue !== undefined) {
|
|
490
|
+
hasAnyValues = true;
|
|
491
|
+
internalValueResult.explainQueryPlans = this._explainQueryPlans?.internalValue;
|
|
492
|
+
}
|
|
493
|
+
if (this._sql?.internalValue !== undefined) {
|
|
494
|
+
hasAnyValues = true;
|
|
495
|
+
internalValueResult.sql = this._sql?.internalValue;
|
|
496
|
+
}
|
|
497
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
498
|
+
}
|
|
499
|
+
set internalValue(value) {
|
|
500
|
+
if (value === undefined) {
|
|
501
|
+
this.isEmptyObject = false;
|
|
502
|
+
this.resolvableValue = undefined;
|
|
503
|
+
this._stackTraceThresholdValue = undefined;
|
|
504
|
+
this._transactionThresholdType = undefined;
|
|
505
|
+
this._transactionThresholdValue = undefined;
|
|
506
|
+
this._explainQueryPlans.internalValue = undefined;
|
|
507
|
+
this._sql.internalValue = undefined;
|
|
508
|
+
}
|
|
509
|
+
else if (cdktf.Tokenization.isResolvable(value)) {
|
|
510
|
+
this.isEmptyObject = false;
|
|
511
|
+
this.resolvableValue = value;
|
|
512
|
+
}
|
|
513
|
+
else {
|
|
514
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
515
|
+
this.resolvableValue = undefined;
|
|
516
|
+
this._stackTraceThresholdValue = value.stackTraceThresholdValue;
|
|
517
|
+
this._transactionThresholdType = value.transactionThresholdType;
|
|
518
|
+
this._transactionThresholdValue = value.transactionThresholdValue;
|
|
519
|
+
this._explainQueryPlans.internalValue = value.explainQueryPlans;
|
|
520
|
+
this._sql.internalValue = value.sql;
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
// stack_trace_threshold_value - computed: false, optional: true, required: false
|
|
524
|
+
_stackTraceThresholdValue;
|
|
525
|
+
get stackTraceThresholdValue() {
|
|
526
|
+
return this.getNumberAttribute('stack_trace_threshold_value');
|
|
527
|
+
}
|
|
528
|
+
set stackTraceThresholdValue(value) {
|
|
529
|
+
this._stackTraceThresholdValue = value;
|
|
530
|
+
}
|
|
531
|
+
resetStackTraceThresholdValue() {
|
|
532
|
+
this._stackTraceThresholdValue = undefined;
|
|
533
|
+
}
|
|
534
|
+
// Temporarily expose input value. Use with caution.
|
|
535
|
+
get stackTraceThresholdValueInput() {
|
|
536
|
+
return this._stackTraceThresholdValue;
|
|
537
|
+
}
|
|
538
|
+
// transaction_threshold_type - computed: false, optional: true, required: false
|
|
539
|
+
_transactionThresholdType;
|
|
540
|
+
get transactionThresholdType() {
|
|
541
|
+
return this.getStringAttribute('transaction_threshold_type');
|
|
542
|
+
}
|
|
543
|
+
set transactionThresholdType(value) {
|
|
544
|
+
this._transactionThresholdType = value;
|
|
545
|
+
}
|
|
546
|
+
resetTransactionThresholdType() {
|
|
547
|
+
this._transactionThresholdType = undefined;
|
|
548
|
+
}
|
|
549
|
+
// Temporarily expose input value. Use with caution.
|
|
550
|
+
get transactionThresholdTypeInput() {
|
|
551
|
+
return this._transactionThresholdType;
|
|
552
|
+
}
|
|
553
|
+
// transaction_threshold_value - computed: false, optional: true, required: false
|
|
554
|
+
_transactionThresholdValue;
|
|
555
|
+
get transactionThresholdValue() {
|
|
556
|
+
return this.getNumberAttribute('transaction_threshold_value');
|
|
557
|
+
}
|
|
558
|
+
set transactionThresholdValue(value) {
|
|
559
|
+
this._transactionThresholdValue = value;
|
|
560
|
+
}
|
|
561
|
+
resetTransactionThresholdValue() {
|
|
562
|
+
this._transactionThresholdValue = undefined;
|
|
563
|
+
}
|
|
564
|
+
// Temporarily expose input value. Use with caution.
|
|
565
|
+
get transactionThresholdValueInput() {
|
|
566
|
+
return this._transactionThresholdValue;
|
|
567
|
+
}
|
|
568
|
+
// explain_query_plans - computed: false, optional: true, required: false
|
|
569
|
+
_explainQueryPlans = new ApplicationSettingsTransactionTracerExplainQueryPlansList(this, "explain_query_plans", false);
|
|
570
|
+
get explainQueryPlans() {
|
|
571
|
+
return this._explainQueryPlans;
|
|
572
|
+
}
|
|
573
|
+
putExplainQueryPlans(value) {
|
|
574
|
+
this._explainQueryPlans.internalValue = value;
|
|
575
|
+
}
|
|
576
|
+
resetExplainQueryPlans() {
|
|
577
|
+
this._explainQueryPlans.internalValue = undefined;
|
|
578
|
+
}
|
|
579
|
+
// Temporarily expose input value. Use with caution.
|
|
580
|
+
get explainQueryPlansInput() {
|
|
581
|
+
return this._explainQueryPlans.internalValue;
|
|
582
|
+
}
|
|
583
|
+
// sql - computed: false, optional: true, required: false
|
|
584
|
+
_sql = new ApplicationSettingsTransactionTracerSqlOutputReference(this, "sql");
|
|
585
|
+
get sql() {
|
|
586
|
+
return this._sql;
|
|
587
|
+
}
|
|
588
|
+
putSql(value) {
|
|
589
|
+
this._sql.internalValue = value;
|
|
590
|
+
}
|
|
591
|
+
resetSql() {
|
|
592
|
+
this._sql.internalValue = undefined;
|
|
593
|
+
}
|
|
594
|
+
// Temporarily expose input value. Use with caution.
|
|
595
|
+
get sqlInput() {
|
|
596
|
+
return this._sql.internalValue;
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
export class ApplicationSettingsTransactionTracerList extends cdktf.ComplexList {
|
|
600
|
+
terraformResource;
|
|
601
|
+
terraformAttribute;
|
|
602
|
+
wrapsSet;
|
|
603
|
+
internalValue;
|
|
604
|
+
/**
|
|
605
|
+
* @param terraformResource The parent resource
|
|
606
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
607
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
608
|
+
*/
|
|
609
|
+
constructor(terraformResource, terraformAttribute, wrapsSet) {
|
|
610
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
611
|
+
this.terraformResource = terraformResource;
|
|
612
|
+
this.terraformAttribute = terraformAttribute;
|
|
613
|
+
this.wrapsSet = wrapsSet;
|
|
614
|
+
}
|
|
615
|
+
/**
|
|
616
|
+
* @param index the index of the item to return
|
|
617
|
+
*/
|
|
618
|
+
get(index) {
|
|
619
|
+
return new ApplicationSettingsTransactionTracerOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
/**
|
|
623
|
+
* Represents a {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/application_settings newrelic_application_settings}
|
|
624
|
+
*/
|
|
625
|
+
export class ApplicationSettings extends cdktf.TerraformResource {
|
|
626
|
+
// =================
|
|
627
|
+
// STATIC PROPERTIES
|
|
628
|
+
// =================
|
|
629
|
+
static tfResourceType = "newrelic_application_settings";
|
|
630
|
+
// ==============
|
|
631
|
+
// STATIC Methods
|
|
632
|
+
// ==============
|
|
633
|
+
/**
|
|
634
|
+
* Generates CDKTF code for importing a ApplicationSettings resource upon running "cdktf plan <stack-name>"
|
|
635
|
+
* @param scope The scope in which to define this construct
|
|
636
|
+
* @param importToId The construct id used in the generated config for the ApplicationSettings to import
|
|
637
|
+
* @param importFromId The id of the existing ApplicationSettings that should be imported. Refer to the {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/application_settings#import import section} in the documentation of this resource for the id to use
|
|
638
|
+
* @param provider? Optional instance of the provider where the ApplicationSettings to import is found
|
|
639
|
+
*/
|
|
640
|
+
static generateConfigForImport(scope, importToId, importFromId, provider) {
|
|
641
|
+
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "newrelic_application_settings", importId: importFromId, provider });
|
|
642
|
+
}
|
|
643
|
+
// ===========
|
|
644
|
+
// INITIALIZER
|
|
645
|
+
// ===========
|
|
646
|
+
/**
|
|
647
|
+
* Create a new {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/application_settings newrelic_application_settings} Resource
|
|
648
|
+
*
|
|
649
|
+
* @param scope The scope in which to define this construct
|
|
650
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
651
|
+
* @param options ApplicationSettingsConfig = {}
|
|
652
|
+
*/
|
|
653
|
+
constructor(scope, id, config = {}) {
|
|
654
|
+
super(scope, id, {
|
|
655
|
+
terraformResourceType: 'newrelic_application_settings',
|
|
656
|
+
terraformGeneratorMetadata: {
|
|
657
|
+
providerName: 'newrelic',
|
|
658
|
+
providerVersion: '3.75.4',
|
|
659
|
+
providerVersionConstraint: '3.75.4'
|
|
660
|
+
},
|
|
661
|
+
provider: config.provider,
|
|
662
|
+
dependsOn: config.dependsOn,
|
|
663
|
+
count: config.count,
|
|
664
|
+
lifecycle: config.lifecycle,
|
|
665
|
+
provisioners: config.provisioners,
|
|
666
|
+
connection: config.connection,
|
|
667
|
+
forEach: config.forEach
|
|
668
|
+
});
|
|
669
|
+
this._appApdexThreshold = config.appApdexThreshold;
|
|
670
|
+
this._enableRealUserMonitoring = config.enableRealUserMonitoring;
|
|
671
|
+
this._enableSlowSql = config.enableSlowSql;
|
|
672
|
+
this._enableThreadProfiler = config.enableThreadProfiler;
|
|
673
|
+
this._endUserApdexThreshold = config.endUserApdexThreshold;
|
|
674
|
+
this._guid = config.guid;
|
|
675
|
+
this._id = config.id;
|
|
676
|
+
this._name = config.name;
|
|
677
|
+
this._tracerType = config.tracerType;
|
|
678
|
+
this._useServerSideConfig = config.useServerSideConfig;
|
|
679
|
+
this._errorCollector.internalValue = config.errorCollector;
|
|
680
|
+
this._transactionTracer.internalValue = config.transactionTracer;
|
|
681
|
+
}
|
|
682
|
+
// ==========
|
|
683
|
+
// ATTRIBUTES
|
|
684
|
+
// ==========
|
|
685
|
+
// app_apdex_threshold - computed: false, optional: true, required: false
|
|
686
|
+
_appApdexThreshold;
|
|
687
|
+
get appApdexThreshold() {
|
|
688
|
+
return this.getNumberAttribute('app_apdex_threshold');
|
|
689
|
+
}
|
|
690
|
+
set appApdexThreshold(value) {
|
|
691
|
+
this._appApdexThreshold = value;
|
|
692
|
+
}
|
|
693
|
+
resetAppApdexThreshold() {
|
|
694
|
+
this._appApdexThreshold = undefined;
|
|
695
|
+
}
|
|
696
|
+
// Temporarily expose input value. Use with caution.
|
|
697
|
+
get appApdexThresholdInput() {
|
|
698
|
+
return this._appApdexThreshold;
|
|
699
|
+
}
|
|
700
|
+
// enable_real_user_monitoring - computed: false, optional: true, required: false
|
|
701
|
+
_enableRealUserMonitoring;
|
|
702
|
+
get enableRealUserMonitoring() {
|
|
703
|
+
return this.getBooleanAttribute('enable_real_user_monitoring');
|
|
704
|
+
}
|
|
705
|
+
set enableRealUserMonitoring(value) {
|
|
706
|
+
this._enableRealUserMonitoring = value;
|
|
707
|
+
}
|
|
708
|
+
resetEnableRealUserMonitoring() {
|
|
709
|
+
this._enableRealUserMonitoring = undefined;
|
|
710
|
+
}
|
|
711
|
+
// Temporarily expose input value. Use with caution.
|
|
712
|
+
get enableRealUserMonitoringInput() {
|
|
713
|
+
return this._enableRealUserMonitoring;
|
|
714
|
+
}
|
|
715
|
+
// enable_slow_sql - computed: false, optional: true, required: false
|
|
716
|
+
_enableSlowSql;
|
|
717
|
+
get enableSlowSql() {
|
|
718
|
+
return this.getBooleanAttribute('enable_slow_sql');
|
|
719
|
+
}
|
|
720
|
+
set enableSlowSql(value) {
|
|
721
|
+
this._enableSlowSql = value;
|
|
722
|
+
}
|
|
723
|
+
resetEnableSlowSql() {
|
|
724
|
+
this._enableSlowSql = undefined;
|
|
725
|
+
}
|
|
726
|
+
// Temporarily expose input value. Use with caution.
|
|
727
|
+
get enableSlowSqlInput() {
|
|
728
|
+
return this._enableSlowSql;
|
|
729
|
+
}
|
|
730
|
+
// enable_thread_profiler - computed: false, optional: true, required: false
|
|
731
|
+
_enableThreadProfiler;
|
|
732
|
+
get enableThreadProfiler() {
|
|
733
|
+
return this.getBooleanAttribute('enable_thread_profiler');
|
|
734
|
+
}
|
|
735
|
+
set enableThreadProfiler(value) {
|
|
736
|
+
this._enableThreadProfiler = value;
|
|
737
|
+
}
|
|
738
|
+
resetEnableThreadProfiler() {
|
|
739
|
+
this._enableThreadProfiler = undefined;
|
|
740
|
+
}
|
|
741
|
+
// Temporarily expose input value. Use with caution.
|
|
742
|
+
get enableThreadProfilerInput() {
|
|
743
|
+
return this._enableThreadProfiler;
|
|
744
|
+
}
|
|
745
|
+
// end_user_apdex_threshold - computed: false, optional: true, required: false
|
|
746
|
+
_endUserApdexThreshold;
|
|
747
|
+
get endUserApdexThreshold() {
|
|
748
|
+
return this.getNumberAttribute('end_user_apdex_threshold');
|
|
749
|
+
}
|
|
750
|
+
set endUserApdexThreshold(value) {
|
|
751
|
+
this._endUserApdexThreshold = value;
|
|
752
|
+
}
|
|
753
|
+
resetEndUserApdexThreshold() {
|
|
754
|
+
this._endUserApdexThreshold = undefined;
|
|
755
|
+
}
|
|
756
|
+
// Temporarily expose input value. Use with caution.
|
|
757
|
+
get endUserApdexThresholdInput() {
|
|
758
|
+
return this._endUserApdexThreshold;
|
|
759
|
+
}
|
|
760
|
+
// guid - computed: true, optional: true, required: false
|
|
761
|
+
_guid;
|
|
762
|
+
get guid() {
|
|
763
|
+
return this.getStringAttribute('guid');
|
|
764
|
+
}
|
|
765
|
+
set guid(value) {
|
|
766
|
+
this._guid = value;
|
|
767
|
+
}
|
|
768
|
+
resetGuid() {
|
|
769
|
+
this._guid = undefined;
|
|
770
|
+
}
|
|
771
|
+
// Temporarily expose input value. Use with caution.
|
|
772
|
+
get guidInput() {
|
|
773
|
+
return this._guid;
|
|
774
|
+
}
|
|
775
|
+
// id - computed: true, optional: true, required: false
|
|
776
|
+
_id;
|
|
777
|
+
get id() {
|
|
778
|
+
return this.getStringAttribute('id');
|
|
779
|
+
}
|
|
780
|
+
set id(value) {
|
|
781
|
+
this._id = value;
|
|
782
|
+
}
|
|
783
|
+
resetId() {
|
|
784
|
+
this._id = undefined;
|
|
785
|
+
}
|
|
786
|
+
// Temporarily expose input value. Use with caution.
|
|
787
|
+
get idInput() {
|
|
788
|
+
return this._id;
|
|
789
|
+
}
|
|
790
|
+
// is_imported - computed: true, optional: false, required: false
|
|
791
|
+
get isImported() {
|
|
792
|
+
return this.getBooleanAttribute('is_imported');
|
|
793
|
+
}
|
|
794
|
+
// name - computed: true, optional: true, required: false
|
|
795
|
+
_name;
|
|
796
|
+
get name() {
|
|
797
|
+
return this.getStringAttribute('name');
|
|
798
|
+
}
|
|
799
|
+
set name(value) {
|
|
800
|
+
this._name = value;
|
|
801
|
+
}
|
|
802
|
+
resetName() {
|
|
803
|
+
this._name = undefined;
|
|
804
|
+
}
|
|
805
|
+
// Temporarily expose input value. Use with caution.
|
|
806
|
+
get nameInput() {
|
|
807
|
+
return this._name;
|
|
808
|
+
}
|
|
809
|
+
// tracer_type - computed: false, optional: true, required: false
|
|
810
|
+
_tracerType;
|
|
811
|
+
get tracerType() {
|
|
812
|
+
return this.getStringAttribute('tracer_type');
|
|
813
|
+
}
|
|
814
|
+
set tracerType(value) {
|
|
815
|
+
this._tracerType = value;
|
|
816
|
+
}
|
|
817
|
+
resetTracerType() {
|
|
818
|
+
this._tracerType = undefined;
|
|
819
|
+
}
|
|
820
|
+
// Temporarily expose input value. Use with caution.
|
|
821
|
+
get tracerTypeInput() {
|
|
822
|
+
return this._tracerType;
|
|
823
|
+
}
|
|
824
|
+
// use_server_side_config - computed: false, optional: true, required: false
|
|
825
|
+
_useServerSideConfig;
|
|
826
|
+
get useServerSideConfig() {
|
|
827
|
+
return this.getBooleanAttribute('use_server_side_config');
|
|
828
|
+
}
|
|
829
|
+
set useServerSideConfig(value) {
|
|
830
|
+
this._useServerSideConfig = value;
|
|
831
|
+
}
|
|
832
|
+
resetUseServerSideConfig() {
|
|
833
|
+
this._useServerSideConfig = undefined;
|
|
834
|
+
}
|
|
835
|
+
// Temporarily expose input value. Use with caution.
|
|
836
|
+
get useServerSideConfigInput() {
|
|
837
|
+
return this._useServerSideConfig;
|
|
838
|
+
}
|
|
839
|
+
// error_collector - computed: false, optional: true, required: false
|
|
840
|
+
_errorCollector = new ApplicationSettingsErrorCollectorList(this, "error_collector", false);
|
|
841
|
+
get errorCollector() {
|
|
842
|
+
return this._errorCollector;
|
|
843
|
+
}
|
|
844
|
+
putErrorCollector(value) {
|
|
845
|
+
this._errorCollector.internalValue = value;
|
|
846
|
+
}
|
|
847
|
+
resetErrorCollector() {
|
|
848
|
+
this._errorCollector.internalValue = undefined;
|
|
849
|
+
}
|
|
850
|
+
// Temporarily expose input value. Use with caution.
|
|
851
|
+
get errorCollectorInput() {
|
|
852
|
+
return this._errorCollector.internalValue;
|
|
853
|
+
}
|
|
854
|
+
// transaction_tracer - computed: false, optional: true, required: false
|
|
855
|
+
_transactionTracer = new ApplicationSettingsTransactionTracerList(this, "transaction_tracer", false);
|
|
856
|
+
get transactionTracer() {
|
|
857
|
+
return this._transactionTracer;
|
|
858
|
+
}
|
|
859
|
+
putTransactionTracer(value) {
|
|
860
|
+
this._transactionTracer.internalValue = value;
|
|
861
|
+
}
|
|
862
|
+
resetTransactionTracer() {
|
|
863
|
+
this._transactionTracer.internalValue = undefined;
|
|
864
|
+
}
|
|
865
|
+
// Temporarily expose input value. Use with caution.
|
|
866
|
+
get transactionTracerInput() {
|
|
867
|
+
return this._transactionTracer.internalValue;
|
|
868
|
+
}
|
|
869
|
+
// =========
|
|
870
|
+
// SYNTHESIS
|
|
871
|
+
// =========
|
|
872
|
+
synthesizeAttributes() {
|
|
873
|
+
return {
|
|
874
|
+
app_apdex_threshold: cdktf.numberToTerraform(this._appApdexThreshold),
|
|
875
|
+
enable_real_user_monitoring: cdktf.booleanToTerraform(this._enableRealUserMonitoring),
|
|
876
|
+
enable_slow_sql: cdktf.booleanToTerraform(this._enableSlowSql),
|
|
877
|
+
enable_thread_profiler: cdktf.booleanToTerraform(this._enableThreadProfiler),
|
|
878
|
+
end_user_apdex_threshold: cdktf.numberToTerraform(this._endUserApdexThreshold),
|
|
879
|
+
guid: cdktf.stringToTerraform(this._guid),
|
|
880
|
+
id: cdktf.stringToTerraform(this._id),
|
|
881
|
+
name: cdktf.stringToTerraform(this._name),
|
|
882
|
+
tracer_type: cdktf.stringToTerraform(this._tracerType),
|
|
883
|
+
use_server_side_config: cdktf.booleanToTerraform(this._useServerSideConfig),
|
|
884
|
+
error_collector: cdktf.listMapper(applicationSettingsErrorCollectorToTerraform, true)(this._errorCollector.internalValue),
|
|
885
|
+
transaction_tracer: cdktf.listMapper(applicationSettingsTransactionTracerToTerraform, true)(this._transactionTracer.internalValue),
|
|
886
|
+
};
|
|
887
|
+
}
|
|
888
|
+
synthesizeHclAttributes() {
|
|
889
|
+
const attrs = {
|
|
890
|
+
app_apdex_threshold: {
|
|
891
|
+
value: cdktf.numberToHclTerraform(this._appApdexThreshold),
|
|
892
|
+
isBlock: false,
|
|
893
|
+
type: "simple",
|
|
894
|
+
storageClassType: "number",
|
|
895
|
+
},
|
|
896
|
+
enable_real_user_monitoring: {
|
|
897
|
+
value: cdktf.booleanToHclTerraform(this._enableRealUserMonitoring),
|
|
898
|
+
isBlock: false,
|
|
899
|
+
type: "simple",
|
|
900
|
+
storageClassType: "boolean",
|
|
901
|
+
},
|
|
902
|
+
enable_slow_sql: {
|
|
903
|
+
value: cdktf.booleanToHclTerraform(this._enableSlowSql),
|
|
904
|
+
isBlock: false,
|
|
905
|
+
type: "simple",
|
|
906
|
+
storageClassType: "boolean",
|
|
907
|
+
},
|
|
908
|
+
enable_thread_profiler: {
|
|
909
|
+
value: cdktf.booleanToHclTerraform(this._enableThreadProfiler),
|
|
910
|
+
isBlock: false,
|
|
911
|
+
type: "simple",
|
|
912
|
+
storageClassType: "boolean",
|
|
913
|
+
},
|
|
914
|
+
end_user_apdex_threshold: {
|
|
915
|
+
value: cdktf.numberToHclTerraform(this._endUserApdexThreshold),
|
|
916
|
+
isBlock: false,
|
|
917
|
+
type: "simple",
|
|
918
|
+
storageClassType: "number",
|
|
919
|
+
},
|
|
920
|
+
guid: {
|
|
921
|
+
value: cdktf.stringToHclTerraform(this._guid),
|
|
922
|
+
isBlock: false,
|
|
923
|
+
type: "simple",
|
|
924
|
+
storageClassType: "string",
|
|
925
|
+
},
|
|
926
|
+
id: {
|
|
927
|
+
value: cdktf.stringToHclTerraform(this._id),
|
|
928
|
+
isBlock: false,
|
|
929
|
+
type: "simple",
|
|
930
|
+
storageClassType: "string",
|
|
931
|
+
},
|
|
932
|
+
name: {
|
|
933
|
+
value: cdktf.stringToHclTerraform(this._name),
|
|
934
|
+
isBlock: false,
|
|
935
|
+
type: "simple",
|
|
936
|
+
storageClassType: "string",
|
|
937
|
+
},
|
|
938
|
+
tracer_type: {
|
|
939
|
+
value: cdktf.stringToHclTerraform(this._tracerType),
|
|
940
|
+
isBlock: false,
|
|
941
|
+
type: "simple",
|
|
942
|
+
storageClassType: "string",
|
|
943
|
+
},
|
|
944
|
+
use_server_side_config: {
|
|
945
|
+
value: cdktf.booleanToHclTerraform(this._useServerSideConfig),
|
|
946
|
+
isBlock: false,
|
|
947
|
+
type: "simple",
|
|
948
|
+
storageClassType: "boolean",
|
|
949
|
+
},
|
|
950
|
+
error_collector: {
|
|
951
|
+
value: cdktf.listMapperHcl(applicationSettingsErrorCollectorToHclTerraform, true)(this._errorCollector.internalValue),
|
|
952
|
+
isBlock: true,
|
|
953
|
+
type: "list",
|
|
954
|
+
storageClassType: "ApplicationSettingsErrorCollectorList",
|
|
955
|
+
},
|
|
956
|
+
transaction_tracer: {
|
|
957
|
+
value: cdktf.listMapperHcl(applicationSettingsTransactionTracerToHclTerraform, true)(this._transactionTracer.internalValue),
|
|
958
|
+
isBlock: true,
|
|
959
|
+
type: "list",
|
|
960
|
+
storageClassType: "ApplicationSettingsTransactionTracerList",
|
|
961
|
+
},
|
|
962
|
+
};
|
|
963
|
+
// remove undefined attributes
|
|
964
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
965
|
+
}
|
|
966
|
+
}
|