@cdktf-providers/astronomer-astro 1.0.8

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 (69) hide show
  1. package/LICENSE +355 -0
  2. package/README.md +19 -0
  3. package/dist/alert/index.d.ts +566 -0
  4. package/dist/alert/index.js +1489 -0
  5. package/dist/api-token/index.d.ts +199 -0
  6. package/dist/api-token/index.js +503 -0
  7. package/dist/cluster/index.d.ts +305 -0
  8. package/dist/cluster/index.js +755 -0
  9. package/dist/data-astro-alert/index.d.ts +277 -0
  10. package/dist/data-astro-alert/index.js +762 -0
  11. package/dist/data-astro-alerts/index.d.ts +232 -0
  12. package/dist/data-astro-alerts/index.js +600 -0
  13. package/dist/data-astro-api-token/index.d.ts +135 -0
  14. package/dist/data-astro-api-token/index.js +353 -0
  15. package/dist/data-astro-api-tokens/index.d.ts +196 -0
  16. package/dist/data-astro-api-tokens/index.js +502 -0
  17. package/dist/data-astro-cluster/index.d.ts +211 -0
  18. package/dist/data-astro-cluster/index.js +535 -0
  19. package/dist/data-astro-cluster-options/index.d.ts +255 -0
  20. package/dist/data-astro-cluster-options/index.js +640 -0
  21. package/dist/data-astro-clusters/index.d.ts +263 -0
  22. package/dist/data-astro-clusters/index.js +661 -0
  23. package/dist/data-astro-deployment/index.d.ts +355 -0
  24. package/dist/data-astro-deployment/index.js +1009 -0
  25. package/dist/data-astro-deployment-options/index.d.ts +475 -0
  26. package/dist/data-astro-deployment-options/index.js +1274 -0
  27. package/dist/data-astro-deployments/index.d.ts +416 -0
  28. package/dist/data-astro-deployments/index.js +1158 -0
  29. package/dist/data-astro-notification-channel/index.d.ts +122 -0
  30. package/dist/data-astro-notification-channel/index.js +345 -0
  31. package/dist/data-astro-notification-channels/index.d.ts +201 -0
  32. package/dist/data-astro-notification-channels/index.js +540 -0
  33. package/dist/data-astro-organization/index.d.ts +87 -0
  34. package/dist/data-astro-organization/index.js +251 -0
  35. package/dist/data-astro-team/index.d.ts +204 -0
  36. package/dist/data-astro-team/index.js +507 -0
  37. package/dist/data-astro-teams/index.d.ts +247 -0
  38. package/dist/data-astro-teams/index.js +610 -0
  39. package/dist/data-astro-user/index.d.ts +122 -0
  40. package/dist/data-astro-user/index.js +274 -0
  41. package/dist/data-astro-users/index.d.ts +174 -0
  42. package/dist/data-astro-users/index.js +400 -0
  43. package/dist/data-astro-workspace/index.d.ts +94 -0
  44. package/dist/data-astro-workspace/index.js +250 -0
  45. package/dist/data-astro-workspaces/index.d.ts +146 -0
  46. package/dist/data-astro-workspaces/index.js +376 -0
  47. package/dist/deployment/index.d.ts +813 -0
  48. package/dist/deployment/index.js +2083 -0
  49. package/dist/hybrid-cluster-workspace-authorization/index.d.ts +53 -0
  50. package/dist/hybrid-cluster-workspace-authorization/index.js +111 -0
  51. package/dist/index.d.ts +31 -0
  52. package/dist/index.js +32 -0
  53. package/dist/lazy-index.d.ts +0 -0
  54. package/dist/lazy-index.js +32 -0
  55. package/dist/notification-channel/index.d.ts +235 -0
  56. package/dist/notification-channel/index.js +608 -0
  57. package/dist/provider/index.d.ts +75 -0
  58. package/dist/provider/index.js +151 -0
  59. package/dist/team/index.d.ts +251 -0
  60. package/dist/team/index.js +622 -0
  61. package/dist/team-roles/index.d.ts +180 -0
  62. package/dist/team-roles/index.js +414 -0
  63. package/dist/user-invite/index.d.ts +99 -0
  64. package/dist/user-invite/index.js +262 -0
  65. package/dist/user-roles/index.d.ts +180 -0
  66. package/dist/user-roles/index.js +414 -0
  67. package/dist/workspace/index.d.ts +109 -0
  68. package/dist/workspace/index.js +282 -0
  69. package/package.json +51 -0
