@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.
- package/LICENSE +355 -0
- package/README.md +19 -0
- package/dist/alert/index.d.ts +566 -0
- package/dist/alert/index.js +1489 -0
- package/dist/api-token/index.d.ts +199 -0
- package/dist/api-token/index.js +503 -0
- package/dist/cluster/index.d.ts +305 -0
- package/dist/cluster/index.js +755 -0
- package/dist/data-astro-alert/index.d.ts +277 -0
- package/dist/data-astro-alert/index.js +762 -0
- package/dist/data-astro-alerts/index.d.ts +232 -0
- package/dist/data-astro-alerts/index.js +600 -0
- package/dist/data-astro-api-token/index.d.ts +135 -0
- package/dist/data-astro-api-token/index.js +353 -0
- package/dist/data-astro-api-tokens/index.d.ts +196 -0
- package/dist/data-astro-api-tokens/index.js +502 -0
- package/dist/data-astro-cluster/index.d.ts +211 -0
- package/dist/data-astro-cluster/index.js +535 -0
- package/dist/data-astro-cluster-options/index.d.ts +255 -0
- package/dist/data-astro-cluster-options/index.js +640 -0
- package/dist/data-astro-clusters/index.d.ts +263 -0
- package/dist/data-astro-clusters/index.js +661 -0
- package/dist/data-astro-deployment/index.d.ts +355 -0
- package/dist/data-astro-deployment/index.js +1009 -0
- package/dist/data-astro-deployment-options/index.d.ts +475 -0
- package/dist/data-astro-deployment-options/index.js +1274 -0
- package/dist/data-astro-deployments/index.d.ts +416 -0
- package/dist/data-astro-deployments/index.js +1158 -0
- package/dist/data-astro-notification-channel/index.d.ts +122 -0
- package/dist/data-astro-notification-channel/index.js +345 -0
- package/dist/data-astro-notification-channels/index.d.ts +201 -0
- package/dist/data-astro-notification-channels/index.js +540 -0
- package/dist/data-astro-organization/index.d.ts +87 -0
- package/dist/data-astro-organization/index.js +251 -0
- package/dist/data-astro-team/index.d.ts +204 -0
- package/dist/data-astro-team/index.js +507 -0
- package/dist/data-astro-teams/index.d.ts +247 -0
- package/dist/data-astro-teams/index.js +610 -0
- package/dist/data-astro-user/index.d.ts +122 -0
- package/dist/data-astro-user/index.js +274 -0
- package/dist/data-astro-users/index.d.ts +174 -0
- package/dist/data-astro-users/index.js +400 -0
- package/dist/data-astro-workspace/index.d.ts +94 -0
- package/dist/data-astro-workspace/index.js +250 -0
- package/dist/data-astro-workspaces/index.d.ts +146 -0
- package/dist/data-astro-workspaces/index.js +376 -0
- package/dist/deployment/index.d.ts +813 -0
- package/dist/deployment/index.js +2083 -0
- package/dist/hybrid-cluster-workspace-authorization/index.d.ts +53 -0
- package/dist/hybrid-cluster-workspace-authorization/index.js +111 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +32 -0
- package/dist/lazy-index.d.ts +0 -0
- package/dist/lazy-index.js +32 -0
- package/dist/notification-channel/index.d.ts +235 -0
- package/dist/notification-channel/index.js +608 -0
- package/dist/provider/index.d.ts +75 -0
- package/dist/provider/index.js +151 -0
- package/dist/team/index.d.ts +251 -0
- package/dist/team/index.js +622 -0
- package/dist/team-roles/index.d.ts +180 -0
- package/dist/team-roles/index.js +414 -0
- package/dist/user-invite/index.d.ts +99 -0
- package/dist/user-invite/index.js +262 -0
- package/dist/user-roles/index.d.ts +180 -0
- package/dist/user-roles/index.js +414 -0
- package/dist/workspace/index.d.ts +109 -0
- package/dist/workspace/index.js +282 -0
- package/package.json +51 -0
|
@@ -0,0 +1,762 @@
|
|
|
1
|
+
// https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/alert
|
|
2
|
+
// generated from terraform resource schema
|
|
3
|
+
import * as cdktf from 'cdktf';
|
|
4
|
+
export function dataAstroAlertCreatedByToTerraform(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 dataAstroAlertCreatedByToHclTerraform(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 DataAstroAlertCreatedByOutputReference 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 dataAstroAlertNotificationChannelsCreatedByToTerraform(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 dataAstroAlertNotificationChannelsCreatedByToHclTerraform(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 DataAstroAlertNotificationChannelsCreatedByOutputReference 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_token_name - computed: true, optional: false, required: false
|
|
112
|
+
get apiTokenName() {
|
|
113
|
+
return this.getStringAttribute('api_token_name');
|
|
114
|
+
}
|
|
115
|
+
// avatar_url - computed: true, optional: false, required: false
|
|
116
|
+
get avatarUrl() {
|
|
117
|
+
return this.getStringAttribute('avatar_url');
|
|
118
|
+
}
|
|
119
|
+
// full_name - computed: true, optional: false, required: false
|
|
120
|
+
get fullName() {
|
|
121
|
+
return this.getStringAttribute('full_name');
|
|
122
|
+
}
|
|
123
|
+
// id - computed: true, optional: false, required: false
|
|
124
|
+
get id() {
|
|
125
|
+
return this.getStringAttribute('id');
|
|
126
|
+
}
|
|
127
|
+
// subject_type - computed: true, optional: false, required: false
|
|
128
|
+
get subjectType() {
|
|
129
|
+
return this.getStringAttribute('subject_type');
|
|
130
|
+
}
|
|
131
|
+
// username - computed: true, optional: false, required: false
|
|
132
|
+
get username() {
|
|
133
|
+
return this.getStringAttribute('username');
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
export function dataAstroAlertNotificationChannelsDefinitionToTerraform(struct) {
|
|
137
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
138
|
+
return struct;
|
|
139
|
+
}
|
|
140
|
+
if (cdktf.isComplexElement(struct)) {
|
|
141
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
142
|
+
}
|
|
143
|
+
return {};
|
|
144
|
+
}
|
|
145
|
+
export function dataAstroAlertNotificationChannelsDefinitionToHclTerraform(struct) {
|
|
146
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
147
|
+
return struct;
|
|
148
|
+
}
|
|
149
|
+
if (cdktf.isComplexElement(struct)) {
|
|
150
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
151
|
+
}
|
|
152
|
+
const attrs = {};
|
|
153
|
+
return attrs;
|
|
154
|
+
}
|
|
155
|
+
export class DataAstroAlertNotificationChannelsDefinitionOutputReference extends cdktf.ComplexObject {
|
|
156
|
+
isEmptyObject = false;
|
|
157
|
+
/**
|
|
158
|
+
* @param terraformResource The parent resource
|
|
159
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
160
|
+
*/
|
|
161
|
+
constructor(terraformResource, terraformAttribute) {
|
|
162
|
+
super(terraformResource, terraformAttribute, false);
|
|
163
|
+
}
|
|
164
|
+
get internalValue() {
|
|
165
|
+
let hasAnyValues = this.isEmptyObject;
|
|
166
|
+
const internalValueResult = {};
|
|
167
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
168
|
+
}
|
|
169
|
+
set internalValue(value) {
|
|
170
|
+
if (value === undefined) {
|
|
171
|
+
this.isEmptyObject = false;
|
|
172
|
+
}
|
|
173
|
+
else {
|
|
174
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
// api_key - computed: true, optional: false, required: false
|
|
178
|
+
get apiKey() {
|
|
179
|
+
return this.getStringAttribute('api_key');
|
|
180
|
+
}
|
|
181
|
+
// dag_id - computed: true, optional: false, required: false
|
|
182
|
+
get dagId() {
|
|
183
|
+
return this.getStringAttribute('dag_id');
|
|
184
|
+
}
|
|
185
|
+
// deployment_api_token - computed: true, optional: false, required: false
|
|
186
|
+
get deploymentApiToken() {
|
|
187
|
+
return this.getStringAttribute('deployment_api_token');
|
|
188
|
+
}
|
|
189
|
+
// deployment_id - computed: true, optional: false, required: false
|
|
190
|
+
get deploymentId() {
|
|
191
|
+
return this.getStringAttribute('deployment_id');
|
|
192
|
+
}
|
|
193
|
+
// integration_key - computed: true, optional: false, required: false
|
|
194
|
+
get integrationKey() {
|
|
195
|
+
return this.getStringAttribute('integration_key');
|
|
196
|
+
}
|
|
197
|
+
// recipients - computed: true, optional: false, required: false
|
|
198
|
+
get recipients() {
|
|
199
|
+
return cdktf.Fn.tolist(this.getListAttribute('recipients'));
|
|
200
|
+
}
|
|
201
|
+
// webhook_url - computed: true, optional: false, required: false
|
|
202
|
+
get webhookUrl() {
|
|
203
|
+
return this.getStringAttribute('webhook_url');
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
export function dataAstroAlertNotificationChannelsUpdatedByToTerraform(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
|
+
}
|
|
215
|
+
export function dataAstroAlertNotificationChannelsUpdatedByToHclTerraform(struct) {
|
|
216
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
217
|
+
return struct;
|
|
218
|
+
}
|
|
219
|
+
if (cdktf.isComplexElement(struct)) {
|
|
220
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
221
|
+
}
|
|
222
|
+
const attrs = {};
|
|
223
|
+
return attrs;
|
|
224
|
+
}
|
|
225
|
+
export class DataAstroAlertNotificationChannelsUpdatedByOutputReference extends cdktf.ComplexObject {
|
|
226
|
+
isEmptyObject = false;
|
|
227
|
+
/**
|
|
228
|
+
* @param terraformResource The parent resource
|
|
229
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
230
|
+
*/
|
|
231
|
+
constructor(terraformResource, terraformAttribute) {
|
|
232
|
+
super(terraformResource, terraformAttribute, false);
|
|
233
|
+
}
|
|
234
|
+
get internalValue() {
|
|
235
|
+
let hasAnyValues = this.isEmptyObject;
|
|
236
|
+
const internalValueResult = {};
|
|
237
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
238
|
+
}
|
|
239
|
+
set internalValue(value) {
|
|
240
|
+
if (value === undefined) {
|
|
241
|
+
this.isEmptyObject = false;
|
|
242
|
+
}
|
|
243
|
+
else {
|
|
244
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
// api_token_name - computed: true, optional: false, required: false
|
|
248
|
+
get apiTokenName() {
|
|
249
|
+
return this.getStringAttribute('api_token_name');
|
|
250
|
+
}
|
|
251
|
+
// avatar_url - computed: true, optional: false, required: false
|
|
252
|
+
get avatarUrl() {
|
|
253
|
+
return this.getStringAttribute('avatar_url');
|
|
254
|
+
}
|
|
255
|
+
// full_name - computed: true, optional: false, required: false
|
|
256
|
+
get fullName() {
|
|
257
|
+
return this.getStringAttribute('full_name');
|
|
258
|
+
}
|
|
259
|
+
// id - computed: true, optional: false, required: false
|
|
260
|
+
get id() {
|
|
261
|
+
return this.getStringAttribute('id');
|
|
262
|
+
}
|
|
263
|
+
// subject_type - computed: true, optional: false, required: false
|
|
264
|
+
get subjectType() {
|
|
265
|
+
return this.getStringAttribute('subject_type');
|
|
266
|
+
}
|
|
267
|
+
// username - computed: true, optional: false, required: false
|
|
268
|
+
get username() {
|
|
269
|
+
return this.getStringAttribute('username');
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
export function dataAstroAlertNotificationChannelsToTerraform(struct) {
|
|
273
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
274
|
+
return struct;
|
|
275
|
+
}
|
|
276
|
+
if (cdktf.isComplexElement(struct)) {
|
|
277
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
278
|
+
}
|
|
279
|
+
return {
|
|
280
|
+
id: cdktf.stringToTerraform(struct.id),
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
export function dataAstroAlertNotificationChannelsToHclTerraform(struct) {
|
|
284
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
285
|
+
return struct;
|
|
286
|
+
}
|
|
287
|
+
if (cdktf.isComplexElement(struct)) {
|
|
288
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
289
|
+
}
|
|
290
|
+
const attrs = {
|
|
291
|
+
id: {
|
|
292
|
+
value: cdktf.stringToHclTerraform(struct.id),
|
|
293
|
+
isBlock: false,
|
|
294
|
+
type: "simple",
|
|
295
|
+
storageClassType: "string",
|
|
296
|
+
},
|
|
297
|
+
};
|
|
298
|
+
// remove undefined attributes
|
|
299
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
300
|
+
}
|
|
301
|
+
export class DataAstroAlertNotificationChannelsOutputReference extends cdktf.ComplexObject {
|
|
302
|
+
isEmptyObject = false;
|
|
303
|
+
/**
|
|
304
|
+
* @param terraformResource The parent resource
|
|
305
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
306
|
+
* @param complexObjectIndex the index of this item in the list
|
|
307
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
308
|
+
*/
|
|
309
|
+
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
|
|
310
|
+
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
|
|
311
|
+
}
|
|
312
|
+
get internalValue() {
|
|
313
|
+
let hasAnyValues = this.isEmptyObject;
|
|
314
|
+
const internalValueResult = {};
|
|
315
|
+
if (this._id !== undefined) {
|
|
316
|
+
hasAnyValues = true;
|
|
317
|
+
internalValueResult.id = this._id;
|
|
318
|
+
}
|
|
319
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
320
|
+
}
|
|
321
|
+
set internalValue(value) {
|
|
322
|
+
if (value === undefined) {
|
|
323
|
+
this.isEmptyObject = false;
|
|
324
|
+
this._id = undefined;
|
|
325
|
+
}
|
|
326
|
+
else {
|
|
327
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
328
|
+
this._id = value.id;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
// created_at - computed: true, optional: false, required: false
|
|
332
|
+
get createdAt() {
|
|
333
|
+
return this.getStringAttribute('created_at');
|
|
334
|
+
}
|
|
335
|
+
// created_by - computed: true, optional: false, required: false
|
|
336
|
+
_createdBy = new DataAstroAlertNotificationChannelsCreatedByOutputReference(this, "created_by");
|
|
337
|
+
get createdBy() {
|
|
338
|
+
return this._createdBy;
|
|
339
|
+
}
|
|
340
|
+
// definition - computed: true, optional: false, required: false
|
|
341
|
+
_definition = new DataAstroAlertNotificationChannelsDefinitionOutputReference(this, "definition");
|
|
342
|
+
get definition() {
|
|
343
|
+
return this._definition;
|
|
344
|
+
}
|
|
345
|
+
// deployment_id - computed: true, optional: false, required: false
|
|
346
|
+
get deploymentId() {
|
|
347
|
+
return this.getStringAttribute('deployment_id');
|
|
348
|
+
}
|
|
349
|
+
// entity_id - computed: true, optional: false, required: false
|
|
350
|
+
get entityId() {
|
|
351
|
+
return this.getStringAttribute('entity_id');
|
|
352
|
+
}
|
|
353
|
+
// entity_name - computed: true, optional: false, required: false
|
|
354
|
+
get entityName() {
|
|
355
|
+
return this.getStringAttribute('entity_name');
|
|
356
|
+
}
|
|
357
|
+
// entity_type - computed: true, optional: false, required: false
|
|
358
|
+
get entityType() {
|
|
359
|
+
return this.getStringAttribute('entity_type');
|
|
360
|
+
}
|
|
361
|
+
// id - computed: true, optional: false, required: true
|
|
362
|
+
_id;
|
|
363
|
+
get id() {
|
|
364
|
+
return this.getStringAttribute('id');
|
|
365
|
+
}
|
|
366
|
+
set id(value) {
|
|
367
|
+
this._id = value;
|
|
368
|
+
}
|
|
369
|
+
// Temporarily expose input value. Use with caution.
|
|
370
|
+
get idInput() {
|
|
371
|
+
return this._id;
|
|
372
|
+
}
|
|
373
|
+
// is_shared - computed: true, optional: false, required: false
|
|
374
|
+
get isShared() {
|
|
375
|
+
return this.getBooleanAttribute('is_shared');
|
|
376
|
+
}
|
|
377
|
+
// name - computed: true, optional: false, required: false
|
|
378
|
+
get name() {
|
|
379
|
+
return this.getStringAttribute('name');
|
|
380
|
+
}
|
|
381
|
+
// type - computed: true, optional: false, required: false
|
|
382
|
+
get type() {
|
|
383
|
+
return this.getStringAttribute('type');
|
|
384
|
+
}
|
|
385
|
+
// updated_at - computed: true, optional: false, required: false
|
|
386
|
+
get updatedAt() {
|
|
387
|
+
return this.getStringAttribute('updated_at');
|
|
388
|
+
}
|
|
389
|
+
// updated_by - computed: true, optional: false, required: false
|
|
390
|
+
_updatedBy = new DataAstroAlertNotificationChannelsUpdatedByOutputReference(this, "updated_by");
|
|
391
|
+
get updatedBy() {
|
|
392
|
+
return this._updatedBy;
|
|
393
|
+
}
|
|
394
|
+
// workspace_id - computed: true, optional: false, required: false
|
|
395
|
+
get workspaceId() {
|
|
396
|
+
return this.getStringAttribute('workspace_id');
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
export class DataAstroAlertNotificationChannelsList extends cdktf.ComplexList {
|
|
400
|
+
terraformResource;
|
|
401
|
+
terraformAttribute;
|
|
402
|
+
wrapsSet;
|
|
403
|
+
internalValue;
|
|
404
|
+
/**
|
|
405
|
+
* @param terraformResource The parent resource
|
|
406
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
407
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
408
|
+
*/
|
|
409
|
+
constructor(terraformResource, terraformAttribute, wrapsSet) {
|
|
410
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
411
|
+
this.terraformResource = terraformResource;
|
|
412
|
+
this.terraformAttribute = terraformAttribute;
|
|
413
|
+
this.wrapsSet = wrapsSet;
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* @param index the index of the item to return
|
|
417
|
+
*/
|
|
418
|
+
get(index) {
|
|
419
|
+
return new DataAstroAlertNotificationChannelsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
export function dataAstroAlertRulesPatternMatchesToTerraform(struct) {
|
|
423
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
424
|
+
return struct;
|
|
425
|
+
}
|
|
426
|
+
if (cdktf.isComplexElement(struct)) {
|
|
427
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
428
|
+
}
|
|
429
|
+
return {};
|
|
430
|
+
}
|
|
431
|
+
export function dataAstroAlertRulesPatternMatchesToHclTerraform(struct) {
|
|
432
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
433
|
+
return struct;
|
|
434
|
+
}
|
|
435
|
+
if (cdktf.isComplexElement(struct)) {
|
|
436
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
437
|
+
}
|
|
438
|
+
const attrs = {};
|
|
439
|
+
return attrs;
|
|
440
|
+
}
|
|
441
|
+
export class DataAstroAlertRulesPatternMatchesOutputReference extends cdktf.ComplexObject {
|
|
442
|
+
isEmptyObject = false;
|
|
443
|
+
/**
|
|
444
|
+
* @param terraformResource The parent resource
|
|
445
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
446
|
+
* @param complexObjectIndex the index of this item in the list
|
|
447
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
448
|
+
*/
|
|
449
|
+
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
|
|
450
|
+
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
|
|
451
|
+
}
|
|
452
|
+
get internalValue() {
|
|
453
|
+
let hasAnyValues = this.isEmptyObject;
|
|
454
|
+
const internalValueResult = {};
|
|
455
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
456
|
+
}
|
|
457
|
+
set internalValue(value) {
|
|
458
|
+
if (value === undefined) {
|
|
459
|
+
this.isEmptyObject = false;
|
|
460
|
+
}
|
|
461
|
+
else {
|
|
462
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
// entity_type - computed: true, optional: false, required: false
|
|
466
|
+
get entityType() {
|
|
467
|
+
return this.getStringAttribute('entity_type');
|
|
468
|
+
}
|
|
469
|
+
// operator_type - computed: true, optional: false, required: false
|
|
470
|
+
get operatorType() {
|
|
471
|
+
return this.getStringAttribute('operator_type');
|
|
472
|
+
}
|
|
473
|
+
// values - computed: true, optional: false, required: false
|
|
474
|
+
get values() {
|
|
475
|
+
return cdktf.Fn.tolist(this.getListAttribute('values'));
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
export class DataAstroAlertRulesPatternMatchesList extends cdktf.ComplexList {
|
|
479
|
+
terraformResource;
|
|
480
|
+
terraformAttribute;
|
|
481
|
+
wrapsSet;
|
|
482
|
+
/**
|
|
483
|
+
* @param terraformResource The parent resource
|
|
484
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
485
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
486
|
+
*/
|
|
487
|
+
constructor(terraformResource, terraformAttribute, wrapsSet) {
|
|
488
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
489
|
+
this.terraformResource = terraformResource;
|
|
490
|
+
this.terraformAttribute = terraformAttribute;
|
|
491
|
+
this.wrapsSet = wrapsSet;
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* @param index the index of the item to return
|
|
495
|
+
*/
|
|
496
|
+
get(index) {
|
|
497
|
+
return new DataAstroAlertRulesPatternMatchesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
export function dataAstroAlertRulesToTerraform(struct) {
|
|
501
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
502
|
+
return struct;
|
|
503
|
+
}
|
|
504
|
+
if (cdktf.isComplexElement(struct)) {
|
|
505
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
506
|
+
}
|
|
507
|
+
return {};
|
|
508
|
+
}
|
|
509
|
+
export function dataAstroAlertRulesToHclTerraform(struct) {
|
|
510
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
511
|
+
return struct;
|
|
512
|
+
}
|
|
513
|
+
if (cdktf.isComplexElement(struct)) {
|
|
514
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
515
|
+
}
|
|
516
|
+
const attrs = {};
|
|
517
|
+
return attrs;
|
|
518
|
+
}
|
|
519
|
+
export class DataAstroAlertRulesOutputReference extends cdktf.ComplexObject {
|
|
520
|
+
isEmptyObject = false;
|
|
521
|
+
/**
|
|
522
|
+
* @param terraformResource The parent resource
|
|
523
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
524
|
+
*/
|
|
525
|
+
constructor(terraformResource, terraformAttribute) {
|
|
526
|
+
super(terraformResource, terraformAttribute, false);
|
|
527
|
+
}
|
|
528
|
+
get internalValue() {
|
|
529
|
+
let hasAnyValues = this.isEmptyObject;
|
|
530
|
+
const internalValueResult = {};
|
|
531
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
532
|
+
}
|
|
533
|
+
set internalValue(value) {
|
|
534
|
+
if (value === undefined) {
|
|
535
|
+
this.isEmptyObject = false;
|
|
536
|
+
}
|
|
537
|
+
else {
|
|
538
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
// pattern_matches - computed: true, optional: false, required: false
|
|
542
|
+
_patternMatches = new DataAstroAlertRulesPatternMatchesList(this, "pattern_matches", true);
|
|
543
|
+
get patternMatches() {
|
|
544
|
+
return this._patternMatches;
|
|
545
|
+
}
|
|
546
|
+
// properties - computed: true, optional: false, required: false
|
|
547
|
+
_properties = new cdktf.StringMap(this, "properties");
|
|
548
|
+
get properties() {
|
|
549
|
+
return this._properties;
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
export function dataAstroAlertUpdatedByToTerraform(struct) {
|
|
553
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
554
|
+
return struct;
|
|
555
|
+
}
|
|
556
|
+
if (cdktf.isComplexElement(struct)) {
|
|
557
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
558
|
+
}
|
|
559
|
+
return {};
|
|
560
|
+
}
|
|
561
|
+
export function dataAstroAlertUpdatedByToHclTerraform(struct) {
|
|
562
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
563
|
+
return struct;
|
|
564
|
+
}
|
|
565
|
+
if (cdktf.isComplexElement(struct)) {
|
|
566
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
567
|
+
}
|
|
568
|
+
const attrs = {};
|
|
569
|
+
return attrs;
|
|
570
|
+
}
|
|
571
|
+
export class DataAstroAlertUpdatedByOutputReference extends cdktf.ComplexObject {
|
|
572
|
+
isEmptyObject = false;
|
|
573
|
+
/**
|
|
574
|
+
* @param terraformResource The parent resource
|
|
575
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
576
|
+
*/
|
|
577
|
+
constructor(terraformResource, terraformAttribute) {
|
|
578
|
+
super(terraformResource, terraformAttribute, false);
|
|
579
|
+
}
|
|
580
|
+
get internalValue() {
|
|
581
|
+
let hasAnyValues = this.isEmptyObject;
|
|
582
|
+
const internalValueResult = {};
|
|
583
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
584
|
+
}
|
|
585
|
+
set internalValue(value) {
|
|
586
|
+
if (value === undefined) {
|
|
587
|
+
this.isEmptyObject = false;
|
|
588
|
+
}
|
|
589
|
+
else {
|
|
590
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
// api_token_name - computed: true, optional: false, required: false
|
|
594
|
+
get apiTokenName() {
|
|
595
|
+
return this.getStringAttribute('api_token_name');
|
|
596
|
+
}
|
|
597
|
+
// avatar_url - computed: true, optional: false, required: false
|
|
598
|
+
get avatarUrl() {
|
|
599
|
+
return this.getStringAttribute('avatar_url');
|
|
600
|
+
}
|
|
601
|
+
// full_name - computed: true, optional: false, required: false
|
|
602
|
+
get fullName() {
|
|
603
|
+
return this.getStringAttribute('full_name');
|
|
604
|
+
}
|
|
605
|
+
// id - computed: true, optional: false, required: false
|
|
606
|
+
get id() {
|
|
607
|
+
return this.getStringAttribute('id');
|
|
608
|
+
}
|
|
609
|
+
// subject_type - computed: true, optional: false, required: false
|
|
610
|
+
get subjectType() {
|
|
611
|
+
return this.getStringAttribute('subject_type');
|
|
612
|
+
}
|
|
613
|
+
// username - computed: true, optional: false, required: false
|
|
614
|
+
get username() {
|
|
615
|
+
return this.getStringAttribute('username');
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
/**
|
|
619
|
+
* Represents a {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/alert astro_alert}
|
|
620
|
+
*/
|
|
621
|
+
export class DataAstroAlert extends cdktf.TerraformDataSource {
|
|
622
|
+
// =================
|
|
623
|
+
// STATIC PROPERTIES
|
|
624
|
+
// =================
|
|
625
|
+
static tfResourceType = "astro_alert";
|
|
626
|
+
// ==============
|
|
627
|
+
// STATIC Methods
|
|
628
|
+
// ==============
|
|
629
|
+
/**
|
|
630
|
+
* Generates CDKTF code for importing a DataAstroAlert resource upon running "cdktf plan <stack-name>"
|
|
631
|
+
* @param scope The scope in which to define this construct
|
|
632
|
+
* @param importToId The construct id used in the generated config for the DataAstroAlert to import
|
|
633
|
+
* @param importFromId The id of the existing DataAstroAlert that should be imported. Refer to the {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/alert#import import section} in the documentation of this resource for the id to use
|
|
634
|
+
* @param provider? Optional instance of the provider where the DataAstroAlert to import is found
|
|
635
|
+
*/
|
|
636
|
+
static generateConfigForImport(scope, importToId, importFromId, provider) {
|
|
637
|
+
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "astro_alert", importId: importFromId, provider });
|
|
638
|
+
}
|
|
639
|
+
// ===========
|
|
640
|
+
// INITIALIZER
|
|
641
|
+
// ===========
|
|
642
|
+
/**
|
|
643
|
+
* Create a new {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/alert astro_alert} Data Source
|
|
644
|
+
*
|
|
645
|
+
* @param scope The scope in which to define this construct
|
|
646
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
647
|
+
* @param options DataAstroAlertConfig
|
|
648
|
+
*/
|
|
649
|
+
constructor(scope, id, config) {
|
|
650
|
+
super(scope, id, {
|
|
651
|
+
terraformResourceType: 'astro_alert',
|
|
652
|
+
terraformGeneratorMetadata: {
|
|
653
|
+
providerName: 'astro',
|
|
654
|
+
providerVersion: '1.0.8',
|
|
655
|
+
providerVersionConstraint: '1.0.8'
|
|
656
|
+
},
|
|
657
|
+
provider: config.provider,
|
|
658
|
+
dependsOn: config.dependsOn,
|
|
659
|
+
count: config.count,
|
|
660
|
+
lifecycle: config.lifecycle,
|
|
661
|
+
provisioners: config.provisioners,
|
|
662
|
+
connection: config.connection,
|
|
663
|
+
forEach: config.forEach
|
|
664
|
+
});
|
|
665
|
+
this._id = config.id;
|
|
666
|
+
}
|
|
667
|
+
// ==========
|
|
668
|
+
// ATTRIBUTES
|
|
669
|
+
// ==========
|
|
670
|
+
// created_at - computed: true, optional: false, required: false
|
|
671
|
+
get createdAt() {
|
|
672
|
+
return this.getStringAttribute('created_at');
|
|
673
|
+
}
|
|
674
|
+
// created_by - computed: true, optional: false, required: false
|
|
675
|
+
_createdBy = new DataAstroAlertCreatedByOutputReference(this, "created_by");
|
|
676
|
+
get createdBy() {
|
|
677
|
+
return this._createdBy;
|
|
678
|
+
}
|
|
679
|
+
// deployment_id - computed: true, optional: false, required: false
|
|
680
|
+
get deploymentId() {
|
|
681
|
+
return this.getStringAttribute('deployment_id');
|
|
682
|
+
}
|
|
683
|
+
// entity_id - computed: true, optional: false, required: false
|
|
684
|
+
get entityId() {
|
|
685
|
+
return this.getStringAttribute('entity_id');
|
|
686
|
+
}
|
|
687
|
+
// entity_name - computed: true, optional: false, required: false
|
|
688
|
+
get entityName() {
|
|
689
|
+
return this.getStringAttribute('entity_name');
|
|
690
|
+
}
|
|
691
|
+
// entity_type - computed: true, optional: false, required: false
|
|
692
|
+
get entityType() {
|
|
693
|
+
return this.getStringAttribute('entity_type');
|
|
694
|
+
}
|
|
695
|
+
// id - computed: false, optional: false, required: true
|
|
696
|
+
_id;
|
|
697
|
+
get id() {
|
|
698
|
+
return this.getStringAttribute('id');
|
|
699
|
+
}
|
|
700
|
+
set id(value) {
|
|
701
|
+
this._id = value;
|
|
702
|
+
}
|
|
703
|
+
// Temporarily expose input value. Use with caution.
|
|
704
|
+
get idInput() {
|
|
705
|
+
return this._id;
|
|
706
|
+
}
|
|
707
|
+
// name - computed: true, optional: false, required: false
|
|
708
|
+
get name() {
|
|
709
|
+
return this.getStringAttribute('name');
|
|
710
|
+
}
|
|
711
|
+
// notification_channels - computed: true, optional: false, required: false
|
|
712
|
+
_notificationChannels = new DataAstroAlertNotificationChannelsList(this, "notification_channels", true);
|
|
713
|
+
get notificationChannels() {
|
|
714
|
+
return this._notificationChannels;
|
|
715
|
+
}
|
|
716
|
+
// rules - computed: true, optional: false, required: false
|
|
717
|
+
_rules = new DataAstroAlertRulesOutputReference(this, "rules");
|
|
718
|
+
get rules() {
|
|
719
|
+
return this._rules;
|
|
720
|
+
}
|
|
721
|
+
// severity - computed: true, optional: false, required: false
|
|
722
|
+
get severity() {
|
|
723
|
+
return this.getStringAttribute('severity');
|
|
724
|
+
}
|
|
725
|
+
// type - computed: true, optional: false, required: false
|
|
726
|
+
get type() {
|
|
727
|
+
return this.getStringAttribute('type');
|
|
728
|
+
}
|
|
729
|
+
// updated_at - computed: true, optional: false, required: false
|
|
730
|
+
get updatedAt() {
|
|
731
|
+
return this.getStringAttribute('updated_at');
|
|
732
|
+
}
|
|
733
|
+
// updated_by - computed: true, optional: false, required: false
|
|
734
|
+
_updatedBy = new DataAstroAlertUpdatedByOutputReference(this, "updated_by");
|
|
735
|
+
get updatedBy() {
|
|
736
|
+
return this._updatedBy;
|
|
737
|
+
}
|
|
738
|
+
// workspace_id - computed: true, optional: false, required: false
|
|
739
|
+
get workspaceId() {
|
|
740
|
+
return this.getStringAttribute('workspace_id');
|
|
741
|
+
}
|
|
742
|
+
// =========
|
|
743
|
+
// SYNTHESIS
|
|
744
|
+
// =========
|
|
745
|
+
synthesizeAttributes() {
|
|
746
|
+
return {
|
|
747
|
+
id: cdktf.stringToTerraform(this._id),
|
|
748
|
+
};
|
|
749
|
+
}
|
|
750
|
+
synthesizeHclAttributes() {
|
|
751
|
+
const attrs = {
|
|
752
|
+
id: {
|
|
753
|
+
value: cdktf.stringToHclTerraform(this._id),
|
|
754
|
+
isBlock: false,
|
|
755
|
+
type: "simple",
|
|
756
|
+
storageClassType: "string",
|
|
757
|
+
},
|
|
758
|
+
};
|
|
759
|
+
// remove undefined attributes
|
|
760
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
761
|
+
}
|
|
762
|
+
}
|