@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,538 @@
|
|
|
1
|
+
// https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/router
|
|
2
|
+
// generated from terraform resource schema
|
|
3
|
+
import * as cdktf from 'cdktf';
|
|
4
|
+
export function dataEdgecenterRouterExternalGatewayInfoExternalFixedIpsToTerraform(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 dataEdgecenterRouterExternalGatewayInfoExternalFixedIpsToHclTerraform(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 DataEdgecenterRouterExternalGatewayInfoExternalFixedIpsOutputReference 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
|
+
// ip_address - computed: true, optional: false, required: false
|
|
48
|
+
get ipAddress() {
|
|
49
|
+
return this.getStringAttribute('ip_address');
|
|
50
|
+
}
|
|
51
|
+
// subnet_id - computed: true, optional: false, required: false
|
|
52
|
+
get subnetId() {
|
|
53
|
+
return this.getStringAttribute('subnet_id');
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
export class DataEdgecenterRouterExternalGatewayInfoExternalFixedIpsList extends cdktf.ComplexList {
|
|
57
|
+
terraformResource;
|
|
58
|
+
terraformAttribute;
|
|
59
|
+
wrapsSet;
|
|
60
|
+
/**
|
|
61
|
+
* @param terraformResource The parent resource
|
|
62
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
63
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
64
|
+
*/
|
|
65
|
+
constructor(terraformResource, terraformAttribute, wrapsSet) {
|
|
66
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
67
|
+
this.terraformResource = terraformResource;
|
|
68
|
+
this.terraformAttribute = terraformAttribute;
|
|
69
|
+
this.wrapsSet = wrapsSet;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* @param index the index of the item to return
|
|
73
|
+
*/
|
|
74
|
+
get(index) {
|
|
75
|
+
return new DataEdgecenterRouterExternalGatewayInfoExternalFixedIpsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
export function dataEdgecenterRouterExternalGatewayInfoToTerraform(struct) {
|
|
79
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
80
|
+
return struct;
|
|
81
|
+
}
|
|
82
|
+
if (cdktf.isComplexElement(struct)) {
|
|
83
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
84
|
+
}
|
|
85
|
+
return {};
|
|
86
|
+
}
|
|
87
|
+
export function dataEdgecenterRouterExternalGatewayInfoToHclTerraform(struct) {
|
|
88
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
89
|
+
return struct;
|
|
90
|
+
}
|
|
91
|
+
if (cdktf.isComplexElement(struct)) {
|
|
92
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
93
|
+
}
|
|
94
|
+
const attrs = {};
|
|
95
|
+
return attrs;
|
|
96
|
+
}
|
|
97
|
+
export class DataEdgecenterRouterExternalGatewayInfoOutputReference extends cdktf.ComplexObject {
|
|
98
|
+
isEmptyObject = false;
|
|
99
|
+
/**
|
|
100
|
+
* @param terraformResource The parent resource
|
|
101
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
102
|
+
* @param complexObjectIndex the index of this item in the list
|
|
103
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
104
|
+
*/
|
|
105
|
+
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
|
|
106
|
+
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
|
|
107
|
+
}
|
|
108
|
+
get internalValue() {
|
|
109
|
+
let hasAnyValues = this.isEmptyObject;
|
|
110
|
+
const internalValueResult = {};
|
|
111
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
112
|
+
}
|
|
113
|
+
set internalValue(value) {
|
|
114
|
+
if (value === undefined) {
|
|
115
|
+
this.isEmptyObject = false;
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
// external_fixed_ips - computed: true, optional: false, required: false
|
|
122
|
+
_externalFixedIps = new DataEdgecenterRouterExternalGatewayInfoExternalFixedIpsList(this, "external_fixed_ips", false);
|
|
123
|
+
get externalFixedIps() {
|
|
124
|
+
return this._externalFixedIps;
|
|
125
|
+
}
|
|
126
|
+
// network_id - computed: true, optional: false, required: false
|
|
127
|
+
get networkId() {
|
|
128
|
+
return this.getStringAttribute('network_id');
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
export class DataEdgecenterRouterExternalGatewayInfoList extends cdktf.ComplexList {
|
|
132
|
+
terraformResource;
|
|
133
|
+
terraformAttribute;
|
|
134
|
+
wrapsSet;
|
|
135
|
+
/**
|
|
136
|
+
* @param terraformResource The parent resource
|
|
137
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
138
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
139
|
+
*/
|
|
140
|
+
constructor(terraformResource, terraformAttribute, wrapsSet) {
|
|
141
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
142
|
+
this.terraformResource = terraformResource;
|
|
143
|
+
this.terraformAttribute = terraformAttribute;
|
|
144
|
+
this.wrapsSet = wrapsSet;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* @param index the index of the item to return
|
|
148
|
+
*/
|
|
149
|
+
get(index) {
|
|
150
|
+
return new DataEdgecenterRouterExternalGatewayInfoOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
export function dataEdgecenterRouterInterfacesToTerraform(struct) {
|
|
154
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
155
|
+
return struct;
|
|
156
|
+
}
|
|
157
|
+
if (cdktf.isComplexElement(struct)) {
|
|
158
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
159
|
+
}
|
|
160
|
+
return {};
|
|
161
|
+
}
|
|
162
|
+
export function dataEdgecenterRouterInterfacesToHclTerraform(struct) {
|
|
163
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
164
|
+
return struct;
|
|
165
|
+
}
|
|
166
|
+
if (cdktf.isComplexElement(struct)) {
|
|
167
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
168
|
+
}
|
|
169
|
+
const attrs = {};
|
|
170
|
+
return attrs;
|
|
171
|
+
}
|
|
172
|
+
export class DataEdgecenterRouterInterfacesOutputReference extends cdktf.ComplexObject {
|
|
173
|
+
isEmptyObject = false;
|
|
174
|
+
/**
|
|
175
|
+
* @param terraformResource The parent resource
|
|
176
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
177
|
+
* @param complexObjectIndex the index of this item in the list
|
|
178
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
179
|
+
*/
|
|
180
|
+
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
|
|
181
|
+
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
|
|
182
|
+
}
|
|
183
|
+
get internalValue() {
|
|
184
|
+
let hasAnyValues = this.isEmptyObject;
|
|
185
|
+
const internalValueResult = {};
|
|
186
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
187
|
+
}
|
|
188
|
+
set internalValue(value) {
|
|
189
|
+
if (value === undefined) {
|
|
190
|
+
this.isEmptyObject = false;
|
|
191
|
+
}
|
|
192
|
+
else {
|
|
193
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
// ip_address - computed: true, optional: false, required: false
|
|
197
|
+
get ipAddress() {
|
|
198
|
+
return this.getStringAttribute('ip_address');
|
|
199
|
+
}
|
|
200
|
+
// mac_address - computed: true, optional: false, required: false
|
|
201
|
+
get macAddress() {
|
|
202
|
+
return this.getStringAttribute('mac_address');
|
|
203
|
+
}
|
|
204
|
+
// network_id - computed: true, optional: false, required: false
|
|
205
|
+
get networkId() {
|
|
206
|
+
return this.getStringAttribute('network_id');
|
|
207
|
+
}
|
|
208
|
+
// port_id - computed: true, optional: false, required: false
|
|
209
|
+
get portId() {
|
|
210
|
+
return this.getStringAttribute('port_id');
|
|
211
|
+
}
|
|
212
|
+
// subnet_id - computed: true, optional: false, required: false
|
|
213
|
+
get subnetId() {
|
|
214
|
+
return this.getStringAttribute('subnet_id');
|
|
215
|
+
}
|
|
216
|
+
// type - computed: true, optional: false, required: false
|
|
217
|
+
get type() {
|
|
218
|
+
return this.getStringAttribute('type');
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
export class DataEdgecenterRouterInterfacesList extends cdktf.ComplexList {
|
|
222
|
+
terraformResource;
|
|
223
|
+
terraformAttribute;
|
|
224
|
+
wrapsSet;
|
|
225
|
+
/**
|
|
226
|
+
* @param terraformResource The parent resource
|
|
227
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
228
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
229
|
+
*/
|
|
230
|
+
constructor(terraformResource, terraformAttribute, wrapsSet) {
|
|
231
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
232
|
+
this.terraformResource = terraformResource;
|
|
233
|
+
this.terraformAttribute = terraformAttribute;
|
|
234
|
+
this.wrapsSet = wrapsSet;
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* @param index the index of the item to return
|
|
238
|
+
*/
|
|
239
|
+
get(index) {
|
|
240
|
+
return new DataEdgecenterRouterInterfacesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
export function dataEdgecenterRouterRoutesToTerraform(struct) {
|
|
244
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
245
|
+
return struct;
|
|
246
|
+
}
|
|
247
|
+
if (cdktf.isComplexElement(struct)) {
|
|
248
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
249
|
+
}
|
|
250
|
+
return {};
|
|
251
|
+
}
|
|
252
|
+
export function dataEdgecenterRouterRoutesToHclTerraform(struct) {
|
|
253
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
254
|
+
return struct;
|
|
255
|
+
}
|
|
256
|
+
if (cdktf.isComplexElement(struct)) {
|
|
257
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
258
|
+
}
|
|
259
|
+
const attrs = {};
|
|
260
|
+
return attrs;
|
|
261
|
+
}
|
|
262
|
+
export class DataEdgecenterRouterRoutesOutputReference extends cdktf.ComplexObject {
|
|
263
|
+
isEmptyObject = false;
|
|
264
|
+
/**
|
|
265
|
+
* @param terraformResource The parent resource
|
|
266
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
267
|
+
* @param complexObjectIndex the index of this item in the list
|
|
268
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
269
|
+
*/
|
|
270
|
+
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
|
|
271
|
+
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
|
|
272
|
+
}
|
|
273
|
+
get internalValue() {
|
|
274
|
+
let hasAnyValues = this.isEmptyObject;
|
|
275
|
+
const internalValueResult = {};
|
|
276
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
277
|
+
}
|
|
278
|
+
set internalValue(value) {
|
|
279
|
+
if (value === undefined) {
|
|
280
|
+
this.isEmptyObject = false;
|
|
281
|
+
}
|
|
282
|
+
else {
|
|
283
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
// destination - computed: true, optional: false, required: false
|
|
287
|
+
get destination() {
|
|
288
|
+
return this.getStringAttribute('destination');
|
|
289
|
+
}
|
|
290
|
+
// nexthop - computed: true, optional: false, required: false
|
|
291
|
+
get nexthop() {
|
|
292
|
+
return this.getStringAttribute('nexthop');
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
export class DataEdgecenterRouterRoutesList extends cdktf.ComplexList {
|
|
296
|
+
terraformResource;
|
|
297
|
+
terraformAttribute;
|
|
298
|
+
wrapsSet;
|
|
299
|
+
/**
|
|
300
|
+
* @param terraformResource The parent resource
|
|
301
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
302
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
303
|
+
*/
|
|
304
|
+
constructor(terraformResource, terraformAttribute, wrapsSet) {
|
|
305
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
306
|
+
this.terraformResource = terraformResource;
|
|
307
|
+
this.terraformAttribute = terraformAttribute;
|
|
308
|
+
this.wrapsSet = wrapsSet;
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* @param index the index of the item to return
|
|
312
|
+
*/
|
|
313
|
+
get(index) {
|
|
314
|
+
return new DataEdgecenterRouterRoutesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* Represents a {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/router edgecenter_router}
|
|
319
|
+
*/
|
|
320
|
+
export class DataEdgecenterRouter extends cdktf.TerraformDataSource {
|
|
321
|
+
// =================
|
|
322
|
+
// STATIC PROPERTIES
|
|
323
|
+
// =================
|
|
324
|
+
static tfResourceType = "edgecenter_router";
|
|
325
|
+
// ==============
|
|
326
|
+
// STATIC Methods
|
|
327
|
+
// ==============
|
|
328
|
+
/**
|
|
329
|
+
* Generates CDKTF code for importing a DataEdgecenterRouter resource upon running "cdktf plan <stack-name>"
|
|
330
|
+
* @param scope The scope in which to define this construct
|
|
331
|
+
* @param importToId The construct id used in the generated config for the DataEdgecenterRouter to import
|
|
332
|
+
* @param importFromId The id of the existing DataEdgecenterRouter that should be imported. Refer to the {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/router#import import section} in the documentation of this resource for the id to use
|
|
333
|
+
* @param provider? Optional instance of the provider where the DataEdgecenterRouter to import is found
|
|
334
|
+
*/
|
|
335
|
+
static generateConfigForImport(scope, importToId, importFromId, provider) {
|
|
336
|
+
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "edgecenter_router", importId: importFromId, provider });
|
|
337
|
+
}
|
|
338
|
+
// ===========
|
|
339
|
+
// INITIALIZER
|
|
340
|
+
// ===========
|
|
341
|
+
/**
|
|
342
|
+
* Create a new {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/router edgecenter_router} Data Source
|
|
343
|
+
*
|
|
344
|
+
* @param scope The scope in which to define this construct
|
|
345
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
346
|
+
* @param options DataEdgecenterRouterConfig = {}
|
|
347
|
+
*/
|
|
348
|
+
constructor(scope, id, config = {}) {
|
|
349
|
+
super(scope, id, {
|
|
350
|
+
terraformResourceType: 'edgecenter_router',
|
|
351
|
+
terraformGeneratorMetadata: {
|
|
352
|
+
providerName: 'edgecenter',
|
|
353
|
+
providerVersion: '0.10.4',
|
|
354
|
+
providerVersionConstraint: '0.10.4'
|
|
355
|
+
},
|
|
356
|
+
provider: config.provider,
|
|
357
|
+
dependsOn: config.dependsOn,
|
|
358
|
+
count: config.count,
|
|
359
|
+
lifecycle: config.lifecycle,
|
|
360
|
+
provisioners: config.provisioners,
|
|
361
|
+
connection: config.connection,
|
|
362
|
+
forEach: config.forEach
|
|
363
|
+
});
|
|
364
|
+
this._id = config.id;
|
|
365
|
+
this._name = config.name;
|
|
366
|
+
this._projectId = config.projectId;
|
|
367
|
+
this._projectName = config.projectName;
|
|
368
|
+
this._regionId = config.regionId;
|
|
369
|
+
this._regionName = config.regionName;
|
|
370
|
+
}
|
|
371
|
+
// ==========
|
|
372
|
+
// ATTRIBUTES
|
|
373
|
+
// ==========
|
|
374
|
+
// external_gateway_info - computed: true, optional: false, required: false
|
|
375
|
+
_externalGatewayInfo = new DataEdgecenterRouterExternalGatewayInfoList(this, "external_gateway_info", false);
|
|
376
|
+
get externalGatewayInfo() {
|
|
377
|
+
return this._externalGatewayInfo;
|
|
378
|
+
}
|
|
379
|
+
// id - computed: true, optional: true, required: false
|
|
380
|
+
_id;
|
|
381
|
+
get id() {
|
|
382
|
+
return this.getStringAttribute('id');
|
|
383
|
+
}
|
|
384
|
+
set id(value) {
|
|
385
|
+
this._id = value;
|
|
386
|
+
}
|
|
387
|
+
resetId() {
|
|
388
|
+
this._id = undefined;
|
|
389
|
+
}
|
|
390
|
+
// Temporarily expose input value. Use with caution.
|
|
391
|
+
get idInput() {
|
|
392
|
+
return this._id;
|
|
393
|
+
}
|
|
394
|
+
// interfaces - computed: true, optional: false, required: false
|
|
395
|
+
_interfaces = new DataEdgecenterRouterInterfacesList(this, "interfaces", false);
|
|
396
|
+
get interfaces() {
|
|
397
|
+
return this._interfaces;
|
|
398
|
+
}
|
|
399
|
+
// name - computed: true, optional: true, required: false
|
|
400
|
+
_name;
|
|
401
|
+
get name() {
|
|
402
|
+
return this.getStringAttribute('name');
|
|
403
|
+
}
|
|
404
|
+
set name(value) {
|
|
405
|
+
this._name = value;
|
|
406
|
+
}
|
|
407
|
+
resetName() {
|
|
408
|
+
this._name = undefined;
|
|
409
|
+
}
|
|
410
|
+
// Temporarily expose input value. Use with caution.
|
|
411
|
+
get nameInput() {
|
|
412
|
+
return this._name;
|
|
413
|
+
}
|
|
414
|
+
// project_id - computed: false, optional: true, required: false
|
|
415
|
+
_projectId;
|
|
416
|
+
get projectId() {
|
|
417
|
+
return this.getNumberAttribute('project_id');
|
|
418
|
+
}
|
|
419
|
+
set projectId(value) {
|
|
420
|
+
this._projectId = value;
|
|
421
|
+
}
|
|
422
|
+
resetProjectId() {
|
|
423
|
+
this._projectId = undefined;
|
|
424
|
+
}
|
|
425
|
+
// Temporarily expose input value. Use with caution.
|
|
426
|
+
get projectIdInput() {
|
|
427
|
+
return this._projectId;
|
|
428
|
+
}
|
|
429
|
+
// project_name - computed: false, optional: true, required: false
|
|
430
|
+
_projectName;
|
|
431
|
+
get projectName() {
|
|
432
|
+
return this.getStringAttribute('project_name');
|
|
433
|
+
}
|
|
434
|
+
set projectName(value) {
|
|
435
|
+
this._projectName = value;
|
|
436
|
+
}
|
|
437
|
+
resetProjectName() {
|
|
438
|
+
this._projectName = undefined;
|
|
439
|
+
}
|
|
440
|
+
// Temporarily expose input value. Use with caution.
|
|
441
|
+
get projectNameInput() {
|
|
442
|
+
return this._projectName;
|
|
443
|
+
}
|
|
444
|
+
// region_id - computed: false, optional: true, required: false
|
|
445
|
+
_regionId;
|
|
446
|
+
get regionId() {
|
|
447
|
+
return this.getNumberAttribute('region_id');
|
|
448
|
+
}
|
|
449
|
+
set regionId(value) {
|
|
450
|
+
this._regionId = value;
|
|
451
|
+
}
|
|
452
|
+
resetRegionId() {
|
|
453
|
+
this._regionId = undefined;
|
|
454
|
+
}
|
|
455
|
+
// Temporarily expose input value. Use with caution.
|
|
456
|
+
get regionIdInput() {
|
|
457
|
+
return this._regionId;
|
|
458
|
+
}
|
|
459
|
+
// region_name - computed: false, optional: true, required: false
|
|
460
|
+
_regionName;
|
|
461
|
+
get regionName() {
|
|
462
|
+
return this.getStringAttribute('region_name');
|
|
463
|
+
}
|
|
464
|
+
set regionName(value) {
|
|
465
|
+
this._regionName = value;
|
|
466
|
+
}
|
|
467
|
+
resetRegionName() {
|
|
468
|
+
this._regionName = undefined;
|
|
469
|
+
}
|
|
470
|
+
// Temporarily expose input value. Use with caution.
|
|
471
|
+
get regionNameInput() {
|
|
472
|
+
return this._regionName;
|
|
473
|
+
}
|
|
474
|
+
// routes - computed: true, optional: false, required: false
|
|
475
|
+
_routes = new DataEdgecenterRouterRoutesList(this, "routes", false);
|
|
476
|
+
get routes() {
|
|
477
|
+
return this._routes;
|
|
478
|
+
}
|
|
479
|
+
// status - computed: true, optional: false, required: false
|
|
480
|
+
get status() {
|
|
481
|
+
return this.getStringAttribute('status');
|
|
482
|
+
}
|
|
483
|
+
// =========
|
|
484
|
+
// SYNTHESIS
|
|
485
|
+
// =========
|
|
486
|
+
synthesizeAttributes() {
|
|
487
|
+
return {
|
|
488
|
+
id: cdktf.stringToTerraform(this._id),
|
|
489
|
+
name: cdktf.stringToTerraform(this._name),
|
|
490
|
+
project_id: cdktf.numberToTerraform(this._projectId),
|
|
491
|
+
project_name: cdktf.stringToTerraform(this._projectName),
|
|
492
|
+
region_id: cdktf.numberToTerraform(this._regionId),
|
|
493
|
+
region_name: cdktf.stringToTerraform(this._regionName),
|
|
494
|
+
};
|
|
495
|
+
}
|
|
496
|
+
synthesizeHclAttributes() {
|
|
497
|
+
const attrs = {
|
|
498
|
+
id: {
|
|
499
|
+
value: cdktf.stringToHclTerraform(this._id),
|
|
500
|
+
isBlock: false,
|
|
501
|
+
type: "simple",
|
|
502
|
+
storageClassType: "string",
|
|
503
|
+
},
|
|
504
|
+
name: {
|
|
505
|
+
value: cdktf.stringToHclTerraform(this._name),
|
|
506
|
+
isBlock: false,
|
|
507
|
+
type: "simple",
|
|
508
|
+
storageClassType: "string",
|
|
509
|
+
},
|
|
510
|
+
project_id: {
|
|
511
|
+
value: cdktf.numberToHclTerraform(this._projectId),
|
|
512
|
+
isBlock: false,
|
|
513
|
+
type: "simple",
|
|
514
|
+
storageClassType: "number",
|
|
515
|
+
},
|
|
516
|
+
project_name: {
|
|
517
|
+
value: cdktf.stringToHclTerraform(this._projectName),
|
|
518
|
+
isBlock: false,
|
|
519
|
+
type: "simple",
|
|
520
|
+
storageClassType: "string",
|
|
521
|
+
},
|
|
522
|
+
region_id: {
|
|
523
|
+
value: cdktf.numberToHclTerraform(this._regionId),
|
|
524
|
+
isBlock: false,
|
|
525
|
+
type: "simple",
|
|
526
|
+
storageClassType: "number",
|
|
527
|
+
},
|
|
528
|
+
region_name: {
|
|
529
|
+
value: cdktf.stringToHclTerraform(this._regionName),
|
|
530
|
+
isBlock: false,
|
|
531
|
+
type: "simple",
|
|
532
|
+
storageClassType: "string",
|
|
533
|
+
},
|
|
534
|
+
};
|
|
535
|
+
// remove undefined attributes
|
|
536
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
537
|
+
}
|
|
538
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { Construct } from 'constructs';
|
|
2
|
+
import * as cdktf from 'cdktf';
|
|
3
|
+
export interface DataEdgecenterSecretConfig extends cdktf.TerraformMetaArguments {
|
|
4
|
+
/**
|
|
5
|
+
* The ID of the secret. 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/secret#id DataEdgecenterSecret#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 name of the secret. Either 'id' or 'name' must be specified.
|
|
15
|
+
*
|
|
16
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/secret#name DataEdgecenterSecret#name}
|
|
17
|
+
*/
|
|
18
|
+
readonly name?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The uuid of the project. Either 'project_id' or 'project_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/secret#project_id DataEdgecenterSecret#project_id}
|
|
23
|
+
*/
|
|
24
|
+
readonly projectId?: number;
|
|
25
|
+
/**
|
|
26
|
+
* The name 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/secret#project_name DataEdgecenterSecret#project_name}
|
|
29
|
+
*/
|
|
30
|
+
readonly projectName?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The uuid of the region. Either 'region_id' or 'region_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/secret#region_id DataEdgecenterSecret#region_id}
|
|
35
|
+
*/
|
|
36
|
+
readonly regionId?: number;
|
|
37
|
+
/**
|
|
38
|
+
* The name 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/secret#region_name DataEdgecenterSecret#region_name}
|
|
41
|
+
*/
|
|
42
|
+
readonly regionName?: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Represents a {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/secret edgecenter_secret}
|
|
46
|
+
*/
|
|
47
|
+
export declare class DataEdgecenterSecret extends cdktf.TerraformDataSource {
|
|
48
|
+
static readonly tfResourceType = "edgecenter_secret";
|
|
49
|
+
/**
|
|
50
|
+
* Generates CDKTF code for importing a DataEdgecenterSecret resource upon running "cdktf plan <stack-name>"
|
|
51
|
+
* @param scope The scope in which to define this construct
|
|
52
|
+
* @param importToId The construct id used in the generated config for the DataEdgecenterSecret to import
|
|
53
|
+
* @param importFromId The id of the existing DataEdgecenterSecret that should be imported. Refer to the {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/secret#import import section} in the documentation of this resource for the id to use
|
|
54
|
+
* @param provider? Optional instance of the provider where the DataEdgecenterSecret to import is found
|
|
55
|
+
*/
|
|
56
|
+
static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
|
|
57
|
+
/**
|
|
58
|
+
* Create a new {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/secret edgecenter_secret} Data Source
|
|
59
|
+
*
|
|
60
|
+
* @param scope The scope in which to define this construct
|
|
61
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
62
|
+
* @param options DataEdgecenterSecretConfig = {}
|
|
63
|
+
*/
|
|
64
|
+
constructor(scope: Construct, id: string, config?: DataEdgecenterSecretConfig);
|
|
65
|
+
get algorithm(): any;
|
|
66
|
+
get bitLength(): any;
|
|
67
|
+
private _contentTypes;
|
|
68
|
+
get contentTypes(): any;
|
|
69
|
+
get created(): any;
|
|
70
|
+
get expiration(): any;
|
|
71
|
+
private _id?;
|
|
72
|
+
get id(): string;
|
|
73
|
+
set id(value: string);
|
|
74
|
+
resetId(): void;
|
|
75
|
+
get idInput(): string;
|
|
76
|
+
get mode(): any;
|
|
77
|
+
private _name?;
|
|
78
|
+
get name(): string;
|
|
79
|
+
set name(value: string);
|
|
80
|
+
resetName(): void;
|
|
81
|
+
get nameInput(): string;
|
|
82
|
+
private _projectId?;
|
|
83
|
+
get projectId(): number;
|
|
84
|
+
set projectId(value: number);
|
|
85
|
+
resetProjectId(): void;
|
|
86
|
+
get projectIdInput(): number;
|
|
87
|
+
private _projectName?;
|
|
88
|
+
get projectName(): string;
|
|
89
|
+
set projectName(value: string);
|
|
90
|
+
resetProjectName(): void;
|
|
91
|
+
get projectNameInput(): string;
|
|
92
|
+
private _regionId?;
|
|
93
|
+
get regionId(): number;
|
|
94
|
+
set regionId(value: number);
|
|
95
|
+
resetRegionId(): void;
|
|
96
|
+
get regionIdInput(): number;
|
|
97
|
+
private _regionName?;
|
|
98
|
+
get regionName(): string;
|
|
99
|
+
set regionName(value: string);
|
|
100
|
+
resetRegionName(): void;
|
|
101
|
+
get regionNameInput(): string;
|
|
102
|
+
get status(): any;
|
|
103
|
+
protected synthesizeAttributes(): {
|
|
104
|
+
[name: string]: any;
|
|
105
|
+
};
|
|
106
|
+
protected synthesizeHclAttributes(): {
|
|
107
|
+
[name: string]: any;
|
|
108
|
+
};
|
|
109
|
+
}
|