@cdktf-providers/astronomer-astro 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/LICENSE +355 -0
  2. package/README.md +19 -0
  3. package/dist/alert/index.d.ts +566 -0
  4. package/dist/alert/index.js +1489 -0
  5. package/dist/api-token/index.d.ts +199 -0
  6. package/dist/api-token/index.js +503 -0
  7. package/dist/cluster/index.d.ts +305 -0
  8. package/dist/cluster/index.js +755 -0
  9. package/dist/data-astro-alert/index.d.ts +277 -0
  10. package/dist/data-astro-alert/index.js +762 -0
  11. package/dist/data-astro-alerts/index.d.ts +232 -0
  12. package/dist/data-astro-alerts/index.js +600 -0
  13. package/dist/data-astro-api-token/index.d.ts +135 -0
  14. package/dist/data-astro-api-token/index.js +353 -0
  15. package/dist/data-astro-api-tokens/index.d.ts +196 -0
  16. package/dist/data-astro-api-tokens/index.js +502 -0
  17. package/dist/data-astro-cluster/index.d.ts +211 -0
  18. package/dist/data-astro-cluster/index.js +535 -0
  19. package/dist/data-astro-cluster-options/index.d.ts +255 -0
  20. package/dist/data-astro-cluster-options/index.js +640 -0
  21. package/dist/data-astro-clusters/index.d.ts +263 -0
  22. package/dist/data-astro-clusters/index.js +661 -0
  23. package/dist/data-astro-deployment/index.d.ts +355 -0
  24. package/dist/data-astro-deployment/index.js +1009 -0
  25. package/dist/data-astro-deployment-options/index.d.ts +475 -0
  26. package/dist/data-astro-deployment-options/index.js +1274 -0
  27. package/dist/data-astro-deployments/index.d.ts +416 -0
  28. package/dist/data-astro-deployments/index.js +1158 -0
  29. package/dist/data-astro-notification-channel/index.d.ts +122 -0
  30. package/dist/data-astro-notification-channel/index.js +345 -0
  31. package/dist/data-astro-notification-channels/index.d.ts +201 -0
  32. package/dist/data-astro-notification-channels/index.js +540 -0
  33. package/dist/data-astro-organization/index.d.ts +87 -0
  34. package/dist/data-astro-organization/index.js +251 -0
  35. package/dist/data-astro-team/index.d.ts +204 -0
  36. package/dist/data-astro-team/index.js +507 -0
  37. package/dist/data-astro-teams/index.d.ts +247 -0
  38. package/dist/data-astro-teams/index.js +610 -0
  39. package/dist/data-astro-user/index.d.ts +122 -0
  40. package/dist/data-astro-user/index.js +274 -0
  41. package/dist/data-astro-users/index.d.ts +174 -0
  42. package/dist/data-astro-users/index.js +400 -0
  43. package/dist/data-astro-workspace/index.d.ts +94 -0
  44. package/dist/data-astro-workspace/index.js +250 -0
  45. package/dist/data-astro-workspaces/index.d.ts +146 -0
  46. package/dist/data-astro-workspaces/index.js +376 -0
  47. package/dist/deployment/index.d.ts +813 -0
  48. package/dist/deployment/index.js +2083 -0
  49. package/dist/hybrid-cluster-workspace-authorization/index.d.ts +53 -0
  50. package/dist/hybrid-cluster-workspace-authorization/index.js +111 -0
  51. package/dist/index.d.ts +31 -0
  52. package/dist/index.js +32 -0
  53. package/dist/lazy-index.d.ts +0 -0
  54. package/dist/lazy-index.js +32 -0
  55. package/dist/notification-channel/index.d.ts +235 -0
  56. package/dist/notification-channel/index.js +608 -0
  57. package/dist/provider/index.d.ts +75 -0
  58. package/dist/provider/index.js +151 -0
  59. package/dist/team/index.d.ts +251 -0
  60. package/dist/team/index.js +622 -0
  61. package/dist/team-roles/index.d.ts +180 -0
  62. package/dist/team-roles/index.js +414 -0
  63. package/dist/user-invite/index.d.ts +99 -0
  64. package/dist/user-invite/index.js +262 -0
  65. package/dist/user-roles/index.d.ts +180 -0
  66. package/dist/user-roles/index.js +414 -0
  67. package/dist/workspace/index.d.ts +109 -0
  68. package/dist/workspace/index.js +282 -0
  69. package/package.json +51 -0
