@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,1009 @@
1
+ // https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/deployment
2
+ // generated from terraform resource schema
3
+ import * as cdktf from 'cdktf';
4
+ export function dataAstroDeploymentCreatedByToTerraform(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 dataAstroDeploymentCreatedByToHclTerraform(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 DataAstroDeploymentCreatedByOutputReference 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 dataAstroDeploymentEnvironmentVariablesToTerraform(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 dataAstroDeploymentEnvironmentVariablesToHclTerraform(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 DataAstroDeploymentEnvironmentVariablesOutputReference 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 DataAstroDeploymentEnvironmentVariablesList 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 DataAstroDeploymentEnvironmentVariablesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
150
+ }
151
+ }
152
+ export function dataAstroDeploymentRemoteExecutionToTerraform(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 dataAstroDeploymentRemoteExecutionToHclTerraform(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 DataAstroDeploymentRemoteExecutionOutputReference 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 dataAstroDeploymentScalingSpecHibernationSpecOverrideToTerraform(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 dataAstroDeploymentScalingSpecHibernationSpecOverrideToHclTerraform(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 DataAstroDeploymentScalingSpecHibernationSpecOverrideOutputReference 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 dataAstroDeploymentScalingSpecHibernationSpecSchedulesToTerraform(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 dataAstroDeploymentScalingSpecHibernationSpecSchedulesToHclTerraform(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 DataAstroDeploymentScalingSpecHibernationSpecSchedulesOutputReference 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 DataAstroDeploymentScalingSpecHibernationSpecSchedulesList 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 DataAstroDeploymentScalingSpecHibernationSpecSchedulesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
348
+ }
349
+ }
350
+ export function dataAstroDeploymentScalingSpecHibernationSpecToTerraform(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 dataAstroDeploymentScalingSpecHibernationSpecToHclTerraform(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 DataAstroDeploymentScalingSpecHibernationSpecOutputReference 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 DataAstroDeploymentScalingSpecHibernationSpecOverrideOutputReference(this, "override");
393
+ get override() {
394
+ return this._override;
395
+ }
396
+ // schedules - computed: true, optional: false, required: false
397
+ _schedules = new DataAstroDeploymentScalingSpecHibernationSpecSchedulesList(this, "schedules", true);
398
+ get schedules() {
399
+ return this._schedules;
400
+ }
401
+ }
402
+ export function dataAstroDeploymentScalingSpecToTerraform(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 dataAstroDeploymentScalingSpecToHclTerraform(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 DataAstroDeploymentScalingSpecOutputReference 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 DataAstroDeploymentScalingSpecHibernationSpecOutputReference(this, "hibernation_spec");
445
+ get hibernationSpec() {
446
+ return this._hibernationSpec;
447
+ }
448
+ }
449
+ export function dataAstroDeploymentScalingStatusHibernationStatusToTerraform(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 dataAstroDeploymentScalingStatusHibernationStatusToHclTerraform(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 DataAstroDeploymentScalingStatusHibernationStatusOutputReference 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 dataAstroDeploymentScalingStatusToTerraform(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 dataAstroDeploymentScalingStatusToHclTerraform(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 DataAstroDeploymentScalingStatusOutputReference 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 DataAstroDeploymentScalingStatusHibernationStatusOutputReference(this, "hibernation_status");
550
+ get hibernationStatus() {
551
+ return this._hibernationStatus;
552
+ }
553
+ }
554
+ export function dataAstroDeploymentUpdatedByToTerraform(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 dataAstroDeploymentUpdatedByToHclTerraform(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 DataAstroDeploymentUpdatedByOutputReference 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 dataAstroDeploymentWorkerQueuesToTerraform(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 dataAstroDeploymentWorkerQueuesToHclTerraform(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 DataAstroDeploymentWorkerQueuesOutputReference 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 DataAstroDeploymentWorkerQueuesList 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 DataAstroDeploymentWorkerQueuesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
724
+ }
725
+ }
726
+ /**
727
+ * Represents a {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/deployment astro_deployment}
728
+ */
729
+ export class DataAstroDeployment extends cdktf.TerraformDataSource {
730
+ // =================
731
+ // STATIC PROPERTIES
732
+ // =================
733
+ static tfResourceType = "astro_deployment";
734
+ // ==============
735
+ // STATIC Methods
736
+ // ==============
737
+ /**
738
+ * Generates CDKTF code for importing a DataAstroDeployment resource upon running "cdktf plan <stack-name>"
739
+ * @param scope The scope in which to define this construct
740
+ * @param importToId The construct id used in the generated config for the DataAstroDeployment to import
741
+ * @param importFromId The id of the existing DataAstroDeployment that should be imported. Refer to the {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/deployment#import import section} in the documentation of this resource for the id to use
742
+ * @param provider? Optional instance of the provider where the DataAstroDeployment to import is found
743
+ */
744
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
745
+ return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "astro_deployment", importId: importFromId, provider });
746
+ }
747
+ // ===========
748
+ // INITIALIZER
749
+ // ===========
750
+ /**
751
+ * Create a new {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/deployment astro_deployment} Data Source
752
+ *
753
+ * @param scope The scope in which to define this construct
754
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
755
+ * @param options DataAstroDeploymentConfig
756
+ */
757
+ constructor(scope, id, config) {
758
+ super(scope, id, {
759
+ terraformResourceType: 'astro_deployment',
760
+ terraformGeneratorMetadata: {
761
+ providerName: 'astro',
762
+ providerVersion: '1.0.8',
763
+ providerVersionConstraint: '1.0.8'
764
+ },
765
+ provider: config.provider,
766
+ dependsOn: config.dependsOn,
767
+ count: config.count,
768
+ lifecycle: config.lifecycle,
769
+ provisioners: config.provisioners,
770
+ connection: config.connection,
771
+ forEach: config.forEach
772
+ });
773
+ this._id = config.id;
774
+ }
775
+ // ==========
776
+ // ATTRIBUTES
777
+ // ==========
778
+ // airflow_version - computed: true, optional: false, required: false
779
+ get airflowVersion() {
780
+ return this.getStringAttribute('airflow_version');
781
+ }
782
+ // astro_runtime_version - computed: true, optional: false, required: false
783
+ get astroRuntimeVersion() {
784
+ return this.getStringAttribute('astro_runtime_version');
785
+ }
786
+ // cloud_provider - computed: true, optional: false, required: false
787
+ get cloudProvider() {
788
+ return this.getStringAttribute('cloud_provider');
789
+ }
790
+ // cluster_id - computed: true, optional: false, required: false
791
+ get clusterId() {
792
+ return this.getStringAttribute('cluster_id');
793
+ }
794
+ // contact_emails - computed: true, optional: false, required: false
795
+ get contactEmails() {
796
+ return cdktf.Fn.tolist(this.getListAttribute('contact_emails'));
797
+ }
798
+ // created_at - computed: true, optional: false, required: false
799
+ get createdAt() {
800
+ return this.getStringAttribute('created_at');
801
+ }
802
+ // created_by - computed: true, optional: false, required: false
803
+ _createdBy = new DataAstroDeploymentCreatedByOutputReference(this, "created_by");
804
+ get createdBy() {
805
+ return this._createdBy;
806
+ }
807
+ // dag_tarball_version - computed: true, optional: false, required: false
808
+ get dagTarballVersion() {
809
+ return this.getStringAttribute('dag_tarball_version');
810
+ }
811
+ // default_task_pod_cpu - computed: true, optional: false, required: false
812
+ get defaultTaskPodCpu() {
813
+ return this.getStringAttribute('default_task_pod_cpu');
814
+ }
815
+ // default_task_pod_memory - computed: true, optional: false, required: false
816
+ get defaultTaskPodMemory() {
817
+ return this.getStringAttribute('default_task_pod_memory');
818
+ }
819
+ // description - computed: true, optional: false, required: false
820
+ get description() {
821
+ return this.getStringAttribute('description');
822
+ }
823
+ // desired_dag_tarball_version - computed: true, optional: false, required: false
824
+ get desiredDagTarballVersion() {
825
+ return this.getStringAttribute('desired_dag_tarball_version');
826
+ }
827
+ // environment_variables - computed: true, optional: false, required: false
828
+ _environmentVariables = new DataAstroDeploymentEnvironmentVariablesList(this, "environment_variables", true);
829
+ get environmentVariables() {
830
+ return this._environmentVariables;
831
+ }
832
+ // executor - computed: true, optional: false, required: false
833
+ get executor() {
834
+ return this.getStringAttribute('executor');
835
+ }
836
+ // external_ips - computed: true, optional: false, required: false
837
+ get externalIps() {
838
+ return cdktf.Fn.tolist(this.getListAttribute('external_ips'));
839
+ }
840
+ // id - computed: false, optional: false, required: true
841
+ _id;
842
+ get id() {
843
+ return this.getStringAttribute('id');
844
+ }
845
+ set id(value) {
846
+ this._id = value;
847
+ }
848
+ // Temporarily expose input value. Use with caution.
849
+ get idInput() {
850
+ return this._id;
851
+ }
852
+ // image_repository - computed: true, optional: false, required: false
853
+ get imageRepository() {
854
+ return this.getStringAttribute('image_repository');
855
+ }
856
+ // image_tag - computed: true, optional: false, required: false
857
+ get imageTag() {
858
+ return this.getStringAttribute('image_tag');
859
+ }
860
+ // image_version - computed: true, optional: false, required: false
861
+ get imageVersion() {
862
+ return this.getStringAttribute('image_version');
863
+ }
864
+ // is_cicd_enforced - computed: true, optional: false, required: false
865
+ get isCicdEnforced() {
866
+ return this.getBooleanAttribute('is_cicd_enforced');
867
+ }
868
+ // is_dag_deploy_enabled - computed: true, optional: false, required: false
869
+ get isDagDeployEnabled() {
870
+ return this.getBooleanAttribute('is_dag_deploy_enabled');
871
+ }
872
+ // is_development_mode - computed: true, optional: false, required: false
873
+ get isDevelopmentMode() {
874
+ return this.getBooleanAttribute('is_development_mode');
875
+ }
876
+ // is_high_availability - computed: true, optional: false, required: false
877
+ get isHighAvailability() {
878
+ return this.getBooleanAttribute('is_high_availability');
879
+ }
880
+ // name - computed: true, optional: false, required: false
881
+ get name() {
882
+ return this.getStringAttribute('name');
883
+ }
884
+ // namespace - computed: true, optional: false, required: false
885
+ get namespace() {
886
+ return this.getStringAttribute('namespace');
887
+ }
888
+ // oidc_issuer_url - computed: true, optional: false, required: false
889
+ get oidcIssuerUrl() {
890
+ return this.getStringAttribute('oidc_issuer_url');
891
+ }
892
+ // region - computed: true, optional: false, required: false
893
+ get region() {
894
+ return this.getStringAttribute('region');
895
+ }
896
+ // remote_execution - computed: true, optional: false, required: false
897
+ _remoteExecution = new DataAstroDeploymentRemoteExecutionOutputReference(this, "remote_execution");
898
+ get remoteExecution() {
899
+ return this._remoteExecution;
900
+ }
901
+ // resource_quota_cpu - computed: true, optional: false, required: false
902
+ get resourceQuotaCpu() {
903
+ return this.getStringAttribute('resource_quota_cpu');
904
+ }
905
+ // resource_quota_memory - computed: true, optional: false, required: false
906
+ get resourceQuotaMemory() {
907
+ return this.getStringAttribute('resource_quota_memory');
908
+ }
909
+ // scaling_spec - computed: true, optional: false, required: false
910
+ _scalingSpec = new DataAstroDeploymentScalingSpecOutputReference(this, "scaling_spec");
911
+ get scalingSpec() {
912
+ return this._scalingSpec;
913
+ }
914
+ // scaling_status - computed: true, optional: false, required: false
915
+ _scalingStatus = new DataAstroDeploymentScalingStatusOutputReference(this, "scaling_status");
916
+ get scalingStatus() {
917
+ return this._scalingStatus;
918
+ }
919
+ // scheduler_au - computed: true, optional: false, required: false
920
+ get schedulerAu() {
921
+ return this.getNumberAttribute('scheduler_au');
922
+ }
923
+ // scheduler_cpu - computed: true, optional: false, required: false
924
+ get schedulerCpu() {
925
+ return this.getStringAttribute('scheduler_cpu');
926
+ }
927
+ // scheduler_memory - computed: true, optional: false, required: false
928
+ get schedulerMemory() {
929
+ return this.getStringAttribute('scheduler_memory');
930
+ }
931
+ // scheduler_replicas - computed: true, optional: false, required: false
932
+ get schedulerReplicas() {
933
+ return this.getNumberAttribute('scheduler_replicas');
934
+ }
935
+ // scheduler_size - computed: true, optional: false, required: false
936
+ get schedulerSize() {
937
+ return this.getStringAttribute('scheduler_size');
938
+ }
939
+ // status - computed: true, optional: false, required: false
940
+ get status() {
941
+ return this.getStringAttribute('status');
942
+ }
943
+ // status_reason - computed: true, optional: false, required: false
944
+ get statusReason() {
945
+ return this.getStringAttribute('status_reason');
946
+ }
947
+ // task_pod_node_pool_id - computed: true, optional: false, required: false
948
+ get taskPodNodePoolId() {
949
+ return this.getStringAttribute('task_pod_node_pool_id');
950
+ }
951
+ // type - computed: true, optional: false, required: false
952
+ get type() {
953
+ return this.getStringAttribute('type');
954
+ }
955
+ // updated_at - computed: true, optional: false, required: false
956
+ get updatedAt() {
957
+ return this.getStringAttribute('updated_at');
958
+ }
959
+ // updated_by - computed: true, optional: false, required: false
960
+ _updatedBy = new DataAstroDeploymentUpdatedByOutputReference(this, "updated_by");
961
+ get updatedBy() {
962
+ return this._updatedBy;
963
+ }
964
+ // webserver_airflow_api_url - computed: true, optional: false, required: false
965
+ get webserverAirflowApiUrl() {
966
+ return this.getStringAttribute('webserver_airflow_api_url');
967
+ }
968
+ // webserver_ingress_hostname - computed: true, optional: false, required: false
969
+ get webserverIngressHostname() {
970
+ return this.getStringAttribute('webserver_ingress_hostname');
971
+ }
972
+ // webserver_url - computed: true, optional: false, required: false
973
+ get webserverUrl() {
974
+ return this.getStringAttribute('webserver_url');
975
+ }
976
+ // worker_queues - computed: true, optional: false, required: false
977
+ _workerQueues = new DataAstroDeploymentWorkerQueuesList(this, "worker_queues", true);
978
+ get workerQueues() {
979
+ return this._workerQueues;
980
+ }
981
+ // workload_identity - computed: true, optional: false, required: false
982
+ get workloadIdentity() {
983
+ return this.getStringAttribute('workload_identity');
984
+ }
985
+ // workspace_id - computed: true, optional: false, required: false
986
+ get workspaceId() {
987
+ return this.getStringAttribute('workspace_id');
988
+ }
989
+ // =========
990
+ // SYNTHESIS
991
+ // =========
992
+ synthesizeAttributes() {
993
+ return {
994
+ id: cdktf.stringToTerraform(this._id),
995
+ };
996
+ }
997
+ synthesizeHclAttributes() {
998
+ const attrs = {
999
+ id: {
1000
+ value: cdktf.stringToHclTerraform(this._id),
1001
+ isBlock: false,
1002
+ type: "simple",
1003
+ storageClassType: "string",
1004
+ },
1005
+ };
1006
+ // remove undefined attributes
1007
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
1008
+ }
1009
+ }