@cdktf-providers/newrelic 3.75.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/LICENSE +355 -0
  2. package/README.md +19 -0
  3. package/dist/account-management/index.d.ts +64 -0
  4. package/dist/account-management/index.js +131 -0
  5. package/dist/alert-channel/index.d.ts +347 -0
  6. package/dist/alert-channel/index.js +810 -0
  7. package/dist/alert-condition/index.d.ts +267 -0
  8. package/dist/alert-condition/index.js +587 -0
  9. package/dist/alert-muting-rule/index.d.ts +305 -0
  10. package/dist/alert-muting-rule/index.js +731 -0
  11. package/dist/alert-policy/index.d.ts +87 -0
  12. package/dist/alert-policy/index.js +180 -0
  13. package/dist/alert-policy-channel/index.d.ts +110 -0
  14. package/dist/alert-policy-channel/index.js +260 -0
  15. package/dist/api-access-key/index.d.ts +98 -0
  16. package/dist/api-access-key/index.js +230 -0
  17. package/dist/application-settings/index.d.ts +410 -0
  18. package/dist/application-settings/index.js +966 -0
  19. package/dist/browser-application/index.d.ts +101 -0
  20. package/dist/browser-application/index.js +215 -0
  21. package/dist/cloud-aws-govcloud-integrations/index.d.ts +1519 -0
  22. package/dist/cloud-aws-govcloud-integrations/index.js +3846 -0
  23. package/dist/cloud-aws-govcloud-link-account/index.d.ts +86 -0
  24. package/dist/cloud-aws-govcloud-link-account/index.js +177 -0
  25. package/dist/cloud-aws-integrations/index.d.ts +3294 -0
  26. package/dist/cloud-aws-integrations/index.js +8554 -0
  27. package/dist/cloud-aws-link-account/index.d.ts +86 -0
  28. package/dist/cloud-aws-link-account/index.js +177 -0
  29. package/dist/cloud-azure-integrations/index.d.ts +1662 -0
  30. package/dist/cloud-azure-integrations/index.js +4338 -0
  31. package/dist/cloud-azure-link-account/index.d.ts +105 -0
  32. package/dist/cloud-azure-link-account/index.js +214 -0
  33. package/dist/cloud-gcp-integrations/index.d.ts +1045 -0
  34. package/dist/cloud-gcp-integrations/index.js +2742 -0
  35. package/dist/cloud-gcp-link-account/index.d.ts +75 -0
  36. package/dist/cloud-gcp-link-account/index.js +154 -0
  37. package/dist/cloud-oci-link-account/index.d.ts +191 -0
  38. package/dist/cloud-oci-link-account/index.js +392 -0
  39. package/dist/data-newrelic-account/index.d.ts +77 -0
  40. package/dist/data-newrelic-account/index.js +160 -0
  41. package/dist/data-newrelic-alert-channel/index.d.ts +122 -0
  42. package/dist/data-newrelic-alert-channel/index.js +295 -0
  43. package/dist/data-newrelic-alert-policy/index.d.ts +78 -0
  44. package/dist/data-newrelic-alert-policy/index.js +165 -0
  45. package/dist/data-newrelic-application/index.d.ts +56 -0
  46. package/dist/data-newrelic-application/index.js +119 -0
  47. package/dist/data-newrelic-authentication-domain/index.d.ts +43 -0
  48. package/dist/data-newrelic-authentication-domain/index.js +92 -0
  49. package/dist/data-newrelic-cloud-account/index.d.ts +75 -0
  50. package/dist/data-newrelic-cloud-account/index.js +154 -0
  51. package/dist/data-newrelic-entity/index.d.ts +185 -0
  52. package/dist/data-newrelic-entity/index.js +414 -0
  53. package/dist/data-newrelic-group/index.d.ts +54 -0
  54. package/dist/data-newrelic-group/index.js +116 -0
  55. package/dist/data-newrelic-key-transaction/index.d.ts +78 -0
  56. package/dist/data-newrelic-key-transaction/index.js +165 -0
  57. package/dist/data-newrelic-notification-destination/index.d.ts +161 -0
  58. package/dist/data-newrelic-notification-destination/index.js +368 -0
  59. package/dist/data-newrelic-obfuscation-expression/index.d.ts +65 -0
  60. package/dist/data-newrelic-obfuscation-expression/index.js +134 -0
  61. package/dist/data-newrelic-service-level-alert-helper/index.d.ts +107 -0
  62. package/dist/data-newrelic-service-level-alert-helper/index.js +256 -0
  63. package/dist/data-newrelic-synthetics-private-location/index.d.ts +76 -0
  64. package/dist/data-newrelic-synthetics-private-location/index.js +157 -0
  65. package/dist/data-newrelic-synthetics-secure-credential/index.d.ts +67 -0
  66. package/dist/data-newrelic-synthetics-secure-credential/index.js +142 -0
  67. package/dist/data-newrelic-test-grok-pattern/index.d.ts +145 -0
  68. package/dist/data-newrelic-test-grok-pattern/index.js +312 -0
  69. package/dist/data-newrelic-user/index.d.ts +65 -0
  70. package/dist/data-newrelic-user/index.js +138 -0
  71. package/dist/data-partition-rule/index.d.ts +142 -0
  72. package/dist/data-partition-rule/index.js +327 -0
  73. package/dist/entity-tags/index.d.ts +152 -0
  74. package/dist/entity-tags/index.js +367 -0
  75. package/dist/events-to-metrics-rule/index.d.ts +98 -0
  76. package/dist/events-to-metrics-rule/index.js +204 -0
  77. package/dist/group/index.d.ts +75 -0
  78. package/dist/group/index.js +154 -0
  79. package/dist/index.d.ts +67 -0
  80. package/dist/index.js +68 -0
  81. package/dist/infra-alert-condition/index.d.ts +289 -0
  82. package/dist/infra-alert-condition/index.js +691 -0
  83. package/dist/insights-event/index.d.ts +182 -0
  84. package/dist/insights-event/index.js +427 -0
  85. package/dist/key-transaction/index.d.ts +96 -0
  86. package/dist/key-transaction/index.js +199 -0
  87. package/dist/lazy-index.d.ts +0 -0
  88. package/dist/lazy-index.js +68 -0
  89. package/dist/log-parsing-rule/index.d.ts +128 -0
  90. package/dist/log-parsing-rule/index.js +264 -0
  91. package/dist/monitor-downtime/index.d.ts +255 -0
  92. package/dist/monitor-downtime/index.js +603 -0
  93. package/dist/notification-channel/index.d.ts +236 -0
  94. package/dist/notification-channel/index.js +561 -0
  95. package/dist/notification-destination/index.d.ts +402 -0
  96. package/dist/notification-destination/index.js +1039 -0
  97. package/dist/nrql-alert-condition/index.d.ts +892 -0
  98. package/dist/nrql-alert-condition/index.js +2177 -0
  99. package/dist/nrql-drop-rule/index.d.ts +123 -0
  100. package/dist/nrql-drop-rule/index.js +291 -0
  101. package/dist/obfuscation-expression/index.d.ts +86 -0
  102. package/dist/obfuscation-expression/index.js +177 -0
  103. package/dist/obfuscation-rule/index.d.ts +169 -0
  104. package/dist/obfuscation-rule/index.js +372 -0
  105. package/dist/one-dashboard/index-structs/index.d.ts +2 -0
  106. package/dist/one-dashboard/index-structs/index.js +2 -0
  107. package/dist/one-dashboard/index-structs/structs0.d.ts +6996 -0
  108. package/dist/one-dashboard/index-structs/structs0.js +18191 -0
  109. package/dist/one-dashboard/index-structs/structs400.d.ts +3699 -0
  110. package/dist/one-dashboard/index-structs/structs400.js +9611 -0
  111. package/dist/one-dashboard/index.d.ts +112 -0
  112. package/dist/one-dashboard/index.js +232 -0
  113. package/dist/one-dashboard-json/index.d.ts +112 -0
  114. package/dist/one-dashboard-json/index.js +280 -0
  115. package/dist/one-dashboard-raw/index.d.ts +274 -0
  116. package/dist/one-dashboard-raw/index.js +666 -0
  117. package/dist/pipeline-cloud-rule/index.d.ts +86 -0
  118. package/dist/pipeline-cloud-rule/index.js +177 -0
  119. package/dist/provider/index.d.ts +160 -0
  120. package/dist/provider/index.js +378 -0
  121. package/dist/service-level/index.d.ts +501 -0
  122. package/dist/service-level/index.js +1425 -0
  123. package/dist/synthetics-alert-condition/index.d.ts +97 -0
  124. package/dist/synthetics-alert-condition/index.js +201 -0
  125. package/dist/synthetics-broken-links-monitor/index.d.ts +217 -0
  126. package/dist/synthetics-broken-links-monitor/index.js +474 -0
  127. package/dist/synthetics-cert-check-monitor/index.d.ts +222 -0
  128. package/dist/synthetics-cert-check-monitor/index.js +490 -0
  129. package/dist/synthetics-monitor/index.d.ts +404 -0
  130. package/dist/synthetics-monitor/index.js +885 -0
  131. package/dist/synthetics-multilocation-alert-condition/index.d.ts +177 -0
  132. package/dist/synthetics-multilocation-alert-condition/index.js +407 -0
  133. package/dist/synthetics-private-location/index.d.ts +90 -0
  134. package/dist/synthetics-private-location/index.js +193 -0
  135. package/dist/synthetics-script-monitor/index.d.ts +348 -0
  136. package/dist/synthetics-script-monitor/index.js +768 -0
  137. package/dist/synthetics-secure-credential/index.d.ts +132 -0
  138. package/dist/synthetics-secure-credential/index.js +306 -0
  139. package/dist/synthetics-step-monitor/index.d.ts +368 -0
  140. package/dist/synthetics-step-monitor/index.js +834 -0
  141. package/dist/user/index.d.ts +85 -0
  142. package/dist/user/index.js +174 -0
  143. package/dist/workflow/index.d.ts +441 -0
  144. package/dist/workflow/index.js +1066 -0
  145. package/dist/workload/index.d.ts +514 -0
  146. package/dist/workload/index.js +1283 -0
  147. package/package.json +50 -0
