@aws-sdk/client-apigatewayv2 3.180.0 → 3.183.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 +78 -72
- package/dist-es/ApiGatewayV2.js +290 -297
- package/dist-es/ApiGatewayV2Client.js +22 -28
- package/dist-es/commands/CreateApiCommand.js +21 -28
- package/dist-es/commands/CreateApiMappingCommand.js +21 -28
- package/dist-es/commands/CreateAuthorizerCommand.js +21 -28
- package/dist-es/commands/CreateDeploymentCommand.js +21 -28
- package/dist-es/commands/CreateDomainNameCommand.js +21 -28
- package/dist-es/commands/CreateIntegrationCommand.js +21 -28
- package/dist-es/commands/CreateIntegrationResponseCommand.js +21 -28
- package/dist-es/commands/CreateModelCommand.js +21 -28
- package/dist-es/commands/CreateRouteCommand.js +21 -28
- package/dist-es/commands/CreateRouteResponseCommand.js +21 -28
- package/dist-es/commands/CreateStageCommand.js +21 -28
- package/dist-es/commands/CreateVpcLinkCommand.js +21 -28
- package/dist-es/commands/DeleteAccessLogSettingsCommand.js +22 -29
- package/dist-es/commands/DeleteApiCommand.js +22 -29
- package/dist-es/commands/DeleteApiMappingCommand.js +22 -29
- package/dist-es/commands/DeleteAuthorizerCommand.js +22 -29
- package/dist-es/commands/DeleteCorsConfigurationCommand.js +22 -29
- package/dist-es/commands/DeleteDeploymentCommand.js +22 -29
- package/dist-es/commands/DeleteDomainNameCommand.js +22 -29
- package/dist-es/commands/DeleteIntegrationCommand.js +22 -29
- package/dist-es/commands/DeleteIntegrationResponseCommand.js +22 -29
- package/dist-es/commands/DeleteModelCommand.js +22 -29
- package/dist-es/commands/DeleteRouteCommand.js +22 -29
- package/dist-es/commands/DeleteRouteRequestParameterCommand.js +22 -29
- package/dist-es/commands/DeleteRouteResponseCommand.js +22 -29
- package/dist-es/commands/DeleteRouteSettingsCommand.js +22 -29
- package/dist-es/commands/DeleteStageCommand.js +22 -29
- package/dist-es/commands/DeleteVpcLinkCommand.js +21 -28
- package/dist-es/commands/ExportApiCommand.js +21 -28
- package/dist-es/commands/GetApiCommand.js +21 -28
- package/dist-es/commands/GetApiMappingCommand.js +21 -28
- package/dist-es/commands/GetApiMappingsCommand.js +21 -28
- package/dist-es/commands/GetApisCommand.js +21 -28
- package/dist-es/commands/GetAuthorizerCommand.js +21 -28
- package/dist-es/commands/GetAuthorizersCommand.js +21 -28
- package/dist-es/commands/GetDeploymentCommand.js +21 -28
- package/dist-es/commands/GetDeploymentsCommand.js +21 -28
- package/dist-es/commands/GetDomainNameCommand.js +21 -28
- package/dist-es/commands/GetDomainNamesCommand.js +21 -28
- package/dist-es/commands/GetIntegrationCommand.js +21 -28
- package/dist-es/commands/GetIntegrationResponseCommand.js +21 -28
- package/dist-es/commands/GetIntegrationResponsesCommand.js +21 -28
- package/dist-es/commands/GetIntegrationsCommand.js +21 -28
- package/dist-es/commands/GetModelCommand.js +21 -28
- package/dist-es/commands/GetModelTemplateCommand.js +21 -28
- package/dist-es/commands/GetModelsCommand.js +21 -28
- package/dist-es/commands/GetRouteCommand.js +21 -28
- package/dist-es/commands/GetRouteResponseCommand.js +21 -28
- package/dist-es/commands/GetRouteResponsesCommand.js +21 -28
- package/dist-es/commands/GetRoutesCommand.js +21 -28
- package/dist-es/commands/GetStageCommand.js +21 -28
- package/dist-es/commands/GetStagesCommand.js +21 -28
- package/dist-es/commands/GetTagsCommand.js +21 -28
- package/dist-es/commands/GetVpcLinkCommand.js +21 -28
- package/dist-es/commands/GetVpcLinksCommand.js +21 -28
- package/dist-es/commands/ImportApiCommand.js +21 -28
- package/dist-es/commands/ReimportApiCommand.js +21 -28
- package/dist-es/commands/ResetAuthorizersCacheCommand.js +22 -29
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +22 -29
- package/dist-es/commands/UpdateApiCommand.js +21 -28
- package/dist-es/commands/UpdateApiMappingCommand.js +21 -28
- package/dist-es/commands/UpdateAuthorizerCommand.js +21 -28
- package/dist-es/commands/UpdateDeploymentCommand.js +21 -28
- package/dist-es/commands/UpdateDomainNameCommand.js +21 -28
- package/dist-es/commands/UpdateIntegrationCommand.js +21 -28
- package/dist-es/commands/UpdateIntegrationResponseCommand.js +21 -28
- package/dist-es/commands/UpdateModelCommand.js +21 -28
- package/dist-es/commands/UpdateRouteCommand.js +21 -28
- package/dist-es/commands/UpdateRouteResponseCommand.js +21 -28
- package/dist-es/commands/UpdateStageCommand.js +21 -28
- package/dist-es/commands/UpdateVpcLinkCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ApiGatewayV2ServiceException.js +5 -10
- package/dist-es/models/models_0.js +509 -212
- package/dist-es/protocols/Aws_restJson1.js +5700 -7649
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
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.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-apigatewayv2
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-apigatewayv2
|
|
@@ -1816,7 +1816,7 @@ exports.deserializeAws_restJson1CreateApiCommand = deserializeAws_restJson1Creat
|
|
|
1816
1816
|
const deserializeAws_restJson1CreateApiCommandError = async (output, context) => {
|
|
1817
1817
|
const parsedOutput = {
|
|
1818
1818
|
...output,
|
|
1819
|
-
body: await
|
|
1819
|
+
body: await parseErrorBody(output.body, context),
|
|
1820
1820
|
};
|
|
1821
1821
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1822
1822
|
switch (errorCode) {
|
|
@@ -1868,7 +1868,7 @@ exports.deserializeAws_restJson1CreateApiMappingCommand = deserializeAws_restJso
|
|
|
1868
1868
|
const deserializeAws_restJson1CreateApiMappingCommandError = async (output, context) => {
|
|
1869
1869
|
const parsedOutput = {
|
|
1870
1870
|
...output,
|
|
1871
|
-
body: await
|
|
1871
|
+
body: await parseErrorBody(output.body, context),
|
|
1872
1872
|
};
|
|
1873
1873
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1874
1874
|
switch (errorCode) {
|
|
@@ -1941,7 +1941,7 @@ exports.deserializeAws_restJson1CreateAuthorizerCommand = deserializeAws_restJso
|
|
|
1941
1941
|
const deserializeAws_restJson1CreateAuthorizerCommandError = async (output, context) => {
|
|
1942
1942
|
const parsedOutput = {
|
|
1943
1943
|
...output,
|
|
1944
|
-
body: await
|
|
1944
|
+
body: await parseErrorBody(output.body, context),
|
|
1945
1945
|
};
|
|
1946
1946
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1947
1947
|
switch (errorCode) {
|
|
@@ -1999,7 +1999,7 @@ exports.deserializeAws_restJson1CreateDeploymentCommand = deserializeAws_restJso
|
|
|
1999
1999
|
const deserializeAws_restJson1CreateDeploymentCommandError = async (output, context) => {
|
|
2000
2000
|
const parsedOutput = {
|
|
2001
2001
|
...output,
|
|
2002
|
-
body: await
|
|
2002
|
+
body: await parseErrorBody(output.body, context),
|
|
2003
2003
|
};
|
|
2004
2004
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2005
2005
|
switch (errorCode) {
|
|
@@ -2054,7 +2054,7 @@ exports.deserializeAws_restJson1CreateDomainNameCommand = deserializeAws_restJso
|
|
|
2054
2054
|
const deserializeAws_restJson1CreateDomainNameCommandError = async (output, context) => {
|
|
2055
2055
|
const parsedOutput = {
|
|
2056
2056
|
...output,
|
|
2057
|
-
body: await
|
|
2057
|
+
body: await parseErrorBody(output.body, context),
|
|
2058
2058
|
};
|
|
2059
2059
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2060
2060
|
switch (errorCode) {
|
|
@@ -2157,7 +2157,7 @@ exports.deserializeAws_restJson1CreateIntegrationCommand = deserializeAws_restJs
|
|
|
2157
2157
|
const deserializeAws_restJson1CreateIntegrationCommandError = async (output, context) => {
|
|
2158
2158
|
const parsedOutput = {
|
|
2159
2159
|
...output,
|
|
2160
|
-
body: await
|
|
2160
|
+
body: await parseErrorBody(output.body, context),
|
|
2161
2161
|
};
|
|
2162
2162
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2163
2163
|
switch (errorCode) {
|
|
@@ -2215,7 +2215,7 @@ exports.deserializeAws_restJson1CreateIntegrationResponseCommand = deserializeAw
|
|
|
2215
2215
|
const deserializeAws_restJson1CreateIntegrationResponseCommandError = async (output, context) => {
|
|
2216
2216
|
const parsedOutput = {
|
|
2217
2217
|
...output,
|
|
2218
|
-
body: await
|
|
2218
|
+
body: await parseErrorBody(output.body, context),
|
|
2219
2219
|
};
|
|
2220
2220
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2221
2221
|
switch (errorCode) {
|
|
@@ -2270,7 +2270,7 @@ exports.deserializeAws_restJson1CreateModelCommand = deserializeAws_restJson1Cre
|
|
|
2270
2270
|
const deserializeAws_restJson1CreateModelCommandError = async (output, context) => {
|
|
2271
2271
|
const parsedOutput = {
|
|
2272
2272
|
...output,
|
|
2273
|
-
body: await
|
|
2273
|
+
body: await parseErrorBody(output.body, context),
|
|
2274
2274
|
};
|
|
2275
2275
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2276
2276
|
switch (errorCode) {
|
|
@@ -2349,7 +2349,7 @@ exports.deserializeAws_restJson1CreateRouteCommand = deserializeAws_restJson1Cre
|
|
|
2349
2349
|
const deserializeAws_restJson1CreateRouteCommandError = async (output, context) => {
|
|
2350
2350
|
const parsedOutput = {
|
|
2351
2351
|
...output,
|
|
2352
|
-
body: await
|
|
2352
|
+
body: await parseErrorBody(output.body, context),
|
|
2353
2353
|
};
|
|
2354
2354
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2355
2355
|
switch (errorCode) {
|
|
@@ -2404,7 +2404,7 @@ exports.deserializeAws_restJson1CreateRouteResponseCommand = deserializeAws_rest
|
|
|
2404
2404
|
const deserializeAws_restJson1CreateRouteResponseCommandError = async (output, context) => {
|
|
2405
2405
|
const parsedOutput = {
|
|
2406
2406
|
...output,
|
|
2407
|
-
body: await
|
|
2407
|
+
body: await parseErrorBody(output.body, context),
|
|
2408
2408
|
};
|
|
2409
2409
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2410
2410
|
switch (errorCode) {
|
|
@@ -2486,7 +2486,7 @@ exports.deserializeAws_restJson1CreateStageCommand = deserializeAws_restJson1Cre
|
|
|
2486
2486
|
const deserializeAws_restJson1CreateStageCommandError = async (output, context) => {
|
|
2487
2487
|
const parsedOutput = {
|
|
2488
2488
|
...output,
|
|
2489
|
-
body: await
|
|
2489
|
+
body: await parseErrorBody(output.body, context),
|
|
2490
2490
|
};
|
|
2491
2491
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2492
2492
|
switch (errorCode) {
|
|
@@ -2553,7 +2553,7 @@ exports.deserializeAws_restJson1CreateVpcLinkCommand = deserializeAws_restJson1C
|
|
|
2553
2553
|
const deserializeAws_restJson1CreateVpcLinkCommandError = async (output, context) => {
|
|
2554
2554
|
const parsedOutput = {
|
|
2555
2555
|
...output,
|
|
2556
|
-
body: await
|
|
2556
|
+
body: await parseErrorBody(output.body, context),
|
|
2557
2557
|
};
|
|
2558
2558
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2559
2559
|
switch (errorCode) {
|
|
@@ -2587,7 +2587,7 @@ exports.deserializeAws_restJson1DeleteAccessLogSettingsCommand = deserializeAws_
|
|
|
2587
2587
|
const deserializeAws_restJson1DeleteAccessLogSettingsCommandError = async (output, context) => {
|
|
2588
2588
|
const parsedOutput = {
|
|
2589
2589
|
...output,
|
|
2590
|
-
body: await
|
|
2590
|
+
body: await parseErrorBody(output.body, context),
|
|
2591
2591
|
};
|
|
2592
2592
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2593
2593
|
switch (errorCode) {
|
|
@@ -2621,7 +2621,7 @@ exports.deserializeAws_restJson1DeleteApiCommand = deserializeAws_restJson1Delet
|
|
|
2621
2621
|
const deserializeAws_restJson1DeleteApiCommandError = async (output, context) => {
|
|
2622
2622
|
const parsedOutput = {
|
|
2623
2623
|
...output,
|
|
2624
|
-
body: await
|
|
2624
|
+
body: await parseErrorBody(output.body, context),
|
|
2625
2625
|
};
|
|
2626
2626
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2627
2627
|
switch (errorCode) {
|
|
@@ -2655,7 +2655,7 @@ exports.deserializeAws_restJson1DeleteApiMappingCommand = deserializeAws_restJso
|
|
|
2655
2655
|
const deserializeAws_restJson1DeleteApiMappingCommandError = async (output, context) => {
|
|
2656
2656
|
const parsedOutput = {
|
|
2657
2657
|
...output,
|
|
2658
|
-
body: await
|
|
2658
|
+
body: await parseErrorBody(output.body, context),
|
|
2659
2659
|
};
|
|
2660
2660
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2661
2661
|
switch (errorCode) {
|
|
@@ -2692,7 +2692,7 @@ exports.deserializeAws_restJson1DeleteAuthorizerCommand = deserializeAws_restJso
|
|
|
2692
2692
|
const deserializeAws_restJson1DeleteAuthorizerCommandError = async (output, context) => {
|
|
2693
2693
|
const parsedOutput = {
|
|
2694
2694
|
...output,
|
|
2695
|
-
body: await
|
|
2695
|
+
body: await parseErrorBody(output.body, context),
|
|
2696
2696
|
};
|
|
2697
2697
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2698
2698
|
switch (errorCode) {
|
|
@@ -2726,7 +2726,7 @@ exports.deserializeAws_restJson1DeleteCorsConfigurationCommand = deserializeAws_
|
|
|
2726
2726
|
const deserializeAws_restJson1DeleteCorsConfigurationCommandError = async (output, context) => {
|
|
2727
2727
|
const parsedOutput = {
|
|
2728
2728
|
...output,
|
|
2729
|
-
body: await
|
|
2729
|
+
body: await parseErrorBody(output.body, context),
|
|
2730
2730
|
};
|
|
2731
2731
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2732
2732
|
switch (errorCode) {
|
|
@@ -2760,7 +2760,7 @@ exports.deserializeAws_restJson1DeleteDeploymentCommand = deserializeAws_restJso
|
|
|
2760
2760
|
const deserializeAws_restJson1DeleteDeploymentCommandError = async (output, context) => {
|
|
2761
2761
|
const parsedOutput = {
|
|
2762
2762
|
...output,
|
|
2763
|
-
body: await
|
|
2763
|
+
body: await parseErrorBody(output.body, context),
|
|
2764
2764
|
};
|
|
2765
2765
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2766
2766
|
switch (errorCode) {
|
|
@@ -2794,7 +2794,7 @@ exports.deserializeAws_restJson1DeleteDomainNameCommand = deserializeAws_restJso
|
|
|
2794
2794
|
const deserializeAws_restJson1DeleteDomainNameCommandError = 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) {
|
|
@@ -2828,7 +2828,7 @@ exports.deserializeAws_restJson1DeleteIntegrationCommand = deserializeAws_restJs
|
|
|
2828
2828
|
const deserializeAws_restJson1DeleteIntegrationCommandError = async (output, context) => {
|
|
2829
2829
|
const parsedOutput = {
|
|
2830
2830
|
...output,
|
|
2831
|
-
body: await
|
|
2831
|
+
body: await parseErrorBody(output.body, context),
|
|
2832
2832
|
};
|
|
2833
2833
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2834
2834
|
switch (errorCode) {
|
|
@@ -2862,7 +2862,7 @@ exports.deserializeAws_restJson1DeleteIntegrationResponseCommand = deserializeAw
|
|
|
2862
2862
|
const deserializeAws_restJson1DeleteIntegrationResponseCommandError = async (output, context) => {
|
|
2863
2863
|
const parsedOutput = {
|
|
2864
2864
|
...output,
|
|
2865
|
-
body: await
|
|
2865
|
+
body: await parseErrorBody(output.body, context),
|
|
2866
2866
|
};
|
|
2867
2867
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2868
2868
|
switch (errorCode) {
|
|
@@ -2896,7 +2896,7 @@ exports.deserializeAws_restJson1DeleteModelCommand = deserializeAws_restJson1Del
|
|
|
2896
2896
|
const deserializeAws_restJson1DeleteModelCommandError = async (output, context) => {
|
|
2897
2897
|
const parsedOutput = {
|
|
2898
2898
|
...output,
|
|
2899
|
-
body: await
|
|
2899
|
+
body: await parseErrorBody(output.body, context),
|
|
2900
2900
|
};
|
|
2901
2901
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2902
2902
|
switch (errorCode) {
|
|
@@ -2930,7 +2930,7 @@ exports.deserializeAws_restJson1DeleteRouteCommand = deserializeAws_restJson1Del
|
|
|
2930
2930
|
const deserializeAws_restJson1DeleteRouteCommandError = async (output, context) => {
|
|
2931
2931
|
const parsedOutput = {
|
|
2932
2932
|
...output,
|
|
2933
|
-
body: await
|
|
2933
|
+
body: await parseErrorBody(output.body, context),
|
|
2934
2934
|
};
|
|
2935
2935
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2936
2936
|
switch (errorCode) {
|
|
@@ -2964,7 +2964,7 @@ exports.deserializeAws_restJson1DeleteRouteRequestParameterCommand = deserialize
|
|
|
2964
2964
|
const deserializeAws_restJson1DeleteRouteRequestParameterCommandError = async (output, context) => {
|
|
2965
2965
|
const parsedOutput = {
|
|
2966
2966
|
...output,
|
|
2967
|
-
body: await
|
|
2967
|
+
body: await parseErrorBody(output.body, context),
|
|
2968
2968
|
};
|
|
2969
2969
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2970
2970
|
switch (errorCode) {
|
|
@@ -2998,7 +2998,7 @@ exports.deserializeAws_restJson1DeleteRouteResponseCommand = deserializeAws_rest
|
|
|
2998
2998
|
const deserializeAws_restJson1DeleteRouteResponseCommandError = async (output, context) => {
|
|
2999
2999
|
const parsedOutput = {
|
|
3000
3000
|
...output,
|
|
3001
|
-
body: await
|
|
3001
|
+
body: await parseErrorBody(output.body, context),
|
|
3002
3002
|
};
|
|
3003
3003
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3004
3004
|
switch (errorCode) {
|
|
@@ -3032,7 +3032,7 @@ exports.deserializeAws_restJson1DeleteRouteSettingsCommand = deserializeAws_rest
|
|
|
3032
3032
|
const deserializeAws_restJson1DeleteRouteSettingsCommandError = async (output, context) => {
|
|
3033
3033
|
const parsedOutput = {
|
|
3034
3034
|
...output,
|
|
3035
|
-
body: await
|
|
3035
|
+
body: await parseErrorBody(output.body, context),
|
|
3036
3036
|
};
|
|
3037
3037
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3038
3038
|
switch (errorCode) {
|
|
@@ -3066,7 +3066,7 @@ exports.deserializeAws_restJson1DeleteStageCommand = deserializeAws_restJson1Del
|
|
|
3066
3066
|
const deserializeAws_restJson1DeleteStageCommandError = async (output, context) => {
|
|
3067
3067
|
const parsedOutput = {
|
|
3068
3068
|
...output,
|
|
3069
|
-
body: await
|
|
3069
|
+
body: await parseErrorBody(output.body, context),
|
|
3070
3070
|
};
|
|
3071
3071
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3072
3072
|
switch (errorCode) {
|
|
@@ -3100,7 +3100,7 @@ exports.deserializeAws_restJson1DeleteVpcLinkCommand = deserializeAws_restJson1D
|
|
|
3100
3100
|
const deserializeAws_restJson1DeleteVpcLinkCommandError = async (output, context) => {
|
|
3101
3101
|
const parsedOutput = {
|
|
3102
3102
|
...output,
|
|
3103
|
-
body: await
|
|
3103
|
+
body: await parseErrorBody(output.body, context),
|
|
3104
3104
|
};
|
|
3105
3105
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3106
3106
|
switch (errorCode) {
|
|
@@ -3135,7 +3135,7 @@ exports.deserializeAws_restJson1ExportApiCommand = deserializeAws_restJson1Expor
|
|
|
3135
3135
|
const deserializeAws_restJson1ExportApiCommandError = async (output, context) => {
|
|
3136
3136
|
const parsedOutput = {
|
|
3137
3137
|
...output,
|
|
3138
|
-
body: await
|
|
3138
|
+
body: await parseErrorBody(output.body, context),
|
|
3139
3139
|
};
|
|
3140
3140
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3141
3141
|
switch (errorCode) {
|
|
@@ -3220,7 +3220,7 @@ exports.deserializeAws_restJson1GetApiCommand = deserializeAws_restJson1GetApiCo
|
|
|
3220
3220
|
const deserializeAws_restJson1GetApiCommandError = async (output, context) => {
|
|
3221
3221
|
const parsedOutput = {
|
|
3222
3222
|
...output,
|
|
3223
|
-
body: await
|
|
3223
|
+
body: await parseErrorBody(output.body, context),
|
|
3224
3224
|
};
|
|
3225
3225
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3226
3226
|
switch (errorCode) {
|
|
@@ -3266,7 +3266,7 @@ exports.deserializeAws_restJson1GetApiMappingCommand = deserializeAws_restJson1G
|
|
|
3266
3266
|
const deserializeAws_restJson1GetApiMappingCommandError = async (output, context) => {
|
|
3267
3267
|
const parsedOutput = {
|
|
3268
3268
|
...output,
|
|
3269
|
-
body: await
|
|
3269
|
+
body: await parseErrorBody(output.body, context),
|
|
3270
3270
|
};
|
|
3271
3271
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3272
3272
|
switch (errorCode) {
|
|
@@ -3309,7 +3309,7 @@ exports.deserializeAws_restJson1GetApiMappingsCommand = deserializeAws_restJson1
|
|
|
3309
3309
|
const deserializeAws_restJson1GetApiMappingsCommandError = async (output, context) => {
|
|
3310
3310
|
const parsedOutput = {
|
|
3311
3311
|
...output,
|
|
3312
|
-
body: await
|
|
3312
|
+
body: await parseErrorBody(output.body, context),
|
|
3313
3313
|
};
|
|
3314
3314
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3315
3315
|
switch (errorCode) {
|
|
@@ -3352,7 +3352,7 @@ exports.deserializeAws_restJson1GetApisCommand = deserializeAws_restJson1GetApis
|
|
|
3352
3352
|
const deserializeAws_restJson1GetApisCommandError = async (output, context) => {
|
|
3353
3353
|
const parsedOutput = {
|
|
3354
3354
|
...output,
|
|
3355
|
-
body: await
|
|
3355
|
+
body: await parseErrorBody(output.body, context),
|
|
3356
3356
|
};
|
|
3357
3357
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3358
3358
|
switch (errorCode) {
|
|
@@ -3422,7 +3422,7 @@ exports.deserializeAws_restJson1GetAuthorizerCommand = deserializeAws_restJson1G
|
|
|
3422
3422
|
const deserializeAws_restJson1GetAuthorizerCommandError = async (output, context) => {
|
|
3423
3423
|
const parsedOutput = {
|
|
3424
3424
|
...output,
|
|
3425
|
-
body: await
|
|
3425
|
+
body: await parseErrorBody(output.body, context),
|
|
3426
3426
|
};
|
|
3427
3427
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3428
3428
|
switch (errorCode) {
|
|
@@ -3462,7 +3462,7 @@ exports.deserializeAws_restJson1GetAuthorizersCommand = deserializeAws_restJson1
|
|
|
3462
3462
|
const deserializeAws_restJson1GetAuthorizersCommandError = async (output, context) => {
|
|
3463
3463
|
const parsedOutput = {
|
|
3464
3464
|
...output,
|
|
3465
|
-
body: await
|
|
3465
|
+
body: await parseErrorBody(output.body, context),
|
|
3466
3466
|
};
|
|
3467
3467
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3468
3468
|
switch (errorCode) {
|
|
@@ -3517,7 +3517,7 @@ exports.deserializeAws_restJson1GetDeploymentCommand = deserializeAws_restJson1G
|
|
|
3517
3517
|
const deserializeAws_restJson1GetDeploymentCommandError = async (output, context) => {
|
|
3518
3518
|
const parsedOutput = {
|
|
3519
3519
|
...output,
|
|
3520
|
-
body: await
|
|
3520
|
+
body: await parseErrorBody(output.body, context),
|
|
3521
3521
|
};
|
|
3522
3522
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3523
3523
|
switch (errorCode) {
|
|
@@ -3557,7 +3557,7 @@ exports.deserializeAws_restJson1GetDeploymentsCommand = deserializeAws_restJson1
|
|
|
3557
3557
|
const deserializeAws_restJson1GetDeploymentsCommandError = async (output, context) => {
|
|
3558
3558
|
const parsedOutput = {
|
|
3559
3559
|
...output,
|
|
3560
|
-
body: await
|
|
3560
|
+
body: await parseErrorBody(output.body, context),
|
|
3561
3561
|
};
|
|
3562
3562
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3563
3563
|
switch (errorCode) {
|
|
@@ -3609,7 +3609,7 @@ exports.deserializeAws_restJson1GetDomainNameCommand = deserializeAws_restJson1G
|
|
|
3609
3609
|
const deserializeAws_restJson1GetDomainNameCommandError = async (output, context) => {
|
|
3610
3610
|
const parsedOutput = {
|
|
3611
3611
|
...output,
|
|
3612
|
-
body: await
|
|
3612
|
+
body: await parseErrorBody(output.body, context),
|
|
3613
3613
|
};
|
|
3614
3614
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3615
3615
|
switch (errorCode) {
|
|
@@ -3649,7 +3649,7 @@ exports.deserializeAws_restJson1GetDomainNamesCommand = deserializeAws_restJson1
|
|
|
3649
3649
|
const deserializeAws_restJson1GetDomainNamesCommandError = async (output, context) => {
|
|
3650
3650
|
const parsedOutput = {
|
|
3651
3651
|
...output,
|
|
3652
|
-
body: await
|
|
3652
|
+
body: await parseErrorBody(output.body, context),
|
|
3653
3653
|
};
|
|
3654
3654
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3655
3655
|
switch (errorCode) {
|
|
@@ -3746,7 +3746,7 @@ exports.deserializeAws_restJson1GetIntegrationCommand = deserializeAws_restJson1
|
|
|
3746
3746
|
const deserializeAws_restJson1GetIntegrationCommandError = async (output, context) => {
|
|
3747
3747
|
const parsedOutput = {
|
|
3748
3748
|
...output,
|
|
3749
|
-
body: await
|
|
3749
|
+
body: await parseErrorBody(output.body, context),
|
|
3750
3750
|
};
|
|
3751
3751
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3752
3752
|
switch (errorCode) {
|
|
@@ -3798,7 +3798,7 @@ exports.deserializeAws_restJson1GetIntegrationResponseCommand = deserializeAws_r
|
|
|
3798
3798
|
const deserializeAws_restJson1GetIntegrationResponseCommandError = async (output, context) => {
|
|
3799
3799
|
const parsedOutput = {
|
|
3800
3800
|
...output,
|
|
3801
|
-
body: await
|
|
3801
|
+
body: await parseErrorBody(output.body, context),
|
|
3802
3802
|
};
|
|
3803
3803
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3804
3804
|
switch (errorCode) {
|
|
@@ -3838,7 +3838,7 @@ exports.deserializeAws_restJson1GetIntegrationResponsesCommand = deserializeAws_
|
|
|
3838
3838
|
const deserializeAws_restJson1GetIntegrationResponsesCommandError = async (output, context) => {
|
|
3839
3839
|
const parsedOutput = {
|
|
3840
3840
|
...output,
|
|
3841
|
-
body: await
|
|
3841
|
+
body: await parseErrorBody(output.body, context),
|
|
3842
3842
|
};
|
|
3843
3843
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3844
3844
|
switch (errorCode) {
|
|
@@ -3881,7 +3881,7 @@ exports.deserializeAws_restJson1GetIntegrationsCommand = deserializeAws_restJson
|
|
|
3881
3881
|
const deserializeAws_restJson1GetIntegrationsCommandError = async (output, context) => {
|
|
3882
3882
|
const parsedOutput = {
|
|
3883
3883
|
...output,
|
|
3884
|
-
body: await
|
|
3884
|
+
body: await parseErrorBody(output.body, context),
|
|
3885
3885
|
};
|
|
3886
3886
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3887
3887
|
switch (errorCode) {
|
|
@@ -3933,7 +3933,7 @@ exports.deserializeAws_restJson1GetModelCommand = deserializeAws_restJson1GetMod
|
|
|
3933
3933
|
const deserializeAws_restJson1GetModelCommandError = async (output, context) => {
|
|
3934
3934
|
const parsedOutput = {
|
|
3935
3935
|
...output,
|
|
3936
|
-
body: await
|
|
3936
|
+
body: await parseErrorBody(output.body, context),
|
|
3937
3937
|
};
|
|
3938
3938
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3939
3939
|
switch (errorCode) {
|
|
@@ -3973,7 +3973,7 @@ exports.deserializeAws_restJson1GetModelsCommand = deserializeAws_restJson1GetMo
|
|
|
3973
3973
|
const deserializeAws_restJson1GetModelsCommandError = async (output, context) => {
|
|
3974
3974
|
const parsedOutput = {
|
|
3975
3975
|
...output,
|
|
3976
|
-
body: await
|
|
3976
|
+
body: await parseErrorBody(output.body, context),
|
|
3977
3977
|
};
|
|
3978
3978
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3979
3979
|
switch (errorCode) {
|
|
@@ -4013,7 +4013,7 @@ exports.deserializeAws_restJson1GetModelTemplateCommand = deserializeAws_restJso
|
|
|
4013
4013
|
const deserializeAws_restJson1GetModelTemplateCommandError = async (output, context) => {
|
|
4014
4014
|
const parsedOutput = {
|
|
4015
4015
|
...output,
|
|
4016
|
-
body: await
|
|
4016
|
+
body: await parseErrorBody(output.body, context),
|
|
4017
4017
|
};
|
|
4018
4018
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4019
4019
|
switch (errorCode) {
|
|
@@ -4086,7 +4086,7 @@ exports.deserializeAws_restJson1GetRouteCommand = deserializeAws_restJson1GetRou
|
|
|
4086
4086
|
const deserializeAws_restJson1GetRouteCommandError = async (output, context) => {
|
|
4087
4087
|
const parsedOutput = {
|
|
4088
4088
|
...output,
|
|
4089
|
-
body: await
|
|
4089
|
+
body: await parseErrorBody(output.body, context),
|
|
4090
4090
|
};
|
|
4091
4091
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4092
4092
|
switch (errorCode) {
|
|
@@ -4135,7 +4135,7 @@ exports.deserializeAws_restJson1GetRouteResponseCommand = deserializeAws_restJso
|
|
|
4135
4135
|
const deserializeAws_restJson1GetRouteResponseCommandError = async (output, context) => {
|
|
4136
4136
|
const parsedOutput = {
|
|
4137
4137
|
...output,
|
|
4138
|
-
body: await
|
|
4138
|
+
body: await parseErrorBody(output.body, context),
|
|
4139
4139
|
};
|
|
4140
4140
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4141
4141
|
switch (errorCode) {
|
|
@@ -4175,7 +4175,7 @@ exports.deserializeAws_restJson1GetRouteResponsesCommand = deserializeAws_restJs
|
|
|
4175
4175
|
const deserializeAws_restJson1GetRouteResponsesCommandError = async (output, context) => {
|
|
4176
4176
|
const parsedOutput = {
|
|
4177
4177
|
...output,
|
|
4178
|
-
body: await
|
|
4178
|
+
body: await parseErrorBody(output.body, context),
|
|
4179
4179
|
};
|
|
4180
4180
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4181
4181
|
switch (errorCode) {
|
|
@@ -4218,7 +4218,7 @@ exports.deserializeAws_restJson1GetRoutesCommand = deserializeAws_restJson1GetRo
|
|
|
4218
4218
|
const deserializeAws_restJson1GetRoutesCommandError = async (output, context) => {
|
|
4219
4219
|
const parsedOutput = {
|
|
4220
4220
|
...output,
|
|
4221
|
-
body: await
|
|
4221
|
+
body: await parseErrorBody(output.body, context),
|
|
4222
4222
|
};
|
|
4223
4223
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4224
4224
|
switch (errorCode) {
|
|
@@ -4297,7 +4297,7 @@ exports.deserializeAws_restJson1GetStageCommand = deserializeAws_restJson1GetSta
|
|
|
4297
4297
|
const deserializeAws_restJson1GetStageCommandError = async (output, context) => {
|
|
4298
4298
|
const parsedOutput = {
|
|
4299
4299
|
...output,
|
|
4300
|
-
body: await
|
|
4300
|
+
body: await parseErrorBody(output.body, context),
|
|
4301
4301
|
};
|
|
4302
4302
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4303
4303
|
switch (errorCode) {
|
|
@@ -4337,7 +4337,7 @@ exports.deserializeAws_restJson1GetStagesCommand = deserializeAws_restJson1GetSt
|
|
|
4337
4337
|
const deserializeAws_restJson1GetStagesCommandError = async (output, context) => {
|
|
4338
4338
|
const parsedOutput = {
|
|
4339
4339
|
...output,
|
|
4340
|
-
body: await
|
|
4340
|
+
body: await parseErrorBody(output.body, context),
|
|
4341
4341
|
};
|
|
4342
4342
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4343
4343
|
switch (errorCode) {
|
|
@@ -4377,7 +4377,7 @@ exports.deserializeAws_restJson1GetTagsCommand = deserializeAws_restJson1GetTags
|
|
|
4377
4377
|
const deserializeAws_restJson1GetTagsCommandError = async (output, context) => {
|
|
4378
4378
|
const parsedOutput = {
|
|
4379
4379
|
...output,
|
|
4380
|
-
body: await
|
|
4380
|
+
body: await parseErrorBody(output.body, context),
|
|
4381
4381
|
};
|
|
4382
4382
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4383
4383
|
switch (errorCode) {
|
|
@@ -4444,7 +4444,7 @@ exports.deserializeAws_restJson1GetVpcLinkCommand = deserializeAws_restJson1GetV
|
|
|
4444
4444
|
const deserializeAws_restJson1GetVpcLinkCommandError = async (output, context) => {
|
|
4445
4445
|
const parsedOutput = {
|
|
4446
4446
|
...output,
|
|
4447
|
-
body: await
|
|
4447
|
+
body: await parseErrorBody(output.body, context),
|
|
4448
4448
|
};
|
|
4449
4449
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4450
4450
|
switch (errorCode) {
|
|
@@ -4484,7 +4484,7 @@ exports.deserializeAws_restJson1GetVpcLinksCommand = deserializeAws_restJson1Get
|
|
|
4484
4484
|
const deserializeAws_restJson1GetVpcLinksCommandError = async (output, context) => {
|
|
4485
4485
|
const parsedOutput = {
|
|
4486
4486
|
...output,
|
|
4487
|
-
body: await
|
|
4487
|
+
body: await parseErrorBody(output.body, context),
|
|
4488
4488
|
};
|
|
4489
4489
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4490
4490
|
switch (errorCode) {
|
|
@@ -4566,7 +4566,7 @@ exports.deserializeAws_restJson1ImportApiCommand = deserializeAws_restJson1Impor
|
|
|
4566
4566
|
const deserializeAws_restJson1ImportApiCommandError = async (output, context) => {
|
|
4567
4567
|
const parsedOutput = {
|
|
4568
4568
|
...output,
|
|
4569
|
-
body: await
|
|
4569
|
+
body: await parseErrorBody(output.body, context),
|
|
4570
4570
|
};
|
|
4571
4571
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4572
4572
|
switch (errorCode) {
|
|
@@ -4654,7 +4654,7 @@ exports.deserializeAws_restJson1ReimportApiCommand = deserializeAws_restJson1Rei
|
|
|
4654
4654
|
const deserializeAws_restJson1ReimportApiCommandError = async (output, context) => {
|
|
4655
4655
|
const parsedOutput = {
|
|
4656
4656
|
...output,
|
|
4657
|
-
body: await
|
|
4657
|
+
body: await parseErrorBody(output.body, context),
|
|
4658
4658
|
};
|
|
4659
4659
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4660
4660
|
switch (errorCode) {
|
|
@@ -4694,7 +4694,7 @@ exports.deserializeAws_restJson1ResetAuthorizersCacheCommand = deserializeAws_re
|
|
|
4694
4694
|
const deserializeAws_restJson1ResetAuthorizersCacheCommandError = async (output, context) => {
|
|
4695
4695
|
const parsedOutput = {
|
|
4696
4696
|
...output,
|
|
4697
|
-
body: await
|
|
4697
|
+
body: await parseErrorBody(output.body, context),
|
|
4698
4698
|
};
|
|
4699
4699
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4700
4700
|
switch (errorCode) {
|
|
@@ -4728,7 +4728,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
4728
4728
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
4729
4729
|
const parsedOutput = {
|
|
4730
4730
|
...output,
|
|
4731
|
-
body: await
|
|
4731
|
+
body: await parseErrorBody(output.body, context),
|
|
4732
4732
|
};
|
|
4733
4733
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4734
4734
|
switch (errorCode) {
|
|
@@ -4768,7 +4768,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
4768
4768
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
4769
4769
|
const parsedOutput = {
|
|
4770
4770
|
...output,
|
|
4771
|
-
body: await
|
|
4771
|
+
body: await parseErrorBody(output.body, context),
|
|
4772
4772
|
};
|
|
4773
4773
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4774
4774
|
switch (errorCode) {
|
|
@@ -4856,7 +4856,7 @@ exports.deserializeAws_restJson1UpdateApiCommand = deserializeAws_restJson1Updat
|
|
|
4856
4856
|
const deserializeAws_restJson1UpdateApiCommandError = async (output, context) => {
|
|
4857
4857
|
const parsedOutput = {
|
|
4858
4858
|
...output,
|
|
4859
|
-
body: await
|
|
4859
|
+
body: await parseErrorBody(output.body, context),
|
|
4860
4860
|
};
|
|
4861
4861
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4862
4862
|
switch (errorCode) {
|
|
@@ -4908,7 +4908,7 @@ exports.deserializeAws_restJson1UpdateApiMappingCommand = deserializeAws_restJso
|
|
|
4908
4908
|
const deserializeAws_restJson1UpdateApiMappingCommandError = async (output, context) => {
|
|
4909
4909
|
const parsedOutput = {
|
|
4910
4910
|
...output,
|
|
4911
|
-
body: await
|
|
4911
|
+
body: await parseErrorBody(output.body, context),
|
|
4912
4912
|
};
|
|
4913
4913
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4914
4914
|
switch (errorCode) {
|
|
@@ -4981,7 +4981,7 @@ exports.deserializeAws_restJson1UpdateAuthorizerCommand = deserializeAws_restJso
|
|
|
4981
4981
|
const deserializeAws_restJson1UpdateAuthorizerCommandError = async (output, context) => {
|
|
4982
4982
|
const parsedOutput = {
|
|
4983
4983
|
...output,
|
|
4984
|
-
body: await
|
|
4984
|
+
body: await parseErrorBody(output.body, context),
|
|
4985
4985
|
};
|
|
4986
4986
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4987
4987
|
switch (errorCode) {
|
|
@@ -5039,7 +5039,7 @@ exports.deserializeAws_restJson1UpdateDeploymentCommand = deserializeAws_restJso
|
|
|
5039
5039
|
const deserializeAws_restJson1UpdateDeploymentCommandError = async (output, context) => {
|
|
5040
5040
|
const parsedOutput = {
|
|
5041
5041
|
...output,
|
|
5042
|
-
body: await
|
|
5042
|
+
body: await parseErrorBody(output.body, context),
|
|
5043
5043
|
};
|
|
5044
5044
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5045
5045
|
switch (errorCode) {
|
|
@@ -5094,7 +5094,7 @@ exports.deserializeAws_restJson1UpdateDomainNameCommand = deserializeAws_restJso
|
|
|
5094
5094
|
const deserializeAws_restJson1UpdateDomainNameCommandError = async (output, context) => {
|
|
5095
5095
|
const parsedOutput = {
|
|
5096
5096
|
...output,
|
|
5097
|
-
body: await
|
|
5097
|
+
body: await parseErrorBody(output.body, context),
|
|
5098
5098
|
};
|
|
5099
5099
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5100
5100
|
switch (errorCode) {
|
|
@@ -5194,7 +5194,7 @@ exports.deserializeAws_restJson1UpdateIntegrationCommand = deserializeAws_restJs
|
|
|
5194
5194
|
const deserializeAws_restJson1UpdateIntegrationCommandError = async (output, context) => {
|
|
5195
5195
|
const parsedOutput = {
|
|
5196
5196
|
...output,
|
|
5197
|
-
body: await
|
|
5197
|
+
body: await parseErrorBody(output.body, context),
|
|
5198
5198
|
};
|
|
5199
5199
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5200
5200
|
switch (errorCode) {
|
|
@@ -5252,7 +5252,7 @@ exports.deserializeAws_restJson1UpdateIntegrationResponseCommand = deserializeAw
|
|
|
5252
5252
|
const deserializeAws_restJson1UpdateIntegrationResponseCommandError = async (output, context) => {
|
|
5253
5253
|
const parsedOutput = {
|
|
5254
5254
|
...output,
|
|
5255
|
-
body: await
|
|
5255
|
+
body: await parseErrorBody(output.body, context),
|
|
5256
5256
|
};
|
|
5257
5257
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5258
5258
|
switch (errorCode) {
|
|
@@ -5307,7 +5307,7 @@ exports.deserializeAws_restJson1UpdateModelCommand = deserializeAws_restJson1Upd
|
|
|
5307
5307
|
const deserializeAws_restJson1UpdateModelCommandError = async (output, context) => {
|
|
5308
5308
|
const parsedOutput = {
|
|
5309
5309
|
...output,
|
|
5310
|
-
body: await
|
|
5310
|
+
body: await parseErrorBody(output.body, context),
|
|
5311
5311
|
};
|
|
5312
5312
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5313
5313
|
switch (errorCode) {
|
|
@@ -5386,7 +5386,7 @@ exports.deserializeAws_restJson1UpdateRouteCommand = deserializeAws_restJson1Upd
|
|
|
5386
5386
|
const deserializeAws_restJson1UpdateRouteCommandError = async (output, context) => {
|
|
5387
5387
|
const parsedOutput = {
|
|
5388
5388
|
...output,
|
|
5389
|
-
body: await
|
|
5389
|
+
body: await parseErrorBody(output.body, context),
|
|
5390
5390
|
};
|
|
5391
5391
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5392
5392
|
switch (errorCode) {
|
|
@@ -5441,7 +5441,7 @@ exports.deserializeAws_restJson1UpdateRouteResponseCommand = deserializeAws_rest
|
|
|
5441
5441
|
const deserializeAws_restJson1UpdateRouteResponseCommandError = async (output, context) => {
|
|
5442
5442
|
const parsedOutput = {
|
|
5443
5443
|
...output,
|
|
5444
|
-
body: await
|
|
5444
|
+
body: await parseErrorBody(output.body, context),
|
|
5445
5445
|
};
|
|
5446
5446
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5447
5447
|
switch (errorCode) {
|
|
@@ -5523,7 +5523,7 @@ exports.deserializeAws_restJson1UpdateStageCommand = deserializeAws_restJson1Upd
|
|
|
5523
5523
|
const deserializeAws_restJson1UpdateStageCommandError = async (output, context) => {
|
|
5524
5524
|
const parsedOutput = {
|
|
5525
5525
|
...output,
|
|
5526
|
-
body: await
|
|
5526
|
+
body: await parseErrorBody(output.body, context),
|
|
5527
5527
|
};
|
|
5528
5528
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5529
5529
|
switch (errorCode) {
|
|
@@ -5590,7 +5590,7 @@ exports.deserializeAws_restJson1UpdateVpcLinkCommand = deserializeAws_restJson1U
|
|
|
5590
5590
|
const deserializeAws_restJson1UpdateVpcLinkCommandError = async (output, context) => {
|
|
5591
5591
|
const parsedOutput = {
|
|
5592
5592
|
...output,
|
|
5593
|
-
body: await
|
|
5593
|
+
body: await parseErrorBody(output.body, context),
|
|
5594
5594
|
};
|
|
5595
5595
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5596
5596
|
switch (errorCode) {
|
|
@@ -6512,6 +6512,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
6512
6512
|
}
|
|
6513
6513
|
return {};
|
|
6514
6514
|
});
|
|
6515
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
6516
|
+
var _a;
|
|
6517
|
+
const value = await parseBody(errorBody, context);
|
|
6518
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
6519
|
+
return value;
|
|
6520
|
+
};
|
|
6515
6521
|
const loadRestJsonErrorCode = (output, data) => {
|
|
6516
6522
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
6517
6523
|
const sanitizeErrorCode = (rawValue) => {
|