@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,211 @@
|
|
|
1
|
+
// https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/k8s_client_config
|
|
2
|
+
// generated from terraform resource schema
|
|
3
|
+
import * as cdktf from 'cdktf';
|
|
4
|
+
/**
|
|
5
|
+
* Represents a {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/k8s_client_config edgecenter_k8s_client_config}
|
|
6
|
+
*/
|
|
7
|
+
export class DataEdgecenterK8SClientConfig extends cdktf.TerraformDataSource {
|
|
8
|
+
// =================
|
|
9
|
+
// STATIC PROPERTIES
|
|
10
|
+
// =================
|
|
11
|
+
static tfResourceType = "edgecenter_k8s_client_config";
|
|
12
|
+
// ==============
|
|
13
|
+
// STATIC Methods
|
|
14
|
+
// ==============
|
|
15
|
+
/**
|
|
16
|
+
* Generates CDKTF code for importing a DataEdgecenterK8SClientConfig resource upon running "cdktf plan <stack-name>"
|
|
17
|
+
* @param scope The scope in which to define this construct
|
|
18
|
+
* @param importToId The construct id used in the generated config for the DataEdgecenterK8SClientConfig to import
|
|
19
|
+
* @param importFromId The id of the existing DataEdgecenterK8SClientConfig that should be imported. Refer to the {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/k8s_client_config#import import section} in the documentation of this resource for the id to use
|
|
20
|
+
* @param provider? Optional instance of the provider where the DataEdgecenterK8SClientConfig to import is found
|
|
21
|
+
*/
|
|
22
|
+
static generateConfigForImport(scope, importToId, importFromId, provider) {
|
|
23
|
+
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "edgecenter_k8s_client_config", importId: importFromId, provider });
|
|
24
|
+
}
|
|
25
|
+
// ===========
|
|
26
|
+
// INITIALIZER
|
|
27
|
+
// ===========
|
|
28
|
+
/**
|
|
29
|
+
* Create a new {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/k8s_client_config edgecenter_k8s_client_config} Data Source
|
|
30
|
+
*
|
|
31
|
+
* @param scope The scope in which to define this construct
|
|
32
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
33
|
+
* @param options DataEdgecenterK8SClientConfigConfig
|
|
34
|
+
*/
|
|
35
|
+
constructor(scope, id, config) {
|
|
36
|
+
super(scope, id, {
|
|
37
|
+
terraformResourceType: 'edgecenter_k8s_client_config',
|
|
38
|
+
terraformGeneratorMetadata: {
|
|
39
|
+
providerName: 'edgecenter',
|
|
40
|
+
providerVersion: '0.10.4',
|
|
41
|
+
providerVersionConstraint: '0.10.4'
|
|
42
|
+
},
|
|
43
|
+
provider: config.provider,
|
|
44
|
+
dependsOn: config.dependsOn,
|
|
45
|
+
count: config.count,
|
|
46
|
+
lifecycle: config.lifecycle,
|
|
47
|
+
provisioners: config.provisioners,
|
|
48
|
+
connection: config.connection,
|
|
49
|
+
forEach: config.forEach
|
|
50
|
+
});
|
|
51
|
+
this._clusterId = config.clusterId;
|
|
52
|
+
this._id = config.id;
|
|
53
|
+
this._projectId = config.projectId;
|
|
54
|
+
this._projectName = config.projectName;
|
|
55
|
+
this._regionId = config.regionId;
|
|
56
|
+
this._regionName = config.regionName;
|
|
57
|
+
}
|
|
58
|
+
// ==========
|
|
59
|
+
// ATTRIBUTES
|
|
60
|
+
// ==========
|
|
61
|
+
// client_certificate_data - computed: true, optional: false, required: false
|
|
62
|
+
get clientCertificateData() {
|
|
63
|
+
return this.getStringAttribute('client_certificate_data');
|
|
64
|
+
}
|
|
65
|
+
// client_key_data - computed: true, optional: false, required: false
|
|
66
|
+
get clientKeyData() {
|
|
67
|
+
return this.getStringAttribute('client_key_data');
|
|
68
|
+
}
|
|
69
|
+
// cluster_id - computed: false, optional: false, required: true
|
|
70
|
+
_clusterId;
|
|
71
|
+
get clusterId() {
|
|
72
|
+
return this.getStringAttribute('cluster_id');
|
|
73
|
+
}
|
|
74
|
+
set clusterId(value) {
|
|
75
|
+
this._clusterId = value;
|
|
76
|
+
}
|
|
77
|
+
// Temporarily expose input value. Use with caution.
|
|
78
|
+
get clusterIdInput() {
|
|
79
|
+
return this._clusterId;
|
|
80
|
+
}
|
|
81
|
+
// id - computed: true, optional: true, required: false
|
|
82
|
+
_id;
|
|
83
|
+
get id() {
|
|
84
|
+
return this.getStringAttribute('id');
|
|
85
|
+
}
|
|
86
|
+
set id(value) {
|
|
87
|
+
this._id = value;
|
|
88
|
+
}
|
|
89
|
+
resetId() {
|
|
90
|
+
this._id = undefined;
|
|
91
|
+
}
|
|
92
|
+
// Temporarily expose input value. Use with caution.
|
|
93
|
+
get idInput() {
|
|
94
|
+
return this._id;
|
|
95
|
+
}
|
|
96
|
+
// project_id - computed: false, optional: true, required: false
|
|
97
|
+
_projectId;
|
|
98
|
+
get projectId() {
|
|
99
|
+
return this.getNumberAttribute('project_id');
|
|
100
|
+
}
|
|
101
|
+
set projectId(value) {
|
|
102
|
+
this._projectId = value;
|
|
103
|
+
}
|
|
104
|
+
resetProjectId() {
|
|
105
|
+
this._projectId = undefined;
|
|
106
|
+
}
|
|
107
|
+
// Temporarily expose input value. Use with caution.
|
|
108
|
+
get projectIdInput() {
|
|
109
|
+
return this._projectId;
|
|
110
|
+
}
|
|
111
|
+
// project_name - computed: false, optional: true, required: false
|
|
112
|
+
_projectName;
|
|
113
|
+
get projectName() {
|
|
114
|
+
return this.getStringAttribute('project_name');
|
|
115
|
+
}
|
|
116
|
+
set projectName(value) {
|
|
117
|
+
this._projectName = value;
|
|
118
|
+
}
|
|
119
|
+
resetProjectName() {
|
|
120
|
+
this._projectName = undefined;
|
|
121
|
+
}
|
|
122
|
+
// Temporarily expose input value. Use with caution.
|
|
123
|
+
get projectNameInput() {
|
|
124
|
+
return this._projectName;
|
|
125
|
+
}
|
|
126
|
+
// region_id - computed: false, optional: true, required: false
|
|
127
|
+
_regionId;
|
|
128
|
+
get regionId() {
|
|
129
|
+
return this.getNumberAttribute('region_id');
|
|
130
|
+
}
|
|
131
|
+
set regionId(value) {
|
|
132
|
+
this._regionId = value;
|
|
133
|
+
}
|
|
134
|
+
resetRegionId() {
|
|
135
|
+
this._regionId = undefined;
|
|
136
|
+
}
|
|
137
|
+
// Temporarily expose input value. Use with caution.
|
|
138
|
+
get regionIdInput() {
|
|
139
|
+
return this._regionId;
|
|
140
|
+
}
|
|
141
|
+
// region_name - computed: false, optional: true, required: false
|
|
142
|
+
_regionName;
|
|
143
|
+
get regionName() {
|
|
144
|
+
return this.getStringAttribute('region_name');
|
|
145
|
+
}
|
|
146
|
+
set regionName(value) {
|
|
147
|
+
this._regionName = value;
|
|
148
|
+
}
|
|
149
|
+
resetRegionName() {
|
|
150
|
+
this._regionName = undefined;
|
|
151
|
+
}
|
|
152
|
+
// Temporarily expose input value. Use with caution.
|
|
153
|
+
get regionNameInput() {
|
|
154
|
+
return this._regionName;
|
|
155
|
+
}
|
|
156
|
+
// =========
|
|
157
|
+
// SYNTHESIS
|
|
158
|
+
// =========
|
|
159
|
+
synthesizeAttributes() {
|
|
160
|
+
return {
|
|
161
|
+
cluster_id: cdktf.stringToTerraform(this._clusterId),
|
|
162
|
+
id: cdktf.stringToTerraform(this._id),
|
|
163
|
+
project_id: cdktf.numberToTerraform(this._projectId),
|
|
164
|
+
project_name: cdktf.stringToTerraform(this._projectName),
|
|
165
|
+
region_id: cdktf.numberToTerraform(this._regionId),
|
|
166
|
+
region_name: cdktf.stringToTerraform(this._regionName),
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
synthesizeHclAttributes() {
|
|
170
|
+
const attrs = {
|
|
171
|
+
cluster_id: {
|
|
172
|
+
value: cdktf.stringToHclTerraform(this._clusterId),
|
|
173
|
+
isBlock: false,
|
|
174
|
+
type: "simple",
|
|
175
|
+
storageClassType: "string",
|
|
176
|
+
},
|
|
177
|
+
id: {
|
|
178
|
+
value: cdktf.stringToHclTerraform(this._id),
|
|
179
|
+
isBlock: false,
|
|
180
|
+
type: "simple",
|
|
181
|
+
storageClassType: "string",
|
|
182
|
+
},
|
|
183
|
+
project_id: {
|
|
184
|
+
value: cdktf.numberToHclTerraform(this._projectId),
|
|
185
|
+
isBlock: false,
|
|
186
|
+
type: "simple",
|
|
187
|
+
storageClassType: "number",
|
|
188
|
+
},
|
|
189
|
+
project_name: {
|
|
190
|
+
value: cdktf.stringToHclTerraform(this._projectName),
|
|
191
|
+
isBlock: false,
|
|
192
|
+
type: "simple",
|
|
193
|
+
storageClassType: "string",
|
|
194
|
+
},
|
|
195
|
+
region_id: {
|
|
196
|
+
value: cdktf.numberToHclTerraform(this._regionId),
|
|
197
|
+
isBlock: false,
|
|
198
|
+
type: "simple",
|
|
199
|
+
storageClassType: "number",
|
|
200
|
+
},
|
|
201
|
+
region_name: {
|
|
202
|
+
value: cdktf.stringToHclTerraform(this._regionName),
|
|
203
|
+
isBlock: false,
|
|
204
|
+
type: "simple",
|
|
205
|
+
storageClassType: "string",
|
|
206
|
+
},
|
|
207
|
+
};
|
|
208
|
+
// remove undefined attributes
|
|
209
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
210
|
+
}
|
|
211
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { Construct } from 'constructs';
|
|
2
|
+
import * as cdktf from 'cdktf';
|
|
3
|
+
export interface DataEdgecenterK8SPoolAConfig extends cdktf.TerraformMetaArguments {
|
|
4
|
+
/**
|
|
5
|
+
* The uuid of the Kubernetes cluster this pool belongs to.
|
|
6
|
+
*
|
|
7
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/k8s_pool#cluster_id DataEdgecenterK8SPoolA#cluster_id}
|
|
8
|
+
*/
|
|
9
|
+
readonly clusterId: string;
|
|
10
|
+
/**
|
|
11
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/k8s_pool#id DataEdgecenterK8SPoolA#id}
|
|
12
|
+
*
|
|
13
|
+
* Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
|
|
14
|
+
* 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.
|
|
15
|
+
*/
|
|
16
|
+
readonly id?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The uuid of the Kubernetes pool within the cluster.
|
|
19
|
+
*
|
|
20
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/k8s_pool#pool_id DataEdgecenterK8SPoolA#pool_id}
|
|
21
|
+
*/
|
|
22
|
+
readonly poolId: string;
|
|
23
|
+
/**
|
|
24
|
+
* The uuid of the project. Either 'project_id' or 'project_name' must be specified.
|
|
25
|
+
*
|
|
26
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/k8s_pool#project_id DataEdgecenterK8SPoolA#project_id}
|
|
27
|
+
*/
|
|
28
|
+
readonly projectId?: number;
|
|
29
|
+
/**
|
|
30
|
+
* The name of the project. Either 'project_id' or 'project_name' must be specified.
|
|
31
|
+
*
|
|
32
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/k8s_pool#project_name DataEdgecenterK8SPoolA#project_name}
|
|
33
|
+
*/
|
|
34
|
+
readonly projectName?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The uuid of the region. Either 'region_id' or 'region_name' must be specified.
|
|
37
|
+
*
|
|
38
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/k8s_pool#region_id DataEdgecenterK8SPoolA#region_id}
|
|
39
|
+
*/
|
|
40
|
+
readonly regionId?: number;
|
|
41
|
+
/**
|
|
42
|
+
* The name of the region. Either 'region_id' or 'region_name' must be specified.
|
|
43
|
+
*
|
|
44
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/k8s_pool#region_name DataEdgecenterK8SPoolA#region_name}
|
|
45
|
+
*/
|
|
46
|
+
readonly regionName?: string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Represents a {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/k8s_pool edgecenter_k8s_pool}
|
|
50
|
+
*/
|
|
51
|
+
export declare class DataEdgecenterK8SPoolA extends cdktf.TerraformDataSource {
|
|
52
|
+
static readonly tfResourceType = "edgecenter_k8s_pool";
|
|
53
|
+
/**
|
|
54
|
+
* Generates CDKTF code for importing a DataEdgecenterK8SPoolA resource upon running "cdktf plan <stack-name>"
|
|
55
|
+
* @param scope The scope in which to define this construct
|
|
56
|
+
* @param importToId The construct id used in the generated config for the DataEdgecenterK8SPoolA to import
|
|
57
|
+
* @param importFromId The id of the existing DataEdgecenterK8SPoolA that should be imported. Refer to the {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/k8s_pool#import import section} in the documentation of this resource for the id to use
|
|
58
|
+
* @param provider? Optional instance of the provider where the DataEdgecenterK8SPoolA to import is found
|
|
59
|
+
*/
|
|
60
|
+
static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
|
|
61
|
+
/**
|
|
62
|
+
* Create a new {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/k8s_pool edgecenter_k8s_pool} Data Source
|
|
63
|
+
*
|
|
64
|
+
* @param scope The scope in which to define this construct
|
|
65
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
66
|
+
* @param options DataEdgecenterK8SPoolAConfig
|
|
67
|
+
*/
|
|
68
|
+
constructor(scope: Construct, id: string, config: DataEdgecenterK8SPoolAConfig);
|
|
69
|
+
private _clusterId?;
|
|
70
|
+
get clusterId(): string;
|
|
71
|
+
set clusterId(value: string);
|
|
72
|
+
get clusterIdInput(): string;
|
|
73
|
+
get createdAt(): any;
|
|
74
|
+
get dockerVolumeSize(): any;
|
|
75
|
+
get dockerVolumeType(): any;
|
|
76
|
+
get flavorId(): any;
|
|
77
|
+
private _id?;
|
|
78
|
+
get id(): string;
|
|
79
|
+
set id(value: string);
|
|
80
|
+
resetId(): void;
|
|
81
|
+
get idInput(): string;
|
|
82
|
+
get isDefault(): any;
|
|
83
|
+
get maxNodeCount(): any;
|
|
84
|
+
get minNodeCount(): any;
|
|
85
|
+
get name(): any;
|
|
86
|
+
get nodeAddresses(): any;
|
|
87
|
+
get nodeCount(): any;
|
|
88
|
+
get nodeNames(): any;
|
|
89
|
+
private _poolId?;
|
|
90
|
+
get poolId(): string;
|
|
91
|
+
set poolId(value: string);
|
|
92
|
+
get poolIdInput(): string;
|
|
93
|
+
private _projectId?;
|
|
94
|
+
get projectId(): number;
|
|
95
|
+
set projectId(value: number);
|
|
96
|
+
resetProjectId(): void;
|
|
97
|
+
get projectIdInput(): number;
|
|
98
|
+
private _projectName?;
|
|
99
|
+
get projectName(): string;
|
|
100
|
+
set projectName(value: string);
|
|
101
|
+
resetProjectName(): void;
|
|
102
|
+
get projectNameInput(): string;
|
|
103
|
+
private _regionId?;
|
|
104
|
+
get regionId(): number;
|
|
105
|
+
set regionId(value: number);
|
|
106
|
+
resetRegionId(): void;
|
|
107
|
+
get regionIdInput(): number;
|
|
108
|
+
private _regionName?;
|
|
109
|
+
get regionName(): string;
|
|
110
|
+
set regionName(value: string);
|
|
111
|
+
resetRegionName(): void;
|
|
112
|
+
get regionNameInput(): string;
|
|
113
|
+
get stackId(): any;
|
|
114
|
+
protected synthesizeAttributes(): {
|
|
115
|
+
[name: string]: any;
|
|
116
|
+
};
|
|
117
|
+
protected synthesizeHclAttributes(): {
|
|
118
|
+
[name: string]: any;
|
|
119
|
+
};
|
|
120
|
+
}
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
// https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/k8s_pool
|
|
2
|
+
// generated from terraform resource schema
|
|
3
|
+
import * as cdktf from 'cdktf';
|
|
4
|
+
/**
|
|
5
|
+
* Represents a {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/k8s_pool edgecenter_k8s_pool}
|
|
6
|
+
*/
|
|
7
|
+
export class DataEdgecenterK8SPoolA extends cdktf.TerraformDataSource {
|
|
8
|
+
// =================
|
|
9
|
+
// STATIC PROPERTIES
|
|
10
|
+
// =================
|
|
11
|
+
static tfResourceType = "edgecenter_k8s_pool";
|
|
12
|
+
// ==============
|
|
13
|
+
// STATIC Methods
|
|
14
|
+
// ==============
|
|
15
|
+
/**
|
|
16
|
+
* Generates CDKTF code for importing a DataEdgecenterK8SPoolA resource upon running "cdktf plan <stack-name>"
|
|
17
|
+
* @param scope The scope in which to define this construct
|
|
18
|
+
* @param importToId The construct id used in the generated config for the DataEdgecenterK8SPoolA to import
|
|
19
|
+
* @param importFromId The id of the existing DataEdgecenterK8SPoolA that should be imported. Refer to the {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/k8s_pool#import import section} in the documentation of this resource for the id to use
|
|
20
|
+
* @param provider? Optional instance of the provider where the DataEdgecenterK8SPoolA to import is found
|
|
21
|
+
*/
|
|
22
|
+
static generateConfigForImport(scope, importToId, importFromId, provider) {
|
|
23
|
+
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "edgecenter_k8s_pool", importId: importFromId, provider });
|
|
24
|
+
}
|
|
25
|
+
// ===========
|
|
26
|
+
// INITIALIZER
|
|
27
|
+
// ===========
|
|
28
|
+
/**
|
|
29
|
+
* Create a new {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/k8s_pool edgecenter_k8s_pool} Data Source
|
|
30
|
+
*
|
|
31
|
+
* @param scope The scope in which to define this construct
|
|
32
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
33
|
+
* @param options DataEdgecenterK8SPoolAConfig
|
|
34
|
+
*/
|
|
35
|
+
constructor(scope, id, config) {
|
|
36
|
+
super(scope, id, {
|
|
37
|
+
terraformResourceType: 'edgecenter_k8s_pool',
|
|
38
|
+
terraformGeneratorMetadata: {
|
|
39
|
+
providerName: 'edgecenter',
|
|
40
|
+
providerVersion: '0.10.4',
|
|
41
|
+
providerVersionConstraint: '0.10.4'
|
|
42
|
+
},
|
|
43
|
+
provider: config.provider,
|
|
44
|
+
dependsOn: config.dependsOn,
|
|
45
|
+
count: config.count,
|
|
46
|
+
lifecycle: config.lifecycle,
|
|
47
|
+
provisioners: config.provisioners,
|
|
48
|
+
connection: config.connection,
|
|
49
|
+
forEach: config.forEach
|
|
50
|
+
});
|
|
51
|
+
this._clusterId = config.clusterId;
|
|
52
|
+
this._id = config.id;
|
|
53
|
+
this._poolId = config.poolId;
|
|
54
|
+
this._projectId = config.projectId;
|
|
55
|
+
this._projectName = config.projectName;
|
|
56
|
+
this._regionId = config.regionId;
|
|
57
|
+
this._regionName = config.regionName;
|
|
58
|
+
}
|
|
59
|
+
// ==========
|
|
60
|
+
// ATTRIBUTES
|
|
61
|
+
// ==========
|
|
62
|
+
// cluster_id - computed: false, optional: false, required: true
|
|
63
|
+
_clusterId;
|
|
64
|
+
get clusterId() {
|
|
65
|
+
return this.getStringAttribute('cluster_id');
|
|
66
|
+
}
|
|
67
|
+
set clusterId(value) {
|
|
68
|
+
this._clusterId = value;
|
|
69
|
+
}
|
|
70
|
+
// Temporarily expose input value. Use with caution.
|
|
71
|
+
get clusterIdInput() {
|
|
72
|
+
return this._clusterId;
|
|
73
|
+
}
|
|
74
|
+
// created_at - computed: true, optional: false, required: false
|
|
75
|
+
get createdAt() {
|
|
76
|
+
return this.getStringAttribute('created_at');
|
|
77
|
+
}
|
|
78
|
+
// docker_volume_size - computed: true, optional: false, required: false
|
|
79
|
+
get dockerVolumeSize() {
|
|
80
|
+
return this.getNumberAttribute('docker_volume_size');
|
|
81
|
+
}
|
|
82
|
+
// docker_volume_type - computed: true, optional: false, required: false
|
|
83
|
+
get dockerVolumeType() {
|
|
84
|
+
return this.getStringAttribute('docker_volume_type');
|
|
85
|
+
}
|
|
86
|
+
// flavor_id - computed: true, optional: false, required: false
|
|
87
|
+
get flavorId() {
|
|
88
|
+
return this.getStringAttribute('flavor_id');
|
|
89
|
+
}
|
|
90
|
+
// id - computed: true, optional: true, required: false
|
|
91
|
+
_id;
|
|
92
|
+
get id() {
|
|
93
|
+
return this.getStringAttribute('id');
|
|
94
|
+
}
|
|
95
|
+
set id(value) {
|
|
96
|
+
this._id = value;
|
|
97
|
+
}
|
|
98
|
+
resetId() {
|
|
99
|
+
this._id = undefined;
|
|
100
|
+
}
|
|
101
|
+
// Temporarily expose input value. Use with caution.
|
|
102
|
+
get idInput() {
|
|
103
|
+
return this._id;
|
|
104
|
+
}
|
|
105
|
+
// is_default - computed: true, optional: false, required: false
|
|
106
|
+
get isDefault() {
|
|
107
|
+
return this.getBooleanAttribute('is_default');
|
|
108
|
+
}
|
|
109
|
+
// max_node_count - computed: true, optional: false, required: false
|
|
110
|
+
get maxNodeCount() {
|
|
111
|
+
return this.getNumberAttribute('max_node_count');
|
|
112
|
+
}
|
|
113
|
+
// min_node_count - computed: true, optional: false, required: false
|
|
114
|
+
get minNodeCount() {
|
|
115
|
+
return this.getNumberAttribute('min_node_count');
|
|
116
|
+
}
|
|
117
|
+
// name - computed: true, optional: false, required: false
|
|
118
|
+
get name() {
|
|
119
|
+
return this.getStringAttribute('name');
|
|
120
|
+
}
|
|
121
|
+
// node_addresses - computed: true, optional: false, required: false
|
|
122
|
+
get nodeAddresses() {
|
|
123
|
+
return this.getListAttribute('node_addresses');
|
|
124
|
+
}
|
|
125
|
+
// node_count - computed: true, optional: false, required: false
|
|
126
|
+
get nodeCount() {
|
|
127
|
+
return this.getNumberAttribute('node_count');
|
|
128
|
+
}
|
|
129
|
+
// node_names - computed: true, optional: false, required: false
|
|
130
|
+
get nodeNames() {
|
|
131
|
+
return this.getListAttribute('node_names');
|
|
132
|
+
}
|
|
133
|
+
// pool_id - computed: false, optional: false, required: true
|
|
134
|
+
_poolId;
|
|
135
|
+
get poolId() {
|
|
136
|
+
return this.getStringAttribute('pool_id');
|
|
137
|
+
}
|
|
138
|
+
set poolId(value) {
|
|
139
|
+
this._poolId = value;
|
|
140
|
+
}
|
|
141
|
+
// Temporarily expose input value. Use with caution.
|
|
142
|
+
get poolIdInput() {
|
|
143
|
+
return this._poolId;
|
|
144
|
+
}
|
|
145
|
+
// project_id - computed: false, optional: true, required: false
|
|
146
|
+
_projectId;
|
|
147
|
+
get projectId() {
|
|
148
|
+
return this.getNumberAttribute('project_id');
|
|
149
|
+
}
|
|
150
|
+
set projectId(value) {
|
|
151
|
+
this._projectId = value;
|
|
152
|
+
}
|
|
153
|
+
resetProjectId() {
|
|
154
|
+
this._projectId = undefined;
|
|
155
|
+
}
|
|
156
|
+
// Temporarily expose input value. Use with caution.
|
|
157
|
+
get projectIdInput() {
|
|
158
|
+
return this._projectId;
|
|
159
|
+
}
|
|
160
|
+
// project_name - computed: false, optional: true, required: false
|
|
161
|
+
_projectName;
|
|
162
|
+
get projectName() {
|
|
163
|
+
return this.getStringAttribute('project_name');
|
|
164
|
+
}
|
|
165
|
+
set projectName(value) {
|
|
166
|
+
this._projectName = value;
|
|
167
|
+
}
|
|
168
|
+
resetProjectName() {
|
|
169
|
+
this._projectName = undefined;
|
|
170
|
+
}
|
|
171
|
+
// Temporarily expose input value. Use with caution.
|
|
172
|
+
get projectNameInput() {
|
|
173
|
+
return this._projectName;
|
|
174
|
+
}
|
|
175
|
+
// region_id - computed: false, optional: true, required: false
|
|
176
|
+
_regionId;
|
|
177
|
+
get regionId() {
|
|
178
|
+
return this.getNumberAttribute('region_id');
|
|
179
|
+
}
|
|
180
|
+
set regionId(value) {
|
|
181
|
+
this._regionId = value;
|
|
182
|
+
}
|
|
183
|
+
resetRegionId() {
|
|
184
|
+
this._regionId = undefined;
|
|
185
|
+
}
|
|
186
|
+
// Temporarily expose input value. Use with caution.
|
|
187
|
+
get regionIdInput() {
|
|
188
|
+
return this._regionId;
|
|
189
|
+
}
|
|
190
|
+
// region_name - computed: false, optional: true, required: false
|
|
191
|
+
_regionName;
|
|
192
|
+
get regionName() {
|
|
193
|
+
return this.getStringAttribute('region_name');
|
|
194
|
+
}
|
|
195
|
+
set regionName(value) {
|
|
196
|
+
this._regionName = value;
|
|
197
|
+
}
|
|
198
|
+
resetRegionName() {
|
|
199
|
+
this._regionName = undefined;
|
|
200
|
+
}
|
|
201
|
+
// Temporarily expose input value. Use with caution.
|
|
202
|
+
get regionNameInput() {
|
|
203
|
+
return this._regionName;
|
|
204
|
+
}
|
|
205
|
+
// stack_id - computed: true, optional: false, required: false
|
|
206
|
+
get stackId() {
|
|
207
|
+
return this.getStringAttribute('stack_id');
|
|
208
|
+
}
|
|
209
|
+
// =========
|
|
210
|
+
// SYNTHESIS
|
|
211
|
+
// =========
|
|
212
|
+
synthesizeAttributes() {
|
|
213
|
+
return {
|
|
214
|
+
cluster_id: cdktf.stringToTerraform(this._clusterId),
|
|
215
|
+
id: cdktf.stringToTerraform(this._id),
|
|
216
|
+
pool_id: cdktf.stringToTerraform(this._poolId),
|
|
217
|
+
project_id: cdktf.numberToTerraform(this._projectId),
|
|
218
|
+
project_name: cdktf.stringToTerraform(this._projectName),
|
|
219
|
+
region_id: cdktf.numberToTerraform(this._regionId),
|
|
220
|
+
region_name: cdktf.stringToTerraform(this._regionName),
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
synthesizeHclAttributes() {
|
|
224
|
+
const attrs = {
|
|
225
|
+
cluster_id: {
|
|
226
|
+
value: cdktf.stringToHclTerraform(this._clusterId),
|
|
227
|
+
isBlock: false,
|
|
228
|
+
type: "simple",
|
|
229
|
+
storageClassType: "string",
|
|
230
|
+
},
|
|
231
|
+
id: {
|
|
232
|
+
value: cdktf.stringToHclTerraform(this._id),
|
|
233
|
+
isBlock: false,
|
|
234
|
+
type: "simple",
|
|
235
|
+
storageClassType: "string",
|
|
236
|
+
},
|
|
237
|
+
pool_id: {
|
|
238
|
+
value: cdktf.stringToHclTerraform(this._poolId),
|
|
239
|
+
isBlock: false,
|
|
240
|
+
type: "simple",
|
|
241
|
+
storageClassType: "string",
|
|
242
|
+
},
|
|
243
|
+
project_id: {
|
|
244
|
+
value: cdktf.numberToHclTerraform(this._projectId),
|
|
245
|
+
isBlock: false,
|
|
246
|
+
type: "simple",
|
|
247
|
+
storageClassType: "number",
|
|
248
|
+
},
|
|
249
|
+
project_name: {
|
|
250
|
+
value: cdktf.stringToHclTerraform(this._projectName),
|
|
251
|
+
isBlock: false,
|
|
252
|
+
type: "simple",
|
|
253
|
+
storageClassType: "string",
|
|
254
|
+
},
|
|
255
|
+
region_id: {
|
|
256
|
+
value: cdktf.numberToHclTerraform(this._regionId),
|
|
257
|
+
isBlock: false,
|
|
258
|
+
type: "simple",
|
|
259
|
+
storageClassType: "number",
|
|
260
|
+
},
|
|
261
|
+
region_name: {
|
|
262
|
+
value: cdktf.stringToHclTerraform(this._regionName),
|
|
263
|
+
isBlock: false,
|
|
264
|
+
type: "simple",
|
|
265
|
+
storageClassType: "string",
|
|
266
|
+
},
|
|
267
|
+
};
|
|
268
|
+
// remove undefined attributes
|
|
269
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
270
|
+
}
|
|
271
|
+
}
|