@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,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
|
+
}
|