@aws-sdk/client-apigatewayv2 3.52.0 → 3.53.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/index.js +3 -0
- package/dist-cjs/models/ApiGatewayV2ServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +77 -4
- package/dist-cjs/protocols/Aws_restJson1.js +576 -2062
- package/dist-es/index.js +1 -0
- package/dist-es/models/ApiGatewayV2ServiceException.js +12 -0
- package/dist-es/models/models_0.js +69 -1
- package/dist-es/protocols/Aws_restJson1.js +1357 -2356
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/ApiGatewayV2ServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +37 -16
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/ApiGatewayV2ServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +2 -1
- package/package.json +25 -25
|
@@ -5,6 +5,8 @@ exports.deserializeAws_restJson1DeleteVpcLinkCommand = exports.deserializeAws_re
|
|
|
5
5
|
exports.deserializeAws_restJson1UpdateVpcLinkCommand = exports.deserializeAws_restJson1UpdateStageCommand = exports.deserializeAws_restJson1UpdateRouteResponseCommand = exports.deserializeAws_restJson1UpdateRouteCommand = exports.deserializeAws_restJson1UpdateModelCommand = exports.deserializeAws_restJson1UpdateIntegrationResponseCommand = exports.deserializeAws_restJson1UpdateIntegrationCommand = exports.deserializeAws_restJson1UpdateDomainNameCommand = exports.deserializeAws_restJson1UpdateDeploymentCommand = exports.deserializeAws_restJson1UpdateAuthorizerCommand = exports.deserializeAws_restJson1UpdateApiMappingCommand = exports.deserializeAws_restJson1UpdateApiCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ResetAuthorizersCacheCommand = exports.deserializeAws_restJson1ReimportApiCommand = exports.deserializeAws_restJson1ImportApiCommand = exports.deserializeAws_restJson1GetVpcLinksCommand = exports.deserializeAws_restJson1GetVpcLinkCommand = exports.deserializeAws_restJson1GetTagsCommand = exports.deserializeAws_restJson1GetStagesCommand = exports.deserializeAws_restJson1GetStageCommand = exports.deserializeAws_restJson1GetRoutesCommand = exports.deserializeAws_restJson1GetRouteResponsesCommand = exports.deserializeAws_restJson1GetRouteResponseCommand = exports.deserializeAws_restJson1GetRouteCommand = exports.deserializeAws_restJson1GetModelTemplateCommand = exports.deserializeAws_restJson1GetModelsCommand = exports.deserializeAws_restJson1GetModelCommand = exports.deserializeAws_restJson1GetIntegrationsCommand = exports.deserializeAws_restJson1GetIntegrationResponsesCommand = exports.deserializeAws_restJson1GetIntegrationResponseCommand = exports.deserializeAws_restJson1GetIntegrationCommand = exports.deserializeAws_restJson1GetDomainNamesCommand = exports.deserializeAws_restJson1GetDomainNameCommand = exports.deserializeAws_restJson1GetDeploymentsCommand = exports.deserializeAws_restJson1GetDeploymentCommand = exports.deserializeAws_restJson1GetAuthorizersCommand = exports.deserializeAws_restJson1GetAuthorizerCommand = exports.deserializeAws_restJson1GetApisCommand = exports.deserializeAws_restJson1GetApiMappingsCommand = exports.deserializeAws_restJson1GetApiMappingCommand = exports.deserializeAws_restJson1GetApiCommand = exports.deserializeAws_restJson1ExportApiCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
|
+
const ApiGatewayV2ServiceException_1 = require("../models/ApiGatewayV2ServiceException");
|
|
9
|
+
const models_0_1 = require("../models/models_0");
|
|
8
10
|
const serializeAws_restJson1CreateApiCommand = async (input, context) => {
|
|
9
11
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
12
|
const headers = {
|
|
@@ -2926,51 +2928,25 @@ const deserializeAws_restJson1CreateApiCommandError = async (output, context) =>
|
|
|
2926
2928
|
switch (errorCode) {
|
|
2927
2929
|
case "BadRequestException":
|
|
2928
2930
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
2929
|
-
|
|
2930
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2931
|
-
name: errorCode,
|
|
2932
|
-
$metadata: deserializeMetadata(output),
|
|
2933
|
-
};
|
|
2934
|
-
break;
|
|
2931
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2935
2932
|
case "ConflictException":
|
|
2936
2933
|
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
2937
|
-
|
|
2938
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2939
|
-
name: errorCode,
|
|
2940
|
-
$metadata: deserializeMetadata(output),
|
|
2941
|
-
};
|
|
2942
|
-
break;
|
|
2934
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2943
2935
|
case "NotFoundException":
|
|
2944
2936
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
2945
|
-
|
|
2946
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
2947
|
-
name: errorCode,
|
|
2948
|
-
$metadata: deserializeMetadata(output),
|
|
2949
|
-
};
|
|
2950
|
-
break;
|
|
2937
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
2951
2938
|
case "TooManyRequestsException":
|
|
2952
2939
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
2953
|
-
|
|
2954
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
2955
|
-
name: errorCode,
|
|
2956
|
-
$metadata: deserializeMetadata(output),
|
|
2957
|
-
};
|
|
2958
|
-
break;
|
|
2940
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2959
2941
|
default:
|
|
2960
2942
|
const parsedBody = parsedOutput.body;
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
...parsedBody,
|
|
2964
|
-
name: `${errorCode}`,
|
|
2965
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2943
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
2944
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2966
2945
|
$fault: "client",
|
|
2967
2946
|
$metadata: deserializeMetadata(output),
|
|
2968
|
-
};
|
|
2947
|
+
});
|
|
2948
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2969
2949
|
}
|
|
2970
|
-
const message = response.message || response.Message || errorCode;
|
|
2971
|
-
response.message = message;
|
|
2972
|
-
delete response.Message;
|
|
2973
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2974
2950
|
};
|
|
2975
2951
|
const deserializeAws_restJson1CreateApiMappingCommand = async (output, context) => {
|
|
2976
2952
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -3010,51 +2986,25 @@ const deserializeAws_restJson1CreateApiMappingCommandError = async (output, cont
|
|
|
3010
2986
|
switch (errorCode) {
|
|
3011
2987
|
case "BadRequestException":
|
|
3012
2988
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3013
|
-
|
|
3014
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
3015
|
-
name: errorCode,
|
|
3016
|
-
$metadata: deserializeMetadata(output),
|
|
3017
|
-
};
|
|
3018
|
-
break;
|
|
2989
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3019
2990
|
case "ConflictException":
|
|
3020
2991
|
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3021
|
-
|
|
3022
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
3023
|
-
name: errorCode,
|
|
3024
|
-
$metadata: deserializeMetadata(output),
|
|
3025
|
-
};
|
|
3026
|
-
break;
|
|
2992
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3027
2993
|
case "NotFoundException":
|
|
3028
2994
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3029
|
-
|
|
3030
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
3031
|
-
name: errorCode,
|
|
3032
|
-
$metadata: deserializeMetadata(output),
|
|
3033
|
-
};
|
|
3034
|
-
break;
|
|
2995
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
3035
2996
|
case "TooManyRequestsException":
|
|
3036
2997
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3037
|
-
|
|
3038
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
3039
|
-
name: errorCode,
|
|
3040
|
-
$metadata: deserializeMetadata(output),
|
|
3041
|
-
};
|
|
3042
|
-
break;
|
|
2998
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3043
2999
|
default:
|
|
3044
3000
|
const parsedBody = parsedOutput.body;
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
...parsedBody,
|
|
3048
|
-
name: `${errorCode}`,
|
|
3049
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3001
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
3002
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3050
3003
|
$fault: "client",
|
|
3051
3004
|
$metadata: deserializeMetadata(output),
|
|
3052
|
-
};
|
|
3005
|
+
});
|
|
3006
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3053
3007
|
}
|
|
3054
|
-
const message = response.message || response.Message || errorCode;
|
|
3055
|
-
response.message = message;
|
|
3056
|
-
delete response.Message;
|
|
3057
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3058
3008
|
};
|
|
3059
3009
|
const deserializeAws_restJson1CreateAuthorizerCommand = async (output, context) => {
|
|
3060
3010
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -3122,51 +3072,25 @@ const deserializeAws_restJson1CreateAuthorizerCommandError = async (output, cont
|
|
|
3122
3072
|
switch (errorCode) {
|
|
3123
3073
|
case "BadRequestException":
|
|
3124
3074
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3125
|
-
|
|
3126
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
3127
|
-
name: errorCode,
|
|
3128
|
-
$metadata: deserializeMetadata(output),
|
|
3129
|
-
};
|
|
3130
|
-
break;
|
|
3075
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3131
3076
|
case "ConflictException":
|
|
3132
3077
|
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3133
|
-
|
|
3134
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
3135
|
-
name: errorCode,
|
|
3136
|
-
$metadata: deserializeMetadata(output),
|
|
3137
|
-
};
|
|
3138
|
-
break;
|
|
3078
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3139
3079
|
case "NotFoundException":
|
|
3140
3080
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3141
|
-
|
|
3142
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
3143
|
-
name: errorCode,
|
|
3144
|
-
$metadata: deserializeMetadata(output),
|
|
3145
|
-
};
|
|
3146
|
-
break;
|
|
3081
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
3147
3082
|
case "TooManyRequestsException":
|
|
3148
3083
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3149
|
-
|
|
3150
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
3151
|
-
name: errorCode,
|
|
3152
|
-
$metadata: deserializeMetadata(output),
|
|
3153
|
-
};
|
|
3154
|
-
break;
|
|
3084
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3155
3085
|
default:
|
|
3156
3086
|
const parsedBody = parsedOutput.body;
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
...parsedBody,
|
|
3160
|
-
name: `${errorCode}`,
|
|
3161
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3087
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
3088
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3162
3089
|
$fault: "client",
|
|
3163
3090
|
$metadata: deserializeMetadata(output),
|
|
3164
|
-
};
|
|
3091
|
+
});
|
|
3092
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3165
3093
|
}
|
|
3166
|
-
const message = response.message || response.Message || errorCode;
|
|
3167
|
-
response.message = message;
|
|
3168
|
-
delete response.Message;
|
|
3169
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3170
3094
|
};
|
|
3171
3095
|
const deserializeAws_restJson1CreateDeploymentCommand = async (output, context) => {
|
|
3172
3096
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -3214,51 +3138,25 @@ const deserializeAws_restJson1CreateDeploymentCommandError = async (output, cont
|
|
|
3214
3138
|
switch (errorCode) {
|
|
3215
3139
|
case "BadRequestException":
|
|
3216
3140
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3217
|
-
|
|
3218
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
3219
|
-
name: errorCode,
|
|
3220
|
-
$metadata: deserializeMetadata(output),
|
|
3221
|
-
};
|
|
3222
|
-
break;
|
|
3141
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3223
3142
|
case "ConflictException":
|
|
3224
3143
|
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3225
|
-
|
|
3226
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
3227
|
-
name: errorCode,
|
|
3228
|
-
$metadata: deserializeMetadata(output),
|
|
3229
|
-
};
|
|
3230
|
-
break;
|
|
3144
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3231
3145
|
case "NotFoundException":
|
|
3232
3146
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3233
|
-
|
|
3234
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
3235
|
-
name: errorCode,
|
|
3236
|
-
$metadata: deserializeMetadata(output),
|
|
3237
|
-
};
|
|
3238
|
-
break;
|
|
3147
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
3239
3148
|
case "TooManyRequestsException":
|
|
3240
3149
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3241
|
-
|
|
3242
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
3243
|
-
name: errorCode,
|
|
3244
|
-
$metadata: deserializeMetadata(output),
|
|
3245
|
-
};
|
|
3246
|
-
break;
|
|
3150
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3247
3151
|
default:
|
|
3248
3152
|
const parsedBody = parsedOutput.body;
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
...parsedBody,
|
|
3252
|
-
name: `${errorCode}`,
|
|
3253
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3153
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
3154
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3254
3155
|
$fault: "client",
|
|
3255
3156
|
$metadata: deserializeMetadata(output),
|
|
3256
|
-
};
|
|
3157
|
+
});
|
|
3158
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3257
3159
|
}
|
|
3258
|
-
const message = response.message || response.Message || errorCode;
|
|
3259
|
-
response.message = message;
|
|
3260
|
-
delete response.Message;
|
|
3261
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3262
3160
|
};
|
|
3263
3161
|
const deserializeAws_restJson1CreateDomainNameCommand = async (output, context) => {
|
|
3264
3162
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -3302,59 +3200,28 @@ const deserializeAws_restJson1CreateDomainNameCommandError = async (output, cont
|
|
|
3302
3200
|
switch (errorCode) {
|
|
3303
3201
|
case "AccessDeniedException":
|
|
3304
3202
|
case "com.amazonaws.apigatewayv2#AccessDeniedException":
|
|
3305
|
-
|
|
3306
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3307
|
-
name: errorCode,
|
|
3308
|
-
$metadata: deserializeMetadata(output),
|
|
3309
|
-
};
|
|
3310
|
-
break;
|
|
3203
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3311
3204
|
case "BadRequestException":
|
|
3312
3205
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3313
|
-
|
|
3314
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
3315
|
-
name: errorCode,
|
|
3316
|
-
$metadata: deserializeMetadata(output),
|
|
3317
|
-
};
|
|
3318
|
-
break;
|
|
3206
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3319
3207
|
case "ConflictException":
|
|
3320
3208
|
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3321
|
-
|
|
3322
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
3323
|
-
name: errorCode,
|
|
3324
|
-
$metadata: deserializeMetadata(output),
|
|
3325
|
-
};
|
|
3326
|
-
break;
|
|
3209
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3327
3210
|
case "NotFoundException":
|
|
3328
3211
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3329
|
-
|
|
3330
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
3331
|
-
name: errorCode,
|
|
3332
|
-
$metadata: deserializeMetadata(output),
|
|
3333
|
-
};
|
|
3334
|
-
break;
|
|
3212
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
3335
3213
|
case "TooManyRequestsException":
|
|
3336
3214
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3337
|
-
|
|
3338
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
3339
|
-
name: errorCode,
|
|
3340
|
-
$metadata: deserializeMetadata(output),
|
|
3341
|
-
};
|
|
3342
|
-
break;
|
|
3215
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3343
3216
|
default:
|
|
3344
3217
|
const parsedBody = parsedOutput.body;
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
...parsedBody,
|
|
3348
|
-
name: `${errorCode}`,
|
|
3349
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3218
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
3219
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3350
3220
|
$fault: "client",
|
|
3351
3221
|
$metadata: deserializeMetadata(output),
|
|
3352
|
-
};
|
|
3222
|
+
});
|
|
3223
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3353
3224
|
}
|
|
3354
|
-
const message = response.message || response.Message || errorCode;
|
|
3355
|
-
response.message = message;
|
|
3356
|
-
delete response.Message;
|
|
3357
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3358
3225
|
};
|
|
3359
3226
|
const deserializeAws_restJson1CreateIntegrationCommand = async (output, context) => {
|
|
3360
3227
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -3459,51 +3326,25 @@ const deserializeAws_restJson1CreateIntegrationCommandError = async (output, con
|
|
|
3459
3326
|
switch (errorCode) {
|
|
3460
3327
|
case "BadRequestException":
|
|
3461
3328
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3462
|
-
|
|
3463
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
3464
|
-
name: errorCode,
|
|
3465
|
-
$metadata: deserializeMetadata(output),
|
|
3466
|
-
};
|
|
3467
|
-
break;
|
|
3329
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3468
3330
|
case "ConflictException":
|
|
3469
3331
|
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3470
|
-
|
|
3471
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
3472
|
-
name: errorCode,
|
|
3473
|
-
$metadata: deserializeMetadata(output),
|
|
3474
|
-
};
|
|
3475
|
-
break;
|
|
3332
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3476
3333
|
case "NotFoundException":
|
|
3477
3334
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3478
|
-
|
|
3479
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
3480
|
-
name: errorCode,
|
|
3481
|
-
$metadata: deserializeMetadata(output),
|
|
3482
|
-
};
|
|
3483
|
-
break;
|
|
3335
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
3484
3336
|
case "TooManyRequestsException":
|
|
3485
3337
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3486
|
-
|
|
3487
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
3488
|
-
name: errorCode,
|
|
3489
|
-
$metadata: deserializeMetadata(output),
|
|
3490
|
-
};
|
|
3491
|
-
break;
|
|
3338
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3492
3339
|
default:
|
|
3493
3340
|
const parsedBody = parsedOutput.body;
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
...parsedBody,
|
|
3497
|
-
name: `${errorCode}`,
|
|
3498
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3341
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
3342
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3499
3343
|
$fault: "client",
|
|
3500
3344
|
$metadata: deserializeMetadata(output),
|
|
3501
|
-
};
|
|
3345
|
+
});
|
|
3346
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3502
3347
|
}
|
|
3503
|
-
const message = response.message || response.Message || errorCode;
|
|
3504
|
-
response.message = message;
|
|
3505
|
-
delete response.Message;
|
|
3506
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3507
3348
|
};
|
|
3508
3349
|
const deserializeAws_restJson1CreateIntegrationResponseCommand = async (output, context) => {
|
|
3509
3350
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -3551,51 +3392,25 @@ const deserializeAws_restJson1CreateIntegrationResponseCommandError = async (out
|
|
|
3551
3392
|
switch (errorCode) {
|
|
3552
3393
|
case "BadRequestException":
|
|
3553
3394
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3554
|
-
|
|
3555
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
3556
|
-
name: errorCode,
|
|
3557
|
-
$metadata: deserializeMetadata(output),
|
|
3558
|
-
};
|
|
3559
|
-
break;
|
|
3395
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3560
3396
|
case "ConflictException":
|
|
3561
3397
|
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3562
|
-
|
|
3563
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
3564
|
-
name: errorCode,
|
|
3565
|
-
$metadata: deserializeMetadata(output),
|
|
3566
|
-
};
|
|
3567
|
-
break;
|
|
3398
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3568
3399
|
case "NotFoundException":
|
|
3569
3400
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3570
|
-
|
|
3571
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
3572
|
-
name: errorCode,
|
|
3573
|
-
$metadata: deserializeMetadata(output),
|
|
3574
|
-
};
|
|
3575
|
-
break;
|
|
3401
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
3576
3402
|
case "TooManyRequestsException":
|
|
3577
3403
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3578
|
-
|
|
3579
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
3580
|
-
name: errorCode,
|
|
3581
|
-
$metadata: deserializeMetadata(output),
|
|
3582
|
-
};
|
|
3583
|
-
break;
|
|
3404
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3584
3405
|
default:
|
|
3585
3406
|
const parsedBody = parsedOutput.body;
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
...parsedBody,
|
|
3589
|
-
name: `${errorCode}`,
|
|
3590
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3407
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
3408
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3591
3409
|
$fault: "client",
|
|
3592
3410
|
$metadata: deserializeMetadata(output),
|
|
3593
|
-
};
|
|
3411
|
+
});
|
|
3412
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3594
3413
|
}
|
|
3595
|
-
const message = response.message || response.Message || errorCode;
|
|
3596
|
-
response.message = message;
|
|
3597
|
-
delete response.Message;
|
|
3598
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3599
3414
|
};
|
|
3600
3415
|
const deserializeAws_restJson1CreateModelCommand = async (output, context) => {
|
|
3601
3416
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -3639,51 +3454,25 @@ const deserializeAws_restJson1CreateModelCommandError = async (output, context)
|
|
|
3639
3454
|
switch (errorCode) {
|
|
3640
3455
|
case "BadRequestException":
|
|
3641
3456
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3642
|
-
|
|
3643
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
3644
|
-
name: errorCode,
|
|
3645
|
-
$metadata: deserializeMetadata(output),
|
|
3646
|
-
};
|
|
3647
|
-
break;
|
|
3457
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3648
3458
|
case "ConflictException":
|
|
3649
3459
|
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3650
|
-
|
|
3651
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
3652
|
-
name: errorCode,
|
|
3653
|
-
$metadata: deserializeMetadata(output),
|
|
3654
|
-
};
|
|
3655
|
-
break;
|
|
3460
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3656
3461
|
case "NotFoundException":
|
|
3657
3462
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3658
|
-
|
|
3659
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
3660
|
-
name: errorCode,
|
|
3661
|
-
$metadata: deserializeMetadata(output),
|
|
3662
|
-
};
|
|
3663
|
-
break;
|
|
3463
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
3664
3464
|
case "TooManyRequestsException":
|
|
3665
3465
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3666
|
-
|
|
3667
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
3668
|
-
name: errorCode,
|
|
3669
|
-
$metadata: deserializeMetadata(output),
|
|
3670
|
-
};
|
|
3671
|
-
break;
|
|
3466
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3672
3467
|
default:
|
|
3673
3468
|
const parsedBody = parsedOutput.body;
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
...parsedBody,
|
|
3677
|
-
name: `${errorCode}`,
|
|
3678
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3469
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
3470
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3679
3471
|
$fault: "client",
|
|
3680
3472
|
$metadata: deserializeMetadata(output),
|
|
3681
|
-
};
|
|
3473
|
+
});
|
|
3474
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3682
3475
|
}
|
|
3683
|
-
const message = response.message || response.Message || errorCode;
|
|
3684
|
-
response.message = message;
|
|
3685
|
-
delete response.Message;
|
|
3686
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3687
3476
|
};
|
|
3688
3477
|
const deserializeAws_restJson1CreateRouteCommand = async (output, context) => {
|
|
3689
3478
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -3759,51 +3548,25 @@ const deserializeAws_restJson1CreateRouteCommandError = async (output, context)
|
|
|
3759
3548
|
switch (errorCode) {
|
|
3760
3549
|
case "BadRequestException":
|
|
3761
3550
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3762
|
-
|
|
3763
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
3764
|
-
name: errorCode,
|
|
3765
|
-
$metadata: deserializeMetadata(output),
|
|
3766
|
-
};
|
|
3767
|
-
break;
|
|
3551
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3768
3552
|
case "ConflictException":
|
|
3769
3553
|
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3770
|
-
|
|
3771
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
3772
|
-
name: errorCode,
|
|
3773
|
-
$metadata: deserializeMetadata(output),
|
|
3774
|
-
};
|
|
3775
|
-
break;
|
|
3554
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3776
3555
|
case "NotFoundException":
|
|
3777
3556
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3778
|
-
|
|
3779
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
3780
|
-
name: errorCode,
|
|
3781
|
-
$metadata: deserializeMetadata(output),
|
|
3782
|
-
};
|
|
3783
|
-
break;
|
|
3557
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
3784
3558
|
case "TooManyRequestsException":
|
|
3785
3559
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3786
|
-
|
|
3787
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
3788
|
-
name: errorCode,
|
|
3789
|
-
$metadata: deserializeMetadata(output),
|
|
3790
|
-
};
|
|
3791
|
-
break;
|
|
3560
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3792
3561
|
default:
|
|
3793
3562
|
const parsedBody = parsedOutput.body;
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
...parsedBody,
|
|
3797
|
-
name: `${errorCode}`,
|
|
3798
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3563
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
3564
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3799
3565
|
$fault: "client",
|
|
3800
3566
|
$metadata: deserializeMetadata(output),
|
|
3801
|
-
};
|
|
3567
|
+
});
|
|
3568
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3802
3569
|
}
|
|
3803
|
-
const message = response.message || response.Message || errorCode;
|
|
3804
|
-
response.message = message;
|
|
3805
|
-
delete response.Message;
|
|
3806
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3807
3570
|
};
|
|
3808
3571
|
const deserializeAws_restJson1CreateRouteResponseCommand = async (output, context) => {
|
|
3809
3572
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -3847,51 +3610,25 @@ const deserializeAws_restJson1CreateRouteResponseCommandError = async (output, c
|
|
|
3847
3610
|
switch (errorCode) {
|
|
3848
3611
|
case "BadRequestException":
|
|
3849
3612
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3850
|
-
|
|
3851
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
3852
|
-
name: errorCode,
|
|
3853
|
-
$metadata: deserializeMetadata(output),
|
|
3854
|
-
};
|
|
3855
|
-
break;
|
|
3613
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3856
3614
|
case "ConflictException":
|
|
3857
3615
|
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3858
|
-
|
|
3859
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
3860
|
-
name: errorCode,
|
|
3861
|
-
$metadata: deserializeMetadata(output),
|
|
3862
|
-
};
|
|
3863
|
-
break;
|
|
3616
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3864
3617
|
case "NotFoundException":
|
|
3865
3618
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3866
|
-
|
|
3867
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
3868
|
-
name: errorCode,
|
|
3869
|
-
$metadata: deserializeMetadata(output),
|
|
3870
|
-
};
|
|
3871
|
-
break;
|
|
3619
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
3872
3620
|
case "TooManyRequestsException":
|
|
3873
3621
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3874
|
-
|
|
3875
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
3876
|
-
name: errorCode,
|
|
3877
|
-
$metadata: deserializeMetadata(output),
|
|
3878
|
-
};
|
|
3879
|
-
break;
|
|
3622
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3880
3623
|
default:
|
|
3881
3624
|
const parsedBody = parsedOutput.body;
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
...parsedBody,
|
|
3885
|
-
name: `${errorCode}`,
|
|
3886
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3625
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
3626
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3887
3627
|
$fault: "client",
|
|
3888
3628
|
$metadata: deserializeMetadata(output),
|
|
3889
|
-
};
|
|
3629
|
+
});
|
|
3630
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3890
3631
|
}
|
|
3891
|
-
const message = response.message || response.Message || errorCode;
|
|
3892
|
-
response.message = message;
|
|
3893
|
-
delete response.Message;
|
|
3894
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3895
3632
|
};
|
|
3896
3633
|
const deserializeAws_restJson1CreateStageCommand = async (output, context) => {
|
|
3897
3634
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -3971,51 +3708,25 @@ const deserializeAws_restJson1CreateStageCommandError = async (output, context)
|
|
|
3971
3708
|
switch (errorCode) {
|
|
3972
3709
|
case "BadRequestException":
|
|
3973
3710
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
3974
|
-
|
|
3975
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
3976
|
-
name: errorCode,
|
|
3977
|
-
$metadata: deserializeMetadata(output),
|
|
3978
|
-
};
|
|
3979
|
-
break;
|
|
3711
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3980
3712
|
case "ConflictException":
|
|
3981
3713
|
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
3982
|
-
|
|
3983
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
3984
|
-
name: errorCode,
|
|
3985
|
-
$metadata: deserializeMetadata(output),
|
|
3986
|
-
};
|
|
3987
|
-
break;
|
|
3714
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3988
3715
|
case "NotFoundException":
|
|
3989
3716
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
3990
|
-
|
|
3991
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
3992
|
-
name: errorCode,
|
|
3993
|
-
$metadata: deserializeMetadata(output),
|
|
3994
|
-
};
|
|
3995
|
-
break;
|
|
3717
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
3996
3718
|
case "TooManyRequestsException":
|
|
3997
3719
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
3998
|
-
|
|
3999
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
4000
|
-
name: errorCode,
|
|
4001
|
-
$metadata: deserializeMetadata(output),
|
|
4002
|
-
};
|
|
4003
|
-
break;
|
|
3720
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4004
3721
|
default:
|
|
4005
3722
|
const parsedBody = parsedOutput.body;
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
...parsedBody,
|
|
4009
|
-
name: `${errorCode}`,
|
|
4010
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3723
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
3724
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4011
3725
|
$fault: "client",
|
|
4012
3726
|
$metadata: deserializeMetadata(output),
|
|
4013
|
-
};
|
|
3727
|
+
});
|
|
3728
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4014
3729
|
}
|
|
4015
|
-
const message = response.message || response.Message || errorCode;
|
|
4016
|
-
response.message = message;
|
|
4017
|
-
delete response.Message;
|
|
4018
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4019
3730
|
};
|
|
4020
3731
|
const deserializeAws_restJson1CreateVpcLinkCommand = async (output, context) => {
|
|
4021
3732
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -4075,35 +3786,19 @@ const deserializeAws_restJson1CreateVpcLinkCommandError = async (output, context
|
|
|
4075
3786
|
switch (errorCode) {
|
|
4076
3787
|
case "BadRequestException":
|
|
4077
3788
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
4078
|
-
|
|
4079
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
4080
|
-
name: errorCode,
|
|
4081
|
-
$metadata: deserializeMetadata(output),
|
|
4082
|
-
};
|
|
4083
|
-
break;
|
|
3789
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
4084
3790
|
case "TooManyRequestsException":
|
|
4085
3791
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4086
|
-
|
|
4087
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
4088
|
-
name: errorCode,
|
|
4089
|
-
$metadata: deserializeMetadata(output),
|
|
4090
|
-
};
|
|
4091
|
-
break;
|
|
3792
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4092
3793
|
default:
|
|
4093
3794
|
const parsedBody = parsedOutput.body;
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
...parsedBody,
|
|
4097
|
-
name: `${errorCode}`,
|
|
4098
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3795
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
3796
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4099
3797
|
$fault: "client",
|
|
4100
3798
|
$metadata: deserializeMetadata(output),
|
|
4101
|
-
};
|
|
3799
|
+
});
|
|
3800
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4102
3801
|
}
|
|
4103
|
-
const message = response.message || response.Message || errorCode;
|
|
4104
|
-
response.message = message;
|
|
4105
|
-
delete response.Message;
|
|
4106
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4107
3802
|
};
|
|
4108
3803
|
const deserializeAws_restJson1DeleteAccessLogSettingsCommand = async (output, context) => {
|
|
4109
3804
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -4127,35 +3822,19 @@ const deserializeAws_restJson1DeleteAccessLogSettingsCommandError = async (outpu
|
|
|
4127
3822
|
switch (errorCode) {
|
|
4128
3823
|
case "NotFoundException":
|
|
4129
3824
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4130
|
-
|
|
4131
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
4132
|
-
name: errorCode,
|
|
4133
|
-
$metadata: deserializeMetadata(output),
|
|
4134
|
-
};
|
|
4135
|
-
break;
|
|
3825
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
4136
3826
|
case "TooManyRequestsException":
|
|
4137
3827
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4138
|
-
|
|
4139
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
4140
|
-
name: errorCode,
|
|
4141
|
-
$metadata: deserializeMetadata(output),
|
|
4142
|
-
};
|
|
4143
|
-
break;
|
|
3828
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4144
3829
|
default:
|
|
4145
3830
|
const parsedBody = parsedOutput.body;
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
...parsedBody,
|
|
4149
|
-
name: `${errorCode}`,
|
|
4150
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3831
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
3832
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4151
3833
|
$fault: "client",
|
|
4152
3834
|
$metadata: deserializeMetadata(output),
|
|
4153
|
-
};
|
|
3835
|
+
});
|
|
3836
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4154
3837
|
}
|
|
4155
|
-
const message = response.message || response.Message || errorCode;
|
|
4156
|
-
response.message = message;
|
|
4157
|
-
delete response.Message;
|
|
4158
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4159
3838
|
};
|
|
4160
3839
|
const deserializeAws_restJson1DeleteApiCommand = async (output, context) => {
|
|
4161
3840
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -4179,35 +3858,19 @@ const deserializeAws_restJson1DeleteApiCommandError = async (output, context) =>
|
|
|
4179
3858
|
switch (errorCode) {
|
|
4180
3859
|
case "NotFoundException":
|
|
4181
3860
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4182
|
-
|
|
4183
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
4184
|
-
name: errorCode,
|
|
4185
|
-
$metadata: deserializeMetadata(output),
|
|
4186
|
-
};
|
|
4187
|
-
break;
|
|
3861
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
4188
3862
|
case "TooManyRequestsException":
|
|
4189
3863
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4190
|
-
|
|
4191
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
4192
|
-
name: errorCode,
|
|
4193
|
-
$metadata: deserializeMetadata(output),
|
|
4194
|
-
};
|
|
4195
|
-
break;
|
|
3864
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4196
3865
|
default:
|
|
4197
3866
|
const parsedBody = parsedOutput.body;
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
...parsedBody,
|
|
4201
|
-
name: `${errorCode}`,
|
|
4202
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3867
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
3868
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4203
3869
|
$fault: "client",
|
|
4204
3870
|
$metadata: deserializeMetadata(output),
|
|
4205
|
-
};
|
|
3871
|
+
});
|
|
3872
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4206
3873
|
}
|
|
4207
|
-
const message = response.message || response.Message || errorCode;
|
|
4208
|
-
response.message = message;
|
|
4209
|
-
delete response.Message;
|
|
4210
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4211
3874
|
};
|
|
4212
3875
|
const deserializeAws_restJson1DeleteApiMappingCommand = async (output, context) => {
|
|
4213
3876
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -4231,43 +3894,22 @@ const deserializeAws_restJson1DeleteApiMappingCommandError = async (output, cont
|
|
|
4231
3894
|
switch (errorCode) {
|
|
4232
3895
|
case "BadRequestException":
|
|
4233
3896
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
4234
|
-
|
|
4235
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
4236
|
-
name: errorCode,
|
|
4237
|
-
$metadata: deserializeMetadata(output),
|
|
4238
|
-
};
|
|
4239
|
-
break;
|
|
3897
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
4240
3898
|
case "NotFoundException":
|
|
4241
3899
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4242
|
-
|
|
4243
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
4244
|
-
name: errorCode,
|
|
4245
|
-
$metadata: deserializeMetadata(output),
|
|
4246
|
-
};
|
|
4247
|
-
break;
|
|
3900
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
4248
3901
|
case "TooManyRequestsException":
|
|
4249
3902
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4250
|
-
|
|
4251
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
4252
|
-
name: errorCode,
|
|
4253
|
-
$metadata: deserializeMetadata(output),
|
|
4254
|
-
};
|
|
4255
|
-
break;
|
|
3903
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4256
3904
|
default:
|
|
4257
3905
|
const parsedBody = parsedOutput.body;
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
...parsedBody,
|
|
4261
|
-
name: `${errorCode}`,
|
|
4262
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3906
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
3907
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4263
3908
|
$fault: "client",
|
|
4264
3909
|
$metadata: deserializeMetadata(output),
|
|
4265
|
-
};
|
|
3910
|
+
});
|
|
3911
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4266
3912
|
}
|
|
4267
|
-
const message = response.message || response.Message || errorCode;
|
|
4268
|
-
response.message = message;
|
|
4269
|
-
delete response.Message;
|
|
4270
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4271
3913
|
};
|
|
4272
3914
|
const deserializeAws_restJson1DeleteAuthorizerCommand = async (output, context) => {
|
|
4273
3915
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -4291,35 +3933,19 @@ const deserializeAws_restJson1DeleteAuthorizerCommandError = async (output, cont
|
|
|
4291
3933
|
switch (errorCode) {
|
|
4292
3934
|
case "NotFoundException":
|
|
4293
3935
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4294
|
-
|
|
4295
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
4296
|
-
name: errorCode,
|
|
4297
|
-
$metadata: deserializeMetadata(output),
|
|
4298
|
-
};
|
|
4299
|
-
break;
|
|
3936
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
4300
3937
|
case "TooManyRequestsException":
|
|
4301
3938
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4302
|
-
|
|
4303
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
4304
|
-
name: errorCode,
|
|
4305
|
-
$metadata: deserializeMetadata(output),
|
|
4306
|
-
};
|
|
4307
|
-
break;
|
|
3939
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4308
3940
|
default:
|
|
4309
3941
|
const parsedBody = parsedOutput.body;
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
...parsedBody,
|
|
4313
|
-
name: `${errorCode}`,
|
|
4314
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3942
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
3943
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4315
3944
|
$fault: "client",
|
|
4316
3945
|
$metadata: deserializeMetadata(output),
|
|
4317
|
-
};
|
|
3946
|
+
});
|
|
3947
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4318
3948
|
}
|
|
4319
|
-
const message = response.message || response.Message || errorCode;
|
|
4320
|
-
response.message = message;
|
|
4321
|
-
delete response.Message;
|
|
4322
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4323
3949
|
};
|
|
4324
3950
|
const deserializeAws_restJson1DeleteCorsConfigurationCommand = async (output, context) => {
|
|
4325
3951
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -4343,35 +3969,19 @@ const deserializeAws_restJson1DeleteCorsConfigurationCommandError = async (outpu
|
|
|
4343
3969
|
switch (errorCode) {
|
|
4344
3970
|
case "NotFoundException":
|
|
4345
3971
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4346
|
-
|
|
4347
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
4348
|
-
name: errorCode,
|
|
4349
|
-
$metadata: deserializeMetadata(output),
|
|
4350
|
-
};
|
|
4351
|
-
break;
|
|
3972
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
4352
3973
|
case "TooManyRequestsException":
|
|
4353
3974
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4354
|
-
|
|
4355
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
4356
|
-
name: errorCode,
|
|
4357
|
-
$metadata: deserializeMetadata(output),
|
|
4358
|
-
};
|
|
4359
|
-
break;
|
|
3975
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4360
3976
|
default:
|
|
4361
3977
|
const parsedBody = parsedOutput.body;
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
...parsedBody,
|
|
4365
|
-
name: `${errorCode}`,
|
|
4366
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3978
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
3979
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4367
3980
|
$fault: "client",
|
|
4368
3981
|
$metadata: deserializeMetadata(output),
|
|
4369
|
-
};
|
|
3982
|
+
});
|
|
3983
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4370
3984
|
}
|
|
4371
|
-
const message = response.message || response.Message || errorCode;
|
|
4372
|
-
response.message = message;
|
|
4373
|
-
delete response.Message;
|
|
4374
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4375
3985
|
};
|
|
4376
3986
|
const deserializeAws_restJson1DeleteDeploymentCommand = async (output, context) => {
|
|
4377
3987
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -4395,35 +4005,19 @@ const deserializeAws_restJson1DeleteDeploymentCommandError = async (output, cont
|
|
|
4395
4005
|
switch (errorCode) {
|
|
4396
4006
|
case "NotFoundException":
|
|
4397
4007
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4398
|
-
|
|
4399
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
4400
|
-
name: errorCode,
|
|
4401
|
-
$metadata: deserializeMetadata(output),
|
|
4402
|
-
};
|
|
4403
|
-
break;
|
|
4008
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
4404
4009
|
case "TooManyRequestsException":
|
|
4405
4010
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4406
|
-
|
|
4407
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
4408
|
-
name: errorCode,
|
|
4409
|
-
$metadata: deserializeMetadata(output),
|
|
4410
|
-
};
|
|
4411
|
-
break;
|
|
4011
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4412
4012
|
default:
|
|
4413
4013
|
const parsedBody = parsedOutput.body;
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
...parsedBody,
|
|
4417
|
-
name: `${errorCode}`,
|
|
4418
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4014
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
4015
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4419
4016
|
$fault: "client",
|
|
4420
4017
|
$metadata: deserializeMetadata(output),
|
|
4421
|
-
};
|
|
4018
|
+
});
|
|
4019
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4422
4020
|
}
|
|
4423
|
-
const message = response.message || response.Message || errorCode;
|
|
4424
|
-
response.message = message;
|
|
4425
|
-
delete response.Message;
|
|
4426
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4427
4021
|
};
|
|
4428
4022
|
const deserializeAws_restJson1DeleteDomainNameCommand = async (output, context) => {
|
|
4429
4023
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -4447,35 +4041,19 @@ const deserializeAws_restJson1DeleteDomainNameCommandError = async (output, cont
|
|
|
4447
4041
|
switch (errorCode) {
|
|
4448
4042
|
case "NotFoundException":
|
|
4449
4043
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4450
|
-
|
|
4451
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
4452
|
-
name: errorCode,
|
|
4453
|
-
$metadata: deserializeMetadata(output),
|
|
4454
|
-
};
|
|
4455
|
-
break;
|
|
4044
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
4456
4045
|
case "TooManyRequestsException":
|
|
4457
4046
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4458
|
-
|
|
4459
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
4460
|
-
name: errorCode,
|
|
4461
|
-
$metadata: deserializeMetadata(output),
|
|
4462
|
-
};
|
|
4463
|
-
break;
|
|
4047
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4464
4048
|
default:
|
|
4465
4049
|
const parsedBody = parsedOutput.body;
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
...parsedBody,
|
|
4469
|
-
name: `${errorCode}`,
|
|
4470
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4050
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
4051
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4471
4052
|
$fault: "client",
|
|
4472
4053
|
$metadata: deserializeMetadata(output),
|
|
4473
|
-
};
|
|
4054
|
+
});
|
|
4055
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4474
4056
|
}
|
|
4475
|
-
const message = response.message || response.Message || errorCode;
|
|
4476
|
-
response.message = message;
|
|
4477
|
-
delete response.Message;
|
|
4478
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4479
4057
|
};
|
|
4480
4058
|
const deserializeAws_restJson1DeleteIntegrationCommand = async (output, context) => {
|
|
4481
4059
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -4499,35 +4077,19 @@ const deserializeAws_restJson1DeleteIntegrationCommandError = async (output, con
|
|
|
4499
4077
|
switch (errorCode) {
|
|
4500
4078
|
case "NotFoundException":
|
|
4501
4079
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4502
|
-
|
|
4503
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
4504
|
-
name: errorCode,
|
|
4505
|
-
$metadata: deserializeMetadata(output),
|
|
4506
|
-
};
|
|
4507
|
-
break;
|
|
4080
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
4508
4081
|
case "TooManyRequestsException":
|
|
4509
4082
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4510
|
-
|
|
4511
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
4512
|
-
name: errorCode,
|
|
4513
|
-
$metadata: deserializeMetadata(output),
|
|
4514
|
-
};
|
|
4515
|
-
break;
|
|
4083
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4516
4084
|
default:
|
|
4517
4085
|
const parsedBody = parsedOutput.body;
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
...parsedBody,
|
|
4521
|
-
name: `${errorCode}`,
|
|
4522
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4086
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
4087
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4523
4088
|
$fault: "client",
|
|
4524
4089
|
$metadata: deserializeMetadata(output),
|
|
4525
|
-
};
|
|
4090
|
+
});
|
|
4091
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4526
4092
|
}
|
|
4527
|
-
const message = response.message || response.Message || errorCode;
|
|
4528
|
-
response.message = message;
|
|
4529
|
-
delete response.Message;
|
|
4530
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4531
4093
|
};
|
|
4532
4094
|
const deserializeAws_restJson1DeleteIntegrationResponseCommand = async (output, context) => {
|
|
4533
4095
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -4551,35 +4113,19 @@ const deserializeAws_restJson1DeleteIntegrationResponseCommandError = async (out
|
|
|
4551
4113
|
switch (errorCode) {
|
|
4552
4114
|
case "NotFoundException":
|
|
4553
4115
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4554
|
-
|
|
4555
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
4556
|
-
name: errorCode,
|
|
4557
|
-
$metadata: deserializeMetadata(output),
|
|
4558
|
-
};
|
|
4559
|
-
break;
|
|
4116
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
4560
4117
|
case "TooManyRequestsException":
|
|
4561
4118
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4562
|
-
|
|
4563
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
4564
|
-
name: errorCode,
|
|
4565
|
-
$metadata: deserializeMetadata(output),
|
|
4566
|
-
};
|
|
4567
|
-
break;
|
|
4119
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4568
4120
|
default:
|
|
4569
4121
|
const parsedBody = parsedOutput.body;
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
...parsedBody,
|
|
4573
|
-
name: `${errorCode}`,
|
|
4574
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4122
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
4123
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4575
4124
|
$fault: "client",
|
|
4576
4125
|
$metadata: deserializeMetadata(output),
|
|
4577
|
-
};
|
|
4126
|
+
});
|
|
4127
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4578
4128
|
}
|
|
4579
|
-
const message = response.message || response.Message || errorCode;
|
|
4580
|
-
response.message = message;
|
|
4581
|
-
delete response.Message;
|
|
4582
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4583
4129
|
};
|
|
4584
4130
|
const deserializeAws_restJson1DeleteModelCommand = async (output, context) => {
|
|
4585
4131
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -4603,35 +4149,19 @@ const deserializeAws_restJson1DeleteModelCommandError = async (output, context)
|
|
|
4603
4149
|
switch (errorCode) {
|
|
4604
4150
|
case "NotFoundException":
|
|
4605
4151
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4606
|
-
|
|
4607
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
4608
|
-
name: errorCode,
|
|
4609
|
-
$metadata: deserializeMetadata(output),
|
|
4610
|
-
};
|
|
4611
|
-
break;
|
|
4152
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
4612
4153
|
case "TooManyRequestsException":
|
|
4613
4154
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4614
|
-
|
|
4615
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
4616
|
-
name: errorCode,
|
|
4617
|
-
$metadata: deserializeMetadata(output),
|
|
4618
|
-
};
|
|
4619
|
-
break;
|
|
4155
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4620
4156
|
default:
|
|
4621
4157
|
const parsedBody = parsedOutput.body;
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
...parsedBody,
|
|
4625
|
-
name: `${errorCode}`,
|
|
4626
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4158
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
4159
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4627
4160
|
$fault: "client",
|
|
4628
4161
|
$metadata: deserializeMetadata(output),
|
|
4629
|
-
};
|
|
4162
|
+
});
|
|
4163
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4630
4164
|
}
|
|
4631
|
-
const message = response.message || response.Message || errorCode;
|
|
4632
|
-
response.message = message;
|
|
4633
|
-
delete response.Message;
|
|
4634
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4635
4165
|
};
|
|
4636
4166
|
const deserializeAws_restJson1DeleteRouteCommand = async (output, context) => {
|
|
4637
4167
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -4655,35 +4185,19 @@ const deserializeAws_restJson1DeleteRouteCommandError = async (output, context)
|
|
|
4655
4185
|
switch (errorCode) {
|
|
4656
4186
|
case "NotFoundException":
|
|
4657
4187
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4658
|
-
|
|
4659
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
4660
|
-
name: errorCode,
|
|
4661
|
-
$metadata: deserializeMetadata(output),
|
|
4662
|
-
};
|
|
4663
|
-
break;
|
|
4188
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
4664
4189
|
case "TooManyRequestsException":
|
|
4665
4190
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4666
|
-
|
|
4667
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
4668
|
-
name: errorCode,
|
|
4669
|
-
$metadata: deserializeMetadata(output),
|
|
4670
|
-
};
|
|
4671
|
-
break;
|
|
4191
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4672
4192
|
default:
|
|
4673
4193
|
const parsedBody = parsedOutput.body;
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
...parsedBody,
|
|
4677
|
-
name: `${errorCode}`,
|
|
4678
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4194
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
4195
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4679
4196
|
$fault: "client",
|
|
4680
4197
|
$metadata: deserializeMetadata(output),
|
|
4681
|
-
};
|
|
4198
|
+
});
|
|
4199
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4682
4200
|
}
|
|
4683
|
-
const message = response.message || response.Message || errorCode;
|
|
4684
|
-
response.message = message;
|
|
4685
|
-
delete response.Message;
|
|
4686
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4687
4201
|
};
|
|
4688
4202
|
const deserializeAws_restJson1DeleteRouteRequestParameterCommand = async (output, context) => {
|
|
4689
4203
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -4707,35 +4221,19 @@ const deserializeAws_restJson1DeleteRouteRequestParameterCommandError = async (o
|
|
|
4707
4221
|
switch (errorCode) {
|
|
4708
4222
|
case "NotFoundException":
|
|
4709
4223
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4710
|
-
|
|
4711
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
4712
|
-
name: errorCode,
|
|
4713
|
-
$metadata: deserializeMetadata(output),
|
|
4714
|
-
};
|
|
4715
|
-
break;
|
|
4224
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
4716
4225
|
case "TooManyRequestsException":
|
|
4717
4226
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4718
|
-
|
|
4719
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
4720
|
-
name: errorCode,
|
|
4721
|
-
$metadata: deserializeMetadata(output),
|
|
4722
|
-
};
|
|
4723
|
-
break;
|
|
4227
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4724
4228
|
default:
|
|
4725
4229
|
const parsedBody = parsedOutput.body;
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
...parsedBody,
|
|
4729
|
-
name: `${errorCode}`,
|
|
4730
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4230
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
4231
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4731
4232
|
$fault: "client",
|
|
4732
4233
|
$metadata: deserializeMetadata(output),
|
|
4733
|
-
};
|
|
4234
|
+
});
|
|
4235
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4734
4236
|
}
|
|
4735
|
-
const message = response.message || response.Message || errorCode;
|
|
4736
|
-
response.message = message;
|
|
4737
|
-
delete response.Message;
|
|
4738
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4739
4237
|
};
|
|
4740
4238
|
const deserializeAws_restJson1DeleteRouteResponseCommand = async (output, context) => {
|
|
4741
4239
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -4759,35 +4257,19 @@ const deserializeAws_restJson1DeleteRouteResponseCommandError = async (output, c
|
|
|
4759
4257
|
switch (errorCode) {
|
|
4760
4258
|
case "NotFoundException":
|
|
4761
4259
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4762
|
-
|
|
4763
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
4764
|
-
name: errorCode,
|
|
4765
|
-
$metadata: deserializeMetadata(output),
|
|
4766
|
-
};
|
|
4767
|
-
break;
|
|
4260
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
4768
4261
|
case "TooManyRequestsException":
|
|
4769
4262
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4770
|
-
|
|
4771
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
4772
|
-
name: errorCode,
|
|
4773
|
-
$metadata: deserializeMetadata(output),
|
|
4774
|
-
};
|
|
4775
|
-
break;
|
|
4263
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4776
4264
|
default:
|
|
4777
4265
|
const parsedBody = parsedOutput.body;
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
...parsedBody,
|
|
4781
|
-
name: `${errorCode}`,
|
|
4782
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4266
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
4267
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4783
4268
|
$fault: "client",
|
|
4784
4269
|
$metadata: deserializeMetadata(output),
|
|
4785
|
-
};
|
|
4270
|
+
});
|
|
4271
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4786
4272
|
}
|
|
4787
|
-
const message = response.message || response.Message || errorCode;
|
|
4788
|
-
response.message = message;
|
|
4789
|
-
delete response.Message;
|
|
4790
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4791
4273
|
};
|
|
4792
4274
|
const deserializeAws_restJson1DeleteRouteSettingsCommand = async (output, context) => {
|
|
4793
4275
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -4811,35 +4293,19 @@ const deserializeAws_restJson1DeleteRouteSettingsCommandError = async (output, c
|
|
|
4811
4293
|
switch (errorCode) {
|
|
4812
4294
|
case "NotFoundException":
|
|
4813
4295
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4814
|
-
|
|
4815
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
4816
|
-
name: errorCode,
|
|
4817
|
-
$metadata: deserializeMetadata(output),
|
|
4818
|
-
};
|
|
4819
|
-
break;
|
|
4296
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
4820
4297
|
case "TooManyRequestsException":
|
|
4821
4298
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4822
|
-
|
|
4823
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
4824
|
-
name: errorCode,
|
|
4825
|
-
$metadata: deserializeMetadata(output),
|
|
4826
|
-
};
|
|
4827
|
-
break;
|
|
4299
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4828
4300
|
default:
|
|
4829
4301
|
const parsedBody = parsedOutput.body;
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
...parsedBody,
|
|
4833
|
-
name: `${errorCode}`,
|
|
4834
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4302
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
4303
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4835
4304
|
$fault: "client",
|
|
4836
4305
|
$metadata: deserializeMetadata(output),
|
|
4837
|
-
};
|
|
4306
|
+
});
|
|
4307
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4838
4308
|
}
|
|
4839
|
-
const message = response.message || response.Message || errorCode;
|
|
4840
|
-
response.message = message;
|
|
4841
|
-
delete response.Message;
|
|
4842
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4843
4309
|
};
|
|
4844
4310
|
const deserializeAws_restJson1DeleteStageCommand = async (output, context) => {
|
|
4845
4311
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -4863,35 +4329,19 @@ const deserializeAws_restJson1DeleteStageCommandError = async (output, context)
|
|
|
4863
4329
|
switch (errorCode) {
|
|
4864
4330
|
case "NotFoundException":
|
|
4865
4331
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4866
|
-
|
|
4867
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
4868
|
-
name: errorCode,
|
|
4869
|
-
$metadata: deserializeMetadata(output),
|
|
4870
|
-
};
|
|
4871
|
-
break;
|
|
4332
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
4872
4333
|
case "TooManyRequestsException":
|
|
4873
4334
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4874
|
-
|
|
4875
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
4876
|
-
name: errorCode,
|
|
4877
|
-
$metadata: deserializeMetadata(output),
|
|
4878
|
-
};
|
|
4879
|
-
break;
|
|
4335
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4880
4336
|
default:
|
|
4881
4337
|
const parsedBody = parsedOutput.body;
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
...parsedBody,
|
|
4885
|
-
name: `${errorCode}`,
|
|
4886
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4338
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
4339
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4887
4340
|
$fault: "client",
|
|
4888
4341
|
$metadata: deserializeMetadata(output),
|
|
4889
|
-
};
|
|
4342
|
+
});
|
|
4343
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4890
4344
|
}
|
|
4891
|
-
const message = response.message || response.Message || errorCode;
|
|
4892
|
-
response.message = message;
|
|
4893
|
-
delete response.Message;
|
|
4894
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4895
4345
|
};
|
|
4896
4346
|
const deserializeAws_restJson1DeleteVpcLinkCommand = async (output, context) => {
|
|
4897
4347
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
@@ -4915,35 +4365,19 @@ const deserializeAws_restJson1DeleteVpcLinkCommandError = async (output, context
|
|
|
4915
4365
|
switch (errorCode) {
|
|
4916
4366
|
case "NotFoundException":
|
|
4917
4367
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4918
|
-
|
|
4919
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
4920
|
-
name: errorCode,
|
|
4921
|
-
$metadata: deserializeMetadata(output),
|
|
4922
|
-
};
|
|
4923
|
-
break;
|
|
4368
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
4924
4369
|
case "TooManyRequestsException":
|
|
4925
4370
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4926
|
-
|
|
4927
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
4928
|
-
name: errorCode,
|
|
4929
|
-
$metadata: deserializeMetadata(output),
|
|
4930
|
-
};
|
|
4931
|
-
break;
|
|
4371
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4932
4372
|
default:
|
|
4933
4373
|
const parsedBody = parsedOutput.body;
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
...parsedBody,
|
|
4937
|
-
name: `${errorCode}`,
|
|
4938
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4374
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
4375
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4939
4376
|
$fault: "client",
|
|
4940
4377
|
$metadata: deserializeMetadata(output),
|
|
4941
|
-
};
|
|
4378
|
+
});
|
|
4379
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4942
4380
|
}
|
|
4943
|
-
const message = response.message || response.Message || errorCode;
|
|
4944
|
-
response.message = message;
|
|
4945
|
-
delete response.Message;
|
|
4946
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4947
4381
|
};
|
|
4948
4382
|
const deserializeAws_restJson1ExportApiCommand = async (output, context) => {
|
|
4949
4383
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4969,43 +4403,22 @@ const deserializeAws_restJson1ExportApiCommandError = async (output, context) =>
|
|
|
4969
4403
|
switch (errorCode) {
|
|
4970
4404
|
case "BadRequestException":
|
|
4971
4405
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
4972
|
-
|
|
4973
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
4974
|
-
name: errorCode,
|
|
4975
|
-
$metadata: deserializeMetadata(output),
|
|
4976
|
-
};
|
|
4977
|
-
break;
|
|
4406
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
4978
4407
|
case "NotFoundException":
|
|
4979
4408
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
4980
|
-
|
|
4981
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
4982
|
-
name: errorCode,
|
|
4983
|
-
$metadata: deserializeMetadata(output),
|
|
4984
|
-
};
|
|
4985
|
-
break;
|
|
4409
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
4986
4410
|
case "TooManyRequestsException":
|
|
4987
4411
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
4988
|
-
|
|
4989
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
4990
|
-
name: errorCode,
|
|
4991
|
-
$metadata: deserializeMetadata(output),
|
|
4992
|
-
};
|
|
4993
|
-
break;
|
|
4412
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4994
4413
|
default:
|
|
4995
4414
|
const parsedBody = parsedOutput.body;
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
...parsedBody,
|
|
4999
|
-
name: `${errorCode}`,
|
|
5000
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4415
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
4416
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5001
4417
|
$fault: "client",
|
|
5002
4418
|
$metadata: deserializeMetadata(output),
|
|
5003
|
-
};
|
|
4419
|
+
});
|
|
4420
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5004
4421
|
}
|
|
5005
|
-
const message = response.message || response.Message || errorCode;
|
|
5006
|
-
response.message = message;
|
|
5007
|
-
delete response.Message;
|
|
5008
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5009
4422
|
};
|
|
5010
4423
|
const deserializeAws_restJson1GetApiCommand = async (output, context) => {
|
|
5011
4424
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5093,35 +4506,19 @@ const deserializeAws_restJson1GetApiCommandError = async (output, context) => {
|
|
|
5093
4506
|
switch (errorCode) {
|
|
5094
4507
|
case "NotFoundException":
|
|
5095
4508
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
5096
|
-
|
|
5097
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
5098
|
-
name: errorCode,
|
|
5099
|
-
$metadata: deserializeMetadata(output),
|
|
5100
|
-
};
|
|
5101
|
-
break;
|
|
4509
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
5102
4510
|
case "TooManyRequestsException":
|
|
5103
4511
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
5104
|
-
|
|
5105
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
5106
|
-
name: errorCode,
|
|
5107
|
-
$metadata: deserializeMetadata(output),
|
|
5108
|
-
};
|
|
5109
|
-
break;
|
|
4512
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5110
4513
|
default:
|
|
5111
4514
|
const parsedBody = parsedOutput.body;
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
...parsedBody,
|
|
5115
|
-
name: `${errorCode}`,
|
|
5116
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4515
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
4516
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5117
4517
|
$fault: "client",
|
|
5118
4518
|
$metadata: deserializeMetadata(output),
|
|
5119
|
-
};
|
|
4519
|
+
});
|
|
4520
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5120
4521
|
}
|
|
5121
|
-
const message = response.message || response.Message || errorCode;
|
|
5122
|
-
response.message = message;
|
|
5123
|
-
delete response.Message;
|
|
5124
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5125
4522
|
};
|
|
5126
4523
|
const deserializeAws_restJson1GetApiMappingCommand = async (output, context) => {
|
|
5127
4524
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5161,43 +4558,22 @@ const deserializeAws_restJson1GetApiMappingCommandError = async (output, context
|
|
|
5161
4558
|
switch (errorCode) {
|
|
5162
4559
|
case "BadRequestException":
|
|
5163
4560
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
5164
|
-
|
|
5165
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
5166
|
-
name: errorCode,
|
|
5167
|
-
$metadata: deserializeMetadata(output),
|
|
5168
|
-
};
|
|
5169
|
-
break;
|
|
4561
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
5170
4562
|
case "NotFoundException":
|
|
5171
4563
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
5172
|
-
|
|
5173
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
5174
|
-
name: errorCode,
|
|
5175
|
-
$metadata: deserializeMetadata(output),
|
|
5176
|
-
};
|
|
5177
|
-
break;
|
|
4564
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
5178
4565
|
case "TooManyRequestsException":
|
|
5179
4566
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
5180
|
-
|
|
5181
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
5182
|
-
name: errorCode,
|
|
5183
|
-
$metadata: deserializeMetadata(output),
|
|
5184
|
-
};
|
|
5185
|
-
break;
|
|
4567
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5186
4568
|
default:
|
|
5187
4569
|
const parsedBody = parsedOutput.body;
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
...parsedBody,
|
|
5191
|
-
name: `${errorCode}`,
|
|
5192
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4570
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
4571
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5193
4572
|
$fault: "client",
|
|
5194
4573
|
$metadata: deserializeMetadata(output),
|
|
5195
|
-
};
|
|
4574
|
+
});
|
|
4575
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5196
4576
|
}
|
|
5197
|
-
const message = response.message || response.Message || errorCode;
|
|
5198
|
-
response.message = message;
|
|
5199
|
-
delete response.Message;
|
|
5200
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5201
4577
|
};
|
|
5202
4578
|
const deserializeAws_restJson1GetApiMappingsCommand = async (output, context) => {
|
|
5203
4579
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5229,43 +4605,22 @@ const deserializeAws_restJson1GetApiMappingsCommandError = async (output, contex
|
|
|
5229
4605
|
switch (errorCode) {
|
|
5230
4606
|
case "BadRequestException":
|
|
5231
4607
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
5232
|
-
|
|
5233
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
5234
|
-
name: errorCode,
|
|
5235
|
-
$metadata: deserializeMetadata(output),
|
|
5236
|
-
};
|
|
5237
|
-
break;
|
|
4608
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
5238
4609
|
case "NotFoundException":
|
|
5239
4610
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
5240
|
-
|
|
5241
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
5242
|
-
name: errorCode,
|
|
5243
|
-
$metadata: deserializeMetadata(output),
|
|
5244
|
-
};
|
|
5245
|
-
break;
|
|
4611
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
5246
4612
|
case "TooManyRequestsException":
|
|
5247
4613
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
5248
|
-
|
|
5249
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
5250
|
-
name: errorCode,
|
|
5251
|
-
$metadata: deserializeMetadata(output),
|
|
5252
|
-
};
|
|
5253
|
-
break;
|
|
4614
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5254
4615
|
default:
|
|
5255
4616
|
const parsedBody = parsedOutput.body;
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
...parsedBody,
|
|
5259
|
-
name: `${errorCode}`,
|
|
5260
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4617
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
4618
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5261
4619
|
$fault: "client",
|
|
5262
4620
|
$metadata: deserializeMetadata(output),
|
|
5263
|
-
};
|
|
4621
|
+
});
|
|
4622
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5264
4623
|
}
|
|
5265
|
-
const message = response.message || response.Message || errorCode;
|
|
5266
|
-
response.message = message;
|
|
5267
|
-
delete response.Message;
|
|
5268
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5269
4624
|
};
|
|
5270
4625
|
const deserializeAws_restJson1GetApisCommand = async (output, context) => {
|
|
5271
4626
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5297,43 +4652,22 @@ const deserializeAws_restJson1GetApisCommandError = async (output, context) => {
|
|
|
5297
4652
|
switch (errorCode) {
|
|
5298
4653
|
case "BadRequestException":
|
|
5299
4654
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
5300
|
-
|
|
5301
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
5302
|
-
name: errorCode,
|
|
5303
|
-
$metadata: deserializeMetadata(output),
|
|
5304
|
-
};
|
|
5305
|
-
break;
|
|
4655
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
5306
4656
|
case "NotFoundException":
|
|
5307
4657
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
5308
|
-
|
|
5309
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
5310
|
-
name: errorCode,
|
|
5311
|
-
$metadata: deserializeMetadata(output),
|
|
5312
|
-
};
|
|
5313
|
-
break;
|
|
4658
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
5314
4659
|
case "TooManyRequestsException":
|
|
5315
4660
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
5316
|
-
|
|
5317
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
5318
|
-
name: errorCode,
|
|
5319
|
-
$metadata: deserializeMetadata(output),
|
|
5320
|
-
};
|
|
5321
|
-
break;
|
|
4661
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5322
4662
|
default:
|
|
5323
4663
|
const parsedBody = parsedOutput.body;
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
...parsedBody,
|
|
5327
|
-
name: `${errorCode}`,
|
|
5328
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4664
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
4665
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5329
4666
|
$fault: "client",
|
|
5330
4667
|
$metadata: deserializeMetadata(output),
|
|
5331
|
-
};
|
|
4668
|
+
});
|
|
4669
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5332
4670
|
}
|
|
5333
|
-
const message = response.message || response.Message || errorCode;
|
|
5334
|
-
response.message = message;
|
|
5335
|
-
delete response.Message;
|
|
5336
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5337
4671
|
};
|
|
5338
4672
|
const deserializeAws_restJson1GetAuthorizerCommand = async (output, context) => {
|
|
5339
4673
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5401,35 +4735,19 @@ const deserializeAws_restJson1GetAuthorizerCommandError = async (output, context
|
|
|
5401
4735
|
switch (errorCode) {
|
|
5402
4736
|
case "NotFoundException":
|
|
5403
4737
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
5404
|
-
|
|
5405
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
5406
|
-
name: errorCode,
|
|
5407
|
-
$metadata: deserializeMetadata(output),
|
|
5408
|
-
};
|
|
5409
|
-
break;
|
|
4738
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
5410
4739
|
case "TooManyRequestsException":
|
|
5411
4740
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
5412
|
-
|
|
5413
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
5414
|
-
name: errorCode,
|
|
5415
|
-
$metadata: deserializeMetadata(output),
|
|
5416
|
-
};
|
|
5417
|
-
break;
|
|
4741
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5418
4742
|
default:
|
|
5419
4743
|
const parsedBody = parsedOutput.body;
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
...parsedBody,
|
|
5423
|
-
name: `${errorCode}`,
|
|
5424
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4744
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
4745
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5425
4746
|
$fault: "client",
|
|
5426
4747
|
$metadata: deserializeMetadata(output),
|
|
5427
|
-
};
|
|
4748
|
+
});
|
|
4749
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5428
4750
|
}
|
|
5429
|
-
const message = response.message || response.Message || errorCode;
|
|
5430
|
-
response.message = message;
|
|
5431
|
-
delete response.Message;
|
|
5432
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5433
4751
|
};
|
|
5434
4752
|
const deserializeAws_restJson1GetAuthorizersCommand = async (output, context) => {
|
|
5435
4753
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5461,43 +4779,22 @@ const deserializeAws_restJson1GetAuthorizersCommandError = async (output, contex
|
|
|
5461
4779
|
switch (errorCode) {
|
|
5462
4780
|
case "BadRequestException":
|
|
5463
4781
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
5464
|
-
|
|
5465
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
5466
|
-
name: errorCode,
|
|
5467
|
-
$metadata: deserializeMetadata(output),
|
|
5468
|
-
};
|
|
5469
|
-
break;
|
|
4782
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
5470
4783
|
case "NotFoundException":
|
|
5471
4784
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
5472
|
-
|
|
5473
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
5474
|
-
name: errorCode,
|
|
5475
|
-
$metadata: deserializeMetadata(output),
|
|
5476
|
-
};
|
|
5477
|
-
break;
|
|
4785
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
5478
4786
|
case "TooManyRequestsException":
|
|
5479
4787
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
5480
|
-
|
|
5481
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
5482
|
-
name: errorCode,
|
|
5483
|
-
$metadata: deserializeMetadata(output),
|
|
5484
|
-
};
|
|
5485
|
-
break;
|
|
4788
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5486
4789
|
default:
|
|
5487
4790
|
const parsedBody = parsedOutput.body;
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
...parsedBody,
|
|
5491
|
-
name: `${errorCode}`,
|
|
5492
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4791
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
4792
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5493
4793
|
$fault: "client",
|
|
5494
4794
|
$metadata: deserializeMetadata(output),
|
|
5495
|
-
};
|
|
4795
|
+
});
|
|
4796
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5496
4797
|
}
|
|
5497
|
-
const message = response.message || response.Message || errorCode;
|
|
5498
|
-
response.message = message;
|
|
5499
|
-
delete response.Message;
|
|
5500
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5501
4798
|
};
|
|
5502
4799
|
const deserializeAws_restJson1GetDeploymentCommand = async (output, context) => {
|
|
5503
4800
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5545,35 +4842,19 @@ const deserializeAws_restJson1GetDeploymentCommandError = async (output, context
|
|
|
5545
4842
|
switch (errorCode) {
|
|
5546
4843
|
case "NotFoundException":
|
|
5547
4844
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
5548
|
-
|
|
5549
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
5550
|
-
name: errorCode,
|
|
5551
|
-
$metadata: deserializeMetadata(output),
|
|
5552
|
-
};
|
|
5553
|
-
break;
|
|
4845
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
5554
4846
|
case "TooManyRequestsException":
|
|
5555
4847
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
5556
|
-
|
|
5557
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
5558
|
-
name: errorCode,
|
|
5559
|
-
$metadata: deserializeMetadata(output),
|
|
5560
|
-
};
|
|
5561
|
-
break;
|
|
4848
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5562
4849
|
default:
|
|
5563
4850
|
const parsedBody = parsedOutput.body;
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
...parsedBody,
|
|
5567
|
-
name: `${errorCode}`,
|
|
5568
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4851
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
4852
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5569
4853
|
$fault: "client",
|
|
5570
4854
|
$metadata: deserializeMetadata(output),
|
|
5571
|
-
};
|
|
4855
|
+
});
|
|
4856
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5572
4857
|
}
|
|
5573
|
-
const message = response.message || response.Message || errorCode;
|
|
5574
|
-
response.message = message;
|
|
5575
|
-
delete response.Message;
|
|
5576
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5577
4858
|
};
|
|
5578
4859
|
const deserializeAws_restJson1GetDeploymentsCommand = async (output, context) => {
|
|
5579
4860
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5605,43 +4886,22 @@ const deserializeAws_restJson1GetDeploymentsCommandError = async (output, contex
|
|
|
5605
4886
|
switch (errorCode) {
|
|
5606
4887
|
case "BadRequestException":
|
|
5607
4888
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
5608
|
-
|
|
5609
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
5610
|
-
name: errorCode,
|
|
5611
|
-
$metadata: deserializeMetadata(output),
|
|
5612
|
-
};
|
|
5613
|
-
break;
|
|
4889
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
5614
4890
|
case "NotFoundException":
|
|
5615
4891
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
5616
|
-
|
|
5617
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
5618
|
-
name: errorCode,
|
|
5619
|
-
$metadata: deserializeMetadata(output),
|
|
5620
|
-
};
|
|
5621
|
-
break;
|
|
4892
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
5622
4893
|
case "TooManyRequestsException":
|
|
5623
4894
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
5624
|
-
|
|
5625
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
5626
|
-
name: errorCode,
|
|
5627
|
-
$metadata: deserializeMetadata(output),
|
|
5628
|
-
};
|
|
5629
|
-
break;
|
|
4895
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5630
4896
|
default:
|
|
5631
4897
|
const parsedBody = parsedOutput.body;
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
...parsedBody,
|
|
5635
|
-
name: `${errorCode}`,
|
|
5636
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4898
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
4899
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5637
4900
|
$fault: "client",
|
|
5638
4901
|
$metadata: deserializeMetadata(output),
|
|
5639
|
-
};
|
|
4902
|
+
});
|
|
4903
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5640
4904
|
}
|
|
5641
|
-
const message = response.message || response.Message || errorCode;
|
|
5642
|
-
response.message = message;
|
|
5643
|
-
delete response.Message;
|
|
5644
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5645
4905
|
};
|
|
5646
4906
|
const deserializeAws_restJson1GetDomainNameCommand = async (output, context) => {
|
|
5647
4907
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5685,35 +4945,19 @@ const deserializeAws_restJson1GetDomainNameCommandError = async (output, context
|
|
|
5685
4945
|
switch (errorCode) {
|
|
5686
4946
|
case "NotFoundException":
|
|
5687
4947
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
5688
|
-
|
|
5689
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
5690
|
-
name: errorCode,
|
|
5691
|
-
$metadata: deserializeMetadata(output),
|
|
5692
|
-
};
|
|
5693
|
-
break;
|
|
4948
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
5694
4949
|
case "TooManyRequestsException":
|
|
5695
4950
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
5696
|
-
|
|
5697
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
5698
|
-
name: errorCode,
|
|
5699
|
-
$metadata: deserializeMetadata(output),
|
|
5700
|
-
};
|
|
5701
|
-
break;
|
|
4951
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5702
4952
|
default:
|
|
5703
4953
|
const parsedBody = parsedOutput.body;
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
...parsedBody,
|
|
5707
|
-
name: `${errorCode}`,
|
|
5708
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4954
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
4955
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5709
4956
|
$fault: "client",
|
|
5710
4957
|
$metadata: deserializeMetadata(output),
|
|
5711
|
-
};
|
|
4958
|
+
});
|
|
4959
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5712
4960
|
}
|
|
5713
|
-
const message = response.message || response.Message || errorCode;
|
|
5714
|
-
response.message = message;
|
|
5715
|
-
delete response.Message;
|
|
5716
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5717
4961
|
};
|
|
5718
4962
|
const deserializeAws_restJson1GetDomainNamesCommand = async (output, context) => {
|
|
5719
4963
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5745,43 +4989,22 @@ const deserializeAws_restJson1GetDomainNamesCommandError = async (output, contex
|
|
|
5745
4989
|
switch (errorCode) {
|
|
5746
4990
|
case "BadRequestException":
|
|
5747
4991
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
5748
|
-
|
|
5749
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
5750
|
-
name: errorCode,
|
|
5751
|
-
$metadata: deserializeMetadata(output),
|
|
5752
|
-
};
|
|
5753
|
-
break;
|
|
4992
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
5754
4993
|
case "NotFoundException":
|
|
5755
4994
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
5756
|
-
|
|
5757
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
5758
|
-
name: errorCode,
|
|
5759
|
-
$metadata: deserializeMetadata(output),
|
|
5760
|
-
};
|
|
5761
|
-
break;
|
|
4995
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
5762
4996
|
case "TooManyRequestsException":
|
|
5763
4997
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
5764
|
-
|
|
5765
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
5766
|
-
name: errorCode,
|
|
5767
|
-
$metadata: deserializeMetadata(output),
|
|
5768
|
-
};
|
|
5769
|
-
break;
|
|
4998
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5770
4999
|
default:
|
|
5771
5000
|
const parsedBody = parsedOutput.body;
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
...parsedBody,
|
|
5775
|
-
name: `${errorCode}`,
|
|
5776
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5001
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
5002
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5777
5003
|
$fault: "client",
|
|
5778
5004
|
$metadata: deserializeMetadata(output),
|
|
5779
|
-
};
|
|
5005
|
+
});
|
|
5006
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5780
5007
|
}
|
|
5781
|
-
const message = response.message || response.Message || errorCode;
|
|
5782
|
-
response.message = message;
|
|
5783
|
-
delete response.Message;
|
|
5784
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5785
5008
|
};
|
|
5786
5009
|
const deserializeAws_restJson1GetIntegrationCommand = async (output, context) => {
|
|
5787
5010
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5886,35 +5109,19 @@ const deserializeAws_restJson1GetIntegrationCommandError = async (output, contex
|
|
|
5886
5109
|
switch (errorCode) {
|
|
5887
5110
|
case "NotFoundException":
|
|
5888
5111
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
5889
|
-
|
|
5890
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
5891
|
-
name: errorCode,
|
|
5892
|
-
$metadata: deserializeMetadata(output),
|
|
5893
|
-
};
|
|
5894
|
-
break;
|
|
5112
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
5895
5113
|
case "TooManyRequestsException":
|
|
5896
5114
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
5897
|
-
|
|
5898
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
5899
|
-
name: errorCode,
|
|
5900
|
-
$metadata: deserializeMetadata(output),
|
|
5901
|
-
};
|
|
5902
|
-
break;
|
|
5115
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5903
5116
|
default:
|
|
5904
5117
|
const parsedBody = parsedOutput.body;
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
...parsedBody,
|
|
5908
|
-
name: `${errorCode}`,
|
|
5909
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5118
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
5119
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5910
5120
|
$fault: "client",
|
|
5911
5121
|
$metadata: deserializeMetadata(output),
|
|
5912
|
-
};
|
|
5122
|
+
});
|
|
5123
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5913
5124
|
}
|
|
5914
|
-
const message = response.message || response.Message || errorCode;
|
|
5915
|
-
response.message = message;
|
|
5916
|
-
delete response.Message;
|
|
5917
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5918
5125
|
};
|
|
5919
5126
|
const deserializeAws_restJson1GetIntegrationResponseCommand = async (output, context) => {
|
|
5920
5127
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5962,35 +5169,19 @@ const deserializeAws_restJson1GetIntegrationResponseCommandError = async (output
|
|
|
5962
5169
|
switch (errorCode) {
|
|
5963
5170
|
case "NotFoundException":
|
|
5964
5171
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
5965
|
-
|
|
5966
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
5967
|
-
name: errorCode,
|
|
5968
|
-
$metadata: deserializeMetadata(output),
|
|
5969
|
-
};
|
|
5970
|
-
break;
|
|
5172
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
5971
5173
|
case "TooManyRequestsException":
|
|
5972
5174
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
5973
|
-
|
|
5974
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
5975
|
-
name: errorCode,
|
|
5976
|
-
$metadata: deserializeMetadata(output),
|
|
5977
|
-
};
|
|
5978
|
-
break;
|
|
5175
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5979
5176
|
default:
|
|
5980
5177
|
const parsedBody = parsedOutput.body;
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
...parsedBody,
|
|
5984
|
-
name: `${errorCode}`,
|
|
5985
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5178
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
5179
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5986
5180
|
$fault: "client",
|
|
5987
5181
|
$metadata: deserializeMetadata(output),
|
|
5988
|
-
};
|
|
5182
|
+
});
|
|
5183
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5989
5184
|
}
|
|
5990
|
-
const message = response.message || response.Message || errorCode;
|
|
5991
|
-
response.message = message;
|
|
5992
|
-
delete response.Message;
|
|
5993
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5994
5185
|
};
|
|
5995
5186
|
const deserializeAws_restJson1GetIntegrationResponsesCommand = async (output, context) => {
|
|
5996
5187
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6022,43 +5213,22 @@ const deserializeAws_restJson1GetIntegrationResponsesCommandError = async (outpu
|
|
|
6022
5213
|
switch (errorCode) {
|
|
6023
5214
|
case "BadRequestException":
|
|
6024
5215
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
6025
|
-
|
|
6026
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
6027
|
-
name: errorCode,
|
|
6028
|
-
$metadata: deserializeMetadata(output),
|
|
6029
|
-
};
|
|
6030
|
-
break;
|
|
5216
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
6031
5217
|
case "NotFoundException":
|
|
6032
5218
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
6033
|
-
|
|
6034
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
6035
|
-
name: errorCode,
|
|
6036
|
-
$metadata: deserializeMetadata(output),
|
|
6037
|
-
};
|
|
6038
|
-
break;
|
|
5219
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
6039
5220
|
case "TooManyRequestsException":
|
|
6040
5221
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
6041
|
-
|
|
6042
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
6043
|
-
name: errorCode,
|
|
6044
|
-
$metadata: deserializeMetadata(output),
|
|
6045
|
-
};
|
|
6046
|
-
break;
|
|
5222
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
6047
5223
|
default:
|
|
6048
5224
|
const parsedBody = parsedOutput.body;
|
|
6049
|
-
|
|
6050
|
-
|
|
6051
|
-
...parsedBody,
|
|
6052
|
-
name: `${errorCode}`,
|
|
6053
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5225
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
5226
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6054
5227
|
$fault: "client",
|
|
6055
5228
|
$metadata: deserializeMetadata(output),
|
|
6056
|
-
};
|
|
5229
|
+
});
|
|
5230
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
6057
5231
|
}
|
|
6058
|
-
const message = response.message || response.Message || errorCode;
|
|
6059
|
-
response.message = message;
|
|
6060
|
-
delete response.Message;
|
|
6061
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6062
5232
|
};
|
|
6063
5233
|
const deserializeAws_restJson1GetIntegrationsCommand = async (output, context) => {
|
|
6064
5234
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6090,43 +5260,22 @@ const deserializeAws_restJson1GetIntegrationsCommandError = async (output, conte
|
|
|
6090
5260
|
switch (errorCode) {
|
|
6091
5261
|
case "BadRequestException":
|
|
6092
5262
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
6093
|
-
|
|
6094
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
6095
|
-
name: errorCode,
|
|
6096
|
-
$metadata: deserializeMetadata(output),
|
|
6097
|
-
};
|
|
6098
|
-
break;
|
|
5263
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
6099
5264
|
case "NotFoundException":
|
|
6100
5265
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
6101
|
-
|
|
6102
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
6103
|
-
name: errorCode,
|
|
6104
|
-
$metadata: deserializeMetadata(output),
|
|
6105
|
-
};
|
|
6106
|
-
break;
|
|
5266
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
6107
5267
|
case "TooManyRequestsException":
|
|
6108
5268
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
6109
|
-
|
|
6110
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
6111
|
-
name: errorCode,
|
|
6112
|
-
$metadata: deserializeMetadata(output),
|
|
6113
|
-
};
|
|
6114
|
-
break;
|
|
5269
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
6115
5270
|
default:
|
|
6116
5271
|
const parsedBody = parsedOutput.body;
|
|
6117
|
-
|
|
6118
|
-
|
|
6119
|
-
...parsedBody,
|
|
6120
|
-
name: `${errorCode}`,
|
|
6121
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5272
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
5273
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6122
5274
|
$fault: "client",
|
|
6123
5275
|
$metadata: deserializeMetadata(output),
|
|
6124
|
-
};
|
|
5276
|
+
});
|
|
5277
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
6125
5278
|
}
|
|
6126
|
-
const message = response.message || response.Message || errorCode;
|
|
6127
|
-
response.message = message;
|
|
6128
|
-
delete response.Message;
|
|
6129
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6130
5279
|
};
|
|
6131
5280
|
const deserializeAws_restJson1GetModelCommand = async (output, context) => {
|
|
6132
5281
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6170,35 +5319,19 @@ const deserializeAws_restJson1GetModelCommandError = async (output, context) =>
|
|
|
6170
5319
|
switch (errorCode) {
|
|
6171
5320
|
case "NotFoundException":
|
|
6172
5321
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
6173
|
-
|
|
6174
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
6175
|
-
name: errorCode,
|
|
6176
|
-
$metadata: deserializeMetadata(output),
|
|
6177
|
-
};
|
|
6178
|
-
break;
|
|
5322
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
6179
5323
|
case "TooManyRequestsException":
|
|
6180
5324
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
6181
|
-
|
|
6182
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
6183
|
-
name: errorCode,
|
|
6184
|
-
$metadata: deserializeMetadata(output),
|
|
6185
|
-
};
|
|
6186
|
-
break;
|
|
5325
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
6187
5326
|
default:
|
|
6188
5327
|
const parsedBody = parsedOutput.body;
|
|
6189
|
-
|
|
6190
|
-
|
|
6191
|
-
...parsedBody,
|
|
6192
|
-
name: `${errorCode}`,
|
|
6193
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5328
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
5329
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6194
5330
|
$fault: "client",
|
|
6195
5331
|
$metadata: deserializeMetadata(output),
|
|
6196
|
-
};
|
|
5332
|
+
});
|
|
5333
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
6197
5334
|
}
|
|
6198
|
-
const message = response.message || response.Message || errorCode;
|
|
6199
|
-
response.message = message;
|
|
6200
|
-
delete response.Message;
|
|
6201
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6202
5335
|
};
|
|
6203
5336
|
const deserializeAws_restJson1GetModelsCommand = async (output, context) => {
|
|
6204
5337
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6230,43 +5363,22 @@ const deserializeAws_restJson1GetModelsCommandError = async (output, context) =>
|
|
|
6230
5363
|
switch (errorCode) {
|
|
6231
5364
|
case "BadRequestException":
|
|
6232
5365
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
6233
|
-
|
|
6234
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
6235
|
-
name: errorCode,
|
|
6236
|
-
$metadata: deserializeMetadata(output),
|
|
6237
|
-
};
|
|
6238
|
-
break;
|
|
5366
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
6239
5367
|
case "NotFoundException":
|
|
6240
5368
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
6241
|
-
|
|
6242
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
6243
|
-
name: errorCode,
|
|
6244
|
-
$metadata: deserializeMetadata(output),
|
|
6245
|
-
};
|
|
6246
|
-
break;
|
|
5369
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
6247
5370
|
case "TooManyRequestsException":
|
|
6248
5371
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
6249
|
-
|
|
6250
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
6251
|
-
name: errorCode,
|
|
6252
|
-
$metadata: deserializeMetadata(output),
|
|
6253
|
-
};
|
|
6254
|
-
break;
|
|
5372
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
6255
5373
|
default:
|
|
6256
5374
|
const parsedBody = parsedOutput.body;
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
...parsedBody,
|
|
6260
|
-
name: `${errorCode}`,
|
|
6261
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5375
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
5376
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6262
5377
|
$fault: "client",
|
|
6263
5378
|
$metadata: deserializeMetadata(output),
|
|
6264
|
-
};
|
|
5379
|
+
});
|
|
5380
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
6265
5381
|
}
|
|
6266
|
-
const message = response.message || response.Message || errorCode;
|
|
6267
|
-
response.message = message;
|
|
6268
|
-
delete response.Message;
|
|
6269
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6270
5382
|
};
|
|
6271
5383
|
const deserializeAws_restJson1GetModelTemplateCommand = async (output, context) => {
|
|
6272
5384
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6294,35 +5406,19 @@ const deserializeAws_restJson1GetModelTemplateCommandError = async (output, cont
|
|
|
6294
5406
|
switch (errorCode) {
|
|
6295
5407
|
case "NotFoundException":
|
|
6296
5408
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
6297
|
-
|
|
6298
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
6299
|
-
name: errorCode,
|
|
6300
|
-
$metadata: deserializeMetadata(output),
|
|
6301
|
-
};
|
|
6302
|
-
break;
|
|
5409
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
6303
5410
|
case "TooManyRequestsException":
|
|
6304
5411
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
6305
|
-
|
|
6306
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
6307
|
-
name: errorCode,
|
|
6308
|
-
$metadata: deserializeMetadata(output),
|
|
6309
|
-
};
|
|
6310
|
-
break;
|
|
5412
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
6311
5413
|
default:
|
|
6312
5414
|
const parsedBody = parsedOutput.body;
|
|
6313
|
-
|
|
6314
|
-
|
|
6315
|
-
...parsedBody,
|
|
6316
|
-
name: `${errorCode}`,
|
|
6317
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5415
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
5416
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6318
5417
|
$fault: "client",
|
|
6319
5418
|
$metadata: deserializeMetadata(output),
|
|
6320
|
-
};
|
|
5419
|
+
});
|
|
5420
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
6321
5421
|
}
|
|
6322
|
-
const message = response.message || response.Message || errorCode;
|
|
6323
|
-
response.message = message;
|
|
6324
|
-
delete response.Message;
|
|
6325
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6326
5422
|
};
|
|
6327
5423
|
const deserializeAws_restJson1GetRouteCommand = async (output, context) => {
|
|
6328
5424
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6398,35 +5494,19 @@ const deserializeAws_restJson1GetRouteCommandError = async (output, context) =>
|
|
|
6398
5494
|
switch (errorCode) {
|
|
6399
5495
|
case "NotFoundException":
|
|
6400
5496
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
6401
|
-
|
|
6402
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
6403
|
-
name: errorCode,
|
|
6404
|
-
$metadata: deserializeMetadata(output),
|
|
6405
|
-
};
|
|
6406
|
-
break;
|
|
5497
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
6407
5498
|
case "TooManyRequestsException":
|
|
6408
5499
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
6409
|
-
|
|
6410
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
6411
|
-
name: errorCode,
|
|
6412
|
-
$metadata: deserializeMetadata(output),
|
|
6413
|
-
};
|
|
6414
|
-
break;
|
|
5500
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
6415
5501
|
default:
|
|
6416
5502
|
const parsedBody = parsedOutput.body;
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
...parsedBody,
|
|
6420
|
-
name: `${errorCode}`,
|
|
6421
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5503
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
5504
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6422
5505
|
$fault: "client",
|
|
6423
5506
|
$metadata: deserializeMetadata(output),
|
|
6424
|
-
};
|
|
5507
|
+
});
|
|
5508
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
6425
5509
|
}
|
|
6426
|
-
const message = response.message || response.Message || errorCode;
|
|
6427
|
-
response.message = message;
|
|
6428
|
-
delete response.Message;
|
|
6429
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6430
5510
|
};
|
|
6431
5511
|
const deserializeAws_restJson1GetRouteResponseCommand = async (output, context) => {
|
|
6432
5512
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6470,35 +5550,19 @@ const deserializeAws_restJson1GetRouteResponseCommandError = async (output, cont
|
|
|
6470
5550
|
switch (errorCode) {
|
|
6471
5551
|
case "NotFoundException":
|
|
6472
5552
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
6473
|
-
|
|
6474
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
6475
|
-
name: errorCode,
|
|
6476
|
-
$metadata: deserializeMetadata(output),
|
|
6477
|
-
};
|
|
6478
|
-
break;
|
|
5553
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
6479
5554
|
case "TooManyRequestsException":
|
|
6480
5555
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
6481
|
-
|
|
6482
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
6483
|
-
name: errorCode,
|
|
6484
|
-
$metadata: deserializeMetadata(output),
|
|
6485
|
-
};
|
|
6486
|
-
break;
|
|
5556
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
6487
5557
|
default:
|
|
6488
5558
|
const parsedBody = parsedOutput.body;
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
...parsedBody,
|
|
6492
|
-
name: `${errorCode}`,
|
|
6493
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5559
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
5560
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6494
5561
|
$fault: "client",
|
|
6495
5562
|
$metadata: deserializeMetadata(output),
|
|
6496
|
-
};
|
|
5563
|
+
});
|
|
5564
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
6497
5565
|
}
|
|
6498
|
-
const message = response.message || response.Message || errorCode;
|
|
6499
|
-
response.message = message;
|
|
6500
|
-
delete response.Message;
|
|
6501
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6502
5566
|
};
|
|
6503
5567
|
const deserializeAws_restJson1GetRouteResponsesCommand = async (output, context) => {
|
|
6504
5568
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6530,43 +5594,22 @@ const deserializeAws_restJson1GetRouteResponsesCommandError = async (output, con
|
|
|
6530
5594
|
switch (errorCode) {
|
|
6531
5595
|
case "BadRequestException":
|
|
6532
5596
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
6533
|
-
|
|
6534
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
6535
|
-
name: errorCode,
|
|
6536
|
-
$metadata: deserializeMetadata(output),
|
|
6537
|
-
};
|
|
6538
|
-
break;
|
|
5597
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
6539
5598
|
case "NotFoundException":
|
|
6540
5599
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
6541
|
-
|
|
6542
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
6543
|
-
name: errorCode,
|
|
6544
|
-
$metadata: deserializeMetadata(output),
|
|
6545
|
-
};
|
|
6546
|
-
break;
|
|
5600
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
6547
5601
|
case "TooManyRequestsException":
|
|
6548
5602
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
6549
|
-
|
|
6550
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
6551
|
-
name: errorCode,
|
|
6552
|
-
$metadata: deserializeMetadata(output),
|
|
6553
|
-
};
|
|
6554
|
-
break;
|
|
5603
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
6555
5604
|
default:
|
|
6556
5605
|
const parsedBody = parsedOutput.body;
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
...parsedBody,
|
|
6560
|
-
name: `${errorCode}`,
|
|
6561
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5606
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
5607
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6562
5608
|
$fault: "client",
|
|
6563
5609
|
$metadata: deserializeMetadata(output),
|
|
6564
|
-
};
|
|
5610
|
+
});
|
|
5611
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
6565
5612
|
}
|
|
6566
|
-
const message = response.message || response.Message || errorCode;
|
|
6567
|
-
response.message = message;
|
|
6568
|
-
delete response.Message;
|
|
6569
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6570
5613
|
};
|
|
6571
5614
|
const deserializeAws_restJson1GetRoutesCommand = async (output, context) => {
|
|
6572
5615
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6598,43 +5641,22 @@ const deserializeAws_restJson1GetRoutesCommandError = async (output, context) =>
|
|
|
6598
5641
|
switch (errorCode) {
|
|
6599
5642
|
case "BadRequestException":
|
|
6600
5643
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
6601
|
-
|
|
6602
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
6603
|
-
name: errorCode,
|
|
6604
|
-
$metadata: deserializeMetadata(output),
|
|
6605
|
-
};
|
|
6606
|
-
break;
|
|
5644
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
6607
5645
|
case "NotFoundException":
|
|
6608
5646
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
6609
|
-
|
|
6610
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
6611
|
-
name: errorCode,
|
|
6612
|
-
$metadata: deserializeMetadata(output),
|
|
6613
|
-
};
|
|
6614
|
-
break;
|
|
5647
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
6615
5648
|
case "TooManyRequestsException":
|
|
6616
5649
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
6617
|
-
|
|
6618
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
6619
|
-
name: errorCode,
|
|
6620
|
-
$metadata: deserializeMetadata(output),
|
|
6621
|
-
};
|
|
6622
|
-
break;
|
|
5650
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
6623
5651
|
default:
|
|
6624
5652
|
const parsedBody = parsedOutput.body;
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
...parsedBody,
|
|
6628
|
-
name: `${errorCode}`,
|
|
6629
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5653
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
5654
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6630
5655
|
$fault: "client",
|
|
6631
5656
|
$metadata: deserializeMetadata(output),
|
|
6632
|
-
};
|
|
5657
|
+
});
|
|
5658
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
6633
5659
|
}
|
|
6634
|
-
const message = response.message || response.Message || errorCode;
|
|
6635
|
-
response.message = message;
|
|
6636
|
-
delete response.Message;
|
|
6637
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6638
5660
|
};
|
|
6639
5661
|
const deserializeAws_restJson1GetStageCommand = async (output, context) => {
|
|
6640
5662
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6714,35 +5736,19 @@ const deserializeAws_restJson1GetStageCommandError = async (output, context) =>
|
|
|
6714
5736
|
switch (errorCode) {
|
|
6715
5737
|
case "NotFoundException":
|
|
6716
5738
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
6717
|
-
|
|
6718
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
6719
|
-
name: errorCode,
|
|
6720
|
-
$metadata: deserializeMetadata(output),
|
|
6721
|
-
};
|
|
6722
|
-
break;
|
|
5739
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
6723
5740
|
case "TooManyRequestsException":
|
|
6724
5741
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
6725
|
-
|
|
6726
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
6727
|
-
name: errorCode,
|
|
6728
|
-
$metadata: deserializeMetadata(output),
|
|
6729
|
-
};
|
|
6730
|
-
break;
|
|
5742
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
6731
5743
|
default:
|
|
6732
5744
|
const parsedBody = parsedOutput.body;
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
...parsedBody,
|
|
6736
|
-
name: `${errorCode}`,
|
|
6737
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5745
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
5746
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6738
5747
|
$fault: "client",
|
|
6739
5748
|
$metadata: deserializeMetadata(output),
|
|
6740
|
-
};
|
|
5749
|
+
});
|
|
5750
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
6741
5751
|
}
|
|
6742
|
-
const message = response.message || response.Message || errorCode;
|
|
6743
|
-
response.message = message;
|
|
6744
|
-
delete response.Message;
|
|
6745
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6746
5752
|
};
|
|
6747
5753
|
const deserializeAws_restJson1GetStagesCommand = async (output, context) => {
|
|
6748
5754
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6774,43 +5780,22 @@ const deserializeAws_restJson1GetStagesCommandError = async (output, context) =>
|
|
|
6774
5780
|
switch (errorCode) {
|
|
6775
5781
|
case "BadRequestException":
|
|
6776
5782
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
6777
|
-
|
|
6778
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
6779
|
-
name: errorCode,
|
|
6780
|
-
$metadata: deserializeMetadata(output),
|
|
6781
|
-
};
|
|
6782
|
-
break;
|
|
5783
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
6783
5784
|
case "NotFoundException":
|
|
6784
5785
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
6785
|
-
|
|
6786
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
6787
|
-
name: errorCode,
|
|
6788
|
-
$metadata: deserializeMetadata(output),
|
|
6789
|
-
};
|
|
6790
|
-
break;
|
|
5786
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
6791
5787
|
case "TooManyRequestsException":
|
|
6792
5788
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
6793
|
-
|
|
6794
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
6795
|
-
name: errorCode,
|
|
6796
|
-
$metadata: deserializeMetadata(output),
|
|
6797
|
-
};
|
|
6798
|
-
break;
|
|
5789
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
6799
5790
|
default:
|
|
6800
5791
|
const parsedBody = parsedOutput.body;
|
|
6801
|
-
|
|
6802
|
-
|
|
6803
|
-
...parsedBody,
|
|
6804
|
-
name: `${errorCode}`,
|
|
6805
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5792
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
5793
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6806
5794
|
$fault: "client",
|
|
6807
5795
|
$metadata: deserializeMetadata(output),
|
|
6808
|
-
};
|
|
5796
|
+
});
|
|
5797
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
6809
5798
|
}
|
|
6810
|
-
const message = response.message || response.Message || errorCode;
|
|
6811
|
-
response.message = message;
|
|
6812
|
-
delete response.Message;
|
|
6813
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6814
5799
|
};
|
|
6815
5800
|
const deserializeAws_restJson1GetTagsCommand = async (output, context) => {
|
|
6816
5801
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6838,51 +5823,25 @@ const deserializeAws_restJson1GetTagsCommandError = async (output, context) => {
|
|
|
6838
5823
|
switch (errorCode) {
|
|
6839
5824
|
case "BadRequestException":
|
|
6840
5825
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
6841
|
-
|
|
6842
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
6843
|
-
name: errorCode,
|
|
6844
|
-
$metadata: deserializeMetadata(output),
|
|
6845
|
-
};
|
|
6846
|
-
break;
|
|
5826
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
6847
5827
|
case "ConflictException":
|
|
6848
5828
|
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
6849
|
-
|
|
6850
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
6851
|
-
name: errorCode,
|
|
6852
|
-
$metadata: deserializeMetadata(output),
|
|
6853
|
-
};
|
|
6854
|
-
break;
|
|
5829
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
6855
5830
|
case "NotFoundException":
|
|
6856
5831
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
6857
|
-
|
|
6858
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
6859
|
-
name: errorCode,
|
|
6860
|
-
$metadata: deserializeMetadata(output),
|
|
6861
|
-
};
|
|
6862
|
-
break;
|
|
5832
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
6863
5833
|
case "TooManyRequestsException":
|
|
6864
5834
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
6865
|
-
|
|
6866
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
6867
|
-
name: errorCode,
|
|
6868
|
-
$metadata: deserializeMetadata(output),
|
|
6869
|
-
};
|
|
6870
|
-
break;
|
|
5835
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
6871
5836
|
default:
|
|
6872
5837
|
const parsedBody = parsedOutput.body;
|
|
6873
|
-
|
|
6874
|
-
|
|
6875
|
-
...parsedBody,
|
|
6876
|
-
name: `${errorCode}`,
|
|
6877
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5838
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
5839
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6878
5840
|
$fault: "client",
|
|
6879
5841
|
$metadata: deserializeMetadata(output),
|
|
6880
|
-
};
|
|
5842
|
+
});
|
|
5843
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
6881
5844
|
}
|
|
6882
|
-
const message = response.message || response.Message || errorCode;
|
|
6883
|
-
response.message = message;
|
|
6884
|
-
delete response.Message;
|
|
6885
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6886
5845
|
};
|
|
6887
5846
|
const deserializeAws_restJson1GetVpcLinkCommand = async (output, context) => {
|
|
6888
5847
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6942,35 +5901,19 @@ const deserializeAws_restJson1GetVpcLinkCommandError = async (output, context) =
|
|
|
6942
5901
|
switch (errorCode) {
|
|
6943
5902
|
case "NotFoundException":
|
|
6944
5903
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
6945
|
-
|
|
6946
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
6947
|
-
name: errorCode,
|
|
6948
|
-
$metadata: deserializeMetadata(output),
|
|
6949
|
-
};
|
|
6950
|
-
break;
|
|
5904
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
6951
5905
|
case "TooManyRequestsException":
|
|
6952
5906
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
6953
|
-
|
|
6954
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
6955
|
-
name: errorCode,
|
|
6956
|
-
$metadata: deserializeMetadata(output),
|
|
6957
|
-
};
|
|
6958
|
-
break;
|
|
5907
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
6959
5908
|
default:
|
|
6960
5909
|
const parsedBody = parsedOutput.body;
|
|
6961
|
-
|
|
6962
|
-
|
|
6963
|
-
...parsedBody,
|
|
6964
|
-
name: `${errorCode}`,
|
|
6965
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5910
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
5911
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6966
5912
|
$fault: "client",
|
|
6967
5913
|
$metadata: deserializeMetadata(output),
|
|
6968
|
-
};
|
|
5914
|
+
});
|
|
5915
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
6969
5916
|
}
|
|
6970
|
-
const message = response.message || response.Message || errorCode;
|
|
6971
|
-
response.message = message;
|
|
6972
|
-
delete response.Message;
|
|
6973
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6974
5917
|
};
|
|
6975
5918
|
const deserializeAws_restJson1GetVpcLinksCommand = async (output, context) => {
|
|
6976
5919
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -7002,35 +5945,19 @@ const deserializeAws_restJson1GetVpcLinksCommandError = async (output, context)
|
|
|
7002
5945
|
switch (errorCode) {
|
|
7003
5946
|
case "BadRequestException":
|
|
7004
5947
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
7005
|
-
|
|
7006
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
7007
|
-
name: errorCode,
|
|
7008
|
-
$metadata: deserializeMetadata(output),
|
|
7009
|
-
};
|
|
7010
|
-
break;
|
|
5948
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
7011
5949
|
case "TooManyRequestsException":
|
|
7012
5950
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
7013
|
-
|
|
7014
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
7015
|
-
name: errorCode,
|
|
7016
|
-
$metadata: deserializeMetadata(output),
|
|
7017
|
-
};
|
|
7018
|
-
break;
|
|
5951
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
7019
5952
|
default:
|
|
7020
5953
|
const parsedBody = parsedOutput.body;
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
...parsedBody,
|
|
7024
|
-
name: `${errorCode}`,
|
|
7025
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5954
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
5955
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7026
5956
|
$fault: "client",
|
|
7027
5957
|
$metadata: deserializeMetadata(output),
|
|
7028
|
-
};
|
|
5958
|
+
});
|
|
5959
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
7029
5960
|
}
|
|
7030
|
-
const message = response.message || response.Message || errorCode;
|
|
7031
|
-
response.message = message;
|
|
7032
|
-
delete response.Message;
|
|
7033
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
7034
5961
|
};
|
|
7035
5962
|
const deserializeAws_restJson1ImportApiCommand = async (output, context) => {
|
|
7036
5963
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -7118,51 +6045,25 @@ const deserializeAws_restJson1ImportApiCommandError = async (output, context) =>
|
|
|
7118
6045
|
switch (errorCode) {
|
|
7119
6046
|
case "BadRequestException":
|
|
7120
6047
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
7121
|
-
|
|
7122
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
7123
|
-
name: errorCode,
|
|
7124
|
-
$metadata: deserializeMetadata(output),
|
|
7125
|
-
};
|
|
7126
|
-
break;
|
|
6048
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
7127
6049
|
case "ConflictException":
|
|
7128
6050
|
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
7129
|
-
|
|
7130
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
7131
|
-
name: errorCode,
|
|
7132
|
-
$metadata: deserializeMetadata(output),
|
|
7133
|
-
};
|
|
7134
|
-
break;
|
|
6051
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
7135
6052
|
case "NotFoundException":
|
|
7136
6053
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
7137
|
-
|
|
7138
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
7139
|
-
name: errorCode,
|
|
7140
|
-
$metadata: deserializeMetadata(output),
|
|
7141
|
-
};
|
|
7142
|
-
break;
|
|
6054
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
7143
6055
|
case "TooManyRequestsException":
|
|
7144
6056
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
7145
|
-
|
|
7146
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
7147
|
-
name: errorCode,
|
|
7148
|
-
$metadata: deserializeMetadata(output),
|
|
7149
|
-
};
|
|
7150
|
-
break;
|
|
6057
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
7151
6058
|
default:
|
|
7152
6059
|
const parsedBody = parsedOutput.body;
|
|
7153
|
-
|
|
7154
|
-
|
|
7155
|
-
...parsedBody,
|
|
7156
|
-
name: `${errorCode}`,
|
|
7157
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
6060
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
6061
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7158
6062
|
$fault: "client",
|
|
7159
6063
|
$metadata: deserializeMetadata(output),
|
|
7160
|
-
};
|
|
6064
|
+
});
|
|
6065
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
7161
6066
|
}
|
|
7162
|
-
const message = response.message || response.Message || errorCode;
|
|
7163
|
-
response.message = message;
|
|
7164
|
-
delete response.Message;
|
|
7165
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
7166
6067
|
};
|
|
7167
6068
|
const deserializeAws_restJson1ReimportApiCommand = async (output, context) => {
|
|
7168
6069
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -7250,51 +6151,25 @@ const deserializeAws_restJson1ReimportApiCommandError = async (output, context)
|
|
|
7250
6151
|
switch (errorCode) {
|
|
7251
6152
|
case "BadRequestException":
|
|
7252
6153
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
7253
|
-
|
|
7254
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
7255
|
-
name: errorCode,
|
|
7256
|
-
$metadata: deserializeMetadata(output),
|
|
7257
|
-
};
|
|
7258
|
-
break;
|
|
6154
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
7259
6155
|
case "ConflictException":
|
|
7260
6156
|
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
7261
|
-
|
|
7262
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
7263
|
-
name: errorCode,
|
|
7264
|
-
$metadata: deserializeMetadata(output),
|
|
7265
|
-
};
|
|
7266
|
-
break;
|
|
6157
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
7267
6158
|
case "NotFoundException":
|
|
7268
6159
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
7269
|
-
|
|
7270
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
7271
|
-
name: errorCode,
|
|
7272
|
-
$metadata: deserializeMetadata(output),
|
|
7273
|
-
};
|
|
7274
|
-
break;
|
|
6160
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
7275
6161
|
case "TooManyRequestsException":
|
|
7276
6162
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
7277
|
-
|
|
7278
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
7279
|
-
name: errorCode,
|
|
7280
|
-
$metadata: deserializeMetadata(output),
|
|
7281
|
-
};
|
|
7282
|
-
break;
|
|
6163
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
7283
6164
|
default:
|
|
7284
6165
|
const parsedBody = parsedOutput.body;
|
|
7285
|
-
|
|
7286
|
-
|
|
7287
|
-
...parsedBody,
|
|
7288
|
-
name: `${errorCode}`,
|
|
7289
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
6166
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
6167
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7290
6168
|
$fault: "client",
|
|
7291
6169
|
$metadata: deserializeMetadata(output),
|
|
7292
|
-
};
|
|
6170
|
+
});
|
|
6171
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
7293
6172
|
}
|
|
7294
|
-
const message = response.message || response.Message || errorCode;
|
|
7295
|
-
response.message = message;
|
|
7296
|
-
delete response.Message;
|
|
7297
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
7298
6173
|
};
|
|
7299
6174
|
const deserializeAws_restJson1ResetAuthorizersCacheCommand = async (output, context) => {
|
|
7300
6175
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -7318,35 +6193,19 @@ const deserializeAws_restJson1ResetAuthorizersCacheCommandError = async (output,
|
|
|
7318
6193
|
switch (errorCode) {
|
|
7319
6194
|
case "NotFoundException":
|
|
7320
6195
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
7321
|
-
|
|
7322
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
7323
|
-
name: errorCode,
|
|
7324
|
-
$metadata: deserializeMetadata(output),
|
|
7325
|
-
};
|
|
7326
|
-
break;
|
|
6196
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
7327
6197
|
case "TooManyRequestsException":
|
|
7328
6198
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
7329
|
-
|
|
7330
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
7331
|
-
name: errorCode,
|
|
7332
|
-
$metadata: deserializeMetadata(output),
|
|
7333
|
-
};
|
|
7334
|
-
break;
|
|
6199
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
7335
6200
|
default:
|
|
7336
6201
|
const parsedBody = parsedOutput.body;
|
|
7337
|
-
|
|
7338
|
-
|
|
7339
|
-
...parsedBody,
|
|
7340
|
-
name: `${errorCode}`,
|
|
7341
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
6202
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
6203
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7342
6204
|
$fault: "client",
|
|
7343
6205
|
$metadata: deserializeMetadata(output),
|
|
7344
|
-
};
|
|
6206
|
+
});
|
|
6207
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
7345
6208
|
}
|
|
7346
|
-
const message = response.message || response.Message || errorCode;
|
|
7347
|
-
response.message = message;
|
|
7348
|
-
delete response.Message;
|
|
7349
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
7350
6209
|
};
|
|
7351
6210
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
7352
6211
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -7370,51 +6229,25 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
7370
6229
|
switch (errorCode) {
|
|
7371
6230
|
case "BadRequestException":
|
|
7372
6231
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
7373
|
-
|
|
7374
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
7375
|
-
name: errorCode,
|
|
7376
|
-
$metadata: deserializeMetadata(output),
|
|
7377
|
-
};
|
|
7378
|
-
break;
|
|
6232
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
7379
6233
|
case "ConflictException":
|
|
7380
6234
|
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
7381
|
-
|
|
7382
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
7383
|
-
name: errorCode,
|
|
7384
|
-
$metadata: deserializeMetadata(output),
|
|
7385
|
-
};
|
|
7386
|
-
break;
|
|
6235
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
7387
6236
|
case "NotFoundException":
|
|
7388
6237
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
7389
|
-
|
|
7390
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
7391
|
-
name: errorCode,
|
|
7392
|
-
$metadata: deserializeMetadata(output),
|
|
7393
|
-
};
|
|
7394
|
-
break;
|
|
6238
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
7395
6239
|
case "TooManyRequestsException":
|
|
7396
6240
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
7397
|
-
|
|
7398
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
7399
|
-
name: errorCode,
|
|
7400
|
-
$metadata: deserializeMetadata(output),
|
|
7401
|
-
};
|
|
7402
|
-
break;
|
|
6241
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
7403
6242
|
default:
|
|
7404
6243
|
const parsedBody = parsedOutput.body;
|
|
7405
|
-
|
|
7406
|
-
|
|
7407
|
-
...parsedBody,
|
|
7408
|
-
name: `${errorCode}`,
|
|
7409
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
6244
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
6245
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7410
6246
|
$fault: "client",
|
|
7411
6247
|
$metadata: deserializeMetadata(output),
|
|
7412
|
-
};
|
|
6248
|
+
});
|
|
6249
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
7413
6250
|
}
|
|
7414
|
-
const message = response.message || response.Message || errorCode;
|
|
7415
|
-
response.message = message;
|
|
7416
|
-
delete response.Message;
|
|
7417
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
7418
6251
|
};
|
|
7419
6252
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
7420
6253
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -7438,51 +6271,25 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
7438
6271
|
switch (errorCode) {
|
|
7439
6272
|
case "BadRequestException":
|
|
7440
6273
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
7441
|
-
|
|
7442
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
7443
|
-
name: errorCode,
|
|
7444
|
-
$metadata: deserializeMetadata(output),
|
|
7445
|
-
};
|
|
7446
|
-
break;
|
|
6274
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
7447
6275
|
case "ConflictException":
|
|
7448
6276
|
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
7449
|
-
|
|
7450
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
7451
|
-
name: errorCode,
|
|
7452
|
-
$metadata: deserializeMetadata(output),
|
|
7453
|
-
};
|
|
7454
|
-
break;
|
|
6277
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
7455
6278
|
case "NotFoundException":
|
|
7456
6279
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
7457
|
-
|
|
7458
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
7459
|
-
name: errorCode,
|
|
7460
|
-
$metadata: deserializeMetadata(output),
|
|
7461
|
-
};
|
|
7462
|
-
break;
|
|
6280
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
7463
6281
|
case "TooManyRequestsException":
|
|
7464
6282
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
7465
|
-
|
|
7466
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
7467
|
-
name: errorCode,
|
|
7468
|
-
$metadata: deserializeMetadata(output),
|
|
7469
|
-
};
|
|
7470
|
-
break;
|
|
6283
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
7471
6284
|
default:
|
|
7472
6285
|
const parsedBody = parsedOutput.body;
|
|
7473
|
-
|
|
7474
|
-
|
|
7475
|
-
...parsedBody,
|
|
7476
|
-
name: `${errorCode}`,
|
|
7477
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
6286
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
6287
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7478
6288
|
$fault: "client",
|
|
7479
6289
|
$metadata: deserializeMetadata(output),
|
|
7480
|
-
};
|
|
6290
|
+
});
|
|
6291
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
7481
6292
|
}
|
|
7482
|
-
const message = response.message || response.Message || errorCode;
|
|
7483
|
-
response.message = message;
|
|
7484
|
-
delete response.Message;
|
|
7485
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
7486
6293
|
};
|
|
7487
6294
|
const deserializeAws_restJson1UpdateApiCommand = async (output, context) => {
|
|
7488
6295
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -7570,51 +6377,25 @@ const deserializeAws_restJson1UpdateApiCommandError = async (output, context) =>
|
|
|
7570
6377
|
switch (errorCode) {
|
|
7571
6378
|
case "BadRequestException":
|
|
7572
6379
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
7573
|
-
|
|
7574
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
7575
|
-
name: errorCode,
|
|
7576
|
-
$metadata: deserializeMetadata(output),
|
|
7577
|
-
};
|
|
7578
|
-
break;
|
|
6380
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
7579
6381
|
case "ConflictException":
|
|
7580
6382
|
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
7581
|
-
|
|
7582
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
7583
|
-
name: errorCode,
|
|
7584
|
-
$metadata: deserializeMetadata(output),
|
|
7585
|
-
};
|
|
7586
|
-
break;
|
|
6383
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
7587
6384
|
case "NotFoundException":
|
|
7588
6385
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
7589
|
-
|
|
7590
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
7591
|
-
name: errorCode,
|
|
7592
|
-
$metadata: deserializeMetadata(output),
|
|
7593
|
-
};
|
|
7594
|
-
break;
|
|
6386
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
7595
6387
|
case "TooManyRequestsException":
|
|
7596
6388
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
7597
|
-
|
|
7598
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
7599
|
-
name: errorCode,
|
|
7600
|
-
$metadata: deserializeMetadata(output),
|
|
7601
|
-
};
|
|
7602
|
-
break;
|
|
6389
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
7603
6390
|
default:
|
|
7604
6391
|
const parsedBody = parsedOutput.body;
|
|
7605
|
-
|
|
7606
|
-
|
|
7607
|
-
...parsedBody,
|
|
7608
|
-
name: `${errorCode}`,
|
|
7609
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
6392
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
6393
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7610
6394
|
$fault: "client",
|
|
7611
6395
|
$metadata: deserializeMetadata(output),
|
|
7612
|
-
};
|
|
6396
|
+
});
|
|
6397
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
7613
6398
|
}
|
|
7614
|
-
const message = response.message || response.Message || errorCode;
|
|
7615
|
-
response.message = message;
|
|
7616
|
-
delete response.Message;
|
|
7617
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
7618
6399
|
};
|
|
7619
6400
|
const deserializeAws_restJson1UpdateApiMappingCommand = async (output, context) => {
|
|
7620
6401
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -7654,51 +6435,25 @@ const deserializeAws_restJson1UpdateApiMappingCommandError = async (output, cont
|
|
|
7654
6435
|
switch (errorCode) {
|
|
7655
6436
|
case "BadRequestException":
|
|
7656
6437
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
7657
|
-
|
|
7658
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
7659
|
-
name: errorCode,
|
|
7660
|
-
$metadata: deserializeMetadata(output),
|
|
7661
|
-
};
|
|
7662
|
-
break;
|
|
6438
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
7663
6439
|
case "ConflictException":
|
|
7664
6440
|
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
7665
|
-
|
|
7666
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
7667
|
-
name: errorCode,
|
|
7668
|
-
$metadata: deserializeMetadata(output),
|
|
7669
|
-
};
|
|
7670
|
-
break;
|
|
6441
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
7671
6442
|
case "NotFoundException":
|
|
7672
6443
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
7673
|
-
|
|
7674
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
7675
|
-
name: errorCode,
|
|
7676
|
-
$metadata: deserializeMetadata(output),
|
|
7677
|
-
};
|
|
7678
|
-
break;
|
|
6444
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
7679
6445
|
case "TooManyRequestsException":
|
|
7680
6446
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
7681
|
-
|
|
7682
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
7683
|
-
name: errorCode,
|
|
7684
|
-
$metadata: deserializeMetadata(output),
|
|
7685
|
-
};
|
|
7686
|
-
break;
|
|
6447
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
7687
6448
|
default:
|
|
7688
6449
|
const parsedBody = parsedOutput.body;
|
|
7689
|
-
|
|
7690
|
-
|
|
7691
|
-
...parsedBody,
|
|
7692
|
-
name: `${errorCode}`,
|
|
7693
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
6450
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
6451
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7694
6452
|
$fault: "client",
|
|
7695
6453
|
$metadata: deserializeMetadata(output),
|
|
7696
|
-
};
|
|
6454
|
+
});
|
|
6455
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
7697
6456
|
}
|
|
7698
|
-
const message = response.message || response.Message || errorCode;
|
|
7699
|
-
response.message = message;
|
|
7700
|
-
delete response.Message;
|
|
7701
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
7702
6457
|
};
|
|
7703
6458
|
const deserializeAws_restJson1UpdateAuthorizerCommand = async (output, context) => {
|
|
7704
6459
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -7766,51 +6521,25 @@ const deserializeAws_restJson1UpdateAuthorizerCommandError = async (output, cont
|
|
|
7766
6521
|
switch (errorCode) {
|
|
7767
6522
|
case "BadRequestException":
|
|
7768
6523
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
7769
|
-
|
|
7770
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
7771
|
-
name: errorCode,
|
|
7772
|
-
$metadata: deserializeMetadata(output),
|
|
7773
|
-
};
|
|
7774
|
-
break;
|
|
6524
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
7775
6525
|
case "ConflictException":
|
|
7776
6526
|
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
7777
|
-
|
|
7778
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
7779
|
-
name: errorCode,
|
|
7780
|
-
$metadata: deserializeMetadata(output),
|
|
7781
|
-
};
|
|
7782
|
-
break;
|
|
6527
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
7783
6528
|
case "NotFoundException":
|
|
7784
6529
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
7785
|
-
|
|
7786
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
7787
|
-
name: errorCode,
|
|
7788
|
-
$metadata: deserializeMetadata(output),
|
|
7789
|
-
};
|
|
7790
|
-
break;
|
|
6530
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
7791
6531
|
case "TooManyRequestsException":
|
|
7792
6532
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
7793
|
-
|
|
7794
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
7795
|
-
name: errorCode,
|
|
7796
|
-
$metadata: deserializeMetadata(output),
|
|
7797
|
-
};
|
|
7798
|
-
break;
|
|
6533
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
7799
6534
|
default:
|
|
7800
6535
|
const parsedBody = parsedOutput.body;
|
|
7801
|
-
|
|
7802
|
-
|
|
7803
|
-
...parsedBody,
|
|
7804
|
-
name: `${errorCode}`,
|
|
7805
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
6536
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
6537
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7806
6538
|
$fault: "client",
|
|
7807
6539
|
$metadata: deserializeMetadata(output),
|
|
7808
|
-
};
|
|
6540
|
+
});
|
|
6541
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
7809
6542
|
}
|
|
7810
|
-
const message = response.message || response.Message || errorCode;
|
|
7811
|
-
response.message = message;
|
|
7812
|
-
delete response.Message;
|
|
7813
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
7814
6543
|
};
|
|
7815
6544
|
const deserializeAws_restJson1UpdateDeploymentCommand = async (output, context) => {
|
|
7816
6545
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -7858,51 +6587,25 @@ const deserializeAws_restJson1UpdateDeploymentCommandError = async (output, cont
|
|
|
7858
6587
|
switch (errorCode) {
|
|
7859
6588
|
case "BadRequestException":
|
|
7860
6589
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
7861
|
-
|
|
7862
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
7863
|
-
name: errorCode,
|
|
7864
|
-
$metadata: deserializeMetadata(output),
|
|
7865
|
-
};
|
|
7866
|
-
break;
|
|
6590
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
7867
6591
|
case "ConflictException":
|
|
7868
6592
|
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
7869
|
-
|
|
7870
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
7871
|
-
name: errorCode,
|
|
7872
|
-
$metadata: deserializeMetadata(output),
|
|
7873
|
-
};
|
|
7874
|
-
break;
|
|
6593
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
7875
6594
|
case "NotFoundException":
|
|
7876
6595
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
7877
|
-
|
|
7878
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
7879
|
-
name: errorCode,
|
|
7880
|
-
$metadata: deserializeMetadata(output),
|
|
7881
|
-
};
|
|
7882
|
-
break;
|
|
6596
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
7883
6597
|
case "TooManyRequestsException":
|
|
7884
6598
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
7885
|
-
|
|
7886
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
7887
|
-
name: errorCode,
|
|
7888
|
-
$metadata: deserializeMetadata(output),
|
|
7889
|
-
};
|
|
7890
|
-
break;
|
|
6599
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
7891
6600
|
default:
|
|
7892
6601
|
const parsedBody = parsedOutput.body;
|
|
7893
|
-
|
|
7894
|
-
|
|
7895
|
-
...parsedBody,
|
|
7896
|
-
name: `${errorCode}`,
|
|
7897
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
6602
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
6603
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7898
6604
|
$fault: "client",
|
|
7899
6605
|
$metadata: deserializeMetadata(output),
|
|
7900
|
-
};
|
|
6606
|
+
});
|
|
6607
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
7901
6608
|
}
|
|
7902
|
-
const message = response.message || response.Message || errorCode;
|
|
7903
|
-
response.message = message;
|
|
7904
|
-
delete response.Message;
|
|
7905
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
7906
6609
|
};
|
|
7907
6610
|
const deserializeAws_restJson1UpdateDomainNameCommand = async (output, context) => {
|
|
7908
6611
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -7946,51 +6649,25 @@ const deserializeAws_restJson1UpdateDomainNameCommandError = async (output, cont
|
|
|
7946
6649
|
switch (errorCode) {
|
|
7947
6650
|
case "BadRequestException":
|
|
7948
6651
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
7949
|
-
|
|
7950
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
7951
|
-
name: errorCode,
|
|
7952
|
-
$metadata: deserializeMetadata(output),
|
|
7953
|
-
};
|
|
7954
|
-
break;
|
|
6652
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
7955
6653
|
case "ConflictException":
|
|
7956
6654
|
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
7957
|
-
|
|
7958
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
7959
|
-
name: errorCode,
|
|
7960
|
-
$metadata: deserializeMetadata(output),
|
|
7961
|
-
};
|
|
7962
|
-
break;
|
|
6655
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
7963
6656
|
case "NotFoundException":
|
|
7964
6657
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
7965
|
-
|
|
7966
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
7967
|
-
name: errorCode,
|
|
7968
|
-
$metadata: deserializeMetadata(output),
|
|
7969
|
-
};
|
|
7970
|
-
break;
|
|
6658
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
7971
6659
|
case "TooManyRequestsException":
|
|
7972
6660
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
7973
|
-
|
|
7974
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
7975
|
-
name: errorCode,
|
|
7976
|
-
$metadata: deserializeMetadata(output),
|
|
7977
|
-
};
|
|
7978
|
-
break;
|
|
6661
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
7979
6662
|
default:
|
|
7980
6663
|
const parsedBody = parsedOutput.body;
|
|
7981
|
-
|
|
7982
|
-
|
|
7983
|
-
...parsedBody,
|
|
7984
|
-
name: `${errorCode}`,
|
|
7985
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
6664
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
6665
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7986
6666
|
$fault: "client",
|
|
7987
6667
|
$metadata: deserializeMetadata(output),
|
|
7988
|
-
};
|
|
6668
|
+
});
|
|
6669
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
7989
6670
|
}
|
|
7990
|
-
const message = response.message || response.Message || errorCode;
|
|
7991
|
-
response.message = message;
|
|
7992
|
-
delete response.Message;
|
|
7993
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
7994
6671
|
};
|
|
7995
6672
|
const deserializeAws_restJson1UpdateIntegrationCommand = async (output, context) => {
|
|
7996
6673
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -8095,51 +6772,25 @@ const deserializeAws_restJson1UpdateIntegrationCommandError = async (output, con
|
|
|
8095
6772
|
switch (errorCode) {
|
|
8096
6773
|
case "BadRequestException":
|
|
8097
6774
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
8098
|
-
|
|
8099
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
8100
|
-
name: errorCode,
|
|
8101
|
-
$metadata: deserializeMetadata(output),
|
|
8102
|
-
};
|
|
8103
|
-
break;
|
|
6775
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
8104
6776
|
case "ConflictException":
|
|
8105
6777
|
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
8106
|
-
|
|
8107
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
8108
|
-
name: errorCode,
|
|
8109
|
-
$metadata: deserializeMetadata(output),
|
|
8110
|
-
};
|
|
8111
|
-
break;
|
|
6778
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
8112
6779
|
case "NotFoundException":
|
|
8113
6780
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
8114
|
-
|
|
8115
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
8116
|
-
name: errorCode,
|
|
8117
|
-
$metadata: deserializeMetadata(output),
|
|
8118
|
-
};
|
|
8119
|
-
break;
|
|
6781
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
8120
6782
|
case "TooManyRequestsException":
|
|
8121
6783
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
8122
|
-
|
|
8123
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
8124
|
-
name: errorCode,
|
|
8125
|
-
$metadata: deserializeMetadata(output),
|
|
8126
|
-
};
|
|
8127
|
-
break;
|
|
6784
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
8128
6785
|
default:
|
|
8129
6786
|
const parsedBody = parsedOutput.body;
|
|
8130
|
-
|
|
8131
|
-
|
|
8132
|
-
...parsedBody,
|
|
8133
|
-
name: `${errorCode}`,
|
|
8134
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
6787
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
6788
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8135
6789
|
$fault: "client",
|
|
8136
6790
|
$metadata: deserializeMetadata(output),
|
|
8137
|
-
};
|
|
6791
|
+
});
|
|
6792
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
8138
6793
|
}
|
|
8139
|
-
const message = response.message || response.Message || errorCode;
|
|
8140
|
-
response.message = message;
|
|
8141
|
-
delete response.Message;
|
|
8142
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
8143
6794
|
};
|
|
8144
6795
|
const deserializeAws_restJson1UpdateIntegrationResponseCommand = async (output, context) => {
|
|
8145
6796
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -8187,51 +6838,25 @@ const deserializeAws_restJson1UpdateIntegrationResponseCommandError = async (out
|
|
|
8187
6838
|
switch (errorCode) {
|
|
8188
6839
|
case "BadRequestException":
|
|
8189
6840
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
8190
|
-
|
|
8191
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
8192
|
-
name: errorCode,
|
|
8193
|
-
$metadata: deserializeMetadata(output),
|
|
8194
|
-
};
|
|
8195
|
-
break;
|
|
6841
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
8196
6842
|
case "ConflictException":
|
|
8197
6843
|
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
8198
|
-
|
|
8199
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
8200
|
-
name: errorCode,
|
|
8201
|
-
$metadata: deserializeMetadata(output),
|
|
8202
|
-
};
|
|
8203
|
-
break;
|
|
6844
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
8204
6845
|
case "NotFoundException":
|
|
8205
6846
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
8206
|
-
|
|
8207
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
8208
|
-
name: errorCode,
|
|
8209
|
-
$metadata: deserializeMetadata(output),
|
|
8210
|
-
};
|
|
8211
|
-
break;
|
|
6847
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
8212
6848
|
case "TooManyRequestsException":
|
|
8213
6849
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
8214
|
-
|
|
8215
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
8216
|
-
name: errorCode,
|
|
8217
|
-
$metadata: deserializeMetadata(output),
|
|
8218
|
-
};
|
|
8219
|
-
break;
|
|
6850
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
8220
6851
|
default:
|
|
8221
6852
|
const parsedBody = parsedOutput.body;
|
|
8222
|
-
|
|
8223
|
-
|
|
8224
|
-
...parsedBody,
|
|
8225
|
-
name: `${errorCode}`,
|
|
8226
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
6853
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
6854
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8227
6855
|
$fault: "client",
|
|
8228
6856
|
$metadata: deserializeMetadata(output),
|
|
8229
|
-
};
|
|
6857
|
+
});
|
|
6858
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
8230
6859
|
}
|
|
8231
|
-
const message = response.message || response.Message || errorCode;
|
|
8232
|
-
response.message = message;
|
|
8233
|
-
delete response.Message;
|
|
8234
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
8235
6860
|
};
|
|
8236
6861
|
const deserializeAws_restJson1UpdateModelCommand = async (output, context) => {
|
|
8237
6862
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -8275,51 +6900,25 @@ const deserializeAws_restJson1UpdateModelCommandError = async (output, context)
|
|
|
8275
6900
|
switch (errorCode) {
|
|
8276
6901
|
case "BadRequestException":
|
|
8277
6902
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
8278
|
-
|
|
8279
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
8280
|
-
name: errorCode,
|
|
8281
|
-
$metadata: deserializeMetadata(output),
|
|
8282
|
-
};
|
|
8283
|
-
break;
|
|
6903
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
8284
6904
|
case "ConflictException":
|
|
8285
6905
|
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
8286
|
-
|
|
8287
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
8288
|
-
name: errorCode,
|
|
8289
|
-
$metadata: deserializeMetadata(output),
|
|
8290
|
-
};
|
|
8291
|
-
break;
|
|
6906
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
8292
6907
|
case "NotFoundException":
|
|
8293
6908
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
8294
|
-
|
|
8295
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
8296
|
-
name: errorCode,
|
|
8297
|
-
$metadata: deserializeMetadata(output),
|
|
8298
|
-
};
|
|
8299
|
-
break;
|
|
6909
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
8300
6910
|
case "TooManyRequestsException":
|
|
8301
6911
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
8302
|
-
|
|
8303
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
8304
|
-
name: errorCode,
|
|
8305
|
-
$metadata: deserializeMetadata(output),
|
|
8306
|
-
};
|
|
8307
|
-
break;
|
|
6912
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
8308
6913
|
default:
|
|
8309
6914
|
const parsedBody = parsedOutput.body;
|
|
8310
|
-
|
|
8311
|
-
|
|
8312
|
-
...parsedBody,
|
|
8313
|
-
name: `${errorCode}`,
|
|
8314
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
6915
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
6916
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8315
6917
|
$fault: "client",
|
|
8316
6918
|
$metadata: deserializeMetadata(output),
|
|
8317
|
-
};
|
|
6919
|
+
});
|
|
6920
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
8318
6921
|
}
|
|
8319
|
-
const message = response.message || response.Message || errorCode;
|
|
8320
|
-
response.message = message;
|
|
8321
|
-
delete response.Message;
|
|
8322
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
8323
6922
|
};
|
|
8324
6923
|
const deserializeAws_restJson1UpdateRouteCommand = async (output, context) => {
|
|
8325
6924
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -8395,51 +6994,25 @@ const deserializeAws_restJson1UpdateRouteCommandError = async (output, context)
|
|
|
8395
6994
|
switch (errorCode) {
|
|
8396
6995
|
case "BadRequestException":
|
|
8397
6996
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
8398
|
-
|
|
8399
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
8400
|
-
name: errorCode,
|
|
8401
|
-
$metadata: deserializeMetadata(output),
|
|
8402
|
-
};
|
|
8403
|
-
break;
|
|
6997
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
8404
6998
|
case "ConflictException":
|
|
8405
6999
|
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
8406
|
-
|
|
8407
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
8408
|
-
name: errorCode,
|
|
8409
|
-
$metadata: deserializeMetadata(output),
|
|
8410
|
-
};
|
|
8411
|
-
break;
|
|
7000
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
8412
7001
|
case "NotFoundException":
|
|
8413
7002
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
8414
|
-
|
|
8415
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
8416
|
-
name: errorCode,
|
|
8417
|
-
$metadata: deserializeMetadata(output),
|
|
8418
|
-
};
|
|
8419
|
-
break;
|
|
7003
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
8420
7004
|
case "TooManyRequestsException":
|
|
8421
7005
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
8422
|
-
|
|
8423
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
8424
|
-
name: errorCode,
|
|
8425
|
-
$metadata: deserializeMetadata(output),
|
|
8426
|
-
};
|
|
8427
|
-
break;
|
|
7006
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
8428
7007
|
default:
|
|
8429
7008
|
const parsedBody = parsedOutput.body;
|
|
8430
|
-
|
|
8431
|
-
|
|
8432
|
-
...parsedBody,
|
|
8433
|
-
name: `${errorCode}`,
|
|
8434
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
7009
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
7010
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8435
7011
|
$fault: "client",
|
|
8436
7012
|
$metadata: deserializeMetadata(output),
|
|
8437
|
-
};
|
|
7013
|
+
});
|
|
7014
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
8438
7015
|
}
|
|
8439
|
-
const message = response.message || response.Message || errorCode;
|
|
8440
|
-
response.message = message;
|
|
8441
|
-
delete response.Message;
|
|
8442
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
8443
7016
|
};
|
|
8444
7017
|
const deserializeAws_restJson1UpdateRouteResponseCommand = async (output, context) => {
|
|
8445
7018
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -8483,51 +7056,25 @@ const deserializeAws_restJson1UpdateRouteResponseCommandError = async (output, c
|
|
|
8483
7056
|
switch (errorCode) {
|
|
8484
7057
|
case "BadRequestException":
|
|
8485
7058
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
8486
|
-
|
|
8487
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
8488
|
-
name: errorCode,
|
|
8489
|
-
$metadata: deserializeMetadata(output),
|
|
8490
|
-
};
|
|
8491
|
-
break;
|
|
7059
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
8492
7060
|
case "ConflictException":
|
|
8493
7061
|
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
8494
|
-
|
|
8495
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
8496
|
-
name: errorCode,
|
|
8497
|
-
$metadata: deserializeMetadata(output),
|
|
8498
|
-
};
|
|
8499
|
-
break;
|
|
7062
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
8500
7063
|
case "NotFoundException":
|
|
8501
7064
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
8502
|
-
|
|
8503
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
8504
|
-
name: errorCode,
|
|
8505
|
-
$metadata: deserializeMetadata(output),
|
|
8506
|
-
};
|
|
8507
|
-
break;
|
|
7065
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
8508
7066
|
case "TooManyRequestsException":
|
|
8509
7067
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
8510
|
-
|
|
8511
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
8512
|
-
name: errorCode,
|
|
8513
|
-
$metadata: deserializeMetadata(output),
|
|
8514
|
-
};
|
|
8515
|
-
break;
|
|
7068
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
8516
7069
|
default:
|
|
8517
7070
|
const parsedBody = parsedOutput.body;
|
|
8518
|
-
|
|
8519
|
-
|
|
8520
|
-
...parsedBody,
|
|
8521
|
-
name: `${errorCode}`,
|
|
8522
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
7071
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
7072
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8523
7073
|
$fault: "client",
|
|
8524
7074
|
$metadata: deserializeMetadata(output),
|
|
8525
|
-
};
|
|
7075
|
+
});
|
|
7076
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
8526
7077
|
}
|
|
8527
|
-
const message = response.message || response.Message || errorCode;
|
|
8528
|
-
response.message = message;
|
|
8529
|
-
delete response.Message;
|
|
8530
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
8531
7078
|
};
|
|
8532
7079
|
const deserializeAws_restJson1UpdateStageCommand = async (output, context) => {
|
|
8533
7080
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -8607,51 +7154,25 @@ const deserializeAws_restJson1UpdateStageCommandError = async (output, context)
|
|
|
8607
7154
|
switch (errorCode) {
|
|
8608
7155
|
case "BadRequestException":
|
|
8609
7156
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
8610
|
-
|
|
8611
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
8612
|
-
name: errorCode,
|
|
8613
|
-
$metadata: deserializeMetadata(output),
|
|
8614
|
-
};
|
|
8615
|
-
break;
|
|
7157
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
8616
7158
|
case "ConflictException":
|
|
8617
7159
|
case "com.amazonaws.apigatewayv2#ConflictException":
|
|
8618
|
-
|
|
8619
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
8620
|
-
name: errorCode,
|
|
8621
|
-
$metadata: deserializeMetadata(output),
|
|
8622
|
-
};
|
|
8623
|
-
break;
|
|
7160
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
8624
7161
|
case "NotFoundException":
|
|
8625
7162
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
8626
|
-
|
|
8627
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
8628
|
-
name: errorCode,
|
|
8629
|
-
$metadata: deserializeMetadata(output),
|
|
8630
|
-
};
|
|
8631
|
-
break;
|
|
7163
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
8632
7164
|
case "TooManyRequestsException":
|
|
8633
7165
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
8634
|
-
|
|
8635
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
8636
|
-
name: errorCode,
|
|
8637
|
-
$metadata: deserializeMetadata(output),
|
|
8638
|
-
};
|
|
8639
|
-
break;
|
|
7166
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
8640
7167
|
default:
|
|
8641
7168
|
const parsedBody = parsedOutput.body;
|
|
8642
|
-
|
|
8643
|
-
|
|
8644
|
-
...parsedBody,
|
|
8645
|
-
name: `${errorCode}`,
|
|
8646
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
7169
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
7170
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8647
7171
|
$fault: "client",
|
|
8648
7172
|
$metadata: deserializeMetadata(output),
|
|
8649
|
-
};
|
|
7173
|
+
});
|
|
7174
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
8650
7175
|
}
|
|
8651
|
-
const message = response.message || response.Message || errorCode;
|
|
8652
|
-
response.message = message;
|
|
8653
|
-
delete response.Message;
|
|
8654
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
8655
7176
|
};
|
|
8656
7177
|
const deserializeAws_restJson1UpdateVpcLinkCommand = async (output, context) => {
|
|
8657
7178
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -8711,91 +7232,61 @@ const deserializeAws_restJson1UpdateVpcLinkCommandError = async (output, context
|
|
|
8711
7232
|
switch (errorCode) {
|
|
8712
7233
|
case "BadRequestException":
|
|
8713
7234
|
case "com.amazonaws.apigatewayv2#BadRequestException":
|
|
8714
|
-
|
|
8715
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
8716
|
-
name: errorCode,
|
|
8717
|
-
$metadata: deserializeMetadata(output),
|
|
8718
|
-
};
|
|
8719
|
-
break;
|
|
7235
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
8720
7236
|
case "NotFoundException":
|
|
8721
7237
|
case "com.amazonaws.apigatewayv2#NotFoundException":
|
|
8722
|
-
|
|
8723
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
8724
|
-
name: errorCode,
|
|
8725
|
-
$metadata: deserializeMetadata(output),
|
|
8726
|
-
};
|
|
8727
|
-
break;
|
|
7238
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
8728
7239
|
case "TooManyRequestsException":
|
|
8729
7240
|
case "com.amazonaws.apigatewayv2#TooManyRequestsException":
|
|
8730
|
-
|
|
8731
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
8732
|
-
name: errorCode,
|
|
8733
|
-
$metadata: deserializeMetadata(output),
|
|
8734
|
-
};
|
|
8735
|
-
break;
|
|
7241
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
8736
7242
|
default:
|
|
8737
7243
|
const parsedBody = parsedOutput.body;
|
|
8738
|
-
|
|
8739
|
-
|
|
8740
|
-
...parsedBody,
|
|
8741
|
-
name: `${errorCode}`,
|
|
8742
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
7244
|
+
response = new ApiGatewayV2ServiceException_1.ApiGatewayV2ServiceException({
|
|
7245
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8743
7246
|
$fault: "client",
|
|
8744
7247
|
$metadata: deserializeMetadata(output),
|
|
8745
|
-
};
|
|
7248
|
+
});
|
|
7249
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
8746
7250
|
}
|
|
8747
|
-
const message = response.message || response.Message || errorCode;
|
|
8748
|
-
response.message = message;
|
|
8749
|
-
delete response.Message;
|
|
8750
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
8751
7251
|
};
|
|
8752
7252
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
8753
|
-
const contents = {
|
|
8754
|
-
name: "AccessDeniedException",
|
|
8755
|
-
$fault: "client",
|
|
8756
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
8757
|
-
Message: undefined,
|
|
8758
|
-
};
|
|
7253
|
+
const contents = {};
|
|
8759
7254
|
const data = parsedOutput.body;
|
|
8760
7255
|
if (data.message !== undefined && data.message !== null) {
|
|
8761
7256
|
contents.Message = smithy_client_1.expectString(data.message);
|
|
8762
7257
|
}
|
|
8763
|
-
|
|
7258
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
7259
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
7260
|
+
...contents,
|
|
7261
|
+
});
|
|
7262
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
8764
7263
|
};
|
|
8765
7264
|
const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
|
|
8766
|
-
const contents = {
|
|
8767
|
-
name: "BadRequestException",
|
|
8768
|
-
$fault: "client",
|
|
8769
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
8770
|
-
Message: undefined,
|
|
8771
|
-
};
|
|
7265
|
+
const contents = {};
|
|
8772
7266
|
const data = parsedOutput.body;
|
|
8773
7267
|
if (data.message !== undefined && data.message !== null) {
|
|
8774
7268
|
contents.Message = smithy_client_1.expectString(data.message);
|
|
8775
7269
|
}
|
|
8776
|
-
|
|
7270
|
+
const exception = new models_0_1.BadRequestException({
|
|
7271
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
7272
|
+
...contents,
|
|
7273
|
+
});
|
|
7274
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
8777
7275
|
};
|
|
8778
7276
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
8779
|
-
const contents = {
|
|
8780
|
-
name: "ConflictException",
|
|
8781
|
-
$fault: "client",
|
|
8782
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
8783
|
-
Message: undefined,
|
|
8784
|
-
};
|
|
7277
|
+
const contents = {};
|
|
8785
7278
|
const data = parsedOutput.body;
|
|
8786
7279
|
if (data.message !== undefined && data.message !== null) {
|
|
8787
7280
|
contents.Message = smithy_client_1.expectString(data.message);
|
|
8788
7281
|
}
|
|
8789
|
-
|
|
7282
|
+
const exception = new models_0_1.ConflictException({
|
|
7283
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
7284
|
+
...contents,
|
|
7285
|
+
});
|
|
7286
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
8790
7287
|
};
|
|
8791
7288
|
const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
8792
|
-
const contents = {
|
|
8793
|
-
name: "NotFoundException",
|
|
8794
|
-
$fault: "client",
|
|
8795
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
8796
|
-
Message: undefined,
|
|
8797
|
-
ResourceType: undefined,
|
|
8798
|
-
};
|
|
7289
|
+
const contents = {};
|
|
8799
7290
|
const data = parsedOutput.body;
|
|
8800
7291
|
if (data.message !== undefined && data.message !== null) {
|
|
8801
7292
|
contents.Message = smithy_client_1.expectString(data.message);
|
|
@@ -8803,16 +7294,14 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
|
|
|
8803
7294
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
8804
7295
|
contents.ResourceType = smithy_client_1.expectString(data.resourceType);
|
|
8805
7296
|
}
|
|
8806
|
-
|
|
7297
|
+
const exception = new models_0_1.NotFoundException({
|
|
7298
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
7299
|
+
...contents,
|
|
7300
|
+
});
|
|
7301
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
8807
7302
|
};
|
|
8808
7303
|
const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
|
|
8809
|
-
const contents = {
|
|
8810
|
-
name: "TooManyRequestsException",
|
|
8811
|
-
$fault: "client",
|
|
8812
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
8813
|
-
LimitType: undefined,
|
|
8814
|
-
Message: undefined,
|
|
8815
|
-
};
|
|
7304
|
+
const contents = {};
|
|
8816
7305
|
const data = parsedOutput.body;
|
|
8817
7306
|
if (data.limitType !== undefined && data.limitType !== null) {
|
|
8818
7307
|
contents.LimitType = smithy_client_1.expectString(data.limitType);
|
|
@@ -8820,7 +7309,11 @@ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOu
|
|
|
8820
7309
|
if (data.message !== undefined && data.message !== null) {
|
|
8821
7310
|
contents.Message = smithy_client_1.expectString(data.message);
|
|
8822
7311
|
}
|
|
8823
|
-
|
|
7312
|
+
const exception = new models_0_1.TooManyRequestsException({
|
|
7313
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
7314
|
+
...contents,
|
|
7315
|
+
});
|
|
7316
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
8824
7317
|
};
|
|
8825
7318
|
const serializeAws_restJson1__listOf__string = (input, context) => {
|
|
8826
7319
|
return input
|
|
@@ -9095,7 +7588,7 @@ const serializeAws_restJson1TlsConfigInput = (input, context) => {
|
|
|
9095
7588
|
};
|
|
9096
7589
|
};
|
|
9097
7590
|
const deserializeAws_restJson1__listOf__string = (output, context) => {
|
|
9098
|
-
|
|
7591
|
+
const retVal = (output || [])
|
|
9099
7592
|
.filter((e) => e != null)
|
|
9100
7593
|
.map((entry) => {
|
|
9101
7594
|
if (entry === null) {
|
|
@@ -9103,9 +7596,10 @@ const deserializeAws_restJson1__listOf__string = (output, context) => {
|
|
|
9103
7596
|
}
|
|
9104
7597
|
return smithy_client_1.expectString(entry);
|
|
9105
7598
|
});
|
|
7599
|
+
return retVal;
|
|
9106
7600
|
};
|
|
9107
7601
|
const deserializeAws_restJson1__listOfApi = (output, context) => {
|
|
9108
|
-
|
|
7602
|
+
const retVal = (output || [])
|
|
9109
7603
|
.filter((e) => e != null)
|
|
9110
7604
|
.map((entry) => {
|
|
9111
7605
|
if (entry === null) {
|
|
@@ -9113,9 +7607,10 @@ const deserializeAws_restJson1__listOfApi = (output, context) => {
|
|
|
9113
7607
|
}
|
|
9114
7608
|
return deserializeAws_restJson1Api(entry, context);
|
|
9115
7609
|
});
|
|
7610
|
+
return retVal;
|
|
9116
7611
|
};
|
|
9117
7612
|
const deserializeAws_restJson1__listOfApiMapping = (output, context) => {
|
|
9118
|
-
|
|
7613
|
+
const retVal = (output || [])
|
|
9119
7614
|
.filter((e) => e != null)
|
|
9120
7615
|
.map((entry) => {
|
|
9121
7616
|
if (entry === null) {
|
|
@@ -9123,9 +7618,10 @@ const deserializeAws_restJson1__listOfApiMapping = (output, context) => {
|
|
|
9123
7618
|
}
|
|
9124
7619
|
return deserializeAws_restJson1ApiMapping(entry, context);
|
|
9125
7620
|
});
|
|
7621
|
+
return retVal;
|
|
9126
7622
|
};
|
|
9127
7623
|
const deserializeAws_restJson1__listOfAuthorizer = (output, context) => {
|
|
9128
|
-
|
|
7624
|
+
const retVal = (output || [])
|
|
9129
7625
|
.filter((e) => e != null)
|
|
9130
7626
|
.map((entry) => {
|
|
9131
7627
|
if (entry === null) {
|
|
@@ -9133,9 +7629,10 @@ const deserializeAws_restJson1__listOfAuthorizer = (output, context) => {
|
|
|
9133
7629
|
}
|
|
9134
7630
|
return deserializeAws_restJson1Authorizer(entry, context);
|
|
9135
7631
|
});
|
|
7632
|
+
return retVal;
|
|
9136
7633
|
};
|
|
9137
7634
|
const deserializeAws_restJson1__listOfDeployment = (output, context) => {
|
|
9138
|
-
|
|
7635
|
+
const retVal = (output || [])
|
|
9139
7636
|
.filter((e) => e != null)
|
|
9140
7637
|
.map((entry) => {
|
|
9141
7638
|
if (entry === null) {
|
|
@@ -9143,9 +7640,10 @@ const deserializeAws_restJson1__listOfDeployment = (output, context) => {
|
|
|
9143
7640
|
}
|
|
9144
7641
|
return deserializeAws_restJson1Deployment(entry, context);
|
|
9145
7642
|
});
|
|
7643
|
+
return retVal;
|
|
9146
7644
|
};
|
|
9147
7645
|
const deserializeAws_restJson1__listOfDomainName = (output, context) => {
|
|
9148
|
-
|
|
7646
|
+
const retVal = (output || [])
|
|
9149
7647
|
.filter((e) => e != null)
|
|
9150
7648
|
.map((entry) => {
|
|
9151
7649
|
if (entry === null) {
|
|
@@ -9153,9 +7651,10 @@ const deserializeAws_restJson1__listOfDomainName = (output, context) => {
|
|
|
9153
7651
|
}
|
|
9154
7652
|
return deserializeAws_restJson1DomainName(entry, context);
|
|
9155
7653
|
});
|
|
7654
|
+
return retVal;
|
|
9156
7655
|
};
|
|
9157
7656
|
const deserializeAws_restJson1__listOfIntegration = (output, context) => {
|
|
9158
|
-
|
|
7657
|
+
const retVal = (output || [])
|
|
9159
7658
|
.filter((e) => e != null)
|
|
9160
7659
|
.map((entry) => {
|
|
9161
7660
|
if (entry === null) {
|
|
@@ -9163,9 +7662,10 @@ const deserializeAws_restJson1__listOfIntegration = (output, context) => {
|
|
|
9163
7662
|
}
|
|
9164
7663
|
return deserializeAws_restJson1Integration(entry, context);
|
|
9165
7664
|
});
|
|
7665
|
+
return retVal;
|
|
9166
7666
|
};
|
|
9167
7667
|
const deserializeAws_restJson1__listOfIntegrationResponse = (output, context) => {
|
|
9168
|
-
|
|
7668
|
+
const retVal = (output || [])
|
|
9169
7669
|
.filter((e) => e != null)
|
|
9170
7670
|
.map((entry) => {
|
|
9171
7671
|
if (entry === null) {
|
|
@@ -9173,9 +7673,10 @@ const deserializeAws_restJson1__listOfIntegrationResponse = (output, context) =>
|
|
|
9173
7673
|
}
|
|
9174
7674
|
return deserializeAws_restJson1IntegrationResponse(entry, context);
|
|
9175
7675
|
});
|
|
7676
|
+
return retVal;
|
|
9176
7677
|
};
|
|
9177
7678
|
const deserializeAws_restJson1__listOfModel = (output, context) => {
|
|
9178
|
-
|
|
7679
|
+
const retVal = (output || [])
|
|
9179
7680
|
.filter((e) => e != null)
|
|
9180
7681
|
.map((entry) => {
|
|
9181
7682
|
if (entry === null) {
|
|
@@ -9183,9 +7684,10 @@ const deserializeAws_restJson1__listOfModel = (output, context) => {
|
|
|
9183
7684
|
}
|
|
9184
7685
|
return deserializeAws_restJson1Model(entry, context);
|
|
9185
7686
|
});
|
|
7687
|
+
return retVal;
|
|
9186
7688
|
};
|
|
9187
7689
|
const deserializeAws_restJson1__listOfRoute = (output, context) => {
|
|
9188
|
-
|
|
7690
|
+
const retVal = (output || [])
|
|
9189
7691
|
.filter((e) => e != null)
|
|
9190
7692
|
.map((entry) => {
|
|
9191
7693
|
if (entry === null) {
|
|
@@ -9193,9 +7695,10 @@ const deserializeAws_restJson1__listOfRoute = (output, context) => {
|
|
|
9193
7695
|
}
|
|
9194
7696
|
return deserializeAws_restJson1Route(entry, context);
|
|
9195
7697
|
});
|
|
7698
|
+
return retVal;
|
|
9196
7699
|
};
|
|
9197
7700
|
const deserializeAws_restJson1__listOfRouteResponse = (output, context) => {
|
|
9198
|
-
|
|
7701
|
+
const retVal = (output || [])
|
|
9199
7702
|
.filter((e) => e != null)
|
|
9200
7703
|
.map((entry) => {
|
|
9201
7704
|
if (entry === null) {
|
|
@@ -9203,9 +7706,10 @@ const deserializeAws_restJson1__listOfRouteResponse = (output, context) => {
|
|
|
9203
7706
|
}
|
|
9204
7707
|
return deserializeAws_restJson1RouteResponse(entry, context);
|
|
9205
7708
|
});
|
|
7709
|
+
return retVal;
|
|
9206
7710
|
};
|
|
9207
7711
|
const deserializeAws_restJson1__listOfStage = (output, context) => {
|
|
9208
|
-
|
|
7712
|
+
const retVal = (output || [])
|
|
9209
7713
|
.filter((e) => e != null)
|
|
9210
7714
|
.map((entry) => {
|
|
9211
7715
|
if (entry === null) {
|
|
@@ -9213,9 +7717,10 @@ const deserializeAws_restJson1__listOfStage = (output, context) => {
|
|
|
9213
7717
|
}
|
|
9214
7718
|
return deserializeAws_restJson1Stage(entry, context);
|
|
9215
7719
|
});
|
|
7720
|
+
return retVal;
|
|
9216
7721
|
};
|
|
9217
7722
|
const deserializeAws_restJson1__listOfVpcLink = (output, context) => {
|
|
9218
|
-
|
|
7723
|
+
const retVal = (output || [])
|
|
9219
7724
|
.filter((e) => e != null)
|
|
9220
7725
|
.map((entry) => {
|
|
9221
7726
|
if (entry === null) {
|
|
@@ -9223,6 +7728,7 @@ const deserializeAws_restJson1__listOfVpcLink = (output, context) => {
|
|
|
9223
7728
|
}
|
|
9224
7729
|
return deserializeAws_restJson1VpcLink(entry, context);
|
|
9225
7730
|
});
|
|
7731
|
+
return retVal;
|
|
9226
7732
|
};
|
|
9227
7733
|
const deserializeAws_restJson1AccessLogSettings = (output, context) => {
|
|
9228
7734
|
return {
|
|
@@ -9269,7 +7775,7 @@ const deserializeAws_restJson1ApiMapping = (output, context) => {
|
|
|
9269
7775
|
};
|
|
9270
7776
|
};
|
|
9271
7777
|
const deserializeAws_restJson1AuthorizationScopes = (output, context) => {
|
|
9272
|
-
|
|
7778
|
+
const retVal = (output || [])
|
|
9273
7779
|
.filter((e) => e != null)
|
|
9274
7780
|
.map((entry) => {
|
|
9275
7781
|
if (entry === null) {
|
|
@@ -9277,6 +7783,7 @@ const deserializeAws_restJson1AuthorizationScopes = (output, context) => {
|
|
|
9277
7783
|
}
|
|
9278
7784
|
return smithy_client_1.expectString(entry);
|
|
9279
7785
|
});
|
|
7786
|
+
return retVal;
|
|
9280
7787
|
};
|
|
9281
7788
|
const deserializeAws_restJson1Authorizer = (output, context) => {
|
|
9282
7789
|
return {
|
|
@@ -9316,7 +7823,7 @@ const deserializeAws_restJson1Cors = (output, context) => {
|
|
|
9316
7823
|
};
|
|
9317
7824
|
};
|
|
9318
7825
|
const deserializeAws_restJson1CorsHeaderList = (output, context) => {
|
|
9319
|
-
|
|
7826
|
+
const retVal = (output || [])
|
|
9320
7827
|
.filter((e) => e != null)
|
|
9321
7828
|
.map((entry) => {
|
|
9322
7829
|
if (entry === null) {
|
|
@@ -9324,9 +7831,10 @@ const deserializeAws_restJson1CorsHeaderList = (output, context) => {
|
|
|
9324
7831
|
}
|
|
9325
7832
|
return smithy_client_1.expectString(entry);
|
|
9326
7833
|
});
|
|
7834
|
+
return retVal;
|
|
9327
7835
|
};
|
|
9328
7836
|
const deserializeAws_restJson1CorsMethodList = (output, context) => {
|
|
9329
|
-
|
|
7837
|
+
const retVal = (output || [])
|
|
9330
7838
|
.filter((e) => e != null)
|
|
9331
7839
|
.map((entry) => {
|
|
9332
7840
|
if (entry === null) {
|
|
@@ -9334,9 +7842,10 @@ const deserializeAws_restJson1CorsMethodList = (output, context) => {
|
|
|
9334
7842
|
}
|
|
9335
7843
|
return smithy_client_1.expectString(entry);
|
|
9336
7844
|
});
|
|
7845
|
+
return retVal;
|
|
9337
7846
|
};
|
|
9338
7847
|
const deserializeAws_restJson1CorsOriginList = (output, context) => {
|
|
9339
|
-
|
|
7848
|
+
const retVal = (output || [])
|
|
9340
7849
|
.filter((e) => e != null)
|
|
9341
7850
|
.map((entry) => {
|
|
9342
7851
|
if (entry === null) {
|
|
@@ -9344,6 +7853,7 @@ const deserializeAws_restJson1CorsOriginList = (output, context) => {
|
|
|
9344
7853
|
}
|
|
9345
7854
|
return smithy_client_1.expectString(entry);
|
|
9346
7855
|
});
|
|
7856
|
+
return retVal;
|
|
9347
7857
|
};
|
|
9348
7858
|
const deserializeAws_restJson1Deployment = (output, context) => {
|
|
9349
7859
|
return {
|
|
@@ -9389,7 +7899,7 @@ const deserializeAws_restJson1DomainNameConfiguration = (output, context) => {
|
|
|
9389
7899
|
};
|
|
9390
7900
|
};
|
|
9391
7901
|
const deserializeAws_restJson1DomainNameConfigurations = (output, context) => {
|
|
9392
|
-
|
|
7902
|
+
const retVal = (output || [])
|
|
9393
7903
|
.filter((e) => e != null)
|
|
9394
7904
|
.map((entry) => {
|
|
9395
7905
|
if (entry === null) {
|
|
@@ -9397,9 +7907,10 @@ const deserializeAws_restJson1DomainNameConfigurations = (output, context) => {
|
|
|
9397
7907
|
}
|
|
9398
7908
|
return deserializeAws_restJson1DomainNameConfiguration(entry, context);
|
|
9399
7909
|
});
|
|
7910
|
+
return retVal;
|
|
9400
7911
|
};
|
|
9401
7912
|
const deserializeAws_restJson1IdentitySourceList = (output, context) => {
|
|
9402
|
-
|
|
7913
|
+
const retVal = (output || [])
|
|
9403
7914
|
.filter((e) => e != null)
|
|
9404
7915
|
.map((entry) => {
|
|
9405
7916
|
if (entry === null) {
|
|
@@ -9407,6 +7918,7 @@ const deserializeAws_restJson1IdentitySourceList = (output, context) => {
|
|
|
9407
7918
|
}
|
|
9408
7919
|
return smithy_client_1.expectString(entry);
|
|
9409
7920
|
});
|
|
7921
|
+
return retVal;
|
|
9410
7922
|
};
|
|
9411
7923
|
const deserializeAws_restJson1Integration = (output, context) => {
|
|
9412
7924
|
return {
|
|
@@ -9586,7 +8098,7 @@ const deserializeAws_restJson1RouteSettingsMap = (output, context) => {
|
|
|
9586
8098
|
}, {});
|
|
9587
8099
|
};
|
|
9588
8100
|
const deserializeAws_restJson1SecurityGroupIdList = (output, context) => {
|
|
9589
|
-
|
|
8101
|
+
const retVal = (output || [])
|
|
9590
8102
|
.filter((e) => e != null)
|
|
9591
8103
|
.map((entry) => {
|
|
9592
8104
|
if (entry === null) {
|
|
@@ -9594,6 +8106,7 @@ const deserializeAws_restJson1SecurityGroupIdList = (output, context) => {
|
|
|
9594
8106
|
}
|
|
9595
8107
|
return smithy_client_1.expectString(entry);
|
|
9596
8108
|
});
|
|
8109
|
+
return retVal;
|
|
9597
8110
|
};
|
|
9598
8111
|
const deserializeAws_restJson1Stage = (output, context) => {
|
|
9599
8112
|
return {
|
|
@@ -9639,7 +8152,7 @@ const deserializeAws_restJson1StageVariablesMap = (output, context) => {
|
|
|
9639
8152
|
}, {});
|
|
9640
8153
|
};
|
|
9641
8154
|
const deserializeAws_restJson1SubnetIdList = (output, context) => {
|
|
9642
|
-
|
|
8155
|
+
const retVal = (output || [])
|
|
9643
8156
|
.filter((e) => e != null)
|
|
9644
8157
|
.map((entry) => {
|
|
9645
8158
|
if (entry === null) {
|
|
@@ -9647,6 +8160,7 @@ const deserializeAws_restJson1SubnetIdList = (output, context) => {
|
|
|
9647
8160
|
}
|
|
9648
8161
|
return smithy_client_1.expectString(entry);
|
|
9649
8162
|
});
|
|
8163
|
+
return retVal;
|
|
9650
8164
|
};
|
|
9651
8165
|
const deserializeAws_restJson1Tags = (output, context) => {
|
|
9652
8166
|
return Object.entries(output).reduce((acc, [key, value]) => {
|