@cdktf-providers/edge-center-edgecenter 0.10.4

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 (173) hide show
  1. package/LICENSE +355 -0
  2. package/README.md +19 -0
  3. package/dist/baremetal/index.d.ts +528 -0
  4. package/dist/baremetal/index.js +1250 -0
  5. package/dist/cdn-lecert/index.d.ts +76 -0
  6. package/dist/cdn-lecert/index.js +157 -0
  7. package/dist/cdn-origingroup/index.d.ts +237 -0
  8. package/dist/cdn-origingroup/index.js +560 -0
  9. package/dist/cdn-resource/index.d.ts +2223 -0
  10. package/dist/cdn-resource/index.js +5865 -0
  11. package/dist/cdn-rule/index.d.ts +2037 -0
  12. package/dist/cdn-rule/index.js +5381 -0
  13. package/dist/cdn-shielding/index.d.ts +64 -0
  14. package/dist/cdn-shielding/index.js +131 -0
  15. package/dist/cdn-sslcert/index.d.ts +76 -0
  16. package/dist/cdn-sslcert/index.js +159 -0
  17. package/dist/data-edgecenter-availability-zone/index.d.ts +67 -0
  18. package/dist/data-edgecenter-availability-zone/index.js +141 -0
  19. package/dist/data-edgecenter-cdn-shielding-location/index.d.ts +54 -0
  20. package/dist/data-edgecenter-cdn-shielding-location/index.js +111 -0
  21. package/dist/data-edgecenter-floatingip/index.d.ts +183 -0
  22. package/dist/data-edgecenter-floatingip/index.js +378 -0
  23. package/dist/data-edgecenter-image/index.d.ts +183 -0
  24. package/dist/data-edgecenter-image/index.js +378 -0
  25. package/dist/data-edgecenter-instance/index.d.ts +312 -0
  26. package/dist/data-edgecenter-instance/index.js +690 -0
  27. package/dist/data-edgecenter-instance-port-security/index.d.ts +110 -0
  28. package/dist/data-edgecenter-instance-port-security/index.js +231 -0
  29. package/dist/data-edgecenter-instance-v2/index.d.ts +222 -0
  30. package/dist/data-edgecenter-instance-v2/index.js +501 -0
  31. package/dist/data-edgecenter-k8s/index.d.ts +167 -0
  32. package/dist/data-edgecenter-k8s/index.js +412 -0
  33. package/dist/data-edgecenter-k8s-client-config/index.d.ts +100 -0
  34. package/dist/data-edgecenter-k8s-client-config/index.js +211 -0
  35. package/dist/data-edgecenter-k8s-pool/index.d.ts +120 -0
  36. package/dist/data-edgecenter-k8s-pool/index.js +271 -0
  37. package/dist/data-edgecenter-lb-l7policy/index.d.ts +114 -0
  38. package/dist/data-edgecenter-lb-l7policy/index.js +258 -0
  39. package/dist/data-edgecenter-lb-l7rule/index.d.ts +120 -0
  40. package/dist/data-edgecenter-lb-l7rule/index.js +262 -0
  41. package/dist/data-edgecenter-lblistener/index.d.ts +122 -0
  42. package/dist/data-edgecenter-lblistener/index.js +269 -0
  43. package/dist/data-edgecenter-lbpool/index.d.ts +204 -0
  44. package/dist/data-edgecenter-lbpool/index.js +454 -0
  45. package/dist/data-edgecenter-loadbalancer/index.d.ts +203 -0
  46. package/dist/data-edgecenter-loadbalancer/index.js +427 -0
  47. package/dist/data-edgecenter-loadbalancerv2/index.d.ts +169 -0
  48. package/dist/data-edgecenter-loadbalancerv2/index.js +343 -0
  49. package/dist/data-edgecenter-network/index.d.ts +270 -0
  50. package/dist/data-edgecenter-network/index.js +589 -0
  51. package/dist/data-edgecenter-project/index.d.ts +72 -0
  52. package/dist/data-edgecenter-project/index.js +153 -0
  53. package/dist/data-edgecenter-region/index.d.ts +54 -0
  54. package/dist/data-edgecenter-region/index.js +111 -0
  55. package/dist/data-edgecenter-reseller-images/index.d.ts +91 -0
  56. package/dist/data-edgecenter-reseller-images/index.js +198 -0
  57. package/dist/data-edgecenter-reseller-images-v2/index.d.ts +101 -0
  58. package/dist/data-edgecenter-reseller-images-v2/index.js +218 -0
  59. package/dist/data-edgecenter-reseller-networks/index.d.ts +269 -0
  60. package/dist/data-edgecenter-reseller-networks/index.js +610 -0
  61. package/dist/data-edgecenter-reservedfixedip/index.d.ts +141 -0
  62. package/dist/data-edgecenter-reservedfixedip/index.js +311 -0
  63. package/dist/data-edgecenter-router/index.d.ts +245 -0
  64. package/dist/data-edgecenter-router/index.js +538 -0
  65. package/dist/data-edgecenter-secret/index.d.ts +109 -0
  66. package/dist/data-edgecenter-secret/index.js +235 -0
  67. package/dist/data-edgecenter-securitygroup/index.d.ts +211 -0
  68. package/dist/data-edgecenter-securitygroup/index.js +450 -0
  69. package/dist/data-edgecenter-servergroup/index.d.ts +137 -0
  70. package/dist/data-edgecenter-servergroup/index.js +289 -0
  71. package/dist/data-edgecenter-snapshot/index.d.ts +129 -0
  72. package/dist/data-edgecenter-snapshot/index.js +281 -0
  73. package/dist/data-edgecenter-storage-s3/index.d.ts +71 -0
  74. package/dist/data-edgecenter-storage-s3/index.js +157 -0
  75. package/dist/data-edgecenter-storage-s3-bucket/index.d.ts +64 -0
  76. package/dist/data-edgecenter-storage-s3-bucket/index.js +131 -0
  77. package/dist/data-edgecenter-subnet/index.d.ts +253 -0
  78. package/dist/data-edgecenter-subnet/index.js +536 -0
  79. package/dist/data-edgecenter-useractions-subscription-amqp/index.d.ts +48 -0
  80. package/dist/data-edgecenter-useractions-subscription-amqp/index.js +107 -0
  81. package/dist/data-edgecenter-useractions-subscription-log/index.d.ts +47 -0
  82. package/dist/data-edgecenter-useractions-subscription-log/index.js +103 -0
  83. package/dist/data-edgecenter-volume/index.d.ts +169 -0
  84. package/dist/data-edgecenter-volume/index.js +343 -0
  85. package/dist/dns-zone/index.d.ts +54 -0
  86. package/dist/dns-zone/index.js +111 -0
  87. package/dist/dns-zone-record/index.d.ts +494 -0
  88. package/dist/dns-zone-record/index.js +1217 -0
  89. package/dist/floatingip/index.d.ts +185 -0
  90. package/dist/floatingip/index.js +394 -0
  91. package/dist/index.d.ts +83 -0
  92. package/dist/index.js +84 -0
  93. package/dist/instance/index.d.ts +830 -0
  94. package/dist/instance/index.js +1948 -0
  95. package/dist/instance-port-security/index.d.ts +229 -0
  96. package/dist/instance-port-security/index.js +564 -0
  97. package/dist/instance-v2/index.d.ts +552 -0
  98. package/dist/instance-v2/index.js +1244 -0
  99. package/dist/k8s/index.d.ts +342 -0
  100. package/dist/k8s/index.js +856 -0
  101. package/dist/k8s-pool/index.d.ts +227 -0
  102. package/dist/k8s-pool/index.js +514 -0
  103. package/dist/keypair/index.d.ts +88 -0
  104. package/dist/keypair/index.js +185 -0
  105. package/dist/lazy-index.d.ts +0 -0
  106. package/dist/lazy-index.js +84 -0
  107. package/dist/lb-l7policy/index.d.ts +244 -0
  108. package/dist/lb-l7policy/index.js +566 -0
  109. package/dist/lb-l7rule/index.d.ts +219 -0
  110. package/dist/lb-l7rule/index.js +506 -0
  111. package/dist/lblistener/index.d.ts +264 -0
  112. package/dist/lblistener/index.js +597 -0
  113. package/dist/lbmember/index.d.ts +207 -0
  114. package/dist/lbmember/index.js +473 -0
  115. package/dist/lbpool/index.d.ts +387 -0
  116. package/dist/lbpool/index.js +934 -0
  117. package/dist/lifecyclepolicy/index.d.ts +476 -0
  118. package/dist/lifecyclepolicy/index.js +1188 -0
  119. package/dist/loadbalancer/index.d.ts +341 -0
  120. package/dist/loadbalancer/index.js +851 -0
  121. package/dist/loadbalancerv2/index.d.ts +253 -0
  122. package/dist/loadbalancerv2/index.js +562 -0
  123. package/dist/network/index.d.ts +187 -0
  124. package/dist/network/index.js +382 -0
  125. package/dist/project/index.d.ts +68 -0
  126. package/dist/project/index.js +150 -0
  127. package/dist/protection-resource/index.d.ts +179 -0
  128. package/dist/protection-resource/index.js +381 -0
  129. package/dist/protection-resource-alias/index.d.ts +64 -0
  130. package/dist/protection-resource-alias/index.js +131 -0
  131. package/dist/protection-resource-alias-certificate/index.d.ts +88 -0
  132. package/dist/protection-resource-alias-certificate/index.js +185 -0
  133. package/dist/protection-resource-blacklist-entry/index.d.ts +64 -0
  134. package/dist/protection-resource-blacklist-entry/index.js +131 -0
  135. package/dist/protection-resource-certificate/index.d.ts +88 -0
  136. package/dist/protection-resource-certificate/index.js +185 -0
  137. package/dist/protection-resource-header/index.d.ts +74 -0
  138. package/dist/protection-resource-header/index.js +151 -0
  139. package/dist/protection-resource-origin/index.d.ts +119 -0
  140. package/dist/protection-resource-origin/index.js +246 -0
  141. package/dist/protection-resource-whitelist-entry/index.d.ts +64 -0
  142. package/dist/protection-resource-whitelist-entry/index.js +131 -0
  143. package/dist/provider/index.d.ts +182 -0
  144. package/dist/provider/index.js +384 -0
  145. package/dist/reseller-images/index.d.ts +120 -0
  146. package/dist/reseller-images/index.js +272 -0
  147. package/dist/reseller-images-v2/index.d.ts +130 -0
  148. package/dist/reseller-images-v2/index.js +292 -0
  149. package/dist/reservedfixedip/index.d.ts +230 -0
  150. package/dist/reservedfixedip/index.js +513 -0
  151. package/dist/router/index.d.ts +322 -0
  152. package/dist/router/index.js +755 -0
  153. package/dist/secret/index.d.ts +146 -0
  154. package/dist/secret/index.js +311 -0
  155. package/dist/securitygroup/index.d.ts +291 -0
  156. package/dist/securitygroup/index.js +654 -0
  157. package/dist/servergroup/index.d.ts +143 -0
  158. package/dist/servergroup/index.js +302 -0
  159. package/dist/snapshot/index.d.ts +185 -0
  160. package/dist/snapshot/index.js +383 -0
  161. package/dist/storage-s3/index.d.ts +141 -0
  162. package/dist/storage-s3/index.js +292 -0
  163. package/dist/storage-s3-bucket/index.d.ts +64 -0
  164. package/dist/storage-s3-bucket/index.js +131 -0
  165. package/dist/subnet/index.d.ts +346 -0
  166. package/dist/subnet/index.js +751 -0
  167. package/dist/useractions-subscription-amqp/index.d.ts +87 -0
  168. package/dist/useractions-subscription-amqp/index.js +180 -0
  169. package/dist/useractions-subscription-log/index.d.ts +74 -0
  170. package/dist/useractions-subscription-log/index.js +151 -0
  171. package/dist/volume/index.d.ts +208 -0
  172. package/dist/volume/index.js +424 -0
  173. package/package.json +51 -0
