@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,540 @@
1
+ // https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/notification_channels
2
+ // generated from terraform resource schema
3
+ import * as cdktf from 'cdktf';
4
+ export function dataAstroNotificationChannelsNotificationChannelsCreatedByToTerraform(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 dataAstroNotificationChannelsNotificationChannelsCreatedByToHclTerraform(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 DataAstroNotificationChannelsNotificationChannelsCreatedByOutputReference 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 dataAstroNotificationChannelsNotificationChannelsDefinitionToTerraform(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 dataAstroNotificationChannelsNotificationChannelsDefinitionToHclTerraform(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 DataAstroNotificationChannelsNotificationChannelsDefinitionOutputReference 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
+ */
95
+ constructor(terraformResource, terraformAttribute) {
96
+ super(terraformResource, terraformAttribute, false);
97
+ }
98
+ get internalValue() {
99
+ let hasAnyValues = this.isEmptyObject;
100
+ const internalValueResult = {};
101
+ return hasAnyValues ? internalValueResult : undefined;
102
+ }
103
+ set internalValue(value) {
104
+ if (value === undefined) {
105
+ this.isEmptyObject = false;
106
+ }
107
+ else {
108
+ this.isEmptyObject = Object.keys(value).length === 0;
109
+ }
110
+ }
111
+ // api_key - computed: true, optional: false, required: false
112
+ get apiKey() {
113
+ return this.getStringAttribute('api_key');
114
+ }
115
+ // dag_id - computed: true, optional: false, required: false
116
+ get dagId() {
117
+ return this.getStringAttribute('dag_id');
118
+ }
119
+ // deployment_api_token - computed: true, optional: false, required: false
120
+ get deploymentApiToken() {
121
+ return this.getStringAttribute('deployment_api_token');
122
+ }
123
+ // deployment_id - computed: true, optional: false, required: false
124
+ get deploymentId() {
125
+ return this.getStringAttribute('deployment_id');
126
+ }
127
+ // integration_key - computed: true, optional: false, required: false
128
+ get integrationKey() {
129
+ return this.getStringAttribute('integration_key');
130
+ }
131
+ // recipients - computed: true, optional: false, required: false
132
+ get recipients() {
133
+ return cdktf.Fn.tolist(this.getListAttribute('recipients'));
134
+ }
135
+ // webhook_url - computed: true, optional: false, required: false
136
+ get webhookUrl() {
137
+ return this.getStringAttribute('webhook_url');
138
+ }
139
+ }
140
+ export function dataAstroNotificationChannelsNotificationChannelsUpdatedByToTerraform(struct) {
141
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
142
+ return struct;
143
+ }
144
+ if (cdktf.isComplexElement(struct)) {
145
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
146
+ }
147
+ return {};
148
+ }
149
+ export function dataAstroNotificationChannelsNotificationChannelsUpdatedByToHclTerraform(struct) {
150
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
151
+ return struct;
152
+ }
153
+ if (cdktf.isComplexElement(struct)) {
154
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
155
+ }
156
+ const attrs = {};
157
+ return attrs;
158
+ }
159
+ export class DataAstroNotificationChannelsNotificationChannelsUpdatedByOutputReference extends cdktf.ComplexObject {
160
+ isEmptyObject = false;
161
+ /**
162
+ * @param terraformResource The parent resource
163
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
164
+ */
165
+ constructor(terraformResource, terraformAttribute) {
166
+ super(terraformResource, terraformAttribute, false);
167
+ }
168
+ get internalValue() {
169
+ let hasAnyValues = this.isEmptyObject;
170
+ const internalValueResult = {};
171
+ return hasAnyValues ? internalValueResult : undefined;
172
+ }
173
+ set internalValue(value) {
174
+ if (value === undefined) {
175
+ this.isEmptyObject = false;
176
+ }
177
+ else {
178
+ this.isEmptyObject = Object.keys(value).length === 0;
179
+ }
180
+ }
181
+ // api_token_name - computed: true, optional: false, required: false
182
+ get apiTokenName() {
183
+ return this.getStringAttribute('api_token_name');
184
+ }
185
+ // avatar_url - computed: true, optional: false, required: false
186
+ get avatarUrl() {
187
+ return this.getStringAttribute('avatar_url');
188
+ }
189
+ // full_name - computed: true, optional: false, required: false
190
+ get fullName() {
191
+ return this.getStringAttribute('full_name');
192
+ }
193
+ // id - computed: true, optional: false, required: false
194
+ get id() {
195
+ return this.getStringAttribute('id');
196
+ }
197
+ // subject_type - computed: true, optional: false, required: false
198
+ get subjectType() {
199
+ return this.getStringAttribute('subject_type');
200
+ }
201
+ // username - computed: true, optional: false, required: false
202
+ get username() {
203
+ return this.getStringAttribute('username');
204
+ }
205
+ }
206
+ export function dataAstroNotificationChannelsNotificationChannelsToTerraform(struct) {
207
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
208
+ return struct;
209
+ }
210
+ if (cdktf.isComplexElement(struct)) {
211
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
212
+ }
213
+ return {
214
+ id: cdktf.stringToTerraform(struct.id),
215
+ };
216
+ }
217
+ export function dataAstroNotificationChannelsNotificationChannelsToHclTerraform(struct) {
218
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
219
+ return struct;
220
+ }
221
+ if (cdktf.isComplexElement(struct)) {
222
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
223
+ }
224
+ const attrs = {
225
+ id: {
226
+ value: cdktf.stringToHclTerraform(struct.id),
227
+ isBlock: false,
228
+ type: "simple",
229
+ storageClassType: "string",
230
+ },
231
+ };
232
+ // remove undefined attributes
233
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
234
+ }
235
+ export class DataAstroNotificationChannelsNotificationChannelsOutputReference extends cdktf.ComplexObject {
236
+ isEmptyObject = false;
237
+ /**
238
+ * @param terraformResource The parent resource
239
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
240
+ * @param complexObjectIndex the index of this item in the list
241
+ * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
242
+ */
243
+ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
244
+ super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
245
+ }
246
+ get internalValue() {
247
+ let hasAnyValues = this.isEmptyObject;
248
+ const internalValueResult = {};
249
+ if (this._id !== undefined) {
250
+ hasAnyValues = true;
251
+ internalValueResult.id = this._id;
252
+ }
253
+ return hasAnyValues ? internalValueResult : undefined;
254
+ }
255
+ set internalValue(value) {
256
+ if (value === undefined) {
257
+ this.isEmptyObject = false;
258
+ this._id = undefined;
259
+ }
260
+ else {
261
+ this.isEmptyObject = Object.keys(value).length === 0;
262
+ this._id = value.id;
263
+ }
264
+ }
265
+ // created_at - computed: true, optional: false, required: false
266
+ get createdAt() {
267
+ return this.getStringAttribute('created_at');
268
+ }
269
+ // created_by - computed: true, optional: false, required: false
270
+ _createdBy = new DataAstroNotificationChannelsNotificationChannelsCreatedByOutputReference(this, "created_by");
271
+ get createdBy() {
272
+ return this._createdBy;
273
+ }
274
+ // definition - computed: true, optional: false, required: false
275
+ _definition = new DataAstroNotificationChannelsNotificationChannelsDefinitionOutputReference(this, "definition");
276
+ get definition() {
277
+ return this._definition;
278
+ }
279
+ // deployment_id - computed: true, optional: false, required: false
280
+ get deploymentId() {
281
+ return this.getStringAttribute('deployment_id');
282
+ }
283
+ // entity_id - computed: true, optional: false, required: false
284
+ get entityId() {
285
+ return this.getStringAttribute('entity_id');
286
+ }
287
+ // entity_name - computed: true, optional: false, required: false
288
+ get entityName() {
289
+ return this.getStringAttribute('entity_name');
290
+ }
291
+ // entity_type - computed: true, optional: false, required: false
292
+ get entityType() {
293
+ return this.getStringAttribute('entity_type');
294
+ }
295
+ // id - computed: true, optional: false, required: true
296
+ _id;
297
+ get id() {
298
+ return this.getStringAttribute('id');
299
+ }
300
+ set id(value) {
301
+ this._id = value;
302
+ }
303
+ // Temporarily expose input value. Use with caution.
304
+ get idInput() {
305
+ return this._id;
306
+ }
307
+ // is_shared - computed: true, optional: false, required: false
308
+ get isShared() {
309
+ return this.getBooleanAttribute('is_shared');
310
+ }
311
+ // name - computed: true, optional: false, required: false
312
+ get name() {
313
+ return this.getStringAttribute('name');
314
+ }
315
+ // type - computed: true, optional: false, required: false
316
+ get type() {
317
+ return this.getStringAttribute('type');
318
+ }
319
+ // updated_at - computed: true, optional: false, required: false
320
+ get updatedAt() {
321
+ return this.getStringAttribute('updated_at');
322
+ }
323
+ // updated_by - computed: true, optional: false, required: false
324
+ _updatedBy = new DataAstroNotificationChannelsNotificationChannelsUpdatedByOutputReference(this, "updated_by");
325
+ get updatedBy() {
326
+ return this._updatedBy;
327
+ }
328
+ // workspace_id - computed: true, optional: false, required: false
329
+ get workspaceId() {
330
+ return this.getStringAttribute('workspace_id');
331
+ }
332
+ }
333
+ export class DataAstroNotificationChannelsNotificationChannelsList extends cdktf.ComplexList {
334
+ terraformResource;
335
+ terraformAttribute;
336
+ wrapsSet;
337
+ internalValue;
338
+ /**
339
+ * @param terraformResource The parent resource
340
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
341
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
342
+ */
343
+ constructor(terraformResource, terraformAttribute, wrapsSet) {
344
+ super(terraformResource, terraformAttribute, wrapsSet);
345
+ this.terraformResource = terraformResource;
346
+ this.terraformAttribute = terraformAttribute;
347
+ this.wrapsSet = wrapsSet;
348
+ }
349
+ /**
350
+ * @param index the index of the item to return
351
+ */
352
+ get(index) {
353
+ return new DataAstroNotificationChannelsNotificationChannelsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
354
+ }
355
+ }
356
+ /**
357
+ * Represents a {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/notification_channels astro_notification_channels}
358
+ */
359
+ export class DataAstroNotificationChannels extends cdktf.TerraformDataSource {
360
+ // =================
361
+ // STATIC PROPERTIES
362
+ // =================
363
+ static tfResourceType = "astro_notification_channels";
364
+ // ==============
365
+ // STATIC Methods
366
+ // ==============
367
+ /**
368
+ * Generates CDKTF code for importing a DataAstroNotificationChannels resource upon running "cdktf plan <stack-name>"
369
+ * @param scope The scope in which to define this construct
370
+ * @param importToId The construct id used in the generated config for the DataAstroNotificationChannels to import
371
+ * @param importFromId The id of the existing DataAstroNotificationChannels that should be imported. Refer to the {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/notification_channels#import import section} in the documentation of this resource for the id to use
372
+ * @param provider? Optional instance of the provider where the DataAstroNotificationChannels to import is found
373
+ */
374
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
375
+ return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "astro_notification_channels", importId: importFromId, provider });
376
+ }
377
+ // ===========
378
+ // INITIALIZER
379
+ // ===========
380
+ /**
381
+ * Create a new {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/notification_channels astro_notification_channels} Data Source
382
+ *
383
+ * @param scope The scope in which to define this construct
384
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
385
+ * @param options DataAstroNotificationChannelsConfig = {}
386
+ */
387
+ constructor(scope, id, config = {}) {
388
+ super(scope, id, {
389
+ terraformResourceType: 'astro_notification_channels',
390
+ terraformGeneratorMetadata: {
391
+ providerName: 'astro',
392
+ providerVersion: '1.0.8',
393
+ providerVersionConstraint: '1.0.8'
394
+ },
395
+ provider: config.provider,
396
+ dependsOn: config.dependsOn,
397
+ count: config.count,
398
+ lifecycle: config.lifecycle,
399
+ provisioners: config.provisioners,
400
+ connection: config.connection,
401
+ forEach: config.forEach
402
+ });
403
+ this._channelTypes = config.channelTypes;
404
+ this._deploymentIds = config.deploymentIds;
405
+ this._entityType = config.entityType;
406
+ this._notificationChannelIds = config.notificationChannelIds;
407
+ this._workspaceIds = config.workspaceIds;
408
+ }
409
+ // ==========
410
+ // ATTRIBUTES
411
+ // ==========
412
+ // channel_types - computed: false, optional: true, required: false
413
+ _channelTypes;
414
+ get channelTypes() {
415
+ return cdktf.Fn.tolist(this.getListAttribute('channel_types'));
416
+ }
417
+ set channelTypes(value) {
418
+ this._channelTypes = value;
419
+ }
420
+ resetChannelTypes() {
421
+ this._channelTypes = undefined;
422
+ }
423
+ // Temporarily expose input value. Use with caution.
424
+ get channelTypesInput() {
425
+ return this._channelTypes;
426
+ }
427
+ // deployment_ids - computed: false, optional: true, required: false
428
+ _deploymentIds;
429
+ get deploymentIds() {
430
+ return cdktf.Fn.tolist(this.getListAttribute('deployment_ids'));
431
+ }
432
+ set deploymentIds(value) {
433
+ this._deploymentIds = value;
434
+ }
435
+ resetDeploymentIds() {
436
+ this._deploymentIds = undefined;
437
+ }
438
+ // Temporarily expose input value. Use with caution.
439
+ get deploymentIdsInput() {
440
+ return this._deploymentIds;
441
+ }
442
+ // entity_type - computed: false, optional: true, required: false
443
+ _entityType;
444
+ get entityType() {
445
+ return this.getStringAttribute('entity_type');
446
+ }
447
+ set entityType(value) {
448
+ this._entityType = value;
449
+ }
450
+ resetEntityType() {
451
+ this._entityType = undefined;
452
+ }
453
+ // Temporarily expose input value. Use with caution.
454
+ get entityTypeInput() {
455
+ return this._entityType;
456
+ }
457
+ // notification_channel_ids - computed: false, optional: true, required: false
458
+ _notificationChannelIds;
459
+ get notificationChannelIds() {
460
+ return cdktf.Fn.tolist(this.getListAttribute('notification_channel_ids'));
461
+ }
462
+ set notificationChannelIds(value) {
463
+ this._notificationChannelIds = value;
464
+ }
465
+ resetNotificationChannelIds() {
466
+ this._notificationChannelIds = undefined;
467
+ }
468
+ // Temporarily expose input value. Use with caution.
469
+ get notificationChannelIdsInput() {
470
+ return this._notificationChannelIds;
471
+ }
472
+ // notification_channels - computed: true, optional: false, required: false
473
+ _notificationChannels = new DataAstroNotificationChannelsNotificationChannelsList(this, "notification_channels", true);
474
+ get notificationChannels() {
475
+ return this._notificationChannels;
476
+ }
477
+ // workspace_ids - computed: false, optional: true, required: false
478
+ _workspaceIds;
479
+ get workspaceIds() {
480
+ return cdktf.Fn.tolist(this.getListAttribute('workspace_ids'));
481
+ }
482
+ set workspaceIds(value) {
483
+ this._workspaceIds = value;
484
+ }
485
+ resetWorkspaceIds() {
486
+ this._workspaceIds = undefined;
487
+ }
488
+ // Temporarily expose input value. Use with caution.
489
+ get workspaceIdsInput() {
490
+ return this._workspaceIds;
491
+ }
492
+ // =========
493
+ // SYNTHESIS
494
+ // =========
495
+ synthesizeAttributes() {
496
+ return {
497
+ channel_types: cdktf.listMapper(cdktf.stringToTerraform, false)(this._channelTypes),
498
+ deployment_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(this._deploymentIds),
499
+ entity_type: cdktf.stringToTerraform(this._entityType),
500
+ notification_channel_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(this._notificationChannelIds),
501
+ workspace_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(this._workspaceIds),
502
+ };
503
+ }
504
+ synthesizeHclAttributes() {
505
+ const attrs = {
506
+ channel_types: {
507
+ value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._channelTypes),
508
+ isBlock: false,
509
+ type: "set",
510
+ storageClassType: "stringList",
511
+ },
512
+ deployment_ids: {
513
+ value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._deploymentIds),
514
+ isBlock: false,
515
+ type: "set",
516
+ storageClassType: "stringList",
517
+ },
518
+ entity_type: {
519
+ value: cdktf.stringToHclTerraform(this._entityType),
520
+ isBlock: false,
521
+ type: "simple",
522
+ storageClassType: "string",
523
+ },
524
+ notification_channel_ids: {
525
+ value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._notificationChannelIds),
526
+ isBlock: false,
527
+ type: "set",
528
+ storageClassType: "stringList",
529
+ },
530
+ workspace_ids: {
531
+ value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._workspaceIds),
532
+ isBlock: false,
533
+ type: "set",
534
+ storageClassType: "stringList",
535
+ },
536
+ };
537
+ // remove undefined attributes
538
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
539
+ }
540
+ }
@@ -0,0 +1,87 @@
1
+ import { Construct } from 'constructs';
2
+ import * as cdktf from 'cdktf';
3
+ export interface DataAstroOrganizationConfig extends cdktf.TerraformMetaArguments {
4
+ }
5
+ export interface DataAstroOrganizationCreatedBy {
6
+ }
7
+ export declare function dataAstroOrganizationCreatedByToTerraform(struct?: DataAstroOrganizationCreatedBy): any;
8
+ export declare function dataAstroOrganizationCreatedByToHclTerraform(struct?: DataAstroOrganizationCreatedBy): any;
9
+ export declare class DataAstroOrganizationCreatedByOutputReference extends cdktf.ComplexObject {
10
+ private isEmptyObject;
11
+ /**
12
+ * @param terraformResource The parent resource
13
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
14
+ */
15
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
16
+ get internalValue(): DataAstroOrganizationCreatedBy | undefined;
17
+ set internalValue(value: DataAstroOrganizationCreatedBy | undefined);
18
+ get apiTokenName(): any;
19
+ get avatarUrl(): any;
20
+ get fullName(): any;
21
+ get id(): any;
22
+ get subjectType(): any;
23
+ get username(): any;
24
+ }
25
+ export interface DataAstroOrganizationUpdatedBy {
26
+ }
27
+ export declare function dataAstroOrganizationUpdatedByToTerraform(struct?: DataAstroOrganizationUpdatedBy): any;
28
+ export declare function dataAstroOrganizationUpdatedByToHclTerraform(struct?: DataAstroOrganizationUpdatedBy): any;
29
+ export declare class DataAstroOrganizationUpdatedByOutputReference extends cdktf.ComplexObject {
30
+ private isEmptyObject;
31
+ /**
32
+ * @param terraformResource The parent resource
33
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
34
+ */
35
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
36
+ get internalValue(): DataAstroOrganizationUpdatedBy | undefined;
37
+ set internalValue(value: DataAstroOrganizationUpdatedBy | undefined);
38
+ get apiTokenName(): any;
39
+ get avatarUrl(): any;
40
+ get fullName(): any;
41
+ get id(): any;
42
+ get subjectType(): any;
43
+ get username(): any;
44
+ }
45
+ /**
46
+ * Represents a {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/organization astro_organization}
47
+ */
48
+ export declare class DataAstroOrganization extends cdktf.TerraformDataSource {
49
+ static readonly tfResourceType = "astro_organization";
50
+ /**
51
+ * Generates CDKTF code for importing a DataAstroOrganization resource upon running "cdktf plan <stack-name>"
52
+ * @param scope The scope in which to define this construct
53
+ * @param importToId The construct id used in the generated config for the DataAstroOrganization to import
54
+ * @param importFromId The id of the existing DataAstroOrganization that should be imported. Refer to the {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/organization#import import section} in the documentation of this resource for the id to use
55
+ * @param provider? Optional instance of the provider where the DataAstroOrganization to import is found
56
+ */
57
+ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
58
+ /**
59
+ * Create a new {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/organization astro_organization} Data Source
60
+ *
61
+ * @param scope The scope in which to define this construct
62
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
63
+ * @param options DataAstroOrganizationConfig = {}
64
+ */
65
+ constructor(scope: Construct, id: string, config?: DataAstroOrganizationConfig);
66
+ get billingEmail(): any;
67
+ get createdAt(): any;
68
+ private _createdBy;
69
+ get createdBy(): DataAstroOrganizationCreatedByOutputReference;
70
+ get id(): any;
71
+ get isScimEnabled(): any;
72
+ get name(): any;
73
+ get paymentMethod(): any;
74
+ get product(): any;
75
+ get status(): any;
76
+ get supportPlan(): any;
77
+ get trialExpiresAt(): any;
78
+ get updatedAt(): any;
79
+ private _updatedBy;
80
+ get updatedBy(): DataAstroOrganizationUpdatedByOutputReference;
81
+ protected synthesizeAttributes(): {
82
+ [name: string]: any;
83
+ };
84
+ protected synthesizeHclAttributes(): {
85
+ [name: string]: any;
86
+ };
87
+ }