@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.
Files changed (173) hide show
  1. package/LICENSE +355 -0
  2. package/README.md +19 -0
  3. package/dist/baremetal/index.d.ts +528 -0
  4. package/dist/baremetal/index.js +1250 -0
  5. package/dist/cdn-lecert/index.d.ts +76 -0
  6. package/dist/cdn-lecert/index.js +157 -0
  7. package/dist/cdn-origingroup/index.d.ts +237 -0
  8. package/dist/cdn-origingroup/index.js +560 -0
  9. package/dist/cdn-resource/index.d.ts +2223 -0
  10. package/dist/cdn-resource/index.js +5865 -0
  11. package/dist/cdn-rule/index.d.ts +2037 -0
  12. package/dist/cdn-rule/index.js +5381 -0
  13. package/dist/cdn-shielding/index.d.ts +64 -0
  14. package/dist/cdn-shielding/index.js +131 -0
  15. package/dist/cdn-sslcert/index.d.ts +76 -0
  16. package/dist/cdn-sslcert/index.js +159 -0
  17. package/dist/data-edgecenter-availability-zone/index.d.ts +67 -0
  18. package/dist/data-edgecenter-availability-zone/index.js +141 -0
  19. package/dist/data-edgecenter-cdn-shielding-location/index.d.ts +54 -0
  20. package/dist/data-edgecenter-cdn-shielding-location/index.js +111 -0
  21. package/dist/data-edgecenter-floatingip/index.d.ts +183 -0
  22. package/dist/data-edgecenter-floatingip/index.js +378 -0
  23. package/dist/data-edgecenter-image/index.d.ts +183 -0
  24. package/dist/data-edgecenter-image/index.js +378 -0
  25. package/dist/data-edgecenter-instance/index.d.ts +312 -0
  26. package/dist/data-edgecenter-instance/index.js +690 -0
  27. package/dist/data-edgecenter-instance-port-security/index.d.ts +110 -0
  28. package/dist/data-edgecenter-instance-port-security/index.js +231 -0
  29. package/dist/data-edgecenter-instance-v2/index.d.ts +222 -0
  30. package/dist/data-edgecenter-instance-v2/index.js +501 -0
  31. package/dist/data-edgecenter-k8s/index.d.ts +167 -0
  32. package/dist/data-edgecenter-k8s/index.js +412 -0
  33. package/dist/data-edgecenter-k8s-client-config/index.d.ts +100 -0
  34. package/dist/data-edgecenter-k8s-client-config/index.js +211 -0
  35. package/dist/data-edgecenter-k8s-pool/index.d.ts +120 -0
  36. package/dist/data-edgecenter-k8s-pool/index.js +271 -0
  37. package/dist/data-edgecenter-lb-l7policy/index.d.ts +114 -0
  38. package/dist/data-edgecenter-lb-l7policy/index.js +258 -0
  39. package/dist/data-edgecenter-lb-l7rule/index.d.ts +120 -0
  40. package/dist/data-edgecenter-lb-l7rule/index.js +262 -0
  41. package/dist/data-edgecenter-lblistener/index.d.ts +122 -0
  42. package/dist/data-edgecenter-lblistener/index.js +269 -0
  43. package/dist/data-edgecenter-lbpool/index.d.ts +204 -0
  44. package/dist/data-edgecenter-lbpool/index.js +454 -0
  45. package/dist/data-edgecenter-loadbalancer/index.d.ts +203 -0
  46. package/dist/data-edgecenter-loadbalancer/index.js +427 -0
  47. package/dist/data-edgecenter-loadbalancerv2/index.d.ts +169 -0
  48. package/dist/data-edgecenter-loadbalancerv2/index.js +343 -0
  49. package/dist/data-edgecenter-network/index.d.ts +270 -0
  50. package/dist/data-edgecenter-network/index.js +589 -0
  51. package/dist/data-edgecenter-project/index.d.ts +72 -0
  52. package/dist/data-edgecenter-project/index.js +153 -0
  53. package/dist/data-edgecenter-region/index.d.ts +54 -0
  54. package/dist/data-edgecenter-region/index.js +111 -0
  55. package/dist/data-edgecenter-reseller-images/index.d.ts +91 -0
  56. package/dist/data-edgecenter-reseller-images/index.js +198 -0
  57. package/dist/data-edgecenter-reseller-images-v2/index.d.ts +101 -0
  58. package/dist/data-edgecenter-reseller-images-v2/index.js +218 -0
  59. package/dist/data-edgecenter-reseller-networks/index.d.ts +269 -0
  60. package/dist/data-edgecenter-reseller-networks/index.js +610 -0
  61. package/dist/data-edgecenter-reservedfixedip/index.d.ts +141 -0
  62. package/dist/data-edgecenter-reservedfixedip/index.js +311 -0
  63. package/dist/data-edgecenter-router/index.d.ts +245 -0
  64. package/dist/data-edgecenter-router/index.js +538 -0
  65. package/dist/data-edgecenter-secret/index.d.ts +109 -0
  66. package/dist/data-edgecenter-secret/index.js +235 -0
  67. package/dist/data-edgecenter-securitygroup/index.d.ts +211 -0
  68. package/dist/data-edgecenter-securitygroup/index.js +450 -0
  69. package/dist/data-edgecenter-servergroup/index.d.ts +137 -0
  70. package/dist/data-edgecenter-servergroup/index.js +289 -0
  71. package/dist/data-edgecenter-snapshot/index.d.ts +129 -0
  72. package/dist/data-edgecenter-snapshot/index.js +281 -0
  73. package/dist/data-edgecenter-storage-s3/index.d.ts +71 -0
  74. package/dist/data-edgecenter-storage-s3/index.js +157 -0
  75. package/dist/data-edgecenter-storage-s3-bucket/index.d.ts +64 -0
  76. package/dist/data-edgecenter-storage-s3-bucket/index.js +131 -0
  77. package/dist/data-edgecenter-subnet/index.d.ts +253 -0
  78. package/dist/data-edgecenter-subnet/index.js +536 -0
  79. package/dist/data-edgecenter-useractions-subscription-amqp/index.d.ts +48 -0
  80. package/dist/data-edgecenter-useractions-subscription-amqp/index.js +107 -0
  81. package/dist/data-edgecenter-useractions-subscription-log/index.d.ts +47 -0
  82. package/dist/data-edgecenter-useractions-subscription-log/index.js +103 -0
  83. package/dist/data-edgecenter-volume/index.d.ts +169 -0
  84. package/dist/data-edgecenter-volume/index.js +343 -0
  85. package/dist/dns-zone/index.d.ts +54 -0
  86. package/dist/dns-zone/index.js +111 -0
  87. package/dist/dns-zone-record/index.d.ts +494 -0
  88. package/dist/dns-zone-record/index.js +1217 -0
  89. package/dist/floatingip/index.d.ts +185 -0
  90. package/dist/floatingip/index.js +394 -0
  91. package/dist/index.d.ts +83 -0
  92. package/dist/index.js +84 -0
  93. package/dist/instance/index.d.ts +830 -0
  94. package/dist/instance/index.js +1948 -0
  95. package/dist/instance-port-security/index.d.ts +229 -0
  96. package/dist/instance-port-security/index.js +564 -0
  97. package/dist/instance-v2/index.d.ts +552 -0
  98. package/dist/instance-v2/index.js +1244 -0
  99. package/dist/k8s/index.d.ts +342 -0
  100. package/dist/k8s/index.js +856 -0
  101. package/dist/k8s-pool/index.d.ts +227 -0
  102. package/dist/k8s-pool/index.js +514 -0
  103. package/dist/keypair/index.d.ts +88 -0
  104. package/dist/keypair/index.js +185 -0
  105. package/dist/lazy-index.d.ts +0 -0
  106. package/dist/lazy-index.js +84 -0
  107. package/dist/lb-l7policy/index.d.ts +244 -0
  108. package/dist/lb-l7policy/index.js +566 -0
  109. package/dist/lb-l7rule/index.d.ts +219 -0
  110. package/dist/lb-l7rule/index.js +506 -0
  111. package/dist/lblistener/index.d.ts +264 -0
  112. package/dist/lblistener/index.js +597 -0
  113. package/dist/lbmember/index.d.ts +207 -0
  114. package/dist/lbmember/index.js +473 -0
  115. package/dist/lbpool/index.d.ts +387 -0
  116. package/dist/lbpool/index.js +934 -0
  117. package/dist/lifecyclepolicy/index.d.ts +476 -0
  118. package/dist/lifecyclepolicy/index.js +1188 -0
  119. package/dist/loadbalancer/index.d.ts +341 -0
  120. package/dist/loadbalancer/index.js +851 -0
  121. package/dist/loadbalancerv2/index.d.ts +253 -0
  122. package/dist/loadbalancerv2/index.js +562 -0
  123. package/dist/network/index.d.ts +187 -0
  124. package/dist/network/index.js +382 -0
  125. package/dist/project/index.d.ts +68 -0
  126. package/dist/project/index.js +150 -0
  127. package/dist/protection-resource/index.d.ts +179 -0
  128. package/dist/protection-resource/index.js +381 -0
  129. package/dist/protection-resource-alias/index.d.ts +64 -0
  130. package/dist/protection-resource-alias/index.js +131 -0
  131. package/dist/protection-resource-alias-certificate/index.d.ts +88 -0
  132. package/dist/protection-resource-alias-certificate/index.js +185 -0
  133. package/dist/protection-resource-blacklist-entry/index.d.ts +64 -0
  134. package/dist/protection-resource-blacklist-entry/index.js +131 -0
  135. package/dist/protection-resource-certificate/index.d.ts +88 -0
  136. package/dist/protection-resource-certificate/index.js +185 -0
  137. package/dist/protection-resource-header/index.d.ts +74 -0
  138. package/dist/protection-resource-header/index.js +151 -0
  139. package/dist/protection-resource-origin/index.d.ts +119 -0
  140. package/dist/protection-resource-origin/index.js +246 -0
  141. package/dist/protection-resource-whitelist-entry/index.d.ts +64 -0
  142. package/dist/protection-resource-whitelist-entry/index.js +131 -0
  143. package/dist/provider/index.d.ts +182 -0
  144. package/dist/provider/index.js +384 -0
  145. package/dist/reseller-images/index.d.ts +120 -0
  146. package/dist/reseller-images/index.js +272 -0
  147. package/dist/reseller-images-v2/index.d.ts +130 -0
  148. package/dist/reseller-images-v2/index.js +292 -0
  149. package/dist/reservedfixedip/index.d.ts +230 -0
  150. package/dist/reservedfixedip/index.js +513 -0
  151. package/dist/router/index.d.ts +322 -0
  152. package/dist/router/index.js +755 -0
  153. package/dist/secret/index.d.ts +146 -0
  154. package/dist/secret/index.js +311 -0
  155. package/dist/securitygroup/index.d.ts +291 -0
  156. package/dist/securitygroup/index.js +654 -0
  157. package/dist/servergroup/index.d.ts +143 -0
  158. package/dist/servergroup/index.js +302 -0
  159. package/dist/snapshot/index.d.ts +185 -0
  160. package/dist/snapshot/index.js +383 -0
  161. package/dist/storage-s3/index.d.ts +141 -0
  162. package/dist/storage-s3/index.js +292 -0
  163. package/dist/storage-s3-bucket/index.d.ts +64 -0
  164. package/dist/storage-s3-bucket/index.js +131 -0
  165. package/dist/subnet/index.d.ts +346 -0
  166. package/dist/subnet/index.js +751 -0
  167. package/dist/useractions-subscription-amqp/index.d.ts +87 -0
  168. package/dist/useractions-subscription-amqp/index.js +180 -0
  169. package/dist/useractions-subscription-log/index.d.ts +74 -0
  170. package/dist/useractions-subscription-log/index.js +151 -0
  171. package/dist/volume/index.d.ts +208 -0
  172. package/dist/volume/index.js +424 -0
  173. package/package.json +51 -0
