@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,502 @@
1
+ // https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/api_tokens
2
+ // generated from terraform resource schema
3
+ import * as cdktf from 'cdktf';
4
+ export function dataAstroApiTokensApiTokensCreatedByToTerraform(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 dataAstroApiTokensApiTokensCreatedByToHclTerraform(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 DataAstroApiTokensApiTokensCreatedByOutputReference 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 dataAstroApiTokensApiTokensRolesToTerraform(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 dataAstroApiTokensApiTokensRolesToHclTerraform(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 DataAstroApiTokensApiTokensRolesOutputReference 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_id - computed: true, optional: false, required: false
114
+ get entityId() {
115
+ return this.getStringAttribute('entity_id');
116
+ }
117
+ // entity_type - computed: true, optional: false, required: false
118
+ get entityType() {
119
+ return this.getStringAttribute('entity_type');
120
+ }
121
+ // role - computed: true, optional: false, required: false
122
+ get role() {
123
+ return this.getStringAttribute('role');
124
+ }
125
+ }
126
+ export class DataAstroApiTokensApiTokensRolesList 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 DataAstroApiTokensApiTokensRolesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
146
+ }
147
+ }
148
+ export function dataAstroApiTokensApiTokensUpdatedByToTerraform(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 dataAstroApiTokensApiTokensUpdatedByToHclTerraform(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 DataAstroApiTokensApiTokensUpdatedByOutputReference 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
+ // api_token_name - computed: true, optional: false, required: false
190
+ get apiTokenName() {
191
+ return this.getStringAttribute('api_token_name');
192
+ }
193
+ // avatar_url - computed: true, optional: false, required: false
194
+ get avatarUrl() {
195
+ return this.getStringAttribute('avatar_url');
196
+ }
197
+ // full_name - computed: true, optional: false, required: false
198
+ get fullName() {
199
+ return this.getStringAttribute('full_name');
200
+ }
201
+ // id - computed: true, optional: false, required: false
202
+ get id() {
203
+ return this.getStringAttribute('id');
204
+ }
205
+ // subject_type - computed: true, optional: false, required: false
206
+ get subjectType() {
207
+ return this.getStringAttribute('subject_type');
208
+ }
209
+ // username - computed: true, optional: false, required: false
210
+ get username() {
211
+ return this.getStringAttribute('username');
212
+ }
213
+ }
214
+ export function dataAstroApiTokensApiTokensToTerraform(struct) {
215
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
216
+ return struct;
217
+ }
218
+ if (cdktf.isComplexElement(struct)) {
219
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
220
+ }
221
+ return {
222
+ id: cdktf.stringToTerraform(struct.id),
223
+ };
224
+ }
225
+ export function dataAstroApiTokensApiTokensToHclTerraform(struct) {
226
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
227
+ return struct;
228
+ }
229
+ if (cdktf.isComplexElement(struct)) {
230
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
231
+ }
232
+ const attrs = {
233
+ id: {
234
+ value: cdktf.stringToHclTerraform(struct.id),
235
+ isBlock: false,
236
+ type: "simple",
237
+ storageClassType: "string",
238
+ },
239
+ };
240
+ // remove undefined attributes
241
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
242
+ }
243
+ export class DataAstroApiTokensApiTokensOutputReference extends cdktf.ComplexObject {
244
+ isEmptyObject = false;
245
+ /**
246
+ * @param terraformResource The parent resource
247
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
248
+ * @param complexObjectIndex the index of this item in the list
249
+ * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
250
+ */
251
+ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
252
+ super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
253
+ }
254
+ get internalValue() {
255
+ let hasAnyValues = this.isEmptyObject;
256
+ const internalValueResult = {};
257
+ if (this._id !== undefined) {
258
+ hasAnyValues = true;
259
+ internalValueResult.id = this._id;
260
+ }
261
+ return hasAnyValues ? internalValueResult : undefined;
262
+ }
263
+ set internalValue(value) {
264
+ if (value === undefined) {
265
+ this.isEmptyObject = false;
266
+ this._id = undefined;
267
+ }
268
+ else {
269
+ this.isEmptyObject = Object.keys(value).length === 0;
270
+ this._id = value.id;
271
+ }
272
+ }
273
+ // created_at - computed: true, optional: false, required: false
274
+ get createdAt() {
275
+ return this.getStringAttribute('created_at');
276
+ }
277
+ // created_by - computed: true, optional: false, required: false
278
+ _createdBy = new DataAstroApiTokensApiTokensCreatedByOutputReference(this, "created_by");
279
+ get createdBy() {
280
+ return this._createdBy;
281
+ }
282
+ // description - computed: true, optional: false, required: false
283
+ get description() {
284
+ return this.getStringAttribute('description');
285
+ }
286
+ // end_at - computed: true, optional: false, required: false
287
+ get endAt() {
288
+ return this.getStringAttribute('end_at');
289
+ }
290
+ // expiry_period_in_days - computed: true, optional: false, required: false
291
+ get expiryPeriodInDays() {
292
+ return this.getNumberAttribute('expiry_period_in_days');
293
+ }
294
+ // id - computed: true, optional: false, required: true
295
+ _id;
296
+ get id() {
297
+ return this.getStringAttribute('id');
298
+ }
299
+ set id(value) {
300
+ this._id = value;
301
+ }
302
+ // Temporarily expose input value. Use with caution.
303
+ get idInput() {
304
+ return this._id;
305
+ }
306
+ // last_used_at - computed: true, optional: false, required: false
307
+ get lastUsedAt() {
308
+ return this.getStringAttribute('last_used_at');
309
+ }
310
+ // name - computed: true, optional: false, required: false
311
+ get name() {
312
+ return this.getStringAttribute('name');
313
+ }
314
+ // roles - computed: true, optional: false, required: false
315
+ _roles = new DataAstroApiTokensApiTokensRolesList(this, "roles", true);
316
+ get roles() {
317
+ return this._roles;
318
+ }
319
+ // short_token - computed: true, optional: false, required: false
320
+ get shortToken() {
321
+ return this.getStringAttribute('short_token');
322
+ }
323
+ // start_at - computed: true, optional: false, required: false
324
+ get startAt() {
325
+ return this.getStringAttribute('start_at');
326
+ }
327
+ // type - computed: true, optional: false, required: false
328
+ get type() {
329
+ return this.getStringAttribute('type');
330
+ }
331
+ // updated_at - computed: true, optional: false, required: false
332
+ get updatedAt() {
333
+ return this.getStringAttribute('updated_at');
334
+ }
335
+ // updated_by - computed: true, optional: false, required: false
336
+ _updatedBy = new DataAstroApiTokensApiTokensUpdatedByOutputReference(this, "updated_by");
337
+ get updatedBy() {
338
+ return this._updatedBy;
339
+ }
340
+ }
341
+ export class DataAstroApiTokensApiTokensList extends cdktf.ComplexList {
342
+ terraformResource;
343
+ terraformAttribute;
344
+ wrapsSet;
345
+ internalValue;
346
+ /**
347
+ * @param terraformResource The parent resource
348
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
349
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
350
+ */
351
+ constructor(terraformResource, terraformAttribute, wrapsSet) {
352
+ super(terraformResource, terraformAttribute, wrapsSet);
353
+ this.terraformResource = terraformResource;
354
+ this.terraformAttribute = terraformAttribute;
355
+ this.wrapsSet = wrapsSet;
356
+ }
357
+ /**
358
+ * @param index the index of the item to return
359
+ */
360
+ get(index) {
361
+ return new DataAstroApiTokensApiTokensOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
362
+ }
363
+ }
364
+ /**
365
+ * Represents a {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/api_tokens astro_api_tokens}
366
+ */
367
+ export class DataAstroApiTokens extends cdktf.TerraformDataSource {
368
+ // =================
369
+ // STATIC PROPERTIES
370
+ // =================
371
+ static tfResourceType = "astro_api_tokens";
372
+ // ==============
373
+ // STATIC Methods
374
+ // ==============
375
+ /**
376
+ * Generates CDKTF code for importing a DataAstroApiTokens resource upon running "cdktf plan <stack-name>"
377
+ * @param scope The scope in which to define this construct
378
+ * @param importToId The construct id used in the generated config for the DataAstroApiTokens to import
379
+ * @param importFromId The id of the existing DataAstroApiTokens that should be imported. Refer to the {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/api_tokens#import import section} in the documentation of this resource for the id to use
380
+ * @param provider? Optional instance of the provider where the DataAstroApiTokens to import is found
381
+ */
382
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
383
+ return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "astro_api_tokens", importId: importFromId, provider });
384
+ }
385
+ // ===========
386
+ // INITIALIZER
387
+ // ===========
388
+ /**
389
+ * Create a new {@link https://registry.terraform.io/providers/astronomer/astro/1.0.8/docs/data-sources/api_tokens astro_api_tokens} Data Source
390
+ *
391
+ * @param scope The scope in which to define this construct
392
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
393
+ * @param options DataAstroApiTokensConfig = {}
394
+ */
395
+ constructor(scope, id, config = {}) {
396
+ super(scope, id, {
397
+ terraformResourceType: 'astro_api_tokens',
398
+ terraformGeneratorMetadata: {
399
+ providerName: 'astro',
400
+ providerVersion: '1.0.8',
401
+ providerVersionConstraint: '1.0.8'
402
+ },
403
+ provider: config.provider,
404
+ dependsOn: config.dependsOn,
405
+ count: config.count,
406
+ lifecycle: config.lifecycle,
407
+ provisioners: config.provisioners,
408
+ connection: config.connection,
409
+ forEach: config.forEach
410
+ });
411
+ this._deploymentId = config.deploymentId;
412
+ this._includeOnlyOrganizationTokens = config.includeOnlyOrganizationTokens;
413
+ this._workspaceId = config.workspaceId;
414
+ }
415
+ // ==========
416
+ // ATTRIBUTES
417
+ // ==========
418
+ // api_tokens - computed: true, optional: false, required: false
419
+ _apiTokens = new DataAstroApiTokensApiTokensList(this, "api_tokens", true);
420
+ get apiTokens() {
421
+ return this._apiTokens;
422
+ }
423
+ // deployment_id - computed: false, optional: true, required: false
424
+ _deploymentId;
425
+ get deploymentId() {
426
+ return this.getStringAttribute('deployment_id');
427
+ }
428
+ set deploymentId(value) {
429
+ this._deploymentId = value;
430
+ }
431
+ resetDeploymentId() {
432
+ this._deploymentId = undefined;
433
+ }
434
+ // Temporarily expose input value. Use with caution.
435
+ get deploymentIdInput() {
436
+ return this._deploymentId;
437
+ }
438
+ // include_only_organization_tokens - computed: false, optional: true, required: false
439
+ _includeOnlyOrganizationTokens;
440
+ get includeOnlyOrganizationTokens() {
441
+ return this.getBooleanAttribute('include_only_organization_tokens');
442
+ }
443
+ set includeOnlyOrganizationTokens(value) {
444
+ this._includeOnlyOrganizationTokens = value;
445
+ }
446
+ resetIncludeOnlyOrganizationTokens() {
447
+ this._includeOnlyOrganizationTokens = undefined;
448
+ }
449
+ // Temporarily expose input value. Use with caution.
450
+ get includeOnlyOrganizationTokensInput() {
451
+ return this._includeOnlyOrganizationTokens;
452
+ }
453
+ // workspace_id - computed: false, optional: true, required: false
454
+ _workspaceId;
455
+ get workspaceId() {
456
+ return this.getStringAttribute('workspace_id');
457
+ }
458
+ set workspaceId(value) {
459
+ this._workspaceId = value;
460
+ }
461
+ resetWorkspaceId() {
462
+ this._workspaceId = undefined;
463
+ }
464
+ // Temporarily expose input value. Use with caution.
465
+ get workspaceIdInput() {
466
+ return this._workspaceId;
467
+ }
468
+ // =========
469
+ // SYNTHESIS
470
+ // =========
471
+ synthesizeAttributes() {
472
+ return {
473
+ deployment_id: cdktf.stringToTerraform(this._deploymentId),
474
+ include_only_organization_tokens: cdktf.booleanToTerraform(this._includeOnlyOrganizationTokens),
475
+ workspace_id: cdktf.stringToTerraform(this._workspaceId),
476
+ };
477
+ }
478
+ synthesizeHclAttributes() {
479
+ const attrs = {
480
+ deployment_id: {
481
+ value: cdktf.stringToHclTerraform(this._deploymentId),
482
+ isBlock: false,
483
+ type: "simple",
484
+ storageClassType: "string",
485
+ },
486
+ include_only_organization_tokens: {
487
+ value: cdktf.booleanToHclTerraform(this._includeOnlyOrganizationTokens),
488
+ isBlock: false,
489
+ type: "simple",
490
+ storageClassType: "boolean",
491
+ },
492
+ workspace_id: {
493
+ value: cdktf.stringToHclTerraform(this._workspaceId),
494
+ isBlock: false,
495
+ type: "simple",
496
+ storageClassType: "string",
497
+ },
498
+ };
499
+ // remove undefined attributes
500
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
501
+ }
502
+ }