@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,489 @@
1
+ // https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/resources/cluster_kubeconfig
2
+ // generated from terraform resource schema
3
+ import * as cdktf from 'cdktf';
4
+ export function clusterKubeconfigClientConfigurationToTerraform(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
+ ca_certificate: cdktf.stringToTerraform(struct.caCertificate),
13
+ client_certificate: cdktf.stringToTerraform(struct.clientCertificate),
14
+ client_key: cdktf.stringToTerraform(struct.clientKey),
15
+ };
16
+ }
17
+ export function clusterKubeconfigClientConfigurationToHclTerraform(struct) {
18
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
19
+ return struct;
20
+ }
21
+ if (cdktf.isComplexElement(struct)) {
22
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
23
+ }
24
+ const attrs = {
25
+ ca_certificate: {
26
+ value: cdktf.stringToHclTerraform(struct.caCertificate),
27
+ isBlock: false,
28
+ type: "simple",
29
+ storageClassType: "string",
30
+ },
31
+ client_certificate: {
32
+ value: cdktf.stringToHclTerraform(struct.clientCertificate),
33
+ isBlock: false,
34
+ type: "simple",
35
+ storageClassType: "string",
36
+ },
37
+ client_key: {
38
+ value: cdktf.stringToHclTerraform(struct.clientKey),
39
+ isBlock: false,
40
+ type: "simple",
41
+ storageClassType: "string",
42
+ },
43
+ };
44
+ // remove undefined attributes
45
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
46
+ }
47
+ export class ClusterKubeconfigClientConfigurationOutputReference extends cdktf.ComplexObject {
48
+ isEmptyObject = false;
49
+ resolvableValue;
50
+ /**
51
+ * @param terraformResource The parent resource
52
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
53
+ */
54
+ constructor(terraformResource, terraformAttribute) {
55
+ super(terraformResource, terraformAttribute, false);
56
+ }
57
+ get internalValue() {
58
+ if (this.resolvableValue) {
59
+ return this.resolvableValue;
60
+ }
61
+ let hasAnyValues = this.isEmptyObject;
62
+ const internalValueResult = {};
63
+ if (this._caCertificate !== undefined) {
64
+ hasAnyValues = true;
65
+ internalValueResult.caCertificate = this._caCertificate;
66
+ }
67
+ if (this._clientCertificate !== undefined) {
68
+ hasAnyValues = true;
69
+ internalValueResult.clientCertificate = this._clientCertificate;
70
+ }
71
+ if (this._clientKey !== undefined) {
72
+ hasAnyValues = true;
73
+ internalValueResult.clientKey = this._clientKey;
74
+ }
75
+ return hasAnyValues ? internalValueResult : undefined;
76
+ }
77
+ set internalValue(value) {
78
+ if (value === undefined) {
79
+ this.isEmptyObject = false;
80
+ this.resolvableValue = undefined;
81
+ this._caCertificate = undefined;
82
+ this._clientCertificate = undefined;
83
+ this._clientKey = undefined;
84
+ }
85
+ else if (cdktf.Tokenization.isResolvable(value)) {
86
+ this.isEmptyObject = false;
87
+ this.resolvableValue = value;
88
+ }
89
+ else {
90
+ this.isEmptyObject = Object.keys(value).length === 0;
91
+ this.resolvableValue = undefined;
92
+ this._caCertificate = value.caCertificate;
93
+ this._clientCertificate = value.clientCertificate;
94
+ this._clientKey = value.clientKey;
95
+ }
96
+ }
97
+ // ca_certificate - computed: false, optional: false, required: true
98
+ _caCertificate;
99
+ get caCertificate() {
100
+ return this.getStringAttribute('ca_certificate');
101
+ }
102
+ set caCertificate(value) {
103
+ this._caCertificate = value;
104
+ }
105
+ // Temporarily expose input value. Use with caution.
106
+ get caCertificateInput() {
107
+ return this._caCertificate;
108
+ }
109
+ // client_certificate - computed: false, optional: false, required: true
110
+ _clientCertificate;
111
+ get clientCertificate() {
112
+ return this.getStringAttribute('client_certificate');
113
+ }
114
+ set clientCertificate(value) {
115
+ this._clientCertificate = value;
116
+ }
117
+ // Temporarily expose input value. Use with caution.
118
+ get clientCertificateInput() {
119
+ return this._clientCertificate;
120
+ }
121
+ // client_key - computed: false, optional: false, required: true
122
+ _clientKey;
123
+ get clientKey() {
124
+ return this.getStringAttribute('client_key');
125
+ }
126
+ set clientKey(value) {
127
+ this._clientKey = value;
128
+ }
129
+ // Temporarily expose input value. Use with caution.
130
+ get clientKeyInput() {
131
+ return this._clientKey;
132
+ }
133
+ }
134
+ export function clusterKubeconfigKubernetesClientConfigurationToTerraform(struct) {
135
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
136
+ return struct;
137
+ }
138
+ if (cdktf.isComplexElement(struct)) {
139
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
140
+ }
141
+ return {};
142
+ }
143
+ export function clusterKubeconfigKubernetesClientConfigurationToHclTerraform(struct) {
144
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
145
+ return struct;
146
+ }
147
+ if (cdktf.isComplexElement(struct)) {
148
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
149
+ }
150
+ const attrs = {};
151
+ return attrs;
152
+ }
153
+ export class ClusterKubeconfigKubernetesClientConfigurationOutputReference extends cdktf.ComplexObject {
154
+ isEmptyObject = false;
155
+ /**
156
+ * @param terraformResource The parent resource
157
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
158
+ */
159
+ constructor(terraformResource, terraformAttribute) {
160
+ super(terraformResource, terraformAttribute, false);
161
+ }
162
+ get internalValue() {
163
+ let hasAnyValues = this.isEmptyObject;
164
+ const internalValueResult = {};
165
+ return hasAnyValues ? internalValueResult : undefined;
166
+ }
167
+ set internalValue(value) {
168
+ if (value === undefined) {
169
+ this.isEmptyObject = false;
170
+ }
171
+ else {
172
+ this.isEmptyObject = Object.keys(value).length === 0;
173
+ }
174
+ }
175
+ // ca_certificate - computed: true, optional: false, required: false
176
+ get caCertificate() {
177
+ return this.getStringAttribute('ca_certificate');
178
+ }
179
+ // client_certificate - computed: true, optional: false, required: false
180
+ get clientCertificate() {
181
+ return this.getStringAttribute('client_certificate');
182
+ }
183
+ // client_key - computed: true, optional: false, required: false
184
+ get clientKey() {
185
+ return this.getStringAttribute('client_key');
186
+ }
187
+ // host - computed: true, optional: false, required: false
188
+ get host() {
189
+ return this.getStringAttribute('host');
190
+ }
191
+ }
192
+ export function clusterKubeconfigTimeoutsToTerraform(struct) {
193
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
194
+ return struct;
195
+ }
196
+ if (cdktf.isComplexElement(struct)) {
197
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
198
+ }
199
+ return {
200
+ create: cdktf.stringToTerraform(struct.create),
201
+ update: cdktf.stringToTerraform(struct.update),
202
+ };
203
+ }
204
+ export function clusterKubeconfigTimeoutsToHclTerraform(struct) {
205
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
206
+ return struct;
207
+ }
208
+ if (cdktf.isComplexElement(struct)) {
209
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
210
+ }
211
+ const attrs = {
212
+ create: {
213
+ value: cdktf.stringToHclTerraform(struct.create),
214
+ isBlock: false,
215
+ type: "simple",
216
+ storageClassType: "string",
217
+ },
218
+ update: {
219
+ value: cdktf.stringToHclTerraform(struct.update),
220
+ isBlock: false,
221
+ type: "simple",
222
+ storageClassType: "string",
223
+ },
224
+ };
225
+ // remove undefined attributes
226
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
227
+ }
228
+ export class ClusterKubeconfigTimeoutsOutputReference extends cdktf.ComplexObject {
229
+ isEmptyObject = false;
230
+ resolvableValue;
231
+ /**
232
+ * @param terraformResource The parent resource
233
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
234
+ */
235
+ constructor(terraformResource, terraformAttribute) {
236
+ super(terraformResource, terraformAttribute, false);
237
+ }
238
+ get internalValue() {
239
+ if (this.resolvableValue) {
240
+ return this.resolvableValue;
241
+ }
242
+ let hasAnyValues = this.isEmptyObject;
243
+ const internalValueResult = {};
244
+ if (this._create !== undefined) {
245
+ hasAnyValues = true;
246
+ internalValueResult.create = this._create;
247
+ }
248
+ if (this._update !== undefined) {
249
+ hasAnyValues = true;
250
+ internalValueResult.update = this._update;
251
+ }
252
+ return hasAnyValues ? internalValueResult : undefined;
253
+ }
254
+ set internalValue(value) {
255
+ if (value === undefined) {
256
+ this.isEmptyObject = false;
257
+ this.resolvableValue = undefined;
258
+ this._create = undefined;
259
+ this._update = undefined;
260
+ }
261
+ else if (cdktf.Tokenization.isResolvable(value)) {
262
+ this.isEmptyObject = false;
263
+ this.resolvableValue = value;
264
+ }
265
+ else {
266
+ this.isEmptyObject = Object.keys(value).length === 0;
267
+ this.resolvableValue = undefined;
268
+ this._create = value.create;
269
+ this._update = value.update;
270
+ }
271
+ }
272
+ // create - computed: false, optional: true, required: false
273
+ _create;
274
+ get create() {
275
+ return this.getStringAttribute('create');
276
+ }
277
+ set create(value) {
278
+ this._create = value;
279
+ }
280
+ resetCreate() {
281
+ this._create = undefined;
282
+ }
283
+ // Temporarily expose input value. Use with caution.
284
+ get createInput() {
285
+ return this._create;
286
+ }
287
+ // update - computed: false, optional: true, required: false
288
+ _update;
289
+ get update() {
290
+ return this.getStringAttribute('update');
291
+ }
292
+ set update(value) {
293
+ this._update = value;
294
+ }
295
+ resetUpdate() {
296
+ this._update = undefined;
297
+ }
298
+ // Temporarily expose input value. Use with caution.
299
+ get updateInput() {
300
+ return this._update;
301
+ }
302
+ }
303
+ /**
304
+ * Represents a {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/resources/cluster_kubeconfig talos_cluster_kubeconfig}
305
+ */
306
+ export class ClusterKubeconfig extends cdktf.TerraformResource {
307
+ // =================
308
+ // STATIC PROPERTIES
309
+ // =================
310
+ static tfResourceType = "talos_cluster_kubeconfig";
311
+ // ==============
312
+ // STATIC Methods
313
+ // ==============
314
+ /**
315
+ * Generates CDKTF code for importing a ClusterKubeconfig resource upon running "cdktf plan <stack-name>"
316
+ * @param scope The scope in which to define this construct
317
+ * @param importToId The construct id used in the generated config for the ClusterKubeconfig to import
318
+ * @param importFromId The id of the existing ClusterKubeconfig that should be imported. Refer to the {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/resources/cluster_kubeconfig#import import section} in the documentation of this resource for the id to use
319
+ * @param provider? Optional instance of the provider where the ClusterKubeconfig to import is found
320
+ */
321
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
322
+ return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "talos_cluster_kubeconfig", importId: importFromId, provider });
323
+ }
324
+ // ===========
325
+ // INITIALIZER
326
+ // ===========
327
+ /**
328
+ * Create a new {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/resources/cluster_kubeconfig talos_cluster_kubeconfig} Resource
329
+ *
330
+ * @param scope The scope in which to define this construct
331
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
332
+ * @param options ClusterKubeconfigConfig
333
+ */
334
+ constructor(scope, id, config) {
335
+ super(scope, id, {
336
+ terraformResourceType: 'talos_cluster_kubeconfig',
337
+ terraformGeneratorMetadata: {
338
+ providerName: 'talos',
339
+ providerVersion: '0.9.0',
340
+ providerVersionConstraint: '0.9.0'
341
+ },
342
+ provider: config.provider,
343
+ dependsOn: config.dependsOn,
344
+ count: config.count,
345
+ lifecycle: config.lifecycle,
346
+ provisioners: config.provisioners,
347
+ connection: config.connection,
348
+ forEach: config.forEach
349
+ });
350
+ this._certificateRenewalDuration = config.certificateRenewalDuration;
351
+ this._clientConfiguration.internalValue = config.clientConfiguration;
352
+ this._endpoint = config.endpoint;
353
+ this._node = config.nodeAttribute;
354
+ this._timeouts.internalValue = config.timeouts;
355
+ }
356
+ // ==========
357
+ // ATTRIBUTES
358
+ // ==========
359
+ // certificate_renewal_duration - computed: true, optional: true, required: false
360
+ _certificateRenewalDuration;
361
+ get certificateRenewalDuration() {
362
+ return this.getStringAttribute('certificate_renewal_duration');
363
+ }
364
+ set certificateRenewalDuration(value) {
365
+ this._certificateRenewalDuration = value;
366
+ }
367
+ resetCertificateRenewalDuration() {
368
+ this._certificateRenewalDuration = undefined;
369
+ }
370
+ // Temporarily expose input value. Use with caution.
371
+ get certificateRenewalDurationInput() {
372
+ return this._certificateRenewalDuration;
373
+ }
374
+ // client_configuration - computed: false, optional: false, required: true
375
+ _clientConfiguration = new ClusterKubeconfigClientConfigurationOutputReference(this, "client_configuration");
376
+ get clientConfiguration() {
377
+ return this._clientConfiguration;
378
+ }
379
+ putClientConfiguration(value) {
380
+ this._clientConfiguration.internalValue = value;
381
+ }
382
+ // Temporarily expose input value. Use with caution.
383
+ get clientConfigurationInput() {
384
+ return this._clientConfiguration.internalValue;
385
+ }
386
+ // endpoint - computed: true, optional: true, required: false
387
+ _endpoint;
388
+ get endpoint() {
389
+ return this.getStringAttribute('endpoint');
390
+ }
391
+ set endpoint(value) {
392
+ this._endpoint = value;
393
+ }
394
+ resetEndpoint() {
395
+ this._endpoint = undefined;
396
+ }
397
+ // Temporarily expose input value. Use with caution.
398
+ get endpointInput() {
399
+ return this._endpoint;
400
+ }
401
+ // id - computed: true, optional: false, required: false
402
+ get id() {
403
+ return this.getStringAttribute('id');
404
+ }
405
+ // kubeconfig_raw - computed: true, optional: false, required: false
406
+ get kubeconfigRaw() {
407
+ return this.getStringAttribute('kubeconfig_raw');
408
+ }
409
+ // kubernetes_client_configuration - computed: true, optional: false, required: false
410
+ _kubernetesClientConfiguration = new ClusterKubeconfigKubernetesClientConfigurationOutputReference(this, "kubernetes_client_configuration");
411
+ get kubernetesClientConfiguration() {
412
+ return this._kubernetesClientConfiguration;
413
+ }
414
+ // node - computed: false, optional: false, required: true
415
+ _node;
416
+ get nodeAttribute() {
417
+ return this.getStringAttribute('node');
418
+ }
419
+ set nodeAttribute(value) {
420
+ this._node = value;
421
+ }
422
+ // Temporarily expose input value. Use with caution.
423
+ get nodeAttributeInput() {
424
+ return this._node;
425
+ }
426
+ // timeouts - computed: false, optional: true, required: false
427
+ _timeouts = new ClusterKubeconfigTimeoutsOutputReference(this, "timeouts");
428
+ get timeouts() {
429
+ return this._timeouts;
430
+ }
431
+ putTimeouts(value) {
432
+ this._timeouts.internalValue = value;
433
+ }
434
+ resetTimeouts() {
435
+ this._timeouts.internalValue = undefined;
436
+ }
437
+ // Temporarily expose input value. Use with caution.
438
+ get timeoutsInput() {
439
+ return this._timeouts.internalValue;
440
+ }
441
+ // =========
442
+ // SYNTHESIS
443
+ // =========
444
+ synthesizeAttributes() {
445
+ return {
446
+ certificate_renewal_duration: cdktf.stringToTerraform(this._certificateRenewalDuration),
447
+ client_configuration: clusterKubeconfigClientConfigurationToTerraform(this._clientConfiguration.internalValue),
448
+ endpoint: cdktf.stringToTerraform(this._endpoint),
449
+ node: cdktf.stringToTerraform(this._node),
450
+ timeouts: clusterKubeconfigTimeoutsToTerraform(this._timeouts.internalValue),
451
+ };
452
+ }
453
+ synthesizeHclAttributes() {
454
+ const attrs = {
455
+ certificate_renewal_duration: {
456
+ value: cdktf.stringToHclTerraform(this._certificateRenewalDuration),
457
+ isBlock: false,
458
+ type: "simple",
459
+ storageClassType: "string",
460
+ },
461
+ client_configuration: {
462
+ value: clusterKubeconfigClientConfigurationToHclTerraform(this._clientConfiguration.internalValue),
463
+ isBlock: true,
464
+ type: "struct",
465
+ storageClassType: "ClusterKubeconfigClientConfiguration",
466
+ },
467
+ endpoint: {
468
+ value: cdktf.stringToHclTerraform(this._endpoint),
469
+ isBlock: false,
470
+ type: "simple",
471
+ storageClassType: "string",
472
+ },
473
+ node: {
474
+ value: cdktf.stringToHclTerraform(this._node),
475
+ isBlock: false,
476
+ type: "simple",
477
+ storageClassType: "string",
478
+ },
479
+ timeouts: {
480
+ value: clusterKubeconfigTimeoutsToHclTerraform(this._timeouts.internalValue),
481
+ isBlock: true,
482
+ type: "struct",
483
+ storageClassType: "ClusterKubeconfigTimeouts",
484
+ },
485
+ };
486
+ // remove undefined attributes
487
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
488
+ }
489
+ }
@@ -0,0 +1,121 @@
1
+ import { Construct } from 'constructs';
2
+ import * as cdktf from 'cdktf';
3
+ export interface DataTalosClientConfigurationConfig extends cdktf.TerraformMetaArguments {
4
+ /**
5
+ * The client configuration data
6
+ *
7
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/data-sources/client_configuration#client_configuration DataTalosClientConfiguration#client_configuration}
8
+ */
9
+ readonly clientConfiguration: DataTalosClientConfigurationClientConfiguration;
10
+ /**
11
+ * The name of the cluster in the generated config
12
+ *
13
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/data-sources/client_configuration#cluster_name DataTalosClientConfiguration#cluster_name}
14
+ */
15
+ readonly clusterName: string;
16
+ /**
17
+ * endpoints to set in the generated config
18
+ *
19
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/data-sources/client_configuration#endpoints DataTalosClientConfiguration#endpoints}
20
+ */
21
+ readonly endpoints?: string[];
22
+ /**
23
+ * nodes to set in the generated config
24
+ *
25
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/data-sources/client_configuration#nodes DataTalosClientConfiguration#nodes}
26
+ */
27
+ readonly nodes?: string[];
28
+ }
29
+ export interface DataTalosClientConfigurationClientConfiguration {
30
+ /**
31
+ * The client CA certificate
32
+ *
33
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/data-sources/client_configuration#ca_certificate DataTalosClientConfiguration#ca_certificate}
34
+ */
35
+ readonly caCertificate: string;
36
+ /**
37
+ * The client certificate
38
+ *
39
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/data-sources/client_configuration#client_certificate DataTalosClientConfiguration#client_certificate}
40
+ */
41
+ readonly clientCertificate: string;
42
+ /**
43
+ * The client key
44
+ *
45
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/data-sources/client_configuration#client_key DataTalosClientConfiguration#client_key}
46
+ */
47
+ readonly clientKey: string;
48
+ }
49
+ export declare function dataTalosClientConfigurationClientConfigurationToTerraform(struct?: DataTalosClientConfigurationClientConfiguration | cdktf.IResolvable): any;
50
+ export declare function dataTalosClientConfigurationClientConfigurationToHclTerraform(struct?: DataTalosClientConfigurationClientConfiguration | cdktf.IResolvable): any;
51
+ export declare class DataTalosClientConfigurationClientConfigurationOutputReference extends cdktf.ComplexObject {
52
+ private isEmptyObject;
53
+ private resolvableValue?;
54
+ /**
55
+ * @param terraformResource The parent resource
56
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
57
+ */
58
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
59
+ get internalValue(): DataTalosClientConfigurationClientConfiguration | cdktf.IResolvable | undefined;
60
+ set internalValue(value: DataTalosClientConfigurationClientConfiguration | cdktf.IResolvable | undefined);
61
+ private _caCertificate?;
62
+ get caCertificate(): string;
63
+ set caCertificate(value: string);
64
+ get caCertificateInput(): string;
65
+ private _clientCertificate?;
66
+ get clientCertificate(): string;
67
+ set clientCertificate(value: string);
68
+ get clientCertificateInput(): string;
69
+ private _clientKey?;
70
+ get clientKey(): string;
71
+ set clientKey(value: string);
72
+ get clientKeyInput(): string;
73
+ }
74
+ /**
75
+ * Represents a {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/data-sources/client_configuration talos_client_configuration}
76
+ */
77
+ export declare class DataTalosClientConfiguration extends cdktf.TerraformDataSource {
78
+ static readonly tfResourceType = "talos_client_configuration";
79
+ /**
80
+ * Generates CDKTF code for importing a DataTalosClientConfiguration resource upon running "cdktf plan <stack-name>"
81
+ * @param scope The scope in which to define this construct
82
+ * @param importToId The construct id used in the generated config for the DataTalosClientConfiguration to import
83
+ * @param importFromId The id of the existing DataTalosClientConfiguration that should be imported. Refer to the {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/data-sources/client_configuration#import import section} in the documentation of this resource for the id to use
84
+ * @param provider? Optional instance of the provider where the DataTalosClientConfiguration to import is found
85
+ */
86
+ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
87
+ /**
88
+ * Create a new {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/data-sources/client_configuration talos_client_configuration} Data Source
89
+ *
90
+ * @param scope The scope in which to define this construct
91
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
92
+ * @param options DataTalosClientConfigurationConfig
93
+ */
94
+ constructor(scope: Construct, id: string, config: DataTalosClientConfigurationConfig);
95
+ private _clientConfiguration;
96
+ get clientConfiguration(): DataTalosClientConfigurationClientConfigurationOutputReference;
97
+ putClientConfiguration(value: DataTalosClientConfigurationClientConfiguration): void;
98
+ get clientConfigurationInput(): any;
99
+ private _clusterName?;
100
+ get clusterName(): string;
101
+ set clusterName(value: string);
102
+ get clusterNameInput(): string;
103
+ private _endpoints?;
104
+ get endpoints(): string[];
105
+ set endpoints(value: string[]);
106
+ resetEndpoints(): void;
107
+ get endpointsInput(): string[];
108
+ get id(): any;
109
+ private _nodes?;
110
+ get nodes(): string[];
111
+ set nodes(value: string[]);
112
+ resetNodes(): void;
113
+ get nodesInput(): string[];
114
+ get talosConfig(): any;
115
+ protected synthesizeAttributes(): {
116
+ [name: string]: any;
117
+ };
118
+ protected synthesizeHclAttributes(): {
119
+ [name: string]: any;
120
+ };
121
+ }