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