@@ -0,0 +1,622 @@
1
+ // https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/team
2
+ // generated from terraform resource schema
3
+ import * as cdktf from 'cdktf';
4
+ export function teamCreatedByToTerraform(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 teamCreatedByToHclTerraform(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 TeamCreatedByOutputReference 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 teamDeploymentRolesToTerraform(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
+ deployment_id: cdktf.stringToTerraform(struct.deploymentId),
79
+ role: cdktf.stringToTerraform(struct.role),
80
+ };
81
+ }
82
+ export function teamDeploymentRolesToHclTerraform(struct) {
83
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
84
+ return struct;
85
+ }
86
+ if (cdktf.isComplexElement(struct)) {
87
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
88
+ }
89
+ const attrs = {
90
+ deployment_id: {
91
+ value: cdktf.stringToHclTerraform(struct.deploymentId),
92
+ isBlock: false,
93
+ type: "simple",
94
+ storageClassType: "string",
95
+ },
96
+ role: {
97
+ value: cdktf.stringToHclTerraform(struct.role),
98
+ isBlock: false,
99
+ type: "simple",
100
+ storageClassType: "string",
101
+ },
102
+ };
103
+ // remove undefined attributes
104
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
105
+ }
106
+ export class TeamDeploymentRolesOutputReference extends cdktf.ComplexObject {
107
+ isEmptyObject = false;
108
+ resolvableValue;
109
+ /**
110
+ * @param terraformResource The parent resource
111
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
112
+ * @param complexObjectIndex the index of this item in the list
113
+ * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
114
+ */
115
+ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
116
+ super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
117
+ }
118
+ get internalValue() {
119
+ if (this.resolvableValue) {
120
+ return this.resolvableValue;
121
+ }
122
+ let hasAnyValues = this.isEmptyObject;
123
+ const internalValueResult = {};
124
+ if (this._deploymentId !== undefined) {
125
+ hasAnyValues = true;
126
+ internalValueResult.deploymentId = this._deploymentId;
127
+ }
128
+ if (this._role !== undefined) {
129
+ hasAnyValues = true;
130
+ internalValueResult.role = this._role;
131
+ }
132
+ return hasAnyValues ? internalValueResult : undefined;
133
+ }
134
+ set internalValue(value) {
135
+ if (value === undefined) {
136
+ this.isEmptyObject = false;
137
+ this.resolvableValue = undefined;
138
+ this._deploymentId = undefined;
139
+ this._role = undefined;
140
+ }
141
+ else if (cdktf.Tokenization.isResolvable(value)) {
142
+ this.isEmptyObject = false;
143
+ this.resolvableValue = value;
144
+ }
145
+ else {
146
+ this.isEmptyObject = Object.keys(value).length === 0;
147
+ this.resolvableValue = undefined;
148
+ this._deploymentId = value.deploymentId;
149
+ this._role = value.role;
150
+ }
151
+ }
152
+ // deployment_id - computed: false, optional: false, required: true
153
+ _deploymentId;
154
+ get deploymentId() {
155
+ return this.getStringAttribute('deployment_id');
156
+ }
157
+ set deploymentId(value) {
158
+ this._deploymentId = value;
159
+ }
160
+ // Temporarily expose input value. Use with caution.
161
+ get deploymentIdInput() {
162
+ return this._deploymentId;
163
+ }
164
+ // role - computed: false, optional: false, required: true
165
+ _role;
166
+ get role() {
167
+ return this.getStringAttribute('role');
168
+ }
169
+ set role(value) {
170
+ this._role = value;
171
+ }
172
+ // Temporarily expose input value. Use with caution.
173
+ get roleInput() {
174
+ return this._role;
175
+ }
176
+ }
177
+ export class TeamDeploymentRolesList extends cdktf.ComplexList {
178
+ terraformResource;
179
+ terraformAttribute;
180
+ wrapsSet;
181
+ internalValue;
182
+ /**
183
+ * @param terraformResource The parent resource
184
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
185
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
186
+ */
187
+ constructor(terraformResource, terraformAttribute, wrapsSet) {
188
+ super(terraformResource, terraformAttribute, wrapsSet);
189
+ this.terraformResource = terraformResource;
190
+ this.terraformAttribute = terraformAttribute;
191
+ this.wrapsSet = wrapsSet;
192
+ }
193
+ /**
194
+ * @param index the index of the item to return
195
+ */
196
+ get(index) {
197
+ return new TeamDeploymentRolesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
198
+ }
199
+ }
200
+ export function teamUpdatedByToTerraform(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 teamUpdatedByToHclTerraform(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 TeamUpdatedByOutputReference 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 teamWorkspaceRolesToTerraform(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
+ role: cdktf.stringToTerraform(struct.role),
275
+ workspace_id: cdktf.stringToTerraform(struct.workspaceId),
276
+ };
277
+ }
278
+ export function teamWorkspaceRolesToHclTerraform(struct) {
279
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
280
+ return struct;
281
+ }
282
+ if (cdktf.isComplexElement(struct)) {
283
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
284
+ }
285
+ const attrs = {
286
+ role: {
287
+ value: cdktf.stringToHclTerraform(struct.role),
288
+ isBlock: false,
289
+ type: "simple",
290
+ storageClassType: "string",
291
+ },
292
+ workspace_id: {
293
+ value: cdktf.stringToHclTerraform(struct.workspaceId),
294
+ isBlock: false,
295
+ type: "simple",
296
+ storageClassType: "string",
297
+ },
298
+ };
299
+ // remove undefined attributes
300
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
301
+ }
302
+ export class TeamWorkspaceRolesOutputReference extends cdktf.ComplexObject {
303
+ isEmptyObject = false;
304
+ resolvableValue;
305
+ /**
306
+ * @param terraformResource The parent resource
307
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
308
+ * @param complexObjectIndex the index of this item in the list
309
+ * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
310
+ */
311
+ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
312
+ super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
313
+ }
314
+ get internalValue() {
315
+ if (this.resolvableValue) {
316
+ return this.resolvableValue;
317
+ }
318
+ let hasAnyValues = this.isEmptyObject;
319
+ const internalValueResult = {};
320
+ if (this._role !== undefined) {
321
+ hasAnyValues = true;
322
+ internalValueResult.role = this._role;
323
+ }
324
+ if (this._workspaceId !== undefined) {
325
+ hasAnyValues = true;
326
+ internalValueResult.workspaceId = this._workspaceId;
327
+ }
328
+ return hasAnyValues ? internalValueResult : undefined;
329
+ }
330
+ set internalValue(value) {
331
+ if (value === undefined) {
332
+ this.isEmptyObject = false;
333
+ this.resolvableValue = undefined;
334
+ this._role = undefined;
335
+ this._workspaceId = undefined;
336
+ }
337
+ else if (cdktf.Tokenization.isResolvable(value)) {
338
+ this.isEmptyObject = false;
339
+ this.resolvableValue = value;
340
+ }
341
+ else {
342
+ this.isEmptyObject = Object.keys(value).length === 0;
343
+ this.resolvableValue = undefined;
344
+ this._role = value.role;
345
+ this._workspaceId = value.workspaceId;
346
+ }
347
+ }
348
+ // role - computed: false, optional: false, required: true
349
+ _role;
350
+ get role() {
351
+ return this.getStringAttribute('role');
352
+ }
353
+ set role(value) {
354
+ this._role = value;
355
+ }
356
+ // Temporarily expose input value. Use with caution.
357
+ get roleInput() {
358
+ return this._role;
359
+ }
360
+ // workspace_id - computed: false, optional: false, required: true
361
+ _workspaceId;
362
+ get workspaceId() {
363
+ return this.getStringAttribute('workspace_id');
364
+ }
365
+ set workspaceId(value) {
366
+ this._workspaceId = value;
367
+ }
368
+ // Temporarily expose input value. Use with caution.
369
+ get workspaceIdInput() {
370
+ return this._workspaceId;
371
+ }
372
+ }
373
+ export class TeamWorkspaceRolesList extends cdktf.ComplexList {
374
+ terraformResource;
375
+ terraformAttribute;
376
+ wrapsSet;
377
+ internalValue;
378
+ /**
379
+ * @param terraformResource The parent resource
380
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
381
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
382
+ */
383
+ constructor(terraformResource, terraformAttribute, wrapsSet) {
384
+ super(terraformResource, terraformAttribute, wrapsSet);
385
+ this.terraformResource = terraformResource;
386
+ this.terraformAttribute = terraformAttribute;
387
+ this.wrapsSet = wrapsSet;
388
+ }
389
+ /**
390
+ * @param index the index of the item to return
391
+ */
392
+ get(index) {
393
+ return new TeamWorkspaceRolesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
394
+ }
395
+ }
396
+ /**
397
+ * Represents a {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/team astro_team}
398
+ */
399
+ export class Team extends cdktf.TerraformResource {
400
+ // =================
401
+ // STATIC PROPERTIES
402
+ // =================
403
+ static tfResourceType = "astro_team";
404
+ // ==============
405
+ // STATIC Methods
406
+ // ==============
407
+ /**
408
+ * Generates CDKTF code for importing a Team resource upon running "cdktf plan <stack-name>"
409
+ * @param scope The scope in which to define this construct
410
+ * @param importToId The construct id used in the generated config for the Team to import
411
+ * @param importFromId The id of the existing Team that should be imported. Refer to the {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/team#import import section} in the documentation of this resource for the id to use
412
+ * @param provider? Optional instance of the provider where the Team to import is found
413
+ */
414
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
415
+ return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "astro_team", importId: importFromId, provider });
416
+ }
417
+ // ===========
418
+ // INITIALIZER
419
+ // ===========
420
+ /**
421
+ * Create a new {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/resources/team astro_team} Resource
422
+ *
423
+ * @param scope The scope in which to define this construct
424
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
425
+ * @param options TeamConfig
426
+ */
427
+ constructor(scope, id, config) {
428
+ super(scope, id, {
429
+ terraformResourceType: 'astro_team',
430
+ terraformGeneratorMetadata: {
431
+ providerName: 'astro',
432
+ providerVersion: '1.0.8',
433
+ providerVersionConstraint: '1.0.8'
434
+ },
435
+ provider: config.provider,
436
+ dependsOn: config.dependsOn,
437
+ count: config.count,
438
+ lifecycle: config.lifecycle,
439
+ provisioners: config.provisioners,
440
+ connection: config.connection,
441
+ forEach: config.forEach
442
+ });
443
+ this._deploymentRoles.internalValue = config.deploymentRoles;
444
+ this._description = config.description;
445
+ this._memberIds = config.memberIds;
446
+ this._name = config.name;
447
+ this._organizationRole = config.organizationRole;
448
+ this._workspaceRoles.internalValue = config.workspaceRoles;
449
+ }
450
+ // ==========
451
+ // ATTRIBUTES
452
+ // ==========
453
+ // created_at - computed: true, optional: false, required: false
454
+ get createdAt() {
455
+ return this.getStringAttribute('created_at');
456
+ }
457
+ // created_by - computed: true, optional: false, required: false
458
+ _createdBy = new TeamCreatedByOutputReference(this, "created_by");
459
+ get createdBy() {
460
+ return this._createdBy;
461
+ }
462
+ // deployment_roles - computed: false, optional: true, required: false
463
+ _deploymentRoles = new TeamDeploymentRolesList(this, "deployment_roles", true);
464
+ get deploymentRoles() {
465
+ return this._deploymentRoles;
466
+ }
467
+ putDeploymentRoles(value) {
468
+ this._deploymentRoles.internalValue = value;
469
+ }
470
+ resetDeploymentRoles() {
471
+ this._deploymentRoles.internalValue = undefined;
472
+ }
473
+ // Temporarily expose input value. Use with caution.
474
+ get deploymentRolesInput() {
475
+ return this._deploymentRoles.internalValue;
476
+ }
477
+ // description - computed: false, optional: true, required: false
478
+ _description;
479
+ get description() {
480
+ return this.getStringAttribute('description');
481
+ }
482
+ set description(value) {
483
+ this._description = value;
484
+ }
485
+ resetDescription() {
486
+ this._description = undefined;
487
+ }
488
+ // Temporarily expose input value. Use with caution.
489
+ get descriptionInput() {
490
+ return this._description;
491
+ }
492
+ // id - computed: true, optional: false, required: false
493
+ get id() {
494
+ return this.getStringAttribute('id');
495
+ }
496
+ // is_idp_managed - computed: true, optional: false, required: false
497
+ get isIdpManaged() {
498
+ return this.getBooleanAttribute('is_idp_managed');
499
+ }
500
+ // member_ids - computed: false, optional: true, required: false
501
+ _memberIds;
502
+ get memberIds() {
503
+ return cdktf.Fn.tolist(this.getListAttribute('member_ids'));
504
+ }
505
+ set memberIds(value) {
506
+ this._memberIds = value;
507
+ }
508
+ resetMemberIds() {
509
+ this._memberIds = undefined;
510
+ }
511
+ // Temporarily expose input value. Use with caution.
512
+ get memberIdsInput() {
513
+ return this._memberIds;
514
+ }
515
+ // name - computed: false, optional: false, required: true
516
+ _name;
517
+ get name() {
518
+ return this.getStringAttribute('name');
519
+ }
520
+ set name(value) {
521
+ this._name = value;
522
+ }
523
+ // Temporarily expose input value. Use with caution.
524
+ get nameInput() {
525
+ return this._name;
526
+ }
527
+ // organization_role - computed: false, optional: false, required: true
528
+ _organizationRole;
529
+ get organizationRole() {
530
+ return this.getStringAttribute('organization_role');
531
+ }
532
+ set organizationRole(value) {
533
+ this._organizationRole = value;
534
+ }
535
+ // Temporarily expose input value. Use with caution.
536
+ get organizationRoleInput() {
537
+ return this._organizationRole;
538
+ }
539
+ // roles_count - computed: true, optional: false, required: false
540
+ get rolesCount() {
541
+ return this.getNumberAttribute('roles_count');
542
+ }
543
+ // updated_at - computed: true, optional: false, required: false
544
+ get updatedAt() {
545
+ return this.getStringAttribute('updated_at');
546
+ }
547
+ // updated_by - computed: true, optional: false, required: false
548
+ _updatedBy = new TeamUpdatedByOutputReference(this, "updated_by");
549
+ get updatedBy() {
550
+ return this._updatedBy;
551
+ }
552
+ // workspace_roles - computed: false, optional: true, required: false
553
+ _workspaceRoles = new TeamWorkspaceRolesList(this, "workspace_roles", true);
554
+ get workspaceRoles() {
555
+ return this._workspaceRoles;
556
+ }
557
+ putWorkspaceRoles(value) {
558
+ this._workspaceRoles.internalValue = value;
559
+ }
560
+ resetWorkspaceRoles() {
561
+ this._workspaceRoles.internalValue = undefined;
562
+ }
563
+ // Temporarily expose input value. Use with caution.
564
+ get workspaceRolesInput() {
565
+ return this._workspaceRoles.internalValue;
566
+ }
567
+ // =========
568
+ // SYNTHESIS
569
+ // =========
570
+ synthesizeAttributes() {
571
+ return {
572
+ deployment_roles: cdktf.listMapper(teamDeploymentRolesToTerraform, false)(this._deploymentRoles.internalValue),
573
+ description: cdktf.stringToTerraform(this._description),
574
+ member_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(this._memberIds),
575
+ name: cdktf.stringToTerraform(this._name),
576
+ organization_role: cdktf.stringToTerraform(this._organizationRole),
577
+ workspace_roles: cdktf.listMapper(teamWorkspaceRolesToTerraform, false)(this._workspaceRoles.internalValue),
578
+ };
579
+ }
580
+ synthesizeHclAttributes() {
581
+ const attrs = {
582
+ deployment_roles: {
583
+ value: cdktf.listMapperHcl(teamDeploymentRolesToHclTerraform, false)(this._deploymentRoles.internalValue),
584
+ isBlock: true,
585
+ type: "set",
586
+ storageClassType: "TeamDeploymentRolesList",
587
+ },
588
+ description: {
589
+ value: cdktf.stringToHclTerraform(this._description),
590
+ isBlock: false,
591
+ type: "simple",
592
+ storageClassType: "string",
593
+ },
594
+ member_ids: {
595
+ value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._memberIds),
596
+ isBlock: false,
597
+ type: "set",
598
+ storageClassType: "stringList",
599
+ },
600
+ name: {
601
+ value: cdktf.stringToHclTerraform(this._name),
602
+ isBlock: false,
603
+ type: "simple",
604
+ storageClassType: "string",
605
+ },
606
+ organization_role: {
607
+ value: cdktf.stringToHclTerraform(this._organizationRole),
608
+ isBlock: false,
609
+ type: "simple",
610
+ storageClassType: "string",
611
+ },
612
+ workspace_roles: {
613
+ value: cdktf.listMapperHcl(teamWorkspaceRolesToHclTerraform, false)(this._workspaceRoles.internalValue),
614
+ isBlock: true,
615
+ type: "set",
616
+ storageClassType: "TeamWorkspaceRolesList",
617
+ },
618
+ };
619
+ // remove undefined attributes
620
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
621
+ }
622
+ }