@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,256 @@
|
|
|
1
|
+
// https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/service_level_alert_helper
|
|
2
|
+
// generated from terraform resource schema
|
|
3
|
+
import * as cdktf from 'cdktf';
|
|
4
|
+
/**
|
|
5
|
+
* Represents a {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/service_level_alert_helper newrelic_service_level_alert_helper}
|
|
6
|
+
*/
|
|
7
|
+
export class DataNewrelicServiceLevelAlertHelper extends cdktf.TerraformDataSource {
|
|
8
|
+
// =================
|
|
9
|
+
// STATIC PROPERTIES
|
|
10
|
+
// =================
|
|
11
|
+
static tfResourceType = "newrelic_service_level_alert_helper";
|
|
12
|
+
// ==============
|
|
13
|
+
// STATIC Methods
|
|
14
|
+
// ==============
|
|
15
|
+
/**
|
|
16
|
+
* Generates CDKTF code for importing a DataNewrelicServiceLevelAlertHelper resource upon running "cdktf plan <stack-name>"
|
|
17
|
+
* @param scope The scope in which to define this construct
|
|
18
|
+
* @param importToId The construct id used in the generated config for the DataNewrelicServiceLevelAlertHelper to import
|
|
19
|
+
* @param importFromId The id of the existing DataNewrelicServiceLevelAlertHelper that should be imported. Refer to the {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/service_level_alert_helper#import import section} in the documentation of this resource for the id to use
|
|
20
|
+
* @param provider? Optional instance of the provider where the DataNewrelicServiceLevelAlertHelper to import is found
|
|
21
|
+
*/
|
|
22
|
+
static generateConfigForImport(scope, importToId, importFromId, provider) {
|
|
23
|
+
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "newrelic_service_level_alert_helper", importId: importFromId, provider });
|
|
24
|
+
}
|
|
25
|
+
// ===========
|
|
26
|
+
// INITIALIZER
|
|
27
|
+
// ===========
|
|
28
|
+
/**
|
|
29
|
+
* Create a new {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/service_level_alert_helper newrelic_service_level_alert_helper} Data Source
|
|
30
|
+
*
|
|
31
|
+
* @param scope The scope in which to define this construct
|
|
32
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
33
|
+
* @param options DataNewrelicServiceLevelAlertHelperConfig
|
|
34
|
+
*/
|
|
35
|
+
constructor(scope, id, config) {
|
|
36
|
+
super(scope, id, {
|
|
37
|
+
terraformResourceType: 'newrelic_service_level_alert_helper',
|
|
38
|
+
terraformGeneratorMetadata: {
|
|
39
|
+
providerName: 'newrelic',
|
|
40
|
+
providerVersion: '3.75.4',
|
|
41
|
+
providerVersionConstraint: '3.75.4'
|
|
42
|
+
},
|
|
43
|
+
provider: config.provider,
|
|
44
|
+
dependsOn: config.dependsOn,
|
|
45
|
+
count: config.count,
|
|
46
|
+
lifecycle: config.lifecycle,
|
|
47
|
+
provisioners: config.provisioners,
|
|
48
|
+
connection: config.connection,
|
|
49
|
+
forEach: config.forEach
|
|
50
|
+
});
|
|
51
|
+
this._alertType = config.alertType;
|
|
52
|
+
this._customEvaluationPeriod = config.customEvaluationPeriod;
|
|
53
|
+
this._customToleratedBudgetConsumption = config.customToleratedBudgetConsumption;
|
|
54
|
+
this._id = config.id;
|
|
55
|
+
this._isBadEvents = config.isBadEvents;
|
|
56
|
+
this._sliGuid = config.sliGuid;
|
|
57
|
+
this._sloPeriod = config.sloPeriod;
|
|
58
|
+
this._sloTarget = config.sloTarget;
|
|
59
|
+
}
|
|
60
|
+
// ==========
|
|
61
|
+
// ATTRIBUTES
|
|
62
|
+
// ==========
|
|
63
|
+
// alert_type - computed: false, optional: false, required: true
|
|
64
|
+
_alertType;
|
|
65
|
+
get alertType() {
|
|
66
|
+
return this.getStringAttribute('alert_type');
|
|
67
|
+
}
|
|
68
|
+
set alertType(value) {
|
|
69
|
+
this._alertType = value;
|
|
70
|
+
}
|
|
71
|
+
// Temporarily expose input value. Use with caution.
|
|
72
|
+
get alertTypeInput() {
|
|
73
|
+
return this._alertType;
|
|
74
|
+
}
|
|
75
|
+
// custom_evaluation_period - computed: false, optional: true, required: false
|
|
76
|
+
_customEvaluationPeriod;
|
|
77
|
+
get customEvaluationPeriod() {
|
|
78
|
+
return this.getNumberAttribute('custom_evaluation_period');
|
|
79
|
+
}
|
|
80
|
+
set customEvaluationPeriod(value) {
|
|
81
|
+
this._customEvaluationPeriod = value;
|
|
82
|
+
}
|
|
83
|
+
resetCustomEvaluationPeriod() {
|
|
84
|
+
this._customEvaluationPeriod = undefined;
|
|
85
|
+
}
|
|
86
|
+
// Temporarily expose input value. Use with caution.
|
|
87
|
+
get customEvaluationPeriodInput() {
|
|
88
|
+
return this._customEvaluationPeriod;
|
|
89
|
+
}
|
|
90
|
+
// custom_tolerated_budget_consumption - computed: false, optional: true, required: false
|
|
91
|
+
_customToleratedBudgetConsumption;
|
|
92
|
+
get customToleratedBudgetConsumption() {
|
|
93
|
+
return this.getNumberAttribute('custom_tolerated_budget_consumption');
|
|
94
|
+
}
|
|
95
|
+
set customToleratedBudgetConsumption(value) {
|
|
96
|
+
this._customToleratedBudgetConsumption = value;
|
|
97
|
+
}
|
|
98
|
+
resetCustomToleratedBudgetConsumption() {
|
|
99
|
+
this._customToleratedBudgetConsumption = undefined;
|
|
100
|
+
}
|
|
101
|
+
// Temporarily expose input value. Use with caution.
|
|
102
|
+
get customToleratedBudgetConsumptionInput() {
|
|
103
|
+
return this._customToleratedBudgetConsumption;
|
|
104
|
+
}
|
|
105
|
+
// evaluation_period - computed: true, optional: false, required: false
|
|
106
|
+
get evaluationPeriod() {
|
|
107
|
+
return this.getNumberAttribute('evaluation_period');
|
|
108
|
+
}
|
|
109
|
+
// id - computed: true, optional: true, required: false
|
|
110
|
+
_id;
|
|
111
|
+
get id() {
|
|
112
|
+
return this.getStringAttribute('id');
|
|
113
|
+
}
|
|
114
|
+
set id(value) {
|
|
115
|
+
this._id = value;
|
|
116
|
+
}
|
|
117
|
+
resetId() {
|
|
118
|
+
this._id = undefined;
|
|
119
|
+
}
|
|
120
|
+
// Temporarily expose input value. Use with caution.
|
|
121
|
+
get idInput() {
|
|
122
|
+
return this._id;
|
|
123
|
+
}
|
|
124
|
+
// is_bad_events - computed: false, optional: true, required: false
|
|
125
|
+
_isBadEvents;
|
|
126
|
+
get isBadEvents() {
|
|
127
|
+
return this.getBooleanAttribute('is_bad_events');
|
|
128
|
+
}
|
|
129
|
+
set isBadEvents(value) {
|
|
130
|
+
this._isBadEvents = value;
|
|
131
|
+
}
|
|
132
|
+
resetIsBadEvents() {
|
|
133
|
+
this._isBadEvents = undefined;
|
|
134
|
+
}
|
|
135
|
+
// Temporarily expose input value. Use with caution.
|
|
136
|
+
get isBadEventsInput() {
|
|
137
|
+
return this._isBadEvents;
|
|
138
|
+
}
|
|
139
|
+
// nrql - computed: true, optional: false, required: false
|
|
140
|
+
get nrql() {
|
|
141
|
+
return this.getStringAttribute('nrql');
|
|
142
|
+
}
|
|
143
|
+
// sli_guid - computed: false, optional: false, required: true
|
|
144
|
+
_sliGuid;
|
|
145
|
+
get sliGuid() {
|
|
146
|
+
return this.getStringAttribute('sli_guid');
|
|
147
|
+
}
|
|
148
|
+
set sliGuid(value) {
|
|
149
|
+
this._sliGuid = value;
|
|
150
|
+
}
|
|
151
|
+
// Temporarily expose input value. Use with caution.
|
|
152
|
+
get sliGuidInput() {
|
|
153
|
+
return this._sliGuid;
|
|
154
|
+
}
|
|
155
|
+
// slo_period - computed: false, optional: false, required: true
|
|
156
|
+
_sloPeriod;
|
|
157
|
+
get sloPeriod() {
|
|
158
|
+
return this.getNumberAttribute('slo_period');
|
|
159
|
+
}
|
|
160
|
+
set sloPeriod(value) {
|
|
161
|
+
this._sloPeriod = value;
|
|
162
|
+
}
|
|
163
|
+
// Temporarily expose input value. Use with caution.
|
|
164
|
+
get sloPeriodInput() {
|
|
165
|
+
return this._sloPeriod;
|
|
166
|
+
}
|
|
167
|
+
// slo_target - computed: false, optional: false, required: true
|
|
168
|
+
_sloTarget;
|
|
169
|
+
get sloTarget() {
|
|
170
|
+
return this.getNumberAttribute('slo_target');
|
|
171
|
+
}
|
|
172
|
+
set sloTarget(value) {
|
|
173
|
+
this._sloTarget = value;
|
|
174
|
+
}
|
|
175
|
+
// Temporarily expose input value. Use with caution.
|
|
176
|
+
get sloTargetInput() {
|
|
177
|
+
return this._sloTarget;
|
|
178
|
+
}
|
|
179
|
+
// threshold - computed: true, optional: false, required: false
|
|
180
|
+
get threshold() {
|
|
181
|
+
return this.getNumberAttribute('threshold');
|
|
182
|
+
}
|
|
183
|
+
// tolerated_budget_consumption - computed: true, optional: false, required: false
|
|
184
|
+
get toleratedBudgetConsumption() {
|
|
185
|
+
return this.getNumberAttribute('tolerated_budget_consumption');
|
|
186
|
+
}
|
|
187
|
+
// =========
|
|
188
|
+
// SYNTHESIS
|
|
189
|
+
// =========
|
|
190
|
+
synthesizeAttributes() {
|
|
191
|
+
return {
|
|
192
|
+
alert_type: cdktf.stringToTerraform(this._alertType),
|
|
193
|
+
custom_evaluation_period: cdktf.numberToTerraform(this._customEvaluationPeriod),
|
|
194
|
+
custom_tolerated_budget_consumption: cdktf.numberToTerraform(this._customToleratedBudgetConsumption),
|
|
195
|
+
id: cdktf.stringToTerraform(this._id),
|
|
196
|
+
is_bad_events: cdktf.booleanToTerraform(this._isBadEvents),
|
|
197
|
+
sli_guid: cdktf.stringToTerraform(this._sliGuid),
|
|
198
|
+
slo_period: cdktf.numberToTerraform(this._sloPeriod),
|
|
199
|
+
slo_target: cdktf.numberToTerraform(this._sloTarget),
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
synthesizeHclAttributes() {
|
|
203
|
+
const attrs = {
|
|
204
|
+
alert_type: {
|
|
205
|
+
value: cdktf.stringToHclTerraform(this._alertType),
|
|
206
|
+
isBlock: false,
|
|
207
|
+
type: "simple",
|
|
208
|
+
storageClassType: "string",
|
|
209
|
+
},
|
|
210
|
+
custom_evaluation_period: {
|
|
211
|
+
value: cdktf.numberToHclTerraform(this._customEvaluationPeriod),
|
|
212
|
+
isBlock: false,
|
|
213
|
+
type: "simple",
|
|
214
|
+
storageClassType: "number",
|
|
215
|
+
},
|
|
216
|
+
custom_tolerated_budget_consumption: {
|
|
217
|
+
value: cdktf.numberToHclTerraform(this._customToleratedBudgetConsumption),
|
|
218
|
+
isBlock: false,
|
|
219
|
+
type: "simple",
|
|
220
|
+
storageClassType: "number",
|
|
221
|
+
},
|
|
222
|
+
id: {
|
|
223
|
+
value: cdktf.stringToHclTerraform(this._id),
|
|
224
|
+
isBlock: false,
|
|
225
|
+
type: "simple",
|
|
226
|
+
storageClassType: "string",
|
|
227
|
+
},
|
|
228
|
+
is_bad_events: {
|
|
229
|
+
value: cdktf.booleanToHclTerraform(this._isBadEvents),
|
|
230
|
+
isBlock: false,
|
|
231
|
+
type: "simple",
|
|
232
|
+
storageClassType: "boolean",
|
|
233
|
+
},
|
|
234
|
+
sli_guid: {
|
|
235
|
+
value: cdktf.stringToHclTerraform(this._sliGuid),
|
|
236
|
+
isBlock: false,
|
|
237
|
+
type: "simple",
|
|
238
|
+
storageClassType: "string",
|
|
239
|
+
},
|
|
240
|
+
slo_period: {
|
|
241
|
+
value: cdktf.numberToHclTerraform(this._sloPeriod),
|
|
242
|
+
isBlock: false,
|
|
243
|
+
type: "simple",
|
|
244
|
+
storageClassType: "number",
|
|
245
|
+
},
|
|
246
|
+
slo_target: {
|
|
247
|
+
value: cdktf.numberToHclTerraform(this._sloTarget),
|
|
248
|
+
isBlock: false,
|
|
249
|
+
type: "simple",
|
|
250
|
+
storageClassType: "number",
|
|
251
|
+
},
|
|
252
|
+
};
|
|
253
|
+
// remove undefined attributes
|
|
254
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
255
|
+
}
|
|
256
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { Construct } from 'constructs';
|
|
2
|
+
import * as cdktf from 'cdktf';
|
|
3
|
+
export interface DataNewrelicSyntheticsPrivateLocationConfig extends cdktf.TerraformMetaArguments {
|
|
4
|
+
/**
|
|
5
|
+
* The ID of the account in New Relic.
|
|
6
|
+
*
|
|
7
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/synthetics_private_location#account_id DataNewrelicSyntheticsPrivateLocation#account_id}
|
|
8
|
+
*/
|
|
9
|
+
readonly accountId?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/synthetics_private_location#id DataNewrelicSyntheticsPrivateLocation#id}
|
|
12
|
+
*
|
|
13
|
+
* Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
|
|
14
|
+
* If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
|
|
15
|
+
*/
|
|
16
|
+
readonly id?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The key of the queried private location.
|
|
19
|
+
*
|
|
20
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/synthetics_private_location#key DataNewrelicSyntheticsPrivateLocation#key}
|
|
21
|
+
*/
|
|
22
|
+
readonly key?: string[];
|
|
23
|
+
/**
|
|
24
|
+
* The name of the Synthetics monitor private location.
|
|
25
|
+
*
|
|
26
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/synthetics_private_location#name DataNewrelicSyntheticsPrivateLocation#name}
|
|
27
|
+
*/
|
|
28
|
+
readonly name: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Represents a {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/synthetics_private_location newrelic_synthetics_private_location}
|
|
32
|
+
*/
|
|
33
|
+
export declare class DataNewrelicSyntheticsPrivateLocation extends cdktf.TerraformDataSource {
|
|
34
|
+
static readonly tfResourceType = "newrelic_synthetics_private_location";
|
|
35
|
+
/**
|
|
36
|
+
* Generates CDKTF code for importing a DataNewrelicSyntheticsPrivateLocation resource upon running "cdktf plan <stack-name>"
|
|
37
|
+
* @param scope The scope in which to define this construct
|
|
38
|
+
* @param importToId The construct id used in the generated config for the DataNewrelicSyntheticsPrivateLocation to import
|
|
39
|
+
* @param importFromId The id of the existing DataNewrelicSyntheticsPrivateLocation that should be imported. Refer to the {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/synthetics_private_location#import import section} in the documentation of this resource for the id to use
|
|
40
|
+
* @param provider? Optional instance of the provider where the DataNewrelicSyntheticsPrivateLocation to import is found
|
|
41
|
+
*/
|
|
42
|
+
static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
|
|
43
|
+
/**
|
|
44
|
+
* Create a new {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/synthetics_private_location newrelic_synthetics_private_location} Data Source
|
|
45
|
+
*
|
|
46
|
+
* @param scope The scope in which to define this construct
|
|
47
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
48
|
+
* @param options DataNewrelicSyntheticsPrivateLocationConfig
|
|
49
|
+
*/
|
|
50
|
+
constructor(scope: Construct, id: string, config: DataNewrelicSyntheticsPrivateLocationConfig);
|
|
51
|
+
private _accountId?;
|
|
52
|
+
get accountId(): number;
|
|
53
|
+
set accountId(value: number);
|
|
54
|
+
resetAccountId(): void;
|
|
55
|
+
get accountIdInput(): number;
|
|
56
|
+
private _id?;
|
|
57
|
+
get id(): string;
|
|
58
|
+
set id(value: string);
|
|
59
|
+
resetId(): void;
|
|
60
|
+
get idInput(): string;
|
|
61
|
+
private _key?;
|
|
62
|
+
get key(): string[];
|
|
63
|
+
set key(value: string[]);
|
|
64
|
+
resetKey(): void;
|
|
65
|
+
get keyInput(): string[];
|
|
66
|
+
private _name?;
|
|
67
|
+
get name(): string;
|
|
68
|
+
set name(value: string);
|
|
69
|
+
get nameInput(): string;
|
|
70
|
+
protected synthesizeAttributes(): {
|
|
71
|
+
[name: string]: any;
|
|
72
|
+
};
|
|
73
|
+
protected synthesizeHclAttributes(): {
|
|
74
|
+
[name: string]: any;
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
// https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/synthetics_private_location
|
|
2
|
+
// generated from terraform resource schema
|
|
3
|
+
import * as cdktf from 'cdktf';
|
|
4
|
+
/**
|
|
5
|
+
* Represents a {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/synthetics_private_location newrelic_synthetics_private_location}
|
|
6
|
+
*/
|
|
7
|
+
export class DataNewrelicSyntheticsPrivateLocation extends cdktf.TerraformDataSource {
|
|
8
|
+
// =================
|
|
9
|
+
// STATIC PROPERTIES
|
|
10
|
+
// =================
|
|
11
|
+
static tfResourceType = "newrelic_synthetics_private_location";
|
|
12
|
+
// ==============
|
|
13
|
+
// STATIC Methods
|
|
14
|
+
// ==============
|
|
15
|
+
/**
|
|
16
|
+
* Generates CDKTF code for importing a DataNewrelicSyntheticsPrivateLocation resource upon running "cdktf plan <stack-name>"
|
|
17
|
+
* @param scope The scope in which to define this construct
|
|
18
|
+
* @param importToId The construct id used in the generated config for the DataNewrelicSyntheticsPrivateLocation to import
|
|
19
|
+
* @param importFromId The id of the existing DataNewrelicSyntheticsPrivateLocation that should be imported. Refer to the {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/synthetics_private_location#import import section} in the documentation of this resource for the id to use
|
|
20
|
+
* @param provider? Optional instance of the provider where the DataNewrelicSyntheticsPrivateLocation to import is found
|
|
21
|
+
*/
|
|
22
|
+
static generateConfigForImport(scope, importToId, importFromId, provider) {
|
|
23
|
+
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "newrelic_synthetics_private_location", importId: importFromId, provider });
|
|
24
|
+
}
|
|
25
|
+
// ===========
|
|
26
|
+
// INITIALIZER
|
|
27
|
+
// ===========
|
|
28
|
+
/**
|
|
29
|
+
* Create a new {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/synthetics_private_location newrelic_synthetics_private_location} Data Source
|
|
30
|
+
*
|
|
31
|
+
* @param scope The scope in which to define this construct
|
|
32
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
33
|
+
* @param options DataNewrelicSyntheticsPrivateLocationConfig
|
|
34
|
+
*/
|
|
35
|
+
constructor(scope, id, config) {
|
|
36
|
+
super(scope, id, {
|
|
37
|
+
terraformResourceType: 'newrelic_synthetics_private_location',
|
|
38
|
+
terraformGeneratorMetadata: {
|
|
39
|
+
providerName: 'newrelic',
|
|
40
|
+
providerVersion: '3.75.4',
|
|
41
|
+
providerVersionConstraint: '3.75.4'
|
|
42
|
+
},
|
|
43
|
+
provider: config.provider,
|
|
44
|
+
dependsOn: config.dependsOn,
|
|
45
|
+
count: config.count,
|
|
46
|
+
lifecycle: config.lifecycle,
|
|
47
|
+
provisioners: config.provisioners,
|
|
48
|
+
connection: config.connection,
|
|
49
|
+
forEach: config.forEach
|
|
50
|
+
});
|
|
51
|
+
this._accountId = config.accountId;
|
|
52
|
+
this._id = config.id;
|
|
53
|
+
this._key = config.key;
|
|
54
|
+
this._name = config.name;
|
|
55
|
+
}
|
|
56
|
+
// ==========
|
|
57
|
+
// ATTRIBUTES
|
|
58
|
+
// ==========
|
|
59
|
+
// account_id - computed: false, optional: true, required: false
|
|
60
|
+
_accountId;
|
|
61
|
+
get accountId() {
|
|
62
|
+
return this.getNumberAttribute('account_id');
|
|
63
|
+
}
|
|
64
|
+
set accountId(value) {
|
|
65
|
+
this._accountId = value;
|
|
66
|
+
}
|
|
67
|
+
resetAccountId() {
|
|
68
|
+
this._accountId = undefined;
|
|
69
|
+
}
|
|
70
|
+
// Temporarily expose input value. Use with caution.
|
|
71
|
+
get accountIdInput() {
|
|
72
|
+
return this._accountId;
|
|
73
|
+
}
|
|
74
|
+
// id - computed: true, optional: true, required: false
|
|
75
|
+
_id;
|
|
76
|
+
get id() {
|
|
77
|
+
return this.getStringAttribute('id');
|
|
78
|
+
}
|
|
79
|
+
set id(value) {
|
|
80
|
+
this._id = value;
|
|
81
|
+
}
|
|
82
|
+
resetId() {
|
|
83
|
+
this._id = undefined;
|
|
84
|
+
}
|
|
85
|
+
// Temporarily expose input value. Use with caution.
|
|
86
|
+
get idInput() {
|
|
87
|
+
return this._id;
|
|
88
|
+
}
|
|
89
|
+
// key - computed: true, optional: true, required: false
|
|
90
|
+
_key;
|
|
91
|
+
get key() {
|
|
92
|
+
return this.getListAttribute('key');
|
|
93
|
+
}
|
|
94
|
+
set key(value) {
|
|
95
|
+
this._key = value;
|
|
96
|
+
}
|
|
97
|
+
resetKey() {
|
|
98
|
+
this._key = undefined;
|
|
99
|
+
}
|
|
100
|
+
// Temporarily expose input value. Use with caution.
|
|
101
|
+
get keyInput() {
|
|
102
|
+
return this._key;
|
|
103
|
+
}
|
|
104
|
+
// name - computed: false, optional: false, required: true
|
|
105
|
+
_name;
|
|
106
|
+
get name() {
|
|
107
|
+
return this.getStringAttribute('name');
|
|
108
|
+
}
|
|
109
|
+
set name(value) {
|
|
110
|
+
this._name = value;
|
|
111
|
+
}
|
|
112
|
+
// Temporarily expose input value. Use with caution.
|
|
113
|
+
get nameInput() {
|
|
114
|
+
return this._name;
|
|
115
|
+
}
|
|
116
|
+
// =========
|
|
117
|
+
// SYNTHESIS
|
|
118
|
+
// =========
|
|
119
|
+
synthesizeAttributes() {
|
|
120
|
+
return {
|
|
121
|
+
account_id: cdktf.numberToTerraform(this._accountId),
|
|
122
|
+
id: cdktf.stringToTerraform(this._id),
|
|
123
|
+
key: cdktf.listMapper(cdktf.stringToTerraform, false)(this._key),
|
|
124
|
+
name: cdktf.stringToTerraform(this._name),
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
synthesizeHclAttributes() {
|
|
128
|
+
const attrs = {
|
|
129
|
+
account_id: {
|
|
130
|
+
value: cdktf.numberToHclTerraform(this._accountId),
|
|
131
|
+
isBlock: false,
|
|
132
|
+
type: "simple",
|
|
133
|
+
storageClassType: "number",
|
|
134
|
+
},
|
|
135
|
+
id: {
|
|
136
|
+
value: cdktf.stringToHclTerraform(this._id),
|
|
137
|
+
isBlock: false,
|
|
138
|
+
type: "simple",
|
|
139
|
+
storageClassType: "string",
|
|
140
|
+
},
|
|
141
|
+
key: {
|
|
142
|
+
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._key),
|
|
143
|
+
isBlock: false,
|
|
144
|
+
type: "list",
|
|
145
|
+
storageClassType: "stringList",
|
|
146
|
+
},
|
|
147
|
+
name: {
|
|
148
|
+
value: cdktf.stringToHclTerraform(this._name),
|
|
149
|
+
isBlock: false,
|
|
150
|
+
type: "simple",
|
|
151
|
+
storageClassType: "string",
|
|
152
|
+
},
|
|
153
|
+
};
|
|
154
|
+
// remove undefined attributes
|
|
155
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
156
|
+
}
|
|
157
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Construct } from 'constructs';
|
|
2
|
+
import * as cdktf from 'cdktf';
|
|
3
|
+
export interface DataNewrelicSyntheticsSecureCredentialConfig extends cdktf.TerraformMetaArguments {
|
|
4
|
+
/**
|
|
5
|
+
* The New Relic account ID associated with this secure credential.
|
|
6
|
+
*
|
|
7
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/synthetics_secure_credential#account_id DataNewrelicSyntheticsSecureCredential#account_id}
|
|
8
|
+
*/
|
|
9
|
+
readonly accountId?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/synthetics_secure_credential#id DataNewrelicSyntheticsSecureCredential#id}
|
|
12
|
+
*
|
|
13
|
+
* Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
|
|
14
|
+
* If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
|
|
15
|
+
*/
|
|
16
|
+
readonly id?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The secure credential's key name. Regardless of the case used in the configuration, the provider will provide an upcased key to the underlying API.
|
|
19
|
+
*
|
|
20
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/synthetics_secure_credential#key DataNewrelicSyntheticsSecureCredential#key}
|
|
21
|
+
*/
|
|
22
|
+
readonly key: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Represents a {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/synthetics_secure_credential newrelic_synthetics_secure_credential}
|
|
26
|
+
*/
|
|
27
|
+
export declare class DataNewrelicSyntheticsSecureCredential extends cdktf.TerraformDataSource {
|
|
28
|
+
static readonly tfResourceType = "newrelic_synthetics_secure_credential";
|
|
29
|
+
/**
|
|
30
|
+
* Generates CDKTF code for importing a DataNewrelicSyntheticsSecureCredential resource upon running "cdktf plan <stack-name>"
|
|
31
|
+
* @param scope The scope in which to define this construct
|
|
32
|
+
* @param importToId The construct id used in the generated config for the DataNewrelicSyntheticsSecureCredential to import
|
|
33
|
+
* @param importFromId The id of the existing DataNewrelicSyntheticsSecureCredential that should be imported. Refer to the {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/synthetics_secure_credential#import import section} in the documentation of this resource for the id to use
|
|
34
|
+
* @param provider? Optional instance of the provider where the DataNewrelicSyntheticsSecureCredential to import is found
|
|
35
|
+
*/
|
|
36
|
+
static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
|
|
37
|
+
/**
|
|
38
|
+
* Create a new {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/synthetics_secure_credential newrelic_synthetics_secure_credential} Data Source
|
|
39
|
+
*
|
|
40
|
+
* @param scope The scope in which to define this construct
|
|
41
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
42
|
+
* @param options DataNewrelicSyntheticsSecureCredentialConfig
|
|
43
|
+
*/
|
|
44
|
+
constructor(scope: Construct, id: string, config: DataNewrelicSyntheticsSecureCredentialConfig);
|
|
45
|
+
private _accountId?;
|
|
46
|
+
get accountId(): number;
|
|
47
|
+
set accountId(value: number);
|
|
48
|
+
resetAccountId(): void;
|
|
49
|
+
get accountIdInput(): number;
|
|
50
|
+
get description(): any;
|
|
51
|
+
private _id?;
|
|
52
|
+
get id(): string;
|
|
53
|
+
set id(value: string);
|
|
54
|
+
resetId(): void;
|
|
55
|
+
get idInput(): string;
|
|
56
|
+
private _key?;
|
|
57
|
+
get key(): string;
|
|
58
|
+
set key(value: string);
|
|
59
|
+
get keyInput(): string;
|
|
60
|
+
get lastUpdated(): any;
|
|
61
|
+
protected synthesizeAttributes(): {
|
|
62
|
+
[name: string]: any;
|
|
63
|
+
};
|
|
64
|
+
protected synthesizeHclAttributes(): {
|
|
65
|
+
[name: string]: any;
|
|
66
|
+
};
|
|
67
|
+
}
|