@cdktf-providers/siderolabs-talos 0.9.0

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 (37) hide show
  1. package/LICENSE +355 -0
  2. package/README.md +19 -0
  3. package/dist/cluster-kubeconfig/index.d.ts +187 -0
  4. package/dist/cluster-kubeconfig/index.js +489 -0
  5. package/dist/data-talos-client-configuration/index.d.ts +121 -0
  6. package/dist/data-talos-client-configuration/index.js +292 -0
  7. package/dist/data-talos-cluster-health/index.d.ts +165 -0
  8. package/dist/data-talos-cluster-health/index.js +414 -0
  9. package/dist/data-talos-cluster-kubeconfig/index.d.ts +176 -0
  10. package/dist/data-talos-cluster-kubeconfig/index.js +461 -0
  11. package/dist/data-talos-image-factory-extensions-versions/index.d.ts +118 -0
  12. package/dist/data-talos-image-factory-extensions-versions/index.js +289 -0
  13. package/dist/data-talos-image-factory-overlays-versions/index.d.ts +117 -0
  14. package/dist/data-talos-image-factory-overlays-versions/index.js +285 -0
  15. package/dist/data-talos-image-factory-urls/index.d.ts +163 -0
  16. package/dist/data-talos-image-factory-urls/index.js +272 -0
  17. package/dist/data-talos-image-factory-versions/index.d.ts +71 -0
  18. package/dist/data-talos-image-factory-versions/index.js +182 -0
  19. package/dist/data-talos-machine-configuration/index.d.ts +521 -0
  20. package/dist/data-talos-machine-configuration/index.js +1424 -0
  21. package/dist/data-talos-machine-disks/index.d.ts +208 -0
  22. package/dist/data-talos-machine-disks/index.js +537 -0
  23. package/dist/image-factory-schematic/index.d.ts +50 -0
  24. package/dist/image-factory-schematic/index.js +95 -0
  25. package/dist/index.d.ts +15 -0
  26. package/dist/index.js +16 -0
  27. package/dist/lazy-index.d.ts +0 -0
  28. package/dist/lazy-index.js +16 -0
  29. package/dist/machine-bootstrap/index.d.ts +144 -0
  30. package/dist/machine-bootstrap/index.js +371 -0
  31. package/dist/machine-configuration-apply/index.d.ts +262 -0
  32. package/dist/machine-configuration-apply/index.js +659 -0
  33. package/dist/machine-secrets/index.d.ts +238 -0
  34. package/dist/machine-secrets/index.js +684 -0
  35. package/dist/provider/index.d.ts +54 -0
  36. package/dist/provider/index.js +108 -0
  37. package/package.json +51 -0
