@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.
- package/LICENSE +355 -0
- package/README.md +19 -0
- package/dist/baremetal/index.d.ts +528 -0
- package/dist/baremetal/index.js +1250 -0
- package/dist/cdn-lecert/index.d.ts +76 -0
- package/dist/cdn-lecert/index.js +157 -0
- package/dist/cdn-origingroup/index.d.ts +237 -0
- package/dist/cdn-origingroup/index.js +560 -0
- package/dist/cdn-resource/index.d.ts +2223 -0
- package/dist/cdn-resource/index.js +5865 -0
- package/dist/cdn-rule/index.d.ts +2037 -0
- package/dist/cdn-rule/index.js +5381 -0
- package/dist/cdn-shielding/index.d.ts +64 -0
- package/dist/cdn-shielding/index.js +131 -0
- package/dist/cdn-sslcert/index.d.ts +76 -0
- package/dist/cdn-sslcert/index.js +159 -0
- package/dist/data-edgecenter-availability-zone/index.d.ts +67 -0
- package/dist/data-edgecenter-availability-zone/index.js +141 -0
- package/dist/data-edgecenter-cdn-shielding-location/index.d.ts +54 -0
- package/dist/data-edgecenter-cdn-shielding-location/index.js +111 -0
- package/dist/data-edgecenter-floatingip/index.d.ts +183 -0
- package/dist/data-edgecenter-floatingip/index.js +378 -0
- package/dist/data-edgecenter-image/index.d.ts +183 -0
- package/dist/data-edgecenter-image/index.js +378 -0
- package/dist/data-edgecenter-instance/index.d.ts +312 -0
- package/dist/data-edgecenter-instance/index.js +690 -0
- package/dist/data-edgecenter-instance-port-security/index.d.ts +110 -0
- package/dist/data-edgecenter-instance-port-security/index.js +231 -0
- package/dist/data-edgecenter-instance-v2/index.d.ts +222 -0
- package/dist/data-edgecenter-instance-v2/index.js +501 -0
- package/dist/data-edgecenter-k8s/index.d.ts +167 -0
- package/dist/data-edgecenter-k8s/index.js +412 -0
- package/dist/data-edgecenter-k8s-client-config/index.d.ts +100 -0
- package/dist/data-edgecenter-k8s-client-config/index.js +211 -0
- package/dist/data-edgecenter-k8s-pool/index.d.ts +120 -0
- package/dist/data-edgecenter-k8s-pool/index.js +271 -0
- package/dist/data-edgecenter-lb-l7policy/index.d.ts +114 -0
- package/dist/data-edgecenter-lb-l7policy/index.js +258 -0
- package/dist/data-edgecenter-lb-l7rule/index.d.ts +120 -0
- package/dist/data-edgecenter-lb-l7rule/index.js +262 -0
- package/dist/data-edgecenter-lblistener/index.d.ts +122 -0
- package/dist/data-edgecenter-lblistener/index.js +269 -0
- package/dist/data-edgecenter-lbpool/index.d.ts +204 -0
- package/dist/data-edgecenter-lbpool/index.js +454 -0
- package/dist/data-edgecenter-loadbalancer/index.d.ts +203 -0
- package/dist/data-edgecenter-loadbalancer/index.js +427 -0
- package/dist/data-edgecenter-loadbalancerv2/index.d.ts +169 -0
- package/dist/data-edgecenter-loadbalancerv2/index.js +343 -0
- package/dist/data-edgecenter-network/index.d.ts +270 -0
- package/dist/data-edgecenter-network/index.js +589 -0
- package/dist/data-edgecenter-project/index.d.ts +72 -0
- package/dist/data-edgecenter-project/index.js +153 -0
- package/dist/data-edgecenter-region/index.d.ts +54 -0
- package/dist/data-edgecenter-region/index.js +111 -0
- package/dist/data-edgecenter-reseller-images/index.d.ts +91 -0
- package/dist/data-edgecenter-reseller-images/index.js +198 -0
- package/dist/data-edgecenter-reseller-images-v2/index.d.ts +101 -0
- package/dist/data-edgecenter-reseller-images-v2/index.js +218 -0
- package/dist/data-edgecenter-reseller-networks/index.d.ts +269 -0
- package/dist/data-edgecenter-reseller-networks/index.js +610 -0
- package/dist/data-edgecenter-reservedfixedip/index.d.ts +141 -0
- package/dist/data-edgecenter-reservedfixedip/index.js +311 -0
- package/dist/data-edgecenter-router/index.d.ts +245 -0
- package/dist/data-edgecenter-router/index.js +538 -0
- package/dist/data-edgecenter-secret/index.d.ts +109 -0
- package/dist/data-edgecenter-secret/index.js +235 -0
- package/dist/data-edgecenter-securitygroup/index.d.ts +211 -0
- package/dist/data-edgecenter-securitygroup/index.js +450 -0
- package/dist/data-edgecenter-servergroup/index.d.ts +137 -0
- package/dist/data-edgecenter-servergroup/index.js +289 -0
- package/dist/data-edgecenter-snapshot/index.d.ts +129 -0
- package/dist/data-edgecenter-snapshot/index.js +281 -0
- package/dist/data-edgecenter-storage-s3/index.d.ts +71 -0
- package/dist/data-edgecenter-storage-s3/index.js +157 -0
- package/dist/data-edgecenter-storage-s3-bucket/index.d.ts +64 -0
- package/dist/data-edgecenter-storage-s3-bucket/index.js +131 -0
- package/dist/data-edgecenter-subnet/index.d.ts +253 -0
- package/dist/data-edgecenter-subnet/index.js +536 -0
- package/dist/data-edgecenter-useractions-subscription-amqp/index.d.ts +48 -0
- package/dist/data-edgecenter-useractions-subscription-amqp/index.js +107 -0
- package/dist/data-edgecenter-useractions-subscription-log/index.d.ts +47 -0
- package/dist/data-edgecenter-useractions-subscription-log/index.js +103 -0
- package/dist/data-edgecenter-volume/index.d.ts +169 -0
- package/dist/data-edgecenter-volume/index.js +343 -0
- package/dist/dns-zone/index.d.ts +54 -0
- package/dist/dns-zone/index.js +111 -0
- package/dist/dns-zone-record/index.d.ts +494 -0
- package/dist/dns-zone-record/index.js +1217 -0
- package/dist/floatingip/index.d.ts +185 -0
- package/dist/floatingip/index.js +394 -0
- package/dist/index.d.ts +83 -0
- package/dist/index.js +84 -0
- package/dist/instance/index.d.ts +830 -0
- package/dist/instance/index.js +1948 -0
- package/dist/instance-port-security/index.d.ts +229 -0
- package/dist/instance-port-security/index.js +564 -0
- package/dist/instance-v2/index.d.ts +552 -0
- package/dist/instance-v2/index.js +1244 -0
- package/dist/k8s/index.d.ts +342 -0
- package/dist/k8s/index.js +856 -0
- package/dist/k8s-pool/index.d.ts +227 -0
- package/dist/k8s-pool/index.js +514 -0
- package/dist/keypair/index.d.ts +88 -0
- package/dist/keypair/index.js +185 -0
- package/dist/lazy-index.d.ts +0 -0
- package/dist/lazy-index.js +84 -0
- package/dist/lb-l7policy/index.d.ts +244 -0
- package/dist/lb-l7policy/index.js +566 -0
- package/dist/lb-l7rule/index.d.ts +219 -0
- package/dist/lb-l7rule/index.js +506 -0
- package/dist/lblistener/index.d.ts +264 -0
- package/dist/lblistener/index.js +597 -0
- package/dist/lbmember/index.d.ts +207 -0
- package/dist/lbmember/index.js +473 -0
- package/dist/lbpool/index.d.ts +387 -0
- package/dist/lbpool/index.js +934 -0
- package/dist/lifecyclepolicy/index.d.ts +476 -0
- package/dist/lifecyclepolicy/index.js +1188 -0
- package/dist/loadbalancer/index.d.ts +341 -0
- package/dist/loadbalancer/index.js +851 -0
- package/dist/loadbalancerv2/index.d.ts +253 -0
- package/dist/loadbalancerv2/index.js +562 -0
- package/dist/network/index.d.ts +187 -0
- package/dist/network/index.js +382 -0
- package/dist/project/index.d.ts +68 -0
- package/dist/project/index.js +150 -0
- package/dist/protection-resource/index.d.ts +179 -0
- package/dist/protection-resource/index.js +381 -0
- package/dist/protection-resource-alias/index.d.ts +64 -0
- package/dist/protection-resource-alias/index.js +131 -0
- package/dist/protection-resource-alias-certificate/index.d.ts +88 -0
- package/dist/protection-resource-alias-certificate/index.js +185 -0
- package/dist/protection-resource-blacklist-entry/index.d.ts +64 -0
- package/dist/protection-resource-blacklist-entry/index.js +131 -0
- package/dist/protection-resource-certificate/index.d.ts +88 -0
- package/dist/protection-resource-certificate/index.js +185 -0
- package/dist/protection-resource-header/index.d.ts +74 -0
- package/dist/protection-resource-header/index.js +151 -0
- package/dist/protection-resource-origin/index.d.ts +119 -0
- package/dist/protection-resource-origin/index.js +246 -0
- package/dist/protection-resource-whitelist-entry/index.d.ts +64 -0
- package/dist/protection-resource-whitelist-entry/index.js +131 -0
- package/dist/provider/index.d.ts +182 -0
- package/dist/provider/index.js +384 -0
- package/dist/reseller-images/index.d.ts +120 -0
- package/dist/reseller-images/index.js +272 -0
- package/dist/reseller-images-v2/index.d.ts +130 -0
- package/dist/reseller-images-v2/index.js +292 -0
- package/dist/reservedfixedip/index.d.ts +230 -0
- package/dist/reservedfixedip/index.js +513 -0
- package/dist/router/index.d.ts +322 -0
- package/dist/router/index.js +755 -0
- package/dist/secret/index.d.ts +146 -0
- package/dist/secret/index.js +311 -0
- package/dist/securitygroup/index.d.ts +291 -0
- package/dist/securitygroup/index.js +654 -0
- package/dist/servergroup/index.d.ts +143 -0
- package/dist/servergroup/index.js +302 -0
- package/dist/snapshot/index.d.ts +185 -0
- package/dist/snapshot/index.js +383 -0
- package/dist/storage-s3/index.d.ts +141 -0
- package/dist/storage-s3/index.js +292 -0
- package/dist/storage-s3-bucket/index.d.ts +64 -0
- package/dist/storage-s3-bucket/index.js +131 -0
- package/dist/subnet/index.d.ts +346 -0
- package/dist/subnet/index.js +751 -0
- package/dist/useractions-subscription-amqp/index.d.ts +87 -0
- package/dist/useractions-subscription-amqp/index.js +180 -0
- package/dist/useractions-subscription-log/index.d.ts +74 -0
- package/dist/useractions-subscription-log/index.js +151 -0
- package/dist/volume/index.d.ts +208 -0
- package/dist/volume/index.js +424 -0
- package/package.json +51 -0
|
@@ -0,0 +1,856 @@
|
|
|
1
|
+
// https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/k8s
|
|
2
|
+
// generated from terraform resource schema
|
|
3
|
+
import * as cdktf from 'cdktf';
|
|
4
|
+
export function k8SPoolToTerraform(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
|
+
docker_volume_size: cdktf.numberToTerraform(struct.dockerVolumeSize),
|
|
13
|
+
docker_volume_type: cdktf.stringToTerraform(struct.dockerVolumeType),
|
|
14
|
+
flavor_id: cdktf.stringToTerraform(struct.flavorId),
|
|
15
|
+
max_node_count: cdktf.numberToTerraform(struct.maxNodeCount),
|
|
16
|
+
min_node_count: cdktf.numberToTerraform(struct.minNodeCount),
|
|
17
|
+
name: cdktf.stringToTerraform(struct.name),
|
|
18
|
+
node_count: cdktf.numberToTerraform(struct.nodeCount),
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export function k8SPoolToHclTerraform(struct) {
|
|
22
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
23
|
+
return struct;
|
|
24
|
+
}
|
|
25
|
+
if (cdktf.isComplexElement(struct)) {
|
|
26
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
27
|
+
}
|
|
28
|
+
const attrs = {
|
|
29
|
+
docker_volume_size: {
|
|
30
|
+
value: cdktf.numberToHclTerraform(struct.dockerVolumeSize),
|
|
31
|
+
isBlock: false,
|
|
32
|
+
type: "simple",
|
|
33
|
+
storageClassType: "number",
|
|
34
|
+
},
|
|
35
|
+
docker_volume_type: {
|
|
36
|
+
value: cdktf.stringToHclTerraform(struct.dockerVolumeType),
|
|
37
|
+
isBlock: false,
|
|
38
|
+
type: "simple",
|
|
39
|
+
storageClassType: "string",
|
|
40
|
+
},
|
|
41
|
+
flavor_id: {
|
|
42
|
+
value: cdktf.stringToHclTerraform(struct.flavorId),
|
|
43
|
+
isBlock: false,
|
|
44
|
+
type: "simple",
|
|
45
|
+
storageClassType: "string",
|
|
46
|
+
},
|
|
47
|
+
max_node_count: {
|
|
48
|
+
value: cdktf.numberToHclTerraform(struct.maxNodeCount),
|
|
49
|
+
isBlock: false,
|
|
50
|
+
type: "simple",
|
|
51
|
+
storageClassType: "number",
|
|
52
|
+
},
|
|
53
|
+
min_node_count: {
|
|
54
|
+
value: cdktf.numberToHclTerraform(struct.minNodeCount),
|
|
55
|
+
isBlock: false,
|
|
56
|
+
type: "simple",
|
|
57
|
+
storageClassType: "number",
|
|
58
|
+
},
|
|
59
|
+
name: {
|
|
60
|
+
value: cdktf.stringToHclTerraform(struct.name),
|
|
61
|
+
isBlock: false,
|
|
62
|
+
type: "simple",
|
|
63
|
+
storageClassType: "string",
|
|
64
|
+
},
|
|
65
|
+
node_count: {
|
|
66
|
+
value: cdktf.numberToHclTerraform(struct.nodeCount),
|
|
67
|
+
isBlock: false,
|
|
68
|
+
type: "simple",
|
|
69
|
+
storageClassType: "number",
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
|
+
// remove undefined attributes
|
|
73
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
74
|
+
}
|
|
75
|
+
export class K8SPoolOutputReference extends cdktf.ComplexObject {
|
|
76
|
+
isEmptyObject = false;
|
|
77
|
+
/**
|
|
78
|
+
* @param terraformResource The parent resource
|
|
79
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
80
|
+
*/
|
|
81
|
+
constructor(terraformResource, terraformAttribute) {
|
|
82
|
+
super(terraformResource, terraformAttribute, false, 0);
|
|
83
|
+
}
|
|
84
|
+
get internalValue() {
|
|
85
|
+
let hasAnyValues = this.isEmptyObject;
|
|
86
|
+
const internalValueResult = {};
|
|
87
|
+
if (this._dockerVolumeSize !== undefined) {
|
|
88
|
+
hasAnyValues = true;
|
|
89
|
+
internalValueResult.dockerVolumeSize = this._dockerVolumeSize;
|
|
90
|
+
}
|
|
91
|
+
if (this._dockerVolumeType !== undefined) {
|
|
92
|
+
hasAnyValues = true;
|
|
93
|
+
internalValueResult.dockerVolumeType = this._dockerVolumeType;
|
|
94
|
+
}
|
|
95
|
+
if (this._flavorId !== undefined) {
|
|
96
|
+
hasAnyValues = true;
|
|
97
|
+
internalValueResult.flavorId = this._flavorId;
|
|
98
|
+
}
|
|
99
|
+
if (this._maxNodeCount !== undefined) {
|
|
100
|
+
hasAnyValues = true;
|
|
101
|
+
internalValueResult.maxNodeCount = this._maxNodeCount;
|
|
102
|
+
}
|
|
103
|
+
if (this._minNodeCount !== undefined) {
|
|
104
|
+
hasAnyValues = true;
|
|
105
|
+
internalValueResult.minNodeCount = this._minNodeCount;
|
|
106
|
+
}
|
|
107
|
+
if (this._name !== undefined) {
|
|
108
|
+
hasAnyValues = true;
|
|
109
|
+
internalValueResult.name = this._name;
|
|
110
|
+
}
|
|
111
|
+
if (this._nodeCount !== undefined) {
|
|
112
|
+
hasAnyValues = true;
|
|
113
|
+
internalValueResult.nodeCount = this._nodeCount;
|
|
114
|
+
}
|
|
115
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
116
|
+
}
|
|
117
|
+
set internalValue(value) {
|
|
118
|
+
if (value === undefined) {
|
|
119
|
+
this.isEmptyObject = false;
|
|
120
|
+
this._dockerVolumeSize = undefined;
|
|
121
|
+
this._dockerVolumeType = undefined;
|
|
122
|
+
this._flavorId = undefined;
|
|
123
|
+
this._maxNodeCount = undefined;
|
|
124
|
+
this._minNodeCount = undefined;
|
|
125
|
+
this._name = undefined;
|
|
126
|
+
this._nodeCount = undefined;
|
|
127
|
+
}
|
|
128
|
+
else {
|
|
129
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
130
|
+
this._dockerVolumeSize = value.dockerVolumeSize;
|
|
131
|
+
this._dockerVolumeType = value.dockerVolumeType;
|
|
132
|
+
this._flavorId = value.flavorId;
|
|
133
|
+
this._maxNodeCount = value.maxNodeCount;
|
|
134
|
+
this._minNodeCount = value.minNodeCount;
|
|
135
|
+
this._name = value.name;
|
|
136
|
+
this._nodeCount = value.nodeCount;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
// created_at - computed: true, optional: false, required: false
|
|
140
|
+
get createdAt() {
|
|
141
|
+
return this.getStringAttribute('created_at');
|
|
142
|
+
}
|
|
143
|
+
// docker_volume_size - computed: false, optional: true, required: false
|
|
144
|
+
_dockerVolumeSize;
|
|
145
|
+
get dockerVolumeSize() {
|
|
146
|
+
return this.getNumberAttribute('docker_volume_size');
|
|
147
|
+
}
|
|
148
|
+
set dockerVolumeSize(value) {
|
|
149
|
+
this._dockerVolumeSize = value;
|
|
150
|
+
}
|
|
151
|
+
resetDockerVolumeSize() {
|
|
152
|
+
this._dockerVolumeSize = undefined;
|
|
153
|
+
}
|
|
154
|
+
// Temporarily expose input value. Use with caution.
|
|
155
|
+
get dockerVolumeSizeInput() {
|
|
156
|
+
return this._dockerVolumeSize;
|
|
157
|
+
}
|
|
158
|
+
// docker_volume_type - computed: true, optional: true, required: false
|
|
159
|
+
_dockerVolumeType;
|
|
160
|
+
get dockerVolumeType() {
|
|
161
|
+
return this.getStringAttribute('docker_volume_type');
|
|
162
|
+
}
|
|
163
|
+
set dockerVolumeType(value) {
|
|
164
|
+
this._dockerVolumeType = value;
|
|
165
|
+
}
|
|
166
|
+
resetDockerVolumeType() {
|
|
167
|
+
this._dockerVolumeType = undefined;
|
|
168
|
+
}
|
|
169
|
+
// Temporarily expose input value. Use with caution.
|
|
170
|
+
get dockerVolumeTypeInput() {
|
|
171
|
+
return this._dockerVolumeType;
|
|
172
|
+
}
|
|
173
|
+
// flavor_id - computed: false, optional: false, required: true
|
|
174
|
+
_flavorId;
|
|
175
|
+
get flavorId() {
|
|
176
|
+
return this.getStringAttribute('flavor_id');
|
|
177
|
+
}
|
|
178
|
+
set flavorId(value) {
|
|
179
|
+
this._flavorId = value;
|
|
180
|
+
}
|
|
181
|
+
// Temporarily expose input value. Use with caution.
|
|
182
|
+
get flavorIdInput() {
|
|
183
|
+
return this._flavorId;
|
|
184
|
+
}
|
|
185
|
+
// max_node_count - computed: false, optional: false, required: true
|
|
186
|
+
_maxNodeCount;
|
|
187
|
+
get maxNodeCount() {
|
|
188
|
+
return this.getNumberAttribute('max_node_count');
|
|
189
|
+
}
|
|
190
|
+
set maxNodeCount(value) {
|
|
191
|
+
this._maxNodeCount = value;
|
|
192
|
+
}
|
|
193
|
+
// Temporarily expose input value. Use with caution.
|
|
194
|
+
get maxNodeCountInput() {
|
|
195
|
+
return this._maxNodeCount;
|
|
196
|
+
}
|
|
197
|
+
// min_node_count - computed: false, optional: false, required: true
|
|
198
|
+
_minNodeCount;
|
|
199
|
+
get minNodeCount() {
|
|
200
|
+
return this.getNumberAttribute('min_node_count');
|
|
201
|
+
}
|
|
202
|
+
set minNodeCount(value) {
|
|
203
|
+
this._minNodeCount = value;
|
|
204
|
+
}
|
|
205
|
+
// Temporarily expose input value. Use with caution.
|
|
206
|
+
get minNodeCountInput() {
|
|
207
|
+
return this._minNodeCount;
|
|
208
|
+
}
|
|
209
|
+
// name - computed: false, optional: false, required: true
|
|
210
|
+
_name;
|
|
211
|
+
get name() {
|
|
212
|
+
return this.getStringAttribute('name');
|
|
213
|
+
}
|
|
214
|
+
set name(value) {
|
|
215
|
+
this._name = value;
|
|
216
|
+
}
|
|
217
|
+
// Temporarily expose input value. Use with caution.
|
|
218
|
+
get nameInput() {
|
|
219
|
+
return this._name;
|
|
220
|
+
}
|
|
221
|
+
// node_count - computed: false, optional: false, required: true
|
|
222
|
+
_nodeCount;
|
|
223
|
+
get nodeCount() {
|
|
224
|
+
return this.getNumberAttribute('node_count');
|
|
225
|
+
}
|
|
226
|
+
set nodeCount(value) {
|
|
227
|
+
this._nodeCount = value;
|
|
228
|
+
}
|
|
229
|
+
// Temporarily expose input value. Use with caution.
|
|
230
|
+
get nodeCountInput() {
|
|
231
|
+
return this._nodeCount;
|
|
232
|
+
}
|
|
233
|
+
// stack_id - computed: true, optional: false, required: false
|
|
234
|
+
get stackId() {
|
|
235
|
+
return this.getStringAttribute('stack_id');
|
|
236
|
+
}
|
|
237
|
+
// uuid - computed: true, optional: false, required: false
|
|
238
|
+
get uuid() {
|
|
239
|
+
return this.getStringAttribute('uuid');
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
export function k8STimeoutsToTerraform(struct) {
|
|
243
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
244
|
+
return struct;
|
|
245
|
+
}
|
|
246
|
+
if (cdktf.isComplexElement(struct)) {
|
|
247
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
248
|
+
}
|
|
249
|
+
return {
|
|
250
|
+
create: cdktf.stringToTerraform(struct.create),
|
|
251
|
+
update: cdktf.stringToTerraform(struct.update),
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
export function k8STimeoutsToHclTerraform(struct) {
|
|
255
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
256
|
+
return struct;
|
|
257
|
+
}
|
|
258
|
+
if (cdktf.isComplexElement(struct)) {
|
|
259
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
260
|
+
}
|
|
261
|
+
const attrs = {
|
|
262
|
+
create: {
|
|
263
|
+
value: cdktf.stringToHclTerraform(struct.create),
|
|
264
|
+
isBlock: false,
|
|
265
|
+
type: "simple",
|
|
266
|
+
storageClassType: "string",
|
|
267
|
+
},
|
|
268
|
+
update: {
|
|
269
|
+
value: cdktf.stringToHclTerraform(struct.update),
|
|
270
|
+
isBlock: false,
|
|
271
|
+
type: "simple",
|
|
272
|
+
storageClassType: "string",
|
|
273
|
+
},
|
|
274
|
+
};
|
|
275
|
+
// remove undefined attributes
|
|
276
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
277
|
+
}
|
|
278
|
+
export class K8STimeoutsOutputReference extends cdktf.ComplexObject {
|
|
279
|
+
isEmptyObject = false;
|
|
280
|
+
resolvableValue;
|
|
281
|
+
/**
|
|
282
|
+
* @param terraformResource The parent resource
|
|
283
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
284
|
+
*/
|
|
285
|
+
constructor(terraformResource, terraformAttribute) {
|
|
286
|
+
super(terraformResource, terraformAttribute, false);
|
|
287
|
+
}
|
|
288
|
+
get internalValue() {
|
|
289
|
+
if (this.resolvableValue) {
|
|
290
|
+
return this.resolvableValue;
|
|
291
|
+
}
|
|
292
|
+
let hasAnyValues = this.isEmptyObject;
|
|
293
|
+
const internalValueResult = {};
|
|
294
|
+
if (this._create !== undefined) {
|
|
295
|
+
hasAnyValues = true;
|
|
296
|
+
internalValueResult.create = this._create;
|
|
297
|
+
}
|
|
298
|
+
if (this._update !== undefined) {
|
|
299
|
+
hasAnyValues = true;
|
|
300
|
+
internalValueResult.update = this._update;
|
|
301
|
+
}
|
|
302
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
303
|
+
}
|
|
304
|
+
set internalValue(value) {
|
|
305
|
+
if (value === undefined) {
|
|
306
|
+
this.isEmptyObject = false;
|
|
307
|
+
this.resolvableValue = undefined;
|
|
308
|
+
this._create = undefined;
|
|
309
|
+
this._update = undefined;
|
|
310
|
+
}
|
|
311
|
+
else if (cdktf.Tokenization.isResolvable(value)) {
|
|
312
|
+
this.isEmptyObject = false;
|
|
313
|
+
this.resolvableValue = value;
|
|
314
|
+
}
|
|
315
|
+
else {
|
|
316
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
317
|
+
this.resolvableValue = undefined;
|
|
318
|
+
this._create = value.create;
|
|
319
|
+
this._update = value.update;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
// create - computed: false, optional: true, required: false
|
|
323
|
+
_create;
|
|
324
|
+
get create() {
|
|
325
|
+
return this.getStringAttribute('create');
|
|
326
|
+
}
|
|
327
|
+
set create(value) {
|
|
328
|
+
this._create = value;
|
|
329
|
+
}
|
|
330
|
+
resetCreate() {
|
|
331
|
+
this._create = undefined;
|
|
332
|
+
}
|
|
333
|
+
// Temporarily expose input value. Use with caution.
|
|
334
|
+
get createInput() {
|
|
335
|
+
return this._create;
|
|
336
|
+
}
|
|
337
|
+
// update - computed: false, optional: true, required: false
|
|
338
|
+
_update;
|
|
339
|
+
get update() {
|
|
340
|
+
return this.getStringAttribute('update');
|
|
341
|
+
}
|
|
342
|
+
set update(value) {
|
|
343
|
+
this._update = value;
|
|
344
|
+
}
|
|
345
|
+
resetUpdate() {
|
|
346
|
+
this._update = undefined;
|
|
347
|
+
}
|
|
348
|
+
// Temporarily expose input value. Use with caution.
|
|
349
|
+
get updateInput() {
|
|
350
|
+
return this._update;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* Represents a {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/k8s edgecenter_k8s}
|
|
355
|
+
*/
|
|
356
|
+
export class K8S extends cdktf.TerraformResource {
|
|
357
|
+
// =================
|
|
358
|
+
// STATIC PROPERTIES
|
|
359
|
+
// =================
|
|
360
|
+
static tfResourceType = "edgecenter_k8s";
|
|
361
|
+
// ==============
|
|
362
|
+
// STATIC Methods
|
|
363
|
+
// ==============
|
|
364
|
+
/**
|
|
365
|
+
* Generates CDKTF code for importing a K8S resource upon running "cdktf plan <stack-name>"
|
|
366
|
+
* @param scope The scope in which to define this construct
|
|
367
|
+
* @param importToId The construct id used in the generated config for the K8S to import
|
|
368
|
+
* @param importFromId The id of the existing K8S that should be imported. Refer to the {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/k8s#import import section} in the documentation of this resource for the id to use
|
|
369
|
+
* @param provider? Optional instance of the provider where the K8S to import is found
|
|
370
|
+
*/
|
|
371
|
+
static generateConfigForImport(scope, importToId, importFromId, provider) {
|
|
372
|
+
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "edgecenter_k8s", importId: importFromId, provider });
|
|
373
|
+
}
|
|
374
|
+
// ===========
|
|
375
|
+
// INITIALIZER
|
|
376
|
+
// ===========
|
|
377
|
+
/**
|
|
378
|
+
* Create a new {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/k8s edgecenter_k8s} Resource
|
|
379
|
+
*
|
|
380
|
+
* @param scope The scope in which to define this construct
|
|
381
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
382
|
+
* @param options K8SConfig
|
|
383
|
+
*/
|
|
384
|
+
constructor(scope, id, config) {
|
|
385
|
+
super(scope, id, {
|
|
386
|
+
terraformResourceType: 'edgecenter_k8s',
|
|
387
|
+
terraformGeneratorMetadata: {
|
|
388
|
+
providerName: 'edgecenter',
|
|
389
|
+
providerVersion: '0.10.4',
|
|
390
|
+
providerVersionConstraint: '0.10.4'
|
|
391
|
+
},
|
|
392
|
+
provider: config.provider,
|
|
393
|
+
dependsOn: config.dependsOn,
|
|
394
|
+
count: config.count,
|
|
395
|
+
lifecycle: config.lifecycle,
|
|
396
|
+
provisioners: config.provisioners,
|
|
397
|
+
connection: config.connection,
|
|
398
|
+
forEach: config.forEach
|
|
399
|
+
});
|
|
400
|
+
this._autoHealingEnabled = config.autoHealingEnabled;
|
|
401
|
+
this._fixedNetwork = config.fixedNetwork;
|
|
402
|
+
this._fixedSubnet = config.fixedSubnet;
|
|
403
|
+
this._id = config.id;
|
|
404
|
+
this._keypair = config.keypair;
|
|
405
|
+
this._lastUpdated = config.lastUpdated;
|
|
406
|
+
this._masterLbFloatingIpEnabled = config.masterLbFloatingIpEnabled;
|
|
407
|
+
this._name = config.name;
|
|
408
|
+
this._podsIpPool = config.podsIpPool;
|
|
409
|
+
this._projectId = config.projectId;
|
|
410
|
+
this._projectName = config.projectName;
|
|
411
|
+
this._regionId = config.regionId;
|
|
412
|
+
this._regionName = config.regionName;
|
|
413
|
+
this._servicesIpPool = config.servicesIpPool;
|
|
414
|
+
this._version = config.version;
|
|
415
|
+
this._pool.internalValue = config.pool;
|
|
416
|
+
this._timeouts.internalValue = config.timeouts;
|
|
417
|
+
}
|
|
418
|
+
// ==========
|
|
419
|
+
// ATTRIBUTES
|
|
420
|
+
// ==========
|
|
421
|
+
// api_address - computed: true, optional: false, required: false
|
|
422
|
+
get apiAddress() {
|
|
423
|
+
return this.getStringAttribute('api_address');
|
|
424
|
+
}
|
|
425
|
+
// auto_healing_enabled - computed: false, optional: true, required: false
|
|
426
|
+
_autoHealingEnabled;
|
|
427
|
+
get autoHealingEnabled() {
|
|
428
|
+
return this.getBooleanAttribute('auto_healing_enabled');
|
|
429
|
+
}
|
|
430
|
+
set autoHealingEnabled(value) {
|
|
431
|
+
this._autoHealingEnabled = value;
|
|
432
|
+
}
|
|
433
|
+
resetAutoHealingEnabled() {
|
|
434
|
+
this._autoHealingEnabled = undefined;
|
|
435
|
+
}
|
|
436
|
+
// Temporarily expose input value. Use with caution.
|
|
437
|
+
get autoHealingEnabledInput() {
|
|
438
|
+
return this._autoHealingEnabled;
|
|
439
|
+
}
|
|
440
|
+
// cluster_template_id - computed: true, optional: false, required: false
|
|
441
|
+
get clusterTemplateId() {
|
|
442
|
+
return this.getStringAttribute('cluster_template_id');
|
|
443
|
+
}
|
|
444
|
+
// container_version - computed: true, optional: false, required: false
|
|
445
|
+
get containerVersion() {
|
|
446
|
+
return this.getStringAttribute('container_version');
|
|
447
|
+
}
|
|
448
|
+
// created_at - computed: true, optional: false, required: false
|
|
449
|
+
get createdAt() {
|
|
450
|
+
return this.getStringAttribute('created_at');
|
|
451
|
+
}
|
|
452
|
+
// discovery_url - computed: true, optional: false, required: false
|
|
453
|
+
get discoveryUrl() {
|
|
454
|
+
return this.getStringAttribute('discovery_url');
|
|
455
|
+
}
|
|
456
|
+
// faults - computed: true, optional: false, required: false
|
|
457
|
+
_faults = new cdktf.StringMap(this, "faults");
|
|
458
|
+
get faults() {
|
|
459
|
+
return this._faults;
|
|
460
|
+
}
|
|
461
|
+
// fixed_network - computed: false, optional: false, required: true
|
|
462
|
+
_fixedNetwork;
|
|
463
|
+
get fixedNetwork() {
|
|
464
|
+
return this.getStringAttribute('fixed_network');
|
|
465
|
+
}
|
|
466
|
+
set fixedNetwork(value) {
|
|
467
|
+
this._fixedNetwork = value;
|
|
468
|
+
}
|
|
469
|
+
// Temporarily expose input value. Use with caution.
|
|
470
|
+
get fixedNetworkInput() {
|
|
471
|
+
return this._fixedNetwork;
|
|
472
|
+
}
|
|
473
|
+
// fixed_subnet - computed: false, optional: false, required: true
|
|
474
|
+
_fixedSubnet;
|
|
475
|
+
get fixedSubnet() {
|
|
476
|
+
return this.getStringAttribute('fixed_subnet');
|
|
477
|
+
}
|
|
478
|
+
set fixedSubnet(value) {
|
|
479
|
+
this._fixedSubnet = value;
|
|
480
|
+
}
|
|
481
|
+
// Temporarily expose input value. Use with caution.
|
|
482
|
+
get fixedSubnetInput() {
|
|
483
|
+
return this._fixedSubnet;
|
|
484
|
+
}
|
|
485
|
+
// health_status - computed: true, optional: false, required: false
|
|
486
|
+
get healthStatus() {
|
|
487
|
+
return this.getStringAttribute('health_status');
|
|
488
|
+
}
|
|
489
|
+
// health_status_reason - computed: true, optional: false, required: false
|
|
490
|
+
_healthStatusReason = new cdktf.StringMap(this, "health_status_reason");
|
|
491
|
+
get healthStatusReason() {
|
|
492
|
+
return this._healthStatusReason;
|
|
493
|
+
}
|
|
494
|
+
// id - computed: true, optional: true, required: false
|
|
495
|
+
_id;
|
|
496
|
+
get id() {
|
|
497
|
+
return this.getStringAttribute('id');
|
|
498
|
+
}
|
|
499
|
+
set id(value) {
|
|
500
|
+
this._id = value;
|
|
501
|
+
}
|
|
502
|
+
resetId() {
|
|
503
|
+
this._id = undefined;
|
|
504
|
+
}
|
|
505
|
+
// Temporarily expose input value. Use with caution.
|
|
506
|
+
get idInput() {
|
|
507
|
+
return this._id;
|
|
508
|
+
}
|
|
509
|
+
// keypair - computed: false, optional: false, required: true
|
|
510
|
+
_keypair;
|
|
511
|
+
get keypair() {
|
|
512
|
+
return this.getStringAttribute('keypair');
|
|
513
|
+
}
|
|
514
|
+
set keypair(value) {
|
|
515
|
+
this._keypair = value;
|
|
516
|
+
}
|
|
517
|
+
// Temporarily expose input value. Use with caution.
|
|
518
|
+
get keypairInput() {
|
|
519
|
+
return this._keypair;
|
|
520
|
+
}
|
|
521
|
+
// last_updated - computed: true, optional: true, required: false
|
|
522
|
+
_lastUpdated;
|
|
523
|
+
get lastUpdated() {
|
|
524
|
+
return this.getStringAttribute('last_updated');
|
|
525
|
+
}
|
|
526
|
+
set lastUpdated(value) {
|
|
527
|
+
this._lastUpdated = value;
|
|
528
|
+
}
|
|
529
|
+
resetLastUpdated() {
|
|
530
|
+
this._lastUpdated = undefined;
|
|
531
|
+
}
|
|
532
|
+
// Temporarily expose input value. Use with caution.
|
|
533
|
+
get lastUpdatedInput() {
|
|
534
|
+
return this._lastUpdated;
|
|
535
|
+
}
|
|
536
|
+
// master_addresses - computed: true, optional: false, required: false
|
|
537
|
+
get masterAddresses() {
|
|
538
|
+
return this.getListAttribute('master_addresses');
|
|
539
|
+
}
|
|
540
|
+
// master_flavor_id - computed: true, optional: false, required: false
|
|
541
|
+
get masterFlavorId() {
|
|
542
|
+
return this.getStringAttribute('master_flavor_id');
|
|
543
|
+
}
|
|
544
|
+
// master_lb_floating_ip_enabled - computed: false, optional: true, required: false
|
|
545
|
+
_masterLbFloatingIpEnabled;
|
|
546
|
+
get masterLbFloatingIpEnabled() {
|
|
547
|
+
return this.getBooleanAttribute('master_lb_floating_ip_enabled');
|
|
548
|
+
}
|
|
549
|
+
set masterLbFloatingIpEnabled(value) {
|
|
550
|
+
this._masterLbFloatingIpEnabled = value;
|
|
551
|
+
}
|
|
552
|
+
resetMasterLbFloatingIpEnabled() {
|
|
553
|
+
this._masterLbFloatingIpEnabled = undefined;
|
|
554
|
+
}
|
|
555
|
+
// Temporarily expose input value. Use with caution.
|
|
556
|
+
get masterLbFloatingIpEnabledInput() {
|
|
557
|
+
return this._masterLbFloatingIpEnabled;
|
|
558
|
+
}
|
|
559
|
+
// name - computed: false, optional: false, required: true
|
|
560
|
+
_name;
|
|
561
|
+
get name() {
|
|
562
|
+
return this.getStringAttribute('name');
|
|
563
|
+
}
|
|
564
|
+
set name(value) {
|
|
565
|
+
this._name = value;
|
|
566
|
+
}
|
|
567
|
+
// Temporarily expose input value. Use with caution.
|
|
568
|
+
get nameInput() {
|
|
569
|
+
return this._name;
|
|
570
|
+
}
|
|
571
|
+
// node_addresses - computed: true, optional: false, required: false
|
|
572
|
+
get nodeAddresses() {
|
|
573
|
+
return this.getListAttribute('node_addresses');
|
|
574
|
+
}
|
|
575
|
+
// node_count - computed: true, optional: false, required: false
|
|
576
|
+
get nodeCount() {
|
|
577
|
+
return this.getNumberAttribute('node_count');
|
|
578
|
+
}
|
|
579
|
+
// pods_ip_pool - computed: false, optional: true, required: false
|
|
580
|
+
_podsIpPool;
|
|
581
|
+
get podsIpPool() {
|
|
582
|
+
return this.getStringAttribute('pods_ip_pool');
|
|
583
|
+
}
|
|
584
|
+
set podsIpPool(value) {
|
|
585
|
+
this._podsIpPool = value;
|
|
586
|
+
}
|
|
587
|
+
resetPodsIpPool() {
|
|
588
|
+
this._podsIpPool = undefined;
|
|
589
|
+
}
|
|
590
|
+
// Temporarily expose input value. Use with caution.
|
|
591
|
+
get podsIpPoolInput() {
|
|
592
|
+
return this._podsIpPool;
|
|
593
|
+
}
|
|
594
|
+
// project_id - computed: false, optional: true, required: false
|
|
595
|
+
_projectId;
|
|
596
|
+
get projectId() {
|
|
597
|
+
return this.getNumberAttribute('project_id');
|
|
598
|
+
}
|
|
599
|
+
set projectId(value) {
|
|
600
|
+
this._projectId = value;
|
|
601
|
+
}
|
|
602
|
+
resetProjectId() {
|
|
603
|
+
this._projectId = undefined;
|
|
604
|
+
}
|
|
605
|
+
// Temporarily expose input value. Use with caution.
|
|
606
|
+
get projectIdInput() {
|
|
607
|
+
return this._projectId;
|
|
608
|
+
}
|
|
609
|
+
// project_name - computed: false, optional: true, required: false
|
|
610
|
+
_projectName;
|
|
611
|
+
get projectName() {
|
|
612
|
+
return this.getStringAttribute('project_name');
|
|
613
|
+
}
|
|
614
|
+
set projectName(value) {
|
|
615
|
+
this._projectName = value;
|
|
616
|
+
}
|
|
617
|
+
resetProjectName() {
|
|
618
|
+
this._projectName = undefined;
|
|
619
|
+
}
|
|
620
|
+
// Temporarily expose input value. Use with caution.
|
|
621
|
+
get projectNameInput() {
|
|
622
|
+
return this._projectName;
|
|
623
|
+
}
|
|
624
|
+
// region_id - computed: false, optional: true, required: false
|
|
625
|
+
_regionId;
|
|
626
|
+
get regionId() {
|
|
627
|
+
return this.getNumberAttribute('region_id');
|
|
628
|
+
}
|
|
629
|
+
set regionId(value) {
|
|
630
|
+
this._regionId = value;
|
|
631
|
+
}
|
|
632
|
+
resetRegionId() {
|
|
633
|
+
this._regionId = undefined;
|
|
634
|
+
}
|
|
635
|
+
// Temporarily expose input value. Use with caution.
|
|
636
|
+
get regionIdInput() {
|
|
637
|
+
return this._regionId;
|
|
638
|
+
}
|
|
639
|
+
// region_name - computed: false, optional: true, required: false
|
|
640
|
+
_regionName;
|
|
641
|
+
get regionName() {
|
|
642
|
+
return this.getStringAttribute('region_name');
|
|
643
|
+
}
|
|
644
|
+
set regionName(value) {
|
|
645
|
+
this._regionName = value;
|
|
646
|
+
}
|
|
647
|
+
resetRegionName() {
|
|
648
|
+
this._regionName = undefined;
|
|
649
|
+
}
|
|
650
|
+
// Temporarily expose input value. Use with caution.
|
|
651
|
+
get regionNameInput() {
|
|
652
|
+
return this._regionName;
|
|
653
|
+
}
|
|
654
|
+
// services_ip_pool - computed: false, optional: true, required: false
|
|
655
|
+
_servicesIpPool;
|
|
656
|
+
get servicesIpPool() {
|
|
657
|
+
return this.getStringAttribute('services_ip_pool');
|
|
658
|
+
}
|
|
659
|
+
set servicesIpPool(value) {
|
|
660
|
+
this._servicesIpPool = value;
|
|
661
|
+
}
|
|
662
|
+
resetServicesIpPool() {
|
|
663
|
+
this._servicesIpPool = undefined;
|
|
664
|
+
}
|
|
665
|
+
// Temporarily expose input value. Use with caution.
|
|
666
|
+
get servicesIpPoolInput() {
|
|
667
|
+
return this._servicesIpPool;
|
|
668
|
+
}
|
|
669
|
+
// status - computed: true, optional: false, required: false
|
|
670
|
+
get status() {
|
|
671
|
+
return this.getStringAttribute('status');
|
|
672
|
+
}
|
|
673
|
+
// status_reason - computed: true, optional: false, required: false
|
|
674
|
+
get statusReason() {
|
|
675
|
+
return this.getStringAttribute('status_reason');
|
|
676
|
+
}
|
|
677
|
+
// updated_at - computed: true, optional: false, required: false
|
|
678
|
+
get updatedAt() {
|
|
679
|
+
return this.getStringAttribute('updated_at');
|
|
680
|
+
}
|
|
681
|
+
// user_id - computed: true, optional: false, required: false
|
|
682
|
+
get userId() {
|
|
683
|
+
return this.getStringAttribute('user_id');
|
|
684
|
+
}
|
|
685
|
+
// version - computed: false, optional: false, required: true
|
|
686
|
+
_version;
|
|
687
|
+
get version() {
|
|
688
|
+
return this.getStringAttribute('version');
|
|
689
|
+
}
|
|
690
|
+
set version(value) {
|
|
691
|
+
this._version = value;
|
|
692
|
+
}
|
|
693
|
+
// Temporarily expose input value. Use with caution.
|
|
694
|
+
get versionInput() {
|
|
695
|
+
return this._version;
|
|
696
|
+
}
|
|
697
|
+
// pool - computed: false, optional: false, required: true
|
|
698
|
+
_pool = new K8SPoolOutputReference(this, "pool");
|
|
699
|
+
get pool() {
|
|
700
|
+
return this._pool;
|
|
701
|
+
}
|
|
702
|
+
putPool(value) {
|
|
703
|
+
this._pool.internalValue = value;
|
|
704
|
+
}
|
|
705
|
+
// Temporarily expose input value. Use with caution.
|
|
706
|
+
get poolInput() {
|
|
707
|
+
return this._pool.internalValue;
|
|
708
|
+
}
|
|
709
|
+
// timeouts - computed: false, optional: true, required: false
|
|
710
|
+
_timeouts = new K8STimeoutsOutputReference(this, "timeouts");
|
|
711
|
+
get timeouts() {
|
|
712
|
+
return this._timeouts;
|
|
713
|
+
}
|
|
714
|
+
putTimeouts(value) {
|
|
715
|
+
this._timeouts.internalValue = value;
|
|
716
|
+
}
|
|
717
|
+
resetTimeouts() {
|
|
718
|
+
this._timeouts.internalValue = undefined;
|
|
719
|
+
}
|
|
720
|
+
// Temporarily expose input value. Use with caution.
|
|
721
|
+
get timeoutsInput() {
|
|
722
|
+
return this._timeouts.internalValue;
|
|
723
|
+
}
|
|
724
|
+
// =========
|
|
725
|
+
// SYNTHESIS
|
|
726
|
+
// =========
|
|
727
|
+
synthesizeAttributes() {
|
|
728
|
+
return {
|
|
729
|
+
auto_healing_enabled: cdktf.booleanToTerraform(this._autoHealingEnabled),
|
|
730
|
+
fixed_network: cdktf.stringToTerraform(this._fixedNetwork),
|
|
731
|
+
fixed_subnet: cdktf.stringToTerraform(this._fixedSubnet),
|
|
732
|
+
id: cdktf.stringToTerraform(this._id),
|
|
733
|
+
keypair: cdktf.stringToTerraform(this._keypair),
|
|
734
|
+
last_updated: cdktf.stringToTerraform(this._lastUpdated),
|
|
735
|
+
master_lb_floating_ip_enabled: cdktf.booleanToTerraform(this._masterLbFloatingIpEnabled),
|
|
736
|
+
name: cdktf.stringToTerraform(this._name),
|
|
737
|
+
pods_ip_pool: cdktf.stringToTerraform(this._podsIpPool),
|
|
738
|
+
project_id: cdktf.numberToTerraform(this._projectId),
|
|
739
|
+
project_name: cdktf.stringToTerraform(this._projectName),
|
|
740
|
+
region_id: cdktf.numberToTerraform(this._regionId),
|
|
741
|
+
region_name: cdktf.stringToTerraform(this._regionName),
|
|
742
|
+
services_ip_pool: cdktf.stringToTerraform(this._servicesIpPool),
|
|
743
|
+
version: cdktf.stringToTerraform(this._version),
|
|
744
|
+
pool: k8SPoolToTerraform(this._pool.internalValue),
|
|
745
|
+
timeouts: k8STimeoutsToTerraform(this._timeouts.internalValue),
|
|
746
|
+
};
|
|
747
|
+
}
|
|
748
|
+
synthesizeHclAttributes() {
|
|
749
|
+
const attrs = {
|
|
750
|
+
auto_healing_enabled: {
|
|
751
|
+
value: cdktf.booleanToHclTerraform(this._autoHealingEnabled),
|
|
752
|
+
isBlock: false,
|
|
753
|
+
type: "simple",
|
|
754
|
+
storageClassType: "boolean",
|
|
755
|
+
},
|
|
756
|
+
fixed_network: {
|
|
757
|
+
value: cdktf.stringToHclTerraform(this._fixedNetwork),
|
|
758
|
+
isBlock: false,
|
|
759
|
+
type: "simple",
|
|
760
|
+
storageClassType: "string",
|
|
761
|
+
},
|
|
762
|
+
fixed_subnet: {
|
|
763
|
+
value: cdktf.stringToHclTerraform(this._fixedSubnet),
|
|
764
|
+
isBlock: false,
|
|
765
|
+
type: "simple",
|
|
766
|
+
storageClassType: "string",
|
|
767
|
+
},
|
|
768
|
+
id: {
|
|
769
|
+
value: cdktf.stringToHclTerraform(this._id),
|
|
770
|
+
isBlock: false,
|
|
771
|
+
type: "simple",
|
|
772
|
+
storageClassType: "string",
|
|
773
|
+
},
|
|
774
|
+
keypair: {
|
|
775
|
+
value: cdktf.stringToHclTerraform(this._keypair),
|
|
776
|
+
isBlock: false,
|
|
777
|
+
type: "simple",
|
|
778
|
+
storageClassType: "string",
|
|
779
|
+
},
|
|
780
|
+
last_updated: {
|
|
781
|
+
value: cdktf.stringToHclTerraform(this._lastUpdated),
|
|
782
|
+
isBlock: false,
|
|
783
|
+
type: "simple",
|
|
784
|
+
storageClassType: "string",
|
|
785
|
+
},
|
|
786
|
+
master_lb_floating_ip_enabled: {
|
|
787
|
+
value: cdktf.booleanToHclTerraform(this._masterLbFloatingIpEnabled),
|
|
788
|
+
isBlock: false,
|
|
789
|
+
type: "simple",
|
|
790
|
+
storageClassType: "boolean",
|
|
791
|
+
},
|
|
792
|
+
name: {
|
|
793
|
+
value: cdktf.stringToHclTerraform(this._name),
|
|
794
|
+
isBlock: false,
|
|
795
|
+
type: "simple",
|
|
796
|
+
storageClassType: "string",
|
|
797
|
+
},
|
|
798
|
+
pods_ip_pool: {
|
|
799
|
+
value: cdktf.stringToHclTerraform(this._podsIpPool),
|
|
800
|
+
isBlock: false,
|
|
801
|
+
type: "simple",
|
|
802
|
+
storageClassType: "string",
|
|
803
|
+
},
|
|
804
|
+
project_id: {
|
|
805
|
+
value: cdktf.numberToHclTerraform(this._projectId),
|
|
806
|
+
isBlock: false,
|
|
807
|
+
type: "simple",
|
|
808
|
+
storageClassType: "number",
|
|
809
|
+
},
|
|
810
|
+
project_name: {
|
|
811
|
+
value: cdktf.stringToHclTerraform(this._projectName),
|
|
812
|
+
isBlock: false,
|
|
813
|
+
type: "simple",
|
|
814
|
+
storageClassType: "string",
|
|
815
|
+
},
|
|
816
|
+
region_id: {
|
|
817
|
+
value: cdktf.numberToHclTerraform(this._regionId),
|
|
818
|
+
isBlock: false,
|
|
819
|
+
type: "simple",
|
|
820
|
+
storageClassType: "number",
|
|
821
|
+
},
|
|
822
|
+
region_name: {
|
|
823
|
+
value: cdktf.stringToHclTerraform(this._regionName),
|
|
824
|
+
isBlock: false,
|
|
825
|
+
type: "simple",
|
|
826
|
+
storageClassType: "string",
|
|
827
|
+
},
|
|
828
|
+
services_ip_pool: {
|
|
829
|
+
value: cdktf.stringToHclTerraform(this._servicesIpPool),
|
|
830
|
+
isBlock: false,
|
|
831
|
+
type: "simple",
|
|
832
|
+
storageClassType: "string",
|
|
833
|
+
},
|
|
834
|
+
version: {
|
|
835
|
+
value: cdktf.stringToHclTerraform(this._version),
|
|
836
|
+
isBlock: false,
|
|
837
|
+
type: "simple",
|
|
838
|
+
storageClassType: "string",
|
|
839
|
+
},
|
|
840
|
+
pool: {
|
|
841
|
+
value: k8SPoolToHclTerraform(this._pool.internalValue),
|
|
842
|
+
isBlock: true,
|
|
843
|
+
type: "list",
|
|
844
|
+
storageClassType: "K8SPoolList",
|
|
845
|
+
},
|
|
846
|
+
timeouts: {
|
|
847
|
+
value: k8STimeoutsToHclTerraform(this._timeouts.internalValue),
|
|
848
|
+
isBlock: true,
|
|
849
|
+
type: "struct",
|
|
850
|
+
storageClassType: "K8STimeouts",
|
|
851
|
+
},
|
|
852
|
+
};
|
|
853
|
+
// remove undefined attributes
|
|
854
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
855
|
+
}
|
|
856
|
+
}
|