@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,507 @@
|
|
|
1
|
+
// https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/team
|
|
2
|
+
// generated from terraform resource schema
|
|
3
|
+
import * as cdktf from 'cdktf';
|
|
4
|
+
export function dataAstroTeamCreatedByToTerraform(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 dataAstroTeamCreatedByToHclTerraform(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 DataAstroTeamCreatedByOutputReference 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 dataAstroTeamDeploymentRolesToTerraform(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 dataAstroTeamDeploymentRolesToHclTerraform(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 DataAstroTeamDeploymentRolesOutputReference 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 DataAstroTeamDeploymentRolesList 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 DataAstroTeamDeploymentRolesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
export function dataAstroTeamTeamMembersToTerraform(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 dataAstroTeamTeamMembersToHclTerraform(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 DataAstroTeamTeamMembersOutputReference 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 DataAstroTeamTeamMembersList 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 DataAstroTeamTeamMembersOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
export function dataAstroTeamUpdatedByToTerraform(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 dataAstroTeamUpdatedByToHclTerraform(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 DataAstroTeamUpdatedByOutputReference 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 dataAstroTeamWorkspaceRolesToTerraform(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 dataAstroTeamWorkspaceRolesToHclTerraform(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 DataAstroTeamWorkspaceRolesOutputReference 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 DataAstroTeamWorkspaceRolesList 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 DataAstroTeamWorkspaceRolesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* Represents a {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/team astro_team}
|
|
372
|
+
*/
|
|
373
|
+
export class DataAstroTeam extends cdktf.TerraformDataSource {
|
|
374
|
+
// =================
|
|
375
|
+
// STATIC PROPERTIES
|
|
376
|
+
// =================
|
|
377
|
+
static tfResourceType = "astro_team";
|
|
378
|
+
// ==============
|
|
379
|
+
// STATIC Methods
|
|
380
|
+
// ==============
|
|
381
|
+
/**
|
|
382
|
+
* Generates CDKTF code for importing a DataAstroTeam resource upon running "cdktf plan <stack-name>"
|
|
383
|
+
* @param scope The scope in which to define this construct
|
|
384
|
+
* @param importToId The construct id used in the generated config for the DataAstroTeam to import
|
|
385
|
+
* @param importFromId The id of the existing DataAstroTeam that should be imported. Refer to the {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/team#import import section} in the documentation of this resource for the id to use
|
|
386
|
+
* @param provider? Optional instance of the provider where the DataAstroTeam to import is found
|
|
387
|
+
*/
|
|
388
|
+
static generateConfigForImport(scope, importToId, importFromId, provider) {
|
|
389
|
+
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "astro_team", importId: importFromId, provider });
|
|
390
|
+
}
|
|
391
|
+
// ===========
|
|
392
|
+
// INITIALIZER
|
|
393
|
+
// ===========
|
|
394
|
+
/**
|
|
395
|
+
* Create a new {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/team astro_team} Data Source
|
|
396
|
+
*
|
|
397
|
+
* @param scope The scope in which to define this construct
|
|
398
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
399
|
+
* @param options DataAstroTeamConfig
|
|
400
|
+
*/
|
|
401
|
+
constructor(scope, id, config) {
|
|
402
|
+
super(scope, id, {
|
|
403
|
+
terraformResourceType: 'astro_team',
|
|
404
|
+
terraformGeneratorMetadata: {
|
|
405
|
+
providerName: 'astro',
|
|
406
|
+
providerVersion: '1.0.8',
|
|
407
|
+
providerVersionConstraint: '1.0.8'
|
|
408
|
+
},
|
|
409
|
+
provider: config.provider,
|
|
410
|
+
dependsOn: config.dependsOn,
|
|
411
|
+
count: config.count,
|
|
412
|
+
lifecycle: config.lifecycle,
|
|
413
|
+
provisioners: config.provisioners,
|
|
414
|
+
connection: config.connection,
|
|
415
|
+
forEach: config.forEach
|
|
416
|
+
});
|
|
417
|
+
this._id = config.id;
|
|
418
|
+
}
|
|
419
|
+
// ==========
|
|
420
|
+
// ATTRIBUTES
|
|
421
|
+
// ==========
|
|
422
|
+
// created_at - computed: true, optional: false, required: false
|
|
423
|
+
get createdAt() {
|
|
424
|
+
return this.getStringAttribute('created_at');
|
|
425
|
+
}
|
|
426
|
+
// created_by - computed: true, optional: false, required: false
|
|
427
|
+
_createdBy = new DataAstroTeamCreatedByOutputReference(this, "created_by");
|
|
428
|
+
get createdBy() {
|
|
429
|
+
return this._createdBy;
|
|
430
|
+
}
|
|
431
|
+
// deployment_roles - computed: true, optional: false, required: false
|
|
432
|
+
_deploymentRoles = new DataAstroTeamDeploymentRolesList(this, "deployment_roles", true);
|
|
433
|
+
get deploymentRoles() {
|
|
434
|
+
return this._deploymentRoles;
|
|
435
|
+
}
|
|
436
|
+
// description - computed: true, optional: false, required: false
|
|
437
|
+
get description() {
|
|
438
|
+
return this.getStringAttribute('description');
|
|
439
|
+
}
|
|
440
|
+
// id - computed: false, optional: false, required: true
|
|
441
|
+
_id;
|
|
442
|
+
get id() {
|
|
443
|
+
return this.getStringAttribute('id');
|
|
444
|
+
}
|
|
445
|
+
set id(value) {
|
|
446
|
+
this._id = value;
|
|
447
|
+
}
|
|
448
|
+
// Temporarily expose input value. Use with caution.
|
|
449
|
+
get idInput() {
|
|
450
|
+
return this._id;
|
|
451
|
+
}
|
|
452
|
+
// is_idp_managed - computed: true, optional: false, required: false
|
|
453
|
+
get isIdpManaged() {
|
|
454
|
+
return this.getBooleanAttribute('is_idp_managed');
|
|
455
|
+
}
|
|
456
|
+
// name - computed: true, optional: false, required: false
|
|
457
|
+
get name() {
|
|
458
|
+
return this.getStringAttribute('name');
|
|
459
|
+
}
|
|
460
|
+
// organization_role - computed: true, optional: false, required: false
|
|
461
|
+
get organizationRole() {
|
|
462
|
+
return this.getStringAttribute('organization_role');
|
|
463
|
+
}
|
|
464
|
+
// roles_count - computed: true, optional: false, required: false
|
|
465
|
+
get rolesCount() {
|
|
466
|
+
return this.getNumberAttribute('roles_count');
|
|
467
|
+
}
|
|
468
|
+
// team_members - computed: true, optional: false, required: false
|
|
469
|
+
_teamMembers = new DataAstroTeamTeamMembersList(this, "team_members", true);
|
|
470
|
+
get teamMembers() {
|
|
471
|
+
return this._teamMembers;
|
|
472
|
+
}
|
|
473
|
+
// updated_at - computed: true, optional: false, required: false
|
|
474
|
+
get updatedAt() {
|
|
475
|
+
return this.getStringAttribute('updated_at');
|
|
476
|
+
}
|
|
477
|
+
// updated_by - computed: true, optional: false, required: false
|
|
478
|
+
_updatedBy = new DataAstroTeamUpdatedByOutputReference(this, "updated_by");
|
|
479
|
+
get updatedBy() {
|
|
480
|
+
return this._updatedBy;
|
|
481
|
+
}
|
|
482
|
+
// workspace_roles - computed: true, optional: false, required: false
|
|
483
|
+
_workspaceRoles = new DataAstroTeamWorkspaceRolesList(this, "workspace_roles", true);
|
|
484
|
+
get workspaceRoles() {
|
|
485
|
+
return this._workspaceRoles;
|
|
486
|
+
}
|
|
487
|
+
// =========
|
|
488
|
+
// SYNTHESIS
|
|
489
|
+
// =========
|
|
490
|
+
synthesizeAttributes() {
|
|
491
|
+
return {
|
|
492
|
+
id: cdktf.stringToTerraform(this._id),
|
|
493
|
+
};
|
|
494
|
+
}
|
|
495
|
+
synthesizeHclAttributes() {
|
|
496
|
+
const attrs = {
|
|
497
|
+
id: {
|
|
498
|
+
value: cdktf.stringToHclTerraform(this._id),
|
|
499
|
+
isBlock: false,
|
|
500
|
+
type: "simple",
|
|
501
|
+
storageClassType: "string",
|
|
502
|
+
},
|
|
503
|
+
};
|
|
504
|
+
// remove undefined attributes
|
|
505
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
506
|
+
}
|
|
507
|
+
}
|