@@ -0,0 +1,1424 @@
1
+ // https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/data-sources/machine_configuration
2
+ // generated from terraform resource schema
3
+ import * as cdktf from 'cdktf';
4
+ export function dataTalosMachineConfigurationMachineSecretsCertsEtcdToTerraform(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
+ cert: cdktf.stringToTerraform(struct.cert),
13
+ key: cdktf.stringToTerraform(struct.key),
14
+ };
15
+ }
16
+ export function dataTalosMachineConfigurationMachineSecretsCertsEtcdToHclTerraform(struct) {
17
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
18
+ return struct;
19
+ }
20
+ if (cdktf.isComplexElement(struct)) {
21
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
22
+ }
23
+ const attrs = {
24
+ cert: {
25
+ value: cdktf.stringToHclTerraform(struct.cert),
26
+ isBlock: false,
27
+ type: "simple",
28
+ storageClassType: "string",
29
+ },
30
+ key: {
31
+ value: cdktf.stringToHclTerraform(struct.key),
32
+ isBlock: false,
33
+ type: "simple",
34
+ storageClassType: "string",
35
+ },
36
+ };
37
+ // remove undefined attributes
38
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
39
+ }
40
+ export class DataTalosMachineConfigurationMachineSecretsCertsEtcdOutputReference extends cdktf.ComplexObject {
41
+ isEmptyObject = false;
42
+ resolvableValue;
43
+ /**
44
+ * @param terraformResource The parent resource
45
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
46
+ */
47
+ constructor(terraformResource, terraformAttribute) {
48
+ super(terraformResource, terraformAttribute, false);
49
+ }
50
+ get internalValue() {
51
+ if (this.resolvableValue) {
52
+ return this.resolvableValue;
53
+ }
54
+ let hasAnyValues = this.isEmptyObject;
55
+ const internalValueResult = {};
56
+ if (this._cert !== undefined) {
57
+ hasAnyValues = true;
58
+ internalValueResult.cert = this._cert;
59
+ }
60
+ if (this._key !== undefined) {
61
+ hasAnyValues = true;
62
+ internalValueResult.key = this._key;
63
+ }
64
+ return hasAnyValues ? internalValueResult : undefined;
65
+ }
66
+ set internalValue(value) {
67
+ if (value === undefined) {
68
+ this.isEmptyObject = false;
69
+ this.resolvableValue = undefined;
70
+ this._cert = undefined;
71
+ this._key = undefined;
72
+ }
73
+ else if (cdktf.Tokenization.isResolvable(value)) {
74
+ this.isEmptyObject = false;
75
+ this.resolvableValue = value;
76
+ }
77
+ else {
78
+ this.isEmptyObject = Object.keys(value).length === 0;
79
+ this.resolvableValue = undefined;
80
+ this._cert = value.cert;
81
+ this._key = value.key;
82
+ }
83
+ }
84
+ // cert - computed: false, optional: false, required: true
85
+ _cert;
86
+ get cert() {
87
+ return this.getStringAttribute('cert');
88
+ }
89
+ set cert(value) {
90
+ this._cert = value;
91
+ }
92
+ // Temporarily expose input value. Use with caution.
93
+ get certInput() {
94
+ return this._cert;
95
+ }
96
+ // key - computed: false, optional: false, required: true
97
+ _key;
98
+ get key() {
99
+ return this.getStringAttribute('key');
100
+ }
101
+ set key(value) {
102
+ this._key = value;
103
+ }
104
+ // Temporarily expose input value. Use with caution.
105
+ get keyInput() {
106
+ return this._key;
107
+ }
108
+ }
109
+ export function dataTalosMachineConfigurationMachineSecretsCertsK8SToTerraform(struct) {
110
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
111
+ return struct;
112
+ }
113
+ if (cdktf.isComplexElement(struct)) {
114
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
115
+ }
116
+ return {
117
+ cert: cdktf.stringToTerraform(struct.cert),
118
+ key: cdktf.stringToTerraform(struct.key),
119
+ };
120
+ }
121
+ export function dataTalosMachineConfigurationMachineSecretsCertsK8SToHclTerraform(struct) {
122
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
123
+ return struct;
124
+ }
125
+ if (cdktf.isComplexElement(struct)) {
126
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
127
+ }
128
+ const attrs = {
129
+ cert: {
130
+ value: cdktf.stringToHclTerraform(struct.cert),
131
+ isBlock: false,
132
+ type: "simple",
133
+ storageClassType: "string",
134
+ },
135
+ key: {
136
+ value: cdktf.stringToHclTerraform(struct.key),
137
+ isBlock: false,
138
+ type: "simple",
139
+ storageClassType: "string",
140
+ },
141
+ };
142
+ // remove undefined attributes
143
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
144
+ }
145
+ export class DataTalosMachineConfigurationMachineSecretsCertsK8SOutputReference extends cdktf.ComplexObject {
146
+ isEmptyObject = false;
147
+ resolvableValue;
148
+ /**
149
+ * @param terraformResource The parent resource
150
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
151
+ */
152
+ constructor(terraformResource, terraformAttribute) {
153
+ super(terraformResource, terraformAttribute, false);
154
+ }
155
+ get internalValue() {
156
+ if (this.resolvableValue) {
157
+ return this.resolvableValue;
158
+ }
159
+ let hasAnyValues = this.isEmptyObject;
160
+ const internalValueResult = {};
161
+ if (this._cert !== undefined) {
162
+ hasAnyValues = true;
163
+ internalValueResult.cert = this._cert;
164
+ }
165
+ if (this._key !== undefined) {
166
+ hasAnyValues = true;
167
+ internalValueResult.key = this._key;
168
+ }
169
+ return hasAnyValues ? internalValueResult : undefined;
170
+ }
171
+ set internalValue(value) {
172
+ if (value === undefined) {
173
+ this.isEmptyObject = false;
174
+ this.resolvableValue = undefined;
175
+ this._cert = undefined;
176
+ this._key = undefined;
177
+ }
178
+ else if (cdktf.Tokenization.isResolvable(value)) {
179
+ this.isEmptyObject = false;
180
+ this.resolvableValue = value;
181
+ }
182
+ else {
183
+ this.isEmptyObject = Object.keys(value).length === 0;
184
+ this.resolvableValue = undefined;
185
+ this._cert = value.cert;
186
+ this._key = value.key;
187
+ }
188
+ }
189
+ // cert - computed: false, optional: false, required: true
190
+ _cert;
191
+ get cert() {
192
+ return this.getStringAttribute('cert');
193
+ }
194
+ set cert(value) {
195
+ this._cert = value;
196
+ }
197
+ // Temporarily expose input value. Use with caution.
198
+ get certInput() {
199
+ return this._cert;
200
+ }
201
+ // key - computed: false, optional: false, required: true
202
+ _key;
203
+ get key() {
204
+ return this.getStringAttribute('key');
205
+ }
206
+ set key(value) {
207
+ this._key = value;
208
+ }
209
+ // Temporarily expose input value. Use with caution.
210
+ get keyInput() {
211
+ return this._key;
212
+ }
213
+ }
214
+ export function dataTalosMachineConfigurationMachineSecretsCertsK8SAggregatorToTerraform(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
+ cert: cdktf.stringToTerraform(struct.cert),
223
+ key: cdktf.stringToTerraform(struct.key),
224
+ };
225
+ }
226
+ export function dataTalosMachineConfigurationMachineSecretsCertsK8SAggregatorToHclTerraform(struct) {
227
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
228
+ return struct;
229
+ }
230
+ if (cdktf.isComplexElement(struct)) {
231
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
232
+ }
233
+ const attrs = {
234
+ cert: {
235
+ value: cdktf.stringToHclTerraform(struct.cert),
236
+ isBlock: false,
237
+ type: "simple",
238
+ storageClassType: "string",
239
+ },
240
+ key: {
241
+ value: cdktf.stringToHclTerraform(struct.key),
242
+ isBlock: false,
243
+ type: "simple",
244
+ storageClassType: "string",
245
+ },
246
+ };
247
+ // remove undefined attributes
248
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
249
+ }
250
+ export class DataTalosMachineConfigurationMachineSecretsCertsK8SAggregatorOutputReference extends cdktf.ComplexObject {
251
+ isEmptyObject = false;
252
+ resolvableValue;
253
+ /**
254
+ * @param terraformResource The parent resource
255
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
256
+ */
257
+ constructor(terraformResource, terraformAttribute) {
258
+ super(terraformResource, terraformAttribute, false);
259
+ }
260
+ get internalValue() {
261
+ if (this.resolvableValue) {
262
+ return this.resolvableValue;
263
+ }
264
+ let hasAnyValues = this.isEmptyObject;
265
+ const internalValueResult = {};
266
+ if (this._cert !== undefined) {
267
+ hasAnyValues = true;
268
+ internalValueResult.cert = this._cert;
269
+ }
270
+ if (this._key !== undefined) {
271
+ hasAnyValues = true;
272
+ internalValueResult.key = this._key;
273
+ }
274
+ return hasAnyValues ? internalValueResult : undefined;
275
+ }
276
+ set internalValue(value) {
277
+ if (value === undefined) {
278
+ this.isEmptyObject = false;
279
+ this.resolvableValue = undefined;
280
+ this._cert = undefined;
281
+ this._key = undefined;
282
+ }
283
+ else if (cdktf.Tokenization.isResolvable(value)) {
284
+ this.isEmptyObject = false;
285
+ this.resolvableValue = value;
286
+ }
287
+ else {
288
+ this.isEmptyObject = Object.keys(value).length === 0;
289
+ this.resolvableValue = undefined;
290
+ this._cert = value.cert;
291
+ this._key = value.key;
292
+ }
293
+ }
294
+ // cert - computed: false, optional: false, required: true
295
+ _cert;
296
+ get cert() {
297
+ return this.getStringAttribute('cert');
298
+ }
299
+ set cert(value) {
300
+ this._cert = value;
301
+ }
302
+ // Temporarily expose input value. Use with caution.
303
+ get certInput() {
304
+ return this._cert;
305
+ }
306
+ // key - computed: false, optional: false, required: true
307
+ _key;
308
+ get key() {
309
+ return this.getStringAttribute('key');
310
+ }
311
+ set key(value) {
312
+ this._key = value;
313
+ }
314
+ // Temporarily expose input value. Use with caution.
315
+ get keyInput() {
316
+ return this._key;
317
+ }
318
+ }
319
+ export function dataTalosMachineConfigurationMachineSecretsCertsK8SServiceaccountToTerraform(struct) {
320
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
321
+ return struct;
322
+ }
323
+ if (cdktf.isComplexElement(struct)) {
324
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
325
+ }
326
+ return {
327
+ key: cdktf.stringToTerraform(struct.key),
328
+ };
329
+ }
330
+ export function dataTalosMachineConfigurationMachineSecretsCertsK8SServiceaccountToHclTerraform(struct) {
331
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
332
+ return struct;
333
+ }
334
+ if (cdktf.isComplexElement(struct)) {
335
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
336
+ }
337
+ const attrs = {
338
+ key: {
339
+ value: cdktf.stringToHclTerraform(struct.key),
340
+ isBlock: false,
341
+ type: "simple",
342
+ storageClassType: "string",
343
+ },
344
+ };
345
+ // remove undefined attributes
346
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
347
+ }
348
+ export class DataTalosMachineConfigurationMachineSecretsCertsK8SServiceaccountOutputReference extends cdktf.ComplexObject {
349
+ isEmptyObject = false;
350
+ resolvableValue;
351
+ /**
352
+ * @param terraformResource The parent resource
353
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
354
+ */
355
+ constructor(terraformResource, terraformAttribute) {
356
+ super(terraformResource, terraformAttribute, false);
357
+ }
358
+ get internalValue() {
359
+ if (this.resolvableValue) {
360
+ return this.resolvableValue;
361
+ }
362
+ let hasAnyValues = this.isEmptyObject;
363
+ const internalValueResult = {};
364
+ if (this._key !== undefined) {
365
+ hasAnyValues = true;
366
+ internalValueResult.key = this._key;
367
+ }
368
+ return hasAnyValues ? internalValueResult : undefined;
369
+ }
370
+ set internalValue(value) {
371
+ if (value === undefined) {
372
+ this.isEmptyObject = false;
373
+ this.resolvableValue = undefined;
374
+ this._key = undefined;
375
+ }
376
+ else if (cdktf.Tokenization.isResolvable(value)) {
377
+ this.isEmptyObject = false;
378
+ this.resolvableValue = value;
379
+ }
380
+ else {
381
+ this.isEmptyObject = Object.keys(value).length === 0;
382
+ this.resolvableValue = undefined;
383
+ this._key = value.key;
384
+ }
385
+ }
386
+ // key - computed: false, optional: false, required: true
387
+ _key;
388
+ get key() {
389
+ return this.getStringAttribute('key');
390
+ }
391
+ set key(value) {
392
+ this._key = value;
393
+ }
394
+ // Temporarily expose input value. Use with caution.
395
+ get keyInput() {
396
+ return this._key;
397
+ }
398
+ }
399
+ export function dataTalosMachineConfigurationMachineSecretsCertsOsToTerraform(struct) {
400
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
401
+ return struct;
402
+ }
403
+ if (cdktf.isComplexElement(struct)) {
404
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
405
+ }
406
+ return {
407
+ cert: cdktf.stringToTerraform(struct.cert),
408
+ key: cdktf.stringToTerraform(struct.key),
409
+ };
410
+ }
411
+ export function dataTalosMachineConfigurationMachineSecretsCertsOsToHclTerraform(struct) {
412
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
413
+ return struct;
414
+ }
415
+ if (cdktf.isComplexElement(struct)) {
416
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
417
+ }
418
+ const attrs = {
419
+ cert: {
420
+ value: cdktf.stringToHclTerraform(struct.cert),
421
+ isBlock: false,
422
+ type: "simple",
423
+ storageClassType: "string",
424
+ },
425
+ key: {
426
+ value: cdktf.stringToHclTerraform(struct.key),
427
+ isBlock: false,
428
+ type: "simple",
429
+ storageClassType: "string",
430
+ },
431
+ };
432
+ // remove undefined attributes
433
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
434
+ }
435
+ export class DataTalosMachineConfigurationMachineSecretsCertsOsOutputReference extends cdktf.ComplexObject {
436
+ isEmptyObject = false;
437
+ resolvableValue;
438
+ /**
439
+ * @param terraformResource The parent resource
440
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
441
+ */
442
+ constructor(terraformResource, terraformAttribute) {
443
+ super(terraformResource, terraformAttribute, false);
444
+ }
445
+ get internalValue() {
446
+ if (this.resolvableValue) {
447
+ return this.resolvableValue;
448
+ }
449
+ let hasAnyValues = this.isEmptyObject;
450
+ const internalValueResult = {};
451
+ if (this._cert !== undefined) {
452
+ hasAnyValues = true;
453
+ internalValueResult.cert = this._cert;
454
+ }
455
+ if (this._key !== undefined) {
456
+ hasAnyValues = true;
457
+ internalValueResult.key = this._key;
458
+ }
459
+ return hasAnyValues ? internalValueResult : undefined;
460
+ }
461
+ set internalValue(value) {
462
+ if (value === undefined) {
463
+ this.isEmptyObject = false;
464
+ this.resolvableValue = undefined;
465
+ this._cert = undefined;
466
+ this._key = undefined;
467
+ }
468
+ else if (cdktf.Tokenization.isResolvable(value)) {
469
+ this.isEmptyObject = false;
470
+ this.resolvableValue = value;
471
+ }
472
+ else {
473
+ this.isEmptyObject = Object.keys(value).length === 0;
474
+ this.resolvableValue = undefined;
475
+ this._cert = value.cert;
476
+ this._key = value.key;
477
+ }
478
+ }
479
+ // cert - computed: false, optional: false, required: true
480
+ _cert;
481
+ get cert() {
482
+ return this.getStringAttribute('cert');
483
+ }
484
+ set cert(value) {
485
+ this._cert = value;
486
+ }
487
+ // Temporarily expose input value. Use with caution.
488
+ get certInput() {
489
+ return this._cert;
490
+ }
491
+ // key - computed: false, optional: false, required: true
492
+ _key;
493
+ get key() {
494
+ return this.getStringAttribute('key');
495
+ }
496
+ set key(value) {
497
+ this._key = value;
498
+ }
499
+ // Temporarily expose input value. Use with caution.
500
+ get keyInput() {
501
+ return this._key;
502
+ }
503
+ }
504
+ export function dataTalosMachineConfigurationMachineSecretsCertsToTerraform(struct) {
505
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
506
+ return struct;
507
+ }
508
+ if (cdktf.isComplexElement(struct)) {
509
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
510
+ }
511
+ return {
512
+ etcd: dataTalosMachineConfigurationMachineSecretsCertsEtcdToTerraform(struct.etcd),
513
+ k8s: dataTalosMachineConfigurationMachineSecretsCertsK8SToTerraform(struct.k8S),
514
+ k8s_aggregator: dataTalosMachineConfigurationMachineSecretsCertsK8SAggregatorToTerraform(struct.k8SAggregator),
515
+ k8s_serviceaccount: dataTalosMachineConfigurationMachineSecretsCertsK8SServiceaccountToTerraform(struct.k8SServiceaccount),
516
+ os: dataTalosMachineConfigurationMachineSecretsCertsOsToTerraform(struct.os),
517
+ };
518
+ }
519
+ export function dataTalosMachineConfigurationMachineSecretsCertsToHclTerraform(struct) {
520
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
521
+ return struct;
522
+ }
523
+ if (cdktf.isComplexElement(struct)) {
524
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
525
+ }
526
+ const attrs = {
527
+ etcd: {
528
+ value: dataTalosMachineConfigurationMachineSecretsCertsEtcdToHclTerraform(struct.etcd),
529
+ isBlock: true,
530
+ type: "struct",
531
+ storageClassType: "DataTalosMachineConfigurationMachineSecretsCertsEtcd",
532
+ },
533
+ k8s: {
534
+ value: dataTalosMachineConfigurationMachineSecretsCertsK8SToHclTerraform(struct.k8S),
535
+ isBlock: true,
536
+ type: "struct",
537
+ storageClassType: "DataTalosMachineConfigurationMachineSecretsCertsK8S",
538
+ },
539
+ k8s_aggregator: {
540
+ value: dataTalosMachineConfigurationMachineSecretsCertsK8SAggregatorToHclTerraform(struct.k8SAggregator),
541
+ isBlock: true,
542
+ type: "struct",
543
+ storageClassType: "DataTalosMachineConfigurationMachineSecretsCertsK8SAggregator",
544
+ },
545
+ k8s_serviceaccount: {
546
+ value: dataTalosMachineConfigurationMachineSecretsCertsK8SServiceaccountToHclTerraform(struct.k8SServiceaccount),
547
+ isBlock: true,
548
+ type: "struct",
549
+ storageClassType: "DataTalosMachineConfigurationMachineSecretsCertsK8SServiceaccount",
550
+ },
551
+ os: {
552
+ value: dataTalosMachineConfigurationMachineSecretsCertsOsToHclTerraform(struct.os),
553
+ isBlock: true,
554
+ type: "struct",
555
+ storageClassType: "DataTalosMachineConfigurationMachineSecretsCertsOs",
556
+ },
557
+ };
558
+ // remove undefined attributes
559
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
560
+ }
561
+ export class DataTalosMachineConfigurationMachineSecretsCertsOutputReference extends cdktf.ComplexObject {
562
+ isEmptyObject = false;
563
+ resolvableValue;
564
+ /**
565
+ * @param terraformResource The parent resource
566
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
567
+ */
568
+ constructor(terraformResource, terraformAttribute) {
569
+ super(terraformResource, terraformAttribute, false);
570
+ }
571
+ get internalValue() {
572
+ if (this.resolvableValue) {
573
+ return this.resolvableValue;
574
+ }
575
+ let hasAnyValues = this.isEmptyObject;
576
+ const internalValueResult = {};
577
+ if (this._etcd?.internalValue !== undefined) {
578
+ hasAnyValues = true;
579
+ internalValueResult.etcd = this._etcd?.internalValue;
580
+ }
581
+ if (this._k8S?.internalValue !== undefined) {
582
+ hasAnyValues = true;
583
+ internalValueResult.k8S = this._k8S?.internalValue;
584
+ }
585
+ if (this._k8SAggregator?.internalValue !== undefined) {
586
+ hasAnyValues = true;
587
+ internalValueResult.k8SAggregator = this._k8SAggregator?.internalValue;
588
+ }
589
+ if (this._k8SServiceaccount?.internalValue !== undefined) {
590
+ hasAnyValues = true;
591
+ internalValueResult.k8SServiceaccount = this._k8SServiceaccount?.internalValue;
592
+ }
593
+ if (this._os?.internalValue !== undefined) {
594
+ hasAnyValues = true;
595
+ internalValueResult.os = this._os?.internalValue;
596
+ }
597
+ return hasAnyValues ? internalValueResult : undefined;
598
+ }
599
+ set internalValue(value) {
600
+ if (value === undefined) {
601
+ this.isEmptyObject = false;
602
+ this.resolvableValue = undefined;
603
+ this._etcd.internalValue = undefined;
604
+ this._k8S.internalValue = undefined;
605
+ this._k8SAggregator.internalValue = undefined;
606
+ this._k8SServiceaccount.internalValue = undefined;
607
+ this._os.internalValue = undefined;
608
+ }
609
+ else if (cdktf.Tokenization.isResolvable(value)) {
610
+ this.isEmptyObject = false;
611
+ this.resolvableValue = value;
612
+ }
613
+ else {
614
+ this.isEmptyObject = Object.keys(value).length === 0;
615
+ this.resolvableValue = undefined;
616
+ this._etcd.internalValue = value.etcd;
617
+ this._k8S.internalValue = value.k8S;
618
+ this._k8SAggregator.internalValue = value.k8SAggregator;
619
+ this._k8SServiceaccount.internalValue = value.k8SServiceaccount;
620
+ this._os.internalValue = value.os;
621
+ }
622
+ }
623
+ // etcd - computed: false, optional: false, required: true
624
+ _etcd = new DataTalosMachineConfigurationMachineSecretsCertsEtcdOutputReference(this, "etcd");
625
+ get etcd() {
626
+ return this._etcd;
627
+ }
628
+ putEtcd(value) {
629
+ this._etcd.internalValue = value;
630
+ }
631
+ // Temporarily expose input value. Use with caution.
632
+ get etcdInput() {
633
+ return this._etcd.internalValue;
634
+ }
635
+ // k8s - computed: false, optional: false, required: true
636
+ _k8S = new DataTalosMachineConfigurationMachineSecretsCertsK8SOutputReference(this, "k8s");
637
+ get k8S() {
638
+ return this._k8S;
639
+ }
640
+ putK8S(value) {
641
+ this._k8S.internalValue = value;
642
+ }
643
+ // Temporarily expose input value. Use with caution.
644
+ get k8SInput() {
645
+ return this._k8S.internalValue;
646
+ }
647
+ // k8s_aggregator - computed: false, optional: false, required: true
648
+ _k8SAggregator = new DataTalosMachineConfigurationMachineSecretsCertsK8SAggregatorOutputReference(this, "k8s_aggregator");
649
+ get k8SAggregator() {
650
+ return this._k8SAggregator;
651
+ }
652
+ putK8SAggregator(value) {
653
+ this._k8SAggregator.internalValue = value;
654
+ }
655
+ // Temporarily expose input value. Use with caution.
656
+ get k8SAggregatorInput() {
657
+ return this._k8SAggregator.internalValue;
658
+ }
659
+ // k8s_serviceaccount - computed: false, optional: false, required: true
660
+ _k8SServiceaccount = new DataTalosMachineConfigurationMachineSecretsCertsK8SServiceaccountOutputReference(this, "k8s_serviceaccount");
661
+ get k8SServiceaccount() {
662
+ return this._k8SServiceaccount;
663
+ }
664
+ putK8SServiceaccount(value) {
665
+ this._k8SServiceaccount.internalValue = value;
666
+ }
667
+ // Temporarily expose input value. Use with caution.
668
+ get k8SServiceaccountInput() {
669
+ return this._k8SServiceaccount.internalValue;
670
+ }
671
+ // os - computed: false, optional: false, required: true
672
+ _os = new DataTalosMachineConfigurationMachineSecretsCertsOsOutputReference(this, "os");
673
+ get os() {
674
+ return this._os;
675
+ }
676
+ putOs(value) {
677
+ this._os.internalValue = value;
678
+ }
679
+ // Temporarily expose input value. Use with caution.
680
+ get osInput() {
681
+ return this._os.internalValue;
682
+ }
683
+ }
684
+ export function dataTalosMachineConfigurationMachineSecretsClusterToTerraform(struct) {
685
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
686
+ return struct;
687
+ }
688
+ if (cdktf.isComplexElement(struct)) {
689
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
690
+ }
691
+ return {
692
+ id: cdktf.stringToTerraform(struct.id),
693
+ secret: cdktf.stringToTerraform(struct.secret),
694
+ };
695
+ }
696
+ export function dataTalosMachineConfigurationMachineSecretsClusterToHclTerraform(struct) {
697
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
698
+ return struct;
699
+ }
700
+ if (cdktf.isComplexElement(struct)) {
701
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
702
+ }
703
+ const attrs = {
704
+ id: {
705
+ value: cdktf.stringToHclTerraform(struct.id),
706
+ isBlock: false,
707
+ type: "simple",
708
+ storageClassType: "string",
709
+ },
710
+ secret: {
711
+ value: cdktf.stringToHclTerraform(struct.secret),
712
+ isBlock: false,
713
+ type: "simple",
714
+ storageClassType: "string",
715
+ },
716
+ };
717
+ // remove undefined attributes
718
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
719
+ }
720
+ export class DataTalosMachineConfigurationMachineSecretsClusterOutputReference extends cdktf.ComplexObject {
721
+ isEmptyObject = false;
722
+ resolvableValue;
723
+ /**
724
+ * @param terraformResource The parent resource
725
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
726
+ */
727
+ constructor(terraformResource, terraformAttribute) {
728
+ super(terraformResource, terraformAttribute, false);
729
+ }
730
+ get internalValue() {
731
+ if (this.resolvableValue) {
732
+ return this.resolvableValue;
733
+ }
734
+ let hasAnyValues = this.isEmptyObject;
735
+ const internalValueResult = {};
736
+ if (this._id !== undefined) {
737
+ hasAnyValues = true;
738
+ internalValueResult.id = this._id;
739
+ }
740
+ if (this._secret !== undefined) {
741
+ hasAnyValues = true;
742
+ internalValueResult.secret = this._secret;
743
+ }
744
+ return hasAnyValues ? internalValueResult : undefined;
745
+ }
746
+ set internalValue(value) {
747
+ if (value === undefined) {
748
+ this.isEmptyObject = false;
749
+ this.resolvableValue = undefined;
750
+ this._id = undefined;
751
+ this._secret = undefined;
752
+ }
753
+ else if (cdktf.Tokenization.isResolvable(value)) {
754
+ this.isEmptyObject = false;
755
+ this.resolvableValue = value;
756
+ }
757
+ else {
758
+ this.isEmptyObject = Object.keys(value).length === 0;
759
+ this.resolvableValue = undefined;
760
+ this._id = value.id;
761
+ this._secret = value.secret;
762
+ }
763
+ }
764
+ // id - computed: false, optional: false, required: true
765
+ _id;
766
+ get id() {
767
+ return this.getStringAttribute('id');
768
+ }
769
+ set id(value) {
770
+ this._id = value;
771
+ }
772
+ // Temporarily expose input value. Use with caution.
773
+ get idInput() {
774
+ return this._id;
775
+ }
776
+ // secret - computed: false, optional: false, required: true
777
+ _secret;
778
+ get secret() {
779
+ return this.getStringAttribute('secret');
780
+ }
781
+ set secret(value) {
782
+ this._secret = value;
783
+ }
784
+ // Temporarily expose input value. Use with caution.
785
+ get secretInput() {
786
+ return this._secret;
787
+ }
788
+ }
789
+ export function dataTalosMachineConfigurationMachineSecretsSecretsToTerraform(struct) {
790
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
791
+ return struct;
792
+ }
793
+ if (cdktf.isComplexElement(struct)) {
794
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
795
+ }
796
+ return {
797
+ aescbc_encryption_secret: cdktf.stringToTerraform(struct.aescbcEncryptionSecret),
798
+ bootstrap_token: cdktf.stringToTerraform(struct.bootstrapToken),
799
+ secretbox_encryption_secret: cdktf.stringToTerraform(struct.secretboxEncryptionSecret),
800
+ };
801
+ }
802
+ export function dataTalosMachineConfigurationMachineSecretsSecretsToHclTerraform(struct) {
803
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
804
+ return struct;
805
+ }
806
+ if (cdktf.isComplexElement(struct)) {
807
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
808
+ }
809
+ const attrs = {
810
+ aescbc_encryption_secret: {
811
+ value: cdktf.stringToHclTerraform(struct.aescbcEncryptionSecret),
812
+ isBlock: false,
813
+ type: "simple",
814
+ storageClassType: "string",
815
+ },
816
+ bootstrap_token: {
817
+ value: cdktf.stringToHclTerraform(struct.bootstrapToken),
818
+ isBlock: false,
819
+ type: "simple",
820
+ storageClassType: "string",
821
+ },
822
+ secretbox_encryption_secret: {
823
+ value: cdktf.stringToHclTerraform(struct.secretboxEncryptionSecret),
824
+ isBlock: false,
825
+ type: "simple",
826
+ storageClassType: "string",
827
+ },
828
+ };
829
+ // remove undefined attributes
830
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
831
+ }
832
+ export class DataTalosMachineConfigurationMachineSecretsSecretsOutputReference extends cdktf.ComplexObject {
833
+ isEmptyObject = false;
834
+ resolvableValue;
835
+ /**
836
+ * @param terraformResource The parent resource
837
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
838
+ */
839
+ constructor(terraformResource, terraformAttribute) {
840
+ super(terraformResource, terraformAttribute, false);
841
+ }
842
+ get internalValue() {
843
+ if (this.resolvableValue) {
844
+ return this.resolvableValue;
845
+ }
846
+ let hasAnyValues = this.isEmptyObject;
847
+ const internalValueResult = {};
848
+ if (this._aescbcEncryptionSecret !== undefined) {
849
+ hasAnyValues = true;
850
+ internalValueResult.aescbcEncryptionSecret = this._aescbcEncryptionSecret;
851
+ }
852
+ if (this._bootstrapToken !== undefined) {
853
+ hasAnyValues = true;
854
+ internalValueResult.bootstrapToken = this._bootstrapToken;
855
+ }
856
+ if (this._secretboxEncryptionSecret !== undefined) {
857
+ hasAnyValues = true;
858
+ internalValueResult.secretboxEncryptionSecret = this._secretboxEncryptionSecret;
859
+ }
860
+ return hasAnyValues ? internalValueResult : undefined;
861
+ }
862
+ set internalValue(value) {
863
+ if (value === undefined) {
864
+ this.isEmptyObject = false;
865
+ this.resolvableValue = undefined;
866
+ this._aescbcEncryptionSecret = undefined;
867
+ this._bootstrapToken = undefined;
868
+ this._secretboxEncryptionSecret = undefined;
869
+ }
870
+ else if (cdktf.Tokenization.isResolvable(value)) {
871
+ this.isEmptyObject = false;
872
+ this.resolvableValue = value;
873
+ }
874
+ else {
875
+ this.isEmptyObject = Object.keys(value).length === 0;
876
+ this.resolvableValue = undefined;
877
+ this._aescbcEncryptionSecret = value.aescbcEncryptionSecret;
878
+ this._bootstrapToken = value.bootstrapToken;
879
+ this._secretboxEncryptionSecret = value.secretboxEncryptionSecret;
880
+ }
881
+ }
882
+ // aescbc_encryption_secret - computed: false, optional: true, required: false
883
+ _aescbcEncryptionSecret;
884
+ get aescbcEncryptionSecret() {
885
+ return this.getStringAttribute('aescbc_encryption_secret');
886
+ }
887
+ set aescbcEncryptionSecret(value) {
888
+ this._aescbcEncryptionSecret = value;
889
+ }
890
+ resetAescbcEncryptionSecret() {
891
+ this._aescbcEncryptionSecret = undefined;
892
+ }
893
+ // Temporarily expose input value. Use with caution.
894
+ get aescbcEncryptionSecretInput() {
895
+ return this._aescbcEncryptionSecret;
896
+ }
897
+ // bootstrap_token - computed: false, optional: false, required: true
898
+ _bootstrapToken;
899
+ get bootstrapToken() {
900
+ return this.getStringAttribute('bootstrap_token');
901
+ }
902
+ set bootstrapToken(value) {
903
+ this._bootstrapToken = value;
904
+ }
905
+ // Temporarily expose input value. Use with caution.
906
+ get bootstrapTokenInput() {
907
+ return this._bootstrapToken;
908
+ }
909
+ // secretbox_encryption_secret - computed: false, optional: false, required: true
910
+ _secretboxEncryptionSecret;
911
+ get secretboxEncryptionSecret() {
912
+ return this.getStringAttribute('secretbox_encryption_secret');
913
+ }
914
+ set secretboxEncryptionSecret(value) {
915
+ this._secretboxEncryptionSecret = value;
916
+ }
917
+ // Temporarily expose input value. Use with caution.
918
+ get secretboxEncryptionSecretInput() {
919
+ return this._secretboxEncryptionSecret;
920
+ }
921
+ }
922
+ export function dataTalosMachineConfigurationMachineSecretsTrustdinfoToTerraform(struct) {
923
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
924
+ return struct;
925
+ }
926
+ if (cdktf.isComplexElement(struct)) {
927
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
928
+ }
929
+ return {
930
+ token: cdktf.stringToTerraform(struct.token),
931
+ };
932
+ }
933
+ export function dataTalosMachineConfigurationMachineSecretsTrustdinfoToHclTerraform(struct) {
934
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
935
+ return struct;
936
+ }
937
+ if (cdktf.isComplexElement(struct)) {
938
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
939
+ }
940
+ const attrs = {
941
+ token: {
942
+ value: cdktf.stringToHclTerraform(struct.token),
943
+ isBlock: false,
944
+ type: "simple",
945
+ storageClassType: "string",
946
+ },
947
+ };
948
+ // remove undefined attributes
949
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
950
+ }
951
+ export class DataTalosMachineConfigurationMachineSecretsTrustdinfoOutputReference extends cdktf.ComplexObject {
952
+ isEmptyObject = false;
953
+ resolvableValue;
954
+ /**
955
+ * @param terraformResource The parent resource
956
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
957
+ */
958
+ constructor(terraformResource, terraformAttribute) {
959
+ super(terraformResource, terraformAttribute, false);
960
+ }
961
+ get internalValue() {
962
+ if (this.resolvableValue) {
963
+ return this.resolvableValue;
964
+ }
965
+ let hasAnyValues = this.isEmptyObject;
966
+ const internalValueResult = {};
967
+ if (this._token !== undefined) {
968
+ hasAnyValues = true;
969
+ internalValueResult.token = this._token;
970
+ }
971
+ return hasAnyValues ? internalValueResult : undefined;
972
+ }
973
+ set internalValue(value) {
974
+ if (value === undefined) {
975
+ this.isEmptyObject = false;
976
+ this.resolvableValue = undefined;
977
+ this._token = undefined;
978
+ }
979
+ else if (cdktf.Tokenization.isResolvable(value)) {
980
+ this.isEmptyObject = false;
981
+ this.resolvableValue = value;
982
+ }
983
+ else {
984
+ this.isEmptyObject = Object.keys(value).length === 0;
985
+ this.resolvableValue = undefined;
986
+ this._token = value.token;
987
+ }
988
+ }
989
+ // token - computed: false, optional: false, required: true
990
+ _token;
991
+ get token() {
992
+ return this.getStringAttribute('token');
993
+ }
994
+ set token(value) {
995
+ this._token = value;
996
+ }
997
+ // Temporarily expose input value. Use with caution.
998
+ get tokenInput() {
999
+ return this._token;
1000
+ }
1001
+ }
1002
+ export function dataTalosMachineConfigurationMachineSecretsToTerraform(struct) {
1003
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
1004
+ return struct;
1005
+ }
1006
+ if (cdktf.isComplexElement(struct)) {
1007
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
1008
+ }
1009
+ return {
1010
+ certs: dataTalosMachineConfigurationMachineSecretsCertsToTerraform(struct.certs),
1011
+ cluster: dataTalosMachineConfigurationMachineSecretsClusterToTerraform(struct.cluster),
1012
+ secrets: dataTalosMachineConfigurationMachineSecretsSecretsToTerraform(struct.secrets),
1013
+ trustdinfo: dataTalosMachineConfigurationMachineSecretsTrustdinfoToTerraform(struct.trustdinfo),
1014
+ };
1015
+ }
1016
+ export function dataTalosMachineConfigurationMachineSecretsToHclTerraform(struct) {
1017
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
1018
+ return struct;
1019
+ }
1020
+ if (cdktf.isComplexElement(struct)) {
1021
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
1022
+ }
1023
+ const attrs = {
1024
+ certs: {
1025
+ value: dataTalosMachineConfigurationMachineSecretsCertsToHclTerraform(struct.certs),
1026
+ isBlock: true,
1027
+ type: "struct",
1028
+ storageClassType: "DataTalosMachineConfigurationMachineSecretsCerts",
1029
+ },
1030
+ cluster: {
1031
+ value: dataTalosMachineConfigurationMachineSecretsClusterToHclTerraform(struct.cluster),
1032
+ isBlock: true,
1033
+ type: "struct",
1034
+ storageClassType: "DataTalosMachineConfigurationMachineSecretsCluster",
1035
+ },
1036
+ secrets: {
1037
+ value: dataTalosMachineConfigurationMachineSecretsSecretsToHclTerraform(struct.secrets),
1038
+ isBlock: true,
1039
+ type: "struct",
1040
+ storageClassType: "DataTalosMachineConfigurationMachineSecretsSecrets",
1041
+ },
1042
+ trustdinfo: {
1043
+ value: dataTalosMachineConfigurationMachineSecretsTrustdinfoToHclTerraform(struct.trustdinfo),
1044
+ isBlock: true,
1045
+ type: "struct",
1046
+ storageClassType: "DataTalosMachineConfigurationMachineSecretsTrustdinfo",
1047
+ },
1048
+ };
1049
+ // remove undefined attributes
1050
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
1051
+ }
1052
+ export class DataTalosMachineConfigurationMachineSecretsOutputReference extends cdktf.ComplexObject {
1053
+ isEmptyObject = false;
1054
+ resolvableValue;
1055
+ /**
1056
+ * @param terraformResource The parent resource
1057
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
1058
+ */
1059
+ constructor(terraformResource, terraformAttribute) {
1060
+ super(terraformResource, terraformAttribute, false);
1061
+ }
1062
+ get internalValue() {
1063
+ if (this.resolvableValue) {
1064
+ return this.resolvableValue;
1065
+ }
1066
+ let hasAnyValues = this.isEmptyObject;
1067
+ const internalValueResult = {};
1068
+ if (this._certs?.internalValue !== undefined) {
1069
+ hasAnyValues = true;
1070
+ internalValueResult.certs = this._certs?.internalValue;
1071
+ }
1072
+ if (this._cluster?.internalValue !== undefined) {
1073
+ hasAnyValues = true;
1074
+ internalValueResult.cluster = this._cluster?.internalValue;
1075
+ }
1076
+ if (this._secrets?.internalValue !== undefined) {
1077
+ hasAnyValues = true;
1078
+ internalValueResult.secrets = this._secrets?.internalValue;
1079
+ }
1080
+ if (this._trustdinfo?.internalValue !== undefined) {
1081
+ hasAnyValues = true;
1082
+ internalValueResult.trustdinfo = this._trustdinfo?.internalValue;
1083
+ }
1084
+ return hasAnyValues ? internalValueResult : undefined;
1085
+ }
1086
+ set internalValue(value) {
1087
+ if (value === undefined) {
1088
+ this.isEmptyObject = false;
1089
+ this.resolvableValue = undefined;
1090
+ this._certs.internalValue = undefined;
1091
+ this._cluster.internalValue = undefined;
1092
+ this._secrets.internalValue = undefined;
1093
+ this._trustdinfo.internalValue = undefined;
1094
+ }
1095
+ else if (cdktf.Tokenization.isResolvable(value)) {
1096
+ this.isEmptyObject = false;
1097
+ this.resolvableValue = value;
1098
+ }
1099
+ else {
1100
+ this.isEmptyObject = Object.keys(value).length === 0;
1101
+ this.resolvableValue = undefined;
1102
+ this._certs.internalValue = value.certs;
1103
+ this._cluster.internalValue = value.cluster;
1104
+ this._secrets.internalValue = value.secrets;
1105
+ this._trustdinfo.internalValue = value.trustdinfo;
1106
+ }
1107
+ }
1108
+ // certs - computed: false, optional: false, required: true
1109
+ _certs = new DataTalosMachineConfigurationMachineSecretsCertsOutputReference(this, "certs");
1110
+ get certs() {
1111
+ return this._certs;
1112
+ }
1113
+ putCerts(value) {
1114
+ this._certs.internalValue = value;
1115
+ }
1116
+ // Temporarily expose input value. Use with caution.
1117
+ get certsInput() {
1118
+ return this._certs.internalValue;
1119
+ }
1120
+ // cluster - computed: false, optional: false, required: true
1121
+ _cluster = new DataTalosMachineConfigurationMachineSecretsClusterOutputReference(this, "cluster");
1122
+ get cluster() {
1123
+ return this._cluster;
1124
+ }
1125
+ putCluster(value) {
1126
+ this._cluster.internalValue = value;
1127
+ }
1128
+ // Temporarily expose input value. Use with caution.
1129
+ get clusterInput() {
1130
+ return this._cluster.internalValue;
1131
+ }
1132
+ // secrets - computed: false, optional: false, required: true
1133
+ _secrets = new DataTalosMachineConfigurationMachineSecretsSecretsOutputReference(this, "secrets");
1134
+ get secrets() {
1135
+ return this._secrets;
1136
+ }
1137
+ putSecrets(value) {
1138
+ this._secrets.internalValue = value;
1139
+ }
1140
+ // Temporarily expose input value. Use with caution.
1141
+ get secretsInput() {
1142
+ return this._secrets.internalValue;
1143
+ }
1144
+ // trustdinfo - computed: false, optional: false, required: true
1145
+ _trustdinfo = new DataTalosMachineConfigurationMachineSecretsTrustdinfoOutputReference(this, "trustdinfo");
1146
+ get trustdinfo() {
1147
+ return this._trustdinfo;
1148
+ }
1149
+ putTrustdinfo(value) {
1150
+ this._trustdinfo.internalValue = value;
1151
+ }
1152
+ // Temporarily expose input value. Use with caution.
1153
+ get trustdinfoInput() {
1154
+ return this._trustdinfo.internalValue;
1155
+ }
1156
+ }
1157
+ /**
1158
+ * Represents a {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/data-sources/machine_configuration talos_machine_configuration}
1159
+ */
1160
+ export class DataTalosMachineConfiguration extends cdktf.TerraformDataSource {
1161
+ // =================
1162
+ // STATIC PROPERTIES
1163
+ // =================
1164
+ static tfResourceType = "talos_machine_configuration";
1165
+ // ==============
1166
+ // STATIC Methods
1167
+ // ==============
1168
+ /**
1169
+ * Generates CDKTF code for importing a DataTalosMachineConfiguration resource upon running "cdktf plan <stack-name>"
1170
+ * @param scope The scope in which to define this construct
1171
+ * @param importToId The construct id used in the generated config for the DataTalosMachineConfiguration to import
1172
+ * @param importFromId The id of the existing DataTalosMachineConfiguration that should be imported. Refer to the {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/data-sources/machine_configuration#import import section} in the documentation of this resource for the id to use
1173
+ * @param provider? Optional instance of the provider where the DataTalosMachineConfiguration to import is found
1174
+ */
1175
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
1176
+ return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "talos_machine_configuration", importId: importFromId, provider });
1177
+ }
1178
+ // ===========
1179
+ // INITIALIZER
1180
+ // ===========
1181
+ /**
1182
+ * Create a new {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/data-sources/machine_configuration talos_machine_configuration} Data Source
1183
+ *
1184
+ * @param scope The scope in which to define this construct
1185
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
1186
+ * @param options DataTalosMachineConfigurationConfig
1187
+ */
1188
+ constructor(scope, id, config) {
1189
+ super(scope, id, {
1190
+ terraformResourceType: 'talos_machine_configuration',
1191
+ terraformGeneratorMetadata: {
1192
+ providerName: 'talos',
1193
+ providerVersion: '0.9.0',
1194
+ providerVersionConstraint: '0.9.0'
1195
+ },
1196
+ provider: config.provider,
1197
+ dependsOn: config.dependsOn,
1198
+ count: config.count,
1199
+ lifecycle: config.lifecycle,
1200
+ provisioners: config.provisioners,
1201
+ connection: config.connection,
1202
+ forEach: config.forEach
1203
+ });
1204
+ this._clusterEndpoint = config.clusterEndpoint;
1205
+ this._clusterName = config.clusterName;
1206
+ this._configPatches = config.configPatches;
1207
+ this._docs = config.docs;
1208
+ this._examples = config.examples;
1209
+ this._kubernetesVersion = config.kubernetesVersion;
1210
+ this._machineSecrets.internalValue = config.machineSecrets;
1211
+ this._machineType = config.machineType;
1212
+ this._talosVersion = config.talosVersion;
1213
+ }
1214
+ // ==========
1215
+ // ATTRIBUTES
1216
+ // ==========
1217
+ // cluster_endpoint - computed: false, optional: false, required: true
1218
+ _clusterEndpoint;
1219
+ get clusterEndpoint() {
1220
+ return this.getStringAttribute('cluster_endpoint');
1221
+ }
1222
+ set clusterEndpoint(value) {
1223
+ this._clusterEndpoint = value;
1224
+ }
1225
+ // Temporarily expose input value. Use with caution.
1226
+ get clusterEndpointInput() {
1227
+ return this._clusterEndpoint;
1228
+ }
1229
+ // cluster_name - computed: false, optional: false, required: true
1230
+ _clusterName;
1231
+ get clusterName() {
1232
+ return this.getStringAttribute('cluster_name');
1233
+ }
1234
+ set clusterName(value) {
1235
+ this._clusterName = value;
1236
+ }
1237
+ // Temporarily expose input value. Use with caution.
1238
+ get clusterNameInput() {
1239
+ return this._clusterName;
1240
+ }
1241
+ // config_patches - computed: false, optional: true, required: false
1242
+ _configPatches;
1243
+ get configPatches() {
1244
+ return this.getListAttribute('config_patches');
1245
+ }
1246
+ set configPatches(value) {
1247
+ this._configPatches = value;
1248
+ }
1249
+ resetConfigPatches() {
1250
+ this._configPatches = undefined;
1251
+ }
1252
+ // Temporarily expose input value. Use with caution.
1253
+ get configPatchesInput() {
1254
+ return this._configPatches;
1255
+ }
1256
+ // docs - computed: false, optional: true, required: false
1257
+ _docs;
1258
+ get docs() {
1259
+ return this.getBooleanAttribute('docs');
1260
+ }
1261
+ set docs(value) {
1262
+ this._docs = value;
1263
+ }
1264
+ resetDocs() {
1265
+ this._docs = undefined;
1266
+ }
1267
+ // Temporarily expose input value. Use with caution.
1268
+ get docsInput() {
1269
+ return this._docs;
1270
+ }
1271
+ // examples - computed: false, optional: true, required: false
1272
+ _examples;
1273
+ get examples() {
1274
+ return this.getBooleanAttribute('examples');
1275
+ }
1276
+ set examples(value) {
1277
+ this._examples = value;
1278
+ }
1279
+ resetExamples() {
1280
+ this._examples = undefined;
1281
+ }
1282
+ // Temporarily expose input value. Use with caution.
1283
+ get examplesInput() {
1284
+ return this._examples;
1285
+ }
1286
+ // id - computed: true, optional: false, required: false
1287
+ get id() {
1288
+ return this.getStringAttribute('id');
1289
+ }
1290
+ // kubernetes_version - computed: false, optional: true, required: false
1291
+ _kubernetesVersion;
1292
+ get kubernetesVersion() {
1293
+ return this.getStringAttribute('kubernetes_version');
1294
+ }
1295
+ set kubernetesVersion(value) {
1296
+ this._kubernetesVersion = value;
1297
+ }
1298
+ resetKubernetesVersion() {
1299
+ this._kubernetesVersion = undefined;
1300
+ }
1301
+ // Temporarily expose input value. Use with caution.
1302
+ get kubernetesVersionInput() {
1303
+ return this._kubernetesVersion;
1304
+ }
1305
+ // machine_configuration - computed: true, optional: false, required: false
1306
+ get machineConfiguration() {
1307
+ return this.getStringAttribute('machine_configuration');
1308
+ }
1309
+ // machine_secrets - computed: false, optional: false, required: true
1310
+ _machineSecrets = new DataTalosMachineConfigurationMachineSecretsOutputReference(this, "machine_secrets");
1311
+ get machineSecrets() {
1312
+ return this._machineSecrets;
1313
+ }
1314
+ putMachineSecrets(value) {
1315
+ this._machineSecrets.internalValue = value;
1316
+ }
1317
+ // Temporarily expose input value. Use with caution.
1318
+ get machineSecretsInput() {
1319
+ return this._machineSecrets.internalValue;
1320
+ }
1321
+ // machine_type - computed: false, optional: false, required: true
1322
+ _machineType;
1323
+ get machineType() {
1324
+ return this.getStringAttribute('machine_type');
1325
+ }
1326
+ set machineType(value) {
1327
+ this._machineType = value;
1328
+ }
1329
+ // Temporarily expose input value. Use with caution.
1330
+ get machineTypeInput() {
1331
+ return this._machineType;
1332
+ }
1333
+ // talos_version - computed: false, optional: true, required: false
1334
+ _talosVersion;
1335
+ get talosVersion() {
1336
+ return this.getStringAttribute('talos_version');
1337
+ }
1338
+ set talosVersion(value) {
1339
+ this._talosVersion = value;
1340
+ }
1341
+ resetTalosVersion() {
1342
+ this._talosVersion = undefined;
1343
+ }
1344
+ // Temporarily expose input value. Use with caution.
1345
+ get talosVersionInput() {
1346
+ return this._talosVersion;
1347
+ }
1348
+ // =========
1349
+ // SYNTHESIS
1350
+ // =========
1351
+ synthesizeAttributes() {
1352
+ return {
1353
+ cluster_endpoint: cdktf.stringToTerraform(this._clusterEndpoint),
1354
+ cluster_name: cdktf.stringToTerraform(this._clusterName),
1355
+ config_patches: cdktf.listMapper(cdktf.stringToTerraform, false)(this._configPatches),
1356
+ docs: cdktf.booleanToTerraform(this._docs),
1357
+ examples: cdktf.booleanToTerraform(this._examples),
1358
+ kubernetes_version: cdktf.stringToTerraform(this._kubernetesVersion),
1359
+ machine_secrets: dataTalosMachineConfigurationMachineSecretsToTerraform(this._machineSecrets.internalValue),
1360
+ machine_type: cdktf.stringToTerraform(this._machineType),
1361
+ talos_version: cdktf.stringToTerraform(this._talosVersion),
1362
+ };
1363
+ }
1364
+ synthesizeHclAttributes() {
1365
+ const attrs = {
1366
+ cluster_endpoint: {
1367
+ value: cdktf.stringToHclTerraform(this._clusterEndpoint),
1368
+ isBlock: false,
1369
+ type: "simple",
1370
+ storageClassType: "string",
1371
+ },
1372
+ cluster_name: {
1373
+ value: cdktf.stringToHclTerraform(this._clusterName),
1374
+ isBlock: false,
1375
+ type: "simple",
1376
+ storageClassType: "string",
1377
+ },
1378
+ config_patches: {
1379
+ value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._configPatches),
1380
+ isBlock: false,
1381
+ type: "list",
1382
+ storageClassType: "stringList",
1383
+ },
1384
+ docs: {
1385
+ value: cdktf.booleanToHclTerraform(this._docs),
1386
+ isBlock: false,
1387
+ type: "simple",
1388
+ storageClassType: "boolean",
1389
+ },
1390
+ examples: {
1391
+ value: cdktf.booleanToHclTerraform(this._examples),
1392
+ isBlock: false,
1393
+ type: "simple",
1394
+ storageClassType: "boolean",
1395
+ },
1396
+ kubernetes_version: {
1397
+ value: cdktf.stringToHclTerraform(this._kubernetesVersion),
1398
+ isBlock: false,
1399
+ type: "simple",
1400
+ storageClassType: "string",
1401
+ },
1402
+ machine_secrets: {
1403
+ value: dataTalosMachineConfigurationMachineSecretsToHclTerraform(this._machineSecrets.internalValue),
1404
+ isBlock: true,
1405
+ type: "struct",
1406
+ storageClassType: "DataTalosMachineConfigurationMachineSecrets",
1407
+ },
1408
+ machine_type: {
1409
+ value: cdktf.stringToHclTerraform(this._machineType),
1410
+ isBlock: false,
1411
+ type: "simple",
1412
+ storageClassType: "string",
1413
+ },
1414
+ talos_version: {
1415
+ value: cdktf.stringToHclTerraform(this._talosVersion),
1416
+ isBlock: false,
1417
+ type: "simple",
1418
+ storageClassType: "string",
1419
+ },
1420
+ };
1421
+ // remove undefined attributes
1422
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
1423
+ }
1424
+ }