@@ -0,0 +1,640 @@
1
+ // https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/cluster_options
2
+ // generated from terraform resource schema
3
+ import * as cdktf from 'cdktf';
4
+ export function dataAstroClusterOptionsClusterOptionsDatabaseInstancesToTerraform(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
+ }
13
+ export function dataAstroClusterOptionsClusterOptionsDatabaseInstancesToHclTerraform(struct) {
14
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
15
+ return struct;
16
+ }
17
+ if (cdktf.isComplexElement(struct)) {
18
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
19
+ }
20
+ const attrs = {};
21
+ return attrs;
22
+ }
23
+ export class DataAstroClusterOptionsClusterOptionsDatabaseInstancesOutputReference extends cdktf.ComplexObject {
24
+ isEmptyObject = false;
25
+ /**
26
+ * @param terraformResource The parent resource
27
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
28
+ * @param complexObjectIndex the index of this item in the list
29
+ * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
30
+ */
31
+ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
32
+ super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
33
+ }
34
+ get internalValue() {
35
+ let hasAnyValues = this.isEmptyObject;
36
+ const internalValueResult = {};
37
+ return hasAnyValues ? internalValueResult : undefined;
38
+ }
39
+ set internalValue(value) {
40
+ if (value === undefined) {
41
+ this.isEmptyObject = false;
42
+ }
43
+ else {
44
+ this.isEmptyObject = Object.keys(value).length === 0;
45
+ }
46
+ }
47
+ // cpu - computed: true, optional: false, required: false
48
+ get cpu() {
49
+ return this.getNumberAttribute('cpu');
50
+ }
51
+ // memory - computed: true, optional: false, required: false
52
+ get memory() {
53
+ return this.getStringAttribute('memory');
54
+ }
55
+ // name - computed: true, optional: false, required: false
56
+ get name() {
57
+ return this.getStringAttribute('name');
58
+ }
59
+ }
60
+ export class DataAstroClusterOptionsClusterOptionsDatabaseInstancesList extends cdktf.ComplexList {
61
+ terraformResource;
62
+ terraformAttribute;
63
+ wrapsSet;
64
+ /**
65
+ * @param terraformResource The parent resource
66
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
67
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
68
+ */
69
+ constructor(terraformResource, terraformAttribute, wrapsSet) {
70
+ super(terraformResource, terraformAttribute, wrapsSet);
71
+ this.terraformResource = terraformResource;
72
+ this.terraformAttribute = terraformAttribute;
73
+ this.wrapsSet = wrapsSet;
74
+ }
75
+ /**
76
+ * @param index the index of the item to return
77
+ */
78
+ get(index) {
79
+ return new DataAstroClusterOptionsClusterOptionsDatabaseInstancesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
80
+ }
81
+ }
82
+ export function dataAstroClusterOptionsClusterOptionsDefaultDatabaseInstanceToTerraform(struct) {
83
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
84
+ return struct;
85
+ }
86
+ if (cdktf.isComplexElement(struct)) {
87
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
88
+ }
89
+ return {};
90
+ }
91
+ export function dataAstroClusterOptionsClusterOptionsDefaultDatabaseInstanceToHclTerraform(struct) {
92
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
93
+ return struct;
94
+ }
95
+ if (cdktf.isComplexElement(struct)) {
96
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
97
+ }
98
+ const attrs = {};
99
+ return attrs;
100
+ }
101
+ export class DataAstroClusterOptionsClusterOptionsDefaultDatabaseInstanceOutputReference extends cdktf.ComplexObject {
102
+ isEmptyObject = false;
103
+ /**
104
+ * @param terraformResource The parent resource
105
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
106
+ */
107
+ constructor(terraformResource, terraformAttribute) {
108
+ super(terraformResource, terraformAttribute, false);
109
+ }
110
+ get internalValue() {
111
+ let hasAnyValues = this.isEmptyObject;
112
+ const internalValueResult = {};
113
+ return hasAnyValues ? internalValueResult : undefined;
114
+ }
115
+ set internalValue(value) {
116
+ if (value === undefined) {
117
+ this.isEmptyObject = false;
118
+ }
119
+ else {
120
+ this.isEmptyObject = Object.keys(value).length === 0;
121
+ }
122
+ }
123
+ // cpu - computed: true, optional: false, required: false
124
+ get cpu() {
125
+ return this.getNumberAttribute('cpu');
126
+ }
127
+ // memory - computed: true, optional: false, required: false
128
+ get memory() {
129
+ return this.getStringAttribute('memory');
130
+ }
131
+ // name - computed: true, optional: false, required: false
132
+ get name() {
133
+ return this.getStringAttribute('name');
134
+ }
135
+ }
136
+ export function dataAstroClusterOptionsClusterOptionsDefaultNodeInstanceToTerraform(struct) {
137
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
138
+ return struct;
139
+ }
140
+ if (cdktf.isComplexElement(struct)) {
141
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
142
+ }
143
+ return {};
144
+ }
145
+ export function dataAstroClusterOptionsClusterOptionsDefaultNodeInstanceToHclTerraform(struct) {
146
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
147
+ return struct;
148
+ }
149
+ if (cdktf.isComplexElement(struct)) {
150
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
151
+ }
152
+ const attrs = {};
153
+ return attrs;
154
+ }
155
+ export class DataAstroClusterOptionsClusterOptionsDefaultNodeInstanceOutputReference extends cdktf.ComplexObject {
156
+ isEmptyObject = false;
157
+ /**
158
+ * @param terraformResource The parent resource
159
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
160
+ */
161
+ constructor(terraformResource, terraformAttribute) {
162
+ super(terraformResource, terraformAttribute, false);
163
+ }
164
+ get internalValue() {
165
+ let hasAnyValues = this.isEmptyObject;
166
+ const internalValueResult = {};
167
+ return hasAnyValues ? internalValueResult : undefined;
168
+ }
169
+ set internalValue(value) {
170
+ if (value === undefined) {
171
+ this.isEmptyObject = false;
172
+ }
173
+ else {
174
+ this.isEmptyObject = Object.keys(value).length === 0;
175
+ }
176
+ }
177
+ // cpu - computed: true, optional: false, required: false
178
+ get cpu() {
179
+ return this.getNumberAttribute('cpu');
180
+ }
181
+ // memory - computed: true, optional: false, required: false
182
+ get memory() {
183
+ return this.getStringAttribute('memory');
184
+ }
185
+ // name - computed: true, optional: false, required: false
186
+ get name() {
187
+ return this.getStringAttribute('name');
188
+ }
189
+ }
190
+ export function dataAstroClusterOptionsClusterOptionsDefaultRegionToTerraform(struct) {
191
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
192
+ return struct;
193
+ }
194
+ if (cdktf.isComplexElement(struct)) {
195
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
196
+ }
197
+ return {};
198
+ }
199
+ export function dataAstroClusterOptionsClusterOptionsDefaultRegionToHclTerraform(struct) {
200
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
201
+ return struct;
202
+ }
203
+ if (cdktf.isComplexElement(struct)) {
204
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
205
+ }
206
+ const attrs = {};
207
+ return attrs;
208
+ }
209
+ export class DataAstroClusterOptionsClusterOptionsDefaultRegionOutputReference extends cdktf.ComplexObject {
210
+ isEmptyObject = false;
211
+ /**
212
+ * @param terraformResource The parent resource
213
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
214
+ */
215
+ constructor(terraformResource, terraformAttribute) {
216
+ super(terraformResource, terraformAttribute, false);
217
+ }
218
+ get internalValue() {
219
+ let hasAnyValues = this.isEmptyObject;
220
+ const internalValueResult = {};
221
+ return hasAnyValues ? internalValueResult : undefined;
222
+ }
223
+ set internalValue(value) {
224
+ if (value === undefined) {
225
+ this.isEmptyObject = false;
226
+ }
227
+ else {
228
+ this.isEmptyObject = Object.keys(value).length === 0;
229
+ }
230
+ }
231
+ // banned_instances - computed: true, optional: false, required: false
232
+ get bannedInstances() {
233
+ return cdktf.Fn.tolist(this.getListAttribute('banned_instances'));
234
+ }
235
+ // limited - computed: true, optional: false, required: false
236
+ get limited() {
237
+ return this.getBooleanAttribute('limited');
238
+ }
239
+ // name - computed: true, optional: false, required: false
240
+ get name() {
241
+ return this.getStringAttribute('name');
242
+ }
243
+ }
244
+ export function dataAstroClusterOptionsClusterOptionsNodeInstancesToTerraform(struct) {
245
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
246
+ return struct;
247
+ }
248
+ if (cdktf.isComplexElement(struct)) {
249
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
250
+ }
251
+ return {};
252
+ }
253
+ export function dataAstroClusterOptionsClusterOptionsNodeInstancesToHclTerraform(struct) {
254
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
255
+ return struct;
256
+ }
257
+ if (cdktf.isComplexElement(struct)) {
258
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
259
+ }
260
+ const attrs = {};
261
+ return attrs;
262
+ }
263
+ export class DataAstroClusterOptionsClusterOptionsNodeInstancesOutputReference extends cdktf.ComplexObject {
264
+ isEmptyObject = false;
265
+ /**
266
+ * @param terraformResource The parent resource
267
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
268
+ * @param complexObjectIndex the index of this item in the list
269
+ * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
270
+ */
271
+ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
272
+ super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
273
+ }
274
+ get internalValue() {
275
+ let hasAnyValues = this.isEmptyObject;
276
+ const internalValueResult = {};
277
+ return hasAnyValues ? internalValueResult : undefined;
278
+ }
279
+ set internalValue(value) {
280
+ if (value === undefined) {
281
+ this.isEmptyObject = false;
282
+ }
283
+ else {
284
+ this.isEmptyObject = Object.keys(value).length === 0;
285
+ }
286
+ }
287
+ // cpu - computed: true, optional: false, required: false
288
+ get cpu() {
289
+ return this.getNumberAttribute('cpu');
290
+ }
291
+ // memory - computed: true, optional: false, required: false
292
+ get memory() {
293
+ return this.getStringAttribute('memory');
294
+ }
295
+ // name - computed: true, optional: false, required: false
296
+ get name() {
297
+ return this.getStringAttribute('name');
298
+ }
299
+ }
300
+ export class DataAstroClusterOptionsClusterOptionsNodeInstancesList extends cdktf.ComplexList {
301
+ terraformResource;
302
+ terraformAttribute;
303
+ wrapsSet;
304
+ /**
305
+ * @param terraformResource The parent resource
306
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
307
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
308
+ */
309
+ constructor(terraformResource, terraformAttribute, wrapsSet) {
310
+ super(terraformResource, terraformAttribute, wrapsSet);
311
+ this.terraformResource = terraformResource;
312
+ this.terraformAttribute = terraformAttribute;
313
+ this.wrapsSet = wrapsSet;
314
+ }
315
+ /**
316
+ * @param index the index of the item to return
317
+ */
318
+ get(index) {
319
+ return new DataAstroClusterOptionsClusterOptionsNodeInstancesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
320
+ }
321
+ }
322
+ export function dataAstroClusterOptionsClusterOptionsRegionsToTerraform(struct) {
323
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
324
+ return struct;
325
+ }
326
+ if (cdktf.isComplexElement(struct)) {
327
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
328
+ }
329
+ return {};
330
+ }
331
+ export function dataAstroClusterOptionsClusterOptionsRegionsToHclTerraform(struct) {
332
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
333
+ return struct;
334
+ }
335
+ if (cdktf.isComplexElement(struct)) {
336
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
337
+ }
338
+ const attrs = {};
339
+ return attrs;
340
+ }
341
+ export class DataAstroClusterOptionsClusterOptionsRegionsOutputReference extends cdktf.ComplexObject {
342
+ isEmptyObject = false;
343
+ /**
344
+ * @param terraformResource The parent resource
345
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
346
+ * @param complexObjectIndex the index of this item in the list
347
+ * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
348
+ */
349
+ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
350
+ super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
351
+ }
352
+ get internalValue() {
353
+ let hasAnyValues = this.isEmptyObject;
354
+ const internalValueResult = {};
355
+ return hasAnyValues ? internalValueResult : undefined;
356
+ }
357
+ set internalValue(value) {
358
+ if (value === undefined) {
359
+ this.isEmptyObject = false;
360
+ }
361
+ else {
362
+ this.isEmptyObject = Object.keys(value).length === 0;
363
+ }
364
+ }
365
+ // banned_instances - computed: true, optional: false, required: false
366
+ get bannedInstances() {
367
+ return cdktf.Fn.tolist(this.getListAttribute('banned_instances'));
368
+ }
369
+ // limited - computed: true, optional: false, required: false
370
+ get limited() {
371
+ return this.getBooleanAttribute('limited');
372
+ }
373
+ // name - computed: true, optional: false, required: false
374
+ get name() {
375
+ return this.getStringAttribute('name');
376
+ }
377
+ }
378
+ export class DataAstroClusterOptionsClusterOptionsRegionsList extends cdktf.ComplexList {
379
+ terraformResource;
380
+ terraformAttribute;
381
+ wrapsSet;
382
+ /**
383
+ * @param terraformResource The parent resource
384
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
385
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
386
+ */
387
+ constructor(terraformResource, terraformAttribute, wrapsSet) {
388
+ super(terraformResource, terraformAttribute, wrapsSet);
389
+ this.terraformResource = terraformResource;
390
+ this.terraformAttribute = terraformAttribute;
391
+ this.wrapsSet = wrapsSet;
392
+ }
393
+ /**
394
+ * @param index the index of the item to return
395
+ */
396
+ get(index) {
397
+ return new DataAstroClusterOptionsClusterOptionsRegionsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
398
+ }
399
+ }
400
+ export function dataAstroClusterOptionsClusterOptionsToTerraform(struct) {
401
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
402
+ return struct;
403
+ }
404
+ if (cdktf.isComplexElement(struct)) {
405
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
406
+ }
407
+ return {};
408
+ }
409
+ export function dataAstroClusterOptionsClusterOptionsToHclTerraform(struct) {
410
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
411
+ return struct;
412
+ }
413
+ if (cdktf.isComplexElement(struct)) {
414
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
415
+ }
416
+ const attrs = {};
417
+ return attrs;
418
+ }
419
+ export class DataAstroClusterOptionsClusterOptionsOutputReference extends cdktf.ComplexObject {
420
+ isEmptyObject = false;
421
+ /**
422
+ * @param terraformResource The parent resource
423
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
424
+ * @param complexObjectIndex the index of this item in the list
425
+ * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
426
+ */
427
+ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
428
+ super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
429
+ }
430
+ get internalValue() {
431
+ let hasAnyValues = this.isEmptyObject;
432
+ const internalValueResult = {};
433
+ return hasAnyValues ? internalValueResult : undefined;
434
+ }
435
+ set internalValue(value) {
436
+ if (value === undefined) {
437
+ this.isEmptyObject = false;
438
+ }
439
+ else {
440
+ this.isEmptyObject = Object.keys(value).length === 0;
441
+ }
442
+ }
443
+ // database_instances - computed: true, optional: false, required: false
444
+ _databaseInstances = new DataAstroClusterOptionsClusterOptionsDatabaseInstancesList(this, "database_instances", true);
445
+ get databaseInstances() {
446
+ return this._databaseInstances;
447
+ }
448
+ // default_database_instance - computed: true, optional: false, required: false
449
+ _defaultDatabaseInstance = new DataAstroClusterOptionsClusterOptionsDefaultDatabaseInstanceOutputReference(this, "default_database_instance");
450
+ get defaultDatabaseInstance() {
451
+ return this._defaultDatabaseInstance;
452
+ }
453
+ // default_node_instance - computed: true, optional: false, required: false
454
+ _defaultNodeInstance = new DataAstroClusterOptionsClusterOptionsDefaultNodeInstanceOutputReference(this, "default_node_instance");
455
+ get defaultNodeInstance() {
456
+ return this._defaultNodeInstance;
457
+ }
458
+ // default_pod_subnet_range - computed: true, optional: false, required: false
459
+ get defaultPodSubnetRange() {
460
+ return this.getStringAttribute('default_pod_subnet_range');
461
+ }
462
+ // default_region - computed: true, optional: false, required: false
463
+ _defaultRegion = new DataAstroClusterOptionsClusterOptionsDefaultRegionOutputReference(this, "default_region");
464
+ get defaultRegion() {
465
+ return this._defaultRegion;
466
+ }
467
+ // default_service_peering_range - computed: true, optional: false, required: false
468
+ get defaultServicePeeringRange() {
469
+ return this.getStringAttribute('default_service_peering_range');
470
+ }
471
+ // default_service_subnet_range - computed: true, optional: false, required: false
472
+ get defaultServiceSubnetRange() {
473
+ return this.getStringAttribute('default_service_subnet_range');
474
+ }
475
+ // default_vpc_subnet_range - computed: true, optional: false, required: false
476
+ get defaultVpcSubnetRange() {
477
+ return this.getStringAttribute('default_vpc_subnet_range');
478
+ }
479
+ // node_count_default - computed: true, optional: false, required: false
480
+ get nodeCountDefault() {
481
+ return this.getNumberAttribute('node_count_default');
482
+ }
483
+ // node_count_max - computed: true, optional: false, required: false
484
+ get nodeCountMax() {
485
+ return this.getNumberAttribute('node_count_max');
486
+ }
487
+ // node_count_min - computed: true, optional: false, required: false
488
+ get nodeCountMin() {
489
+ return this.getNumberAttribute('node_count_min');
490
+ }
491
+ // node_instances - computed: true, optional: false, required: false
492
+ _nodeInstances = new DataAstroClusterOptionsClusterOptionsNodeInstancesList(this, "node_instances", true);
493
+ get nodeInstances() {
494
+ return this._nodeInstances;
495
+ }
496
+ // provider - computed: true, optional: false, required: false
497
+ get provider() {
498
+ return this.getStringAttribute('provider');
499
+ }
500
+ // regions - computed: true, optional: false, required: false
501
+ _regions = new DataAstroClusterOptionsClusterOptionsRegionsList(this, "regions", true);
502
+ get regions() {
503
+ return this._regions;
504
+ }
505
+ }
506
+ export class DataAstroClusterOptionsClusterOptionsList extends cdktf.ComplexList {
507
+ terraformResource;
508
+ terraformAttribute;
509
+ wrapsSet;
510
+ /**
511
+ * @param terraformResource The parent resource
512
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
513
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
514
+ */
515
+ constructor(terraformResource, terraformAttribute, wrapsSet) {
516
+ super(terraformResource, terraformAttribute, wrapsSet);
517
+ this.terraformResource = terraformResource;
518
+ this.terraformAttribute = terraformAttribute;
519
+ this.wrapsSet = wrapsSet;
520
+ }
521
+ /**
522
+ * @param index the index of the item to return
523
+ */
524
+ get(index) {
525
+ return new DataAstroClusterOptionsClusterOptionsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
526
+ }
527
+ }
528
+ /**
529
+ * Represents a {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/cluster_options astro_cluster_options}
530
+ */
531
+ export class DataAstroClusterOptions extends cdktf.TerraformDataSource {
532
+ // =================
533
+ // STATIC PROPERTIES
534
+ // =================
535
+ static tfResourceType = "astro_cluster_options";
536
+ // ==============
537
+ // STATIC Methods
538
+ // ==============
539
+ /**
540
+ * Generates CDKTF code for importing a DataAstroClusterOptions resource upon running "cdktf plan <stack-name>"
541
+ * @param scope The scope in which to define this construct
542
+ * @param importToId The construct id used in the generated config for the DataAstroClusterOptions to import
543
+ * @param importFromId The id of the existing DataAstroClusterOptions that should be imported. Refer to the {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/cluster_options#import import section} in the documentation of this resource for the id to use
544
+ * @param provider? Optional instance of the provider where the DataAstroClusterOptions to import is found
545
+ */
546
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
547
+ return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "astro_cluster_options", importId: importFromId, provider });
548
+ }
549
+ // ===========
550
+ // INITIALIZER
551
+ // ===========
552
+ /**
553
+ * Create a new {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/cluster_options astro_cluster_options} Data Source
554
+ *
555
+ * @param scope The scope in which to define this construct
556
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
557
+ * @param options DataAstroClusterOptionsConfig
558
+ */
559
+ constructor(scope, id, config) {
560
+ super(scope, id, {
561
+ terraformResourceType: 'astro_cluster_options',
562
+ terraformGeneratorMetadata: {
563
+ providerName: 'astro',
564
+ providerVersion: '1.0.8',
565
+ providerVersionConstraint: '1.0.8'
566
+ },
567
+ provider: config.provider,
568
+ dependsOn: config.dependsOn,
569
+ count: config.count,
570
+ lifecycle: config.lifecycle,
571
+ provisioners: config.provisioners,
572
+ connection: config.connection,
573
+ forEach: config.forEach
574
+ });
575
+ this._cloudProvider = config.cloudProvider;
576
+ this._type = config.type;
577
+ }
578
+ // ==========
579
+ // ATTRIBUTES
580
+ // ==========
581
+ // cloud_provider - computed: false, optional: true, required: false
582
+ _cloudProvider;
583
+ get cloudProvider() {
584
+ return this.getStringAttribute('cloud_provider');
585
+ }
586
+ set cloudProvider(value) {
587
+ this._cloudProvider = value;
588
+ }
589
+ resetCloudProvider() {
590
+ this._cloudProvider = undefined;
591
+ }
592
+ // Temporarily expose input value. Use with caution.
593
+ get cloudProviderInput() {
594
+ return this._cloudProvider;
595
+ }
596
+ // cluster_options - computed: true, optional: false, required: false
597
+ _clusterOptions = new DataAstroClusterOptionsClusterOptionsList(this, "cluster_options", true);
598
+ get clusterOptions() {
599
+ return this._clusterOptions;
600
+ }
601
+ // type - computed: false, optional: false, required: true
602
+ _type;
603
+ get type() {
604
+ return this.getStringAttribute('type');
605
+ }
606
+ set type(value) {
607
+ this._type = value;
608
+ }
609
+ // Temporarily expose input value. Use with caution.
610
+ get typeInput() {
611
+ return this._type;
612
+ }
613
+ // =========
614
+ // SYNTHESIS
615
+ // =========
616
+ synthesizeAttributes() {
617
+ return {
618
+ cloud_provider: cdktf.stringToTerraform(this._cloudProvider),
619
+ type: cdktf.stringToTerraform(this._type),
620
+ };
621
+ }
622
+ synthesizeHclAttributes() {
623
+ const attrs = {
624
+ cloud_provider: {
625
+ value: cdktf.stringToHclTerraform(this._cloudProvider),
626
+ isBlock: false,
627
+ type: "simple",
628
+ storageClassType: "string",
629
+ },
630
+ type: {
631
+ value: cdktf.stringToHclTerraform(this._type),
632
+ isBlock: false,
633
+ type: "simple",
634
+ storageClassType: "string",
635
+ },
636
+ };
637
+ // remove undefined attributes
638
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
639
+ }
640
+ }