@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,2083 @@
1
+ // https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/deployment
2
+ // generated from terraform resource schema
3
+ import * as cdktf from 'cdktf';
4
+ export function deploymentCreatedByToTerraform(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 deploymentCreatedByToHclTerraform(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 DeploymentCreatedByOutputReference 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 deploymentEnvironmentVariablesToTerraform(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
+ is_secret: cdktf.booleanToTerraform(struct.isSecret),
79
+ key: cdktf.stringToTerraform(struct.key),
80
+ value: cdktf.stringToTerraform(struct.value),
81
+ };
82
+ }
83
+ export function deploymentEnvironmentVariablesToHclTerraform(struct) {
84
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
85
+ return struct;
86
+ }
87
+ if (cdktf.isComplexElement(struct)) {
88
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
89
+ }
90
+ const attrs = {
91
+ is_secret: {
92
+ value: cdktf.booleanToHclTerraform(struct.isSecret),
93
+ isBlock: false,
94
+ type: "simple",
95
+ storageClassType: "boolean",
96
+ },
97
+ key: {
98
+ value: cdktf.stringToHclTerraform(struct.key),
99
+ isBlock: false,
100
+ type: "simple",
101
+ storageClassType: "string",
102
+ },
103
+ value: {
104
+ value: cdktf.stringToHclTerraform(struct.value),
105
+ isBlock: false,
106
+ type: "simple",
107
+ storageClassType: "string",
108
+ },
109
+ };
110
+ // remove undefined attributes
111
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
112
+ }
113
+ export class DeploymentEnvironmentVariablesOutputReference extends cdktf.ComplexObject {
114
+ isEmptyObject = false;
115
+ resolvableValue;
116
+ /**
117
+ * @param terraformResource The parent resource
118
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
119
+ * @param complexObjectIndex the index of this item in the list
120
+ * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
121
+ */
122
+ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
123
+ super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
124
+ }
125
+ get internalValue() {
126
+ if (this.resolvableValue) {
127
+ return this.resolvableValue;
128
+ }
129
+ let hasAnyValues = this.isEmptyObject;
130
+ const internalValueResult = {};
131
+ if (this._isSecret !== undefined) {
132
+ hasAnyValues = true;
133
+ internalValueResult.isSecret = this._isSecret;
134
+ }
135
+ if (this._key !== undefined) {
136
+ hasAnyValues = true;
137
+ internalValueResult.key = this._key;
138
+ }
139
+ if (this._value !== undefined) {
140
+ hasAnyValues = true;
141
+ internalValueResult.value = this._value;
142
+ }
143
+ return hasAnyValues ? internalValueResult : undefined;
144
+ }
145
+ set internalValue(value) {
146
+ if (value === undefined) {
147
+ this.isEmptyObject = false;
148
+ this.resolvableValue = undefined;
149
+ this._isSecret = undefined;
150
+ this._key = undefined;
151
+ this._value = undefined;
152
+ }
153
+ else if (cdktf.Tokenization.isResolvable(value)) {
154
+ this.isEmptyObject = false;
155
+ this.resolvableValue = value;
156
+ }
157
+ else {
158
+ this.isEmptyObject = Object.keys(value).length === 0;
159
+ this.resolvableValue = undefined;
160
+ this._isSecret = value.isSecret;
161
+ this._key = value.key;
162
+ this._value = value.value;
163
+ }
164
+ }
165
+ // is_secret - computed: false, optional: false, required: true
166
+ _isSecret;
167
+ get isSecret() {
168
+ return this.getBooleanAttribute('is_secret');
169
+ }
170
+ set isSecret(value) {
171
+ this._isSecret = value;
172
+ }
173
+ // Temporarily expose input value. Use with caution.
174
+ get isSecretInput() {
175
+ return this._isSecret;
176
+ }
177
+ // key - computed: false, optional: false, required: true
178
+ _key;
179
+ get key() {
180
+ return this.getStringAttribute('key');
181
+ }
182
+ set key(value) {
183
+ this._key = value;
184
+ }
185
+ // Temporarily expose input value. Use with caution.
186
+ get keyInput() {
187
+ return this._key;
188
+ }
189
+ // updated_at - computed: true, optional: false, required: false
190
+ get updatedAt() {
191
+ return this.getStringAttribute('updated_at');
192
+ }
193
+ // value - computed: false, optional: true, required: false
194
+ _value;
195
+ get value() {
196
+ return this.getStringAttribute('value');
197
+ }
198
+ set value(value) {
199
+ this._value = value;
200
+ }
201
+ resetValue() {
202
+ this._value = undefined;
203
+ }
204
+ // Temporarily expose input value. Use with caution.
205
+ get valueInput() {
206
+ return this._value;
207
+ }
208
+ }
209
+ export class DeploymentEnvironmentVariablesList extends cdktf.ComplexList {
210
+ terraformResource;
211
+ terraformAttribute;
212
+ wrapsSet;
213
+ internalValue;
214
+ /**
215
+ * @param terraformResource The parent resource
216
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
217
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
218
+ */
219
+ constructor(terraformResource, terraformAttribute, wrapsSet) {
220
+ super(terraformResource, terraformAttribute, wrapsSet);
221
+ this.terraformResource = terraformResource;
222
+ this.terraformAttribute = terraformAttribute;
223
+ this.wrapsSet = wrapsSet;
224
+ }
225
+ /**
226
+ * @param index the index of the item to return
227
+ */
228
+ get(index) {
229
+ return new DeploymentEnvironmentVariablesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
230
+ }
231
+ }
232
+ export function deploymentRemoteExecutionToTerraform(struct) {
233
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
234
+ return struct;
235
+ }
236
+ if (cdktf.isComplexElement(struct)) {
237
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
238
+ }
239
+ return {
240
+ allowed_ip_address_ranges: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.allowedIpAddressRanges),
241
+ enabled: cdktf.booleanToTerraform(struct.enabled),
242
+ task_log_bucket: cdktf.stringToTerraform(struct.taskLogBucket),
243
+ task_log_url_pattern: cdktf.stringToTerraform(struct.taskLogUrlPattern),
244
+ };
245
+ }
246
+ export function deploymentRemoteExecutionToHclTerraform(struct) {
247
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
248
+ return struct;
249
+ }
250
+ if (cdktf.isComplexElement(struct)) {
251
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
252
+ }
253
+ const attrs = {
254
+ allowed_ip_address_ranges: {
255
+ value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.allowedIpAddressRanges),
256
+ isBlock: false,
257
+ type: "set",
258
+ storageClassType: "stringList",
259
+ },
260
+ enabled: {
261
+ value: cdktf.booleanToHclTerraform(struct.enabled),
262
+ isBlock: false,
263
+ type: "simple",
264
+ storageClassType: "boolean",
265
+ },
266
+ task_log_bucket: {
267
+ value: cdktf.stringToHclTerraform(struct.taskLogBucket),
268
+ isBlock: false,
269
+ type: "simple",
270
+ storageClassType: "string",
271
+ },
272
+ task_log_url_pattern: {
273
+ value: cdktf.stringToHclTerraform(struct.taskLogUrlPattern),
274
+ isBlock: false,
275
+ type: "simple",
276
+ storageClassType: "string",
277
+ },
278
+ };
279
+ // remove undefined attributes
280
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
281
+ }
282
+ export class DeploymentRemoteExecutionOutputReference extends cdktf.ComplexObject {
283
+ isEmptyObject = false;
284
+ resolvableValue;
285
+ /**
286
+ * @param terraformResource The parent resource
287
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
288
+ */
289
+ constructor(terraformResource, terraformAttribute) {
290
+ super(terraformResource, terraformAttribute, false);
291
+ }
292
+ get internalValue() {
293
+ if (this.resolvableValue) {
294
+ return this.resolvableValue;
295
+ }
296
+ let hasAnyValues = this.isEmptyObject;
297
+ const internalValueResult = {};
298
+ if (this._allowedIpAddressRanges !== undefined) {
299
+ hasAnyValues = true;
300
+ internalValueResult.allowedIpAddressRanges = this._allowedIpAddressRanges;
301
+ }
302
+ if (this._enabled !== undefined) {
303
+ hasAnyValues = true;
304
+ internalValueResult.enabled = this._enabled;
305
+ }
306
+ if (this._taskLogBucket !== undefined) {
307
+ hasAnyValues = true;
308
+ internalValueResult.taskLogBucket = this._taskLogBucket;
309
+ }
310
+ if (this._taskLogUrlPattern !== undefined) {
311
+ hasAnyValues = true;
312
+ internalValueResult.taskLogUrlPattern = this._taskLogUrlPattern;
313
+ }
314
+ return hasAnyValues ? internalValueResult : undefined;
315
+ }
316
+ set internalValue(value) {
317
+ if (value === undefined) {
318
+ this.isEmptyObject = false;
319
+ this.resolvableValue = undefined;
320
+ this._allowedIpAddressRanges = undefined;
321
+ this._enabled = undefined;
322
+ this._taskLogBucket = undefined;
323
+ this._taskLogUrlPattern = undefined;
324
+ }
325
+ else if (cdktf.Tokenization.isResolvable(value)) {
326
+ this.isEmptyObject = false;
327
+ this.resolvableValue = value;
328
+ }
329
+ else {
330
+ this.isEmptyObject = Object.keys(value).length === 0;
331
+ this.resolvableValue = undefined;
332
+ this._allowedIpAddressRanges = value.allowedIpAddressRanges;
333
+ this._enabled = value.enabled;
334
+ this._taskLogBucket = value.taskLogBucket;
335
+ this._taskLogUrlPattern = value.taskLogUrlPattern;
336
+ }
337
+ }
338
+ // allowed_ip_address_ranges - computed: false, optional: true, required: false
339
+ _allowedIpAddressRanges;
340
+ get allowedIpAddressRanges() {
341
+ return cdktf.Fn.tolist(this.getListAttribute('allowed_ip_address_ranges'));
342
+ }
343
+ set allowedIpAddressRanges(value) {
344
+ this._allowedIpAddressRanges = value;
345
+ }
346
+ resetAllowedIpAddressRanges() {
347
+ this._allowedIpAddressRanges = undefined;
348
+ }
349
+ // Temporarily expose input value. Use with caution.
350
+ get allowedIpAddressRangesInput() {
351
+ return this._allowedIpAddressRanges;
352
+ }
353
+ // enabled - computed: false, optional: false, required: true
354
+ _enabled;
355
+ get enabled() {
356
+ return this.getBooleanAttribute('enabled');
357
+ }
358
+ set enabled(value) {
359
+ this._enabled = value;
360
+ }
361
+ // Temporarily expose input value. Use with caution.
362
+ get enabledInput() {
363
+ return this._enabled;
364
+ }
365
+ // remote_api_url - computed: true, optional: false, required: false
366
+ get remoteApiUrl() {
367
+ return this.getStringAttribute('remote_api_url');
368
+ }
369
+ // task_log_bucket - computed: false, optional: true, required: false
370
+ _taskLogBucket;
371
+ get taskLogBucket() {
372
+ return this.getStringAttribute('task_log_bucket');
373
+ }
374
+ set taskLogBucket(value) {
375
+ this._taskLogBucket = value;
376
+ }
377
+ resetTaskLogBucket() {
378
+ this._taskLogBucket = undefined;
379
+ }
380
+ // Temporarily expose input value. Use with caution.
381
+ get taskLogBucketInput() {
382
+ return this._taskLogBucket;
383
+ }
384
+ // task_log_url_pattern - computed: false, optional: true, required: false
385
+ _taskLogUrlPattern;
386
+ get taskLogUrlPattern() {
387
+ return this.getStringAttribute('task_log_url_pattern');
388
+ }
389
+ set taskLogUrlPattern(value) {
390
+ this._taskLogUrlPattern = value;
391
+ }
392
+ resetTaskLogUrlPattern() {
393
+ this._taskLogUrlPattern = undefined;
394
+ }
395
+ // Temporarily expose input value. Use with caution.
396
+ get taskLogUrlPatternInput() {
397
+ return this._taskLogUrlPattern;
398
+ }
399
+ }
400
+ export function deploymentScalingSpecHibernationSpecOverrideToTerraform(struct) {
401
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
402
+ return struct;
403
+ }
404
+ if (cdktf.isComplexElement(struct)) {
405
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
406
+ }
407
+ return {
408
+ is_hibernating: cdktf.booleanToTerraform(struct.isHibernating),
409
+ override_until: cdktf.stringToTerraform(struct.overrideUntil),
410
+ };
411
+ }
412
+ export function deploymentScalingSpecHibernationSpecOverrideToHclTerraform(struct) {
413
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
414
+ return struct;
415
+ }
416
+ if (cdktf.isComplexElement(struct)) {
417
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
418
+ }
419
+ const attrs = {
420
+ is_hibernating: {
421
+ value: cdktf.booleanToHclTerraform(struct.isHibernating),
422
+ isBlock: false,
423
+ type: "simple",
424
+ storageClassType: "boolean",
425
+ },
426
+ override_until: {
427
+ value: cdktf.stringToHclTerraform(struct.overrideUntil),
428
+ isBlock: false,
429
+ type: "simple",
430
+ storageClassType: "string",
431
+ },
432
+ };
433
+ // remove undefined attributes
434
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
435
+ }
436
+ export class DeploymentScalingSpecHibernationSpecOverrideOutputReference extends cdktf.ComplexObject {
437
+ isEmptyObject = false;
438
+ resolvableValue;
439
+ /**
440
+ * @param terraformResource The parent resource
441
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
442
+ */
443
+ constructor(terraformResource, terraformAttribute) {
444
+ super(terraformResource, terraformAttribute, false);
445
+ }
446
+ get internalValue() {
447
+ if (this.resolvableValue) {
448
+ return this.resolvableValue;
449
+ }
450
+ let hasAnyValues = this.isEmptyObject;
451
+ const internalValueResult = {};
452
+ if (this._isHibernating !== undefined) {
453
+ hasAnyValues = true;
454
+ internalValueResult.isHibernating = this._isHibernating;
455
+ }
456
+ if (this._overrideUntil !== undefined) {
457
+ hasAnyValues = true;
458
+ internalValueResult.overrideUntil = this._overrideUntil;
459
+ }
460
+ return hasAnyValues ? internalValueResult : undefined;
461
+ }
462
+ set internalValue(value) {
463
+ if (value === undefined) {
464
+ this.isEmptyObject = false;
465
+ this.resolvableValue = undefined;
466
+ this._isHibernating = undefined;
467
+ this._overrideUntil = undefined;
468
+ }
469
+ else if (cdktf.Tokenization.isResolvable(value)) {
470
+ this.isEmptyObject = false;
471
+ this.resolvableValue = value;
472
+ }
473
+ else {
474
+ this.isEmptyObject = Object.keys(value).length === 0;
475
+ this.resolvableValue = undefined;
476
+ this._isHibernating = value.isHibernating;
477
+ this._overrideUntil = value.overrideUntil;
478
+ }
479
+ }
480
+ // is_active - computed: true, optional: false, required: false
481
+ get isActive() {
482
+ return this.getBooleanAttribute('is_active');
483
+ }
484
+ // is_hibernating - computed: false, optional: false, required: true
485
+ _isHibernating;
486
+ get isHibernating() {
487
+ return this.getBooleanAttribute('is_hibernating');
488
+ }
489
+ set isHibernating(value) {
490
+ this._isHibernating = value;
491
+ }
492
+ // Temporarily expose input value. Use with caution.
493
+ get isHibernatingInput() {
494
+ return this._isHibernating;
495
+ }
496
+ // override_until - computed: false, optional: true, required: false
497
+ _overrideUntil;
498
+ get overrideUntil() {
499
+ return this.getStringAttribute('override_until');
500
+ }
501
+ set overrideUntil(value) {
502
+ this._overrideUntil = value;
503
+ }
504
+ resetOverrideUntil() {
505
+ this._overrideUntil = undefined;
506
+ }
507
+ // Temporarily expose input value. Use with caution.
508
+ get overrideUntilInput() {
509
+ return this._overrideUntil;
510
+ }
511
+ }
512
+ export function deploymentScalingSpecHibernationSpecSchedulesToTerraform(struct) {
513
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
514
+ return struct;
515
+ }
516
+ if (cdktf.isComplexElement(struct)) {
517
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
518
+ }
519
+ return {
520
+ description: cdktf.stringToTerraform(struct.description),
521
+ hibernate_at_cron: cdktf.stringToTerraform(struct.hibernateAtCron),
522
+ is_enabled: cdktf.booleanToTerraform(struct.isEnabled),
523
+ wake_at_cron: cdktf.stringToTerraform(struct.wakeAtCron),
524
+ };
525
+ }
526
+ export function deploymentScalingSpecHibernationSpecSchedulesToHclTerraform(struct) {
527
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
528
+ return struct;
529
+ }
530
+ if (cdktf.isComplexElement(struct)) {
531
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
532
+ }
533
+ const attrs = {
534
+ description: {
535
+ value: cdktf.stringToHclTerraform(struct.description),
536
+ isBlock: false,
537
+ type: "simple",
538
+ storageClassType: "string",
539
+ },
540
+ hibernate_at_cron: {
541
+ value: cdktf.stringToHclTerraform(struct.hibernateAtCron),
542
+ isBlock: false,
543
+ type: "simple",
544
+ storageClassType: "string",
545
+ },
546
+ is_enabled: {
547
+ value: cdktf.booleanToHclTerraform(struct.isEnabled),
548
+ isBlock: false,
549
+ type: "simple",
550
+ storageClassType: "boolean",
551
+ },
552
+ wake_at_cron: {
553
+ value: cdktf.stringToHclTerraform(struct.wakeAtCron),
554
+ isBlock: false,
555
+ type: "simple",
556
+ storageClassType: "string",
557
+ },
558
+ };
559
+ // remove undefined attributes
560
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
561
+ }
562
+ export class DeploymentScalingSpecHibernationSpecSchedulesOutputReference extends cdktf.ComplexObject {
563
+ isEmptyObject = false;
564
+ resolvableValue;
565
+ /**
566
+ * @param terraformResource The parent resource
567
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
568
+ * @param complexObjectIndex the index of this item in the list
569
+ * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
570
+ */
571
+ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
572
+ super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
573
+ }
574
+ get internalValue() {
575
+ if (this.resolvableValue) {
576
+ return this.resolvableValue;
577
+ }
578
+ let hasAnyValues = this.isEmptyObject;
579
+ const internalValueResult = {};
580
+ if (this._description !== undefined) {
581
+ hasAnyValues = true;
582
+ internalValueResult.description = this._description;
583
+ }
584
+ if (this._hibernateAtCron !== undefined) {
585
+ hasAnyValues = true;
586
+ internalValueResult.hibernateAtCron = this._hibernateAtCron;
587
+ }
588
+ if (this._isEnabled !== undefined) {
589
+ hasAnyValues = true;
590
+ internalValueResult.isEnabled = this._isEnabled;
591
+ }
592
+ if (this._wakeAtCron !== undefined) {
593
+ hasAnyValues = true;
594
+ internalValueResult.wakeAtCron = this._wakeAtCron;
595
+ }
596
+ return hasAnyValues ? internalValueResult : undefined;
597
+ }
598
+ set internalValue(value) {
599
+ if (value === undefined) {
600
+ this.isEmptyObject = false;
601
+ this.resolvableValue = undefined;
602
+ this._description = undefined;
603
+ this._hibernateAtCron = undefined;
604
+ this._isEnabled = undefined;
605
+ this._wakeAtCron = undefined;
606
+ }
607
+ else if (cdktf.Tokenization.isResolvable(value)) {
608
+ this.isEmptyObject = false;
609
+ this.resolvableValue = value;
610
+ }
611
+ else {
612
+ this.isEmptyObject = Object.keys(value).length === 0;
613
+ this.resolvableValue = undefined;
614
+ this._description = value.description;
615
+ this._hibernateAtCron = value.hibernateAtCron;
616
+ this._isEnabled = value.isEnabled;
617
+ this._wakeAtCron = value.wakeAtCron;
618
+ }
619
+ }
620
+ // description - computed: false, optional: true, required: false
621
+ _description;
622
+ get description() {
623
+ return this.getStringAttribute('description');
624
+ }
625
+ set description(value) {
626
+ this._description = value;
627
+ }
628
+ resetDescription() {
629
+ this._description = undefined;
630
+ }
631
+ // Temporarily expose input value. Use with caution.
632
+ get descriptionInput() {
633
+ return this._description;
634
+ }
635
+ // hibernate_at_cron - computed: false, optional: false, required: true
636
+ _hibernateAtCron;
637
+ get hibernateAtCron() {
638
+ return this.getStringAttribute('hibernate_at_cron');
639
+ }
640
+ set hibernateAtCron(value) {
641
+ this._hibernateAtCron = value;
642
+ }
643
+ // Temporarily expose input value. Use with caution.
644
+ get hibernateAtCronInput() {
645
+ return this._hibernateAtCron;
646
+ }
647
+ // is_enabled - computed: false, optional: false, required: true
648
+ _isEnabled;
649
+ get isEnabled() {
650
+ return this.getBooleanAttribute('is_enabled');
651
+ }
652
+ set isEnabled(value) {
653
+ this._isEnabled = value;
654
+ }
655
+ // Temporarily expose input value. Use with caution.
656
+ get isEnabledInput() {
657
+ return this._isEnabled;
658
+ }
659
+ // wake_at_cron - computed: false, optional: false, required: true
660
+ _wakeAtCron;
661
+ get wakeAtCron() {
662
+ return this.getStringAttribute('wake_at_cron');
663
+ }
664
+ set wakeAtCron(value) {
665
+ this._wakeAtCron = value;
666
+ }
667
+ // Temporarily expose input value. Use with caution.
668
+ get wakeAtCronInput() {
669
+ return this._wakeAtCron;
670
+ }
671
+ }
672
+ export class DeploymentScalingSpecHibernationSpecSchedulesList extends cdktf.ComplexList {
673
+ terraformResource;
674
+ terraformAttribute;
675
+ wrapsSet;
676
+ internalValue;
677
+ /**
678
+ * @param terraformResource The parent resource
679
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
680
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
681
+ */
682
+ constructor(terraformResource, terraformAttribute, wrapsSet) {
683
+ super(terraformResource, terraformAttribute, wrapsSet);
684
+ this.terraformResource = terraformResource;
685
+ this.terraformAttribute = terraformAttribute;
686
+ this.wrapsSet = wrapsSet;
687
+ }
688
+ /**
689
+ * @param index the index of the item to return
690
+ */
691
+ get(index) {
692
+ return new DeploymentScalingSpecHibernationSpecSchedulesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
693
+ }
694
+ }
695
+ export function deploymentScalingSpecHibernationSpecToTerraform(struct) {
696
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
697
+ return struct;
698
+ }
699
+ if (cdktf.isComplexElement(struct)) {
700
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
701
+ }
702
+ return {
703
+ override: deploymentScalingSpecHibernationSpecOverrideToTerraform(struct.override),
704
+ schedules: cdktf.listMapper(deploymentScalingSpecHibernationSpecSchedulesToTerraform, false)(struct.schedules),
705
+ };
706
+ }
707
+ export function deploymentScalingSpecHibernationSpecToHclTerraform(struct) {
708
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
709
+ return struct;
710
+ }
711
+ if (cdktf.isComplexElement(struct)) {
712
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
713
+ }
714
+ const attrs = {
715
+ override: {
716
+ value: deploymentScalingSpecHibernationSpecOverrideToHclTerraform(struct.override),
717
+ isBlock: true,
718
+ type: "struct",
719
+ storageClassType: "DeploymentScalingSpecHibernationSpecOverride",
720
+ },
721
+ schedules: {
722
+ value: cdktf.listMapperHcl(deploymentScalingSpecHibernationSpecSchedulesToHclTerraform, false)(struct.schedules),
723
+ isBlock: true,
724
+ type: "set",
725
+ storageClassType: "DeploymentScalingSpecHibernationSpecSchedulesList",
726
+ },
727
+ };
728
+ // remove undefined attributes
729
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
730
+ }
731
+ export class DeploymentScalingSpecHibernationSpecOutputReference extends cdktf.ComplexObject {
732
+ isEmptyObject = false;
733
+ resolvableValue;
734
+ /**
735
+ * @param terraformResource The parent resource
736
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
737
+ */
738
+ constructor(terraformResource, terraformAttribute) {
739
+ super(terraformResource, terraformAttribute, false);
740
+ }
741
+ get internalValue() {
742
+ if (this.resolvableValue) {
743
+ return this.resolvableValue;
744
+ }
745
+ let hasAnyValues = this.isEmptyObject;
746
+ const internalValueResult = {};
747
+ if (this._override?.internalValue !== undefined) {
748
+ hasAnyValues = true;
749
+ internalValueResult.override = this._override?.internalValue;
750
+ }
751
+ if (this._schedules?.internalValue !== undefined) {
752
+ hasAnyValues = true;
753
+ internalValueResult.schedules = this._schedules?.internalValue;
754
+ }
755
+ return hasAnyValues ? internalValueResult : undefined;
756
+ }
757
+ set internalValue(value) {
758
+ if (value === undefined) {
759
+ this.isEmptyObject = false;
760
+ this.resolvableValue = undefined;
761
+ this._override.internalValue = undefined;
762
+ this._schedules.internalValue = undefined;
763
+ }
764
+ else if (cdktf.Tokenization.isResolvable(value)) {
765
+ this.isEmptyObject = false;
766
+ this.resolvableValue = value;
767
+ }
768
+ else {
769
+ this.isEmptyObject = Object.keys(value).length === 0;
770
+ this.resolvableValue = undefined;
771
+ this._override.internalValue = value.override;
772
+ this._schedules.internalValue = value.schedules;
773
+ }
774
+ }
775
+ // override - computed: false, optional: true, required: false
776
+ _override = new DeploymentScalingSpecHibernationSpecOverrideOutputReference(this, "override");
777
+ get override() {
778
+ return this._override;
779
+ }
780
+ putOverride(value) {
781
+ this._override.internalValue = value;
782
+ }
783
+ resetOverride() {
784
+ this._override.internalValue = undefined;
785
+ }
786
+ // Temporarily expose input value. Use with caution.
787
+ get overrideInput() {
788
+ return this._override.internalValue;
789
+ }
790
+ // schedules - computed: false, optional: true, required: false
791
+ _schedules = new DeploymentScalingSpecHibernationSpecSchedulesList(this, "schedules", true);
792
+ get schedules() {
793
+ return this._schedules;
794
+ }
795
+ putSchedules(value) {
796
+ this._schedules.internalValue = value;
797
+ }
798
+ resetSchedules() {
799
+ this._schedules.internalValue = undefined;
800
+ }
801
+ // Temporarily expose input value. Use with caution.
802
+ get schedulesInput() {
803
+ return this._schedules.internalValue;
804
+ }
805
+ }
806
+ export function deploymentScalingSpecToTerraform(struct) {
807
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
808
+ return struct;
809
+ }
810
+ if (cdktf.isComplexElement(struct)) {
811
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
812
+ }
813
+ return {
814
+ hibernation_spec: deploymentScalingSpecHibernationSpecToTerraform(struct.hibernationSpec),
815
+ };
816
+ }
817
+ export function deploymentScalingSpecToHclTerraform(struct) {
818
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
819
+ return struct;
820
+ }
821
+ if (cdktf.isComplexElement(struct)) {
822
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
823
+ }
824
+ const attrs = {
825
+ hibernation_spec: {
826
+ value: deploymentScalingSpecHibernationSpecToHclTerraform(struct.hibernationSpec),
827
+ isBlock: true,
828
+ type: "struct",
829
+ storageClassType: "DeploymentScalingSpecHibernationSpec",
830
+ },
831
+ };
832
+ // remove undefined attributes
833
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
834
+ }
835
+ export class DeploymentScalingSpecOutputReference extends cdktf.ComplexObject {
836
+ isEmptyObject = false;
837
+ resolvableValue;
838
+ /**
839
+ * @param terraformResource The parent resource
840
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
841
+ */
842
+ constructor(terraformResource, terraformAttribute) {
843
+ super(terraformResource, terraformAttribute, false);
844
+ }
845
+ get internalValue() {
846
+ if (this.resolvableValue) {
847
+ return this.resolvableValue;
848
+ }
849
+ let hasAnyValues = this.isEmptyObject;
850
+ const internalValueResult = {};
851
+ if (this._hibernationSpec?.internalValue !== undefined) {
852
+ hasAnyValues = true;
853
+ internalValueResult.hibernationSpec = this._hibernationSpec?.internalValue;
854
+ }
855
+ return hasAnyValues ? internalValueResult : undefined;
856
+ }
857
+ set internalValue(value) {
858
+ if (value === undefined) {
859
+ this.isEmptyObject = false;
860
+ this.resolvableValue = undefined;
861
+ this._hibernationSpec.internalValue = undefined;
862
+ }
863
+ else if (cdktf.Tokenization.isResolvable(value)) {
864
+ this.isEmptyObject = false;
865
+ this.resolvableValue = value;
866
+ }
867
+ else {
868
+ this.isEmptyObject = Object.keys(value).length === 0;
869
+ this.resolvableValue = undefined;
870
+ this._hibernationSpec.internalValue = value.hibernationSpec;
871
+ }
872
+ }
873
+ // hibernation_spec - computed: false, optional: false, required: true
874
+ _hibernationSpec = new DeploymentScalingSpecHibernationSpecOutputReference(this, "hibernation_spec");
875
+ get hibernationSpec() {
876
+ return this._hibernationSpec;
877
+ }
878
+ putHibernationSpec(value) {
879
+ this._hibernationSpec.internalValue = value;
880
+ }
881
+ // Temporarily expose input value. Use with caution.
882
+ get hibernationSpecInput() {
883
+ return this._hibernationSpec.internalValue;
884
+ }
885
+ }
886
+ export function deploymentScalingStatusHibernationStatusToTerraform(struct) {
887
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
888
+ return struct;
889
+ }
890
+ if (cdktf.isComplexElement(struct)) {
891
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
892
+ }
893
+ return {};
894
+ }
895
+ export function deploymentScalingStatusHibernationStatusToHclTerraform(struct) {
896
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
897
+ return struct;
898
+ }
899
+ if (cdktf.isComplexElement(struct)) {
900
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
901
+ }
902
+ const attrs = {};
903
+ return attrs;
904
+ }
905
+ export class DeploymentScalingStatusHibernationStatusOutputReference extends cdktf.ComplexObject {
906
+ isEmptyObject = false;
907
+ /**
908
+ * @param terraformResource The parent resource
909
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
910
+ */
911
+ constructor(terraformResource, terraformAttribute) {
912
+ super(terraformResource, terraformAttribute, false);
913
+ }
914
+ get internalValue() {
915
+ let hasAnyValues = this.isEmptyObject;
916
+ const internalValueResult = {};
917
+ return hasAnyValues ? internalValueResult : undefined;
918
+ }
919
+ set internalValue(value) {
920
+ if (value === undefined) {
921
+ this.isEmptyObject = false;
922
+ }
923
+ else {
924
+ this.isEmptyObject = Object.keys(value).length === 0;
925
+ }
926
+ }
927
+ // is_hibernating - computed: true, optional: false, required: false
928
+ get isHibernating() {
929
+ return this.getBooleanAttribute('is_hibernating');
930
+ }
931
+ // next_event_at - computed: true, optional: false, required: false
932
+ get nextEventAt() {
933
+ return this.getStringAttribute('next_event_at');
934
+ }
935
+ // next_event_type - computed: true, optional: false, required: false
936
+ get nextEventType() {
937
+ return this.getStringAttribute('next_event_type');
938
+ }
939
+ // reason - computed: true, optional: false, required: false
940
+ get reason() {
941
+ return this.getStringAttribute('reason');
942
+ }
943
+ }
944
+ export function deploymentScalingStatusToTerraform(struct) {
945
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
946
+ return struct;
947
+ }
948
+ if (cdktf.isComplexElement(struct)) {
949
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
950
+ }
951
+ return {};
952
+ }
953
+ export function deploymentScalingStatusToHclTerraform(struct) {
954
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
955
+ return struct;
956
+ }
957
+ if (cdktf.isComplexElement(struct)) {
958
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
959
+ }
960
+ const attrs = {};
961
+ return attrs;
962
+ }
963
+ export class DeploymentScalingStatusOutputReference extends cdktf.ComplexObject {
964
+ isEmptyObject = false;
965
+ /**
966
+ * @param terraformResource The parent resource
967
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
968
+ */
969
+ constructor(terraformResource, terraformAttribute) {
970
+ super(terraformResource, terraformAttribute, false);
971
+ }
972
+ get internalValue() {
973
+ let hasAnyValues = this.isEmptyObject;
974
+ const internalValueResult = {};
975
+ return hasAnyValues ? internalValueResult : undefined;
976
+ }
977
+ set internalValue(value) {
978
+ if (value === undefined) {
979
+ this.isEmptyObject = false;
980
+ }
981
+ else {
982
+ this.isEmptyObject = Object.keys(value).length === 0;
983
+ }
984
+ }
985
+ // hibernation_status - computed: true, optional: false, required: false
986
+ _hibernationStatus = new DeploymentScalingStatusHibernationStatusOutputReference(this, "hibernation_status");
987
+ get hibernationStatus() {
988
+ return this._hibernationStatus;
989
+ }
990
+ }
991
+ export function deploymentUpdatedByToTerraform(struct) {
992
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
993
+ return struct;
994
+ }
995
+ if (cdktf.isComplexElement(struct)) {
996
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
997
+ }
998
+ return {};
999
+ }
1000
+ export function deploymentUpdatedByToHclTerraform(struct) {
1001
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
1002
+ return struct;
1003
+ }
1004
+ if (cdktf.isComplexElement(struct)) {
1005
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
1006
+ }
1007
+ const attrs = {};
1008
+ return attrs;
1009
+ }
1010
+ export class DeploymentUpdatedByOutputReference extends cdktf.ComplexObject {
1011
+ isEmptyObject = false;
1012
+ /**
1013
+ * @param terraformResource The parent resource
1014
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
1015
+ */
1016
+ constructor(terraformResource, terraformAttribute) {
1017
+ super(terraformResource, terraformAttribute, false);
1018
+ }
1019
+ get internalValue() {
1020
+ let hasAnyValues = this.isEmptyObject;
1021
+ const internalValueResult = {};
1022
+ return hasAnyValues ? internalValueResult : undefined;
1023
+ }
1024
+ set internalValue(value) {
1025
+ if (value === undefined) {
1026
+ this.isEmptyObject = false;
1027
+ }
1028
+ else {
1029
+ this.isEmptyObject = Object.keys(value).length === 0;
1030
+ }
1031
+ }
1032
+ // api_token_name - computed: true, optional: false, required: false
1033
+ get apiTokenName() {
1034
+ return this.getStringAttribute('api_token_name');
1035
+ }
1036
+ // avatar_url - computed: true, optional: false, required: false
1037
+ get avatarUrl() {
1038
+ return this.getStringAttribute('avatar_url');
1039
+ }
1040
+ // full_name - computed: true, optional: false, required: false
1041
+ get fullName() {
1042
+ return this.getStringAttribute('full_name');
1043
+ }
1044
+ // id - computed: true, optional: false, required: false
1045
+ get id() {
1046
+ return this.getStringAttribute('id');
1047
+ }
1048
+ // subject_type - computed: true, optional: false, required: false
1049
+ get subjectType() {
1050
+ return this.getStringAttribute('subject_type');
1051
+ }
1052
+ // username - computed: true, optional: false, required: false
1053
+ get username() {
1054
+ return this.getStringAttribute('username');
1055
+ }
1056
+ }
1057
+ export function deploymentWorkerQueuesToTerraform(struct) {
1058
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
1059
+ return struct;
1060
+ }
1061
+ if (cdktf.isComplexElement(struct)) {
1062
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
1063
+ }
1064
+ return {
1065
+ astro_machine: cdktf.stringToTerraform(struct.astroMachine),
1066
+ is_default: cdktf.booleanToTerraform(struct.isDefault),
1067
+ max_worker_count: cdktf.numberToTerraform(struct.maxWorkerCount),
1068
+ min_worker_count: cdktf.numberToTerraform(struct.minWorkerCount),
1069
+ name: cdktf.stringToTerraform(struct.name),
1070
+ node_pool_id: cdktf.stringToTerraform(struct.nodePoolId),
1071
+ worker_concurrency: cdktf.numberToTerraform(struct.workerConcurrency),
1072
+ };
1073
+ }
1074
+ export function deploymentWorkerQueuesToHclTerraform(struct) {
1075
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
1076
+ return struct;
1077
+ }
1078
+ if (cdktf.isComplexElement(struct)) {
1079
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
1080
+ }
1081
+ const attrs = {
1082
+ astro_machine: {
1083
+ value: cdktf.stringToHclTerraform(struct.astroMachine),
1084
+ isBlock: false,
1085
+ type: "simple",
1086
+ storageClassType: "string",
1087
+ },
1088
+ is_default: {
1089
+ value: cdktf.booleanToHclTerraform(struct.isDefault),
1090
+ isBlock: false,
1091
+ type: "simple",
1092
+ storageClassType: "boolean",
1093
+ },
1094
+ max_worker_count: {
1095
+ value: cdktf.numberToHclTerraform(struct.maxWorkerCount),
1096
+ isBlock: false,
1097
+ type: "simple",
1098
+ storageClassType: "number",
1099
+ },
1100
+ min_worker_count: {
1101
+ value: cdktf.numberToHclTerraform(struct.minWorkerCount),
1102
+ isBlock: false,
1103
+ type: "simple",
1104
+ storageClassType: "number",
1105
+ },
1106
+ name: {
1107
+ value: cdktf.stringToHclTerraform(struct.name),
1108
+ isBlock: false,
1109
+ type: "simple",
1110
+ storageClassType: "string",
1111
+ },
1112
+ node_pool_id: {
1113
+ value: cdktf.stringToHclTerraform(struct.nodePoolId),
1114
+ isBlock: false,
1115
+ type: "simple",
1116
+ storageClassType: "string",
1117
+ },
1118
+ worker_concurrency: {
1119
+ value: cdktf.numberToHclTerraform(struct.workerConcurrency),
1120
+ isBlock: false,
1121
+ type: "simple",
1122
+ storageClassType: "number",
1123
+ },
1124
+ };
1125
+ // remove undefined attributes
1126
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
1127
+ }
1128
+ export class DeploymentWorkerQueuesOutputReference extends cdktf.ComplexObject {
1129
+ isEmptyObject = false;
1130
+ resolvableValue;
1131
+ /**
1132
+ * @param terraformResource The parent resource
1133
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
1134
+ * @param complexObjectIndex the index of this item in the list
1135
+ * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
1136
+ */
1137
+ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
1138
+ super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
1139
+ }
1140
+ get internalValue() {
1141
+ if (this.resolvableValue) {
1142
+ return this.resolvableValue;
1143
+ }
1144
+ let hasAnyValues = this.isEmptyObject;
1145
+ const internalValueResult = {};
1146
+ if (this._astroMachine !== undefined) {
1147
+ hasAnyValues = true;
1148
+ internalValueResult.astroMachine = this._astroMachine;
1149
+ }
1150
+ if (this._isDefault !== undefined) {
1151
+ hasAnyValues = true;
1152
+ internalValueResult.isDefault = this._isDefault;
1153
+ }
1154
+ if (this._maxWorkerCount !== undefined) {
1155
+ hasAnyValues = true;
1156
+ internalValueResult.maxWorkerCount = this._maxWorkerCount;
1157
+ }
1158
+ if (this._minWorkerCount !== undefined) {
1159
+ hasAnyValues = true;
1160
+ internalValueResult.minWorkerCount = this._minWorkerCount;
1161
+ }
1162
+ if (this._name !== undefined) {
1163
+ hasAnyValues = true;
1164
+ internalValueResult.name = this._name;
1165
+ }
1166
+ if (this._nodePoolId !== undefined) {
1167
+ hasAnyValues = true;
1168
+ internalValueResult.nodePoolId = this._nodePoolId;
1169
+ }
1170
+ if (this._workerConcurrency !== undefined) {
1171
+ hasAnyValues = true;
1172
+ internalValueResult.workerConcurrency = this._workerConcurrency;
1173
+ }
1174
+ return hasAnyValues ? internalValueResult : undefined;
1175
+ }
1176
+ set internalValue(value) {
1177
+ if (value === undefined) {
1178
+ this.isEmptyObject = false;
1179
+ this.resolvableValue = undefined;
1180
+ this._astroMachine = undefined;
1181
+ this._isDefault = undefined;
1182
+ this._maxWorkerCount = undefined;
1183
+ this._minWorkerCount = undefined;
1184
+ this._name = undefined;
1185
+ this._nodePoolId = undefined;
1186
+ this._workerConcurrency = undefined;
1187
+ }
1188
+ else if (cdktf.Tokenization.isResolvable(value)) {
1189
+ this.isEmptyObject = false;
1190
+ this.resolvableValue = value;
1191
+ }
1192
+ else {
1193
+ this.isEmptyObject = Object.keys(value).length === 0;
1194
+ this.resolvableValue = undefined;
1195
+ this._astroMachine = value.astroMachine;
1196
+ this._isDefault = value.isDefault;
1197
+ this._maxWorkerCount = value.maxWorkerCount;
1198
+ this._minWorkerCount = value.minWorkerCount;
1199
+ this._name = value.name;
1200
+ this._nodePoolId = value.nodePoolId;
1201
+ this._workerConcurrency = value.workerConcurrency;
1202
+ }
1203
+ }
1204
+ // astro_machine - computed: false, optional: true, required: false
1205
+ _astroMachine;
1206
+ get astroMachine() {
1207
+ return this.getStringAttribute('astro_machine');
1208
+ }
1209
+ set astroMachine(value) {
1210
+ this._astroMachine = value;
1211
+ }
1212
+ resetAstroMachine() {
1213
+ this._astroMachine = undefined;
1214
+ }
1215
+ // Temporarily expose input value. Use with caution.
1216
+ get astroMachineInput() {
1217
+ return this._astroMachine;
1218
+ }
1219
+ // is_default - computed: false, optional: false, required: true
1220
+ _isDefault;
1221
+ get isDefault() {
1222
+ return this.getBooleanAttribute('is_default');
1223
+ }
1224
+ set isDefault(value) {
1225
+ this._isDefault = value;
1226
+ }
1227
+ // Temporarily expose input value. Use with caution.
1228
+ get isDefaultInput() {
1229
+ return this._isDefault;
1230
+ }
1231
+ // max_worker_count - computed: false, optional: false, required: true
1232
+ _maxWorkerCount;
1233
+ get maxWorkerCount() {
1234
+ return this.getNumberAttribute('max_worker_count');
1235
+ }
1236
+ set maxWorkerCount(value) {
1237
+ this._maxWorkerCount = value;
1238
+ }
1239
+ // Temporarily expose input value. Use with caution.
1240
+ get maxWorkerCountInput() {
1241
+ return this._maxWorkerCount;
1242
+ }
1243
+ // min_worker_count - computed: false, optional: false, required: true
1244
+ _minWorkerCount;
1245
+ get minWorkerCount() {
1246
+ return this.getNumberAttribute('min_worker_count');
1247
+ }
1248
+ set minWorkerCount(value) {
1249
+ this._minWorkerCount = value;
1250
+ }
1251
+ // Temporarily expose input value. Use with caution.
1252
+ get minWorkerCountInput() {
1253
+ return this._minWorkerCount;
1254
+ }
1255
+ // name - computed: false, optional: false, required: true
1256
+ _name;
1257
+ get name() {
1258
+ return this.getStringAttribute('name');
1259
+ }
1260
+ set name(value) {
1261
+ this._name = value;
1262
+ }
1263
+ // Temporarily expose input value. Use with caution.
1264
+ get nameInput() {
1265
+ return this._name;
1266
+ }
1267
+ // node_pool_id - computed: false, optional: true, required: false
1268
+ _nodePoolId;
1269
+ get nodePoolId() {
1270
+ return this.getStringAttribute('node_pool_id');
1271
+ }
1272
+ set nodePoolId(value) {
1273
+ this._nodePoolId = value;
1274
+ }
1275
+ resetNodePoolId() {
1276
+ this._nodePoolId = undefined;
1277
+ }
1278
+ // Temporarily expose input value. Use with caution.
1279
+ get nodePoolIdInput() {
1280
+ return this._nodePoolId;
1281
+ }
1282
+ // pod_cpu - computed: true, optional: false, required: false
1283
+ get podCpu() {
1284
+ return this.getStringAttribute('pod_cpu');
1285
+ }
1286
+ // pod_memory - computed: true, optional: false, required: false
1287
+ get podMemory() {
1288
+ return this.getStringAttribute('pod_memory');
1289
+ }
1290
+ // worker_concurrency - computed: false, optional: false, required: true
1291
+ _workerConcurrency;
1292
+ get workerConcurrency() {
1293
+ return this.getNumberAttribute('worker_concurrency');
1294
+ }
1295
+ set workerConcurrency(value) {
1296
+ this._workerConcurrency = value;
1297
+ }
1298
+ // Temporarily expose input value. Use with caution.
1299
+ get workerConcurrencyInput() {
1300
+ return this._workerConcurrency;
1301
+ }
1302
+ }
1303
+ export class DeploymentWorkerQueuesList extends cdktf.ComplexList {
1304
+ terraformResource;
1305
+ terraformAttribute;
1306
+ wrapsSet;
1307
+ internalValue;
1308
+ /**
1309
+ * @param terraformResource The parent resource
1310
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
1311
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
1312
+ */
1313
+ constructor(terraformResource, terraformAttribute, wrapsSet) {
1314
+ super(terraformResource, terraformAttribute, wrapsSet);
1315
+ this.terraformResource = terraformResource;
1316
+ this.terraformAttribute = terraformAttribute;
1317
+ this.wrapsSet = wrapsSet;
1318
+ }
1319
+ /**
1320
+ * @param index the index of the item to return
1321
+ */
1322
+ get(index) {
1323
+ return new DeploymentWorkerQueuesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
1324
+ }
1325
+ }
1326
+ /**
1327
+ * Represents a {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/deployment astro_deployment}
1328
+ */
1329
+ export class Deployment extends cdktf.TerraformResource {
1330
+ // =================
1331
+ // STATIC PROPERTIES
1332
+ // =================
1333
+ static tfResourceType = "astro_deployment";
1334
+ // ==============
1335
+ // STATIC Methods
1336
+ // ==============
1337
+ /**
1338
+ * Generates CDKTF code for importing a Deployment resource upon running "cdktf plan <stack-name>"
1339
+ * @param scope The scope in which to define this construct
1340
+ * @param importToId The construct id used in the generated config for the Deployment to import
1341
+ * @param importFromId The id of the existing Deployment that should be imported. Refer to the {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/deployment#import import section} in the documentation of this resource for the id to use
1342
+ * @param provider? Optional instance of the provider where the Deployment to import is found
1343
+ */
1344
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
1345
+ return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "astro_deployment", importId: importFromId, provider });
1346
+ }
1347
+ // ===========
1348
+ // INITIALIZER
1349
+ // ===========
1350
+ /**
1351
+ * Create a new {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/deployment astro_deployment} Resource
1352
+ *
1353
+ * @param scope The scope in which to define this construct
1354
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
1355
+ * @param options DeploymentConfig
1356
+ */
1357
+ constructor(scope, id, config) {
1358
+ super(scope, id, {
1359
+ terraformResourceType: 'astro_deployment',
1360
+ terraformGeneratorMetadata: {
1361
+ providerName: 'astro',
1362
+ providerVersion: '1.0.8',
1363
+ providerVersionConstraint: '1.0.8'
1364
+ },
1365
+ provider: config.provider,
1366
+ dependsOn: config.dependsOn,
1367
+ count: config.count,
1368
+ lifecycle: config.lifecycle,
1369
+ provisioners: config.provisioners,
1370
+ connection: config.connection,
1371
+ forEach: config.forEach
1372
+ });
1373
+ this._cloudProvider = config.cloudProvider;
1374
+ this._clusterId = config.clusterId;
1375
+ this._contactEmails = config.contactEmails;
1376
+ this._defaultTaskPodCpu = config.defaultTaskPodCpu;
1377
+ this._defaultTaskPodMemory = config.defaultTaskPodMemory;
1378
+ this._description = config.description;
1379
+ this._desiredWorkloadIdentity = config.desiredWorkloadIdentity;
1380
+ this._environmentVariables.internalValue = config.environmentVariables;
1381
+ this._executor = config.executor;
1382
+ this._isCicdEnforced = config.isCicdEnforced;
1383
+ this._isDagDeployEnabled = config.isDagDeployEnabled;
1384
+ this._isDevelopmentMode = config.isDevelopmentMode;
1385
+ this._isHighAvailability = config.isHighAvailability;
1386
+ this._name = config.name;
1387
+ this._originalAstroRuntimeVersion = config.originalAstroRuntimeVersion;
1388
+ this._region = config.region;
1389
+ this._remoteExecution.internalValue = config.remoteExecution;
1390
+ this._resourceQuotaCpu = config.resourceQuotaCpu;
1391
+ this._resourceQuotaMemory = config.resourceQuotaMemory;
1392
+ this._scalingSpec.internalValue = config.scalingSpec;
1393
+ this._schedulerAu = config.schedulerAu;
1394
+ this._schedulerReplicas = config.schedulerReplicas;
1395
+ this._schedulerSize = config.schedulerSize;
1396
+ this._taskPodNodePoolId = config.taskPodNodePoolId;
1397
+ this._type = config.type;
1398
+ this._workerQueues.internalValue = config.workerQueues;
1399
+ this._workspaceId = config.workspaceId;
1400
+ }
1401
+ // ==========
1402
+ // ATTRIBUTES
1403
+ // ==========
1404
+ // airflow_version - computed: true, optional: false, required: false
1405
+ get airflowVersion() {
1406
+ return this.getStringAttribute('airflow_version');
1407
+ }
1408
+ // astro_runtime_version - computed: true, optional: false, required: false
1409
+ get astroRuntimeVersion() {
1410
+ return this.getStringAttribute('astro_runtime_version');
1411
+ }
1412
+ // cloud_provider - computed: true, optional: true, required: false
1413
+ _cloudProvider;
1414
+ get cloudProvider() {
1415
+ return this.getStringAttribute('cloud_provider');
1416
+ }
1417
+ set cloudProvider(value) {
1418
+ this._cloudProvider = value;
1419
+ }
1420
+ resetCloudProvider() {
1421
+ this._cloudProvider = undefined;
1422
+ }
1423
+ // Temporarily expose input value. Use with caution.
1424
+ get cloudProviderInput() {
1425
+ return this._cloudProvider;
1426
+ }
1427
+ // cluster_id - computed: true, optional: true, required: false
1428
+ _clusterId;
1429
+ get clusterId() {
1430
+ return this.getStringAttribute('cluster_id');
1431
+ }
1432
+ set clusterId(value) {
1433
+ this._clusterId = value;
1434
+ }
1435
+ resetClusterId() {
1436
+ this._clusterId = undefined;
1437
+ }
1438
+ // Temporarily expose input value. Use with caution.
1439
+ get clusterIdInput() {
1440
+ return this._clusterId;
1441
+ }
1442
+ // contact_emails - computed: false, optional: false, required: true
1443
+ _contactEmails;
1444
+ get contactEmails() {
1445
+ return cdktf.Fn.tolist(this.getListAttribute('contact_emails'));
1446
+ }
1447
+ set contactEmails(value) {
1448
+ this._contactEmails = value;
1449
+ }
1450
+ // Temporarily expose input value. Use with caution.
1451
+ get contactEmailsInput() {
1452
+ return this._contactEmails;
1453
+ }
1454
+ // created_at - computed: true, optional: false, required: false
1455
+ get createdAt() {
1456
+ return this.getStringAttribute('created_at');
1457
+ }
1458
+ // created_by - computed: true, optional: false, required: false
1459
+ _createdBy = new DeploymentCreatedByOutputReference(this, "created_by");
1460
+ get createdBy() {
1461
+ return this._createdBy;
1462
+ }
1463
+ // dag_tarball_version - computed: true, optional: false, required: false
1464
+ get dagTarballVersion() {
1465
+ return this.getStringAttribute('dag_tarball_version');
1466
+ }
1467
+ // default_task_pod_cpu - computed: false, optional: true, required: false
1468
+ _defaultTaskPodCpu;
1469
+ get defaultTaskPodCpu() {
1470
+ return this.getStringAttribute('default_task_pod_cpu');
1471
+ }
1472
+ set defaultTaskPodCpu(value) {
1473
+ this._defaultTaskPodCpu = value;
1474
+ }
1475
+ resetDefaultTaskPodCpu() {
1476
+ this._defaultTaskPodCpu = undefined;
1477
+ }
1478
+ // Temporarily expose input value. Use with caution.
1479
+ get defaultTaskPodCpuInput() {
1480
+ return this._defaultTaskPodCpu;
1481
+ }
1482
+ // default_task_pod_memory - computed: false, optional: true, required: false
1483
+ _defaultTaskPodMemory;
1484
+ get defaultTaskPodMemory() {
1485
+ return this.getStringAttribute('default_task_pod_memory');
1486
+ }
1487
+ set defaultTaskPodMemory(value) {
1488
+ this._defaultTaskPodMemory = value;
1489
+ }
1490
+ resetDefaultTaskPodMemory() {
1491
+ this._defaultTaskPodMemory = undefined;
1492
+ }
1493
+ // Temporarily expose input value. Use with caution.
1494
+ get defaultTaskPodMemoryInput() {
1495
+ return this._defaultTaskPodMemory;
1496
+ }
1497
+ // description - computed: false, optional: false, required: true
1498
+ _description;
1499
+ get description() {
1500
+ return this.getStringAttribute('description');
1501
+ }
1502
+ set description(value) {
1503
+ this._description = value;
1504
+ }
1505
+ // Temporarily expose input value. Use with caution.
1506
+ get descriptionInput() {
1507
+ return this._description;
1508
+ }
1509
+ // desired_dag_tarball_version - computed: true, optional: false, required: false
1510
+ get desiredDagTarballVersion() {
1511
+ return this.getStringAttribute('desired_dag_tarball_version');
1512
+ }
1513
+ // desired_workload_identity - computed: false, optional: true, required: false
1514
+ _desiredWorkloadIdentity;
1515
+ get desiredWorkloadIdentity() {
1516
+ return this.getStringAttribute('desired_workload_identity');
1517
+ }
1518
+ set desiredWorkloadIdentity(value) {
1519
+ this._desiredWorkloadIdentity = value;
1520
+ }
1521
+ resetDesiredWorkloadIdentity() {
1522
+ this._desiredWorkloadIdentity = undefined;
1523
+ }
1524
+ // Temporarily expose input value. Use with caution.
1525
+ get desiredWorkloadIdentityInput() {
1526
+ return this._desiredWorkloadIdentity;
1527
+ }
1528
+ // environment_variables - computed: false, optional: false, required: true
1529
+ _environmentVariables = new DeploymentEnvironmentVariablesList(this, "environment_variables", true);
1530
+ get environmentVariables() {
1531
+ return this._environmentVariables;
1532
+ }
1533
+ putEnvironmentVariables(value) {
1534
+ this._environmentVariables.internalValue = value;
1535
+ }
1536
+ // Temporarily expose input value. Use with caution.
1537
+ get environmentVariablesInput() {
1538
+ return this._environmentVariables.internalValue;
1539
+ }
1540
+ // executor - computed: false, optional: false, required: true
1541
+ _executor;
1542
+ get executor() {
1543
+ return this.getStringAttribute('executor');
1544
+ }
1545
+ set executor(value) {
1546
+ this._executor = value;
1547
+ }
1548
+ // Temporarily expose input value. Use with caution.
1549
+ get executorInput() {
1550
+ return this._executor;
1551
+ }
1552
+ // external_ips - computed: true, optional: false, required: false
1553
+ get externalIps() {
1554
+ return cdktf.Fn.tolist(this.getListAttribute('external_ips'));
1555
+ }
1556
+ // id - computed: true, optional: false, required: false
1557
+ get id() {
1558
+ return this.getStringAttribute('id');
1559
+ }
1560
+ // image_repository - computed: true, optional: false, required: false
1561
+ get imageRepository() {
1562
+ return this.getStringAttribute('image_repository');
1563
+ }
1564
+ // image_tag - computed: true, optional: false, required: false
1565
+ get imageTag() {
1566
+ return this.getStringAttribute('image_tag');
1567
+ }
1568
+ // image_version - computed: true, optional: false, required: false
1569
+ get imageVersion() {
1570
+ return this.getStringAttribute('image_version');
1571
+ }
1572
+ // is_cicd_enforced - computed: false, optional: false, required: true
1573
+ _isCicdEnforced;
1574
+ get isCicdEnforced() {
1575
+ return this.getBooleanAttribute('is_cicd_enforced');
1576
+ }
1577
+ set isCicdEnforced(value) {
1578
+ this._isCicdEnforced = value;
1579
+ }
1580
+ // Temporarily expose input value. Use with caution.
1581
+ get isCicdEnforcedInput() {
1582
+ return this._isCicdEnforced;
1583
+ }
1584
+ // is_dag_deploy_enabled - computed: false, optional: false, required: true
1585
+ _isDagDeployEnabled;
1586
+ get isDagDeployEnabled() {
1587
+ return this.getBooleanAttribute('is_dag_deploy_enabled');
1588
+ }
1589
+ set isDagDeployEnabled(value) {
1590
+ this._isDagDeployEnabled = value;
1591
+ }
1592
+ // Temporarily expose input value. Use with caution.
1593
+ get isDagDeployEnabledInput() {
1594
+ return this._isDagDeployEnabled;
1595
+ }
1596
+ // is_development_mode - computed: false, optional: true, required: false
1597
+ _isDevelopmentMode;
1598
+ get isDevelopmentMode() {
1599
+ return this.getBooleanAttribute('is_development_mode');
1600
+ }
1601
+ set isDevelopmentMode(value) {
1602
+ this._isDevelopmentMode = value;
1603
+ }
1604
+ resetIsDevelopmentMode() {
1605
+ this._isDevelopmentMode = undefined;
1606
+ }
1607
+ // Temporarily expose input value. Use with caution.
1608
+ get isDevelopmentModeInput() {
1609
+ return this._isDevelopmentMode;
1610
+ }
1611
+ // is_high_availability - computed: false, optional: true, required: false
1612
+ _isHighAvailability;
1613
+ get isHighAvailability() {
1614
+ return this.getBooleanAttribute('is_high_availability');
1615
+ }
1616
+ set isHighAvailability(value) {
1617
+ this._isHighAvailability = value;
1618
+ }
1619
+ resetIsHighAvailability() {
1620
+ this._isHighAvailability = undefined;
1621
+ }
1622
+ // Temporarily expose input value. Use with caution.
1623
+ get isHighAvailabilityInput() {
1624
+ return this._isHighAvailability;
1625
+ }
1626
+ // name - computed: false, optional: false, required: true
1627
+ _name;
1628
+ get name() {
1629
+ return this.getStringAttribute('name');
1630
+ }
1631
+ set name(value) {
1632
+ this._name = value;
1633
+ }
1634
+ // Temporarily expose input value. Use with caution.
1635
+ get nameInput() {
1636
+ return this._name;
1637
+ }
1638
+ // namespace - computed: true, optional: false, required: false
1639
+ get namespace() {
1640
+ return this.getStringAttribute('namespace');
1641
+ }
1642
+ // oidc_issuer_url - computed: true, optional: false, required: false
1643
+ get oidcIssuerUrl() {
1644
+ return this.getStringAttribute('oidc_issuer_url');
1645
+ }
1646
+ // original_astro_runtime_version - computed: false, optional: true, required: false
1647
+ _originalAstroRuntimeVersion;
1648
+ get originalAstroRuntimeVersion() {
1649
+ return this.getStringAttribute('original_astro_runtime_version');
1650
+ }
1651
+ set originalAstroRuntimeVersion(value) {
1652
+ this._originalAstroRuntimeVersion = value;
1653
+ }
1654
+ resetOriginalAstroRuntimeVersion() {
1655
+ this._originalAstroRuntimeVersion = undefined;
1656
+ }
1657
+ // Temporarily expose input value. Use with caution.
1658
+ get originalAstroRuntimeVersionInput() {
1659
+ return this._originalAstroRuntimeVersion;
1660
+ }
1661
+ // region - computed: true, optional: true, required: false
1662
+ _region;
1663
+ get region() {
1664
+ return this.getStringAttribute('region');
1665
+ }
1666
+ set region(value) {
1667
+ this._region = value;
1668
+ }
1669
+ resetRegion() {
1670
+ this._region = undefined;
1671
+ }
1672
+ // Temporarily expose input value. Use with caution.
1673
+ get regionInput() {
1674
+ return this._region;
1675
+ }
1676
+ // remote_execution - computed: false, optional: true, required: false
1677
+ _remoteExecution = new DeploymentRemoteExecutionOutputReference(this, "remote_execution");
1678
+ get remoteExecution() {
1679
+ return this._remoteExecution;
1680
+ }
1681
+ putRemoteExecution(value) {
1682
+ this._remoteExecution.internalValue = value;
1683
+ }
1684
+ resetRemoteExecution() {
1685
+ this._remoteExecution.internalValue = undefined;
1686
+ }
1687
+ // Temporarily expose input value. Use with caution.
1688
+ get remoteExecutionInput() {
1689
+ return this._remoteExecution.internalValue;
1690
+ }
1691
+ // resource_quota_cpu - computed: false, optional: true, required: false
1692
+ _resourceQuotaCpu;
1693
+ get resourceQuotaCpu() {
1694
+ return this.getStringAttribute('resource_quota_cpu');
1695
+ }
1696
+ set resourceQuotaCpu(value) {
1697
+ this._resourceQuotaCpu = value;
1698
+ }
1699
+ resetResourceQuotaCpu() {
1700
+ this._resourceQuotaCpu = undefined;
1701
+ }
1702
+ // Temporarily expose input value. Use with caution.
1703
+ get resourceQuotaCpuInput() {
1704
+ return this._resourceQuotaCpu;
1705
+ }
1706
+ // resource_quota_memory - computed: false, optional: true, required: false
1707
+ _resourceQuotaMemory;
1708
+ get resourceQuotaMemory() {
1709
+ return this.getStringAttribute('resource_quota_memory');
1710
+ }
1711
+ set resourceQuotaMemory(value) {
1712
+ this._resourceQuotaMemory = value;
1713
+ }
1714
+ resetResourceQuotaMemory() {
1715
+ this._resourceQuotaMemory = undefined;
1716
+ }
1717
+ // Temporarily expose input value. Use with caution.
1718
+ get resourceQuotaMemoryInput() {
1719
+ return this._resourceQuotaMemory;
1720
+ }
1721
+ // scaling_spec - computed: false, optional: true, required: false
1722
+ _scalingSpec = new DeploymentScalingSpecOutputReference(this, "scaling_spec");
1723
+ get scalingSpec() {
1724
+ return this._scalingSpec;
1725
+ }
1726
+ putScalingSpec(value) {
1727
+ this._scalingSpec.internalValue = value;
1728
+ }
1729
+ resetScalingSpec() {
1730
+ this._scalingSpec.internalValue = undefined;
1731
+ }
1732
+ // Temporarily expose input value. Use with caution.
1733
+ get scalingSpecInput() {
1734
+ return this._scalingSpec.internalValue;
1735
+ }
1736
+ // scaling_status - computed: true, optional: false, required: false
1737
+ _scalingStatus = new DeploymentScalingStatusOutputReference(this, "scaling_status");
1738
+ get scalingStatus() {
1739
+ return this._scalingStatus;
1740
+ }
1741
+ // scheduler_au - computed: false, optional: true, required: false
1742
+ _schedulerAu;
1743
+ get schedulerAu() {
1744
+ return this.getNumberAttribute('scheduler_au');
1745
+ }
1746
+ set schedulerAu(value) {
1747
+ this._schedulerAu = value;
1748
+ }
1749
+ resetSchedulerAu() {
1750
+ this._schedulerAu = undefined;
1751
+ }
1752
+ // Temporarily expose input value. Use with caution.
1753
+ get schedulerAuInput() {
1754
+ return this._schedulerAu;
1755
+ }
1756
+ // scheduler_cpu - computed: true, optional: false, required: false
1757
+ get schedulerCpu() {
1758
+ return this.getStringAttribute('scheduler_cpu');
1759
+ }
1760
+ // scheduler_memory - computed: true, optional: false, required: false
1761
+ get schedulerMemory() {
1762
+ return this.getStringAttribute('scheduler_memory');
1763
+ }
1764
+ // scheduler_replicas - computed: true, optional: true, required: false
1765
+ _schedulerReplicas;
1766
+ get schedulerReplicas() {
1767
+ return this.getNumberAttribute('scheduler_replicas');
1768
+ }
1769
+ set schedulerReplicas(value) {
1770
+ this._schedulerReplicas = value;
1771
+ }
1772
+ resetSchedulerReplicas() {
1773
+ this._schedulerReplicas = undefined;
1774
+ }
1775
+ // Temporarily expose input value. Use with caution.
1776
+ get schedulerReplicasInput() {
1777
+ return this._schedulerReplicas;
1778
+ }
1779
+ // scheduler_size - computed: false, optional: true, required: false
1780
+ _schedulerSize;
1781
+ get schedulerSize() {
1782
+ return this.getStringAttribute('scheduler_size');
1783
+ }
1784
+ set schedulerSize(value) {
1785
+ this._schedulerSize = value;
1786
+ }
1787
+ resetSchedulerSize() {
1788
+ this._schedulerSize = undefined;
1789
+ }
1790
+ // Temporarily expose input value. Use with caution.
1791
+ get schedulerSizeInput() {
1792
+ return this._schedulerSize;
1793
+ }
1794
+ // status - computed: true, optional: false, required: false
1795
+ get status() {
1796
+ return this.getStringAttribute('status');
1797
+ }
1798
+ // status_reason - computed: true, optional: false, required: false
1799
+ get statusReason() {
1800
+ return this.getStringAttribute('status_reason');
1801
+ }
1802
+ // task_pod_node_pool_id - computed: false, optional: true, required: false
1803
+ _taskPodNodePoolId;
1804
+ get taskPodNodePoolId() {
1805
+ return this.getStringAttribute('task_pod_node_pool_id');
1806
+ }
1807
+ set taskPodNodePoolId(value) {
1808
+ this._taskPodNodePoolId = value;
1809
+ }
1810
+ resetTaskPodNodePoolId() {
1811
+ this._taskPodNodePoolId = undefined;
1812
+ }
1813
+ // Temporarily expose input value. Use with caution.
1814
+ get taskPodNodePoolIdInput() {
1815
+ return this._taskPodNodePoolId;
1816
+ }
1817
+ // type - computed: false, optional: false, required: true
1818
+ _type;
1819
+ get type() {
1820
+ return this.getStringAttribute('type');
1821
+ }
1822
+ set type(value) {
1823
+ this._type = value;
1824
+ }
1825
+ // Temporarily expose input value. Use with caution.
1826
+ get typeInput() {
1827
+ return this._type;
1828
+ }
1829
+ // updated_at - computed: true, optional: false, required: false
1830
+ get updatedAt() {
1831
+ return this.getStringAttribute('updated_at');
1832
+ }
1833
+ // updated_by - computed: true, optional: false, required: false
1834
+ _updatedBy = new DeploymentUpdatedByOutputReference(this, "updated_by");
1835
+ get updatedBy() {
1836
+ return this._updatedBy;
1837
+ }
1838
+ // webserver_airflow_api_url - computed: true, optional: false, required: false
1839
+ get webserverAirflowApiUrl() {
1840
+ return this.getStringAttribute('webserver_airflow_api_url');
1841
+ }
1842
+ // webserver_ingress_hostname - computed: true, optional: false, required: false
1843
+ get webserverIngressHostname() {
1844
+ return this.getStringAttribute('webserver_ingress_hostname');
1845
+ }
1846
+ // webserver_url - computed: true, optional: false, required: false
1847
+ get webserverUrl() {
1848
+ return this.getStringAttribute('webserver_url');
1849
+ }
1850
+ // worker_queues - computed: false, optional: true, required: false
1851
+ _workerQueues = new DeploymentWorkerQueuesList(this, "worker_queues", true);
1852
+ get workerQueues() {
1853
+ return this._workerQueues;
1854
+ }
1855
+ putWorkerQueues(value) {
1856
+ this._workerQueues.internalValue = value;
1857
+ }
1858
+ resetWorkerQueues() {
1859
+ this._workerQueues.internalValue = undefined;
1860
+ }
1861
+ // Temporarily expose input value. Use with caution.
1862
+ get workerQueuesInput() {
1863
+ return this._workerQueues.internalValue;
1864
+ }
1865
+ // workload_identity - computed: true, optional: false, required: false
1866
+ get workloadIdentity() {
1867
+ return this.getStringAttribute('workload_identity');
1868
+ }
1869
+ // workspace_id - computed: false, optional: false, required: true
1870
+ _workspaceId;
1871
+ get workspaceId() {
1872
+ return this.getStringAttribute('workspace_id');
1873
+ }
1874
+ set workspaceId(value) {
1875
+ this._workspaceId = value;
1876
+ }
1877
+ // Temporarily expose input value. Use with caution.
1878
+ get workspaceIdInput() {
1879
+ return this._workspaceId;
1880
+ }
1881
+ // =========
1882
+ // SYNTHESIS
1883
+ // =========
1884
+ synthesizeAttributes() {
1885
+ return {
1886
+ cloud_provider: cdktf.stringToTerraform(this._cloudProvider),
1887
+ cluster_id: cdktf.stringToTerraform(this._clusterId),
1888
+ contact_emails: cdktf.listMapper(cdktf.stringToTerraform, false)(this._contactEmails),
1889
+ default_task_pod_cpu: cdktf.stringToTerraform(this._defaultTaskPodCpu),
1890
+ default_task_pod_memory: cdktf.stringToTerraform(this._defaultTaskPodMemory),
1891
+ description: cdktf.stringToTerraform(this._description),
1892
+ desired_workload_identity: cdktf.stringToTerraform(this._desiredWorkloadIdentity),
1893
+ environment_variables: cdktf.listMapper(deploymentEnvironmentVariablesToTerraform, false)(this._environmentVariables.internalValue),
1894
+ executor: cdktf.stringToTerraform(this._executor),
1895
+ is_cicd_enforced: cdktf.booleanToTerraform(this._isCicdEnforced),
1896
+ is_dag_deploy_enabled: cdktf.booleanToTerraform(this._isDagDeployEnabled),
1897
+ is_development_mode: cdktf.booleanToTerraform(this._isDevelopmentMode),
1898
+ is_high_availability: cdktf.booleanToTerraform(this._isHighAvailability),
1899
+ name: cdktf.stringToTerraform(this._name),
1900
+ original_astro_runtime_version: cdktf.stringToTerraform(this._originalAstroRuntimeVersion),
1901
+ region: cdktf.stringToTerraform(this._region),
1902
+ remote_execution: deploymentRemoteExecutionToTerraform(this._remoteExecution.internalValue),
1903
+ resource_quota_cpu: cdktf.stringToTerraform(this._resourceQuotaCpu),
1904
+ resource_quota_memory: cdktf.stringToTerraform(this._resourceQuotaMemory),
1905
+ scaling_spec: deploymentScalingSpecToTerraform(this._scalingSpec.internalValue),
1906
+ scheduler_au: cdktf.numberToTerraform(this._schedulerAu),
1907
+ scheduler_replicas: cdktf.numberToTerraform(this._schedulerReplicas),
1908
+ scheduler_size: cdktf.stringToTerraform(this._schedulerSize),
1909
+ task_pod_node_pool_id: cdktf.stringToTerraform(this._taskPodNodePoolId),
1910
+ type: cdktf.stringToTerraform(this._type),
1911
+ worker_queues: cdktf.listMapper(deploymentWorkerQueuesToTerraform, false)(this._workerQueues.internalValue),
1912
+ workspace_id: cdktf.stringToTerraform(this._workspaceId),
1913
+ };
1914
+ }
1915
+ synthesizeHclAttributes() {
1916
+ const attrs = {
1917
+ cloud_provider: {
1918
+ value: cdktf.stringToHclTerraform(this._cloudProvider),
1919
+ isBlock: false,
1920
+ type: "simple",
1921
+ storageClassType: "string",
1922
+ },
1923
+ cluster_id: {
1924
+ value: cdktf.stringToHclTerraform(this._clusterId),
1925
+ isBlock: false,
1926
+ type: "simple",
1927
+ storageClassType: "string",
1928
+ },
1929
+ contact_emails: {
1930
+ value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._contactEmails),
1931
+ isBlock: false,
1932
+ type: "set",
1933
+ storageClassType: "stringList",
1934
+ },
1935
+ default_task_pod_cpu: {
1936
+ value: cdktf.stringToHclTerraform(this._defaultTaskPodCpu),
1937
+ isBlock: false,
1938
+ type: "simple",
1939
+ storageClassType: "string",
1940
+ },
1941
+ default_task_pod_memory: {
1942
+ value: cdktf.stringToHclTerraform(this._defaultTaskPodMemory),
1943
+ isBlock: false,
1944
+ type: "simple",
1945
+ storageClassType: "string",
1946
+ },
1947
+ description: {
1948
+ value: cdktf.stringToHclTerraform(this._description),
1949
+ isBlock: false,
1950
+ type: "simple",
1951
+ storageClassType: "string",
1952
+ },
1953
+ desired_workload_identity: {
1954
+ value: cdktf.stringToHclTerraform(this._desiredWorkloadIdentity),
1955
+ isBlock: false,
1956
+ type: "simple",
1957
+ storageClassType: "string",
1958
+ },
1959
+ environment_variables: {
1960
+ value: cdktf.listMapperHcl(deploymentEnvironmentVariablesToHclTerraform, false)(this._environmentVariables.internalValue),
1961
+ isBlock: true,
1962
+ type: "set",
1963
+ storageClassType: "DeploymentEnvironmentVariablesList",
1964
+ },
1965
+ executor: {
1966
+ value: cdktf.stringToHclTerraform(this._executor),
1967
+ isBlock: false,
1968
+ type: "simple",
1969
+ storageClassType: "string",
1970
+ },
1971
+ is_cicd_enforced: {
1972
+ value: cdktf.booleanToHclTerraform(this._isCicdEnforced),
1973
+ isBlock: false,
1974
+ type: "simple",
1975
+ storageClassType: "boolean",
1976
+ },
1977
+ is_dag_deploy_enabled: {
1978
+ value: cdktf.booleanToHclTerraform(this._isDagDeployEnabled),
1979
+ isBlock: false,
1980
+ type: "simple",
1981
+ storageClassType: "boolean",
1982
+ },
1983
+ is_development_mode: {
1984
+ value: cdktf.booleanToHclTerraform(this._isDevelopmentMode),
1985
+ isBlock: false,
1986
+ type: "simple",
1987
+ storageClassType: "boolean",
1988
+ },
1989
+ is_high_availability: {
1990
+ value: cdktf.booleanToHclTerraform(this._isHighAvailability),
1991
+ isBlock: false,
1992
+ type: "simple",
1993
+ storageClassType: "boolean",
1994
+ },
1995
+ name: {
1996
+ value: cdktf.stringToHclTerraform(this._name),
1997
+ isBlock: false,
1998
+ type: "simple",
1999
+ storageClassType: "string",
2000
+ },
2001
+ original_astro_runtime_version: {
2002
+ value: cdktf.stringToHclTerraform(this._originalAstroRuntimeVersion),
2003
+ isBlock: false,
2004
+ type: "simple",
2005
+ storageClassType: "string",
2006
+ },
2007
+ region: {
2008
+ value: cdktf.stringToHclTerraform(this._region),
2009
+ isBlock: false,
2010
+ type: "simple",
2011
+ storageClassType: "string",
2012
+ },
2013
+ remote_execution: {
2014
+ value: deploymentRemoteExecutionToHclTerraform(this._remoteExecution.internalValue),
2015
+ isBlock: true,
2016
+ type: "struct",
2017
+ storageClassType: "DeploymentRemoteExecution",
2018
+ },
2019
+ resource_quota_cpu: {
2020
+ value: cdktf.stringToHclTerraform(this._resourceQuotaCpu),
2021
+ isBlock: false,
2022
+ type: "simple",
2023
+ storageClassType: "string",
2024
+ },
2025
+ resource_quota_memory: {
2026
+ value: cdktf.stringToHclTerraform(this._resourceQuotaMemory),
2027
+ isBlock: false,
2028
+ type: "simple",
2029
+ storageClassType: "string",
2030
+ },
2031
+ scaling_spec: {
2032
+ value: deploymentScalingSpecToHclTerraform(this._scalingSpec.internalValue),
2033
+ isBlock: true,
2034
+ type: "struct",
2035
+ storageClassType: "DeploymentScalingSpec",
2036
+ },
2037
+ scheduler_au: {
2038
+ value: cdktf.numberToHclTerraform(this._schedulerAu),
2039
+ isBlock: false,
2040
+ type: "simple",
2041
+ storageClassType: "number",
2042
+ },
2043
+ scheduler_replicas: {
2044
+ value: cdktf.numberToHclTerraform(this._schedulerReplicas),
2045
+ isBlock: false,
2046
+ type: "simple",
2047
+ storageClassType: "number",
2048
+ },
2049
+ scheduler_size: {
2050
+ value: cdktf.stringToHclTerraform(this._schedulerSize),
2051
+ isBlock: false,
2052
+ type: "simple",
2053
+ storageClassType: "string",
2054
+ },
2055
+ task_pod_node_pool_id: {
2056
+ value: cdktf.stringToHclTerraform(this._taskPodNodePoolId),
2057
+ isBlock: false,
2058
+ type: "simple",
2059
+ storageClassType: "string",
2060
+ },
2061
+ type: {
2062
+ value: cdktf.stringToHclTerraform(this._type),
2063
+ isBlock: false,
2064
+ type: "simple",
2065
+ storageClassType: "string",
2066
+ },
2067
+ worker_queues: {
2068
+ value: cdktf.listMapperHcl(deploymentWorkerQueuesToHclTerraform, false)(this._workerQueues.internalValue),
2069
+ isBlock: true,
2070
+ type: "set",
2071
+ storageClassType: "DeploymentWorkerQueuesList",
2072
+ },
2073
+ workspace_id: {
2074
+ value: cdktf.stringToHclTerraform(this._workspaceId),
2075
+ isBlock: false,
2076
+ type: "simple",
2077
+ storageClassType: "string",
2078
+ },
2079
+ };
2080
+ // remove undefined attributes
2081
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
2082
+ }
2083
+ }