@aws-sdk/client-networkmanager 3.200.0 → 3.201.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.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/endpoint/EndpointParameters.js +2 -3
- package/dist-cjs/protocols/Aws_restJson1.js +100 -112
- package/dist-cjs/runtimeConfig.browser.js +16 -16
- package/dist-cjs/runtimeConfig.js +20 -19
- package/dist-cjs/runtimeConfig.native.js +1 -2
- package/dist-cjs/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.201.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.200.0...v3.201.0) (2022-11-01)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* end support for Node.js 12.x ([#4123](https://github.com/aws/aws-sdk-js-v3/issues/4123)) ([83f913e](https://github.com/aws/aws-sdk-js-v3/commit/83f913ec2ac3878d8726c6964f585550dc5caf3e))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.200.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.199.0...v3.200.0) (2022-10-31)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-networkmanager
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveClientEndpointParameters = void 0;
|
|
4
4
|
const resolveClientEndpointParameters = (options) => {
|
|
5
|
-
var _a, _b;
|
|
6
5
|
return {
|
|
7
6
|
...options,
|
|
8
|
-
useDualstackEndpoint:
|
|
9
|
-
useFipsEndpoint:
|
|
7
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
8
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
10
9
|
defaultSigningName: "networkmanager",
|
|
11
10
|
};
|
|
12
11
|
};
|
|
@@ -12,7 +12,7 @@ const NetworkManagerServiceException_1 = require("../models/NetworkManagerServic
|
|
|
12
12
|
const serializeAws_restJson1AcceptAttachmentCommand = async (input, context) => {
|
|
13
13
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
14
14
|
const headers = {};
|
|
15
|
-
let resolvedPath = `${
|
|
15
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/attachments/{AttachmentId}/accept";
|
|
16
16
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
|
|
17
17
|
let body;
|
|
18
18
|
return new protocol_http_1.HttpRequest({
|
|
@@ -31,7 +31,7 @@ const serializeAws_restJson1AssociateConnectPeerCommand = async (input, context)
|
|
|
31
31
|
const headers = {
|
|
32
32
|
"content-type": "application/json",
|
|
33
33
|
};
|
|
34
|
-
let resolvedPath = `${
|
|
34
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
35
35
|
"/global-networks/{GlobalNetworkId}/connect-peer-associations";
|
|
36
36
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
37
37
|
let body;
|
|
@@ -56,7 +56,7 @@ const serializeAws_restJson1AssociateCustomerGatewayCommand = async (input, cont
|
|
|
56
56
|
const headers = {
|
|
57
57
|
"content-type": "application/json",
|
|
58
58
|
};
|
|
59
|
-
let resolvedPath = `${
|
|
59
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
60
60
|
"/global-networks/{GlobalNetworkId}/customer-gateway-associations";
|
|
61
61
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
62
62
|
let body;
|
|
@@ -81,7 +81,7 @@ const serializeAws_restJson1AssociateLinkCommand = async (input, context) => {
|
|
|
81
81
|
const headers = {
|
|
82
82
|
"content-type": "application/json",
|
|
83
83
|
};
|
|
84
|
-
let resolvedPath = `${
|
|
84
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
85
85
|
"/global-networks/{GlobalNetworkId}/link-associations";
|
|
86
86
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
87
87
|
let body;
|
|
@@ -105,7 +105,7 @@ const serializeAws_restJson1AssociateTransitGatewayConnectPeerCommand = async (i
|
|
|
105
105
|
const headers = {
|
|
106
106
|
"content-type": "application/json",
|
|
107
107
|
};
|
|
108
|
-
let resolvedPath = `${
|
|
108
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
109
109
|
"/global-networks/{GlobalNetworkId}/transit-gateway-connect-peer-associations";
|
|
110
110
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
111
111
|
let body;
|
|
@@ -128,15 +128,14 @@ const serializeAws_restJson1AssociateTransitGatewayConnectPeerCommand = async (i
|
|
|
128
128
|
};
|
|
129
129
|
exports.serializeAws_restJson1AssociateTransitGatewayConnectPeerCommand = serializeAws_restJson1AssociateTransitGatewayConnectPeerCommand;
|
|
130
130
|
const serializeAws_restJson1CreateConnectAttachmentCommand = async (input, context) => {
|
|
131
|
-
var _a;
|
|
132
131
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
133
132
|
const headers = {
|
|
134
133
|
"content-type": "application/json",
|
|
135
134
|
};
|
|
136
|
-
const resolvedPath = `${
|
|
135
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/connect-attachments";
|
|
137
136
|
let body;
|
|
138
137
|
body = JSON.stringify({
|
|
139
|
-
ClientToken:
|
|
138
|
+
ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
|
|
140
139
|
...(input.CoreNetworkId != null && { CoreNetworkId: input.CoreNetworkId }),
|
|
141
140
|
...(input.EdgeLocation != null && { EdgeLocation: input.EdgeLocation }),
|
|
142
141
|
...(input.Options != null && { Options: serializeAws_restJson1ConnectAttachmentOptions(input.Options, context) }),
|
|
@@ -159,7 +158,7 @@ const serializeAws_restJson1CreateConnectionCommand = async (input, context) =>
|
|
|
159
158
|
const headers = {
|
|
160
159
|
"content-type": "application/json",
|
|
161
160
|
};
|
|
162
|
-
let resolvedPath = `${
|
|
161
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
163
162
|
"/global-networks/{GlobalNetworkId}/connections";
|
|
164
163
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
165
164
|
let body;
|
|
@@ -183,16 +182,15 @@ const serializeAws_restJson1CreateConnectionCommand = async (input, context) =>
|
|
|
183
182
|
};
|
|
184
183
|
exports.serializeAws_restJson1CreateConnectionCommand = serializeAws_restJson1CreateConnectionCommand;
|
|
185
184
|
const serializeAws_restJson1CreateConnectPeerCommand = async (input, context) => {
|
|
186
|
-
var _a;
|
|
187
185
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
188
186
|
const headers = {
|
|
189
187
|
"content-type": "application/json",
|
|
190
188
|
};
|
|
191
|
-
const resolvedPath = `${
|
|
189
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/connect-peers";
|
|
192
190
|
let body;
|
|
193
191
|
body = JSON.stringify({
|
|
194
192
|
...(input.BgpOptions != null && { BgpOptions: serializeAws_restJson1BgpOptions(input.BgpOptions, context) }),
|
|
195
|
-
ClientToken:
|
|
193
|
+
ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
|
|
196
194
|
...(input.ConnectAttachmentId != null && { ConnectAttachmentId: input.ConnectAttachmentId }),
|
|
197
195
|
...(input.CoreNetworkAddress != null && { CoreNetworkAddress: input.CoreNetworkAddress }),
|
|
198
196
|
...(input.InsideCidrBlocks != null && {
|
|
@@ -213,15 +211,14 @@ const serializeAws_restJson1CreateConnectPeerCommand = async (input, context) =>
|
|
|
213
211
|
};
|
|
214
212
|
exports.serializeAws_restJson1CreateConnectPeerCommand = serializeAws_restJson1CreateConnectPeerCommand;
|
|
215
213
|
const serializeAws_restJson1CreateCoreNetworkCommand = async (input, context) => {
|
|
216
|
-
var _a;
|
|
217
214
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
218
215
|
const headers = {
|
|
219
216
|
"content-type": "application/json",
|
|
220
217
|
};
|
|
221
|
-
const resolvedPath = `${
|
|
218
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/core-networks";
|
|
222
219
|
let body;
|
|
223
220
|
body = JSON.stringify({
|
|
224
|
-
ClientToken:
|
|
221
|
+
ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
|
|
225
222
|
...(input.Description != null && { Description: input.Description }),
|
|
226
223
|
...(input.GlobalNetworkId != null && { GlobalNetworkId: input.GlobalNetworkId }),
|
|
227
224
|
...(input.PolicyDocument != null && { PolicyDocument: input.PolicyDocument }),
|
|
@@ -243,7 +240,7 @@ const serializeAws_restJson1CreateDeviceCommand = async (input, context) => {
|
|
|
243
240
|
const headers = {
|
|
244
241
|
"content-type": "application/json",
|
|
245
242
|
};
|
|
246
|
-
let resolvedPath = `${
|
|
243
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
247
244
|
"/global-networks/{GlobalNetworkId}/devices";
|
|
248
245
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
249
246
|
let body;
|
|
@@ -274,7 +271,7 @@ const serializeAws_restJson1CreateGlobalNetworkCommand = async (input, context)
|
|
|
274
271
|
const headers = {
|
|
275
272
|
"content-type": "application/json",
|
|
276
273
|
};
|
|
277
|
-
const resolvedPath = `${
|
|
274
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/global-networks";
|
|
278
275
|
let body;
|
|
279
276
|
body = JSON.stringify({
|
|
280
277
|
...(input.Description != null && { Description: input.Description }),
|
|
@@ -296,7 +293,7 @@ const serializeAws_restJson1CreateLinkCommand = async (input, context) => {
|
|
|
296
293
|
const headers = {
|
|
297
294
|
"content-type": "application/json",
|
|
298
295
|
};
|
|
299
|
-
let resolvedPath = `${
|
|
296
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/global-networks/{GlobalNetworkId}/links";
|
|
300
297
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
301
298
|
let body;
|
|
302
299
|
body = JSON.stringify({
|
|
@@ -323,7 +320,7 @@ const serializeAws_restJson1CreateSiteCommand = async (input, context) => {
|
|
|
323
320
|
const headers = {
|
|
324
321
|
"content-type": "application/json",
|
|
325
322
|
};
|
|
326
|
-
let resolvedPath = `${
|
|
323
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/global-networks/{GlobalNetworkId}/sites";
|
|
327
324
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
328
325
|
let body;
|
|
329
326
|
body = JSON.stringify({
|
|
@@ -343,15 +340,14 @@ const serializeAws_restJson1CreateSiteCommand = async (input, context) => {
|
|
|
343
340
|
};
|
|
344
341
|
exports.serializeAws_restJson1CreateSiteCommand = serializeAws_restJson1CreateSiteCommand;
|
|
345
342
|
const serializeAws_restJson1CreateSiteToSiteVpnAttachmentCommand = async (input, context) => {
|
|
346
|
-
var _a;
|
|
347
343
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
348
344
|
const headers = {
|
|
349
345
|
"content-type": "application/json",
|
|
350
346
|
};
|
|
351
|
-
const resolvedPath = `${
|
|
347
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/site-to-site-vpn-attachments";
|
|
352
348
|
let body;
|
|
353
349
|
body = JSON.stringify({
|
|
354
|
-
ClientToken:
|
|
350
|
+
ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
|
|
355
351
|
...(input.CoreNetworkId != null && { CoreNetworkId: input.CoreNetworkId }),
|
|
356
352
|
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
357
353
|
...(input.VpnConnectionArn != null && { VpnConnectionArn: input.VpnConnectionArn }),
|
|
@@ -368,15 +364,14 @@ const serializeAws_restJson1CreateSiteToSiteVpnAttachmentCommand = async (input,
|
|
|
368
364
|
};
|
|
369
365
|
exports.serializeAws_restJson1CreateSiteToSiteVpnAttachmentCommand = serializeAws_restJson1CreateSiteToSiteVpnAttachmentCommand;
|
|
370
366
|
const serializeAws_restJson1CreateTransitGatewayPeeringCommand = async (input, context) => {
|
|
371
|
-
var _a;
|
|
372
367
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
373
368
|
const headers = {
|
|
374
369
|
"content-type": "application/json",
|
|
375
370
|
};
|
|
376
|
-
const resolvedPath = `${
|
|
371
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/transit-gateway-peerings";
|
|
377
372
|
let body;
|
|
378
373
|
body = JSON.stringify({
|
|
379
|
-
ClientToken:
|
|
374
|
+
ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
|
|
380
375
|
...(input.CoreNetworkId != null && { CoreNetworkId: input.CoreNetworkId }),
|
|
381
376
|
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
382
377
|
...(input.TransitGatewayArn != null && { TransitGatewayArn: input.TransitGatewayArn }),
|
|
@@ -393,15 +388,14 @@ const serializeAws_restJson1CreateTransitGatewayPeeringCommand = async (input, c
|
|
|
393
388
|
};
|
|
394
389
|
exports.serializeAws_restJson1CreateTransitGatewayPeeringCommand = serializeAws_restJson1CreateTransitGatewayPeeringCommand;
|
|
395
390
|
const serializeAws_restJson1CreateTransitGatewayRouteTableAttachmentCommand = async (input, context) => {
|
|
396
|
-
var _a;
|
|
397
391
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
398
392
|
const headers = {
|
|
399
393
|
"content-type": "application/json",
|
|
400
394
|
};
|
|
401
|
-
const resolvedPath = `${
|
|
395
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/transit-gateway-route-table-attachments";
|
|
402
396
|
let body;
|
|
403
397
|
body = JSON.stringify({
|
|
404
|
-
ClientToken:
|
|
398
|
+
ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
|
|
405
399
|
...(input.PeeringId != null && { PeeringId: input.PeeringId }),
|
|
406
400
|
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
407
401
|
...(input.TransitGatewayRouteTableArn != null && {
|
|
@@ -420,15 +414,14 @@ const serializeAws_restJson1CreateTransitGatewayRouteTableAttachmentCommand = as
|
|
|
420
414
|
};
|
|
421
415
|
exports.serializeAws_restJson1CreateTransitGatewayRouteTableAttachmentCommand = serializeAws_restJson1CreateTransitGatewayRouteTableAttachmentCommand;
|
|
422
416
|
const serializeAws_restJson1CreateVpcAttachmentCommand = async (input, context) => {
|
|
423
|
-
var _a;
|
|
424
417
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
425
418
|
const headers = {
|
|
426
419
|
"content-type": "application/json",
|
|
427
420
|
};
|
|
428
|
-
const resolvedPath = `${
|
|
421
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vpc-attachments";
|
|
429
422
|
let body;
|
|
430
423
|
body = JSON.stringify({
|
|
431
|
-
ClientToken:
|
|
424
|
+
ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
|
|
432
425
|
...(input.CoreNetworkId != null && { CoreNetworkId: input.CoreNetworkId }),
|
|
433
426
|
...(input.Options != null && { Options: serializeAws_restJson1VpcOptions(input.Options, context) }),
|
|
434
427
|
...(input.SubnetArns != null && { SubnetArns: serializeAws_restJson1SubnetArnList(input.SubnetArns, context) }),
|
|
@@ -449,7 +442,7 @@ exports.serializeAws_restJson1CreateVpcAttachmentCommand = serializeAws_restJson
|
|
|
449
442
|
const serializeAws_restJson1DeleteAttachmentCommand = async (input, context) => {
|
|
450
443
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
451
444
|
const headers = {};
|
|
452
|
-
let resolvedPath = `${
|
|
445
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/attachments/{AttachmentId}";
|
|
453
446
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
|
|
454
447
|
let body;
|
|
455
448
|
return new protocol_http_1.HttpRequest({
|
|
@@ -466,7 +459,7 @@ exports.serializeAws_restJson1DeleteAttachmentCommand = serializeAws_restJson1De
|
|
|
466
459
|
const serializeAws_restJson1DeleteConnectionCommand = async (input, context) => {
|
|
467
460
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
468
461
|
const headers = {};
|
|
469
|
-
let resolvedPath = `${
|
|
462
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
470
463
|
"/global-networks/{GlobalNetworkId}/connections/{ConnectionId}";
|
|
471
464
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
472
465
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConnectionId", () => input.ConnectionId, "{ConnectionId}", false);
|
|
@@ -485,7 +478,7 @@ exports.serializeAws_restJson1DeleteConnectionCommand = serializeAws_restJson1De
|
|
|
485
478
|
const serializeAws_restJson1DeleteConnectPeerCommand = async (input, context) => {
|
|
486
479
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
487
480
|
const headers = {};
|
|
488
|
-
let resolvedPath = `${
|
|
481
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/connect-peers/{ConnectPeerId}";
|
|
489
482
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConnectPeerId", () => input.ConnectPeerId, "{ConnectPeerId}", false);
|
|
490
483
|
let body;
|
|
491
484
|
return new protocol_http_1.HttpRequest({
|
|
@@ -502,7 +495,7 @@ exports.serializeAws_restJson1DeleteConnectPeerCommand = serializeAws_restJson1D
|
|
|
502
495
|
const serializeAws_restJson1DeleteCoreNetworkCommand = async (input, context) => {
|
|
503
496
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
504
497
|
const headers = {};
|
|
505
|
-
let resolvedPath = `${
|
|
498
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/core-networks/{CoreNetworkId}";
|
|
506
499
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
|
|
507
500
|
let body;
|
|
508
501
|
return new protocol_http_1.HttpRequest({
|
|
@@ -519,7 +512,7 @@ exports.serializeAws_restJson1DeleteCoreNetworkCommand = serializeAws_restJson1D
|
|
|
519
512
|
const serializeAws_restJson1DeleteCoreNetworkPolicyVersionCommand = async (input, context) => {
|
|
520
513
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
521
514
|
const headers = {};
|
|
522
|
-
let resolvedPath = `${
|
|
515
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
523
516
|
"/core-networks/{CoreNetworkId}/core-network-policy-versions/{PolicyVersionId}";
|
|
524
517
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
|
|
525
518
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PolicyVersionId", () => input.PolicyVersionId.toString(), "{PolicyVersionId}", false);
|
|
@@ -538,7 +531,7 @@ exports.serializeAws_restJson1DeleteCoreNetworkPolicyVersionCommand = serializeA
|
|
|
538
531
|
const serializeAws_restJson1DeleteDeviceCommand = async (input, context) => {
|
|
539
532
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
540
533
|
const headers = {};
|
|
541
|
-
let resolvedPath = `${
|
|
534
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
542
535
|
"/global-networks/{GlobalNetworkId}/devices/{DeviceId}";
|
|
543
536
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
544
537
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DeviceId", () => input.DeviceId, "{DeviceId}", false);
|
|
@@ -557,7 +550,7 @@ exports.serializeAws_restJson1DeleteDeviceCommand = serializeAws_restJson1Delete
|
|
|
557
550
|
const serializeAws_restJson1DeleteGlobalNetworkCommand = async (input, context) => {
|
|
558
551
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
559
552
|
const headers = {};
|
|
560
|
-
let resolvedPath = `${
|
|
553
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/global-networks/{GlobalNetworkId}";
|
|
561
554
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
562
555
|
let body;
|
|
563
556
|
return new protocol_http_1.HttpRequest({
|
|
@@ -574,7 +567,7 @@ exports.serializeAws_restJson1DeleteGlobalNetworkCommand = serializeAws_restJson
|
|
|
574
567
|
const serializeAws_restJson1DeleteLinkCommand = async (input, context) => {
|
|
575
568
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
576
569
|
const headers = {};
|
|
577
|
-
let resolvedPath = `${
|
|
570
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
578
571
|
"/global-networks/{GlobalNetworkId}/links/{LinkId}";
|
|
579
572
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
580
573
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LinkId", () => input.LinkId, "{LinkId}", false);
|
|
@@ -593,7 +586,7 @@ exports.serializeAws_restJson1DeleteLinkCommand = serializeAws_restJson1DeleteLi
|
|
|
593
586
|
const serializeAws_restJson1DeletePeeringCommand = async (input, context) => {
|
|
594
587
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
595
588
|
const headers = {};
|
|
596
|
-
let resolvedPath = `${
|
|
589
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/peerings/{PeeringId}";
|
|
597
590
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PeeringId", () => input.PeeringId, "{PeeringId}", false);
|
|
598
591
|
let body;
|
|
599
592
|
return new protocol_http_1.HttpRequest({
|
|
@@ -610,7 +603,7 @@ exports.serializeAws_restJson1DeletePeeringCommand = serializeAws_restJson1Delet
|
|
|
610
603
|
const serializeAws_restJson1DeleteResourcePolicyCommand = async (input, context) => {
|
|
611
604
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
612
605
|
const headers = {};
|
|
613
|
-
let resolvedPath = `${
|
|
606
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-policy/{ResourceArn}";
|
|
614
607
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
615
608
|
let body;
|
|
616
609
|
return new protocol_http_1.HttpRequest({
|
|
@@ -627,7 +620,7 @@ exports.serializeAws_restJson1DeleteResourcePolicyCommand = serializeAws_restJso
|
|
|
627
620
|
const serializeAws_restJson1DeleteSiteCommand = async (input, context) => {
|
|
628
621
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
629
622
|
const headers = {};
|
|
630
|
-
let resolvedPath = `${
|
|
623
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
631
624
|
"/global-networks/{GlobalNetworkId}/sites/{SiteId}";
|
|
632
625
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
633
626
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SiteId", () => input.SiteId, "{SiteId}", false);
|
|
@@ -646,7 +639,7 @@ exports.serializeAws_restJson1DeleteSiteCommand = serializeAws_restJson1DeleteSi
|
|
|
646
639
|
const serializeAws_restJson1DeregisterTransitGatewayCommand = async (input, context) => {
|
|
647
640
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
648
641
|
const headers = {};
|
|
649
|
-
let resolvedPath = `${
|
|
642
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
650
643
|
"/global-networks/{GlobalNetworkId}/transit-gateway-registrations/{TransitGatewayArn}";
|
|
651
644
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
652
645
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TransitGatewayArn", () => input.TransitGatewayArn, "{TransitGatewayArn}", false);
|
|
@@ -665,7 +658,7 @@ exports.serializeAws_restJson1DeregisterTransitGatewayCommand = serializeAws_res
|
|
|
665
658
|
const serializeAws_restJson1DescribeGlobalNetworksCommand = async (input, context) => {
|
|
666
659
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
667
660
|
const headers = {};
|
|
668
|
-
const resolvedPath = `${
|
|
661
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/global-networks";
|
|
669
662
|
const query = map({
|
|
670
663
|
globalNetworkIds: [
|
|
671
664
|
() => input.GlobalNetworkIds !== void 0,
|
|
@@ -690,7 +683,7 @@ exports.serializeAws_restJson1DescribeGlobalNetworksCommand = serializeAws_restJ
|
|
|
690
683
|
const serializeAws_restJson1DisassociateConnectPeerCommand = async (input, context) => {
|
|
691
684
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
692
685
|
const headers = {};
|
|
693
|
-
let resolvedPath = `${
|
|
686
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
694
687
|
"/global-networks/{GlobalNetworkId}/connect-peer-associations/{ConnectPeerId}";
|
|
695
688
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
696
689
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConnectPeerId", () => input.ConnectPeerId, "{ConnectPeerId}", false);
|
|
@@ -709,7 +702,7 @@ exports.serializeAws_restJson1DisassociateConnectPeerCommand = serializeAws_rest
|
|
|
709
702
|
const serializeAws_restJson1DisassociateCustomerGatewayCommand = async (input, context) => {
|
|
710
703
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
711
704
|
const headers = {};
|
|
712
|
-
let resolvedPath = `${
|
|
705
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
713
706
|
"/global-networks/{GlobalNetworkId}/customer-gateway-associations/{CustomerGatewayArn}";
|
|
714
707
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
715
708
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CustomerGatewayArn", () => input.CustomerGatewayArn, "{CustomerGatewayArn}", false);
|
|
@@ -728,7 +721,7 @@ exports.serializeAws_restJson1DisassociateCustomerGatewayCommand = serializeAws_
|
|
|
728
721
|
const serializeAws_restJson1DisassociateLinkCommand = async (input, context) => {
|
|
729
722
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
730
723
|
const headers = {};
|
|
731
|
-
let resolvedPath = `${
|
|
724
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
732
725
|
"/global-networks/{GlobalNetworkId}/link-associations";
|
|
733
726
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
734
727
|
const query = map({
|
|
@@ -751,7 +744,7 @@ exports.serializeAws_restJson1DisassociateLinkCommand = serializeAws_restJson1Di
|
|
|
751
744
|
const serializeAws_restJson1DisassociateTransitGatewayConnectPeerCommand = async (input, context) => {
|
|
752
745
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
753
746
|
const headers = {};
|
|
754
|
-
let resolvedPath = `${
|
|
747
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
755
748
|
"/global-networks/{GlobalNetworkId}/transit-gateway-connect-peer-associations/{TransitGatewayConnectPeerArn}";
|
|
756
749
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
757
750
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TransitGatewayConnectPeerArn", () => input.TransitGatewayConnectPeerArn, "{TransitGatewayConnectPeerArn}", false);
|
|
@@ -770,7 +763,7 @@ exports.serializeAws_restJson1DisassociateTransitGatewayConnectPeerCommand = ser
|
|
|
770
763
|
const serializeAws_restJson1ExecuteCoreNetworkChangeSetCommand = async (input, context) => {
|
|
771
764
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
772
765
|
const headers = {};
|
|
773
|
-
let resolvedPath = `${
|
|
766
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
774
767
|
"/core-networks/{CoreNetworkId}/core-network-change-sets/{PolicyVersionId}/execute";
|
|
775
768
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
|
|
776
769
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PolicyVersionId", () => input.PolicyVersionId.toString(), "{PolicyVersionId}", false);
|
|
@@ -789,7 +782,7 @@ exports.serializeAws_restJson1ExecuteCoreNetworkChangeSetCommand = serializeAws_
|
|
|
789
782
|
const serializeAws_restJson1GetConnectAttachmentCommand = async (input, context) => {
|
|
790
783
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
791
784
|
const headers = {};
|
|
792
|
-
let resolvedPath = `${
|
|
785
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/connect-attachments/{AttachmentId}";
|
|
793
786
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
|
|
794
787
|
let body;
|
|
795
788
|
return new protocol_http_1.HttpRequest({
|
|
@@ -806,7 +799,7 @@ exports.serializeAws_restJson1GetConnectAttachmentCommand = serializeAws_restJso
|
|
|
806
799
|
const serializeAws_restJson1GetConnectionsCommand = async (input, context) => {
|
|
807
800
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
808
801
|
const headers = {};
|
|
809
|
-
let resolvedPath = `${
|
|
802
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
810
803
|
"/global-networks/{GlobalNetworkId}/connections";
|
|
811
804
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
812
805
|
const query = map({
|
|
@@ -834,7 +827,7 @@ exports.serializeAws_restJson1GetConnectionsCommand = serializeAws_restJson1GetC
|
|
|
834
827
|
const serializeAws_restJson1GetConnectPeerCommand = async (input, context) => {
|
|
835
828
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
836
829
|
const headers = {};
|
|
837
|
-
let resolvedPath = `${
|
|
830
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/connect-peers/{ConnectPeerId}";
|
|
838
831
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConnectPeerId", () => input.ConnectPeerId, "{ConnectPeerId}", false);
|
|
839
832
|
let body;
|
|
840
833
|
return new protocol_http_1.HttpRequest({
|
|
@@ -851,7 +844,7 @@ exports.serializeAws_restJson1GetConnectPeerCommand = serializeAws_restJson1GetC
|
|
|
851
844
|
const serializeAws_restJson1GetConnectPeerAssociationsCommand = async (input, context) => {
|
|
852
845
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
853
846
|
const headers = {};
|
|
854
|
-
let resolvedPath = `${
|
|
847
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
855
848
|
"/global-networks/{GlobalNetworkId}/connect-peer-associations";
|
|
856
849
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
857
850
|
const query = map({
|
|
@@ -878,7 +871,7 @@ exports.serializeAws_restJson1GetConnectPeerAssociationsCommand = serializeAws_r
|
|
|
878
871
|
const serializeAws_restJson1GetCoreNetworkCommand = async (input, context) => {
|
|
879
872
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
880
873
|
const headers = {};
|
|
881
|
-
let resolvedPath = `${
|
|
874
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/core-networks/{CoreNetworkId}";
|
|
882
875
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
|
|
883
876
|
let body;
|
|
884
877
|
return new protocol_http_1.HttpRequest({
|
|
@@ -895,7 +888,7 @@ exports.serializeAws_restJson1GetCoreNetworkCommand = serializeAws_restJson1GetC
|
|
|
895
888
|
const serializeAws_restJson1GetCoreNetworkChangeEventsCommand = async (input, context) => {
|
|
896
889
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
897
890
|
const headers = {};
|
|
898
|
-
let resolvedPath = `${
|
|
891
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
899
892
|
"/core-networks/{CoreNetworkId}/core-network-change-events/{PolicyVersionId}";
|
|
900
893
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
|
|
901
894
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PolicyVersionId", () => input.PolicyVersionId.toString(), "{PolicyVersionId}", false);
|
|
@@ -919,7 +912,7 @@ exports.serializeAws_restJson1GetCoreNetworkChangeEventsCommand = serializeAws_r
|
|
|
919
912
|
const serializeAws_restJson1GetCoreNetworkChangeSetCommand = async (input, context) => {
|
|
920
913
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
921
914
|
const headers = {};
|
|
922
|
-
let resolvedPath = `${
|
|
915
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
923
916
|
"/core-networks/{CoreNetworkId}/core-network-change-sets/{PolicyVersionId}";
|
|
924
917
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
|
|
925
918
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PolicyVersionId", () => input.PolicyVersionId.toString(), "{PolicyVersionId}", false);
|
|
@@ -943,7 +936,7 @@ exports.serializeAws_restJson1GetCoreNetworkChangeSetCommand = serializeAws_rest
|
|
|
943
936
|
const serializeAws_restJson1GetCoreNetworkPolicyCommand = async (input, context) => {
|
|
944
937
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
945
938
|
const headers = {};
|
|
946
|
-
let resolvedPath = `${
|
|
939
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
947
940
|
"/core-networks/{CoreNetworkId}/core-network-policy";
|
|
948
941
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
|
|
949
942
|
const query = map({
|
|
@@ -966,7 +959,7 @@ exports.serializeAws_restJson1GetCoreNetworkPolicyCommand = serializeAws_restJso
|
|
|
966
959
|
const serializeAws_restJson1GetCustomerGatewayAssociationsCommand = async (input, context) => {
|
|
967
960
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
968
961
|
const headers = {};
|
|
969
|
-
let resolvedPath = `${
|
|
962
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
970
963
|
"/global-networks/{GlobalNetworkId}/customer-gateway-associations";
|
|
971
964
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
972
965
|
const query = map({
|
|
@@ -993,7 +986,7 @@ exports.serializeAws_restJson1GetCustomerGatewayAssociationsCommand = serializeA
|
|
|
993
986
|
const serializeAws_restJson1GetDevicesCommand = async (input, context) => {
|
|
994
987
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
995
988
|
const headers = {};
|
|
996
|
-
let resolvedPath = `${
|
|
989
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
997
990
|
"/global-networks/{GlobalNetworkId}/devices";
|
|
998
991
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
999
992
|
const query = map({
|
|
@@ -1018,7 +1011,7 @@ exports.serializeAws_restJson1GetDevicesCommand = serializeAws_restJson1GetDevic
|
|
|
1018
1011
|
const serializeAws_restJson1GetLinkAssociationsCommand = async (input, context) => {
|
|
1019
1012
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1020
1013
|
const headers = {};
|
|
1021
|
-
let resolvedPath = `${
|
|
1014
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1022
1015
|
"/global-networks/{GlobalNetworkId}/link-associations";
|
|
1023
1016
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1024
1017
|
const query = map({
|
|
@@ -1043,7 +1036,7 @@ exports.serializeAws_restJson1GetLinkAssociationsCommand = serializeAws_restJson
|
|
|
1043
1036
|
const serializeAws_restJson1GetLinksCommand = async (input, context) => {
|
|
1044
1037
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1045
1038
|
const headers = {};
|
|
1046
|
-
let resolvedPath = `${
|
|
1039
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/global-networks/{GlobalNetworkId}/links";
|
|
1047
1040
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1048
1041
|
const query = map({
|
|
1049
1042
|
linkIds: [() => input.LinkIds !== void 0, () => (input.LinkIds || []).map((_entry) => _entry)],
|
|
@@ -1069,7 +1062,7 @@ exports.serializeAws_restJson1GetLinksCommand = serializeAws_restJson1GetLinksCo
|
|
|
1069
1062
|
const serializeAws_restJson1GetNetworkResourceCountsCommand = async (input, context) => {
|
|
1070
1063
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1071
1064
|
const headers = {};
|
|
1072
|
-
let resolvedPath = `${
|
|
1065
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1073
1066
|
"/global-networks/{GlobalNetworkId}/network-resource-count";
|
|
1074
1067
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1075
1068
|
const query = map({
|
|
@@ -1093,7 +1086,7 @@ exports.serializeAws_restJson1GetNetworkResourceCountsCommand = serializeAws_res
|
|
|
1093
1086
|
const serializeAws_restJson1GetNetworkResourceRelationshipsCommand = async (input, context) => {
|
|
1094
1087
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1095
1088
|
const headers = {};
|
|
1096
|
-
let resolvedPath = `${
|
|
1089
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1097
1090
|
"/global-networks/{GlobalNetworkId}/network-resource-relationships";
|
|
1098
1091
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1099
1092
|
const query = map({
|
|
@@ -1122,7 +1115,7 @@ exports.serializeAws_restJson1GetNetworkResourceRelationshipsCommand = serialize
|
|
|
1122
1115
|
const serializeAws_restJson1GetNetworkResourcesCommand = async (input, context) => {
|
|
1123
1116
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1124
1117
|
const headers = {};
|
|
1125
|
-
let resolvedPath = `${
|
|
1118
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1126
1119
|
"/global-networks/{GlobalNetworkId}/network-resources";
|
|
1127
1120
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1128
1121
|
const query = map({
|
|
@@ -1153,7 +1146,7 @@ const serializeAws_restJson1GetNetworkRoutesCommand = async (input, context) =>
|
|
|
1153
1146
|
const headers = {
|
|
1154
1147
|
"content-type": "application/json",
|
|
1155
1148
|
};
|
|
1156
|
-
let resolvedPath = `${
|
|
1149
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1157
1150
|
"/global-networks/{GlobalNetworkId}/network-routes";
|
|
1158
1151
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1159
1152
|
let body;
|
|
@@ -1196,7 +1189,7 @@ exports.serializeAws_restJson1GetNetworkRoutesCommand = serializeAws_restJson1Ge
|
|
|
1196
1189
|
const serializeAws_restJson1GetNetworkTelemetryCommand = async (input, context) => {
|
|
1197
1190
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1198
1191
|
const headers = {};
|
|
1199
|
-
let resolvedPath = `${
|
|
1192
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1200
1193
|
"/global-networks/{GlobalNetworkId}/network-telemetry";
|
|
1201
1194
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1202
1195
|
const query = map({
|
|
@@ -1225,7 +1218,7 @@ exports.serializeAws_restJson1GetNetworkTelemetryCommand = serializeAws_restJson
|
|
|
1225
1218
|
const serializeAws_restJson1GetResourcePolicyCommand = async (input, context) => {
|
|
1226
1219
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1227
1220
|
const headers = {};
|
|
1228
|
-
let resolvedPath = `${
|
|
1221
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-policy/{ResourceArn}";
|
|
1229
1222
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1230
1223
|
let body;
|
|
1231
1224
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1242,7 +1235,7 @@ exports.serializeAws_restJson1GetResourcePolicyCommand = serializeAws_restJson1G
|
|
|
1242
1235
|
const serializeAws_restJson1GetRouteAnalysisCommand = async (input, context) => {
|
|
1243
1236
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1244
1237
|
const headers = {};
|
|
1245
|
-
let resolvedPath = `${
|
|
1238
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1246
1239
|
"/global-networks/{GlobalNetworkId}/route-analyses/{RouteAnalysisId}";
|
|
1247
1240
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1248
1241
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RouteAnalysisId", () => input.RouteAnalysisId, "{RouteAnalysisId}", false);
|
|
@@ -1261,7 +1254,7 @@ exports.serializeAws_restJson1GetRouteAnalysisCommand = serializeAws_restJson1Ge
|
|
|
1261
1254
|
const serializeAws_restJson1GetSitesCommand = async (input, context) => {
|
|
1262
1255
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1263
1256
|
const headers = {};
|
|
1264
|
-
let resolvedPath = `${
|
|
1257
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/global-networks/{GlobalNetworkId}/sites";
|
|
1265
1258
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1266
1259
|
const query = map({
|
|
1267
1260
|
siteIds: [() => input.SiteIds !== void 0, () => (input.SiteIds || []).map((_entry) => _entry)],
|
|
@@ -1284,7 +1277,7 @@ exports.serializeAws_restJson1GetSitesCommand = serializeAws_restJson1GetSitesCo
|
|
|
1284
1277
|
const serializeAws_restJson1GetSiteToSiteVpnAttachmentCommand = async (input, context) => {
|
|
1285
1278
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1286
1279
|
const headers = {};
|
|
1287
|
-
let resolvedPath = `${
|
|
1280
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1288
1281
|
"/site-to-site-vpn-attachments/{AttachmentId}";
|
|
1289
1282
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
|
|
1290
1283
|
let body;
|
|
@@ -1302,7 +1295,7 @@ exports.serializeAws_restJson1GetSiteToSiteVpnAttachmentCommand = serializeAws_r
|
|
|
1302
1295
|
const serializeAws_restJson1GetTransitGatewayConnectPeerAssociationsCommand = async (input, context) => {
|
|
1303
1296
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1304
1297
|
const headers = {};
|
|
1305
|
-
let resolvedPath = `${
|
|
1298
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1306
1299
|
"/global-networks/{GlobalNetworkId}/transit-gateway-connect-peer-associations";
|
|
1307
1300
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1308
1301
|
const query = map({
|
|
@@ -1329,7 +1322,7 @@ exports.serializeAws_restJson1GetTransitGatewayConnectPeerAssociationsCommand =
|
|
|
1329
1322
|
const serializeAws_restJson1GetTransitGatewayPeeringCommand = async (input, context) => {
|
|
1330
1323
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1331
1324
|
const headers = {};
|
|
1332
|
-
let resolvedPath = `${
|
|
1325
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/transit-gateway-peerings/{PeeringId}";
|
|
1333
1326
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PeeringId", () => input.PeeringId, "{PeeringId}", false);
|
|
1334
1327
|
let body;
|
|
1335
1328
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1346,7 +1339,7 @@ exports.serializeAws_restJson1GetTransitGatewayPeeringCommand = serializeAws_res
|
|
|
1346
1339
|
const serializeAws_restJson1GetTransitGatewayRegistrationsCommand = async (input, context) => {
|
|
1347
1340
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1348
1341
|
const headers = {};
|
|
1349
|
-
let resolvedPath = `${
|
|
1342
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1350
1343
|
"/global-networks/{GlobalNetworkId}/transit-gateway-registrations";
|
|
1351
1344
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1352
1345
|
const query = map({
|
|
@@ -1373,7 +1366,7 @@ exports.serializeAws_restJson1GetTransitGatewayRegistrationsCommand = serializeA
|
|
|
1373
1366
|
const serializeAws_restJson1GetTransitGatewayRouteTableAttachmentCommand = async (input, context) => {
|
|
1374
1367
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1375
1368
|
const headers = {};
|
|
1376
|
-
let resolvedPath = `${
|
|
1369
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1377
1370
|
"/transit-gateway-route-table-attachments/{AttachmentId}";
|
|
1378
1371
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
|
|
1379
1372
|
let body;
|
|
@@ -1391,7 +1384,7 @@ exports.serializeAws_restJson1GetTransitGatewayRouteTableAttachmentCommand = ser
|
|
|
1391
1384
|
const serializeAws_restJson1GetVpcAttachmentCommand = async (input, context) => {
|
|
1392
1385
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1393
1386
|
const headers = {};
|
|
1394
|
-
let resolvedPath = `${
|
|
1387
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vpc-attachments/{AttachmentId}";
|
|
1395
1388
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
|
|
1396
1389
|
let body;
|
|
1397
1390
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1408,7 +1401,7 @@ exports.serializeAws_restJson1GetVpcAttachmentCommand = serializeAws_restJson1Ge
|
|
|
1408
1401
|
const serializeAws_restJson1ListAttachmentsCommand = async (input, context) => {
|
|
1409
1402
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1410
1403
|
const headers = {};
|
|
1411
|
-
const resolvedPath = `${
|
|
1404
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/attachments";
|
|
1412
1405
|
const query = map({
|
|
1413
1406
|
coreNetworkId: [, input.CoreNetworkId],
|
|
1414
1407
|
attachmentType: [, input.AttachmentType],
|
|
@@ -1433,7 +1426,7 @@ exports.serializeAws_restJson1ListAttachmentsCommand = serializeAws_restJson1Lis
|
|
|
1433
1426
|
const serializeAws_restJson1ListConnectPeersCommand = async (input, context) => {
|
|
1434
1427
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1435
1428
|
const headers = {};
|
|
1436
|
-
const resolvedPath = `${
|
|
1429
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/connect-peers";
|
|
1437
1430
|
const query = map({
|
|
1438
1431
|
coreNetworkId: [, input.CoreNetworkId],
|
|
1439
1432
|
connectAttachmentId: [, input.ConnectAttachmentId],
|
|
@@ -1456,7 +1449,7 @@ exports.serializeAws_restJson1ListConnectPeersCommand = serializeAws_restJson1Li
|
|
|
1456
1449
|
const serializeAws_restJson1ListCoreNetworkPolicyVersionsCommand = async (input, context) => {
|
|
1457
1450
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1458
1451
|
const headers = {};
|
|
1459
|
-
let resolvedPath = `${
|
|
1452
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1460
1453
|
"/core-networks/{CoreNetworkId}/core-network-policy-versions";
|
|
1461
1454
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
|
|
1462
1455
|
const query = map({
|
|
@@ -1479,7 +1472,7 @@ exports.serializeAws_restJson1ListCoreNetworkPolicyVersionsCommand = serializeAw
|
|
|
1479
1472
|
const serializeAws_restJson1ListCoreNetworksCommand = async (input, context) => {
|
|
1480
1473
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1481
1474
|
const headers = {};
|
|
1482
|
-
const resolvedPath = `${
|
|
1475
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/core-networks";
|
|
1483
1476
|
const query = map({
|
|
1484
1477
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
1485
1478
|
nextToken: [, input.NextToken],
|
|
@@ -1500,7 +1493,7 @@ exports.serializeAws_restJson1ListCoreNetworksCommand = serializeAws_restJson1Li
|
|
|
1500
1493
|
const serializeAws_restJson1ListOrganizationServiceAccessStatusCommand = async (input, context) => {
|
|
1501
1494
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1502
1495
|
const headers = {};
|
|
1503
|
-
const resolvedPath = `${
|
|
1496
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/organizations/service-access";
|
|
1504
1497
|
const query = map({
|
|
1505
1498
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
1506
1499
|
nextToken: [, input.NextToken],
|
|
@@ -1521,7 +1514,7 @@ exports.serializeAws_restJson1ListOrganizationServiceAccessStatusCommand = seria
|
|
|
1521
1514
|
const serializeAws_restJson1ListPeeringsCommand = async (input, context) => {
|
|
1522
1515
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1523
1516
|
const headers = {};
|
|
1524
|
-
const resolvedPath = `${
|
|
1517
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/peerings";
|
|
1525
1518
|
const query = map({
|
|
1526
1519
|
coreNetworkId: [, input.CoreNetworkId],
|
|
1527
1520
|
peeringType: [, input.PeeringType],
|
|
@@ -1546,7 +1539,7 @@ exports.serializeAws_restJson1ListPeeringsCommand = serializeAws_restJson1ListPe
|
|
|
1546
1539
|
const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
|
|
1547
1540
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1548
1541
|
const headers = {};
|
|
1549
|
-
let resolvedPath = `${
|
|
1542
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
1550
1543
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1551
1544
|
let body;
|
|
1552
1545
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1561,17 +1554,16 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
1561
1554
|
};
|
|
1562
1555
|
exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson1ListTagsForResourceCommand;
|
|
1563
1556
|
const serializeAws_restJson1PutCoreNetworkPolicyCommand = async (input, context) => {
|
|
1564
|
-
var _a;
|
|
1565
1557
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1566
1558
|
const headers = {
|
|
1567
1559
|
"content-type": "application/json",
|
|
1568
1560
|
};
|
|
1569
|
-
let resolvedPath = `${
|
|
1561
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1570
1562
|
"/core-networks/{CoreNetworkId}/core-network-policy";
|
|
1571
1563
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
|
|
1572
1564
|
let body;
|
|
1573
1565
|
body = JSON.stringify({
|
|
1574
|
-
ClientToken:
|
|
1566
|
+
ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
|
|
1575
1567
|
...(input.Description != null && { Description: input.Description }),
|
|
1576
1568
|
...(input.LatestVersionId != null && { LatestVersionId: input.LatestVersionId }),
|
|
1577
1569
|
...(input.PolicyDocument != null && { PolicyDocument: smithy_client_1.LazyJsonString.fromObject(input.PolicyDocument) }),
|
|
@@ -1592,7 +1584,7 @@ const serializeAws_restJson1PutResourcePolicyCommand = async (input, context) =>
|
|
|
1592
1584
|
const headers = {
|
|
1593
1585
|
"content-type": "application/json",
|
|
1594
1586
|
};
|
|
1595
|
-
let resolvedPath = `${
|
|
1587
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-policy/{ResourceArn}";
|
|
1596
1588
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1597
1589
|
let body;
|
|
1598
1590
|
body = JSON.stringify({
|
|
@@ -1614,7 +1606,7 @@ const serializeAws_restJson1RegisterTransitGatewayCommand = async (input, contex
|
|
|
1614
1606
|
const headers = {
|
|
1615
1607
|
"content-type": "application/json",
|
|
1616
1608
|
};
|
|
1617
|
-
let resolvedPath = `${
|
|
1609
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1618
1610
|
"/global-networks/{GlobalNetworkId}/transit-gateway-registrations";
|
|
1619
1611
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1620
1612
|
let body;
|
|
@@ -1635,7 +1627,7 @@ exports.serializeAws_restJson1RegisterTransitGatewayCommand = serializeAws_restJ
|
|
|
1635
1627
|
const serializeAws_restJson1RejectAttachmentCommand = async (input, context) => {
|
|
1636
1628
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1637
1629
|
const headers = {};
|
|
1638
|
-
let resolvedPath = `${
|
|
1630
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/attachments/{AttachmentId}/reject";
|
|
1639
1631
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
|
|
1640
1632
|
let body;
|
|
1641
1633
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1652,7 +1644,7 @@ exports.serializeAws_restJson1RejectAttachmentCommand = serializeAws_restJson1Re
|
|
|
1652
1644
|
const serializeAws_restJson1RestoreCoreNetworkPolicyVersionCommand = async (input, context) => {
|
|
1653
1645
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1654
1646
|
const headers = {};
|
|
1655
|
-
let resolvedPath = `${
|
|
1647
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1656
1648
|
"/core-networks/{CoreNetworkId}/core-network-policy-versions/{PolicyVersionId}/restore";
|
|
1657
1649
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
|
|
1658
1650
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PolicyVersionId", () => input.PolicyVersionId.toString(), "{PolicyVersionId}", false);
|
|
@@ -1673,7 +1665,7 @@ const serializeAws_restJson1StartOrganizationServiceAccessUpdateCommand = async
|
|
|
1673
1665
|
const headers = {
|
|
1674
1666
|
"content-type": "application/json",
|
|
1675
1667
|
};
|
|
1676
|
-
const resolvedPath = `${
|
|
1668
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/organizations/service-access";
|
|
1677
1669
|
let body;
|
|
1678
1670
|
body = JSON.stringify({
|
|
1679
1671
|
...(input.Action != null && { Action: input.Action }),
|
|
@@ -1694,7 +1686,7 @@ const serializeAws_restJson1StartRouteAnalysisCommand = async (input, context) =
|
|
|
1694
1686
|
const headers = {
|
|
1695
1687
|
"content-type": "application/json",
|
|
1696
1688
|
};
|
|
1697
|
-
let resolvedPath = `${
|
|
1689
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1698
1690
|
"/global-networks/{GlobalNetworkId}/route-analyses";
|
|
1699
1691
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1700
1692
|
let body;
|
|
@@ -1724,7 +1716,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1724
1716
|
const headers = {
|
|
1725
1717
|
"content-type": "application/json",
|
|
1726
1718
|
};
|
|
1727
|
-
let resolvedPath = `${
|
|
1719
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
1728
1720
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1729
1721
|
let body;
|
|
1730
1722
|
body = JSON.stringify({
|
|
@@ -1744,7 +1736,7 @@ exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagReso
|
|
|
1744
1736
|
const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
1745
1737
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1746
1738
|
const headers = {};
|
|
1747
|
-
let resolvedPath = `${
|
|
1739
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
1748
1740
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1749
1741
|
const query = map({
|
|
1750
1742
|
tagKeys: [() => input.TagKeys !== void 0, () => (input.TagKeys || []).map((_entry) => _entry)],
|
|
@@ -1767,7 +1759,7 @@ const serializeAws_restJson1UpdateConnectionCommand = async (input, context) =>
|
|
|
1767
1759
|
const headers = {
|
|
1768
1760
|
"content-type": "application/json",
|
|
1769
1761
|
};
|
|
1770
|
-
let resolvedPath = `${
|
|
1762
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1771
1763
|
"/global-networks/{GlobalNetworkId}/connections/{ConnectionId}";
|
|
1772
1764
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1773
1765
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConnectionId", () => input.ConnectionId, "{ConnectionId}", false);
|
|
@@ -1793,7 +1785,7 @@ const serializeAws_restJson1UpdateCoreNetworkCommand = async (input, context) =>
|
|
|
1793
1785
|
const headers = {
|
|
1794
1786
|
"content-type": "application/json",
|
|
1795
1787
|
};
|
|
1796
|
-
let resolvedPath = `${
|
|
1788
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/core-networks/{CoreNetworkId}";
|
|
1797
1789
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
|
|
1798
1790
|
let body;
|
|
1799
1791
|
body = JSON.stringify({
|
|
@@ -1815,7 +1807,7 @@ const serializeAws_restJson1UpdateDeviceCommand = async (input, context) => {
|
|
|
1815
1807
|
const headers = {
|
|
1816
1808
|
"content-type": "application/json",
|
|
1817
1809
|
};
|
|
1818
|
-
let resolvedPath = `${
|
|
1810
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1819
1811
|
"/global-networks/{GlobalNetworkId}/devices/{DeviceId}";
|
|
1820
1812
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1821
1813
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DeviceId", () => input.DeviceId, "{DeviceId}", false);
|
|
@@ -1846,7 +1838,7 @@ const serializeAws_restJson1UpdateGlobalNetworkCommand = async (input, context)
|
|
|
1846
1838
|
const headers = {
|
|
1847
1839
|
"content-type": "application/json",
|
|
1848
1840
|
};
|
|
1849
|
-
let resolvedPath = `${
|
|
1841
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/global-networks/{GlobalNetworkId}";
|
|
1850
1842
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1851
1843
|
let body;
|
|
1852
1844
|
body = JSON.stringify({
|
|
@@ -1868,7 +1860,7 @@ const serializeAws_restJson1UpdateLinkCommand = async (input, context) => {
|
|
|
1868
1860
|
const headers = {
|
|
1869
1861
|
"content-type": "application/json",
|
|
1870
1862
|
};
|
|
1871
|
-
let resolvedPath = `${
|
|
1863
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1872
1864
|
"/global-networks/{GlobalNetworkId}/links/{LinkId}";
|
|
1873
1865
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1874
1866
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LinkId", () => input.LinkId, "{LinkId}", false);
|
|
@@ -1895,7 +1887,7 @@ const serializeAws_restJson1UpdateNetworkResourceMetadataCommand = async (input,
|
|
|
1895
1887
|
const headers = {
|
|
1896
1888
|
"content-type": "application/json",
|
|
1897
1889
|
};
|
|
1898
|
-
let resolvedPath = `${
|
|
1890
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1899
1891
|
"/global-networks/{GlobalNetworkId}/network-resources/{ResourceArn}/metadata";
|
|
1900
1892
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1901
1893
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
@@ -1921,7 +1913,7 @@ const serializeAws_restJson1UpdateSiteCommand = async (input, context) => {
|
|
|
1921
1913
|
const headers = {
|
|
1922
1914
|
"content-type": "application/json",
|
|
1923
1915
|
};
|
|
1924
|
-
let resolvedPath = `${
|
|
1916
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1925
1917
|
"/global-networks/{GlobalNetworkId}/sites/{SiteId}";
|
|
1926
1918
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1927
1919
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SiteId", () => input.SiteId, "{SiteId}", false);
|
|
@@ -1946,7 +1938,7 @@ const serializeAws_restJson1UpdateVpcAttachmentCommand = async (input, context)
|
|
|
1946
1938
|
const headers = {
|
|
1947
1939
|
"content-type": "application/json",
|
|
1948
1940
|
};
|
|
1949
|
-
let resolvedPath = `${
|
|
1941
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vpc-attachments/{AttachmentId}";
|
|
1950
1942
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
|
|
1951
1943
|
let body;
|
|
1952
1944
|
body = JSON.stringify({
|
|
@@ -7339,15 +7331,12 @@ const deserializeAws_restJson1VpcOptions = (output, context) => {
|
|
|
7339
7331
|
Ipv6Support: (0, smithy_client_1.expectBoolean)(output.Ipv6Support),
|
|
7340
7332
|
};
|
|
7341
7333
|
};
|
|
7342
|
-
const deserializeMetadata = (output) => {
|
|
7343
|
-
|
|
7344
|
-
|
|
7345
|
-
|
|
7346
|
-
|
|
7347
|
-
|
|
7348
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
7349
|
-
});
|
|
7350
|
-
};
|
|
7334
|
+
const deserializeMetadata = (output) => ({
|
|
7335
|
+
httpStatusCode: output.statusCode,
|
|
7336
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
7337
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
7338
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
7339
|
+
});
|
|
7351
7340
|
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
7352
7341
|
if (streamBody instanceof Uint8Array) {
|
|
7353
7342
|
return Promise.resolve(streamBody);
|
|
@@ -7367,9 +7356,8 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
7367
7356
|
return {};
|
|
7368
7357
|
});
|
|
7369
7358
|
const parseErrorBody = async (errorBody, context) => {
|
|
7370
|
-
var _a;
|
|
7371
7359
|
const value = await parseBody(errorBody, context);
|
|
7372
|
-
value.message =
|
|
7360
|
+
value.message = value.message ?? value.Message;
|
|
7373
7361
|
return value;
|
|
7374
7362
|
};
|
|
7375
7363
|
const loadRestJsonErrorCode = (output, data) => {
|
|
@@ -16,7 +16,6 @@ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
|
16
16
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
17
|
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
18
|
const getRuntimeConfig = (config) => {
|
|
19
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
19
|
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
20
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
21
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
@@ -25,21 +24,22 @@ const getRuntimeConfig = (config) => {
|
|
|
25
24
|
...config,
|
|
26
25
|
runtime: "browser",
|
|
27
26
|
defaultsMode,
|
|
28
|
-
base64Decoder:
|
|
29
|
-
base64Encoder:
|
|
30
|
-
bodyLengthChecker:
|
|
31
|
-
credentialDefaultProvider:
|
|
32
|
-
defaultUserAgentProvider:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
27
|
+
base64Decoder: config?.base64Decoder ?? util_base64_browser_1.fromBase64,
|
|
28
|
+
base64Encoder: config?.base64Encoder ?? util_base64_browser_1.toBase64,
|
|
29
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
30
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
31
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
32
|
+
(0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
|
+
maxAttempts: config?.maxAttempts ?? middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
|
+
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
|
+
requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
37
|
+
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
38
|
+
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
39
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
40
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
41
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_browser_1.fromUtf8,
|
|
42
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_browser_1.toUtf8,
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -19,7 +19,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
19
19
|
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
20
|
const smithy_client_2 = require("@aws-sdk/smithy-client");
|
|
21
21
|
const getRuntimeConfig = (config) => {
|
|
22
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
23
22
|
(0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
|
|
24
23
|
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
25
24
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
@@ -29,24 +28,26 @@ const getRuntimeConfig = (config) => {
|
|
|
29
28
|
...config,
|
|
30
29
|
runtime: "node",
|
|
31
30
|
defaultsMode,
|
|
32
|
-
base64Decoder:
|
|
33
|
-
base64Encoder:
|
|
34
|
-
bodyLengthChecker:
|
|
35
|
-
credentialDefaultProvider:
|
|
36
|
-
defaultUserAgentProvider:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
31
|
+
base64Decoder: config?.base64Decoder ?? util_base64_node_1.fromBase64,
|
|
32
|
+
base64Encoder: config?.base64Encoder ?? util_base64_node_1.toBase64,
|
|
33
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
34
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
35
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
36
|
+
(0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
37
|
+
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
38
|
+
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
39
|
+
requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
40
|
+
retryMode: config?.retryMode ??
|
|
41
|
+
(0, node_config_provider_1.loadConfig)({
|
|
42
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
43
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
44
|
+
}),
|
|
45
|
+
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
46
|
+
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
47
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
48
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
49
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_node_1.fromUtf8,
|
|
50
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_node_1.toUtf8,
|
|
50
51
|
};
|
|
51
52
|
};
|
|
52
53
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -4,13 +4,12 @@ exports.getRuntimeConfig = void 0;
|
|
|
4
4
|
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
|
-
var _a;
|
|
8
7
|
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
8
|
return {
|
|
10
9
|
...browserDefaults,
|
|
11
10
|
...config,
|
|
12
11
|
runtime: "react-native",
|
|
13
|
-
sha256:
|
|
12
|
+
sha256: config?.sha256 ?? sha256_js_1.Sha256,
|
|
14
13
|
};
|
|
15
14
|
};
|
|
16
15
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -3,15 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
5
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
6
|
-
const getRuntimeConfig = (config) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
|
|
15
|
-
});
|
|
16
|
-
};
|
|
6
|
+
const getRuntimeConfig = (config) => ({
|
|
7
|
+
apiVersion: "2019-07-05",
|
|
8
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
9
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
10
|
+
logger: config?.logger ?? {},
|
|
11
|
+
serviceId: config?.serviceId ?? "NetworkManager",
|
|
12
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
13
|
+
});
|
|
17
14
|
exports.getRuntimeConfig = getRuntimeConfig;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-networkmanager",
|
|
3
3
|
"description": "AWS SDK for JavaScript Networkmanager Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.201.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,45 +19,45 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
-
"@aws-sdk/config-resolver": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
26
|
-
"@aws-sdk/hash-node": "3.
|
|
27
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
28
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
29
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
30
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
31
|
-
"@aws-sdk/middleware-logger": "3.
|
|
32
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
33
|
-
"@aws-sdk/middleware-retry": "3.
|
|
34
|
-
"@aws-sdk/middleware-serde": "3.
|
|
35
|
-
"@aws-sdk/middleware-signing": "3.
|
|
36
|
-
"@aws-sdk/middleware-stack": "3.
|
|
37
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
38
|
-
"@aws-sdk/node-config-provider": "3.
|
|
39
|
-
"@aws-sdk/node-http-handler": "3.
|
|
40
|
-
"@aws-sdk/protocol-http": "3.
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
-
"@aws-sdk/types": "3.
|
|
43
|
-
"@aws-sdk/url-parser": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.201.0",
|
|
23
|
+
"@aws-sdk/config-resolver": "3.201.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.201.0",
|
|
25
|
+
"@aws-sdk/fetch-http-handler": "3.201.0",
|
|
26
|
+
"@aws-sdk/hash-node": "3.201.0",
|
|
27
|
+
"@aws-sdk/invalid-dependency": "3.201.0",
|
|
28
|
+
"@aws-sdk/middleware-content-length": "3.201.0",
|
|
29
|
+
"@aws-sdk/middleware-endpoint": "3.201.0",
|
|
30
|
+
"@aws-sdk/middleware-host-header": "3.201.0",
|
|
31
|
+
"@aws-sdk/middleware-logger": "3.201.0",
|
|
32
|
+
"@aws-sdk/middleware-recursion-detection": "3.201.0",
|
|
33
|
+
"@aws-sdk/middleware-retry": "3.201.0",
|
|
34
|
+
"@aws-sdk/middleware-serde": "3.201.0",
|
|
35
|
+
"@aws-sdk/middleware-signing": "3.201.0",
|
|
36
|
+
"@aws-sdk/middleware-stack": "3.201.0",
|
|
37
|
+
"@aws-sdk/middleware-user-agent": "3.201.0",
|
|
38
|
+
"@aws-sdk/node-config-provider": "3.201.0",
|
|
39
|
+
"@aws-sdk/node-http-handler": "3.201.0",
|
|
40
|
+
"@aws-sdk/protocol-http": "3.201.0",
|
|
41
|
+
"@aws-sdk/smithy-client": "3.201.0",
|
|
42
|
+
"@aws-sdk/types": "3.201.0",
|
|
43
|
+
"@aws-sdk/url-parser": "3.201.0",
|
|
44
44
|
"@aws-sdk/util-base64-browser": "3.188.0",
|
|
45
|
-
"@aws-sdk/util-base64-node": "3.
|
|
45
|
+
"@aws-sdk/util-base64-node": "3.201.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
47
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
51
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
47
|
+
"@aws-sdk/util-body-length-node": "3.201.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.201.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.201.0",
|
|
50
|
+
"@aws-sdk/util-endpoints": "3.201.0",
|
|
51
|
+
"@aws-sdk/util-user-agent-browser": "3.201.0",
|
|
52
|
+
"@aws-sdk/util-user-agent-node": "3.201.0",
|
|
53
53
|
"@aws-sdk/util-utf8-browser": "3.188.0",
|
|
54
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
54
|
+
"@aws-sdk/util-utf8-node": "3.201.0",
|
|
55
55
|
"tslib": "^2.3.1",
|
|
56
56
|
"uuid": "^8.3.2"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@aws-sdk/service-client-documentation-generator": "3.188.0",
|
|
60
|
-
"@tsconfig/
|
|
60
|
+
"@tsconfig/node14": "1.0.3",
|
|
61
61
|
"@types/node": "^12.7.5",
|
|
62
62
|
"@types/uuid": "^8.3.0",
|
|
63
63
|
"concurrently": "7.0.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
74
|
"engines": {
|
|
75
|
-
"node": ">=
|
|
75
|
+
"node": ">=14.0.0"
|
|
76
76
|
},
|
|
77
77
|
"typesVersions": {
|
|
78
78
|
"<4.0": {
|