@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,608 @@
1
+ // https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/notification_channel
2
+ // generated from terraform resource schema
3
+ import * as cdktf from 'cdktf';
4
+ export function notificationChannelCreatedByToTerraform(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 notificationChannelCreatedByToHclTerraform(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 NotificationChannelCreatedByOutputReference 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 notificationChannelDefinitionToTerraform(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
+ api_key: cdktf.stringToTerraform(struct.apiKey),
79
+ dag_id: cdktf.stringToTerraform(struct.dagId),
80
+ deployment_api_token: cdktf.stringToTerraform(struct.deploymentApiToken),
81
+ deployment_id: cdktf.stringToTerraform(struct.deploymentId),
82
+ integration_key: cdktf.stringToTerraform(struct.integrationKey),
83
+ recipients: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.recipients),
84
+ webhook_url: cdktf.stringToTerraform(struct.webhookUrl),
85
+ };
86
+ }
87
+ export function notificationChannelDefinitionToHclTerraform(struct) {
88
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
89
+ return struct;
90
+ }
91
+ if (cdktf.isComplexElement(struct)) {
92
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
93
+ }
94
+ const attrs = {
95
+ api_key: {
96
+ value: cdktf.stringToHclTerraform(struct.apiKey),
97
+ isBlock: false,
98
+ type: "simple",
99
+ storageClassType: "string",
100
+ },
101
+ dag_id: {
102
+ value: cdktf.stringToHclTerraform(struct.dagId),
103
+ isBlock: false,
104
+ type: "simple",
105
+ storageClassType: "string",
106
+ },
107
+ deployment_api_token: {
108
+ value: cdktf.stringToHclTerraform(struct.deploymentApiToken),
109
+ isBlock: false,
110
+ type: "simple",
111
+ storageClassType: "string",
112
+ },
113
+ deployment_id: {
114
+ value: cdktf.stringToHclTerraform(struct.deploymentId),
115
+ isBlock: false,
116
+ type: "simple",
117
+ storageClassType: "string",
118
+ },
119
+ integration_key: {
120
+ value: cdktf.stringToHclTerraform(struct.integrationKey),
121
+ isBlock: false,
122
+ type: "simple",
123
+ storageClassType: "string",
124
+ },
125
+ recipients: {
126
+ value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.recipients),
127
+ isBlock: false,
128
+ type: "set",
129
+ storageClassType: "stringList",
130
+ },
131
+ webhook_url: {
132
+ value: cdktf.stringToHclTerraform(struct.webhookUrl),
133
+ isBlock: false,
134
+ type: "simple",
135
+ storageClassType: "string",
136
+ },
137
+ };
138
+ // remove undefined attributes
139
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
140
+ }
141
+ export class NotificationChannelDefinitionOutputReference extends cdktf.ComplexObject {
142
+ isEmptyObject = false;
143
+ resolvableValue;
144
+ /**
145
+ * @param terraformResource The parent resource
146
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
147
+ */
148
+ constructor(terraformResource, terraformAttribute) {
149
+ super(terraformResource, terraformAttribute, false);
150
+ }
151
+ get internalValue() {
152
+ if (this.resolvableValue) {
153
+ return this.resolvableValue;
154
+ }
155
+ let hasAnyValues = this.isEmptyObject;
156
+ const internalValueResult = {};
157
+ if (this._apiKey !== undefined) {
158
+ hasAnyValues = true;
159
+ internalValueResult.apiKey = this._apiKey;
160
+ }
161
+ if (this._dagId !== undefined) {
162
+ hasAnyValues = true;
163
+ internalValueResult.dagId = this._dagId;
164
+ }
165
+ if (this._deploymentApiToken !== undefined) {
166
+ hasAnyValues = true;
167
+ internalValueResult.deploymentApiToken = this._deploymentApiToken;
168
+ }
169
+ if (this._deploymentId !== undefined) {
170
+ hasAnyValues = true;
171
+ internalValueResult.deploymentId = this._deploymentId;
172
+ }
173
+ if (this._integrationKey !== undefined) {
174
+ hasAnyValues = true;
175
+ internalValueResult.integrationKey = this._integrationKey;
176
+ }
177
+ if (this._recipients !== undefined) {
178
+ hasAnyValues = true;
179
+ internalValueResult.recipients = this._recipients;
180
+ }
181
+ if (this._webhookUrl !== undefined) {
182
+ hasAnyValues = true;
183
+ internalValueResult.webhookUrl = this._webhookUrl;
184
+ }
185
+ return hasAnyValues ? internalValueResult : undefined;
186
+ }
187
+ set internalValue(value) {
188
+ if (value === undefined) {
189
+ this.isEmptyObject = false;
190
+ this.resolvableValue = undefined;
191
+ this._apiKey = undefined;
192
+ this._dagId = undefined;
193
+ this._deploymentApiToken = undefined;
194
+ this._deploymentId = undefined;
195
+ this._integrationKey = undefined;
196
+ this._recipients = undefined;
197
+ this._webhookUrl = undefined;
198
+ }
199
+ else if (cdktf.Tokenization.isResolvable(value)) {
200
+ this.isEmptyObject = false;
201
+ this.resolvableValue = value;
202
+ }
203
+ else {
204
+ this.isEmptyObject = Object.keys(value).length === 0;
205
+ this.resolvableValue = undefined;
206
+ this._apiKey = value.apiKey;
207
+ this._dagId = value.dagId;
208
+ this._deploymentApiToken = value.deploymentApiToken;
209
+ this._deploymentId = value.deploymentId;
210
+ this._integrationKey = value.integrationKey;
211
+ this._recipients = value.recipients;
212
+ this._webhookUrl = value.webhookUrl;
213
+ }
214
+ }
215
+ // api_key - computed: false, optional: true, required: false
216
+ _apiKey;
217
+ get apiKey() {
218
+ return this.getStringAttribute('api_key');
219
+ }
220
+ set apiKey(value) {
221
+ this._apiKey = value;
222
+ }
223
+ resetApiKey() {
224
+ this._apiKey = undefined;
225
+ }
226
+ // Temporarily expose input value. Use with caution.
227
+ get apiKeyInput() {
228
+ return this._apiKey;
229
+ }
230
+ // dag_id - computed: false, optional: true, required: false
231
+ _dagId;
232
+ get dagId() {
233
+ return this.getStringAttribute('dag_id');
234
+ }
235
+ set dagId(value) {
236
+ this._dagId = value;
237
+ }
238
+ resetDagId() {
239
+ this._dagId = undefined;
240
+ }
241
+ // Temporarily expose input value. Use with caution.
242
+ get dagIdInput() {
243
+ return this._dagId;
244
+ }
245
+ // deployment_api_token - computed: false, optional: true, required: false
246
+ _deploymentApiToken;
247
+ get deploymentApiToken() {
248
+ return this.getStringAttribute('deployment_api_token');
249
+ }
250
+ set deploymentApiToken(value) {
251
+ this._deploymentApiToken = value;
252
+ }
253
+ resetDeploymentApiToken() {
254
+ this._deploymentApiToken = undefined;
255
+ }
256
+ // Temporarily expose input value. Use with caution.
257
+ get deploymentApiTokenInput() {
258
+ return this._deploymentApiToken;
259
+ }
260
+ // deployment_id - computed: false, optional: true, required: false
261
+ _deploymentId;
262
+ get deploymentId() {
263
+ return this.getStringAttribute('deployment_id');
264
+ }
265
+ set deploymentId(value) {
266
+ this._deploymentId = value;
267
+ }
268
+ resetDeploymentId() {
269
+ this._deploymentId = undefined;
270
+ }
271
+ // Temporarily expose input value. Use with caution.
272
+ get deploymentIdInput() {
273
+ return this._deploymentId;
274
+ }
275
+ // integration_key - computed: false, optional: true, required: false
276
+ _integrationKey;
277
+ get integrationKey() {
278
+ return this.getStringAttribute('integration_key');
279
+ }
280
+ set integrationKey(value) {
281
+ this._integrationKey = value;
282
+ }
283
+ resetIntegrationKey() {
284
+ this._integrationKey = undefined;
285
+ }
286
+ // Temporarily expose input value. Use with caution.
287
+ get integrationKeyInput() {
288
+ return this._integrationKey;
289
+ }
290
+ // recipients - computed: false, optional: true, required: false
291
+ _recipients;
292
+ get recipients() {
293
+ return cdktf.Fn.tolist(this.getListAttribute('recipients'));
294
+ }
295
+ set recipients(value) {
296
+ this._recipients = value;
297
+ }
298
+ resetRecipients() {
299
+ this._recipients = undefined;
300
+ }
301
+ // Temporarily expose input value. Use with caution.
302
+ get recipientsInput() {
303
+ return this._recipients;
304
+ }
305
+ // webhook_url - computed: false, optional: true, required: false
306
+ _webhookUrl;
307
+ get webhookUrl() {
308
+ return this.getStringAttribute('webhook_url');
309
+ }
310
+ set webhookUrl(value) {
311
+ this._webhookUrl = value;
312
+ }
313
+ resetWebhookUrl() {
314
+ this._webhookUrl = undefined;
315
+ }
316
+ // Temporarily expose input value. Use with caution.
317
+ get webhookUrlInput() {
318
+ return this._webhookUrl;
319
+ }
320
+ }
321
+ export function notificationChannelUpdatedByToTerraform(struct) {
322
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
323
+ return struct;
324
+ }
325
+ if (cdktf.isComplexElement(struct)) {
326
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
327
+ }
328
+ return {};
329
+ }
330
+ export function notificationChannelUpdatedByToHclTerraform(struct) {
331
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
332
+ return struct;
333
+ }
334
+ if (cdktf.isComplexElement(struct)) {
335
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
336
+ }
337
+ const attrs = {};
338
+ return attrs;
339
+ }
340
+ export class NotificationChannelUpdatedByOutputReference extends cdktf.ComplexObject {
341
+ isEmptyObject = false;
342
+ /**
343
+ * @param terraformResource The parent resource
344
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
345
+ */
346
+ constructor(terraformResource, terraformAttribute) {
347
+ super(terraformResource, terraformAttribute, false);
348
+ }
349
+ get internalValue() {
350
+ let hasAnyValues = this.isEmptyObject;
351
+ const internalValueResult = {};
352
+ return hasAnyValues ? internalValueResult : undefined;
353
+ }
354
+ set internalValue(value) {
355
+ if (value === undefined) {
356
+ this.isEmptyObject = false;
357
+ }
358
+ else {
359
+ this.isEmptyObject = Object.keys(value).length === 0;
360
+ }
361
+ }
362
+ // api_token_name - computed: true, optional: false, required: false
363
+ get apiTokenName() {
364
+ return this.getStringAttribute('api_token_name');
365
+ }
366
+ // avatar_url - computed: true, optional: false, required: false
367
+ get avatarUrl() {
368
+ return this.getStringAttribute('avatar_url');
369
+ }
370
+ // full_name - computed: true, optional: false, required: false
371
+ get fullName() {
372
+ return this.getStringAttribute('full_name');
373
+ }
374
+ // id - computed: true, optional: false, required: false
375
+ get id() {
376
+ return this.getStringAttribute('id');
377
+ }
378
+ // subject_type - computed: true, optional: false, required: false
379
+ get subjectType() {
380
+ return this.getStringAttribute('subject_type');
381
+ }
382
+ // username - computed: true, optional: false, required: false
383
+ get username() {
384
+ return this.getStringAttribute('username');
385
+ }
386
+ }
387
+ /**
388
+ * Represents a {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/notification_channel astro_notification_channel}
389
+ */
390
+ export class NotificationChannel extends cdktf.TerraformResource {
391
+ // =================
392
+ // STATIC PROPERTIES
393
+ // =================
394
+ static tfResourceType = "astro_notification_channel";
395
+ // ==============
396
+ // STATIC Methods
397
+ // ==============
398
+ /**
399
+ * Generates CDKTF code for importing a NotificationChannel resource upon running "cdktf plan <stack-name>"
400
+ * @param scope The scope in which to define this construct
401
+ * @param importToId The construct id used in the generated config for the NotificationChannel to import
402
+ * @param importFromId The id of the existing NotificationChannel that should be imported. Refer to the {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/notification_channel#import import section} in the documentation of this resource for the id to use
403
+ * @param provider? Optional instance of the provider where the NotificationChannel to import is found
404
+ */
405
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
406
+ return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "astro_notification_channel", importId: importFromId, provider });
407
+ }
408
+ // ===========
409
+ // INITIALIZER
410
+ // ===========
411
+ /**
412
+ * Create a new {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/notification_channel astro_notification_channel} Resource
413
+ *
414
+ * @param scope The scope in which to define this construct
415
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
416
+ * @param options NotificationChannelConfig
417
+ */
418
+ constructor(scope, id, config) {
419
+ super(scope, id, {
420
+ terraformResourceType: 'astro_notification_channel',
421
+ terraformGeneratorMetadata: {
422
+ providerName: 'astro',
423
+ providerVersion: '1.0.8',
424
+ providerVersionConstraint: '1.0.8'
425
+ },
426
+ provider: config.provider,
427
+ dependsOn: config.dependsOn,
428
+ count: config.count,
429
+ lifecycle: config.lifecycle,
430
+ provisioners: config.provisioners,
431
+ connection: config.connection,
432
+ forEach: config.forEach
433
+ });
434
+ this._definition.internalValue = config.definition;
435
+ this._entityId = config.entityId;
436
+ this._entityType = config.entityType;
437
+ this._isShared = config.isShared;
438
+ this._name = config.name;
439
+ this._type = config.type;
440
+ }
441
+ // ==========
442
+ // ATTRIBUTES
443
+ // ==========
444
+ // created_at - computed: true, optional: false, required: false
445
+ get createdAt() {
446
+ return this.getStringAttribute('created_at');
447
+ }
448
+ // created_by - computed: true, optional: false, required: false
449
+ _createdBy = new NotificationChannelCreatedByOutputReference(this, "created_by");
450
+ get createdBy() {
451
+ return this._createdBy;
452
+ }
453
+ // definition - computed: false, optional: false, required: true
454
+ _definition = new NotificationChannelDefinitionOutputReference(this, "definition");
455
+ get definition() {
456
+ return this._definition;
457
+ }
458
+ putDefinition(value) {
459
+ this._definition.internalValue = value;
460
+ }
461
+ // Temporarily expose input value. Use with caution.
462
+ get definitionInput() {
463
+ return this._definition.internalValue;
464
+ }
465
+ // deployment_id - computed: true, optional: false, required: false
466
+ get deploymentId() {
467
+ return this.getStringAttribute('deployment_id');
468
+ }
469
+ // entity_id - computed: false, optional: false, required: true
470
+ _entityId;
471
+ get entityId() {
472
+ return this.getStringAttribute('entity_id');
473
+ }
474
+ set entityId(value) {
475
+ this._entityId = value;
476
+ }
477
+ // Temporarily expose input value. Use with caution.
478
+ get entityIdInput() {
479
+ return this._entityId;
480
+ }
481
+ // entity_name - computed: true, optional: false, required: false
482
+ get entityName() {
483
+ return this.getStringAttribute('entity_name');
484
+ }
485
+ // entity_type - computed: false, optional: false, required: true
486
+ _entityType;
487
+ get entityType() {
488
+ return this.getStringAttribute('entity_type');
489
+ }
490
+ set entityType(value) {
491
+ this._entityType = value;
492
+ }
493
+ // Temporarily expose input value. Use with caution.
494
+ get entityTypeInput() {
495
+ return this._entityType;
496
+ }
497
+ // id - computed: true, optional: false, required: false
498
+ get id() {
499
+ return this.getStringAttribute('id');
500
+ }
501
+ // is_shared - computed: true, optional: true, required: false
502
+ _isShared;
503
+ get isShared() {
504
+ return this.getBooleanAttribute('is_shared');
505
+ }
506
+ set isShared(value) {
507
+ this._isShared = value;
508
+ }
509
+ resetIsShared() {
510
+ this._isShared = undefined;
511
+ }
512
+ // Temporarily expose input value. Use with caution.
513
+ get isSharedInput() {
514
+ return this._isShared;
515
+ }
516
+ // name - computed: false, optional: false, required: true
517
+ _name;
518
+ get name() {
519
+ return this.getStringAttribute('name');
520
+ }
521
+ set name(value) {
522
+ this._name = value;
523
+ }
524
+ // Temporarily expose input value. Use with caution.
525
+ get nameInput() {
526
+ return this._name;
527
+ }
528
+ // type - computed: false, optional: false, required: true
529
+ _type;
530
+ get type() {
531
+ return this.getStringAttribute('type');
532
+ }
533
+ set type(value) {
534
+ this._type = value;
535
+ }
536
+ // Temporarily expose input value. Use with caution.
537
+ get typeInput() {
538
+ return this._type;
539
+ }
540
+ // updated_at - computed: true, optional: false, required: false
541
+ get updatedAt() {
542
+ return this.getStringAttribute('updated_at');
543
+ }
544
+ // updated_by - computed: true, optional: false, required: false
545
+ _updatedBy = new NotificationChannelUpdatedByOutputReference(this, "updated_by");
546
+ get updatedBy() {
547
+ return this._updatedBy;
548
+ }
549
+ // workspace_id - computed: true, optional: false, required: false
550
+ get workspaceId() {
551
+ return this.getStringAttribute('workspace_id');
552
+ }
553
+ // =========
554
+ // SYNTHESIS
555
+ // =========
556
+ synthesizeAttributes() {
557
+ return {
558
+ definition: notificationChannelDefinitionToTerraform(this._definition.internalValue),
559
+ entity_id: cdktf.stringToTerraform(this._entityId),
560
+ entity_type: cdktf.stringToTerraform(this._entityType),
561
+ is_shared: cdktf.booleanToTerraform(this._isShared),
562
+ name: cdktf.stringToTerraform(this._name),
563
+ type: cdktf.stringToTerraform(this._type),
564
+ };
565
+ }
566
+ synthesizeHclAttributes() {
567
+ const attrs = {
568
+ definition: {
569
+ value: notificationChannelDefinitionToHclTerraform(this._definition.internalValue),
570
+ isBlock: true,
571
+ type: "struct",
572
+ storageClassType: "NotificationChannelDefinition",
573
+ },
574
+ entity_id: {
575
+ value: cdktf.stringToHclTerraform(this._entityId),
576
+ isBlock: false,
577
+ type: "simple",
578
+ storageClassType: "string",
579
+ },
580
+ entity_type: {
581
+ value: cdktf.stringToHclTerraform(this._entityType),
582
+ isBlock: false,
583
+ type: "simple",
584
+ storageClassType: "string",
585
+ },
586
+ is_shared: {
587
+ value: cdktf.booleanToHclTerraform(this._isShared),
588
+ isBlock: false,
589
+ type: "simple",
590
+ storageClassType: "boolean",
591
+ },
592
+ name: {
593
+ value: cdktf.stringToHclTerraform(this._name),
594
+ isBlock: false,
595
+ type: "simple",
596
+ storageClassType: "string",
597
+ },
598
+ type: {
599
+ value: cdktf.stringToHclTerraform(this._type),
600
+ isBlock: false,
601
+ type: "simple",
602
+ storageClassType: "string",
603
+ },
604
+ };
605
+ // remove undefined attributes
606
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
607
+ }
608
+ }
@@ -0,0 +1,75 @@
1
+ import { Construct } from 'constructs';
2
+ import * as cdktf from 'cdktf';
3
+ export interface AstroProviderConfig {
4
+ /**
5
+ * API host to use for the provider. Default is `https://api.astronomer.io`
6
+ *
7
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs#host AstroProvider#host}
8
+ */
9
+ readonly host?: string;
10
+ /**
11
+ * Organization ID this provider will operate on.
12
+ *
13
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs#organization_id AstroProvider#organization_id}
14
+ */
15
+ readonly organizationId: string;
16
+ /**
17
+ * Astro API Token. Can be set with an `ASTRO_API_TOKEN` env var.
18
+ *
19
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs#token AstroProvider#token}
20
+ */
21
+ readonly token?: string;
22
+ /**
23
+ * Alias name
24
+ *
25
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs#alias AstroProvider#alias}
26
+ */
27
+ readonly alias?: string;
28
+ }
29
+ /**
30
+ * Represents a {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs astro}
31
+ */
32
+ export declare class AstroProvider extends cdktf.TerraformProvider {
33
+ static readonly tfResourceType = "astro";
34
+ /**
35
+ * Generates CDKTF code for importing a AstroProvider resource upon running "cdktf plan <stack-name>"
36
+ * @param scope The scope in which to define this construct
37
+ * @param importToId The construct id used in the generated config for the AstroProvider to import
38
+ * @param importFromId The id of the existing AstroProvider that should be imported. Refer to the {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs#import import section} in the documentation of this resource for the id to use
39
+ * @param provider? Optional instance of the provider where the AstroProvider to import is found
40
+ */
41
+ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
42
+ /**
43
+ * Create a new {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs astro} Resource
44
+ *
45
+ * @param scope The scope in which to define this construct
46
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
47
+ * @param options AstroProviderConfig
48
+ */
49
+ constructor(scope: Construct, id: string, config: AstroProviderConfig);
50
+ private _host?;
51
+ get host(): string | undefined;
52
+ set host(value: string | undefined);
53
+ resetHost(): void;
54
+ get hostInput(): string;
55
+ private _organizationId?;
56
+ get organizationId(): string | undefined;
57
+ set organizationId(value: string | undefined);
58
+ get organizationIdInput(): string;
59
+ private _token?;
60
+ get token(): string | undefined;
61
+ set token(value: string | undefined);
62
+ resetToken(): void;
63
+ get tokenInput(): string;
64
+ private _alias?;
65
+ get alias(): string | undefined;
66
+ set alias(value: string | undefined);
67
+ resetAlias(): void;
68
+ get aliasInput(): string;
69
+ protected synthesizeAttributes(): {
70
+ [name: string]: any;
71
+ };
72
+ protected synthesizeHclAttributes(): {
73
+ [name: string]: any;
74
+ };
75
+ }