@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,600 @@
|
|
|
1
|
+
// https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/alerts
|
|
2
|
+
// generated from terraform resource schema
|
|
3
|
+
import * as cdktf from 'cdktf';
|
|
4
|
+
export function dataAstroAlertsAlertsCreatedByToTerraform(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 dataAstroAlertsAlertsCreatedByToHclTerraform(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 DataAstroAlertsAlertsCreatedByOutputReference 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 dataAstroAlertsAlertsRulesPatternMatchesToTerraform(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 dataAstroAlertsAlertsRulesPatternMatchesToHclTerraform(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 DataAstroAlertsAlertsRulesPatternMatchesOutputReference 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
|
+
* @param complexObjectIndex the index of this item in the list
|
|
95
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
96
|
+
*/
|
|
97
|
+
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
|
|
98
|
+
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
|
|
99
|
+
}
|
|
100
|
+
get internalValue() {
|
|
101
|
+
let hasAnyValues = this.isEmptyObject;
|
|
102
|
+
const internalValueResult = {};
|
|
103
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
104
|
+
}
|
|
105
|
+
set internalValue(value) {
|
|
106
|
+
if (value === undefined) {
|
|
107
|
+
this.isEmptyObject = false;
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
// entity_type - computed: true, optional: false, required: false
|
|
114
|
+
get entityType() {
|
|
115
|
+
return this.getStringAttribute('entity_type');
|
|
116
|
+
}
|
|
117
|
+
// operator_type - computed: true, optional: false, required: false
|
|
118
|
+
get operatorType() {
|
|
119
|
+
return this.getStringAttribute('operator_type');
|
|
120
|
+
}
|
|
121
|
+
// values - computed: true, optional: false, required: false
|
|
122
|
+
get values() {
|
|
123
|
+
return cdktf.Fn.tolist(this.getListAttribute('values'));
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
export class DataAstroAlertsAlertsRulesPatternMatchesList extends cdktf.ComplexList {
|
|
127
|
+
terraformResource;
|
|
128
|
+
terraformAttribute;
|
|
129
|
+
wrapsSet;
|
|
130
|
+
/**
|
|
131
|
+
* @param terraformResource The parent resource
|
|
132
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
133
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
134
|
+
*/
|
|
135
|
+
constructor(terraformResource, terraformAttribute, wrapsSet) {
|
|
136
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
137
|
+
this.terraformResource = terraformResource;
|
|
138
|
+
this.terraformAttribute = terraformAttribute;
|
|
139
|
+
this.wrapsSet = wrapsSet;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* @param index the index of the item to return
|
|
143
|
+
*/
|
|
144
|
+
get(index) {
|
|
145
|
+
return new DataAstroAlertsAlertsRulesPatternMatchesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
export function dataAstroAlertsAlertsRulesToTerraform(struct) {
|
|
149
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
150
|
+
return struct;
|
|
151
|
+
}
|
|
152
|
+
if (cdktf.isComplexElement(struct)) {
|
|
153
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
154
|
+
}
|
|
155
|
+
return {};
|
|
156
|
+
}
|
|
157
|
+
export function dataAstroAlertsAlertsRulesToHclTerraform(struct) {
|
|
158
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
159
|
+
return struct;
|
|
160
|
+
}
|
|
161
|
+
if (cdktf.isComplexElement(struct)) {
|
|
162
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
163
|
+
}
|
|
164
|
+
const attrs = {};
|
|
165
|
+
return attrs;
|
|
166
|
+
}
|
|
167
|
+
export class DataAstroAlertsAlertsRulesOutputReference extends cdktf.ComplexObject {
|
|
168
|
+
isEmptyObject = false;
|
|
169
|
+
/**
|
|
170
|
+
* @param terraformResource The parent resource
|
|
171
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
172
|
+
*/
|
|
173
|
+
constructor(terraformResource, terraformAttribute) {
|
|
174
|
+
super(terraformResource, terraformAttribute, false);
|
|
175
|
+
}
|
|
176
|
+
get internalValue() {
|
|
177
|
+
let hasAnyValues = this.isEmptyObject;
|
|
178
|
+
const internalValueResult = {};
|
|
179
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
180
|
+
}
|
|
181
|
+
set internalValue(value) {
|
|
182
|
+
if (value === undefined) {
|
|
183
|
+
this.isEmptyObject = false;
|
|
184
|
+
}
|
|
185
|
+
else {
|
|
186
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
// pattern_matches - computed: true, optional: false, required: false
|
|
190
|
+
_patternMatches = new DataAstroAlertsAlertsRulesPatternMatchesList(this, "pattern_matches", true);
|
|
191
|
+
get patternMatches() {
|
|
192
|
+
return this._patternMatches;
|
|
193
|
+
}
|
|
194
|
+
// properties - computed: true, optional: false, required: false
|
|
195
|
+
_properties = new cdktf.StringMap(this, "properties");
|
|
196
|
+
get properties() {
|
|
197
|
+
return this._properties;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
export function dataAstroAlertsAlertsUpdatedByToTerraform(struct) {
|
|
201
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
202
|
+
return struct;
|
|
203
|
+
}
|
|
204
|
+
if (cdktf.isComplexElement(struct)) {
|
|
205
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
206
|
+
}
|
|
207
|
+
return {};
|
|
208
|
+
}
|
|
209
|
+
export function dataAstroAlertsAlertsUpdatedByToHclTerraform(struct) {
|
|
210
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
211
|
+
return struct;
|
|
212
|
+
}
|
|
213
|
+
if (cdktf.isComplexElement(struct)) {
|
|
214
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
215
|
+
}
|
|
216
|
+
const attrs = {};
|
|
217
|
+
return attrs;
|
|
218
|
+
}
|
|
219
|
+
export class DataAstroAlertsAlertsUpdatedByOutputReference extends cdktf.ComplexObject {
|
|
220
|
+
isEmptyObject = false;
|
|
221
|
+
/**
|
|
222
|
+
* @param terraformResource The parent resource
|
|
223
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
224
|
+
*/
|
|
225
|
+
constructor(terraformResource, terraformAttribute) {
|
|
226
|
+
super(terraformResource, terraformAttribute, false);
|
|
227
|
+
}
|
|
228
|
+
get internalValue() {
|
|
229
|
+
let hasAnyValues = this.isEmptyObject;
|
|
230
|
+
const internalValueResult = {};
|
|
231
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
232
|
+
}
|
|
233
|
+
set internalValue(value) {
|
|
234
|
+
if (value === undefined) {
|
|
235
|
+
this.isEmptyObject = false;
|
|
236
|
+
}
|
|
237
|
+
else {
|
|
238
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
// api_token_name - computed: true, optional: false, required: false
|
|
242
|
+
get apiTokenName() {
|
|
243
|
+
return this.getStringAttribute('api_token_name');
|
|
244
|
+
}
|
|
245
|
+
// avatar_url - computed: true, optional: false, required: false
|
|
246
|
+
get avatarUrl() {
|
|
247
|
+
return this.getStringAttribute('avatar_url');
|
|
248
|
+
}
|
|
249
|
+
// full_name - computed: true, optional: false, required: false
|
|
250
|
+
get fullName() {
|
|
251
|
+
return this.getStringAttribute('full_name');
|
|
252
|
+
}
|
|
253
|
+
// id - computed: true, optional: false, required: false
|
|
254
|
+
get id() {
|
|
255
|
+
return this.getStringAttribute('id');
|
|
256
|
+
}
|
|
257
|
+
// subject_type - computed: true, optional: false, required: false
|
|
258
|
+
get subjectType() {
|
|
259
|
+
return this.getStringAttribute('subject_type');
|
|
260
|
+
}
|
|
261
|
+
// username - computed: true, optional: false, required: false
|
|
262
|
+
get username() {
|
|
263
|
+
return this.getStringAttribute('username');
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
export function dataAstroAlertsAlertsToTerraform(struct) {
|
|
267
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
268
|
+
return struct;
|
|
269
|
+
}
|
|
270
|
+
if (cdktf.isComplexElement(struct)) {
|
|
271
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
272
|
+
}
|
|
273
|
+
return {
|
|
274
|
+
id: cdktf.stringToTerraform(struct.id),
|
|
275
|
+
};
|
|
276
|
+
}
|
|
277
|
+
export function dataAstroAlertsAlertsToHclTerraform(struct) {
|
|
278
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
279
|
+
return struct;
|
|
280
|
+
}
|
|
281
|
+
if (cdktf.isComplexElement(struct)) {
|
|
282
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
283
|
+
}
|
|
284
|
+
const attrs = {
|
|
285
|
+
id: {
|
|
286
|
+
value: cdktf.stringToHclTerraform(struct.id),
|
|
287
|
+
isBlock: false,
|
|
288
|
+
type: "simple",
|
|
289
|
+
storageClassType: "string",
|
|
290
|
+
},
|
|
291
|
+
};
|
|
292
|
+
// remove undefined attributes
|
|
293
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
294
|
+
}
|
|
295
|
+
export class DataAstroAlertsAlertsOutputReference extends cdktf.ComplexObject {
|
|
296
|
+
isEmptyObject = false;
|
|
297
|
+
/**
|
|
298
|
+
* @param terraformResource The parent resource
|
|
299
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
300
|
+
* @param complexObjectIndex the index of this item in the list
|
|
301
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
302
|
+
*/
|
|
303
|
+
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
|
|
304
|
+
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
|
|
305
|
+
}
|
|
306
|
+
get internalValue() {
|
|
307
|
+
let hasAnyValues = this.isEmptyObject;
|
|
308
|
+
const internalValueResult = {};
|
|
309
|
+
if (this._id !== undefined) {
|
|
310
|
+
hasAnyValues = true;
|
|
311
|
+
internalValueResult.id = this._id;
|
|
312
|
+
}
|
|
313
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
314
|
+
}
|
|
315
|
+
set internalValue(value) {
|
|
316
|
+
if (value === undefined) {
|
|
317
|
+
this.isEmptyObject = false;
|
|
318
|
+
this._id = undefined;
|
|
319
|
+
}
|
|
320
|
+
else {
|
|
321
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
322
|
+
this._id = value.id;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
// created_at - computed: true, optional: false, required: false
|
|
326
|
+
get createdAt() {
|
|
327
|
+
return this.getStringAttribute('created_at');
|
|
328
|
+
}
|
|
329
|
+
// created_by - computed: true, optional: false, required: false
|
|
330
|
+
_createdBy = new DataAstroAlertsAlertsCreatedByOutputReference(this, "created_by");
|
|
331
|
+
get createdBy() {
|
|
332
|
+
return this._createdBy;
|
|
333
|
+
}
|
|
334
|
+
// deployment_id - computed: true, optional: false, required: false
|
|
335
|
+
get deploymentId() {
|
|
336
|
+
return this.getStringAttribute('deployment_id');
|
|
337
|
+
}
|
|
338
|
+
// entity_id - computed: true, optional: false, required: false
|
|
339
|
+
get entityId() {
|
|
340
|
+
return this.getStringAttribute('entity_id');
|
|
341
|
+
}
|
|
342
|
+
// entity_name - computed: true, optional: false, required: false
|
|
343
|
+
get entityName() {
|
|
344
|
+
return this.getStringAttribute('entity_name');
|
|
345
|
+
}
|
|
346
|
+
// entity_type - computed: true, optional: false, required: false
|
|
347
|
+
get entityType() {
|
|
348
|
+
return this.getStringAttribute('entity_type');
|
|
349
|
+
}
|
|
350
|
+
// id - computed: true, optional: false, required: true
|
|
351
|
+
_id;
|
|
352
|
+
get id() {
|
|
353
|
+
return this.getStringAttribute('id');
|
|
354
|
+
}
|
|
355
|
+
set id(value) {
|
|
356
|
+
this._id = value;
|
|
357
|
+
}
|
|
358
|
+
// Temporarily expose input value. Use with caution.
|
|
359
|
+
get idInput() {
|
|
360
|
+
return this._id;
|
|
361
|
+
}
|
|
362
|
+
// name - computed: true, optional: false, required: false
|
|
363
|
+
get name() {
|
|
364
|
+
return this.getStringAttribute('name');
|
|
365
|
+
}
|
|
366
|
+
// rules - computed: true, optional: false, required: false
|
|
367
|
+
_rules = new DataAstroAlertsAlertsRulesOutputReference(this, "rules");
|
|
368
|
+
get rules() {
|
|
369
|
+
return this._rules;
|
|
370
|
+
}
|
|
371
|
+
// severity - computed: true, optional: false, required: false
|
|
372
|
+
get severity() {
|
|
373
|
+
return this.getStringAttribute('severity');
|
|
374
|
+
}
|
|
375
|
+
// type - computed: true, optional: false, required: false
|
|
376
|
+
get type() {
|
|
377
|
+
return this.getStringAttribute('type');
|
|
378
|
+
}
|
|
379
|
+
// updated_at - computed: true, optional: false, required: false
|
|
380
|
+
get updatedAt() {
|
|
381
|
+
return this.getStringAttribute('updated_at');
|
|
382
|
+
}
|
|
383
|
+
// updated_by - computed: true, optional: false, required: false
|
|
384
|
+
_updatedBy = new DataAstroAlertsAlertsUpdatedByOutputReference(this, "updated_by");
|
|
385
|
+
get updatedBy() {
|
|
386
|
+
return this._updatedBy;
|
|
387
|
+
}
|
|
388
|
+
// workspace_id - computed: true, optional: false, required: false
|
|
389
|
+
get workspaceId() {
|
|
390
|
+
return this.getStringAttribute('workspace_id');
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
export class DataAstroAlertsAlertsList extends cdktf.ComplexList {
|
|
394
|
+
terraformResource;
|
|
395
|
+
terraformAttribute;
|
|
396
|
+
wrapsSet;
|
|
397
|
+
internalValue;
|
|
398
|
+
/**
|
|
399
|
+
* @param terraformResource The parent resource
|
|
400
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
401
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
402
|
+
*/
|
|
403
|
+
constructor(terraformResource, terraformAttribute, wrapsSet) {
|
|
404
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
405
|
+
this.terraformResource = terraformResource;
|
|
406
|
+
this.terraformAttribute = terraformAttribute;
|
|
407
|
+
this.wrapsSet = wrapsSet;
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* @param index the index of the item to return
|
|
411
|
+
*/
|
|
412
|
+
get(index) {
|
|
413
|
+
return new DataAstroAlertsAlertsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* Represents a {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/alerts astro_alerts}
|
|
418
|
+
*/
|
|
419
|
+
export class DataAstroAlerts extends cdktf.TerraformDataSource {
|
|
420
|
+
// =================
|
|
421
|
+
// STATIC PROPERTIES
|
|
422
|
+
// =================
|
|
423
|
+
static tfResourceType = "astro_alerts";
|
|
424
|
+
// ==============
|
|
425
|
+
// STATIC Methods
|
|
426
|
+
// ==============
|
|
427
|
+
/**
|
|
428
|
+
* Generates CDKTF code for importing a DataAstroAlerts resource upon running "cdktf plan <stack-name>"
|
|
429
|
+
* @param scope The scope in which to define this construct
|
|
430
|
+
* @param importToId The construct id used in the generated config for the DataAstroAlerts to import
|
|
431
|
+
* @param importFromId The id of the existing DataAstroAlerts that should be imported. Refer to the {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/alerts#import import section} in the documentation of this resource for the id to use
|
|
432
|
+
* @param provider? Optional instance of the provider where the DataAstroAlerts to import is found
|
|
433
|
+
*/
|
|
434
|
+
static generateConfigForImport(scope, importToId, importFromId, provider) {
|
|
435
|
+
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "astro_alerts", importId: importFromId, provider });
|
|
436
|
+
}
|
|
437
|
+
// ===========
|
|
438
|
+
// INITIALIZER
|
|
439
|
+
// ===========
|
|
440
|
+
/**
|
|
441
|
+
* Create a new {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/alerts astro_alerts} Data Source
|
|
442
|
+
*
|
|
443
|
+
* @param scope The scope in which to define this construct
|
|
444
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
445
|
+
* @param options DataAstroAlertsConfig = {}
|
|
446
|
+
*/
|
|
447
|
+
constructor(scope, id, config = {}) {
|
|
448
|
+
super(scope, id, {
|
|
449
|
+
terraformResourceType: 'astro_alerts',
|
|
450
|
+
terraformGeneratorMetadata: {
|
|
451
|
+
providerName: 'astro',
|
|
452
|
+
providerVersion: '1.0.8',
|
|
453
|
+
providerVersionConstraint: '1.0.8'
|
|
454
|
+
},
|
|
455
|
+
provider: config.provider,
|
|
456
|
+
dependsOn: config.dependsOn,
|
|
457
|
+
count: config.count,
|
|
458
|
+
lifecycle: config.lifecycle,
|
|
459
|
+
provisioners: config.provisioners,
|
|
460
|
+
connection: config.connection,
|
|
461
|
+
forEach: config.forEach
|
|
462
|
+
});
|
|
463
|
+
this._alertIds = config.alertIds;
|
|
464
|
+
this._alertTypes = config.alertTypes;
|
|
465
|
+
this._deploymentIds = config.deploymentIds;
|
|
466
|
+
this._entityType = config.entityType;
|
|
467
|
+
this._workspaceIds = config.workspaceIds;
|
|
468
|
+
}
|
|
469
|
+
// ==========
|
|
470
|
+
// ATTRIBUTES
|
|
471
|
+
// ==========
|
|
472
|
+
// alert_ids - computed: false, optional: true, required: false
|
|
473
|
+
_alertIds;
|
|
474
|
+
get alertIds() {
|
|
475
|
+
return cdktf.Fn.tolist(this.getListAttribute('alert_ids'));
|
|
476
|
+
}
|
|
477
|
+
set alertIds(value) {
|
|
478
|
+
this._alertIds = value;
|
|
479
|
+
}
|
|
480
|
+
resetAlertIds() {
|
|
481
|
+
this._alertIds = undefined;
|
|
482
|
+
}
|
|
483
|
+
// Temporarily expose input value. Use with caution.
|
|
484
|
+
get alertIdsInput() {
|
|
485
|
+
return this._alertIds;
|
|
486
|
+
}
|
|
487
|
+
// alert_types - computed: false, optional: true, required: false
|
|
488
|
+
_alertTypes;
|
|
489
|
+
get alertTypes() {
|
|
490
|
+
return cdktf.Fn.tolist(this.getListAttribute('alert_types'));
|
|
491
|
+
}
|
|
492
|
+
set alertTypes(value) {
|
|
493
|
+
this._alertTypes = value;
|
|
494
|
+
}
|
|
495
|
+
resetAlertTypes() {
|
|
496
|
+
this._alertTypes = undefined;
|
|
497
|
+
}
|
|
498
|
+
// Temporarily expose input value. Use with caution.
|
|
499
|
+
get alertTypesInput() {
|
|
500
|
+
return this._alertTypes;
|
|
501
|
+
}
|
|
502
|
+
// alerts - computed: true, optional: false, required: false
|
|
503
|
+
_alerts = new DataAstroAlertsAlertsList(this, "alerts", true);
|
|
504
|
+
get alerts() {
|
|
505
|
+
return this._alerts;
|
|
506
|
+
}
|
|
507
|
+
// deployment_ids - computed: false, optional: true, required: false
|
|
508
|
+
_deploymentIds;
|
|
509
|
+
get deploymentIds() {
|
|
510
|
+
return cdktf.Fn.tolist(this.getListAttribute('deployment_ids'));
|
|
511
|
+
}
|
|
512
|
+
set deploymentIds(value) {
|
|
513
|
+
this._deploymentIds = value;
|
|
514
|
+
}
|
|
515
|
+
resetDeploymentIds() {
|
|
516
|
+
this._deploymentIds = undefined;
|
|
517
|
+
}
|
|
518
|
+
// Temporarily expose input value. Use with caution.
|
|
519
|
+
get deploymentIdsInput() {
|
|
520
|
+
return this._deploymentIds;
|
|
521
|
+
}
|
|
522
|
+
// entity_type - computed: false, optional: true, required: false
|
|
523
|
+
_entityType;
|
|
524
|
+
get entityType() {
|
|
525
|
+
return this.getStringAttribute('entity_type');
|
|
526
|
+
}
|
|
527
|
+
set entityType(value) {
|
|
528
|
+
this._entityType = value;
|
|
529
|
+
}
|
|
530
|
+
resetEntityType() {
|
|
531
|
+
this._entityType = undefined;
|
|
532
|
+
}
|
|
533
|
+
// Temporarily expose input value. Use with caution.
|
|
534
|
+
get entityTypeInput() {
|
|
535
|
+
return this._entityType;
|
|
536
|
+
}
|
|
537
|
+
// workspace_ids - computed: false, optional: true, required: false
|
|
538
|
+
_workspaceIds;
|
|
539
|
+
get workspaceIds() {
|
|
540
|
+
return cdktf.Fn.tolist(this.getListAttribute('workspace_ids'));
|
|
541
|
+
}
|
|
542
|
+
set workspaceIds(value) {
|
|
543
|
+
this._workspaceIds = value;
|
|
544
|
+
}
|
|
545
|
+
resetWorkspaceIds() {
|
|
546
|
+
this._workspaceIds = undefined;
|
|
547
|
+
}
|
|
548
|
+
// Temporarily expose input value. Use with caution.
|
|
549
|
+
get workspaceIdsInput() {
|
|
550
|
+
return this._workspaceIds;
|
|
551
|
+
}
|
|
552
|
+
// =========
|
|
553
|
+
// SYNTHESIS
|
|
554
|
+
// =========
|
|
555
|
+
synthesizeAttributes() {
|
|
556
|
+
return {
|
|
557
|
+
alert_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(this._alertIds),
|
|
558
|
+
alert_types: cdktf.listMapper(cdktf.stringToTerraform, false)(this._alertTypes),
|
|
559
|
+
deployment_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(this._deploymentIds),
|
|
560
|
+
entity_type: cdktf.stringToTerraform(this._entityType),
|
|
561
|
+
workspace_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(this._workspaceIds),
|
|
562
|
+
};
|
|
563
|
+
}
|
|
564
|
+
synthesizeHclAttributes() {
|
|
565
|
+
const attrs = {
|
|
566
|
+
alert_ids: {
|
|
567
|
+
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._alertIds),
|
|
568
|
+
isBlock: false,
|
|
569
|
+
type: "set",
|
|
570
|
+
storageClassType: "stringList",
|
|
571
|
+
},
|
|
572
|
+
alert_types: {
|
|
573
|
+
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._alertTypes),
|
|
574
|
+
isBlock: false,
|
|
575
|
+
type: "set",
|
|
576
|
+
storageClassType: "stringList",
|
|
577
|
+
},
|
|
578
|
+
deployment_ids: {
|
|
579
|
+
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._deploymentIds),
|
|
580
|
+
isBlock: false,
|
|
581
|
+
type: "set",
|
|
582
|
+
storageClassType: "stringList",
|
|
583
|
+
},
|
|
584
|
+
entity_type: {
|
|
585
|
+
value: cdktf.stringToHclTerraform(this._entityType),
|
|
586
|
+
isBlock: false,
|
|
587
|
+
type: "simple",
|
|
588
|
+
storageClassType: "string",
|
|
589
|
+
},
|
|
590
|
+
workspace_ids: {
|
|
591
|
+
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._workspaceIds),
|
|
592
|
+
isBlock: false,
|
|
593
|
+
type: "set",
|
|
594
|
+
storageClassType: "stringList",
|
|
595
|
+
},
|
|
596
|
+
};
|
|
597
|
+
// remove undefined attributes
|
|
598
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
599
|
+
}
|
|
600
|
+
}
|