@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,1158 @@
1
+ // https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/deployments
2
+ // generated from terraform resource schema
3
+ import * as cdktf from 'cdktf';
4
+ export function dataAstroDeploymentsDeploymentsCreatedByToTerraform(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 dataAstroDeploymentsDeploymentsCreatedByToHclTerraform(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 DataAstroDeploymentsDeploymentsCreatedByOutputReference 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
+ */
29
+ constructor(terraformResource, terraformAttribute) {
30
+ super(terraformResource, terraformAttribute, false);
31
+ }
32
+ get internalValue() {
33
+ let hasAnyValues = this.isEmptyObject;
34
+ const internalValueResult = {};
35
+ return hasAnyValues ? internalValueResult : undefined;
36
+ }
37
+ set internalValue(value) {
38
+ if (value === undefined) {
39
+ this.isEmptyObject = false;
40
+ }
41
+ else {
42
+ this.isEmptyObject = Object.keys(value).length === 0;
43
+ }
44
+ }
45
+ // api_token_name - computed: true, optional: false, required: false
46
+ get apiTokenName() {
47
+ return this.getStringAttribute('api_token_name');
48
+ }
49
+ // avatar_url - computed: true, optional: false, required: false
50
+ get avatarUrl() {
51
+ return this.getStringAttribute('avatar_url');
52
+ }
53
+ // full_name - computed: true, optional: false, required: false
54
+ get fullName() {
55
+ return this.getStringAttribute('full_name');
56
+ }
57
+ // id - computed: true, optional: false, required: false
58
+ get id() {
59
+ return this.getStringAttribute('id');
60
+ }
61
+ // subject_type - computed: true, optional: false, required: false
62
+ get subjectType() {
63
+ return this.getStringAttribute('subject_type');
64
+ }
65
+ // username - computed: true, optional: false, required: false
66
+ get username() {
67
+ return this.getStringAttribute('username');
68
+ }
69
+ }
70
+ export function dataAstroDeploymentsDeploymentsEnvironmentVariablesToTerraform(struct) {
71
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
72
+ return struct;
73
+ }
74
+ if (cdktf.isComplexElement(struct)) {
75
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
76
+ }
77
+ return {};
78
+ }
79
+ export function dataAstroDeploymentsDeploymentsEnvironmentVariablesToHclTerraform(struct) {
80
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
81
+ return struct;
82
+ }
83
+ if (cdktf.isComplexElement(struct)) {
84
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
85
+ }
86
+ const attrs = {};
87
+ return attrs;
88
+ }
89
+ export class DataAstroDeploymentsDeploymentsEnvironmentVariablesOutputReference extends cdktf.ComplexObject {
90
+ isEmptyObject = false;
91
+ /**
92
+ * @param terraformResource The parent resource
93
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
94
+ * @param complexObjectIndex the index of this item in the list
95
+ * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
96
+ */
97
+ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
98
+ super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
99
+ }
100
+ get internalValue() {
101
+ let hasAnyValues = this.isEmptyObject;
102
+ const internalValueResult = {};
103
+ return hasAnyValues ? internalValueResult : undefined;
104
+ }
105
+ set internalValue(value) {
106
+ if (value === undefined) {
107
+ this.isEmptyObject = false;
108
+ }
109
+ else {
110
+ this.isEmptyObject = Object.keys(value).length === 0;
111
+ }
112
+ }
113
+ // is_secret - computed: true, optional: false, required: false
114
+ get isSecret() {
115
+ return this.getBooleanAttribute('is_secret');
116
+ }
117
+ // key - computed: true, optional: false, required: false
118
+ get key() {
119
+ return this.getStringAttribute('key');
120
+ }
121
+ // updated_at - computed: true, optional: false, required: false
122
+ get updatedAt() {
123
+ return this.getStringAttribute('updated_at');
124
+ }
125
+ // value - computed: true, optional: false, required: false
126
+ get value() {
127
+ return this.getStringAttribute('value');
128
+ }
129
+ }
130
+ export class DataAstroDeploymentsDeploymentsEnvironmentVariablesList extends cdktf.ComplexList {
131
+ terraformResource;
132
+ terraformAttribute;
133
+ wrapsSet;
134
+ /**
135
+ * @param terraformResource The parent resource
136
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
137
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
138
+ */
139
+ constructor(terraformResource, terraformAttribute, wrapsSet) {
140
+ super(terraformResource, terraformAttribute, wrapsSet);
141
+ this.terraformResource = terraformResource;
142
+ this.terraformAttribute = terraformAttribute;
143
+ this.wrapsSet = wrapsSet;
144
+ }
145
+ /**
146
+ * @param index the index of the item to return
147
+ */
148
+ get(index) {
149
+ return new DataAstroDeploymentsDeploymentsEnvironmentVariablesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
150
+ }
151
+ }
152
+ export function dataAstroDeploymentsDeploymentsRemoteExecutionToTerraform(struct) {
153
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
154
+ return struct;
155
+ }
156
+ if (cdktf.isComplexElement(struct)) {
157
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
158
+ }
159
+ return {};
160
+ }
161
+ export function dataAstroDeploymentsDeploymentsRemoteExecutionToHclTerraform(struct) {
162
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
163
+ return struct;
164
+ }
165
+ if (cdktf.isComplexElement(struct)) {
166
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
167
+ }
168
+ const attrs = {};
169
+ return attrs;
170
+ }
171
+ export class DataAstroDeploymentsDeploymentsRemoteExecutionOutputReference extends cdktf.ComplexObject {
172
+ isEmptyObject = false;
173
+ /**
174
+ * @param terraformResource The parent resource
175
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
176
+ */
177
+ constructor(terraformResource, terraformAttribute) {
178
+ super(terraformResource, terraformAttribute, false);
179
+ }
180
+ get internalValue() {
181
+ let hasAnyValues = this.isEmptyObject;
182
+ const internalValueResult = {};
183
+ return hasAnyValues ? internalValueResult : undefined;
184
+ }
185
+ set internalValue(value) {
186
+ if (value === undefined) {
187
+ this.isEmptyObject = false;
188
+ }
189
+ else {
190
+ this.isEmptyObject = Object.keys(value).length === 0;
191
+ }
192
+ }
193
+ // allowed_ip_address_ranges - computed: true, optional: false, required: false
194
+ get allowedIpAddressRanges() {
195
+ return cdktf.Fn.tolist(this.getListAttribute('allowed_ip_address_ranges'));
196
+ }
197
+ // enabled - computed: true, optional: false, required: false
198
+ get enabled() {
199
+ return this.getBooleanAttribute('enabled');
200
+ }
201
+ // remote_api_url - computed: true, optional: false, required: false
202
+ get remoteApiUrl() {
203
+ return this.getStringAttribute('remote_api_url');
204
+ }
205
+ // task_log_bucket - computed: true, optional: false, required: false
206
+ get taskLogBucket() {
207
+ return this.getStringAttribute('task_log_bucket');
208
+ }
209
+ // task_log_url_pattern - computed: true, optional: false, required: false
210
+ get taskLogUrlPattern() {
211
+ return this.getStringAttribute('task_log_url_pattern');
212
+ }
213
+ }
214
+ export function dataAstroDeploymentsDeploymentsScalingSpecHibernationSpecOverrideToTerraform(struct) {
215
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
216
+ return struct;
217
+ }
218
+ if (cdktf.isComplexElement(struct)) {
219
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
220
+ }
221
+ return {};
222
+ }
223
+ export function dataAstroDeploymentsDeploymentsScalingSpecHibernationSpecOverrideToHclTerraform(struct) {
224
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
225
+ return struct;
226
+ }
227
+ if (cdktf.isComplexElement(struct)) {
228
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
229
+ }
230
+ const attrs = {};
231
+ return attrs;
232
+ }
233
+ export class DataAstroDeploymentsDeploymentsScalingSpecHibernationSpecOverrideOutputReference extends cdktf.ComplexObject {
234
+ isEmptyObject = false;
235
+ /**
236
+ * @param terraformResource The parent resource
237
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
238
+ */
239
+ constructor(terraformResource, terraformAttribute) {
240
+ super(terraformResource, terraformAttribute, false);
241
+ }
242
+ get internalValue() {
243
+ let hasAnyValues = this.isEmptyObject;
244
+ const internalValueResult = {};
245
+ return hasAnyValues ? internalValueResult : undefined;
246
+ }
247
+ set internalValue(value) {
248
+ if (value === undefined) {
249
+ this.isEmptyObject = false;
250
+ }
251
+ else {
252
+ this.isEmptyObject = Object.keys(value).length === 0;
253
+ }
254
+ }
255
+ // is_active - computed: true, optional: false, required: false
256
+ get isActive() {
257
+ return this.getBooleanAttribute('is_active');
258
+ }
259
+ // is_hibernating - computed: true, optional: false, required: false
260
+ get isHibernating() {
261
+ return this.getBooleanAttribute('is_hibernating');
262
+ }
263
+ // override_until - computed: true, optional: false, required: false
264
+ get overrideUntil() {
265
+ return this.getStringAttribute('override_until');
266
+ }
267
+ }
268
+ export function dataAstroDeploymentsDeploymentsScalingSpecHibernationSpecSchedulesToTerraform(struct) {
269
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
270
+ return struct;
271
+ }
272
+ if (cdktf.isComplexElement(struct)) {
273
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
274
+ }
275
+ return {};
276
+ }
277
+ export function dataAstroDeploymentsDeploymentsScalingSpecHibernationSpecSchedulesToHclTerraform(struct) {
278
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
279
+ return struct;
280
+ }
281
+ if (cdktf.isComplexElement(struct)) {
282
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
283
+ }
284
+ const attrs = {};
285
+ return attrs;
286
+ }
287
+ export class DataAstroDeploymentsDeploymentsScalingSpecHibernationSpecSchedulesOutputReference extends cdktf.ComplexObject {
288
+ isEmptyObject = false;
289
+ /**
290
+ * @param terraformResource The parent resource
291
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
292
+ * @param complexObjectIndex the index of this item in the list
293
+ * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
294
+ */
295
+ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
296
+ super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
297
+ }
298
+ get internalValue() {
299
+ let hasAnyValues = this.isEmptyObject;
300
+ const internalValueResult = {};
301
+ return hasAnyValues ? internalValueResult : undefined;
302
+ }
303
+ set internalValue(value) {
304
+ if (value === undefined) {
305
+ this.isEmptyObject = false;
306
+ }
307
+ else {
308
+ this.isEmptyObject = Object.keys(value).length === 0;
309
+ }
310
+ }
311
+ // description - computed: true, optional: false, required: false
312
+ get description() {
313
+ return this.getStringAttribute('description');
314
+ }
315
+ // hibernate_at_cron - computed: true, optional: false, required: false
316
+ get hibernateAtCron() {
317
+ return this.getStringAttribute('hibernate_at_cron');
318
+ }
319
+ // is_enabled - computed: true, optional: false, required: false
320
+ get isEnabled() {
321
+ return this.getBooleanAttribute('is_enabled');
322
+ }
323
+ // wake_at_cron - computed: true, optional: false, required: false
324
+ get wakeAtCron() {
325
+ return this.getStringAttribute('wake_at_cron');
326
+ }
327
+ }
328
+ export class DataAstroDeploymentsDeploymentsScalingSpecHibernationSpecSchedulesList extends cdktf.ComplexList {
329
+ terraformResource;
330
+ terraformAttribute;
331
+ wrapsSet;
332
+ /**
333
+ * @param terraformResource The parent resource
334
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
335
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
336
+ */
337
+ constructor(terraformResource, terraformAttribute, wrapsSet) {
338
+ super(terraformResource, terraformAttribute, wrapsSet);
339
+ this.terraformResource = terraformResource;
340
+ this.terraformAttribute = terraformAttribute;
341
+ this.wrapsSet = wrapsSet;
342
+ }
343
+ /**
344
+ * @param index the index of the item to return
345
+ */
346
+ get(index) {
347
+ return new DataAstroDeploymentsDeploymentsScalingSpecHibernationSpecSchedulesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
348
+ }
349
+ }
350
+ export function dataAstroDeploymentsDeploymentsScalingSpecHibernationSpecToTerraform(struct) {
351
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
352
+ return struct;
353
+ }
354
+ if (cdktf.isComplexElement(struct)) {
355
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
356
+ }
357
+ return {};
358
+ }
359
+ export function dataAstroDeploymentsDeploymentsScalingSpecHibernationSpecToHclTerraform(struct) {
360
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
361
+ return struct;
362
+ }
363
+ if (cdktf.isComplexElement(struct)) {
364
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
365
+ }
366
+ const attrs = {};
367
+ return attrs;
368
+ }
369
+ export class DataAstroDeploymentsDeploymentsScalingSpecHibernationSpecOutputReference extends cdktf.ComplexObject {
370
+ isEmptyObject = false;
371
+ /**
372
+ * @param terraformResource The parent resource
373
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
374
+ */
375
+ constructor(terraformResource, terraformAttribute) {
376
+ super(terraformResource, terraformAttribute, false);
377
+ }
378
+ get internalValue() {
379
+ let hasAnyValues = this.isEmptyObject;
380
+ const internalValueResult = {};
381
+ return hasAnyValues ? internalValueResult : undefined;
382
+ }
383
+ set internalValue(value) {
384
+ if (value === undefined) {
385
+ this.isEmptyObject = false;
386
+ }
387
+ else {
388
+ this.isEmptyObject = Object.keys(value).length === 0;
389
+ }
390
+ }
391
+ // override - computed: true, optional: false, required: false
392
+ _override = new DataAstroDeploymentsDeploymentsScalingSpecHibernationSpecOverrideOutputReference(this, "override");
393
+ get override() {
394
+ return this._override;
395
+ }
396
+ // schedules - computed: true, optional: false, required: false
397
+ _schedules = new DataAstroDeploymentsDeploymentsScalingSpecHibernationSpecSchedulesList(this, "schedules", true);
398
+ get schedules() {
399
+ return this._schedules;
400
+ }
401
+ }
402
+ export function dataAstroDeploymentsDeploymentsScalingSpecToTerraform(struct) {
403
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
404
+ return struct;
405
+ }
406
+ if (cdktf.isComplexElement(struct)) {
407
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
408
+ }
409
+ return {};
410
+ }
411
+ export function dataAstroDeploymentsDeploymentsScalingSpecToHclTerraform(struct) {
412
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
413
+ return struct;
414
+ }
415
+ if (cdktf.isComplexElement(struct)) {
416
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
417
+ }
418
+ const attrs = {};
419
+ return attrs;
420
+ }
421
+ export class DataAstroDeploymentsDeploymentsScalingSpecOutputReference extends cdktf.ComplexObject {
422
+ isEmptyObject = false;
423
+ /**
424
+ * @param terraformResource The parent resource
425
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
426
+ */
427
+ constructor(terraformResource, terraformAttribute) {
428
+ super(terraformResource, terraformAttribute, false);
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
+ // hibernation_spec - computed: true, optional: false, required: false
444
+ _hibernationSpec = new DataAstroDeploymentsDeploymentsScalingSpecHibernationSpecOutputReference(this, "hibernation_spec");
445
+ get hibernationSpec() {
446
+ return this._hibernationSpec;
447
+ }
448
+ }
449
+ export function dataAstroDeploymentsDeploymentsScalingStatusHibernationStatusToTerraform(struct) {
450
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
451
+ return struct;
452
+ }
453
+ if (cdktf.isComplexElement(struct)) {
454
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
455
+ }
456
+ return {};
457
+ }
458
+ export function dataAstroDeploymentsDeploymentsScalingStatusHibernationStatusToHclTerraform(struct) {
459
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
460
+ return struct;
461
+ }
462
+ if (cdktf.isComplexElement(struct)) {
463
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
464
+ }
465
+ const attrs = {};
466
+ return attrs;
467
+ }
468
+ export class DataAstroDeploymentsDeploymentsScalingStatusHibernationStatusOutputReference extends cdktf.ComplexObject {
469
+ isEmptyObject = false;
470
+ /**
471
+ * @param terraformResource The parent resource
472
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
473
+ */
474
+ constructor(terraformResource, terraformAttribute) {
475
+ super(terraformResource, terraformAttribute, false);
476
+ }
477
+ get internalValue() {
478
+ let hasAnyValues = this.isEmptyObject;
479
+ const internalValueResult = {};
480
+ return hasAnyValues ? internalValueResult : undefined;
481
+ }
482
+ set internalValue(value) {
483
+ if (value === undefined) {
484
+ this.isEmptyObject = false;
485
+ }
486
+ else {
487
+ this.isEmptyObject = Object.keys(value).length === 0;
488
+ }
489
+ }
490
+ // is_hibernating - computed: true, optional: false, required: false
491
+ get isHibernating() {
492
+ return this.getBooleanAttribute('is_hibernating');
493
+ }
494
+ // next_event_at - computed: true, optional: false, required: false
495
+ get nextEventAt() {
496
+ return this.getStringAttribute('next_event_at');
497
+ }
498
+ // next_event_type - computed: true, optional: false, required: false
499
+ get nextEventType() {
500
+ return this.getStringAttribute('next_event_type');
501
+ }
502
+ // reason - computed: true, optional: false, required: false
503
+ get reason() {
504
+ return this.getStringAttribute('reason');
505
+ }
506
+ }
507
+ export function dataAstroDeploymentsDeploymentsScalingStatusToTerraform(struct) {
508
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
509
+ return struct;
510
+ }
511
+ if (cdktf.isComplexElement(struct)) {
512
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
513
+ }
514
+ return {};
515
+ }
516
+ export function dataAstroDeploymentsDeploymentsScalingStatusToHclTerraform(struct) {
517
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
518
+ return struct;
519
+ }
520
+ if (cdktf.isComplexElement(struct)) {
521
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
522
+ }
523
+ const attrs = {};
524
+ return attrs;
525
+ }
526
+ export class DataAstroDeploymentsDeploymentsScalingStatusOutputReference extends cdktf.ComplexObject {
527
+ isEmptyObject = false;
528
+ /**
529
+ * @param terraformResource The parent resource
530
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
531
+ */
532
+ constructor(terraformResource, terraformAttribute) {
533
+ super(terraformResource, terraformAttribute, false);
534
+ }
535
+ get internalValue() {
536
+ let hasAnyValues = this.isEmptyObject;
537
+ const internalValueResult = {};
538
+ return hasAnyValues ? internalValueResult : undefined;
539
+ }
540
+ set internalValue(value) {
541
+ if (value === undefined) {
542
+ this.isEmptyObject = false;
543
+ }
544
+ else {
545
+ this.isEmptyObject = Object.keys(value).length === 0;
546
+ }
547
+ }
548
+ // hibernation_status - computed: true, optional: false, required: false
549
+ _hibernationStatus = new DataAstroDeploymentsDeploymentsScalingStatusHibernationStatusOutputReference(this, "hibernation_status");
550
+ get hibernationStatus() {
551
+ return this._hibernationStatus;
552
+ }
553
+ }
554
+ export function dataAstroDeploymentsDeploymentsUpdatedByToTerraform(struct) {
555
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
556
+ return struct;
557
+ }
558
+ if (cdktf.isComplexElement(struct)) {
559
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
560
+ }
561
+ return {};
562
+ }
563
+ export function dataAstroDeploymentsDeploymentsUpdatedByToHclTerraform(struct) {
564
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
565
+ return struct;
566
+ }
567
+ if (cdktf.isComplexElement(struct)) {
568
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
569
+ }
570
+ const attrs = {};
571
+ return attrs;
572
+ }
573
+ export class DataAstroDeploymentsDeploymentsUpdatedByOutputReference extends cdktf.ComplexObject {
574
+ isEmptyObject = false;
575
+ /**
576
+ * @param terraformResource The parent resource
577
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
578
+ */
579
+ constructor(terraformResource, terraformAttribute) {
580
+ super(terraformResource, terraformAttribute, false);
581
+ }
582
+ get internalValue() {
583
+ let hasAnyValues = this.isEmptyObject;
584
+ const internalValueResult = {};
585
+ return hasAnyValues ? internalValueResult : undefined;
586
+ }
587
+ set internalValue(value) {
588
+ if (value === undefined) {
589
+ this.isEmptyObject = false;
590
+ }
591
+ else {
592
+ this.isEmptyObject = Object.keys(value).length === 0;
593
+ }
594
+ }
595
+ // api_token_name - computed: true, optional: false, required: false
596
+ get apiTokenName() {
597
+ return this.getStringAttribute('api_token_name');
598
+ }
599
+ // avatar_url - computed: true, optional: false, required: false
600
+ get avatarUrl() {
601
+ return this.getStringAttribute('avatar_url');
602
+ }
603
+ // full_name - computed: true, optional: false, required: false
604
+ get fullName() {
605
+ return this.getStringAttribute('full_name');
606
+ }
607
+ // id - computed: true, optional: false, required: false
608
+ get id() {
609
+ return this.getStringAttribute('id');
610
+ }
611
+ // subject_type - computed: true, optional: false, required: false
612
+ get subjectType() {
613
+ return this.getStringAttribute('subject_type');
614
+ }
615
+ // username - computed: true, optional: false, required: false
616
+ get username() {
617
+ return this.getStringAttribute('username');
618
+ }
619
+ }
620
+ export function dataAstroDeploymentsDeploymentsWorkerQueuesToTerraform(struct) {
621
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
622
+ return struct;
623
+ }
624
+ if (cdktf.isComplexElement(struct)) {
625
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
626
+ }
627
+ return {};
628
+ }
629
+ export function dataAstroDeploymentsDeploymentsWorkerQueuesToHclTerraform(struct) {
630
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
631
+ return struct;
632
+ }
633
+ if (cdktf.isComplexElement(struct)) {
634
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
635
+ }
636
+ const attrs = {};
637
+ return attrs;
638
+ }
639
+ export class DataAstroDeploymentsDeploymentsWorkerQueuesOutputReference extends cdktf.ComplexObject {
640
+ isEmptyObject = false;
641
+ /**
642
+ * @param terraformResource The parent resource
643
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
644
+ * @param complexObjectIndex the index of this item in the list
645
+ * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
646
+ */
647
+ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
648
+ super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
649
+ }
650
+ get internalValue() {
651
+ let hasAnyValues = this.isEmptyObject;
652
+ const internalValueResult = {};
653
+ return hasAnyValues ? internalValueResult : undefined;
654
+ }
655
+ set internalValue(value) {
656
+ if (value === undefined) {
657
+ this.isEmptyObject = false;
658
+ }
659
+ else {
660
+ this.isEmptyObject = Object.keys(value).length === 0;
661
+ }
662
+ }
663
+ // astro_machine - computed: true, optional: false, required: false
664
+ get astroMachine() {
665
+ return this.getStringAttribute('astro_machine');
666
+ }
667
+ // id - computed: true, optional: false, required: false
668
+ get id() {
669
+ return this.getStringAttribute('id');
670
+ }
671
+ // is_default - computed: true, optional: false, required: false
672
+ get isDefault() {
673
+ return this.getBooleanAttribute('is_default');
674
+ }
675
+ // max_worker_count - computed: true, optional: false, required: false
676
+ get maxWorkerCount() {
677
+ return this.getNumberAttribute('max_worker_count');
678
+ }
679
+ // min_worker_count - computed: true, optional: false, required: false
680
+ get minWorkerCount() {
681
+ return this.getNumberAttribute('min_worker_count');
682
+ }
683
+ // name - computed: true, optional: false, required: false
684
+ get name() {
685
+ return this.getStringAttribute('name');
686
+ }
687
+ // node_pool_id - computed: true, optional: false, required: false
688
+ get nodePoolId() {
689
+ return this.getStringAttribute('node_pool_id');
690
+ }
691
+ // pod_cpu - computed: true, optional: false, required: false
692
+ get podCpu() {
693
+ return this.getStringAttribute('pod_cpu');
694
+ }
695
+ // pod_memory - computed: true, optional: false, required: false
696
+ get podMemory() {
697
+ return this.getStringAttribute('pod_memory');
698
+ }
699
+ // worker_concurrency - computed: true, optional: false, required: false
700
+ get workerConcurrency() {
701
+ return this.getNumberAttribute('worker_concurrency');
702
+ }
703
+ }
704
+ export class DataAstroDeploymentsDeploymentsWorkerQueuesList extends cdktf.ComplexList {
705
+ terraformResource;
706
+ terraformAttribute;
707
+ wrapsSet;
708
+ /**
709
+ * @param terraformResource The parent resource
710
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
711
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
712
+ */
713
+ constructor(terraformResource, terraformAttribute, wrapsSet) {
714
+ super(terraformResource, terraformAttribute, wrapsSet);
715
+ this.terraformResource = terraformResource;
716
+ this.terraformAttribute = terraformAttribute;
717
+ this.wrapsSet = wrapsSet;
718
+ }
719
+ /**
720
+ * @param index the index of the item to return
721
+ */
722
+ get(index) {
723
+ return new DataAstroDeploymentsDeploymentsWorkerQueuesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
724
+ }
725
+ }
726
+ export function dataAstroDeploymentsDeploymentsToTerraform(struct) {
727
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
728
+ return struct;
729
+ }
730
+ if (cdktf.isComplexElement(struct)) {
731
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
732
+ }
733
+ return {
734
+ id: cdktf.stringToTerraform(struct.id),
735
+ };
736
+ }
737
+ export function dataAstroDeploymentsDeploymentsToHclTerraform(struct) {
738
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
739
+ return struct;
740
+ }
741
+ if (cdktf.isComplexElement(struct)) {
742
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
743
+ }
744
+ const attrs = {
745
+ id: {
746
+ value: cdktf.stringToHclTerraform(struct.id),
747
+ isBlock: false,
748
+ type: "simple",
749
+ storageClassType: "string",
750
+ },
751
+ };
752
+ // remove undefined attributes
753
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
754
+ }
755
+ export class DataAstroDeploymentsDeploymentsOutputReference extends cdktf.ComplexObject {
756
+ isEmptyObject = false;
757
+ /**
758
+ * @param terraformResource The parent resource
759
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
760
+ * @param complexObjectIndex the index of this item in the list
761
+ * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
762
+ */
763
+ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
764
+ super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
765
+ }
766
+ get internalValue() {
767
+ let hasAnyValues = this.isEmptyObject;
768
+ const internalValueResult = {};
769
+ if (this._id !== undefined) {
770
+ hasAnyValues = true;
771
+ internalValueResult.id = this._id;
772
+ }
773
+ return hasAnyValues ? internalValueResult : undefined;
774
+ }
775
+ set internalValue(value) {
776
+ if (value === undefined) {
777
+ this.isEmptyObject = false;
778
+ this._id = undefined;
779
+ }
780
+ else {
781
+ this.isEmptyObject = Object.keys(value).length === 0;
782
+ this._id = value.id;
783
+ }
784
+ }
785
+ // airflow_version - computed: true, optional: false, required: false
786
+ get airflowVersion() {
787
+ return this.getStringAttribute('airflow_version');
788
+ }
789
+ // astro_runtime_version - computed: true, optional: false, required: false
790
+ get astroRuntimeVersion() {
791
+ return this.getStringAttribute('astro_runtime_version');
792
+ }
793
+ // cloud_provider - computed: true, optional: false, required: false
794
+ get cloudProvider() {
795
+ return this.getStringAttribute('cloud_provider');
796
+ }
797
+ // cluster_id - computed: true, optional: false, required: false
798
+ get clusterId() {
799
+ return this.getStringAttribute('cluster_id');
800
+ }
801
+ // contact_emails - computed: true, optional: false, required: false
802
+ get contactEmails() {
803
+ return cdktf.Fn.tolist(this.getListAttribute('contact_emails'));
804
+ }
805
+ // created_at - computed: true, optional: false, required: false
806
+ get createdAt() {
807
+ return this.getStringAttribute('created_at');
808
+ }
809
+ // created_by - computed: true, optional: false, required: false
810
+ _createdBy = new DataAstroDeploymentsDeploymentsCreatedByOutputReference(this, "created_by");
811
+ get createdBy() {
812
+ return this._createdBy;
813
+ }
814
+ // dag_tarball_version - computed: true, optional: false, required: false
815
+ get dagTarballVersion() {
816
+ return this.getStringAttribute('dag_tarball_version');
817
+ }
818
+ // default_task_pod_cpu - computed: true, optional: false, required: false
819
+ get defaultTaskPodCpu() {
820
+ return this.getStringAttribute('default_task_pod_cpu');
821
+ }
822
+ // default_task_pod_memory - computed: true, optional: false, required: false
823
+ get defaultTaskPodMemory() {
824
+ return this.getStringAttribute('default_task_pod_memory');
825
+ }
826
+ // description - computed: true, optional: false, required: false
827
+ get description() {
828
+ return this.getStringAttribute('description');
829
+ }
830
+ // desired_dag_tarball_version - computed: true, optional: false, required: false
831
+ get desiredDagTarballVersion() {
832
+ return this.getStringAttribute('desired_dag_tarball_version');
833
+ }
834
+ // environment_variables - computed: true, optional: false, required: false
835
+ _environmentVariables = new DataAstroDeploymentsDeploymentsEnvironmentVariablesList(this, "environment_variables", true);
836
+ get environmentVariables() {
837
+ return this._environmentVariables;
838
+ }
839
+ // executor - computed: true, optional: false, required: false
840
+ get executor() {
841
+ return this.getStringAttribute('executor');
842
+ }
843
+ // external_ips - computed: true, optional: false, required: false
844
+ get externalIps() {
845
+ return cdktf.Fn.tolist(this.getListAttribute('external_ips'));
846
+ }
847
+ // id - computed: true, optional: false, required: true
848
+ _id;
849
+ get id() {
850
+ return this.getStringAttribute('id');
851
+ }
852
+ set id(value) {
853
+ this._id = value;
854
+ }
855
+ // Temporarily expose input value. Use with caution.
856
+ get idInput() {
857
+ return this._id;
858
+ }
859
+ // image_repository - computed: true, optional: false, required: false
860
+ get imageRepository() {
861
+ return this.getStringAttribute('image_repository');
862
+ }
863
+ // image_tag - computed: true, optional: false, required: false
864
+ get imageTag() {
865
+ return this.getStringAttribute('image_tag');
866
+ }
867
+ // image_version - computed: true, optional: false, required: false
868
+ get imageVersion() {
869
+ return this.getStringAttribute('image_version');
870
+ }
871
+ // is_cicd_enforced - computed: true, optional: false, required: false
872
+ get isCicdEnforced() {
873
+ return this.getBooleanAttribute('is_cicd_enforced');
874
+ }
875
+ // is_dag_deploy_enabled - computed: true, optional: false, required: false
876
+ get isDagDeployEnabled() {
877
+ return this.getBooleanAttribute('is_dag_deploy_enabled');
878
+ }
879
+ // is_development_mode - computed: true, optional: false, required: false
880
+ get isDevelopmentMode() {
881
+ return this.getBooleanAttribute('is_development_mode');
882
+ }
883
+ // is_high_availability - computed: true, optional: false, required: false
884
+ get isHighAvailability() {
885
+ return this.getBooleanAttribute('is_high_availability');
886
+ }
887
+ // name - computed: true, optional: false, required: false
888
+ get name() {
889
+ return this.getStringAttribute('name');
890
+ }
891
+ // namespace - computed: true, optional: false, required: false
892
+ get namespace() {
893
+ return this.getStringAttribute('namespace');
894
+ }
895
+ // oidc_issuer_url - computed: true, optional: false, required: false
896
+ get oidcIssuerUrl() {
897
+ return this.getStringAttribute('oidc_issuer_url');
898
+ }
899
+ // region - computed: true, optional: false, required: false
900
+ get region() {
901
+ return this.getStringAttribute('region');
902
+ }
903
+ // remote_execution - computed: true, optional: false, required: false
904
+ _remoteExecution = new DataAstroDeploymentsDeploymentsRemoteExecutionOutputReference(this, "remote_execution");
905
+ get remoteExecution() {
906
+ return this._remoteExecution;
907
+ }
908
+ // resource_quota_cpu - computed: true, optional: false, required: false
909
+ get resourceQuotaCpu() {
910
+ return this.getStringAttribute('resource_quota_cpu');
911
+ }
912
+ // resource_quota_memory - computed: true, optional: false, required: false
913
+ get resourceQuotaMemory() {
914
+ return this.getStringAttribute('resource_quota_memory');
915
+ }
916
+ // scaling_spec - computed: true, optional: false, required: false
917
+ _scalingSpec = new DataAstroDeploymentsDeploymentsScalingSpecOutputReference(this, "scaling_spec");
918
+ get scalingSpec() {
919
+ return this._scalingSpec;
920
+ }
921
+ // scaling_status - computed: true, optional: false, required: false
922
+ _scalingStatus = new DataAstroDeploymentsDeploymentsScalingStatusOutputReference(this, "scaling_status");
923
+ get scalingStatus() {
924
+ return this._scalingStatus;
925
+ }
926
+ // scheduler_au - computed: true, optional: false, required: false
927
+ get schedulerAu() {
928
+ return this.getNumberAttribute('scheduler_au');
929
+ }
930
+ // scheduler_cpu - computed: true, optional: false, required: false
931
+ get schedulerCpu() {
932
+ return this.getStringAttribute('scheduler_cpu');
933
+ }
934
+ // scheduler_memory - computed: true, optional: false, required: false
935
+ get schedulerMemory() {
936
+ return this.getStringAttribute('scheduler_memory');
937
+ }
938
+ // scheduler_replicas - computed: true, optional: false, required: false
939
+ get schedulerReplicas() {
940
+ return this.getNumberAttribute('scheduler_replicas');
941
+ }
942
+ // scheduler_size - computed: true, optional: false, required: false
943
+ get schedulerSize() {
944
+ return this.getStringAttribute('scheduler_size');
945
+ }
946
+ // status - computed: true, optional: false, required: false
947
+ get status() {
948
+ return this.getStringAttribute('status');
949
+ }
950
+ // status_reason - computed: true, optional: false, required: false
951
+ get statusReason() {
952
+ return this.getStringAttribute('status_reason');
953
+ }
954
+ // task_pod_node_pool_id - computed: true, optional: false, required: false
955
+ get taskPodNodePoolId() {
956
+ return this.getStringAttribute('task_pod_node_pool_id');
957
+ }
958
+ // type - computed: true, optional: false, required: false
959
+ get type() {
960
+ return this.getStringAttribute('type');
961
+ }
962
+ // updated_at - computed: true, optional: false, required: false
963
+ get updatedAt() {
964
+ return this.getStringAttribute('updated_at');
965
+ }
966
+ // updated_by - computed: true, optional: false, required: false
967
+ _updatedBy = new DataAstroDeploymentsDeploymentsUpdatedByOutputReference(this, "updated_by");
968
+ get updatedBy() {
969
+ return this._updatedBy;
970
+ }
971
+ // webserver_airflow_api_url - computed: true, optional: false, required: false
972
+ get webserverAirflowApiUrl() {
973
+ return this.getStringAttribute('webserver_airflow_api_url');
974
+ }
975
+ // webserver_ingress_hostname - computed: true, optional: false, required: false
976
+ get webserverIngressHostname() {
977
+ return this.getStringAttribute('webserver_ingress_hostname');
978
+ }
979
+ // webserver_url - computed: true, optional: false, required: false
980
+ get webserverUrl() {
981
+ return this.getStringAttribute('webserver_url');
982
+ }
983
+ // worker_queues - computed: true, optional: false, required: false
984
+ _workerQueues = new DataAstroDeploymentsDeploymentsWorkerQueuesList(this, "worker_queues", true);
985
+ get workerQueues() {
986
+ return this._workerQueues;
987
+ }
988
+ // workload_identity - computed: true, optional: false, required: false
989
+ get workloadIdentity() {
990
+ return this.getStringAttribute('workload_identity');
991
+ }
992
+ // workspace_id - computed: true, optional: false, required: false
993
+ get workspaceId() {
994
+ return this.getStringAttribute('workspace_id');
995
+ }
996
+ }
997
+ export class DataAstroDeploymentsDeploymentsList extends cdktf.ComplexList {
998
+ terraformResource;
999
+ terraformAttribute;
1000
+ wrapsSet;
1001
+ internalValue;
1002
+ /**
1003
+ * @param terraformResource The parent resource
1004
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
1005
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
1006
+ */
1007
+ constructor(terraformResource, terraformAttribute, wrapsSet) {
1008
+ super(terraformResource, terraformAttribute, wrapsSet);
1009
+ this.terraformResource = terraformResource;
1010
+ this.terraformAttribute = terraformAttribute;
1011
+ this.wrapsSet = wrapsSet;
1012
+ }
1013
+ /**
1014
+ * @param index the index of the item to return
1015
+ */
1016
+ get(index) {
1017
+ return new DataAstroDeploymentsDeploymentsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
1018
+ }
1019
+ }
1020
+ /**
1021
+ * Represents a {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/deployments astro_deployments}
1022
+ */
1023
+ export class DataAstroDeployments extends cdktf.TerraformDataSource {
1024
+ // =================
1025
+ // STATIC PROPERTIES
1026
+ // =================
1027
+ static tfResourceType = "astro_deployments";
1028
+ // ==============
1029
+ // STATIC Methods
1030
+ // ==============
1031
+ /**
1032
+ * Generates CDKTF code for importing a DataAstroDeployments resource upon running "cdktf plan <stack-name>"
1033
+ * @param scope The scope in which to define this construct
1034
+ * @param importToId The construct id used in the generated config for the DataAstroDeployments to import
1035
+ * @param importFromId The id of the existing DataAstroDeployments that should be imported. Refer to the {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/deployments#import import section} in the documentation of this resource for the id to use
1036
+ * @param provider? Optional instance of the provider where the DataAstroDeployments to import is found
1037
+ */
1038
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
1039
+ return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "astro_deployments", importId: importFromId, provider });
1040
+ }
1041
+ // ===========
1042
+ // INITIALIZER
1043
+ // ===========
1044
+ /**
1045
+ * Create a new {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/deployments astro_deployments} Data Source
1046
+ *
1047
+ * @param scope The scope in which to define this construct
1048
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
1049
+ * @param options DataAstroDeploymentsConfig = {}
1050
+ */
1051
+ constructor(scope, id, config = {}) {
1052
+ super(scope, id, {
1053
+ terraformResourceType: 'astro_deployments',
1054
+ terraformGeneratorMetadata: {
1055
+ providerName: 'astro',
1056
+ providerVersion: '1.0.8',
1057
+ providerVersionConstraint: '1.0.8'
1058
+ },
1059
+ provider: config.provider,
1060
+ dependsOn: config.dependsOn,
1061
+ count: config.count,
1062
+ lifecycle: config.lifecycle,
1063
+ provisioners: config.provisioners,
1064
+ connection: config.connection,
1065
+ forEach: config.forEach
1066
+ });
1067
+ this._deploymentIds = config.deploymentIds;
1068
+ this._names = config.names;
1069
+ this._workspaceIds = config.workspaceIds;
1070
+ }
1071
+ // ==========
1072
+ // ATTRIBUTES
1073
+ // ==========
1074
+ // deployment_ids - computed: false, optional: true, required: false
1075
+ _deploymentIds;
1076
+ get deploymentIds() {
1077
+ return cdktf.Fn.tolist(this.getListAttribute('deployment_ids'));
1078
+ }
1079
+ set deploymentIds(value) {
1080
+ this._deploymentIds = value;
1081
+ }
1082
+ resetDeploymentIds() {
1083
+ this._deploymentIds = undefined;
1084
+ }
1085
+ // Temporarily expose input value. Use with caution.
1086
+ get deploymentIdsInput() {
1087
+ return this._deploymentIds;
1088
+ }
1089
+ // deployments - computed: true, optional: false, required: false
1090
+ _deployments = new DataAstroDeploymentsDeploymentsList(this, "deployments", true);
1091
+ get deployments() {
1092
+ return this._deployments;
1093
+ }
1094
+ // names - computed: false, optional: true, required: false
1095
+ _names;
1096
+ get names() {
1097
+ return cdktf.Fn.tolist(this.getListAttribute('names'));
1098
+ }
1099
+ set names(value) {
1100
+ this._names = value;
1101
+ }
1102
+ resetNames() {
1103
+ this._names = undefined;
1104
+ }
1105
+ // Temporarily expose input value. Use with caution.
1106
+ get namesInput() {
1107
+ return this._names;
1108
+ }
1109
+ // workspace_ids - computed: false, optional: true, required: false
1110
+ _workspaceIds;
1111
+ get workspaceIds() {
1112
+ return cdktf.Fn.tolist(this.getListAttribute('workspace_ids'));
1113
+ }
1114
+ set workspaceIds(value) {
1115
+ this._workspaceIds = value;
1116
+ }
1117
+ resetWorkspaceIds() {
1118
+ this._workspaceIds = undefined;
1119
+ }
1120
+ // Temporarily expose input value. Use with caution.
1121
+ get workspaceIdsInput() {
1122
+ return this._workspaceIds;
1123
+ }
1124
+ // =========
1125
+ // SYNTHESIS
1126
+ // =========
1127
+ synthesizeAttributes() {
1128
+ return {
1129
+ deployment_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(this._deploymentIds),
1130
+ names: cdktf.listMapper(cdktf.stringToTerraform, false)(this._names),
1131
+ workspace_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(this._workspaceIds),
1132
+ };
1133
+ }
1134
+ synthesizeHclAttributes() {
1135
+ const attrs = {
1136
+ deployment_ids: {
1137
+ value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._deploymentIds),
1138
+ isBlock: false,
1139
+ type: "set",
1140
+ storageClassType: "stringList",
1141
+ },
1142
+ names: {
1143
+ value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._names),
1144
+ isBlock: false,
1145
+ type: "set",
1146
+ storageClassType: "stringList",
1147
+ },
1148
+ workspace_ids: {
1149
+ value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._workspaceIds),
1150
+ isBlock: false,
1151
+ type: "set",
1152
+ storageClassType: "stringList",
1153
+ },
1154
+ };
1155
+ // remove undefined attributes
1156
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
1157
+ }
1158
+ }