@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,122 @@
1
+ import { Construct } from 'constructs';
2
+ import * as cdktf from 'cdktf';
3
+ export interface DataAstroNotificationChannelConfig extends cdktf.TerraformMetaArguments {
4
+ /**
5
+ * The notification channel's ID
6
+ *
7
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/notification_channel#id DataAstroNotificationChannel#id}
8
+ *
9
+ * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
10
+ * If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
11
+ */
12
+ readonly id: string;
13
+ }
14
+ export interface DataAstroNotificationChannelCreatedBy {
15
+ }
16
+ export declare function dataAstroNotificationChannelCreatedByToTerraform(struct?: DataAstroNotificationChannelCreatedBy): any;
17
+ export declare function dataAstroNotificationChannelCreatedByToHclTerraform(struct?: DataAstroNotificationChannelCreatedBy): any;
18
+ export declare class DataAstroNotificationChannelCreatedByOutputReference extends cdktf.ComplexObject {
19
+ private isEmptyObject;
20
+ /**
21
+ * @param terraformResource The parent resource
22
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
23
+ */
24
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
25
+ get internalValue(): DataAstroNotificationChannelCreatedBy | undefined;
26
+ set internalValue(value: DataAstroNotificationChannelCreatedBy | undefined);
27
+ get apiTokenName(): any;
28
+ get avatarUrl(): any;
29
+ get fullName(): any;
30
+ get id(): any;
31
+ get subjectType(): any;
32
+ get username(): any;
33
+ }
34
+ export interface DataAstroNotificationChannelDefinition {
35
+ }
36
+ export declare function dataAstroNotificationChannelDefinitionToTerraform(struct?: DataAstroNotificationChannelDefinition): any;
37
+ export declare function dataAstroNotificationChannelDefinitionToHclTerraform(struct?: DataAstroNotificationChannelDefinition): any;
38
+ export declare class DataAstroNotificationChannelDefinitionOutputReference extends cdktf.ComplexObject {
39
+ private isEmptyObject;
40
+ /**
41
+ * @param terraformResource The parent resource
42
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
43
+ */
44
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
45
+ get internalValue(): DataAstroNotificationChannelDefinition | undefined;
46
+ set internalValue(value: DataAstroNotificationChannelDefinition | undefined);
47
+ get apiKey(): any;
48
+ get dagId(): any;
49
+ get deploymentApiToken(): any;
50
+ get deploymentId(): any;
51
+ get integrationKey(): any;
52
+ get recipients(): any;
53
+ get webhookUrl(): any;
54
+ }
55
+ export interface DataAstroNotificationChannelUpdatedBy {
56
+ }
57
+ export declare function dataAstroNotificationChannelUpdatedByToTerraform(struct?: DataAstroNotificationChannelUpdatedBy): any;
58
+ export declare function dataAstroNotificationChannelUpdatedByToHclTerraform(struct?: DataAstroNotificationChannelUpdatedBy): any;
59
+ export declare class DataAstroNotificationChannelUpdatedByOutputReference extends cdktf.ComplexObject {
60
+ private isEmptyObject;
61
+ /**
62
+ * @param terraformResource The parent resource
63
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
64
+ */
65
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
66
+ get internalValue(): DataAstroNotificationChannelUpdatedBy | undefined;
67
+ set internalValue(value: DataAstroNotificationChannelUpdatedBy | undefined);
68
+ get apiTokenName(): any;
69
+ get avatarUrl(): any;
70
+ get fullName(): any;
71
+ get id(): any;
72
+ get subjectType(): any;
73
+ get username(): any;
74
+ }
75
+ /**
76
+ * Represents a {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/notification_channel astro_notification_channel}
77
+ */
78
+ export declare class DataAstroNotificationChannel extends cdktf.TerraformDataSource {
79
+ static readonly tfResourceType = "astro_notification_channel";
80
+ /**
81
+ * Generates CDKTF code for importing a DataAstroNotificationChannel resource upon running "cdktf plan <stack-name>"
82
+ * @param scope The scope in which to define this construct
83
+ * @param importToId The construct id used in the generated config for the DataAstroNotificationChannel to import
84
+ * @param importFromId The id of the existing DataAstroNotificationChannel that should be imported. Refer to the {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/notification_channel#import import section} in the documentation of this resource for the id to use
85
+ * @param provider? Optional instance of the provider where the DataAstroNotificationChannel to import is found
86
+ */
87
+ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
88
+ /**
89
+ * Create a new {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/notification_channel astro_notification_channel} Data Source
90
+ *
91
+ * @param scope The scope in which to define this construct
92
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
93
+ * @param options DataAstroNotificationChannelConfig
94
+ */
95
+ constructor(scope: Construct, id: string, config: DataAstroNotificationChannelConfig);
96
+ get createdAt(): any;
97
+ private _createdBy;
98
+ get createdBy(): DataAstroNotificationChannelCreatedByOutputReference;
99
+ private _definition;
100
+ get definition(): DataAstroNotificationChannelDefinitionOutputReference;
101
+ get deploymentId(): any;
102
+ get entityId(): any;
103
+ get entityName(): any;
104
+ get entityType(): any;
105
+ private _id?;
106
+ get id(): string;
107
+ set id(value: string);
108
+ get idInput(): string;
109
+ get isShared(): any;
110
+ get name(): any;
111
+ get type(): any;
112
+ get updatedAt(): any;
113
+ private _updatedBy;
114
+ get updatedBy(): DataAstroNotificationChannelUpdatedByOutputReference;
115
+ get workspaceId(): any;
116
+ protected synthesizeAttributes(): {
117
+ [name: string]: any;
118
+ };
119
+ protected synthesizeHclAttributes(): {
120
+ [name: string]: any;
121
+ };
122
+ }
@@ -0,0 +1,345 @@
1
+ // https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/notification_channel
2
+ // generated from terraform resource schema
3
+ import * as cdktf from 'cdktf';
4
+ export function dataAstroNotificationChannelCreatedByToTerraform(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 dataAstroNotificationChannelCreatedByToHclTerraform(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 DataAstroNotificationChannelCreatedByOutputReference 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 dataAstroNotificationChannelDefinitionToTerraform(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 dataAstroNotificationChannelDefinitionToHclTerraform(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 DataAstroNotificationChannelDefinitionOutputReference 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 dataAstroNotificationChannelUpdatedByToTerraform(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 dataAstroNotificationChannelUpdatedByToHclTerraform(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 DataAstroNotificationChannelUpdatedByOutputReference 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
+ /**
207
+ * Represents a {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/notification_channel astro_notification_channel}
208
+ */
209
+ export class DataAstroNotificationChannel extends cdktf.TerraformDataSource {
210
+ // =================
211
+ // STATIC PROPERTIES
212
+ // =================
213
+ static tfResourceType = "astro_notification_channel";
214
+ // ==============
215
+ // STATIC Methods
216
+ // ==============
217
+ /**
218
+ * Generates CDKTF code for importing a DataAstroNotificationChannel resource upon running "cdktf plan <stack-name>"
219
+ * @param scope The scope in which to define this construct
220
+ * @param importToId The construct id used in the generated config for the DataAstroNotificationChannel to import
221
+ * @param importFromId The id of the existing DataAstroNotificationChannel that should be imported. Refer to the {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/notification_channel#import import section} in the documentation of this resource for the id to use
222
+ * @param provider? Optional instance of the provider where the DataAstroNotificationChannel to import is found
223
+ */
224
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
225
+ return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "astro_notification_channel", importId: importFromId, provider });
226
+ }
227
+ // ===========
228
+ // INITIALIZER
229
+ // ===========
230
+ /**
231
+ * Create a new {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/notification_channel astro_notification_channel} Data Source
232
+ *
233
+ * @param scope The scope in which to define this construct
234
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
235
+ * @param options DataAstroNotificationChannelConfig
236
+ */
237
+ constructor(scope, id, config) {
238
+ super(scope, id, {
239
+ terraformResourceType: 'astro_notification_channel',
240
+ terraformGeneratorMetadata: {
241
+ providerName: 'astro',
242
+ providerVersion: '1.0.8',
243
+ providerVersionConstraint: '1.0.8'
244
+ },
245
+ provider: config.provider,
246
+ dependsOn: config.dependsOn,
247
+ count: config.count,
248
+ lifecycle: config.lifecycle,
249
+ provisioners: config.provisioners,
250
+ connection: config.connection,
251
+ forEach: config.forEach
252
+ });
253
+ this._id = config.id;
254
+ }
255
+ // ==========
256
+ // ATTRIBUTES
257
+ // ==========
258
+ // created_at - computed: true, optional: false, required: false
259
+ get createdAt() {
260
+ return this.getStringAttribute('created_at');
261
+ }
262
+ // created_by - computed: true, optional: false, required: false
263
+ _createdBy = new DataAstroNotificationChannelCreatedByOutputReference(this, "created_by");
264
+ get createdBy() {
265
+ return this._createdBy;
266
+ }
267
+ // definition - computed: true, optional: false, required: false
268
+ _definition = new DataAstroNotificationChannelDefinitionOutputReference(this, "definition");
269
+ get definition() {
270
+ return this._definition;
271
+ }
272
+ // deployment_id - computed: true, optional: false, required: false
273
+ get deploymentId() {
274
+ return this.getStringAttribute('deployment_id');
275
+ }
276
+ // entity_id - computed: true, optional: false, required: false
277
+ get entityId() {
278
+ return this.getStringAttribute('entity_id');
279
+ }
280
+ // entity_name - computed: true, optional: false, required: false
281
+ get entityName() {
282
+ return this.getStringAttribute('entity_name');
283
+ }
284
+ // entity_type - computed: true, optional: false, required: false
285
+ get entityType() {
286
+ return this.getStringAttribute('entity_type');
287
+ }
288
+ // id - computed: false, optional: false, required: true
289
+ _id;
290
+ get id() {
291
+ return this.getStringAttribute('id');
292
+ }
293
+ set id(value) {
294
+ this._id = value;
295
+ }
296
+ // Temporarily expose input value. Use with caution.
297
+ get idInput() {
298
+ return this._id;
299
+ }
300
+ // is_shared - computed: true, optional: false, required: false
301
+ get isShared() {
302
+ return this.getBooleanAttribute('is_shared');
303
+ }
304
+ // name - computed: true, optional: false, required: false
305
+ get name() {
306
+ return this.getStringAttribute('name');
307
+ }
308
+ // type - computed: true, optional: false, required: false
309
+ get type() {
310
+ return this.getStringAttribute('type');
311
+ }
312
+ // updated_at - computed: true, optional: false, required: false
313
+ get updatedAt() {
314
+ return this.getStringAttribute('updated_at');
315
+ }
316
+ // updated_by - computed: true, optional: false, required: false
317
+ _updatedBy = new DataAstroNotificationChannelUpdatedByOutputReference(this, "updated_by");
318
+ get updatedBy() {
319
+ return this._updatedBy;
320
+ }
321
+ // workspace_id - computed: true, optional: false, required: false
322
+ get workspaceId() {
323
+ return this.getStringAttribute('workspace_id');
324
+ }
325
+ // =========
326
+ // SYNTHESIS
327
+ // =========
328
+ synthesizeAttributes() {
329
+ return {
330
+ id: cdktf.stringToTerraform(this._id),
331
+ };
332
+ }
333
+ synthesizeHclAttributes() {
334
+ const attrs = {
335
+ id: {
336
+ value: cdktf.stringToHclTerraform(this._id),
337
+ isBlock: false,
338
+ type: "simple",
339
+ storageClassType: "string",
340
+ },
341
+ };
342
+ // remove undefined attributes
343
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
344
+ }
345
+ }
@@ -0,0 +1,201 @@
1
+ import { Construct } from 'constructs';
2
+ import * as cdktf from 'cdktf';
3
+ export interface DataAstroNotificationChannelsConfig extends cdktf.TerraformMetaArguments {
4
+ /**
5
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/notification_channels#channel_types DataAstroNotificationChannels#channel_types}
6
+ */
7
+ readonly channelTypes?: string[];
8
+ /**
9
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/notification_channels#deployment_ids DataAstroNotificationChannels#deployment_ids}
10
+ */
11
+ readonly deploymentIds?: string[];
12
+ /**
13
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/notification_channels#entity_type DataAstroNotificationChannels#entity_type}
14
+ */
15
+ readonly entityType?: string;
16
+ /**
17
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/notification_channels#notification_channel_ids DataAstroNotificationChannels#notification_channel_ids}
18
+ */
19
+ readonly notificationChannelIds?: string[];
20
+ /**
21
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/notification_channels#workspace_ids DataAstroNotificationChannels#workspace_ids}
22
+ */
23
+ readonly workspaceIds?: string[];
24
+ }
25
+ export interface DataAstroNotificationChannelsNotificationChannelsCreatedBy {
26
+ }
27
+ export declare function dataAstroNotificationChannelsNotificationChannelsCreatedByToTerraform(struct?: DataAstroNotificationChannelsNotificationChannelsCreatedBy): any;
28
+ export declare function dataAstroNotificationChannelsNotificationChannelsCreatedByToHclTerraform(struct?: DataAstroNotificationChannelsNotificationChannelsCreatedBy): any;
29
+ export declare class DataAstroNotificationChannelsNotificationChannelsCreatedByOutputReference 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(): DataAstroNotificationChannelsNotificationChannelsCreatedBy | undefined;
37
+ set internalValue(value: DataAstroNotificationChannelsNotificationChannelsCreatedBy | 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
+ export interface DataAstroNotificationChannelsNotificationChannelsDefinition {
46
+ }
47
+ export declare function dataAstroNotificationChannelsNotificationChannelsDefinitionToTerraform(struct?: DataAstroNotificationChannelsNotificationChannelsDefinition): any;
48
+ export declare function dataAstroNotificationChannelsNotificationChannelsDefinitionToHclTerraform(struct?: DataAstroNotificationChannelsNotificationChannelsDefinition): any;
49
+ export declare class DataAstroNotificationChannelsNotificationChannelsDefinitionOutputReference extends cdktf.ComplexObject {
50
+ private isEmptyObject;
51
+ /**
52
+ * @param terraformResource The parent resource
53
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
54
+ */
55
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
56
+ get internalValue(): DataAstroNotificationChannelsNotificationChannelsDefinition | undefined;
57
+ set internalValue(value: DataAstroNotificationChannelsNotificationChannelsDefinition | undefined);
58
+ get apiKey(): any;
59
+ get dagId(): any;
60
+ get deploymentApiToken(): any;
61
+ get deploymentId(): any;
62
+ get integrationKey(): any;
63
+ get recipients(): any;
64
+ get webhookUrl(): any;
65
+ }
66
+ export interface DataAstroNotificationChannelsNotificationChannelsUpdatedBy {
67
+ }
68
+ export declare function dataAstroNotificationChannelsNotificationChannelsUpdatedByToTerraform(struct?: DataAstroNotificationChannelsNotificationChannelsUpdatedBy): any;
69
+ export declare function dataAstroNotificationChannelsNotificationChannelsUpdatedByToHclTerraform(struct?: DataAstroNotificationChannelsNotificationChannelsUpdatedBy): any;
70
+ export declare class DataAstroNotificationChannelsNotificationChannelsUpdatedByOutputReference extends cdktf.ComplexObject {
71
+ private isEmptyObject;
72
+ /**
73
+ * @param terraformResource The parent resource
74
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
75
+ */
76
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
77
+ get internalValue(): DataAstroNotificationChannelsNotificationChannelsUpdatedBy | undefined;
78
+ set internalValue(value: DataAstroNotificationChannelsNotificationChannelsUpdatedBy | undefined);
79
+ get apiTokenName(): any;
80
+ get avatarUrl(): any;
81
+ get fullName(): any;
82
+ get id(): any;
83
+ get subjectType(): any;
84
+ get username(): any;
85
+ }
86
+ export interface DataAstroNotificationChannelsNotificationChannels {
87
+ /**
88
+ * The notification channel's ID
89
+ *
90
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/notification_channels#id DataAstroNotificationChannels#id}
91
+ *
92
+ * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
93
+ * If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
94
+ */
95
+ readonly id: string;
96
+ }
97
+ export declare function dataAstroNotificationChannelsNotificationChannelsToTerraform(struct?: DataAstroNotificationChannelsNotificationChannels): any;
98
+ export declare function dataAstroNotificationChannelsNotificationChannelsToHclTerraform(struct?: DataAstroNotificationChannelsNotificationChannels): any;
99
+ export declare class DataAstroNotificationChannelsNotificationChannelsOutputReference extends cdktf.ComplexObject {
100
+ private isEmptyObject;
101
+ /**
102
+ * @param terraformResource The parent resource
103
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
104
+ * @param complexObjectIndex the index of this item in the list
105
+ * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
106
+ */
107
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
108
+ get internalValue(): DataAstroNotificationChannelsNotificationChannels | undefined;
109
+ set internalValue(value: DataAstroNotificationChannelsNotificationChannels | undefined);
110
+ get createdAt(): any;
111
+ private _createdBy;
112
+ get createdBy(): DataAstroNotificationChannelsNotificationChannelsCreatedByOutputReference;
113
+ private _definition;
114
+ get definition(): DataAstroNotificationChannelsNotificationChannelsDefinitionOutputReference;
115
+ get deploymentId(): any;
116
+ get entityId(): any;
117
+ get entityName(): any;
118
+ get entityType(): any;
119
+ private _id?;
120
+ get id(): string;
121
+ set id(value: string);
122
+ get idInput(): string;
123
+ get isShared(): any;
124
+ get name(): any;
125
+ get type(): any;
126
+ get updatedAt(): any;
127
+ private _updatedBy;
128
+ get updatedBy(): DataAstroNotificationChannelsNotificationChannelsUpdatedByOutputReference;
129
+ get workspaceId(): any;
130
+ }
131
+ export declare class DataAstroNotificationChannelsNotificationChannelsList extends cdktf.ComplexList {
132
+ protected terraformResource: cdktf.IInterpolatingParent;
133
+ protected terraformAttribute: string;
134
+ protected wrapsSet: boolean;
135
+ internalValue?: DataAstroNotificationChannelsNotificationChannels[] | cdktf.IResolvable;
136
+ /**
137
+ * @param terraformResource The parent resource
138
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
139
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
140
+ */
141
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
142
+ /**
143
+ * @param index the index of the item to return
144
+ */
145
+ get(index: number): DataAstroNotificationChannelsNotificationChannelsOutputReference;
146
+ }
147
+ /**
148
+ * Represents a {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/notification_channels astro_notification_channels}
149
+ */
150
+ export declare class DataAstroNotificationChannels extends cdktf.TerraformDataSource {
151
+ static readonly tfResourceType = "astro_notification_channels";
152
+ /**
153
+ * Generates CDKTF code for importing a DataAstroNotificationChannels resource upon running "cdktf plan <stack-name>"
154
+ * @param scope The scope in which to define this construct
155
+ * @param importToId The construct id used in the generated config for the DataAstroNotificationChannels to import
156
+ * @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
157
+ * @param provider? Optional instance of the provider where the DataAstroNotificationChannels to import is found
158
+ */
159
+ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
160
+ /**
161
+ * Create a new {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/notification_channels astro_notification_channels} Data Source
162
+ *
163
+ * @param scope The scope in which to define this construct
164
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
165
+ * @param options DataAstroNotificationChannelsConfig = {}
166
+ */
167
+ constructor(scope: Construct, id: string, config?: DataAstroNotificationChannelsConfig);
168
+ private _channelTypes?;
169
+ get channelTypes(): string[];
170
+ set channelTypes(value: string[]);
171
+ resetChannelTypes(): void;
172
+ get channelTypesInput(): string[];
173
+ private _deploymentIds?;
174
+ get deploymentIds(): string[];
175
+ set deploymentIds(value: string[]);
176
+ resetDeploymentIds(): void;
177
+ get deploymentIdsInput(): string[];
178
+ private _entityType?;
179
+ get entityType(): string;
180
+ set entityType(value: string);
181
+ resetEntityType(): void;
182
+ get entityTypeInput(): string;
183
+ private _notificationChannelIds?;
184
+ get notificationChannelIds(): string[];
185
+ set notificationChannelIds(value: string[]);
186
+ resetNotificationChannelIds(): void;
187
+ get notificationChannelIdsInput(): string[];
188
+ private _notificationChannels;
189
+ get notificationChannels(): DataAstroNotificationChannelsNotificationChannelsList;
190
+ private _workspaceIds?;
191
+ get workspaceIds(): string[];
192
+ set workspaceIds(value: string[]);
193
+ resetWorkspaceIds(): void;
194
+ get workspaceIdsInput(): string[];
195
+ protected synthesizeAttributes(): {
196
+ [name: string]: any;
197
+ };
198
+ protected synthesizeHclAttributes(): {
199
+ [name: string]: any;
200
+ };
201
+ }