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