@aws-sdk/client-networkmanager 3.179.0 → 3.181.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 +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +91 -85
- package/dist-es/protocols/Aws_restJson1.js +98 -85
- package/package.json +6 -6
|
@@ -1986,7 +1986,7 @@ exports.deserializeAws_restJson1AcceptAttachmentCommand = deserializeAws_restJso
|
|
|
1986
1986
|
const deserializeAws_restJson1AcceptAttachmentCommandError = async (output, context) => {
|
|
1987
1987
|
const parsedOutput = {
|
|
1988
1988
|
...output,
|
|
1989
|
-
body: await
|
|
1989
|
+
body: await parseErrorBody(output.body, context),
|
|
1990
1990
|
};
|
|
1991
1991
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1992
1992
|
switch (errorCode) {
|
|
@@ -2035,7 +2035,7 @@ exports.deserializeAws_restJson1AssociateConnectPeerCommand = deserializeAws_res
|
|
|
2035
2035
|
const deserializeAws_restJson1AssociateConnectPeerCommandError = async (output, context) => {
|
|
2036
2036
|
const parsedOutput = {
|
|
2037
2037
|
...output,
|
|
2038
|
-
body: await
|
|
2038
|
+
body: await parseErrorBody(output.body, context),
|
|
2039
2039
|
};
|
|
2040
2040
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2041
2041
|
switch (errorCode) {
|
|
@@ -2087,7 +2087,7 @@ exports.deserializeAws_restJson1AssociateCustomerGatewayCommand = deserializeAws
|
|
|
2087
2087
|
const deserializeAws_restJson1AssociateCustomerGatewayCommandError = async (output, context) => {
|
|
2088
2088
|
const parsedOutput = {
|
|
2089
2089
|
...output,
|
|
2090
|
-
body: await
|
|
2090
|
+
body: await parseErrorBody(output.body, context),
|
|
2091
2091
|
};
|
|
2092
2092
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2093
2093
|
switch (errorCode) {
|
|
@@ -2139,7 +2139,7 @@ exports.deserializeAws_restJson1AssociateLinkCommand = deserializeAws_restJson1A
|
|
|
2139
2139
|
const deserializeAws_restJson1AssociateLinkCommandError = async (output, context) => {
|
|
2140
2140
|
const parsedOutput = {
|
|
2141
2141
|
...output,
|
|
2142
|
-
body: await
|
|
2142
|
+
body: await parseErrorBody(output.body, context),
|
|
2143
2143
|
};
|
|
2144
2144
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2145
2145
|
switch (errorCode) {
|
|
@@ -2191,7 +2191,7 @@ exports.deserializeAws_restJson1AssociateTransitGatewayConnectPeerCommand = dese
|
|
|
2191
2191
|
const deserializeAws_restJson1AssociateTransitGatewayConnectPeerCommandError = async (output, context) => {
|
|
2192
2192
|
const parsedOutput = {
|
|
2193
2193
|
...output,
|
|
2194
|
-
body: await
|
|
2194
|
+
body: await parseErrorBody(output.body, context),
|
|
2195
2195
|
};
|
|
2196
2196
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2197
2197
|
switch (errorCode) {
|
|
@@ -2243,7 +2243,7 @@ exports.deserializeAws_restJson1CreateConnectAttachmentCommand = deserializeAws_
|
|
|
2243
2243
|
const deserializeAws_restJson1CreateConnectAttachmentCommandError = async (output, context) => {
|
|
2244
2244
|
const parsedOutput = {
|
|
2245
2245
|
...output,
|
|
2246
|
-
body: await
|
|
2246
|
+
body: await parseErrorBody(output.body, context),
|
|
2247
2247
|
};
|
|
2248
2248
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2249
2249
|
switch (errorCode) {
|
|
@@ -2292,7 +2292,7 @@ exports.deserializeAws_restJson1CreateConnectionCommand = deserializeAws_restJso
|
|
|
2292
2292
|
const deserializeAws_restJson1CreateConnectionCommandError = async (output, context) => {
|
|
2293
2293
|
const parsedOutput = {
|
|
2294
2294
|
...output,
|
|
2295
|
-
body: await
|
|
2295
|
+
body: await parseErrorBody(output.body, context),
|
|
2296
2296
|
};
|
|
2297
2297
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2298
2298
|
switch (errorCode) {
|
|
@@ -2341,7 +2341,7 @@ exports.deserializeAws_restJson1CreateConnectPeerCommand = deserializeAws_restJs
|
|
|
2341
2341
|
const deserializeAws_restJson1CreateConnectPeerCommandError = async (output, context) => {
|
|
2342
2342
|
const parsedOutput = {
|
|
2343
2343
|
...output,
|
|
2344
|
-
body: await
|
|
2344
|
+
body: await parseErrorBody(output.body, context),
|
|
2345
2345
|
};
|
|
2346
2346
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2347
2347
|
switch (errorCode) {
|
|
@@ -2390,7 +2390,7 @@ exports.deserializeAws_restJson1CreateCoreNetworkCommand = deserializeAws_restJs
|
|
|
2390
2390
|
const deserializeAws_restJson1CreateCoreNetworkCommandError = async (output, context) => {
|
|
2391
2391
|
const parsedOutput = {
|
|
2392
2392
|
...output,
|
|
2393
|
-
body: await
|
|
2393
|
+
body: await parseErrorBody(output.body, context),
|
|
2394
2394
|
};
|
|
2395
2395
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2396
2396
|
switch (errorCode) {
|
|
@@ -2442,7 +2442,7 @@ exports.deserializeAws_restJson1CreateDeviceCommand = deserializeAws_restJson1Cr
|
|
|
2442
2442
|
const deserializeAws_restJson1CreateDeviceCommandError = async (output, context) => {
|
|
2443
2443
|
const parsedOutput = {
|
|
2444
2444
|
...output,
|
|
2445
|
-
body: await
|
|
2445
|
+
body: await parseErrorBody(output.body, context),
|
|
2446
2446
|
};
|
|
2447
2447
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2448
2448
|
switch (errorCode) {
|
|
@@ -2494,7 +2494,7 @@ exports.deserializeAws_restJson1CreateGlobalNetworkCommand = deserializeAws_rest
|
|
|
2494
2494
|
const deserializeAws_restJson1CreateGlobalNetworkCommandError = async (output, context) => {
|
|
2495
2495
|
const parsedOutput = {
|
|
2496
2496
|
...output,
|
|
2497
|
-
body: await
|
|
2497
|
+
body: await parseErrorBody(output.body, context),
|
|
2498
2498
|
};
|
|
2499
2499
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2500
2500
|
switch (errorCode) {
|
|
@@ -2543,7 +2543,7 @@ exports.deserializeAws_restJson1CreateLinkCommand = deserializeAws_restJson1Crea
|
|
|
2543
2543
|
const deserializeAws_restJson1CreateLinkCommandError = async (output, context) => {
|
|
2544
2544
|
const parsedOutput = {
|
|
2545
2545
|
...output,
|
|
2546
|
-
body: await
|
|
2546
|
+
body: await parseErrorBody(output.body, context),
|
|
2547
2547
|
};
|
|
2548
2548
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2549
2549
|
switch (errorCode) {
|
|
@@ -2595,7 +2595,7 @@ exports.deserializeAws_restJson1CreateSiteCommand = deserializeAws_restJson1Crea
|
|
|
2595
2595
|
const deserializeAws_restJson1CreateSiteCommandError = async (output, context) => {
|
|
2596
2596
|
const parsedOutput = {
|
|
2597
2597
|
...output,
|
|
2598
|
-
body: await
|
|
2598
|
+
body: await parseErrorBody(output.body, context),
|
|
2599
2599
|
};
|
|
2600
2600
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2601
2601
|
switch (errorCode) {
|
|
@@ -2647,7 +2647,7 @@ exports.deserializeAws_restJson1CreateSiteToSiteVpnAttachmentCommand = deseriali
|
|
|
2647
2647
|
const deserializeAws_restJson1CreateSiteToSiteVpnAttachmentCommandError = async (output, context) => {
|
|
2648
2648
|
const parsedOutput = {
|
|
2649
2649
|
...output,
|
|
2650
|
-
body: await
|
|
2650
|
+
body: await parseErrorBody(output.body, context),
|
|
2651
2651
|
};
|
|
2652
2652
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2653
2653
|
switch (errorCode) {
|
|
@@ -2696,7 +2696,7 @@ exports.deserializeAws_restJson1CreateTransitGatewayPeeringCommand = deserialize
|
|
|
2696
2696
|
const deserializeAws_restJson1CreateTransitGatewayPeeringCommandError = async (output, context) => {
|
|
2697
2697
|
const parsedOutput = {
|
|
2698
2698
|
...output,
|
|
2699
|
-
body: await
|
|
2699
|
+
body: await parseErrorBody(output.body, context),
|
|
2700
2700
|
};
|
|
2701
2701
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2702
2702
|
switch (errorCode) {
|
|
@@ -2745,7 +2745,7 @@ exports.deserializeAws_restJson1CreateTransitGatewayRouteTableAttachmentCommand
|
|
|
2745
2745
|
const deserializeAws_restJson1CreateTransitGatewayRouteTableAttachmentCommandError = async (output, context) => {
|
|
2746
2746
|
const parsedOutput = {
|
|
2747
2747
|
...output,
|
|
2748
|
-
body: await
|
|
2748
|
+
body: await parseErrorBody(output.body, context),
|
|
2749
2749
|
};
|
|
2750
2750
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2751
2751
|
switch (errorCode) {
|
|
@@ -2794,7 +2794,7 @@ exports.deserializeAws_restJson1CreateVpcAttachmentCommand = deserializeAws_rest
|
|
|
2794
2794
|
const deserializeAws_restJson1CreateVpcAttachmentCommandError = async (output, context) => {
|
|
2795
2795
|
const parsedOutput = {
|
|
2796
2796
|
...output,
|
|
2797
|
-
body: await
|
|
2797
|
+
body: await parseErrorBody(output.body, context),
|
|
2798
2798
|
};
|
|
2799
2799
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2800
2800
|
switch (errorCode) {
|
|
@@ -2843,7 +2843,7 @@ exports.deserializeAws_restJson1DeleteAttachmentCommand = deserializeAws_restJso
|
|
|
2843
2843
|
const deserializeAws_restJson1DeleteAttachmentCommandError = async (output, context) => {
|
|
2844
2844
|
const parsedOutput = {
|
|
2845
2845
|
...output,
|
|
2846
|
-
body: await
|
|
2846
|
+
body: await parseErrorBody(output.body, context),
|
|
2847
2847
|
};
|
|
2848
2848
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2849
2849
|
switch (errorCode) {
|
|
@@ -2892,7 +2892,7 @@ exports.deserializeAws_restJson1DeleteConnectionCommand = deserializeAws_restJso
|
|
|
2892
2892
|
const deserializeAws_restJson1DeleteConnectionCommandError = async (output, context) => {
|
|
2893
2893
|
const parsedOutput = {
|
|
2894
2894
|
...output,
|
|
2895
|
-
body: await
|
|
2895
|
+
body: await parseErrorBody(output.body, context),
|
|
2896
2896
|
};
|
|
2897
2897
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2898
2898
|
switch (errorCode) {
|
|
@@ -2941,7 +2941,7 @@ exports.deserializeAws_restJson1DeleteConnectPeerCommand = deserializeAws_restJs
|
|
|
2941
2941
|
const deserializeAws_restJson1DeleteConnectPeerCommandError = async (output, context) => {
|
|
2942
2942
|
const parsedOutput = {
|
|
2943
2943
|
...output,
|
|
2944
|
-
body: await
|
|
2944
|
+
body: await parseErrorBody(output.body, context),
|
|
2945
2945
|
};
|
|
2946
2946
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2947
2947
|
switch (errorCode) {
|
|
@@ -2990,7 +2990,7 @@ exports.deserializeAws_restJson1DeleteCoreNetworkCommand = deserializeAws_restJs
|
|
|
2990
2990
|
const deserializeAws_restJson1DeleteCoreNetworkCommandError = async (output, context) => {
|
|
2991
2991
|
const parsedOutput = {
|
|
2992
2992
|
...output,
|
|
2993
|
-
body: await
|
|
2993
|
+
body: await parseErrorBody(output.body, context),
|
|
2994
2994
|
};
|
|
2995
2995
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2996
2996
|
switch (errorCode) {
|
|
@@ -3039,7 +3039,7 @@ exports.deserializeAws_restJson1DeleteCoreNetworkPolicyVersionCommand = deserial
|
|
|
3039
3039
|
const deserializeAws_restJson1DeleteCoreNetworkPolicyVersionCommandError = async (output, context) => {
|
|
3040
3040
|
const parsedOutput = {
|
|
3041
3041
|
...output,
|
|
3042
|
-
body: await
|
|
3042
|
+
body: await parseErrorBody(output.body, context),
|
|
3043
3043
|
};
|
|
3044
3044
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3045
3045
|
switch (errorCode) {
|
|
@@ -3088,7 +3088,7 @@ exports.deserializeAws_restJson1DeleteDeviceCommand = deserializeAws_restJson1De
|
|
|
3088
3088
|
const deserializeAws_restJson1DeleteDeviceCommandError = async (output, context) => {
|
|
3089
3089
|
const parsedOutput = {
|
|
3090
3090
|
...output,
|
|
3091
|
-
body: await
|
|
3091
|
+
body: await parseErrorBody(output.body, context),
|
|
3092
3092
|
};
|
|
3093
3093
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3094
3094
|
switch (errorCode) {
|
|
@@ -3137,7 +3137,7 @@ exports.deserializeAws_restJson1DeleteGlobalNetworkCommand = deserializeAws_rest
|
|
|
3137
3137
|
const deserializeAws_restJson1DeleteGlobalNetworkCommandError = async (output, context) => {
|
|
3138
3138
|
const parsedOutput = {
|
|
3139
3139
|
...output,
|
|
3140
|
-
body: await
|
|
3140
|
+
body: await parseErrorBody(output.body, context),
|
|
3141
3141
|
};
|
|
3142
3142
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3143
3143
|
switch (errorCode) {
|
|
@@ -3186,7 +3186,7 @@ exports.deserializeAws_restJson1DeleteLinkCommand = deserializeAws_restJson1Dele
|
|
|
3186
3186
|
const deserializeAws_restJson1DeleteLinkCommandError = async (output, context) => {
|
|
3187
3187
|
const parsedOutput = {
|
|
3188
3188
|
...output,
|
|
3189
|
-
body: await
|
|
3189
|
+
body: await parseErrorBody(output.body, context),
|
|
3190
3190
|
};
|
|
3191
3191
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3192
3192
|
switch (errorCode) {
|
|
@@ -3235,7 +3235,7 @@ exports.deserializeAws_restJson1DeletePeeringCommand = deserializeAws_restJson1D
|
|
|
3235
3235
|
const deserializeAws_restJson1DeletePeeringCommandError = async (output, context) => {
|
|
3236
3236
|
const parsedOutput = {
|
|
3237
3237
|
...output,
|
|
3238
|
-
body: await
|
|
3238
|
+
body: await parseErrorBody(output.body, context),
|
|
3239
3239
|
};
|
|
3240
3240
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3241
3241
|
switch (errorCode) {
|
|
@@ -3281,7 +3281,7 @@ exports.deserializeAws_restJson1DeleteResourcePolicyCommand = deserializeAws_res
|
|
|
3281
3281
|
const deserializeAws_restJson1DeleteResourcePolicyCommandError = async (output, context) => {
|
|
3282
3282
|
const parsedOutput = {
|
|
3283
3283
|
...output,
|
|
3284
|
-
body: await
|
|
3284
|
+
body: await parseErrorBody(output.body, context),
|
|
3285
3285
|
};
|
|
3286
3286
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3287
3287
|
switch (errorCode) {
|
|
@@ -3327,7 +3327,7 @@ exports.deserializeAws_restJson1DeleteSiteCommand = deserializeAws_restJson1Dele
|
|
|
3327
3327
|
const deserializeAws_restJson1DeleteSiteCommandError = async (output, context) => {
|
|
3328
3328
|
const parsedOutput = {
|
|
3329
3329
|
...output,
|
|
3330
|
-
body: await
|
|
3330
|
+
body: await parseErrorBody(output.body, context),
|
|
3331
3331
|
};
|
|
3332
3332
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3333
3333
|
switch (errorCode) {
|
|
@@ -3376,7 +3376,7 @@ exports.deserializeAws_restJson1DeregisterTransitGatewayCommand = deserializeAws
|
|
|
3376
3376
|
const deserializeAws_restJson1DeregisterTransitGatewayCommandError = async (output, context) => {
|
|
3377
3377
|
const parsedOutput = {
|
|
3378
3378
|
...output,
|
|
3379
|
-
body: await
|
|
3379
|
+
body: await parseErrorBody(output.body, context),
|
|
3380
3380
|
};
|
|
3381
3381
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3382
3382
|
switch (errorCode) {
|
|
@@ -3428,7 +3428,7 @@ exports.deserializeAws_restJson1DescribeGlobalNetworksCommand = deserializeAws_r
|
|
|
3428
3428
|
const deserializeAws_restJson1DescribeGlobalNetworksCommandError = async (output, context) => {
|
|
3429
3429
|
const parsedOutput = {
|
|
3430
3430
|
...output,
|
|
3431
|
-
body: await
|
|
3431
|
+
body: await parseErrorBody(output.body, context),
|
|
3432
3432
|
};
|
|
3433
3433
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3434
3434
|
switch (errorCode) {
|
|
@@ -3474,7 +3474,7 @@ exports.deserializeAws_restJson1DisassociateConnectPeerCommand = deserializeAws_
|
|
|
3474
3474
|
const deserializeAws_restJson1DisassociateConnectPeerCommandError = async (output, context) => {
|
|
3475
3475
|
const parsedOutput = {
|
|
3476
3476
|
...output,
|
|
3477
|
-
body: await
|
|
3477
|
+
body: await parseErrorBody(output.body, context),
|
|
3478
3478
|
};
|
|
3479
3479
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3480
3480
|
switch (errorCode) {
|
|
@@ -3523,7 +3523,7 @@ exports.deserializeAws_restJson1DisassociateCustomerGatewayCommand = deserialize
|
|
|
3523
3523
|
const deserializeAws_restJson1DisassociateCustomerGatewayCommandError = async (output, context) => {
|
|
3524
3524
|
const parsedOutput = {
|
|
3525
3525
|
...output,
|
|
3526
|
-
body: await
|
|
3526
|
+
body: await parseErrorBody(output.body, context),
|
|
3527
3527
|
};
|
|
3528
3528
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3529
3529
|
switch (errorCode) {
|
|
@@ -3572,7 +3572,7 @@ exports.deserializeAws_restJson1DisassociateLinkCommand = deserializeAws_restJso
|
|
|
3572
3572
|
const deserializeAws_restJson1DisassociateLinkCommandError = async (output, context) => {
|
|
3573
3573
|
const parsedOutput = {
|
|
3574
3574
|
...output,
|
|
3575
|
-
body: await
|
|
3575
|
+
body: await parseErrorBody(output.body, context),
|
|
3576
3576
|
};
|
|
3577
3577
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3578
3578
|
switch (errorCode) {
|
|
@@ -3621,7 +3621,7 @@ exports.deserializeAws_restJson1DisassociateTransitGatewayConnectPeerCommand = d
|
|
|
3621
3621
|
const deserializeAws_restJson1DisassociateTransitGatewayConnectPeerCommandError = async (output, context) => {
|
|
3622
3622
|
const parsedOutput = {
|
|
3623
3623
|
...output,
|
|
3624
|
-
body: await
|
|
3624
|
+
body: await parseErrorBody(output.body, context),
|
|
3625
3625
|
};
|
|
3626
3626
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3627
3627
|
switch (errorCode) {
|
|
@@ -3667,7 +3667,7 @@ exports.deserializeAws_restJson1ExecuteCoreNetworkChangeSetCommand = deserialize
|
|
|
3667
3667
|
const deserializeAws_restJson1ExecuteCoreNetworkChangeSetCommandError = async (output, context) => {
|
|
3668
3668
|
const parsedOutput = {
|
|
3669
3669
|
...output,
|
|
3670
|
-
body: await
|
|
3670
|
+
body: await parseErrorBody(output.body, context),
|
|
3671
3671
|
};
|
|
3672
3672
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3673
3673
|
switch (errorCode) {
|
|
@@ -3716,7 +3716,7 @@ exports.deserializeAws_restJson1GetConnectAttachmentCommand = deserializeAws_res
|
|
|
3716
3716
|
const deserializeAws_restJson1GetConnectAttachmentCommandError = async (output, context) => {
|
|
3717
3717
|
const parsedOutput = {
|
|
3718
3718
|
...output,
|
|
3719
|
-
body: await
|
|
3719
|
+
body: await parseErrorBody(output.body, context),
|
|
3720
3720
|
};
|
|
3721
3721
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3722
3722
|
switch (errorCode) {
|
|
@@ -3765,7 +3765,7 @@ exports.deserializeAws_restJson1GetConnectionsCommand = deserializeAws_restJson1
|
|
|
3765
3765
|
const deserializeAws_restJson1GetConnectionsCommandError = async (output, context) => {
|
|
3766
3766
|
const parsedOutput = {
|
|
3767
3767
|
...output,
|
|
3768
|
-
body: await
|
|
3768
|
+
body: await parseErrorBody(output.body, context),
|
|
3769
3769
|
};
|
|
3770
3770
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3771
3771
|
switch (errorCode) {
|
|
@@ -3811,7 +3811,7 @@ exports.deserializeAws_restJson1GetConnectPeerCommand = deserializeAws_restJson1
|
|
|
3811
3811
|
const deserializeAws_restJson1GetConnectPeerCommandError = async (output, context) => {
|
|
3812
3812
|
const parsedOutput = {
|
|
3813
3813
|
...output,
|
|
3814
|
-
body: await
|
|
3814
|
+
body: await parseErrorBody(output.body, context),
|
|
3815
3815
|
};
|
|
3816
3816
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3817
3817
|
switch (errorCode) {
|
|
@@ -3860,7 +3860,7 @@ exports.deserializeAws_restJson1GetConnectPeerAssociationsCommand = deserializeA
|
|
|
3860
3860
|
const deserializeAws_restJson1GetConnectPeerAssociationsCommandError = async (output, context) => {
|
|
3861
3861
|
const parsedOutput = {
|
|
3862
3862
|
...output,
|
|
3863
|
-
body: await
|
|
3863
|
+
body: await parseErrorBody(output.body, context),
|
|
3864
3864
|
};
|
|
3865
3865
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3866
3866
|
switch (errorCode) {
|
|
@@ -3909,7 +3909,7 @@ exports.deserializeAws_restJson1GetCoreNetworkCommand = deserializeAws_restJson1
|
|
|
3909
3909
|
const deserializeAws_restJson1GetCoreNetworkCommandError = async (output, context) => {
|
|
3910
3910
|
const parsedOutput = {
|
|
3911
3911
|
...output,
|
|
3912
|
-
body: await
|
|
3912
|
+
body: await parseErrorBody(output.body, context),
|
|
3913
3913
|
};
|
|
3914
3914
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3915
3915
|
switch (errorCode) {
|
|
@@ -3958,7 +3958,7 @@ exports.deserializeAws_restJson1GetCoreNetworkChangeEventsCommand = deserializeA
|
|
|
3958
3958
|
const deserializeAws_restJson1GetCoreNetworkChangeEventsCommandError = async (output, context) => {
|
|
3959
3959
|
const parsedOutput = {
|
|
3960
3960
|
...output,
|
|
3961
|
-
body: await
|
|
3961
|
+
body: await parseErrorBody(output.body, context),
|
|
3962
3962
|
};
|
|
3963
3963
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3964
3964
|
switch (errorCode) {
|
|
@@ -4007,7 +4007,7 @@ exports.deserializeAws_restJson1GetCoreNetworkChangeSetCommand = deserializeAws_
|
|
|
4007
4007
|
const deserializeAws_restJson1GetCoreNetworkChangeSetCommandError = async (output, context) => {
|
|
4008
4008
|
const parsedOutput = {
|
|
4009
4009
|
...output,
|
|
4010
|
-
body: await
|
|
4010
|
+
body: await parseErrorBody(output.body, context),
|
|
4011
4011
|
};
|
|
4012
4012
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4013
4013
|
switch (errorCode) {
|
|
@@ -4053,7 +4053,7 @@ exports.deserializeAws_restJson1GetCoreNetworkPolicyCommand = deserializeAws_res
|
|
|
4053
4053
|
const deserializeAws_restJson1GetCoreNetworkPolicyCommandError = async (output, context) => {
|
|
4054
4054
|
const parsedOutput = {
|
|
4055
4055
|
...output,
|
|
4056
|
-
body: await
|
|
4056
|
+
body: await parseErrorBody(output.body, context),
|
|
4057
4057
|
};
|
|
4058
4058
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4059
4059
|
switch (errorCode) {
|
|
@@ -4102,7 +4102,7 @@ exports.deserializeAws_restJson1GetCustomerGatewayAssociationsCommand = deserial
|
|
|
4102
4102
|
const deserializeAws_restJson1GetCustomerGatewayAssociationsCommandError = async (output, context) => {
|
|
4103
4103
|
const parsedOutput = {
|
|
4104
4104
|
...output,
|
|
4105
|
-
body: await
|
|
4105
|
+
body: await parseErrorBody(output.body, context),
|
|
4106
4106
|
};
|
|
4107
4107
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4108
4108
|
switch (errorCode) {
|
|
@@ -4154,7 +4154,7 @@ exports.deserializeAws_restJson1GetDevicesCommand = deserializeAws_restJson1GetD
|
|
|
4154
4154
|
const deserializeAws_restJson1GetDevicesCommandError = async (output, context) => {
|
|
4155
4155
|
const parsedOutput = {
|
|
4156
4156
|
...output,
|
|
4157
|
-
body: await
|
|
4157
|
+
body: await parseErrorBody(output.body, context),
|
|
4158
4158
|
};
|
|
4159
4159
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4160
4160
|
switch (errorCode) {
|
|
@@ -4203,7 +4203,7 @@ exports.deserializeAws_restJson1GetLinkAssociationsCommand = deserializeAws_rest
|
|
|
4203
4203
|
const deserializeAws_restJson1GetLinkAssociationsCommandError = async (output, context) => {
|
|
4204
4204
|
const parsedOutput = {
|
|
4205
4205
|
...output,
|
|
4206
|
-
body: await
|
|
4206
|
+
body: await parseErrorBody(output.body, context),
|
|
4207
4207
|
};
|
|
4208
4208
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4209
4209
|
switch (errorCode) {
|
|
@@ -4252,7 +4252,7 @@ exports.deserializeAws_restJson1GetLinksCommand = deserializeAws_restJson1GetLin
|
|
|
4252
4252
|
const deserializeAws_restJson1GetLinksCommandError = async (output, context) => {
|
|
4253
4253
|
const parsedOutput = {
|
|
4254
4254
|
...output,
|
|
4255
|
-
body: await
|
|
4255
|
+
body: await parseErrorBody(output.body, context),
|
|
4256
4256
|
};
|
|
4257
4257
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4258
4258
|
switch (errorCode) {
|
|
@@ -4301,7 +4301,7 @@ exports.deserializeAws_restJson1GetNetworkResourceCountsCommand = deserializeAws
|
|
|
4301
4301
|
const deserializeAws_restJson1GetNetworkResourceCountsCommandError = async (output, context) => {
|
|
4302
4302
|
const parsedOutput = {
|
|
4303
4303
|
...output,
|
|
4304
|
-
body: await
|
|
4304
|
+
body: await parseErrorBody(output.body, context),
|
|
4305
4305
|
};
|
|
4306
4306
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4307
4307
|
switch (errorCode) {
|
|
@@ -4347,7 +4347,7 @@ exports.deserializeAws_restJson1GetNetworkResourceRelationshipsCommand = deseria
|
|
|
4347
4347
|
const deserializeAws_restJson1GetNetworkResourceRelationshipsCommandError = async (output, context) => {
|
|
4348
4348
|
const parsedOutput = {
|
|
4349
4349
|
...output,
|
|
4350
|
-
body: await
|
|
4350
|
+
body: await parseErrorBody(output.body, context),
|
|
4351
4351
|
};
|
|
4352
4352
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4353
4353
|
switch (errorCode) {
|
|
@@ -4396,7 +4396,7 @@ exports.deserializeAws_restJson1GetNetworkResourcesCommand = deserializeAws_rest
|
|
|
4396
4396
|
const deserializeAws_restJson1GetNetworkResourcesCommandError = async (output, context) => {
|
|
4397
4397
|
const parsedOutput = {
|
|
4398
4398
|
...output,
|
|
4399
|
-
body: await
|
|
4399
|
+
body: await parseErrorBody(output.body, context),
|
|
4400
4400
|
};
|
|
4401
4401
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4402
4402
|
switch (errorCode) {
|
|
@@ -4454,7 +4454,7 @@ exports.deserializeAws_restJson1GetNetworkRoutesCommand = deserializeAws_restJso
|
|
|
4454
4454
|
const deserializeAws_restJson1GetNetworkRoutesCommandError = async (output, context) => {
|
|
4455
4455
|
const parsedOutput = {
|
|
4456
4456
|
...output,
|
|
4457
|
-
body: await
|
|
4457
|
+
body: await parseErrorBody(output.body, context),
|
|
4458
4458
|
};
|
|
4459
4459
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4460
4460
|
switch (errorCode) {
|
|
@@ -4503,7 +4503,7 @@ exports.deserializeAws_restJson1GetNetworkTelemetryCommand = deserializeAws_rest
|
|
|
4503
4503
|
const deserializeAws_restJson1GetNetworkTelemetryCommandError = async (output, context) => {
|
|
4504
4504
|
const parsedOutput = {
|
|
4505
4505
|
...output,
|
|
4506
|
-
body: await
|
|
4506
|
+
body: await parseErrorBody(output.body, context),
|
|
4507
4507
|
};
|
|
4508
4508
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4509
4509
|
switch (errorCode) {
|
|
@@ -4549,7 +4549,7 @@ exports.deserializeAws_restJson1GetResourcePolicyCommand = deserializeAws_restJs
|
|
|
4549
4549
|
const deserializeAws_restJson1GetResourcePolicyCommandError = async (output, context) => {
|
|
4550
4550
|
const parsedOutput = {
|
|
4551
4551
|
...output,
|
|
4552
|
-
body: await
|
|
4552
|
+
body: await parseErrorBody(output.body, context),
|
|
4553
4553
|
};
|
|
4554
4554
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4555
4555
|
switch (errorCode) {
|
|
@@ -4592,7 +4592,7 @@ exports.deserializeAws_restJson1GetRouteAnalysisCommand = deserializeAws_restJso
|
|
|
4592
4592
|
const deserializeAws_restJson1GetRouteAnalysisCommandError = async (output, context) => {
|
|
4593
4593
|
const parsedOutput = {
|
|
4594
4594
|
...output,
|
|
4595
|
-
body: await
|
|
4595
|
+
body: await parseErrorBody(output.body, context),
|
|
4596
4596
|
};
|
|
4597
4597
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4598
4598
|
switch (errorCode) {
|
|
@@ -4641,7 +4641,7 @@ exports.deserializeAws_restJson1GetSitesCommand = deserializeAws_restJson1GetSit
|
|
|
4641
4641
|
const deserializeAws_restJson1GetSitesCommandError = async (output, context) => {
|
|
4642
4642
|
const parsedOutput = {
|
|
4643
4643
|
...output,
|
|
4644
|
-
body: await
|
|
4644
|
+
body: await parseErrorBody(output.body, context),
|
|
4645
4645
|
};
|
|
4646
4646
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4647
4647
|
switch (errorCode) {
|
|
@@ -4687,7 +4687,7 @@ exports.deserializeAws_restJson1GetSiteToSiteVpnAttachmentCommand = deserializeA
|
|
|
4687
4687
|
const deserializeAws_restJson1GetSiteToSiteVpnAttachmentCommandError = async (output, context) => {
|
|
4688
4688
|
const parsedOutput = {
|
|
4689
4689
|
...output,
|
|
4690
|
-
body: await
|
|
4690
|
+
body: await parseErrorBody(output.body, context),
|
|
4691
4691
|
};
|
|
4692
4692
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4693
4693
|
switch (errorCode) {
|
|
@@ -4736,7 +4736,7 @@ exports.deserializeAws_restJson1GetTransitGatewayConnectPeerAssociationsCommand
|
|
|
4736
4736
|
const deserializeAws_restJson1GetTransitGatewayConnectPeerAssociationsCommandError = async (output, context) => {
|
|
4737
4737
|
const parsedOutput = {
|
|
4738
4738
|
...output,
|
|
4739
|
-
body: await
|
|
4739
|
+
body: await parseErrorBody(output.body, context),
|
|
4740
4740
|
};
|
|
4741
4741
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4742
4742
|
switch (errorCode) {
|
|
@@ -4785,7 +4785,7 @@ exports.deserializeAws_restJson1GetTransitGatewayPeeringCommand = deserializeAws
|
|
|
4785
4785
|
const deserializeAws_restJson1GetTransitGatewayPeeringCommandError = async (output, context) => {
|
|
4786
4786
|
const parsedOutput = {
|
|
4787
4787
|
...output,
|
|
4788
|
-
body: await
|
|
4788
|
+
body: await parseErrorBody(output.body, context),
|
|
4789
4789
|
};
|
|
4790
4790
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4791
4791
|
switch (errorCode) {
|
|
@@ -4834,7 +4834,7 @@ exports.deserializeAws_restJson1GetTransitGatewayRegistrationsCommand = deserial
|
|
|
4834
4834
|
const deserializeAws_restJson1GetTransitGatewayRegistrationsCommandError = async (output, context) => {
|
|
4835
4835
|
const parsedOutput = {
|
|
4836
4836
|
...output,
|
|
4837
|
-
body: await
|
|
4837
|
+
body: await parseErrorBody(output.body, context),
|
|
4838
4838
|
};
|
|
4839
4839
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4840
4840
|
switch (errorCode) {
|
|
@@ -4880,7 +4880,7 @@ exports.deserializeAws_restJson1GetTransitGatewayRouteTableAttachmentCommand = d
|
|
|
4880
4880
|
const deserializeAws_restJson1GetTransitGatewayRouteTableAttachmentCommandError = async (output, context) => {
|
|
4881
4881
|
const parsedOutput = {
|
|
4882
4882
|
...output,
|
|
4883
|
-
body: await
|
|
4883
|
+
body: await parseErrorBody(output.body, context),
|
|
4884
4884
|
};
|
|
4885
4885
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4886
4886
|
switch (errorCode) {
|
|
@@ -4926,7 +4926,7 @@ exports.deserializeAws_restJson1GetVpcAttachmentCommand = deserializeAws_restJso
|
|
|
4926
4926
|
const deserializeAws_restJson1GetVpcAttachmentCommandError = async (output, context) => {
|
|
4927
4927
|
const parsedOutput = {
|
|
4928
4928
|
...output,
|
|
4929
|
-
body: await
|
|
4929
|
+
body: await parseErrorBody(output.body, context),
|
|
4930
4930
|
};
|
|
4931
4931
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4932
4932
|
switch (errorCode) {
|
|
@@ -4975,7 +4975,7 @@ exports.deserializeAws_restJson1ListAttachmentsCommand = deserializeAws_restJson
|
|
|
4975
4975
|
const deserializeAws_restJson1ListAttachmentsCommandError = async (output, context) => {
|
|
4976
4976
|
const parsedOutput = {
|
|
4977
4977
|
...output,
|
|
4978
|
-
body: await
|
|
4978
|
+
body: await parseErrorBody(output.body, context),
|
|
4979
4979
|
};
|
|
4980
4980
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4981
4981
|
switch (errorCode) {
|
|
@@ -5021,7 +5021,7 @@ exports.deserializeAws_restJson1ListConnectPeersCommand = deserializeAws_restJso
|
|
|
5021
5021
|
const deserializeAws_restJson1ListConnectPeersCommandError = async (output, context) => {
|
|
5022
5022
|
const parsedOutput = {
|
|
5023
5023
|
...output,
|
|
5024
|
-
body: await
|
|
5024
|
+
body: await parseErrorBody(output.body, context),
|
|
5025
5025
|
};
|
|
5026
5026
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5027
5027
|
switch (errorCode) {
|
|
@@ -5067,7 +5067,7 @@ exports.deserializeAws_restJson1ListCoreNetworkPolicyVersionsCommand = deseriali
|
|
|
5067
5067
|
const deserializeAws_restJson1ListCoreNetworkPolicyVersionsCommandError = async (output, context) => {
|
|
5068
5068
|
const parsedOutput = {
|
|
5069
5069
|
...output,
|
|
5070
|
-
body: await
|
|
5070
|
+
body: await parseErrorBody(output.body, context),
|
|
5071
5071
|
};
|
|
5072
5072
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5073
5073
|
switch (errorCode) {
|
|
@@ -5116,7 +5116,7 @@ exports.deserializeAws_restJson1ListCoreNetworksCommand = deserializeAws_restJso
|
|
|
5116
5116
|
const deserializeAws_restJson1ListCoreNetworksCommandError = async (output, context) => {
|
|
5117
5117
|
const parsedOutput = {
|
|
5118
5118
|
...output,
|
|
5119
|
-
body: await
|
|
5119
|
+
body: await parseErrorBody(output.body, context),
|
|
5120
5120
|
};
|
|
5121
5121
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5122
5122
|
switch (errorCode) {
|
|
@@ -5162,7 +5162,7 @@ exports.deserializeAws_restJson1ListOrganizationServiceAccessStatusCommand = des
|
|
|
5162
5162
|
const deserializeAws_restJson1ListOrganizationServiceAccessStatusCommandError = async (output, context) => {
|
|
5163
5163
|
const parsedOutput = {
|
|
5164
5164
|
...output,
|
|
5165
|
-
body: await
|
|
5165
|
+
body: await parseErrorBody(output.body, context),
|
|
5166
5166
|
};
|
|
5167
5167
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5168
5168
|
const parsedBody = parsedOutput.body;
|
|
@@ -5193,7 +5193,7 @@ exports.deserializeAws_restJson1ListPeeringsCommand = deserializeAws_restJson1Li
|
|
|
5193
5193
|
const deserializeAws_restJson1ListPeeringsCommandError = async (output, context) => {
|
|
5194
5194
|
const parsedOutput = {
|
|
5195
5195
|
...output,
|
|
5196
|
-
body: await
|
|
5196
|
+
body: await parseErrorBody(output.body, context),
|
|
5197
5197
|
};
|
|
5198
5198
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5199
5199
|
switch (errorCode) {
|
|
@@ -5236,7 +5236,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
5236
5236
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
5237
5237
|
const parsedOutput = {
|
|
5238
5238
|
...output,
|
|
5239
|
-
body: await
|
|
5239
|
+
body: await parseErrorBody(output.body, context),
|
|
5240
5240
|
};
|
|
5241
5241
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5242
5242
|
switch (errorCode) {
|
|
@@ -5282,7 +5282,7 @@ exports.deserializeAws_restJson1PutCoreNetworkPolicyCommand = deserializeAws_res
|
|
|
5282
5282
|
const deserializeAws_restJson1PutCoreNetworkPolicyCommandError = async (output, context) => {
|
|
5283
5283
|
const parsedOutput = {
|
|
5284
5284
|
...output,
|
|
5285
|
-
body: await
|
|
5285
|
+
body: await parseErrorBody(output.body, context),
|
|
5286
5286
|
};
|
|
5287
5287
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5288
5288
|
switch (errorCode) {
|
|
@@ -5331,7 +5331,7 @@ exports.deserializeAws_restJson1PutResourcePolicyCommand = deserializeAws_restJs
|
|
|
5331
5331
|
const deserializeAws_restJson1PutResourcePolicyCommandError = async (output, context) => {
|
|
5332
5332
|
const parsedOutput = {
|
|
5333
5333
|
...output,
|
|
5334
|
-
body: await
|
|
5334
|
+
body: await parseErrorBody(output.body, context),
|
|
5335
5335
|
};
|
|
5336
5336
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5337
5337
|
switch (errorCode) {
|
|
@@ -5380,7 +5380,7 @@ exports.deserializeAws_restJson1RegisterTransitGatewayCommand = deserializeAws_r
|
|
|
5380
5380
|
const deserializeAws_restJson1RegisterTransitGatewayCommandError = async (output, context) => {
|
|
5381
5381
|
const parsedOutput = {
|
|
5382
5382
|
...output,
|
|
5383
|
-
body: await
|
|
5383
|
+
body: await parseErrorBody(output.body, context),
|
|
5384
5384
|
};
|
|
5385
5385
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5386
5386
|
switch (errorCode) {
|
|
@@ -5429,7 +5429,7 @@ exports.deserializeAws_restJson1RejectAttachmentCommand = deserializeAws_restJso
|
|
|
5429
5429
|
const deserializeAws_restJson1RejectAttachmentCommandError = async (output, context) => {
|
|
5430
5430
|
const parsedOutput = {
|
|
5431
5431
|
...output,
|
|
5432
|
-
body: await
|
|
5432
|
+
body: await parseErrorBody(output.body, context),
|
|
5433
5433
|
};
|
|
5434
5434
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5435
5435
|
switch (errorCode) {
|
|
@@ -5478,7 +5478,7 @@ exports.deserializeAws_restJson1RestoreCoreNetworkPolicyVersionCommand = deseria
|
|
|
5478
5478
|
const deserializeAws_restJson1RestoreCoreNetworkPolicyVersionCommandError = async (output, context) => {
|
|
5479
5479
|
const parsedOutput = {
|
|
5480
5480
|
...output,
|
|
5481
|
-
body: await
|
|
5481
|
+
body: await parseErrorBody(output.body, context),
|
|
5482
5482
|
};
|
|
5483
5483
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5484
5484
|
switch (errorCode) {
|
|
@@ -5527,7 +5527,7 @@ exports.deserializeAws_restJson1StartOrganizationServiceAccessUpdateCommand = de
|
|
|
5527
5527
|
const deserializeAws_restJson1StartOrganizationServiceAccessUpdateCommandError = async (output, context) => {
|
|
5528
5528
|
const parsedOutput = {
|
|
5529
5529
|
...output,
|
|
5530
|
-
body: await
|
|
5530
|
+
body: await parseErrorBody(output.body, context),
|
|
5531
5531
|
};
|
|
5532
5532
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5533
5533
|
switch (errorCode) {
|
|
@@ -5576,7 +5576,7 @@ exports.deserializeAws_restJson1StartRouteAnalysisCommand = deserializeAws_restJ
|
|
|
5576
5576
|
const deserializeAws_restJson1StartRouteAnalysisCommandError = async (output, context) => {
|
|
5577
5577
|
const parsedOutput = {
|
|
5578
5578
|
...output,
|
|
5579
|
-
body: await
|
|
5579
|
+
body: await parseErrorBody(output.body, context),
|
|
5580
5580
|
};
|
|
5581
5581
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5582
5582
|
switch (errorCode) {
|
|
@@ -5622,7 +5622,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
5622
5622
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
5623
5623
|
const parsedOutput = {
|
|
5624
5624
|
...output,
|
|
5625
|
-
body: await
|
|
5625
|
+
body: await parseErrorBody(output.body, context),
|
|
5626
5626
|
};
|
|
5627
5627
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5628
5628
|
switch (errorCode) {
|
|
@@ -5671,7 +5671,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
5671
5671
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
5672
5672
|
const parsedOutput = {
|
|
5673
5673
|
...output,
|
|
5674
|
-
body: await
|
|
5674
|
+
body: await parseErrorBody(output.body, context),
|
|
5675
5675
|
};
|
|
5676
5676
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5677
5677
|
switch (errorCode) {
|
|
@@ -5720,7 +5720,7 @@ exports.deserializeAws_restJson1UpdateConnectionCommand = deserializeAws_restJso
|
|
|
5720
5720
|
const deserializeAws_restJson1UpdateConnectionCommandError = async (output, context) => {
|
|
5721
5721
|
const parsedOutput = {
|
|
5722
5722
|
...output,
|
|
5723
|
-
body: await
|
|
5723
|
+
body: await parseErrorBody(output.body, context),
|
|
5724
5724
|
};
|
|
5725
5725
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5726
5726
|
switch (errorCode) {
|
|
@@ -5769,7 +5769,7 @@ exports.deserializeAws_restJson1UpdateCoreNetworkCommand = deserializeAws_restJs
|
|
|
5769
5769
|
const deserializeAws_restJson1UpdateCoreNetworkCommandError = async (output, context) => {
|
|
5770
5770
|
const parsedOutput = {
|
|
5771
5771
|
...output,
|
|
5772
|
-
body: await
|
|
5772
|
+
body: await parseErrorBody(output.body, context),
|
|
5773
5773
|
};
|
|
5774
5774
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5775
5775
|
switch (errorCode) {
|
|
@@ -5818,7 +5818,7 @@ exports.deserializeAws_restJson1UpdateDeviceCommand = deserializeAws_restJson1Up
|
|
|
5818
5818
|
const deserializeAws_restJson1UpdateDeviceCommandError = async (output, context) => {
|
|
5819
5819
|
const parsedOutput = {
|
|
5820
5820
|
...output,
|
|
5821
|
-
body: await
|
|
5821
|
+
body: await parseErrorBody(output.body, context),
|
|
5822
5822
|
};
|
|
5823
5823
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5824
5824
|
switch (errorCode) {
|
|
@@ -5867,7 +5867,7 @@ exports.deserializeAws_restJson1UpdateGlobalNetworkCommand = deserializeAws_rest
|
|
|
5867
5867
|
const deserializeAws_restJson1UpdateGlobalNetworkCommandError = async (output, context) => {
|
|
5868
5868
|
const parsedOutput = {
|
|
5869
5869
|
...output,
|
|
5870
|
-
body: await
|
|
5870
|
+
body: await parseErrorBody(output.body, context),
|
|
5871
5871
|
};
|
|
5872
5872
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5873
5873
|
switch (errorCode) {
|
|
@@ -5916,7 +5916,7 @@ exports.deserializeAws_restJson1UpdateLinkCommand = deserializeAws_restJson1Upda
|
|
|
5916
5916
|
const deserializeAws_restJson1UpdateLinkCommandError = async (output, context) => {
|
|
5917
5917
|
const parsedOutput = {
|
|
5918
5918
|
...output,
|
|
5919
|
-
body: await
|
|
5919
|
+
body: await parseErrorBody(output.body, context),
|
|
5920
5920
|
};
|
|
5921
5921
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5922
5922
|
switch (errorCode) {
|
|
@@ -5971,7 +5971,7 @@ exports.deserializeAws_restJson1UpdateNetworkResourceMetadataCommand = deseriali
|
|
|
5971
5971
|
const deserializeAws_restJson1UpdateNetworkResourceMetadataCommandError = async (output, context) => {
|
|
5972
5972
|
const parsedOutput = {
|
|
5973
5973
|
...output,
|
|
5974
|
-
body: await
|
|
5974
|
+
body: await parseErrorBody(output.body, context),
|
|
5975
5975
|
};
|
|
5976
5976
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5977
5977
|
switch (errorCode) {
|
|
@@ -6020,7 +6020,7 @@ exports.deserializeAws_restJson1UpdateSiteCommand = deserializeAws_restJson1Upda
|
|
|
6020
6020
|
const deserializeAws_restJson1UpdateSiteCommandError = async (output, context) => {
|
|
6021
6021
|
const parsedOutput = {
|
|
6022
6022
|
...output,
|
|
6023
|
-
body: await
|
|
6023
|
+
body: await parseErrorBody(output.body, context),
|
|
6024
6024
|
};
|
|
6025
6025
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6026
6026
|
switch (errorCode) {
|
|
@@ -6069,7 +6069,7 @@ exports.deserializeAws_restJson1UpdateVpcAttachmentCommand = deserializeAws_rest
|
|
|
6069
6069
|
const deserializeAws_restJson1UpdateVpcAttachmentCommandError = async (output, context) => {
|
|
6070
6070
|
const parsedOutput = {
|
|
6071
6071
|
...output,
|
|
6072
|
-
body: await
|
|
6072
|
+
body: await parseErrorBody(output.body, context),
|
|
6073
6073
|
};
|
|
6074
6074
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6075
6075
|
switch (errorCode) {
|
|
@@ -7366,6 +7366,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
7366
7366
|
}
|
|
7367
7367
|
return {};
|
|
7368
7368
|
});
|
|
7369
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
7370
|
+
var _a;
|
|
7371
|
+
const value = await parseBody(errorBody, context);
|
|
7372
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
7373
|
+
return value;
|
|
7374
|
+
};
|
|
7369
7375
|
const loadRestJsonErrorCode = (output, data) => {
|
|
7370
7376
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
7371
7377
|
const sanitizeErrorCode = (rawValue) => {
|