@@ -0,0 +1,392 @@
1
+ // https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/cloud_oci_link_account
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/resources/cloud_oci_link_account newrelic_cloud_oci_link_account}
6
+ */
7
+ export class CloudOciLinkAccount extends cdktf.TerraformResource {
8
+ // =================
9
+ // STATIC PROPERTIES
10
+ // =================
11
+ static tfResourceType = "newrelic_cloud_oci_link_account";
12
+ // ==============
13
+ // STATIC Methods
14
+ // ==============
15
+ /**
16
+ * Generates CDKTF code for importing a CloudOciLinkAccount 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 CloudOciLinkAccount to import
19
+ * @param importFromId The id of the existing CloudOciLinkAccount that should be imported. Refer to the {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/resources/cloud_oci_link_account#import import section} in the documentation of this resource for the id to use
20
+ * @param provider? Optional instance of the provider where the CloudOciLinkAccount to import is found
21
+ */
22
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
23
+ return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "newrelic_cloud_oci_link_account", 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/resources/cloud_oci_link_account newrelic_cloud_oci_link_account} Resource
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 CloudOciLinkAccountConfig
34
+ */
35
+ constructor(scope, id, config) {
36
+ super(scope, id, {
37
+ terraformResourceType: 'newrelic_cloud_oci_link_account',
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._compartmentOcid = config.compartmentOcid;
53
+ this._id = config.id;
54
+ this._ingestVaultOcid = config.ingestVaultOcid;
55
+ this._instrumentationType = config.instrumentationType;
56
+ this._loggingStackOcid = config.loggingStackOcid;
57
+ this._metricStackOcid = config.metricStackOcid;
58
+ this._name = config.name;
59
+ this._ociClientId = config.ociClientId;
60
+ this._ociClientSecret = config.ociClientSecret;
61
+ this._ociDomainUrl = config.ociDomainUrl;
62
+ this._ociHomeRegion = config.ociHomeRegion;
63
+ this._ociRegion = config.ociRegion;
64
+ this._tenantId = config.tenantId;
65
+ this._userVaultOcid = config.userVaultOcid;
66
+ }
67
+ // ==========
68
+ // ATTRIBUTES
69
+ // ==========
70
+ // account_id - computed: true, optional: true, required: false
71
+ _accountId;
72
+ get accountId() {
73
+ return this.getNumberAttribute('account_id');
74
+ }
75
+ set accountId(value) {
76
+ this._accountId = value;
77
+ }
78
+ resetAccountId() {
79
+ this._accountId = undefined;
80
+ }
81
+ // Temporarily expose input value. Use with caution.
82
+ get accountIdInput() {
83
+ return this._accountId;
84
+ }
85
+ // compartment_ocid - computed: false, optional: false, required: true
86
+ _compartmentOcid;
87
+ get compartmentOcid() {
88
+ return this.getStringAttribute('compartment_ocid');
89
+ }
90
+ set compartmentOcid(value) {
91
+ this._compartmentOcid = value;
92
+ }
93
+ // Temporarily expose input value. Use with caution.
94
+ get compartmentOcidInput() {
95
+ return this._compartmentOcid;
96
+ }
97
+ // id - computed: true, optional: true, required: false
98
+ _id;
99
+ get id() {
100
+ return this.getStringAttribute('id');
101
+ }
102
+ set id(value) {
103
+ this._id = value;
104
+ }
105
+ resetId() {
106
+ this._id = undefined;
107
+ }
108
+ // Temporarily expose input value. Use with caution.
109
+ get idInput() {
110
+ return this._id;
111
+ }
112
+ // ingest_vault_ocid - computed: false, optional: true, required: false
113
+ _ingestVaultOcid;
114
+ get ingestVaultOcid() {
115
+ return this.getStringAttribute('ingest_vault_ocid');
116
+ }
117
+ set ingestVaultOcid(value) {
118
+ this._ingestVaultOcid = value;
119
+ }
120
+ resetIngestVaultOcid() {
121
+ this._ingestVaultOcid = undefined;
122
+ }
123
+ // Temporarily expose input value. Use with caution.
124
+ get ingestVaultOcidInput() {
125
+ return this._ingestVaultOcid;
126
+ }
127
+ // instrumentation_type - computed: false, optional: true, required: false
128
+ _instrumentationType;
129
+ get instrumentationType() {
130
+ return this.getStringAttribute('instrumentation_type');
131
+ }
132
+ set instrumentationType(value) {
133
+ this._instrumentationType = value;
134
+ }
135
+ resetInstrumentationType() {
136
+ this._instrumentationType = undefined;
137
+ }
138
+ // Temporarily expose input value. Use with caution.
139
+ get instrumentationTypeInput() {
140
+ return this._instrumentationType;
141
+ }
142
+ // logging_stack_ocid - computed: false, optional: true, required: false
143
+ _loggingStackOcid;
144
+ get loggingStackOcid() {
145
+ return this.getStringAttribute('logging_stack_ocid');
146
+ }
147
+ set loggingStackOcid(value) {
148
+ this._loggingStackOcid = value;
149
+ }
150
+ resetLoggingStackOcid() {
151
+ this._loggingStackOcid = undefined;
152
+ }
153
+ // Temporarily expose input value. Use with caution.
154
+ get loggingStackOcidInput() {
155
+ return this._loggingStackOcid;
156
+ }
157
+ // metric_stack_ocid - computed: false, optional: true, required: false
158
+ _metricStackOcid;
159
+ get metricStackOcid() {
160
+ return this.getStringAttribute('metric_stack_ocid');
161
+ }
162
+ set metricStackOcid(value) {
163
+ this._metricStackOcid = value;
164
+ }
165
+ resetMetricStackOcid() {
166
+ this._metricStackOcid = undefined;
167
+ }
168
+ // Temporarily expose input value. Use with caution.
169
+ get metricStackOcidInput() {
170
+ return this._metricStackOcid;
171
+ }
172
+ // name - computed: false, optional: false, required: true
173
+ _name;
174
+ get name() {
175
+ return this.getStringAttribute('name');
176
+ }
177
+ set name(value) {
178
+ this._name = value;
179
+ }
180
+ // Temporarily expose input value. Use with caution.
181
+ get nameInput() {
182
+ return this._name;
183
+ }
184
+ // oci_client_id - computed: false, optional: false, required: true
185
+ _ociClientId;
186
+ get ociClientId() {
187
+ return this.getStringAttribute('oci_client_id');
188
+ }
189
+ set ociClientId(value) {
190
+ this._ociClientId = value;
191
+ }
192
+ // Temporarily expose input value. Use with caution.
193
+ get ociClientIdInput() {
194
+ return this._ociClientId;
195
+ }
196
+ // oci_client_secret - computed: false, optional: false, required: true
197
+ _ociClientSecret;
198
+ get ociClientSecret() {
199
+ return this.getStringAttribute('oci_client_secret');
200
+ }
201
+ set ociClientSecret(value) {
202
+ this._ociClientSecret = value;
203
+ }
204
+ // Temporarily expose input value. Use with caution.
205
+ get ociClientSecretInput() {
206
+ return this._ociClientSecret;
207
+ }
208
+ // oci_domain_url - computed: false, optional: false, required: true
209
+ _ociDomainUrl;
210
+ get ociDomainUrl() {
211
+ return this.getStringAttribute('oci_domain_url');
212
+ }
213
+ set ociDomainUrl(value) {
214
+ this._ociDomainUrl = value;
215
+ }
216
+ // Temporarily expose input value. Use with caution.
217
+ get ociDomainUrlInput() {
218
+ return this._ociDomainUrl;
219
+ }
220
+ // oci_home_region - computed: false, optional: false, required: true
221
+ _ociHomeRegion;
222
+ get ociHomeRegion() {
223
+ return this.getStringAttribute('oci_home_region');
224
+ }
225
+ set ociHomeRegion(value) {
226
+ this._ociHomeRegion = value;
227
+ }
228
+ // Temporarily expose input value. Use with caution.
229
+ get ociHomeRegionInput() {
230
+ return this._ociHomeRegion;
231
+ }
232
+ // oci_region - computed: false, optional: true, required: false
233
+ _ociRegion;
234
+ get ociRegion() {
235
+ return this.getStringAttribute('oci_region');
236
+ }
237
+ set ociRegion(value) {
238
+ this._ociRegion = value;
239
+ }
240
+ resetOciRegion() {
241
+ this._ociRegion = undefined;
242
+ }
243
+ // Temporarily expose input value. Use with caution.
244
+ get ociRegionInput() {
245
+ return this._ociRegion;
246
+ }
247
+ // tenant_id - computed: false, optional: false, required: true
248
+ _tenantId;
249
+ get tenantId() {
250
+ return this.getStringAttribute('tenant_id');
251
+ }
252
+ set tenantId(value) {
253
+ this._tenantId = value;
254
+ }
255
+ // Temporarily expose input value. Use with caution.
256
+ get tenantIdInput() {
257
+ return this._tenantId;
258
+ }
259
+ // user_vault_ocid - computed: false, optional: true, required: false
260
+ _userVaultOcid;
261
+ get userVaultOcid() {
262
+ return this.getStringAttribute('user_vault_ocid');
263
+ }
264
+ set userVaultOcid(value) {
265
+ this._userVaultOcid = value;
266
+ }
267
+ resetUserVaultOcid() {
268
+ this._userVaultOcid = undefined;
269
+ }
270
+ // Temporarily expose input value. Use with caution.
271
+ get userVaultOcidInput() {
272
+ return this._userVaultOcid;
273
+ }
274
+ // =========
275
+ // SYNTHESIS
276
+ // =========
277
+ synthesizeAttributes() {
278
+ return {
279
+ account_id: cdktf.numberToTerraform(this._accountId),
280
+ compartment_ocid: cdktf.stringToTerraform(this._compartmentOcid),
281
+ id: cdktf.stringToTerraform(this._id),
282
+ ingest_vault_ocid: cdktf.stringToTerraform(this._ingestVaultOcid),
283
+ instrumentation_type: cdktf.stringToTerraform(this._instrumentationType),
284
+ logging_stack_ocid: cdktf.stringToTerraform(this._loggingStackOcid),
285
+ metric_stack_ocid: cdktf.stringToTerraform(this._metricStackOcid),
286
+ name: cdktf.stringToTerraform(this._name),
287
+ oci_client_id: cdktf.stringToTerraform(this._ociClientId),
288
+ oci_client_secret: cdktf.stringToTerraform(this._ociClientSecret),
289
+ oci_domain_url: cdktf.stringToTerraform(this._ociDomainUrl),
290
+ oci_home_region: cdktf.stringToTerraform(this._ociHomeRegion),
291
+ oci_region: cdktf.stringToTerraform(this._ociRegion),
292
+ tenant_id: cdktf.stringToTerraform(this._tenantId),
293
+ user_vault_ocid: cdktf.stringToTerraform(this._userVaultOcid),
294
+ };
295
+ }
296
+ synthesizeHclAttributes() {
297
+ const attrs = {
298
+ account_id: {
299
+ value: cdktf.numberToHclTerraform(this._accountId),
300
+ isBlock: false,
301
+ type: "simple",
302
+ storageClassType: "number",
303
+ },
304
+ compartment_ocid: {
305
+ value: cdktf.stringToHclTerraform(this._compartmentOcid),
306
+ isBlock: false,
307
+ type: "simple",
308
+ storageClassType: "string",
309
+ },
310
+ id: {
311
+ value: cdktf.stringToHclTerraform(this._id),
312
+ isBlock: false,
313
+ type: "simple",
314
+ storageClassType: "string",
315
+ },
316
+ ingest_vault_ocid: {
317
+ value: cdktf.stringToHclTerraform(this._ingestVaultOcid),
318
+ isBlock: false,
319
+ type: "simple",
320
+ storageClassType: "string",
321
+ },
322
+ instrumentation_type: {
323
+ value: cdktf.stringToHclTerraform(this._instrumentationType),
324
+ isBlock: false,
325
+ type: "simple",
326
+ storageClassType: "string",
327
+ },
328
+ logging_stack_ocid: {
329
+ value: cdktf.stringToHclTerraform(this._loggingStackOcid),
330
+ isBlock: false,
331
+ type: "simple",
332
+ storageClassType: "string",
333
+ },
334
+ metric_stack_ocid: {
335
+ value: cdktf.stringToHclTerraform(this._metricStackOcid),
336
+ isBlock: false,
337
+ type: "simple",
338
+ storageClassType: "string",
339
+ },
340
+ name: {
341
+ value: cdktf.stringToHclTerraform(this._name),
342
+ isBlock: false,
343
+ type: "simple",
344
+ storageClassType: "string",
345
+ },
346
+ oci_client_id: {
347
+ value: cdktf.stringToHclTerraform(this._ociClientId),
348
+ isBlock: false,
349
+ type: "simple",
350
+ storageClassType: "string",
351
+ },
352
+ oci_client_secret: {
353
+ value: cdktf.stringToHclTerraform(this._ociClientSecret),
354
+ isBlock: false,
355
+ type: "simple",
356
+ storageClassType: "string",
357
+ },
358
+ oci_domain_url: {
359
+ value: cdktf.stringToHclTerraform(this._ociDomainUrl),
360
+ isBlock: false,
361
+ type: "simple",
362
+ storageClassType: "string",
363
+ },
364
+ oci_home_region: {
365
+ value: cdktf.stringToHclTerraform(this._ociHomeRegion),
366
+ isBlock: false,
367
+ type: "simple",
368
+ storageClassType: "string",
369
+ },
370
+ oci_region: {
371
+ value: cdktf.stringToHclTerraform(this._ociRegion),
372
+ isBlock: false,
373
+ type: "simple",
374
+ storageClassType: "string",
375
+ },
376
+ tenant_id: {
377
+ value: cdktf.stringToHclTerraform(this._tenantId),
378
+ isBlock: false,
379
+ type: "simple",
380
+ storageClassType: "string",
381
+ },
382
+ user_vault_ocid: {
383
+ value: cdktf.stringToHclTerraform(this._userVaultOcid),
384
+ isBlock: false,
385
+ type: "simple",
386
+ storageClassType: "string",
387
+ },
388
+ };
389
+ // remove undefined attributes
390
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
391
+ }
392
+ }
@@ -0,0 +1,77 @@
1
+ import { Construct } from 'constructs';
2
+ import * as cdktf from 'cdktf';
3
+ export interface DataNewrelicAccountConfig 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/account#account_id DataNewrelicAccount#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/account#id DataNewrelicAccount#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 name of the account in New Relic.
19
+ *
20
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/account#name DataNewrelicAccount#name}
21
+ */
22
+ readonly name?: string;
23
+ /**
24
+ * The scope of the account in New Relic. Valid values are "global" and "in_region". Defaults to "in_region".
25
+ *
26
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/account#scope DataNewrelicAccount#scope}
27
+ */
28
+ readonly scope?: string;
29
+ }
30
+ /**
31
+ * Represents a {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/account newrelic_account}
32
+ */
33
+ export declare class DataNewrelicAccount extends cdktf.TerraformDataSource {
34
+ static readonly tfResourceType = "newrelic_account";
35
+ /**
36
+ * Generates CDKTF code for importing a DataNewrelicAccount 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 DataNewrelicAccount to import
39
+ * @param importFromId The id of the existing DataNewrelicAccount that should be imported. Refer to the {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/account#import import section} in the documentation of this resource for the id to use
40
+ * @param provider? Optional instance of the provider where the DataNewrelicAccount 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/account newrelic_account} 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 DataNewrelicAccountConfig = {}
49
+ */
50
+ constructor(scope: Construct, id: string, config?: DataNewrelicAccountConfig);
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 _name?;
62
+ get name(): string;
63
+ set name(value: string);
64
+ resetName(): void;
65
+ get nameInput(): string;
66
+ private _scope?;
67
+ get scope(): string;
68
+ set scope(value: string);
69
+ resetScope(): void;
70
+ get scopeInput(): string;
71
+ protected synthesizeAttributes(): {
72
+ [name: string]: any;
73
+ };
74
+ protected synthesizeHclAttributes(): {
75
+ [name: string]: any;
76
+ };
77
+ }
@@ -0,0 +1,160 @@
1
+ // https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/account
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/account newrelic_account}
6
+ */
7
+ export class DataNewrelicAccount extends cdktf.TerraformDataSource {
8
+ // =================
9
+ // STATIC PROPERTIES
10
+ // =================
11
+ static tfResourceType = "newrelic_account";
12
+ // ==============
13
+ // STATIC Methods
14
+ // ==============
15
+ /**
16
+ * Generates CDKTF code for importing a DataNewrelicAccount 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 DataNewrelicAccount to import
19
+ * @param importFromId The id of the existing DataNewrelicAccount that should be imported. Refer to the {@link https://registry.terraform.io/providers/newrelic/newrelic/3.75.4/docs/data-sources/account#import import section} in the documentation of this resource for the id to use
20
+ * @param provider? Optional instance of the provider where the DataNewrelicAccount to import is found
21
+ */
22
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
23
+ return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "newrelic_account", 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/account newrelic_account} 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 DataNewrelicAccountConfig = {}
34
+ */
35
+ constructor(scope, id, config = {}) {
36
+ super(scope, id, {
37
+ terraformResourceType: 'newrelic_account',
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._name = config.name;
54
+ this._scope = config.scope;
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
+ // name - computed: false, optional: true, required: false
90
+ _name;
91
+ get name() {
92
+ return this.getStringAttribute('name');
93
+ }
94
+ set name(value) {
95
+ this._name = value;
96
+ }
97
+ resetName() {
98
+ this._name = undefined;
99
+ }
100
+ // Temporarily expose input value. Use with caution.
101
+ get nameInput() {
102
+ return this._name;
103
+ }
104
+ // scope - computed: false, optional: true, required: false
105
+ _scope;
106
+ get scope() {
107
+ return this.getStringAttribute('scope');
108
+ }
109
+ set scope(value) {
110
+ this._scope = value;
111
+ }
112
+ resetScope() {
113
+ this._scope = undefined;
114
+ }
115
+ // Temporarily expose input value. Use with caution.
116
+ get scopeInput() {
117
+ return this._scope;
118
+ }
119
+ // =========
120
+ // SYNTHESIS
121
+ // =========
122
+ synthesizeAttributes() {
123
+ return {
124
+ account_id: cdktf.numberToTerraform(this._accountId),
125
+ id: cdktf.stringToTerraform(this._id),
126
+ name: cdktf.stringToTerraform(this._name),
127
+ scope: cdktf.stringToTerraform(this._scope),
128
+ };
129
+ }
130
+ synthesizeHclAttributes() {
131
+ const attrs = {
132
+ account_id: {
133
+ value: cdktf.numberToHclTerraform(this._accountId),
134
+ isBlock: false,
135
+ type: "simple",
136
+ storageClassType: "number",
137
+ },
138
+ id: {
139
+ value: cdktf.stringToHclTerraform(this._id),
140
+ isBlock: false,
141
+ type: "simple",
142
+ storageClassType: "string",
143
+ },
144
+ name: {
145
+ value: cdktf.stringToHclTerraform(this._name),
146
+ isBlock: false,
147
+ type: "simple",
148
+ storageClassType: "string",
149
+ },
150
+ scope: {
151
+ value: cdktf.stringToHclTerraform(this._scope),
152
+ isBlock: false,
153
+ type: "simple",
154
+ storageClassType: "string",
155
+ },
156
+ };
157
+ // remove undefined attributes
158
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
159
+ }
160
+ }