@scaleway/sdk-s2s-vpn 1.1.0

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.
@@ -0,0 +1,475 @@
1
+ import { API as API$1, toApiLocality, urlParams, validatePathParam, enrichForPagination, waitForResource } from "@scaleway/sdk-client";
2
+ import { VPN_GATEWAY_TRANSIENT_STATUSES } from "./content.gen.js";
3
+ import { unmarshalListVpnGatewayTypesResponse, unmarshalListVpnGatewaysResponse, unmarshalVpnGateway, marshalCreateVpnGatewayRequest, marshalUpdateVpnGatewayRequest, unmarshalListConnectionsResponse, unmarshalConnection, marshalCreateConnectionRequest, unmarshalCreateConnectionResponse, marshalUpdateConnectionRequest, unmarshalRenewConnectionPskResponse, marshalSetRoutingPolicyRequest, marshalDetachRoutingPolicyRequest, unmarshalListCustomerGatewaysResponse, unmarshalCustomerGateway, marshalCreateCustomerGatewayRequest, marshalUpdateCustomerGatewayRequest, unmarshalListRoutingPoliciesResponse, unmarshalRoutingPolicy, marshalCreateRoutingPolicyRequest, marshalUpdateRoutingPolicyRequest } from "./marshalling.gen.js";
4
+ const jsonContentHeaders = {
5
+ "Content-Type": "application/json; charset=utf-8"
6
+ };
7
+ class API extends API$1 {
8
+ /**
9
+ * Locality of this API.
10
+ * type ∈ {'zone','region','global','unspecified'}
11
+ */
12
+ static LOCALITY = toApiLocality({
13
+ regions: ["fr-par", "nl-ams", "pl-waw"]
14
+ });
15
+ pageOfListVpnGatewayTypes = (request = {}) => this.client.fetch(
16
+ {
17
+ method: "GET",
18
+ path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/vpn-gateway-types`,
19
+ urlParams: urlParams(
20
+ ["page", request.page],
21
+ [
22
+ "page_size",
23
+ request.pageSize ?? this.client.settings.defaultPageSize
24
+ ]
25
+ )
26
+ },
27
+ unmarshalListVpnGatewayTypesResponse
28
+ );
29
+ /**
30
+ * List VPN gateway types. List the different VPN gateway commercial offer types available at Scaleway. The response is an array of objects describing the name and technical details of each available VPN gateway type.
31
+ *
32
+ * @param request - The request {@link ListVpnGatewayTypesRequest}
33
+ * @returns A Promise of ListVpnGatewayTypesResponse
34
+ */
35
+ listVpnGatewayTypes = (request = {}) => enrichForPagination("gatewayTypes", this.pageOfListVpnGatewayTypes, request);
36
+ pageOfListVpnGateways = (request = {}) => this.client.fetch(
37
+ {
38
+ method: "GET",
39
+ path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/vpn-gateways`,
40
+ urlParams: urlParams(
41
+ ["gateway_types", request.gatewayTypes],
42
+ ["name", request.name],
43
+ ["order_by", request.orderBy],
44
+ ["page", request.page],
45
+ [
46
+ "page_size",
47
+ request.pageSize ?? this.client.settings.defaultPageSize
48
+ ],
49
+ ["private_network_ids", request.privateNetworkIds],
50
+ ["project_id", request.projectId],
51
+ ["statuses", request.statuses],
52
+ ["tags", request.tags]
53
+ )
54
+ },
55
+ unmarshalListVpnGatewaysResponse
56
+ );
57
+ /**
58
+ * List VPN gateways. List all your VPN gateways. A number of filters are available, including Project ID, name, tags and status.
59
+ *
60
+ * @param request - The request {@link ListVpnGatewaysRequest}
61
+ * @returns A Promise of ListVpnGatewaysResponse
62
+ */
63
+ listVpnGateways = (request = {}) => enrichForPagination("gateways", this.pageOfListVpnGateways, request);
64
+ /**
65
+ * Get a VPN gateway. Get a VPN gateway for the given VPN gateway ID.
66
+ *
67
+ * @param request - The request {@link GetVpnGatewayRequest}
68
+ * @returns A Promise of VpnGateway
69
+ */
70
+ getVpnGateway = (request) => this.client.fetch(
71
+ {
72
+ method: "GET",
73
+ path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/vpn-gateways/${validatePathParam("gatewayId", request.gatewayId)}`
74
+ },
75
+ unmarshalVpnGateway
76
+ );
77
+ /**
78
+ * Waits for {@link VpnGateway} to be in a final state.
79
+ *
80
+ * @param request - The request {@link GetVpnGatewayRequest}
81
+ * @param options - The waiting options
82
+ * @returns A Promise of VpnGateway
83
+ */
84
+ waitForVpnGateway = (request, options) => waitForResource(
85
+ options?.stop ?? ((res) => Promise.resolve(
86
+ !VPN_GATEWAY_TRANSIENT_STATUSES.includes(res.status)
87
+ )),
88
+ this.getVpnGateway,
89
+ request,
90
+ options
91
+ );
92
+ /**
93
+ * Create VPN gateway.
94
+ *
95
+ * @param request - The request {@link CreateVpnGatewayRequest}
96
+ * @returns A Promise of VpnGateway
97
+ */
98
+ createVpnGateway = (request) => this.client.fetch(
99
+ {
100
+ body: JSON.stringify(
101
+ marshalCreateVpnGatewayRequest(request, this.client.settings)
102
+ ),
103
+ headers: jsonContentHeaders,
104
+ method: "POST",
105
+ path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/vpn-gateways`
106
+ },
107
+ unmarshalVpnGateway
108
+ );
109
+ /**
110
+ * Update a VPN gateway. Update an existing VPN gateway, specified by its VPN gateway ID. Only its name and tags can be updated.
111
+ *
112
+ * @param request - The request {@link UpdateVpnGatewayRequest}
113
+ * @returns A Promise of VpnGateway
114
+ */
115
+ updateVpnGateway = (request) => this.client.fetch(
116
+ {
117
+ body: JSON.stringify(
118
+ marshalUpdateVpnGatewayRequest(request, this.client.settings)
119
+ ),
120
+ headers: jsonContentHeaders,
121
+ method: "PATCH",
122
+ path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/vpn-gateways/${validatePathParam("gatewayId", request.gatewayId)}`
123
+ },
124
+ unmarshalVpnGateway
125
+ );
126
+ /**
127
+ * Delete a VPN gateway. Delete an existing VPN gateway, specified by its VPN gateway ID.
128
+ *
129
+ * @param request - The request {@link DeleteVpnGatewayRequest}
130
+ * @returns A Promise of VpnGateway
131
+ */
132
+ deleteVpnGateway = (request) => this.client.fetch(
133
+ {
134
+ method: "DELETE",
135
+ path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/vpn-gateways/${validatePathParam("gatewayId", request.gatewayId)}`
136
+ },
137
+ unmarshalVpnGateway
138
+ );
139
+ pageOfListConnections = (request = {}) => this.client.fetch(
140
+ {
141
+ method: "GET",
142
+ path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/connections`,
143
+ urlParams: urlParams(
144
+ ["customer_gateway_ids", request.customerGatewayIds],
145
+ ["is_ipv6", request.isIpv6],
146
+ ["name", request.name],
147
+ ["order_by", request.orderBy],
148
+ ["page", request.page],
149
+ [
150
+ "page_size",
151
+ request.pageSize ?? this.client.settings.defaultPageSize
152
+ ],
153
+ ["project_id", request.projectId],
154
+ ["route_propagation_enabled", request.routePropagationEnabled],
155
+ ["routing_policy_ids", request.routingPolicyIds],
156
+ ["statuses", request.statuses],
157
+ ["tags", request.tags],
158
+ ["vpn_gateway_ids", request.vpnGatewayIds]
159
+ )
160
+ },
161
+ unmarshalListConnectionsResponse
162
+ );
163
+ /**
164
+ * List connections. List all your connections. A number of filters are available, including Project ID, name, tags and status.
165
+ *
166
+ * @param request - The request {@link ListConnectionsRequest}
167
+ * @returns A Promise of ListConnectionsResponse
168
+ */
169
+ listConnections = (request = {}) => enrichForPagination("connections", this.pageOfListConnections, request);
170
+ /**
171
+ * Get a connection. Get a connection for the given connection ID. The response object includes information about the connection's various configuration details.
172
+ *
173
+ * @param request - The request {@link GetConnectionRequest}
174
+ * @returns A Promise of Connection
175
+ */
176
+ getConnection = (request) => this.client.fetch(
177
+ {
178
+ method: "GET",
179
+ path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/connections/${validatePathParam("connectionId", request.connectionId)}`
180
+ },
181
+ unmarshalConnection
182
+ );
183
+ /**
184
+ * Create a connection.
185
+ *
186
+ * @param request - The request {@link CreateConnectionRequest}
187
+ * @returns A Promise of CreateConnectionResponse
188
+ */
189
+ createConnection = (request) => this.client.fetch(
190
+ {
191
+ body: JSON.stringify(
192
+ marshalCreateConnectionRequest(request, this.client.settings)
193
+ ),
194
+ headers: jsonContentHeaders,
195
+ method: "POST",
196
+ path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/connections`
197
+ },
198
+ unmarshalCreateConnectionResponse
199
+ );
200
+ /**
201
+ * Update a connection. Update an existing connection, specified by its connection ID.
202
+ *
203
+ * @param request - The request {@link UpdateConnectionRequest}
204
+ * @returns A Promise of Connection
205
+ */
206
+ updateConnection = (request) => this.client.fetch(
207
+ {
208
+ body: JSON.stringify(
209
+ marshalUpdateConnectionRequest(request, this.client.settings)
210
+ ),
211
+ headers: jsonContentHeaders,
212
+ method: "PATCH",
213
+ path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/connections/${validatePathParam("connectionId", request.connectionId)}`
214
+ },
215
+ unmarshalConnection
216
+ );
217
+ /**
218
+ * Delete a connection. Delete an existing connection, specified by its connection ID.
219
+ *
220
+ * @param request - The request {@link DeleteConnectionRequest}
221
+ */
222
+ deleteConnection = (request) => this.client.fetch({
223
+ method: "DELETE",
224
+ path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/connections/${validatePathParam("connectionId", request.connectionId)}`
225
+ });
226
+ /**
227
+ * Renew pre-shared key. Renew pre-shared key for a given connection.
228
+ *
229
+ * @param request - The request {@link RenewConnectionPskRequest}
230
+ * @returns A Promise of RenewConnectionPskResponse
231
+ */
232
+ renewConnectionPsk = (request) => this.client.fetch(
233
+ {
234
+ body: "{}",
235
+ headers: jsonContentHeaders,
236
+ method: "POST",
237
+ path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/connections/${validatePathParam("connectionId", request.connectionId)}/renew-psk`
238
+ },
239
+ unmarshalRenewConnectionPskResponse
240
+ );
241
+ /**
242
+ * Set a new routing policy. Set a new routing policy on a connection, overriding the existing one if present, specified by its connection ID.
243
+ *
244
+ * @param request - The request {@link SetRoutingPolicyRequest}
245
+ * @returns A Promise of Connection
246
+ */
247
+ setRoutingPolicy = (request) => this.client.fetch(
248
+ {
249
+ body: JSON.stringify(
250
+ marshalSetRoutingPolicyRequest(request, this.client.settings)
251
+ ),
252
+ headers: jsonContentHeaders,
253
+ method: "POST",
254
+ path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/connections/${validatePathParam("connectionId", request.connectionId)}/set-routing-policy`
255
+ },
256
+ unmarshalConnection
257
+ );
258
+ /**
259
+ * Detach a routing policy. Detach an existing routing policy from a connection, specified by its connection ID.
260
+ *
261
+ * @param request - The request {@link DetachRoutingPolicyRequest}
262
+ * @returns A Promise of Connection
263
+ */
264
+ detachRoutingPolicy = (request) => this.client.fetch(
265
+ {
266
+ body: JSON.stringify(
267
+ marshalDetachRoutingPolicyRequest(request, this.client.settings)
268
+ ),
269
+ headers: jsonContentHeaders,
270
+ method: "POST",
271
+ path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/connections/${validatePathParam("connectionId", request.connectionId)}/detach-routing-policy`
272
+ },
273
+ unmarshalConnection
274
+ );
275
+ /**
276
+ * Enable route propagation. Enable all allowed prefixes (defined in a routing policy) to be announced in the BGP session. This allows traffic to flow between the attached VPC and the on-premises infrastructure along the announced routes. Note that by default, even when route propagation is enabled, all routes are blocked. It is essential to attach a routing policy to define the ranges of routes to announce.
277
+ *
278
+ * @param request - The request {@link EnableRoutePropagationRequest}
279
+ * @returns A Promise of Connection
280
+ */
281
+ enableRoutePropagation = (request) => this.client.fetch(
282
+ {
283
+ body: "{}",
284
+ headers: jsonContentHeaders,
285
+ method: "POST",
286
+ path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/connections/${validatePathParam("connectionId", request.connectionId)}/enable-route-propagation`
287
+ },
288
+ unmarshalConnection
289
+ );
290
+ /**
291
+ * Disable route propagation. Prevent any prefixes from being announced in the BGP session. Traffic will not be able to flow over the VPN Gateway until route propagation is re-enabled.
292
+ *
293
+ * @param request - The request {@link DisableRoutePropagationRequest}
294
+ * @returns A Promise of Connection
295
+ */
296
+ disableRoutePropagation = (request) => this.client.fetch(
297
+ {
298
+ body: "{}",
299
+ headers: jsonContentHeaders,
300
+ method: "POST",
301
+ path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/connections/${validatePathParam("connectionId", request.connectionId)}/disable-route-propagation`
302
+ },
303
+ unmarshalConnection
304
+ );
305
+ pageOfListCustomerGateways = (request = {}) => this.client.fetch(
306
+ {
307
+ method: "GET",
308
+ path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/customer-gateways`,
309
+ urlParams: urlParams(
310
+ ["name", request.name],
311
+ ["order_by", request.orderBy],
312
+ ["page", request.page],
313
+ [
314
+ "page_size",
315
+ request.pageSize ?? this.client.settings.defaultPageSize
316
+ ],
317
+ ["project_id", request.projectId],
318
+ ["tags", request.tags]
319
+ )
320
+ },
321
+ unmarshalListCustomerGatewaysResponse
322
+ );
323
+ /**
324
+ * List customer gateways. List all your customer gateways. A number of filters are available, including Project ID, name, and tags.
325
+ *
326
+ * @param request - The request {@link ListCustomerGatewaysRequest}
327
+ * @returns A Promise of ListCustomerGatewaysResponse
328
+ */
329
+ listCustomerGateways = (request = {}) => enrichForPagination("gateways", this.pageOfListCustomerGateways, request);
330
+ /**
331
+ * Get a customer gateway. Get a customer gateway for the given customer gateway ID.
332
+ *
333
+ * @param request - The request {@link GetCustomerGatewayRequest}
334
+ * @returns A Promise of CustomerGateway
335
+ */
336
+ getCustomerGateway = (request) => this.client.fetch(
337
+ {
338
+ method: "GET",
339
+ path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/customer-gateways/${validatePathParam("gatewayId", request.gatewayId)}`
340
+ },
341
+ unmarshalCustomerGateway
342
+ );
343
+ /**
344
+ * Create a customer gateway.
345
+ *
346
+ * @param request - The request {@link CreateCustomerGatewayRequest}
347
+ * @returns A Promise of CustomerGateway
348
+ */
349
+ createCustomerGateway = (request) => this.client.fetch(
350
+ {
351
+ body: JSON.stringify(
352
+ marshalCreateCustomerGatewayRequest(request, this.client.settings)
353
+ ),
354
+ headers: jsonContentHeaders,
355
+ method: "POST",
356
+ path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/customer-gateways`
357
+ },
358
+ unmarshalCustomerGateway
359
+ );
360
+ /**
361
+ * Update a customer gateway. Update an existing customer gateway, specified by its customer gateway ID. You can update its name, tags, public IPv4 & IPv6 address and AS Number.
362
+ *
363
+ * @param request - The request {@link UpdateCustomerGatewayRequest}
364
+ * @returns A Promise of CustomerGateway
365
+ */
366
+ updateCustomerGateway = (request) => this.client.fetch(
367
+ {
368
+ body: JSON.stringify(
369
+ marshalUpdateCustomerGatewayRequest(request, this.client.settings)
370
+ ),
371
+ headers: jsonContentHeaders,
372
+ method: "PATCH",
373
+ path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/customer-gateways/${validatePathParam("gatewayId", request.gatewayId)}`
374
+ },
375
+ unmarshalCustomerGateway
376
+ );
377
+ /**
378
+ * Delete a customer gateway. Delete an existing customer gateway, specified by its customer gateway ID.
379
+ *
380
+ * @param request - The request {@link DeleteCustomerGatewayRequest}
381
+ */
382
+ deleteCustomerGateway = (request) => this.client.fetch({
383
+ method: "DELETE",
384
+ path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/customer-gateways/${validatePathParam("gatewayId", request.gatewayId)}`
385
+ });
386
+ pageOfListRoutingPolicies = (request = {}) => this.client.fetch(
387
+ {
388
+ method: "GET",
389
+ path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routing-policies`,
390
+ urlParams: urlParams(
391
+ ["ipv6", request.ipv6],
392
+ ["name", request.name],
393
+ ["order_by", request.orderBy],
394
+ ["page", request.page],
395
+ [
396
+ "page_size",
397
+ request.pageSize ?? this.client.settings.defaultPageSize
398
+ ],
399
+ ["project_id", request.projectId],
400
+ ["tags", request.tags]
401
+ )
402
+ },
403
+ unmarshalListRoutingPoliciesResponse
404
+ );
405
+ /**
406
+ * List routing policies. List all routing policies in a given region. A routing policy can be attached to one or multiple connections (S2S VPN connections).
407
+ *
408
+ * @param request - The request {@link ListRoutingPoliciesRequest}
409
+ * @returns A Promise of ListRoutingPoliciesResponse
410
+ */
411
+ listRoutingPolicies = (request = {}) => enrichForPagination(
412
+ "routingPolicies",
413
+ this.pageOfListRoutingPolicies,
414
+ request
415
+ );
416
+ /**
417
+ * Get routing policy. Get a routing policy for the given routing policy ID. The response object gives information including the policy's name, tags and prefix filters.
418
+ *
419
+ * @param request - The request {@link GetRoutingPolicyRequest}
420
+ * @returns A Promise of RoutingPolicy
421
+ */
422
+ getRoutingPolicy = (request) => this.client.fetch(
423
+ {
424
+ method: "GET",
425
+ path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routing-policies/${validatePathParam("routingPolicyId", request.routingPolicyId)}`
426
+ },
427
+ unmarshalRoutingPolicy
428
+ );
429
+ /**
430
+ * Create a routing policy. Create a routing policy. Routing policies allow you to set IP prefix filters to define the incoming route announcements to accept from the customer gateway, and the outgoing routes to announce to the customer gateway.
431
+ *
432
+ * @param request - The request {@link CreateRoutingPolicyRequest}
433
+ * @returns A Promise of RoutingPolicy
434
+ */
435
+ createRoutingPolicy = (request) => this.client.fetch(
436
+ {
437
+ body: JSON.stringify(
438
+ marshalCreateRoutingPolicyRequest(request, this.client.settings)
439
+ ),
440
+ headers: jsonContentHeaders,
441
+ method: "POST",
442
+ path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routing-policies`
443
+ },
444
+ unmarshalRoutingPolicy
445
+ );
446
+ /**
447
+ * Update a routing policy. Update an existing routing policy, specified by its routing policy ID. Its name, tags and incoming/outgoing prefix filters can be updated.
448
+ *
449
+ * @param request - The request {@link UpdateRoutingPolicyRequest}
450
+ * @returns A Promise of RoutingPolicy
451
+ */
452
+ updateRoutingPolicy = (request) => this.client.fetch(
453
+ {
454
+ body: JSON.stringify(
455
+ marshalUpdateRoutingPolicyRequest(request, this.client.settings)
456
+ ),
457
+ headers: jsonContentHeaders,
458
+ method: "PATCH",
459
+ path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routing-policies/${validatePathParam("routingPolicyId", request.routingPolicyId)}`
460
+ },
461
+ unmarshalRoutingPolicy
462
+ );
463
+ /**
464
+ * Delete a routing policy. Delete an existing routing policy, specified by its routing policy ID.
465
+ *
466
+ * @param request - The request {@link DeleteRoutingPolicyRequest}
467
+ */
468
+ deleteRoutingPolicy = (request) => this.client.fetch({
469
+ method: "DELETE",
470
+ path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routing-policies/${validatePathParam("routingPolicyId", request.routingPolicyId)}`
471
+ });
472
+ }
473
+ export {
474
+ API
475
+ };
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const VPN_GATEWAY_TRANSIENT_STATUSES = [
4
+ "configuring",
5
+ "provisioning",
6
+ "deprovisioning"
7
+ ];
8
+ exports.VPN_GATEWAY_TRANSIENT_STATUSES = VPN_GATEWAY_TRANSIENT_STATUSES;
@@ -0,0 +1,3 @@
1
+ import type { VpnGatewayStatus } from './types.gen.js';
2
+ /** Lists transient statutes of the enum {@link VpnGatewayStatus}. */
3
+ export declare const VPN_GATEWAY_TRANSIENT_STATUSES: VpnGatewayStatus[];
@@ -0,0 +1,8 @@
1
+ const VPN_GATEWAY_TRANSIENT_STATUSES = [
2
+ "configuring",
3
+ "provisioning",
4
+ "deprovisioning"
5
+ ];
6
+ export {
7
+ VPN_GATEWAY_TRANSIENT_STATUSES
8
+ };
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const api_gen = require("./api.gen.cjs");
4
+ const content_gen = require("./content.gen.cjs");
5
+ const marshalling_gen = require("./marshalling.gen.cjs");
6
+ const validationRules_gen = require("./validation-rules.gen.cjs");
7
+ exports.API = api_gen.API;
8
+ exports.VPN_GATEWAY_TRANSIENT_STATUSES = content_gen.VPN_GATEWAY_TRANSIENT_STATUSES;
9
+ exports.marshalCreateConnectionRequest = marshalling_gen.marshalCreateConnectionRequest;
10
+ exports.marshalCreateCustomerGatewayRequest = marshalling_gen.marshalCreateCustomerGatewayRequest;
11
+ exports.marshalCreateRoutingPolicyRequest = marshalling_gen.marshalCreateRoutingPolicyRequest;
12
+ exports.marshalCreateVpnGatewayRequest = marshalling_gen.marshalCreateVpnGatewayRequest;
13
+ exports.marshalDetachRoutingPolicyRequest = marshalling_gen.marshalDetachRoutingPolicyRequest;
14
+ exports.marshalSetRoutingPolicyRequest = marshalling_gen.marshalSetRoutingPolicyRequest;
15
+ exports.marshalUpdateConnectionRequest = marshalling_gen.marshalUpdateConnectionRequest;
16
+ exports.marshalUpdateCustomerGatewayRequest = marshalling_gen.marshalUpdateCustomerGatewayRequest;
17
+ exports.marshalUpdateRoutingPolicyRequest = marshalling_gen.marshalUpdateRoutingPolicyRequest;
18
+ exports.marshalUpdateVpnGatewayRequest = marshalling_gen.marshalUpdateVpnGatewayRequest;
19
+ exports.unmarshalConnection = marshalling_gen.unmarshalConnection;
20
+ exports.unmarshalCreateConnectionResponse = marshalling_gen.unmarshalCreateConnectionResponse;
21
+ exports.unmarshalCustomerGateway = marshalling_gen.unmarshalCustomerGateway;
22
+ exports.unmarshalListConnectionsResponse = marshalling_gen.unmarshalListConnectionsResponse;
23
+ exports.unmarshalListCustomerGatewaysResponse = marshalling_gen.unmarshalListCustomerGatewaysResponse;
24
+ exports.unmarshalListRoutingPoliciesResponse = marshalling_gen.unmarshalListRoutingPoliciesResponse;
25
+ exports.unmarshalListVpnGatewayTypesResponse = marshalling_gen.unmarshalListVpnGatewayTypesResponse;
26
+ exports.unmarshalListVpnGatewaysResponse = marshalling_gen.unmarshalListVpnGatewaysResponse;
27
+ exports.unmarshalRenewConnectionPskResponse = marshalling_gen.unmarshalRenewConnectionPskResponse;
28
+ exports.unmarshalRoutingPolicy = marshalling_gen.unmarshalRoutingPolicy;
29
+ exports.unmarshalVpnGateway = marshalling_gen.unmarshalVpnGateway;
30
+ exports.ValidationRules = validationRules_gen;
@@ -0,0 +1,5 @@
1
+ export { API } from './api.gen.js';
2
+ export * from './content.gen.js';
3
+ export * from './marshalling.gen.js';
4
+ export type { BgpSession, BgpSessionStatus, Connection, ConnectionCipher, ConnectionDhGroup, ConnectionEncryption, ConnectionInitiationPolicy, ConnectionIntegrity, ConnectionStatus, CreateConnectionRequest, CreateConnectionRequestBgpConfig, CreateConnectionRequestInitiationPolicy, CreateConnectionResponse, CreateCustomerGatewayRequest, CreateRoutingPolicyRequest, CreateVpnGatewayRequest, CreateVpnGatewayRequestPublicConfig, CustomerGateway, DeleteConnectionRequest, DeleteCustomerGatewayRequest, DeleteRoutingPolicyRequest, DeleteVpnGatewayRequest, DetachRoutingPolicyRequest, DisableRoutePropagationRequest, EnableRoutePropagationRequest, GatewayType, GetConnectionRequest, GetCustomerGatewayRequest, GetRoutingPolicyRequest, GetVpnGatewayRequest, ListConnectionsRequest, ListConnectionsRequestOrderBy, ListConnectionsResponse, ListCustomerGatewaysRequest, ListCustomerGatewaysRequestOrderBy, ListCustomerGatewaysResponse, ListRoutingPoliciesRequest, ListRoutingPoliciesRequestOrderBy, ListRoutingPoliciesResponse, ListVpnGatewayTypesRequest, ListVpnGatewayTypesResponse, ListVpnGatewaysRequest, ListVpnGatewaysRequestOrderBy, ListVpnGatewaysResponse, RenewConnectionPskRequest, RenewConnectionPskResponse, RoutingPolicy, SetRoutingPolicyRequest, TunnelStatus, UpdateConnectionRequest, UpdateCustomerGatewayRequest, UpdateRoutingPolicyRequest, UpdateVpnGatewayRequest, VpnGateway, VpnGatewayPrivateConfig, VpnGatewayPublicConfig, VpnGatewayStatus, } from './types.gen.js';
5
+ export * as ValidationRules from './validation-rules.gen.js';
@@ -0,0 +1,30 @@
1
+ import { API } from "./api.gen.js";
2
+ import { VPN_GATEWAY_TRANSIENT_STATUSES } from "./content.gen.js";
3
+ import { marshalCreateConnectionRequest, marshalCreateCustomerGatewayRequest, marshalCreateRoutingPolicyRequest, marshalCreateVpnGatewayRequest, marshalDetachRoutingPolicyRequest, marshalSetRoutingPolicyRequest, marshalUpdateConnectionRequest, marshalUpdateCustomerGatewayRequest, marshalUpdateRoutingPolicyRequest, marshalUpdateVpnGatewayRequest, unmarshalConnection, unmarshalCreateConnectionResponse, unmarshalCustomerGateway, unmarshalListConnectionsResponse, unmarshalListCustomerGatewaysResponse, unmarshalListRoutingPoliciesResponse, unmarshalListVpnGatewayTypesResponse, unmarshalListVpnGatewaysResponse, unmarshalRenewConnectionPskResponse, unmarshalRoutingPolicy, unmarshalVpnGateway } from "./marshalling.gen.js";
4
+ import * as validationRules_gen from "./validation-rules.gen.js";
5
+ export {
6
+ API,
7
+ VPN_GATEWAY_TRANSIENT_STATUSES,
8
+ validationRules_gen as ValidationRules,
9
+ marshalCreateConnectionRequest,
10
+ marshalCreateCustomerGatewayRequest,
11
+ marshalCreateRoutingPolicyRequest,
12
+ marshalCreateVpnGatewayRequest,
13
+ marshalDetachRoutingPolicyRequest,
14
+ marshalSetRoutingPolicyRequest,
15
+ marshalUpdateConnectionRequest,
16
+ marshalUpdateCustomerGatewayRequest,
17
+ marshalUpdateRoutingPolicyRequest,
18
+ marshalUpdateVpnGatewayRequest,
19
+ unmarshalConnection,
20
+ unmarshalCreateConnectionResponse,
21
+ unmarshalCustomerGateway,
22
+ unmarshalListConnectionsResponse,
23
+ unmarshalListCustomerGatewaysResponse,
24
+ unmarshalListRoutingPoliciesResponse,
25
+ unmarshalListVpnGatewayTypesResponse,
26
+ unmarshalListVpnGatewaysResponse,
27
+ unmarshalRenewConnectionPskResponse,
28
+ unmarshalRoutingPolicy,
29
+ unmarshalVpnGateway
30
+ };