@@ -0,0 +1,536 @@
1
+ // https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/subnet
2
+ // generated from terraform resource schema
3
+ import * as cdktf from 'cdktf';
4
+ export function dataEdgecenterSubnetAllocationPoolsToTerraform(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 dataEdgecenterSubnetAllocationPoolsToHclTerraform(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 DataEdgecenterSubnetAllocationPoolsOutputReference 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
+ // end - computed: true, optional: false, required: false
48
+ get end() {
49
+ return this.getStringAttribute('end');
50
+ }
51
+ // start - computed: true, optional: false, required: false
52
+ get start() {
53
+ return this.getStringAttribute('start');
54
+ }
55
+ }
56
+ export class DataEdgecenterSubnetAllocationPoolsList 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 DataEdgecenterSubnetAllocationPoolsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
76
+ }
77
+ }
78
+ export function dataEdgecenterSubnetHostRoutesToTerraform(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 dataEdgecenterSubnetHostRoutesToHclTerraform(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 DataEdgecenterSubnetHostRoutesOutputReference 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
+ // destination - computed: true, optional: false, required: false
122
+ get destination() {
123
+ return this.getStringAttribute('destination');
124
+ }
125
+ // nexthop - computed: true, optional: false, required: false
126
+ get nexthop() {
127
+ return this.getStringAttribute('nexthop');
128
+ }
129
+ }
130
+ export class DataEdgecenterSubnetHostRoutesList extends cdktf.ComplexList {
131
+ terraformResource;
132
+ terraformAttribute;
133
+ wrapsSet;
134
+ /**
135
+ * @param terraformResource The parent resource
136
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
137
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
138
+ */
139
+ constructor(terraformResource, terraformAttribute, wrapsSet) {
140
+ super(terraformResource, terraformAttribute, wrapsSet);
141
+ this.terraformResource = terraformResource;
142
+ this.terraformAttribute = terraformAttribute;
143
+ this.wrapsSet = wrapsSet;
144
+ }
145
+ /**
146
+ * @param index the index of the item to return
147
+ */
148
+ get(index) {
149
+ return new DataEdgecenterSubnetHostRoutesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
150
+ }
151
+ }
152
+ export function dataEdgecenterSubnetMetadataReadOnlyToTerraform(struct) {
153
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
154
+ return struct;
155
+ }
156
+ if (cdktf.isComplexElement(struct)) {
157
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
158
+ }
159
+ return {};
160
+ }
161
+ export function dataEdgecenterSubnetMetadataReadOnlyToHclTerraform(struct) {
162
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
163
+ return struct;
164
+ }
165
+ if (cdktf.isComplexElement(struct)) {
166
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
167
+ }
168
+ const attrs = {};
169
+ return attrs;
170
+ }
171
+ export class DataEdgecenterSubnetMetadataReadOnlyOutputReference extends cdktf.ComplexObject {
172
+ isEmptyObject = false;
173
+ /**
174
+ * @param terraformResource The parent resource
175
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
176
+ * @param complexObjectIndex the index of this item in the list
177
+ * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
178
+ */
179
+ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
180
+ super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
181
+ }
182
+ get internalValue() {
183
+ let hasAnyValues = this.isEmptyObject;
184
+ const internalValueResult = {};
185
+ return hasAnyValues ? internalValueResult : undefined;
186
+ }
187
+ set internalValue(value) {
188
+ if (value === undefined) {
189
+ this.isEmptyObject = false;
190
+ }
191
+ else {
192
+ this.isEmptyObject = Object.keys(value).length === 0;
193
+ }
194
+ }
195
+ // key - computed: true, optional: false, required: false
196
+ get key() {
197
+ return this.getStringAttribute('key');
198
+ }
199
+ // read_only - computed: true, optional: false, required: false
200
+ get readOnly() {
201
+ return this.getBooleanAttribute('read_only');
202
+ }
203
+ // value - computed: true, optional: false, required: false
204
+ get value() {
205
+ return this.getStringAttribute('value');
206
+ }
207
+ }
208
+ export class DataEdgecenterSubnetMetadataReadOnlyList extends cdktf.ComplexList {
209
+ terraformResource;
210
+ terraformAttribute;
211
+ wrapsSet;
212
+ /**
213
+ * @param terraformResource The parent resource
214
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
215
+ * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
216
+ */
217
+ constructor(terraformResource, terraformAttribute, wrapsSet) {
218
+ super(terraformResource, terraformAttribute, wrapsSet);
219
+ this.terraformResource = terraformResource;
220
+ this.terraformAttribute = terraformAttribute;
221
+ this.wrapsSet = wrapsSet;
222
+ }
223
+ /**
224
+ * @param index the index of the item to return
225
+ */
226
+ get(index) {
227
+ return new DataEdgecenterSubnetMetadataReadOnlyOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
228
+ }
229
+ }
230
+ /**
231
+ * Represents a {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/subnet edgecenter_subnet}
232
+ */
233
+ export class DataEdgecenterSubnet extends cdktf.TerraformDataSource {
234
+ // =================
235
+ // STATIC PROPERTIES
236
+ // =================
237
+ static tfResourceType = "edgecenter_subnet";
238
+ // ==============
239
+ // STATIC Methods
240
+ // ==============
241
+ /**
242
+ * Generates CDKTF code for importing a DataEdgecenterSubnet resource upon running "cdktf plan <stack-name>"
243
+ * @param scope The scope in which to define this construct
244
+ * @param importToId The construct id used in the generated config for the DataEdgecenterSubnet to import
245
+ * @param importFromId The id of the existing DataEdgecenterSubnet that should be imported. Refer to the {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/subnet#import import section} in the documentation of this resource for the id to use
246
+ * @param provider? Optional instance of the provider where the DataEdgecenterSubnet to import is found
247
+ */
248
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
249
+ return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "edgecenter_subnet", importId: importFromId, provider });
250
+ }
251
+ // ===========
252
+ // INITIALIZER
253
+ // ===========
254
+ /**
255
+ * Create a new {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/subnet edgecenter_subnet} Data Source
256
+ *
257
+ * @param scope The scope in which to define this construct
258
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
259
+ * @param options DataEdgecenterSubnetConfig = {}
260
+ */
261
+ constructor(scope, id, config = {}) {
262
+ super(scope, id, {
263
+ terraformResourceType: 'edgecenter_subnet',
264
+ terraformGeneratorMetadata: {
265
+ providerName: 'edgecenter',
266
+ providerVersion: '0.10.4',
267
+ providerVersionConstraint: '0.10.4'
268
+ },
269
+ provider: config.provider,
270
+ dependsOn: config.dependsOn,
271
+ count: config.count,
272
+ lifecycle: config.lifecycle,
273
+ provisioners: config.provisioners,
274
+ connection: config.connection,
275
+ forEach: config.forEach
276
+ });
277
+ this._id = config.id;
278
+ this._metadataK = config.metadataK;
279
+ this._metadataKv = config.metadataKv;
280
+ this._name = config.name;
281
+ this._networkId = config.networkId;
282
+ this._projectId = config.projectId;
283
+ this._projectName = config.projectName;
284
+ this._regionId = config.regionId;
285
+ this._regionName = config.regionName;
286
+ }
287
+ // ==========
288
+ // ATTRIBUTES
289
+ // ==========
290
+ // allocation_pools - computed: true, optional: false, required: false
291
+ _allocationPools = new DataEdgecenterSubnetAllocationPoolsList(this, "allocation_pools", true);
292
+ get allocationPools() {
293
+ return this._allocationPools;
294
+ }
295
+ // cidr - computed: true, optional: false, required: false
296
+ get cidr() {
297
+ return this.getStringAttribute('cidr');
298
+ }
299
+ // connect_to_network_router - computed: true, optional: false, required: false
300
+ get connectToNetworkRouter() {
301
+ return this.getBooleanAttribute('connect_to_network_router');
302
+ }
303
+ // dns_nameservers - computed: true, optional: false, required: false
304
+ get dnsNameservers() {
305
+ return this.getListAttribute('dns_nameservers');
306
+ }
307
+ // enable_dhcp - computed: true, optional: false, required: false
308
+ get enableDhcp() {
309
+ return this.getBooleanAttribute('enable_dhcp');
310
+ }
311
+ // gateway_ip - computed: true, optional: false, required: false
312
+ get gatewayIp() {
313
+ return this.getStringAttribute('gateway_ip');
314
+ }
315
+ // host_routes - computed: true, optional: false, required: false
316
+ _hostRoutes = new DataEdgecenterSubnetHostRoutesList(this, "host_routes", false);
317
+ get hostRoutes() {
318
+ return this._hostRoutes;
319
+ }
320
+ // id - computed: true, optional: true, required: false
321
+ _id;
322
+ get id() {
323
+ return this.getStringAttribute('id');
324
+ }
325
+ set id(value) {
326
+ this._id = value;
327
+ }
328
+ resetId() {
329
+ this._id = undefined;
330
+ }
331
+ // Temporarily expose input value. Use with caution.
332
+ get idInput() {
333
+ return this._id;
334
+ }
335
+ // metadata_k - computed: false, optional: true, required: false
336
+ _metadataK;
337
+ get metadataK() {
338
+ return this.getStringAttribute('metadata_k');
339
+ }
340
+ set metadataK(value) {
341
+ this._metadataK = value;
342
+ }
343
+ resetMetadataK() {
344
+ this._metadataK = undefined;
345
+ }
346
+ // Temporarily expose input value. Use with caution.
347
+ get metadataKInput() {
348
+ return this._metadataK;
349
+ }
350
+ // metadata_kv - computed: false, optional: true, required: false
351
+ _metadataKv;
352
+ get metadataKv() {
353
+ return this.getStringMapAttribute('metadata_kv');
354
+ }
355
+ set metadataKv(value) {
356
+ this._metadataKv = value;
357
+ }
358
+ resetMetadataKv() {
359
+ this._metadataKv = undefined;
360
+ }
361
+ // Temporarily expose input value. Use with caution.
362
+ get metadataKvInput() {
363
+ return this._metadataKv;
364
+ }
365
+ // metadata_read_only - computed: true, optional: false, required: false
366
+ _metadataReadOnly = new DataEdgecenterSubnetMetadataReadOnlyList(this, "metadata_read_only", false);
367
+ get metadataReadOnly() {
368
+ return this._metadataReadOnly;
369
+ }
370
+ // name - computed: true, optional: true, required: false
371
+ _name;
372
+ get name() {
373
+ return this.getStringAttribute('name');
374
+ }
375
+ set name(value) {
376
+ this._name = value;
377
+ }
378
+ resetName() {
379
+ this._name = undefined;
380
+ }
381
+ // Temporarily expose input value. Use with caution.
382
+ get nameInput() {
383
+ return this._name;
384
+ }
385
+ // network_id - computed: true, optional: true, required: false
386
+ _networkId;
387
+ get networkId() {
388
+ return this.getStringAttribute('network_id');
389
+ }
390
+ set networkId(value) {
391
+ this._networkId = value;
392
+ }
393
+ resetNetworkId() {
394
+ this._networkId = undefined;
395
+ }
396
+ // Temporarily expose input value. Use with caution.
397
+ get networkIdInput() {
398
+ return this._networkId;
399
+ }
400
+ // project_id - computed: false, optional: true, required: false
401
+ _projectId;
402
+ get projectId() {
403
+ return this.getNumberAttribute('project_id');
404
+ }
405
+ set projectId(value) {
406
+ this._projectId = value;
407
+ }
408
+ resetProjectId() {
409
+ this._projectId = undefined;
410
+ }
411
+ // Temporarily expose input value. Use with caution.
412
+ get projectIdInput() {
413
+ return this._projectId;
414
+ }
415
+ // project_name - computed: false, optional: true, required: false
416
+ _projectName;
417
+ get projectName() {
418
+ return this.getStringAttribute('project_name');
419
+ }
420
+ set projectName(value) {
421
+ this._projectName = value;
422
+ }
423
+ resetProjectName() {
424
+ this._projectName = undefined;
425
+ }
426
+ // Temporarily expose input value. Use with caution.
427
+ get projectNameInput() {
428
+ return this._projectName;
429
+ }
430
+ // region_id - computed: false, optional: true, required: false
431
+ _regionId;
432
+ get regionId() {
433
+ return this.getNumberAttribute('region_id');
434
+ }
435
+ set regionId(value) {
436
+ this._regionId = value;
437
+ }
438
+ resetRegionId() {
439
+ this._regionId = undefined;
440
+ }
441
+ // Temporarily expose input value. Use with caution.
442
+ get regionIdInput() {
443
+ return this._regionId;
444
+ }
445
+ // region_name - computed: false, optional: true, required: false
446
+ _regionName;
447
+ get regionName() {
448
+ return this.getStringAttribute('region_name');
449
+ }
450
+ set regionName(value) {
451
+ this._regionName = value;
452
+ }
453
+ resetRegionName() {
454
+ this._regionName = undefined;
455
+ }
456
+ // Temporarily expose input value. Use with caution.
457
+ get regionNameInput() {
458
+ return this._regionName;
459
+ }
460
+ // =========
461
+ // SYNTHESIS
462
+ // =========
463
+ synthesizeAttributes() {
464
+ return {
465
+ id: cdktf.stringToTerraform(this._id),
466
+ metadata_k: cdktf.stringToTerraform(this._metadataK),
467
+ metadata_kv: cdktf.hashMapper(cdktf.stringToTerraform)(this._metadataKv),
468
+ name: cdktf.stringToTerraform(this._name),
469
+ network_id: cdktf.stringToTerraform(this._networkId),
470
+ project_id: cdktf.numberToTerraform(this._projectId),
471
+ project_name: cdktf.stringToTerraform(this._projectName),
472
+ region_id: cdktf.numberToTerraform(this._regionId),
473
+ region_name: cdktf.stringToTerraform(this._regionName),
474
+ };
475
+ }
476
+ synthesizeHclAttributes() {
477
+ const attrs = {
478
+ id: {
479
+ value: cdktf.stringToHclTerraform(this._id),
480
+ isBlock: false,
481
+ type: "simple",
482
+ storageClassType: "string",
483
+ },
484
+ metadata_k: {
485
+ value: cdktf.stringToHclTerraform(this._metadataK),
486
+ isBlock: false,
487
+ type: "simple",
488
+ storageClassType: "string",
489
+ },
490
+ metadata_kv: {
491
+ value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._metadataKv),
492
+ isBlock: false,
493
+ type: "map",
494
+ storageClassType: "stringMap",
495
+ },
496
+ name: {
497
+ value: cdktf.stringToHclTerraform(this._name),
498
+ isBlock: false,
499
+ type: "simple",
500
+ storageClassType: "string",
501
+ },
502
+ network_id: {
503
+ value: cdktf.stringToHclTerraform(this._networkId),
504
+ isBlock: false,
505
+ type: "simple",
506
+ storageClassType: "string",
507
+ },
508
+ project_id: {
509
+ value: cdktf.numberToHclTerraform(this._projectId),
510
+ isBlock: false,
511
+ type: "simple",
512
+ storageClassType: "number",
513
+ },
514
+ project_name: {
515
+ value: cdktf.stringToHclTerraform(this._projectName),
516
+ isBlock: false,
517
+ type: "simple",
518
+ storageClassType: "string",
519
+ },
520
+ region_id: {
521
+ value: cdktf.numberToHclTerraform(this._regionId),
522
+ isBlock: false,
523
+ type: "simple",
524
+ storageClassType: "number",
525
+ },
526
+ region_name: {
527
+ value: cdktf.stringToHclTerraform(this._regionName),
528
+ isBlock: false,
529
+ type: "simple",
530
+ storageClassType: "string",
531
+ },
532
+ };
533
+ // remove undefined attributes
534
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
535
+ }
536
+ }
@@ -0,0 +1,48 @@
1
+ import { Construct } from 'constructs';
2
+ import * as cdktf from 'cdktf';
3
+ export interface DataEdgecenterUseractionsSubscriptionAmqpConfig extends cdktf.TerraformMetaArguments {
4
+ /**
5
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/useractions_subscription_amqp#id DataEdgecenterUseractionsSubscriptionAmqp#id}
6
+ *
7
+ * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
8
+ * If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
9
+ */
10
+ readonly id?: string;
11
+ }
12
+ /**
13
+ * Represents a {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/useractions_subscription_amqp edgecenter_useractions_subscription_amqp}
14
+ */
15
+ export declare class DataEdgecenterUseractionsSubscriptionAmqp extends cdktf.TerraformDataSource {
16
+ static readonly tfResourceType = "edgecenter_useractions_subscription_amqp";
17
+ /**
18
+ * Generates CDKTF code for importing a DataEdgecenterUseractionsSubscriptionAmqp resource upon running "cdktf plan <stack-name>"
19
+ * @param scope The scope in which to define this construct
20
+ * @param importToId The construct id used in the generated config for the DataEdgecenterUseractionsSubscriptionAmqp to import
21
+ * @param importFromId The id of the existing DataEdgecenterUseractionsSubscriptionAmqp that should be imported. Refer to the {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/useractions_subscription_amqp#import import section} in the documentation of this resource for the id to use
22
+ * @param provider? Optional instance of the provider where the DataEdgecenterUseractionsSubscriptionAmqp to import is found
23
+ */
24
+ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
25
+ /**
26
+ * Create a new {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/useractions_subscription_amqp edgecenter_useractions_subscription_amqp} Data Source
27
+ *
28
+ * @param scope The scope in which to define this construct
29
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
30
+ * @param options DataEdgecenterUseractionsSubscriptionAmqpConfig = {}
31
+ */
32
+ constructor(scope: Construct, id: string, config?: DataEdgecenterUseractionsSubscriptionAmqpConfig);
33
+ get connectionString(): any;
34
+ get exchange(): any;
35
+ private _id?;
36
+ get id(): string;
37
+ set id(value: string);
38
+ resetId(): void;
39
+ get idInput(): string;
40
+ get receiveChildClientEvents(): any;
41
+ get routingKey(): any;
42
+ protected synthesizeAttributes(): {
43
+ [name: string]: any;
44
+ };
45
+ protected synthesizeHclAttributes(): {
46
+ [name: string]: any;
47
+ };
48
+ }
@@ -0,0 +1,107 @@
1
+ // https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/useractions_subscription_amqp
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/useractions_subscription_amqp edgecenter_useractions_subscription_amqp}
6
+ */
7
+ export class DataEdgecenterUseractionsSubscriptionAmqp extends cdktf.TerraformDataSource {
8
+ // =================
9
+ // STATIC PROPERTIES
10
+ // =================
11
+ static tfResourceType = "edgecenter_useractions_subscription_amqp";
12
+ // ==============
13
+ // STATIC Methods
14
+ // ==============
15
+ /**
16
+ * Generates CDKTF code for importing a DataEdgecenterUseractionsSubscriptionAmqp 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 DataEdgecenterUseractionsSubscriptionAmqp to import
19
+ * @param importFromId The id of the existing DataEdgecenterUseractionsSubscriptionAmqp that should be imported. Refer to the {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/data-sources/useractions_subscription_amqp#import import section} in the documentation of this resource for the id to use
20
+ * @param provider? Optional instance of the provider where the DataEdgecenterUseractionsSubscriptionAmqp to import is found
21
+ */
22
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
23
+ return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "edgecenter_useractions_subscription_amqp", 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/useractions_subscription_amqp edgecenter_useractions_subscription_amqp} 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 DataEdgecenterUseractionsSubscriptionAmqpConfig = {}
34
+ */
35
+ constructor(scope, id, config = {}) {
36
+ super(scope, id, {
37
+ terraformResourceType: 'edgecenter_useractions_subscription_amqp',
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
+ }
53
+ // ==========
54
+ // ATTRIBUTES
55
+ // ==========
56
+ // connection_string - computed: true, optional: false, required: false
57
+ get connectionString() {
58
+ return this.getStringAttribute('connection_string');
59
+ }
60
+ // exchange - computed: true, optional: false, required: false
61
+ get exchange() {
62
+ return this.getStringAttribute('exchange');
63
+ }
64
+ // id - computed: true, optional: true, required: false
65
+ _id;
66
+ get id() {
67
+ return this.getStringAttribute('id');
68
+ }
69
+ set id(value) {
70
+ this._id = value;
71
+ }
72
+ resetId() {
73
+ this._id = undefined;
74
+ }
75
+ // Temporarily expose input value. Use with caution.
76
+ get idInput() {
77
+ return this._id;
78
+ }
79
+ // receive_child_client_events - computed: true, optional: false, required: false
80
+ get receiveChildClientEvents() {
81
+ return this.getBooleanAttribute('receive_child_client_events');
82
+ }
83
+ // routing_key - computed: true, optional: false, required: false
84
+ get routingKey() {
85
+ return this.getStringAttribute('routing_key');
86
+ }
87
+ // =========
88
+ // SYNTHESIS
89
+ // =========
90
+ synthesizeAttributes() {
91
+ return {
92
+ id: cdktf.stringToTerraform(this._id),
93
+ };
94
+ }
95
+ synthesizeHclAttributes() {
96
+ const attrs = {
97
+ id: {
98
+ value: cdktf.stringToHclTerraform(this._id),
99
+ isBlock: false,
100
+ type: "simple",
101
+ storageClassType: "string",
102
+ },
103
+ };
104
+ // remove undefined attributes
105
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
106
+ }
107
+ }