@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,589 @@
|
|
|
1
|
+
// https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/network
|
|
2
|
+
// generated from terraform resource schema
|
|
3
|
+
import * as cdktf from 'cdktf';
|
|
4
|
+
export function dataEdgecenterNetworkMetadataReadOnlyToTerraform(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
|
+
}
|
|
13
|
+
export function dataEdgecenterNetworkMetadataReadOnlyToHclTerraform(struct) {
|
|
14
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
15
|
+
return struct;
|
|
16
|
+
}
|
|
17
|
+
if (cdktf.isComplexElement(struct)) {
|
|
18
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
19
|
+
}
|
|
20
|
+
const attrs = {};
|
|
21
|
+
return attrs;
|
|
22
|
+
}
|
|
23
|
+
export class DataEdgecenterNetworkMetadataReadOnlyOutputReference extends cdktf.ComplexObject {
|
|
24
|
+
isEmptyObject = false;
|
|
25
|
+
/**
|
|
26
|
+
* @param terraformResource The parent resource
|
|
27
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
28
|
+
* @param complexObjectIndex the index of this item in the list
|
|
29
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
30
|
+
*/
|
|
31
|
+
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
|
|
32
|
+
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
|
|
33
|
+
}
|
|
34
|
+
get internalValue() {
|
|
35
|
+
let hasAnyValues = this.isEmptyObject;
|
|
36
|
+
const internalValueResult = {};
|
|
37
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
38
|
+
}
|
|
39
|
+
set internalValue(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
this.isEmptyObject = false;
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
// key - computed: true, optional: false, required: false
|
|
48
|
+
get key() {
|
|
49
|
+
return this.getStringAttribute('key');
|
|
50
|
+
}
|
|
51
|
+
// read_only - computed: true, optional: false, required: false
|
|
52
|
+
get readOnly() {
|
|
53
|
+
return this.getBooleanAttribute('read_only');
|
|
54
|
+
}
|
|
55
|
+
// value - computed: true, optional: false, required: false
|
|
56
|
+
get value() {
|
|
57
|
+
return this.getStringAttribute('value');
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
export class DataEdgecenterNetworkMetadataReadOnlyList extends cdktf.ComplexList {
|
|
61
|
+
terraformResource;
|
|
62
|
+
terraformAttribute;
|
|
63
|
+
wrapsSet;
|
|
64
|
+
/**
|
|
65
|
+
* @param terraformResource The parent resource
|
|
66
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
67
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
68
|
+
*/
|
|
69
|
+
constructor(terraformResource, terraformAttribute, wrapsSet) {
|
|
70
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
71
|
+
this.terraformResource = terraformResource;
|
|
72
|
+
this.terraformAttribute = terraformAttribute;
|
|
73
|
+
this.wrapsSet = wrapsSet;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* @param index the index of the item to return
|
|
77
|
+
*/
|
|
78
|
+
get(index) {
|
|
79
|
+
return new DataEdgecenterNetworkMetadataReadOnlyOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
export function dataEdgecenterNetworkSubnetsHostRoutesToTerraform(struct) {
|
|
83
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
84
|
+
return struct;
|
|
85
|
+
}
|
|
86
|
+
if (cdktf.isComplexElement(struct)) {
|
|
87
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
88
|
+
}
|
|
89
|
+
return {};
|
|
90
|
+
}
|
|
91
|
+
export function dataEdgecenterNetworkSubnetsHostRoutesToHclTerraform(struct) {
|
|
92
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
93
|
+
return struct;
|
|
94
|
+
}
|
|
95
|
+
if (cdktf.isComplexElement(struct)) {
|
|
96
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
97
|
+
}
|
|
98
|
+
const attrs = {};
|
|
99
|
+
return attrs;
|
|
100
|
+
}
|
|
101
|
+
export class DataEdgecenterNetworkSubnetsHostRoutesOutputReference extends cdktf.ComplexObject {
|
|
102
|
+
isEmptyObject = false;
|
|
103
|
+
/**
|
|
104
|
+
* @param terraformResource The parent resource
|
|
105
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
106
|
+
* @param complexObjectIndex the index of this item in the list
|
|
107
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
108
|
+
*/
|
|
109
|
+
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
|
|
110
|
+
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
|
|
111
|
+
}
|
|
112
|
+
get internalValue() {
|
|
113
|
+
let hasAnyValues = this.isEmptyObject;
|
|
114
|
+
const internalValueResult = {};
|
|
115
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
116
|
+
}
|
|
117
|
+
set internalValue(value) {
|
|
118
|
+
if (value === undefined) {
|
|
119
|
+
this.isEmptyObject = false;
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
// destination - computed: true, optional: false, required: false
|
|
126
|
+
get destination() {
|
|
127
|
+
return this.getStringAttribute('destination');
|
|
128
|
+
}
|
|
129
|
+
// nexthop - computed: true, optional: false, required: false
|
|
130
|
+
get nexthop() {
|
|
131
|
+
return this.getStringAttribute('nexthop');
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
export class DataEdgecenterNetworkSubnetsHostRoutesList extends cdktf.ComplexList {
|
|
135
|
+
terraformResource;
|
|
136
|
+
terraformAttribute;
|
|
137
|
+
wrapsSet;
|
|
138
|
+
/**
|
|
139
|
+
* @param terraformResource The parent resource
|
|
140
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
141
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
142
|
+
*/
|
|
143
|
+
constructor(terraformResource, terraformAttribute, wrapsSet) {
|
|
144
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
145
|
+
this.terraformResource = terraformResource;
|
|
146
|
+
this.terraformAttribute = terraformAttribute;
|
|
147
|
+
this.wrapsSet = wrapsSet;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* @param index the index of the item to return
|
|
151
|
+
*/
|
|
152
|
+
get(index) {
|
|
153
|
+
return new DataEdgecenterNetworkSubnetsHostRoutesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
export function dataEdgecenterNetworkSubnetsToTerraform(struct) {
|
|
157
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
158
|
+
return struct;
|
|
159
|
+
}
|
|
160
|
+
if (cdktf.isComplexElement(struct)) {
|
|
161
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
162
|
+
}
|
|
163
|
+
return {};
|
|
164
|
+
}
|
|
165
|
+
export function dataEdgecenterNetworkSubnetsToHclTerraform(struct) {
|
|
166
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
167
|
+
return struct;
|
|
168
|
+
}
|
|
169
|
+
if (cdktf.isComplexElement(struct)) {
|
|
170
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
171
|
+
}
|
|
172
|
+
const attrs = {};
|
|
173
|
+
return attrs;
|
|
174
|
+
}
|
|
175
|
+
export class DataEdgecenterNetworkSubnetsOutputReference extends cdktf.ComplexObject {
|
|
176
|
+
isEmptyObject = false;
|
|
177
|
+
resolvableValue;
|
|
178
|
+
/**
|
|
179
|
+
* @param terraformResource The parent resource
|
|
180
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
181
|
+
* @param complexObjectIndex the index of this item in the list
|
|
182
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
183
|
+
*/
|
|
184
|
+
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
|
|
185
|
+
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
|
|
186
|
+
}
|
|
187
|
+
get internalValue() {
|
|
188
|
+
if (this.resolvableValue) {
|
|
189
|
+
return this.resolvableValue;
|
|
190
|
+
}
|
|
191
|
+
let hasAnyValues = this.isEmptyObject;
|
|
192
|
+
const internalValueResult = {};
|
|
193
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
194
|
+
}
|
|
195
|
+
set internalValue(value) {
|
|
196
|
+
if (value === undefined) {
|
|
197
|
+
this.isEmptyObject = false;
|
|
198
|
+
this.resolvableValue = undefined;
|
|
199
|
+
}
|
|
200
|
+
else if (cdktf.Tokenization.isResolvable(value)) {
|
|
201
|
+
this.isEmptyObject = false;
|
|
202
|
+
this.resolvableValue = value;
|
|
203
|
+
}
|
|
204
|
+
else {
|
|
205
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
206
|
+
this.resolvableValue = undefined;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
// available_ips - computed: true, optional: false, required: false
|
|
210
|
+
get availableIps() {
|
|
211
|
+
return this.getNumberAttribute('available_ips');
|
|
212
|
+
}
|
|
213
|
+
// cidr - computed: true, optional: false, required: false
|
|
214
|
+
get cidr() {
|
|
215
|
+
return this.getStringAttribute('cidr');
|
|
216
|
+
}
|
|
217
|
+
// dns_nameservers - computed: true, optional: false, required: false
|
|
218
|
+
get dnsNameservers() {
|
|
219
|
+
return this.getListAttribute('dns_nameservers');
|
|
220
|
+
}
|
|
221
|
+
// enable_dhcp - computed: true, optional: false, required: false
|
|
222
|
+
get enableDhcp() {
|
|
223
|
+
return this.getBooleanAttribute('enable_dhcp');
|
|
224
|
+
}
|
|
225
|
+
// gateway_ip - computed: true, optional: false, required: false
|
|
226
|
+
get gatewayIp() {
|
|
227
|
+
return this.getStringAttribute('gateway_ip');
|
|
228
|
+
}
|
|
229
|
+
// has_router - computed: true, optional: false, required: false
|
|
230
|
+
get hasRouter() {
|
|
231
|
+
return this.getBooleanAttribute('has_router');
|
|
232
|
+
}
|
|
233
|
+
// host_routes - computed: true, optional: false, required: false
|
|
234
|
+
_hostRoutes = new DataEdgecenterNetworkSubnetsHostRoutesList(this, "host_routes", false);
|
|
235
|
+
get hostRoutes() {
|
|
236
|
+
return this._hostRoutes;
|
|
237
|
+
}
|
|
238
|
+
// id - computed: true, optional: false, required: false
|
|
239
|
+
get id() {
|
|
240
|
+
return this.getStringAttribute('id');
|
|
241
|
+
}
|
|
242
|
+
// name - computed: true, optional: false, required: false
|
|
243
|
+
get name() {
|
|
244
|
+
return this.getStringAttribute('name');
|
|
245
|
+
}
|
|
246
|
+
// total_ips - computed: true, optional: false, required: false
|
|
247
|
+
get totalIps() {
|
|
248
|
+
return this.getNumberAttribute('total_ips');
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
export class DataEdgecenterNetworkSubnetsList extends cdktf.ComplexList {
|
|
252
|
+
terraformResource;
|
|
253
|
+
terraformAttribute;
|
|
254
|
+
wrapsSet;
|
|
255
|
+
internalValue;
|
|
256
|
+
/**
|
|
257
|
+
* @param terraformResource The parent resource
|
|
258
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
259
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
260
|
+
*/
|
|
261
|
+
constructor(terraformResource, terraformAttribute, wrapsSet) {
|
|
262
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
263
|
+
this.terraformResource = terraformResource;
|
|
264
|
+
this.terraformAttribute = terraformAttribute;
|
|
265
|
+
this.wrapsSet = wrapsSet;
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* @param index the index of the item to return
|
|
269
|
+
*/
|
|
270
|
+
get(index) {
|
|
271
|
+
return new DataEdgecenterNetworkSubnetsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* Represents a {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/network edgecenter_network}
|
|
276
|
+
*/
|
|
277
|
+
export class DataEdgecenterNetwork extends cdktf.TerraformDataSource {
|
|
278
|
+
// =================
|
|
279
|
+
// STATIC PROPERTIES
|
|
280
|
+
// =================
|
|
281
|
+
static tfResourceType = "edgecenter_network";
|
|
282
|
+
// ==============
|
|
283
|
+
// STATIC Methods
|
|
284
|
+
// ==============
|
|
285
|
+
/**
|
|
286
|
+
* Generates CDKTF code for importing a DataEdgecenterNetwork resource upon running "cdktf plan <stack-name>"
|
|
287
|
+
* @param scope The scope in which to define this construct
|
|
288
|
+
* @param importToId The construct id used in the generated config for the DataEdgecenterNetwork to import
|
|
289
|
+
* @param importFromId The id of the existing DataEdgecenterNetwork that should be imported. Refer to the {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/network#import import section} in the documentation of this resource for the id to use
|
|
290
|
+
* @param provider? Optional instance of the provider where the DataEdgecenterNetwork to import is found
|
|
291
|
+
*/
|
|
292
|
+
static generateConfigForImport(scope, importToId, importFromId, provider) {
|
|
293
|
+
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "edgecenter_network", importId: importFromId, provider });
|
|
294
|
+
}
|
|
295
|
+
// ===========
|
|
296
|
+
// INITIALIZER
|
|
297
|
+
// ===========
|
|
298
|
+
/**
|
|
299
|
+
* Create a new {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/network edgecenter_network} Data Source
|
|
300
|
+
*
|
|
301
|
+
* @param scope The scope in which to define this construct
|
|
302
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
303
|
+
* @param options DataEdgecenterNetworkConfig = {}
|
|
304
|
+
*/
|
|
305
|
+
constructor(scope, id, config = {}) {
|
|
306
|
+
super(scope, id, {
|
|
307
|
+
terraformResourceType: 'edgecenter_network',
|
|
308
|
+
terraformGeneratorMetadata: {
|
|
309
|
+
providerName: 'edgecenter',
|
|
310
|
+
providerVersion: '0.10.4',
|
|
311
|
+
providerVersionConstraint: '0.10.4'
|
|
312
|
+
},
|
|
313
|
+
provider: config.provider,
|
|
314
|
+
dependsOn: config.dependsOn,
|
|
315
|
+
count: config.count,
|
|
316
|
+
lifecycle: config.lifecycle,
|
|
317
|
+
provisioners: config.provisioners,
|
|
318
|
+
connection: config.connection,
|
|
319
|
+
forEach: config.forEach
|
|
320
|
+
});
|
|
321
|
+
this._id = config.id;
|
|
322
|
+
this._metadataK = config.metadataK;
|
|
323
|
+
this._metadataKv = config.metadataKv;
|
|
324
|
+
this._name = config.name;
|
|
325
|
+
this._projectId = config.projectId;
|
|
326
|
+
this._projectName = config.projectName;
|
|
327
|
+
this._regionId = config.regionId;
|
|
328
|
+
this._regionName = config.regionName;
|
|
329
|
+
this._sharedWithSubnets = config.sharedWithSubnets;
|
|
330
|
+
this._subnets.internalValue = config.subnets;
|
|
331
|
+
}
|
|
332
|
+
// ==========
|
|
333
|
+
// ATTRIBUTES
|
|
334
|
+
// ==========
|
|
335
|
+
// external - computed: true, optional: false, required: false
|
|
336
|
+
get external() {
|
|
337
|
+
return this.getBooleanAttribute('external');
|
|
338
|
+
}
|
|
339
|
+
// id - computed: true, optional: true, required: false
|
|
340
|
+
_id;
|
|
341
|
+
get id() {
|
|
342
|
+
return this.getStringAttribute('id');
|
|
343
|
+
}
|
|
344
|
+
set id(value) {
|
|
345
|
+
this._id = value;
|
|
346
|
+
}
|
|
347
|
+
resetId() {
|
|
348
|
+
this._id = undefined;
|
|
349
|
+
}
|
|
350
|
+
// Temporarily expose input value. Use with caution.
|
|
351
|
+
get idInput() {
|
|
352
|
+
return this._id;
|
|
353
|
+
}
|
|
354
|
+
// metadata_k - computed: false, optional: true, required: false
|
|
355
|
+
_metadataK;
|
|
356
|
+
get metadataK() {
|
|
357
|
+
return this.getStringAttribute('metadata_k');
|
|
358
|
+
}
|
|
359
|
+
set metadataK(value) {
|
|
360
|
+
this._metadataK = value;
|
|
361
|
+
}
|
|
362
|
+
resetMetadataK() {
|
|
363
|
+
this._metadataK = undefined;
|
|
364
|
+
}
|
|
365
|
+
// Temporarily expose input value. Use with caution.
|
|
366
|
+
get metadataKInput() {
|
|
367
|
+
return this._metadataK;
|
|
368
|
+
}
|
|
369
|
+
// metadata_kv - computed: false, optional: true, required: false
|
|
370
|
+
_metadataKv;
|
|
371
|
+
get metadataKv() {
|
|
372
|
+
return this.getStringMapAttribute('metadata_kv');
|
|
373
|
+
}
|
|
374
|
+
set metadataKv(value) {
|
|
375
|
+
this._metadataKv = value;
|
|
376
|
+
}
|
|
377
|
+
resetMetadataKv() {
|
|
378
|
+
this._metadataKv = undefined;
|
|
379
|
+
}
|
|
380
|
+
// Temporarily expose input value. Use with caution.
|
|
381
|
+
get metadataKvInput() {
|
|
382
|
+
return this._metadataKv;
|
|
383
|
+
}
|
|
384
|
+
// metadata_read_only - computed: true, optional: false, required: false
|
|
385
|
+
_metadataReadOnly = new DataEdgecenterNetworkMetadataReadOnlyList(this, "metadata_read_only", false);
|
|
386
|
+
get metadataReadOnly() {
|
|
387
|
+
return this._metadataReadOnly;
|
|
388
|
+
}
|
|
389
|
+
// mtu - computed: true, optional: false, required: false
|
|
390
|
+
get mtu() {
|
|
391
|
+
return this.getNumberAttribute('mtu');
|
|
392
|
+
}
|
|
393
|
+
// name - computed: true, optional: true, required: false
|
|
394
|
+
_name;
|
|
395
|
+
get name() {
|
|
396
|
+
return this.getStringAttribute('name');
|
|
397
|
+
}
|
|
398
|
+
set name(value) {
|
|
399
|
+
this._name = value;
|
|
400
|
+
}
|
|
401
|
+
resetName() {
|
|
402
|
+
this._name = undefined;
|
|
403
|
+
}
|
|
404
|
+
// Temporarily expose input value. Use with caution.
|
|
405
|
+
get nameInput() {
|
|
406
|
+
return this._name;
|
|
407
|
+
}
|
|
408
|
+
// project_id - computed: false, optional: true, required: false
|
|
409
|
+
_projectId;
|
|
410
|
+
get projectId() {
|
|
411
|
+
return this.getNumberAttribute('project_id');
|
|
412
|
+
}
|
|
413
|
+
set projectId(value) {
|
|
414
|
+
this._projectId = value;
|
|
415
|
+
}
|
|
416
|
+
resetProjectId() {
|
|
417
|
+
this._projectId = undefined;
|
|
418
|
+
}
|
|
419
|
+
// Temporarily expose input value. Use with caution.
|
|
420
|
+
get projectIdInput() {
|
|
421
|
+
return this._projectId;
|
|
422
|
+
}
|
|
423
|
+
// project_name - computed: false, optional: true, required: false
|
|
424
|
+
_projectName;
|
|
425
|
+
get projectName() {
|
|
426
|
+
return this.getStringAttribute('project_name');
|
|
427
|
+
}
|
|
428
|
+
set projectName(value) {
|
|
429
|
+
this._projectName = value;
|
|
430
|
+
}
|
|
431
|
+
resetProjectName() {
|
|
432
|
+
this._projectName = undefined;
|
|
433
|
+
}
|
|
434
|
+
// Temporarily expose input value. Use with caution.
|
|
435
|
+
get projectNameInput() {
|
|
436
|
+
return this._projectName;
|
|
437
|
+
}
|
|
438
|
+
// region_id - computed: false, optional: true, required: false
|
|
439
|
+
_regionId;
|
|
440
|
+
get regionId() {
|
|
441
|
+
return this.getNumberAttribute('region_id');
|
|
442
|
+
}
|
|
443
|
+
set regionId(value) {
|
|
444
|
+
this._regionId = value;
|
|
445
|
+
}
|
|
446
|
+
resetRegionId() {
|
|
447
|
+
this._regionId = undefined;
|
|
448
|
+
}
|
|
449
|
+
// Temporarily expose input value. Use with caution.
|
|
450
|
+
get regionIdInput() {
|
|
451
|
+
return this._regionId;
|
|
452
|
+
}
|
|
453
|
+
// region_name - computed: false, optional: true, required: false
|
|
454
|
+
_regionName;
|
|
455
|
+
get regionName() {
|
|
456
|
+
return this.getStringAttribute('region_name');
|
|
457
|
+
}
|
|
458
|
+
set regionName(value) {
|
|
459
|
+
this._regionName = value;
|
|
460
|
+
}
|
|
461
|
+
resetRegionName() {
|
|
462
|
+
this._regionName = undefined;
|
|
463
|
+
}
|
|
464
|
+
// Temporarily expose input value. Use with caution.
|
|
465
|
+
get regionNameInput() {
|
|
466
|
+
return this._regionName;
|
|
467
|
+
}
|
|
468
|
+
// shared - computed: true, optional: false, required: false
|
|
469
|
+
get shared() {
|
|
470
|
+
return this.getBooleanAttribute('shared');
|
|
471
|
+
}
|
|
472
|
+
// shared_with_subnets - computed: false, optional: true, required: false
|
|
473
|
+
_sharedWithSubnets;
|
|
474
|
+
get sharedWithSubnets() {
|
|
475
|
+
return this.getBooleanAttribute('shared_with_subnets');
|
|
476
|
+
}
|
|
477
|
+
set sharedWithSubnets(value) {
|
|
478
|
+
this._sharedWithSubnets = value;
|
|
479
|
+
}
|
|
480
|
+
resetSharedWithSubnets() {
|
|
481
|
+
this._sharedWithSubnets = undefined;
|
|
482
|
+
}
|
|
483
|
+
// Temporarily expose input value. Use with caution.
|
|
484
|
+
get sharedWithSubnetsInput() {
|
|
485
|
+
return this._sharedWithSubnets;
|
|
486
|
+
}
|
|
487
|
+
// type - computed: true, optional: false, required: false
|
|
488
|
+
get type() {
|
|
489
|
+
return this.getStringAttribute('type');
|
|
490
|
+
}
|
|
491
|
+
// subnets - computed: false, optional: true, required: false
|
|
492
|
+
_subnets = new DataEdgecenterNetworkSubnetsList(this, "subnets", false);
|
|
493
|
+
get subnets() {
|
|
494
|
+
return this._subnets;
|
|
495
|
+
}
|
|
496
|
+
putSubnets(value) {
|
|
497
|
+
this._subnets.internalValue = value;
|
|
498
|
+
}
|
|
499
|
+
resetSubnets() {
|
|
500
|
+
this._subnets.internalValue = undefined;
|
|
501
|
+
}
|
|
502
|
+
// Temporarily expose input value. Use with caution.
|
|
503
|
+
get subnetsInput() {
|
|
504
|
+
return this._subnets.internalValue;
|
|
505
|
+
}
|
|
506
|
+
// =========
|
|
507
|
+
// SYNTHESIS
|
|
508
|
+
// =========
|
|
509
|
+
synthesizeAttributes() {
|
|
510
|
+
return {
|
|
511
|
+
id: cdktf.stringToTerraform(this._id),
|
|
512
|
+
metadata_k: cdktf.stringToTerraform(this._metadataK),
|
|
513
|
+
metadata_kv: cdktf.hashMapper(cdktf.stringToTerraform)(this._metadataKv),
|
|
514
|
+
name: cdktf.stringToTerraform(this._name),
|
|
515
|
+
project_id: cdktf.numberToTerraform(this._projectId),
|
|
516
|
+
project_name: cdktf.stringToTerraform(this._projectName),
|
|
517
|
+
region_id: cdktf.numberToTerraform(this._regionId),
|
|
518
|
+
region_name: cdktf.stringToTerraform(this._regionName),
|
|
519
|
+
shared_with_subnets: cdktf.booleanToTerraform(this._sharedWithSubnets),
|
|
520
|
+
subnets: cdktf.listMapper(dataEdgecenterNetworkSubnetsToTerraform, true)(this._subnets.internalValue),
|
|
521
|
+
};
|
|
522
|
+
}
|
|
523
|
+
synthesizeHclAttributes() {
|
|
524
|
+
const attrs = {
|
|
525
|
+
id: {
|
|
526
|
+
value: cdktf.stringToHclTerraform(this._id),
|
|
527
|
+
isBlock: false,
|
|
528
|
+
type: "simple",
|
|
529
|
+
storageClassType: "string",
|
|
530
|
+
},
|
|
531
|
+
metadata_k: {
|
|
532
|
+
value: cdktf.stringToHclTerraform(this._metadataK),
|
|
533
|
+
isBlock: false,
|
|
534
|
+
type: "simple",
|
|
535
|
+
storageClassType: "string",
|
|
536
|
+
},
|
|
537
|
+
metadata_kv: {
|
|
538
|
+
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._metadataKv),
|
|
539
|
+
isBlock: false,
|
|
540
|
+
type: "map",
|
|
541
|
+
storageClassType: "stringMap",
|
|
542
|
+
},
|
|
543
|
+
name: {
|
|
544
|
+
value: cdktf.stringToHclTerraform(this._name),
|
|
545
|
+
isBlock: false,
|
|
546
|
+
type: "simple",
|
|
547
|
+
storageClassType: "string",
|
|
548
|
+
},
|
|
549
|
+
project_id: {
|
|
550
|
+
value: cdktf.numberToHclTerraform(this._projectId),
|
|
551
|
+
isBlock: false,
|
|
552
|
+
type: "simple",
|
|
553
|
+
storageClassType: "number",
|
|
554
|
+
},
|
|
555
|
+
project_name: {
|
|
556
|
+
value: cdktf.stringToHclTerraform(this._projectName),
|
|
557
|
+
isBlock: false,
|
|
558
|
+
type: "simple",
|
|
559
|
+
storageClassType: "string",
|
|
560
|
+
},
|
|
561
|
+
region_id: {
|
|
562
|
+
value: cdktf.numberToHclTerraform(this._regionId),
|
|
563
|
+
isBlock: false,
|
|
564
|
+
type: "simple",
|
|
565
|
+
storageClassType: "number",
|
|
566
|
+
},
|
|
567
|
+
region_name: {
|
|
568
|
+
value: cdktf.stringToHclTerraform(this._regionName),
|
|
569
|
+
isBlock: false,
|
|
570
|
+
type: "simple",
|
|
571
|
+
storageClassType: "string",
|
|
572
|
+
},
|
|
573
|
+
shared_with_subnets: {
|
|
574
|
+
value: cdktf.booleanToHclTerraform(this._sharedWithSubnets),
|
|
575
|
+
isBlock: false,
|
|
576
|
+
type: "simple",
|
|
577
|
+
storageClassType: "boolean",
|
|
578
|
+
},
|
|
579
|
+
subnets: {
|
|
580
|
+
value: cdktf.listMapperHcl(dataEdgecenterNetworkSubnetsToHclTerraform, true)(this._subnets.internalValue),
|
|
581
|
+
isBlock: true,
|
|
582
|
+
type: "list",
|
|
583
|
+
storageClassType: "DataEdgecenterNetworkSubnetsList",
|
|
584
|
+
},
|
|
585
|
+
};
|
|
586
|
+
// remove undefined attributes
|
|
587
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
588
|
+
}
|
|
589
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Construct } from 'constructs';
|
|
2
|
+
import * as cdktf from 'cdktf';
|
|
3
|
+
export interface DataEdgecenterProjectConfig extends cdktf.TerraformMetaArguments {
|
|
4
|
+
/**
|
|
5
|
+
* The ID of the client.
|
|
6
|
+
*
|
|
7
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/project#client_id DataEdgecenterProject#client_id}
|
|
8
|
+
*/
|
|
9
|
+
readonly clientId?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Project ID.
|
|
12
|
+
*
|
|
13
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/project#id DataEdgecenterProject#id}
|
|
14
|
+
*
|
|
15
|
+
* Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
|
|
16
|
+
* 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.
|
|
17
|
+
*/
|
|
18
|
+
readonly id?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Displayed project name.
|
|
21
|
+
*
|
|
22
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/project#name DataEdgecenterProject#name}
|
|
23
|
+
*/
|
|
24
|
+
readonly name?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Represents a {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/project edgecenter_project}
|
|
28
|
+
*/
|
|
29
|
+
export declare class DataEdgecenterProject extends cdktf.TerraformDataSource {
|
|
30
|
+
static readonly tfResourceType = "edgecenter_project";
|
|
31
|
+
/**
|
|
32
|
+
* Generates CDKTF code for importing a DataEdgecenterProject resource upon running "cdktf plan <stack-name>"
|
|
33
|
+
* @param scope The scope in which to define this construct
|
|
34
|
+
* @param importToId The construct id used in the generated config for the DataEdgecenterProject to import
|
|
35
|
+
* @param importFromId The id of the existing DataEdgecenterProject that should be imported. Refer to the {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/project#import import section} in the documentation of this resource for the id to use
|
|
36
|
+
* @param provider? Optional instance of the provider where the DataEdgecenterProject to import is found
|
|
37
|
+
*/
|
|
38
|
+
static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
|
|
39
|
+
/**
|
|
40
|
+
* Create a new {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/project edgecenter_project} Data Source
|
|
41
|
+
*
|
|
42
|
+
* @param scope The scope in which to define this construct
|
|
43
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
44
|
+
* @param options DataEdgecenterProjectConfig = {}
|
|
45
|
+
*/
|
|
46
|
+
constructor(scope: Construct, id: string, config?: DataEdgecenterProjectConfig);
|
|
47
|
+
private _clientId?;
|
|
48
|
+
get clientId(): number;
|
|
49
|
+
set clientId(value: number);
|
|
50
|
+
resetClientId(): void;
|
|
51
|
+
get clientIdInput(): number;
|
|
52
|
+
get createdAt(): any;
|
|
53
|
+
get description(): any;
|
|
54
|
+
private _id?;
|
|
55
|
+
get id(): number;
|
|
56
|
+
set id(value: number);
|
|
57
|
+
resetId(): void;
|
|
58
|
+
get idInput(): number;
|
|
59
|
+
get isDefault(): any;
|
|
60
|
+
private _name?;
|
|
61
|
+
get name(): string;
|
|
62
|
+
set name(value: string);
|
|
63
|
+
resetName(): void;
|
|
64
|
+
get nameInput(): string;
|
|
65
|
+
get state(): any;
|
|
66
|
+
protected synthesizeAttributes(): {
|
|
67
|
+
[name: string]: any;
|
|
68
|
+
};
|
|
69
|
+
protected synthesizeHclAttributes(): {
|
|
70
|
+
[name: string]: any;
|
|
71
|
+
};
|
|
72
|
+
}
|