@@ -0,0 +1,514 @@
1
+ // https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/k8s_pool
2
+ // generated from terraform resource schema
3
+ import * as cdktf from 'cdktf';
4
+ export function k8SPoolTimeoutsToTerraform(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
+ create: cdktf.stringToTerraform(struct.create),
13
+ update: cdktf.stringToTerraform(struct.update),
14
+ };
15
+ }
16
+ export function k8SPoolTimeoutsToHclTerraform(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
+ create: {
25
+ value: cdktf.stringToHclTerraform(struct.create),
26
+ isBlock: false,
27
+ type: "simple",
28
+ storageClassType: "string",
29
+ },
30
+ update: {
31
+ value: cdktf.stringToHclTerraform(struct.update),
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 K8SPoolTimeoutsOutputReference 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._create !== undefined) {
57
+ hasAnyValues = true;
58
+ internalValueResult.create = this._create;
59
+ }
60
+ if (this._update !== undefined) {
61
+ hasAnyValues = true;
62
+ internalValueResult.update = this._update;
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._create = undefined;
71
+ this._update = 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._create = value.create;
81
+ this._update = value.update;
82
+ }
83
+ }
84
+ // create - computed: false, optional: true, required: false
85
+ _create;
86
+ get create() {
87
+ return this.getStringAttribute('create');
88
+ }
89
+ set create(value) {
90
+ this._create = value;
91
+ }
92
+ resetCreate() {
93
+ this._create = undefined;
94
+ }
95
+ // Temporarily expose input value. Use with caution.
96
+ get createInput() {
97
+ return this._create;
98
+ }
99
+ // update - computed: false, optional: true, required: false
100
+ _update;
101
+ get update() {
102
+ return this.getStringAttribute('update');
103
+ }
104
+ set update(value) {
105
+ this._update = value;
106
+ }
107
+ resetUpdate() {
108
+ this._update = undefined;
109
+ }
110
+ // Temporarily expose input value. Use with caution.
111
+ get updateInput() {
112
+ return this._update;
113
+ }
114
+ }
115
+ /**
116
+ * Represents a {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/k8s_pool edgecenter_k8s_pool}
117
+ */
118
+ export class K8SPoolA extends cdktf.TerraformResource {
119
+ // =================
120
+ // STATIC PROPERTIES
121
+ // =================
122
+ static tfResourceType = "edgecenter_k8s_pool";
123
+ // ==============
124
+ // STATIC Methods
125
+ // ==============
126
+ /**
127
+ * Generates CDKTF code for importing a K8SPoolA resource upon running "cdktf plan <stack-name>"
128
+ * @param scope The scope in which to define this construct
129
+ * @param importToId The construct id used in the generated config for the K8SPoolA to import
130
+ * @param importFromId The id of the existing K8SPoolA that should be imported. Refer to the {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/k8s_pool#import import section} in the documentation of this resource for the id to use
131
+ * @param provider? Optional instance of the provider where the K8SPoolA to import is found
132
+ */
133
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
134
+ return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "edgecenter_k8s_pool", importId: importFromId, provider });
135
+ }
136
+ // ===========
137
+ // INITIALIZER
138
+ // ===========
139
+ /**
140
+ * Create a new {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/k8s_pool edgecenter_k8s_pool} Resource
141
+ *
142
+ * @param scope The scope in which to define this construct
143
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
144
+ * @param options K8SPoolAConfig
145
+ */
146
+ constructor(scope, id, config) {
147
+ super(scope, id, {
148
+ terraformResourceType: 'edgecenter_k8s_pool',
149
+ terraformGeneratorMetadata: {
150
+ providerName: 'edgecenter',
151
+ providerVersion: '0.10.4',
152
+ providerVersionConstraint: '0.10.4'
153
+ },
154
+ provider: config.provider,
155
+ dependsOn: config.dependsOn,
156
+ count: config.count,
157
+ lifecycle: config.lifecycle,
158
+ provisioners: config.provisioners,
159
+ connection: config.connection,
160
+ forEach: config.forEach
161
+ });
162
+ this._clusterId = config.clusterId;
163
+ this._dockerVolumeSize = config.dockerVolumeSize;
164
+ this._dockerVolumeType = config.dockerVolumeType;
165
+ this._flavorId = config.flavorId;
166
+ this._id = config.id;
167
+ this._lastUpdated = config.lastUpdated;
168
+ this._maxNodeCount = config.maxNodeCount;
169
+ this._minNodeCount = config.minNodeCount;
170
+ this._name = config.name;
171
+ this._nodeCount = config.nodeCount;
172
+ this._projectId = config.projectId;
173
+ this._projectName = config.projectName;
174
+ this._regionId = config.regionId;
175
+ this._regionName = config.regionName;
176
+ this._timeouts.internalValue = config.timeouts;
177
+ }
178
+ // ==========
179
+ // ATTRIBUTES
180
+ // ==========
181
+ // cluster_id - computed: false, optional: false, required: true
182
+ _clusterId;
183
+ get clusterId() {
184
+ return this.getStringAttribute('cluster_id');
185
+ }
186
+ set clusterId(value) {
187
+ this._clusterId = value;
188
+ }
189
+ // Temporarily expose input value. Use with caution.
190
+ get clusterIdInput() {
191
+ return this._clusterId;
192
+ }
193
+ // created_at - computed: true, optional: false, required: false
194
+ get createdAt() {
195
+ return this.getStringAttribute('created_at');
196
+ }
197
+ // docker_volume_size - computed: false, optional: true, required: false
198
+ _dockerVolumeSize;
199
+ get dockerVolumeSize() {
200
+ return this.getNumberAttribute('docker_volume_size');
201
+ }
202
+ set dockerVolumeSize(value) {
203
+ this._dockerVolumeSize = value;
204
+ }
205
+ resetDockerVolumeSize() {
206
+ this._dockerVolumeSize = undefined;
207
+ }
208
+ // Temporarily expose input value. Use with caution.
209
+ get dockerVolumeSizeInput() {
210
+ return this._dockerVolumeSize;
211
+ }
212
+ // docker_volume_type - computed: true, optional: true, required: false
213
+ _dockerVolumeType;
214
+ get dockerVolumeType() {
215
+ return this.getStringAttribute('docker_volume_type');
216
+ }
217
+ set dockerVolumeType(value) {
218
+ this._dockerVolumeType = value;
219
+ }
220
+ resetDockerVolumeType() {
221
+ this._dockerVolumeType = undefined;
222
+ }
223
+ // Temporarily expose input value. Use with caution.
224
+ get dockerVolumeTypeInput() {
225
+ return this._dockerVolumeType;
226
+ }
227
+ // flavor_id - computed: false, optional: false, required: true
228
+ _flavorId;
229
+ get flavorId() {
230
+ return this.getStringAttribute('flavor_id');
231
+ }
232
+ set flavorId(value) {
233
+ this._flavorId = value;
234
+ }
235
+ // Temporarily expose input value. Use with caution.
236
+ get flavorIdInput() {
237
+ return this._flavorId;
238
+ }
239
+ // id - computed: true, optional: true, required: false
240
+ _id;
241
+ get id() {
242
+ return this.getStringAttribute('id');
243
+ }
244
+ set id(value) {
245
+ this._id = value;
246
+ }
247
+ resetId() {
248
+ this._id = undefined;
249
+ }
250
+ // Temporarily expose input value. Use with caution.
251
+ get idInput() {
252
+ return this._id;
253
+ }
254
+ // last_updated - computed: true, optional: true, required: false
255
+ _lastUpdated;
256
+ get lastUpdated() {
257
+ return this.getStringAttribute('last_updated');
258
+ }
259
+ set lastUpdated(value) {
260
+ this._lastUpdated = value;
261
+ }
262
+ resetLastUpdated() {
263
+ this._lastUpdated = undefined;
264
+ }
265
+ // Temporarily expose input value. Use with caution.
266
+ get lastUpdatedInput() {
267
+ return this._lastUpdated;
268
+ }
269
+ // max_node_count - computed: false, optional: false, required: true
270
+ _maxNodeCount;
271
+ get maxNodeCount() {
272
+ return this.getNumberAttribute('max_node_count');
273
+ }
274
+ set maxNodeCount(value) {
275
+ this._maxNodeCount = value;
276
+ }
277
+ // Temporarily expose input value. Use with caution.
278
+ get maxNodeCountInput() {
279
+ return this._maxNodeCount;
280
+ }
281
+ // min_node_count - computed: false, optional: false, required: true
282
+ _minNodeCount;
283
+ get minNodeCount() {
284
+ return this.getNumberAttribute('min_node_count');
285
+ }
286
+ set minNodeCount(value) {
287
+ this._minNodeCount = value;
288
+ }
289
+ // Temporarily expose input value. Use with caution.
290
+ get minNodeCountInput() {
291
+ return this._minNodeCount;
292
+ }
293
+ // name - computed: false, optional: false, required: true
294
+ _name;
295
+ get name() {
296
+ return this.getStringAttribute('name');
297
+ }
298
+ set name(value) {
299
+ this._name = value;
300
+ }
301
+ // Temporarily expose input value. Use with caution.
302
+ get nameInput() {
303
+ return this._name;
304
+ }
305
+ // node_count - computed: false, optional: false, required: true
306
+ _nodeCount;
307
+ get nodeCount() {
308
+ return this.getNumberAttribute('node_count');
309
+ }
310
+ set nodeCount(value) {
311
+ this._nodeCount = value;
312
+ }
313
+ // Temporarily expose input value. Use with caution.
314
+ get nodeCountInput() {
315
+ return this._nodeCount;
316
+ }
317
+ // project_id - computed: false, optional: true, required: false
318
+ _projectId;
319
+ get projectId() {
320
+ return this.getNumberAttribute('project_id');
321
+ }
322
+ set projectId(value) {
323
+ this._projectId = value;
324
+ }
325
+ resetProjectId() {
326
+ this._projectId = undefined;
327
+ }
328
+ // Temporarily expose input value. Use with caution.
329
+ get projectIdInput() {
330
+ return this._projectId;
331
+ }
332
+ // project_name - computed: false, optional: true, required: false
333
+ _projectName;
334
+ get projectName() {
335
+ return this.getStringAttribute('project_name');
336
+ }
337
+ set projectName(value) {
338
+ this._projectName = value;
339
+ }
340
+ resetProjectName() {
341
+ this._projectName = undefined;
342
+ }
343
+ // Temporarily expose input value. Use with caution.
344
+ get projectNameInput() {
345
+ return this._projectName;
346
+ }
347
+ // region_id - computed: false, optional: true, required: false
348
+ _regionId;
349
+ get regionId() {
350
+ return this.getNumberAttribute('region_id');
351
+ }
352
+ set regionId(value) {
353
+ this._regionId = value;
354
+ }
355
+ resetRegionId() {
356
+ this._regionId = undefined;
357
+ }
358
+ // Temporarily expose input value. Use with caution.
359
+ get regionIdInput() {
360
+ return this._regionId;
361
+ }
362
+ // region_name - computed: false, optional: true, required: false
363
+ _regionName;
364
+ get regionName() {
365
+ return this.getStringAttribute('region_name');
366
+ }
367
+ set regionName(value) {
368
+ this._regionName = value;
369
+ }
370
+ resetRegionName() {
371
+ this._regionName = undefined;
372
+ }
373
+ // Temporarily expose input value. Use with caution.
374
+ get regionNameInput() {
375
+ return this._regionName;
376
+ }
377
+ // stack_id - computed: true, optional: false, required: false
378
+ get stackId() {
379
+ return this.getStringAttribute('stack_id');
380
+ }
381
+ // timeouts - computed: false, optional: true, required: false
382
+ _timeouts = new K8SPoolTimeoutsOutputReference(this, "timeouts");
383
+ get timeouts() {
384
+ return this._timeouts;
385
+ }
386
+ putTimeouts(value) {
387
+ this._timeouts.internalValue = value;
388
+ }
389
+ resetTimeouts() {
390
+ this._timeouts.internalValue = undefined;
391
+ }
392
+ // Temporarily expose input value. Use with caution.
393
+ get timeoutsInput() {
394
+ return this._timeouts.internalValue;
395
+ }
396
+ // =========
397
+ // SYNTHESIS
398
+ // =========
399
+ synthesizeAttributes() {
400
+ return {
401
+ cluster_id: cdktf.stringToTerraform(this._clusterId),
402
+ docker_volume_size: cdktf.numberToTerraform(this._dockerVolumeSize),
403
+ docker_volume_type: cdktf.stringToTerraform(this._dockerVolumeType),
404
+ flavor_id: cdktf.stringToTerraform(this._flavorId),
405
+ id: cdktf.stringToTerraform(this._id),
406
+ last_updated: cdktf.stringToTerraform(this._lastUpdated),
407
+ max_node_count: cdktf.numberToTerraform(this._maxNodeCount),
408
+ min_node_count: cdktf.numberToTerraform(this._minNodeCount),
409
+ name: cdktf.stringToTerraform(this._name),
410
+ node_count: cdktf.numberToTerraform(this._nodeCount),
411
+ project_id: cdktf.numberToTerraform(this._projectId),
412
+ project_name: cdktf.stringToTerraform(this._projectName),
413
+ region_id: cdktf.numberToTerraform(this._regionId),
414
+ region_name: cdktf.stringToTerraform(this._regionName),
415
+ timeouts: k8SPoolTimeoutsToTerraform(this._timeouts.internalValue),
416
+ };
417
+ }
418
+ synthesizeHclAttributes() {
419
+ const attrs = {
420
+ cluster_id: {
421
+ value: cdktf.stringToHclTerraform(this._clusterId),
422
+ isBlock: false,
423
+ type: "simple",
424
+ storageClassType: "string",
425
+ },
426
+ docker_volume_size: {
427
+ value: cdktf.numberToHclTerraform(this._dockerVolumeSize),
428
+ isBlock: false,
429
+ type: "simple",
430
+ storageClassType: "number",
431
+ },
432
+ docker_volume_type: {
433
+ value: cdktf.stringToHclTerraform(this._dockerVolumeType),
434
+ isBlock: false,
435
+ type: "simple",
436
+ storageClassType: "string",
437
+ },
438
+ flavor_id: {
439
+ value: cdktf.stringToHclTerraform(this._flavorId),
440
+ isBlock: false,
441
+ type: "simple",
442
+ storageClassType: "string",
443
+ },
444
+ id: {
445
+ value: cdktf.stringToHclTerraform(this._id),
446
+ isBlock: false,
447
+ type: "simple",
448
+ storageClassType: "string",
449
+ },
450
+ last_updated: {
451
+ value: cdktf.stringToHclTerraform(this._lastUpdated),
452
+ isBlock: false,
453
+ type: "simple",
454
+ storageClassType: "string",
455
+ },
456
+ max_node_count: {
457
+ value: cdktf.numberToHclTerraform(this._maxNodeCount),
458
+ isBlock: false,
459
+ type: "simple",
460
+ storageClassType: "number",
461
+ },
462
+ min_node_count: {
463
+ value: cdktf.numberToHclTerraform(this._minNodeCount),
464
+ isBlock: false,
465
+ type: "simple",
466
+ storageClassType: "number",
467
+ },
468
+ name: {
469
+ value: cdktf.stringToHclTerraform(this._name),
470
+ isBlock: false,
471
+ type: "simple",
472
+ storageClassType: "string",
473
+ },
474
+ node_count: {
475
+ value: cdktf.numberToHclTerraform(this._nodeCount),
476
+ isBlock: false,
477
+ type: "simple",
478
+ storageClassType: "number",
479
+ },
480
+ project_id: {
481
+ value: cdktf.numberToHclTerraform(this._projectId),
482
+ isBlock: false,
483
+ type: "simple",
484
+ storageClassType: "number",
485
+ },
486
+ project_name: {
487
+ value: cdktf.stringToHclTerraform(this._projectName),
488
+ isBlock: false,
489
+ type: "simple",
490
+ storageClassType: "string",
491
+ },
492
+ region_id: {
493
+ value: cdktf.numberToHclTerraform(this._regionId),
494
+ isBlock: false,
495
+ type: "simple",
496
+ storageClassType: "number",
497
+ },
498
+ region_name: {
499
+ value: cdktf.stringToHclTerraform(this._regionName),
500
+ isBlock: false,
501
+ type: "simple",
502
+ storageClassType: "string",
503
+ },
504
+ timeouts: {
505
+ value: k8SPoolTimeoutsToHclTerraform(this._timeouts.internalValue),
506
+ isBlock: true,
507
+ type: "struct",
508
+ storageClassType: "K8SPoolTimeouts",
509
+ },
510
+ };
511
+ // remove undefined attributes
512
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
513
+ }
514
+ }
@@ -0,0 +1,88 @@
1
+ import { Construct } from 'constructs';
2
+ import * as cdktf from 'cdktf';
3
+ export interface KeypairConfig extends cdktf.TerraformMetaArguments {
4
+ /**
5
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/keypair#id Keypair#id}
6
+ *
7
+ * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
8
+ * If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
9
+ */
10
+ readonly id?: string;
11
+ /**
12
+ * The uuid of the project. Either 'project_id' or 'project_name' must be specified.
13
+ *
14
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/keypair#project_id Keypair#project_id}
15
+ */
16
+ readonly projectId?: number;
17
+ /**
18
+ * The name of the project. Either 'project_id' or 'project_name' must be specified.
19
+ *
20
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/keypair#project_name Keypair#project_name}
21
+ */
22
+ readonly projectName?: string;
23
+ /**
24
+ * The public portion of the SSH key pair.
25
+ *
26
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/keypair#public_key Keypair#public_key}
27
+ */
28
+ readonly publicKey: string;
29
+ /**
30
+ * The name assigned to the SSH key pair, used for identification purposes.
31
+ *
32
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/keypair#sshkey_name Keypair#sshkey_name}
33
+ */
34
+ readonly sshkeyName: string;
35
+ }
36
+ /**
37
+ * Represents a {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/keypair edgecenter_keypair}
38
+ */
39
+ export declare class Keypair extends cdktf.TerraformResource {
40
+ static readonly tfResourceType = "edgecenter_keypair";
41
+ /**
42
+ * Generates CDKTF code for importing a Keypair resource upon running "cdktf plan <stack-name>"
43
+ * @param scope The scope in which to define this construct
44
+ * @param importToId The construct id used in the generated config for the Keypair to import
45
+ * @param importFromId The id of the existing Keypair that should be imported. Refer to the {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/keypair#import import section} in the documentation of this resource for the id to use
46
+ * @param provider? Optional instance of the provider where the Keypair to import is found
47
+ */
48
+ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
49
+ /**
50
+ * Create a new {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/keypair edgecenter_keypair} Resource
51
+ *
52
+ * @param scope The scope in which to define this construct
53
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
54
+ * @param options KeypairConfig
55
+ */
56
+ constructor(scope: Construct, id: string, config: KeypairConfig);
57
+ get fingerprint(): any;
58
+ private _id?;
59
+ get id(): string;
60
+ set id(value: string);
61
+ resetId(): void;
62
+ get idInput(): string;
63
+ private _projectId?;
64
+ get projectId(): number;
65
+ set projectId(value: number);
66
+ resetProjectId(): void;
67
+ get projectIdInput(): number;
68
+ private _projectName?;
69
+ get projectName(): string;
70
+ set projectName(value: string);
71
+ resetProjectName(): void;
72
+ get projectNameInput(): string;
73
+ private _publicKey?;
74
+ get publicKey(): string;
75
+ set publicKey(value: string);
76
+ get publicKeyInput(): string;
77
+ get sshkeyId(): any;
78
+ private _sshkeyName?;
79
+ get sshkeyName(): string;
80
+ set sshkeyName(value: string);
81
+ get sshkeyNameInput(): string;
82
+ protected synthesizeAttributes(): {
83
+ [name: string]: any;
84
+ };
85
+ protected synthesizeHclAttributes(): {
86
+ [name: string]: any;
87
+ };
88
+ }