@aws-sdk/client-pinpoint 3.180.0 → 3.183.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +125 -119
- package/dist-es/Pinpoint.js +478 -485
- package/dist-es/PinpointClient.js +22 -28
- package/dist-es/commands/CreateAppCommand.js +21 -28
- package/dist-es/commands/CreateCampaignCommand.js +21 -28
- package/dist-es/commands/CreateEmailTemplateCommand.js +21 -28
- package/dist-es/commands/CreateExportJobCommand.js +21 -28
- package/dist-es/commands/CreateImportJobCommand.js +21 -28
- package/dist-es/commands/CreateInAppTemplateCommand.js +21 -28
- package/dist-es/commands/CreateJourneyCommand.js +21 -28
- package/dist-es/commands/CreatePushTemplateCommand.js +21 -28
- package/dist-es/commands/CreateRecommenderConfigurationCommand.js +21 -28
- package/dist-es/commands/CreateSegmentCommand.js +21 -28
- package/dist-es/commands/CreateSmsTemplateCommand.js +21 -28
- package/dist-es/commands/CreateVoiceTemplateCommand.js +21 -28
- package/dist-es/commands/DeleteAdmChannelCommand.js +21 -28
- package/dist-es/commands/DeleteApnsChannelCommand.js +21 -28
- package/dist-es/commands/DeleteApnsSandboxChannelCommand.js +21 -28
- package/dist-es/commands/DeleteApnsVoipChannelCommand.js +21 -28
- package/dist-es/commands/DeleteApnsVoipSandboxChannelCommand.js +21 -28
- package/dist-es/commands/DeleteAppCommand.js +21 -28
- package/dist-es/commands/DeleteBaiduChannelCommand.js +21 -28
- package/dist-es/commands/DeleteCampaignCommand.js +21 -28
- package/dist-es/commands/DeleteEmailChannelCommand.js +21 -28
- package/dist-es/commands/DeleteEmailTemplateCommand.js +21 -28
- package/dist-es/commands/DeleteEndpointCommand.js +21 -28
- package/dist-es/commands/DeleteEventStreamCommand.js +21 -28
- package/dist-es/commands/DeleteGcmChannelCommand.js +21 -28
- package/dist-es/commands/DeleteInAppTemplateCommand.js +21 -28
- package/dist-es/commands/DeleteJourneyCommand.js +21 -28
- package/dist-es/commands/DeletePushTemplateCommand.js +21 -28
- package/dist-es/commands/DeleteRecommenderConfigurationCommand.js +21 -28
- package/dist-es/commands/DeleteSegmentCommand.js +21 -28
- package/dist-es/commands/DeleteSmsChannelCommand.js +21 -28
- package/dist-es/commands/DeleteSmsTemplateCommand.js +21 -28
- package/dist-es/commands/DeleteUserEndpointsCommand.js +21 -28
- package/dist-es/commands/DeleteVoiceChannelCommand.js +21 -28
- package/dist-es/commands/DeleteVoiceTemplateCommand.js +21 -28
- package/dist-es/commands/GetAdmChannelCommand.js +21 -28
- package/dist-es/commands/GetApnsChannelCommand.js +21 -28
- package/dist-es/commands/GetApnsSandboxChannelCommand.js +21 -28
- package/dist-es/commands/GetApnsVoipChannelCommand.js +21 -28
- package/dist-es/commands/GetApnsVoipSandboxChannelCommand.js +21 -28
- package/dist-es/commands/GetAppCommand.js +21 -28
- package/dist-es/commands/GetApplicationDateRangeKpiCommand.js +21 -28
- package/dist-es/commands/GetApplicationSettingsCommand.js +21 -28
- package/dist-es/commands/GetAppsCommand.js +21 -28
- package/dist-es/commands/GetBaiduChannelCommand.js +21 -28
- package/dist-es/commands/GetCampaignActivitiesCommand.js +21 -28
- package/dist-es/commands/GetCampaignCommand.js +21 -28
- package/dist-es/commands/GetCampaignDateRangeKpiCommand.js +21 -28
- package/dist-es/commands/GetCampaignVersionCommand.js +21 -28
- package/dist-es/commands/GetCampaignVersionsCommand.js +21 -28
- package/dist-es/commands/GetCampaignsCommand.js +21 -28
- package/dist-es/commands/GetChannelsCommand.js +21 -28
- package/dist-es/commands/GetEmailChannelCommand.js +21 -28
- package/dist-es/commands/GetEmailTemplateCommand.js +21 -28
- package/dist-es/commands/GetEndpointCommand.js +21 -28
- package/dist-es/commands/GetEventStreamCommand.js +21 -28
- package/dist-es/commands/GetExportJobCommand.js +21 -28
- package/dist-es/commands/GetExportJobsCommand.js +21 -28
- package/dist-es/commands/GetGcmChannelCommand.js +21 -28
- package/dist-es/commands/GetImportJobCommand.js +21 -28
- package/dist-es/commands/GetImportJobsCommand.js +21 -28
- package/dist-es/commands/GetInAppMessagesCommand.js +21 -28
- package/dist-es/commands/GetInAppTemplateCommand.js +21 -28
- package/dist-es/commands/GetJourneyCommand.js +21 -28
- package/dist-es/commands/GetJourneyDateRangeKpiCommand.js +21 -28
- package/dist-es/commands/GetJourneyExecutionActivityMetricsCommand.js +21 -28
- package/dist-es/commands/GetJourneyExecutionMetricsCommand.js +21 -28
- package/dist-es/commands/GetPushTemplateCommand.js +21 -28
- package/dist-es/commands/GetRecommenderConfigurationCommand.js +21 -28
- package/dist-es/commands/GetRecommenderConfigurationsCommand.js +21 -28
- package/dist-es/commands/GetSegmentCommand.js +21 -28
- package/dist-es/commands/GetSegmentExportJobsCommand.js +21 -28
- package/dist-es/commands/GetSegmentImportJobsCommand.js +21 -28
- package/dist-es/commands/GetSegmentVersionCommand.js +21 -28
- package/dist-es/commands/GetSegmentVersionsCommand.js +21 -28
- package/dist-es/commands/GetSegmentsCommand.js +21 -28
- package/dist-es/commands/GetSmsChannelCommand.js +21 -28
- package/dist-es/commands/GetSmsTemplateCommand.js +21 -28
- package/dist-es/commands/GetUserEndpointsCommand.js +21 -28
- package/dist-es/commands/GetVoiceChannelCommand.js +21 -28
- package/dist-es/commands/GetVoiceTemplateCommand.js +21 -28
- package/dist-es/commands/ListJourneysCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ListTemplateVersionsCommand.js +21 -28
- package/dist-es/commands/ListTemplatesCommand.js +21 -28
- package/dist-es/commands/PhoneNumberValidateCommand.js +21 -28
- package/dist-es/commands/PutEventStreamCommand.js +21 -28
- package/dist-es/commands/PutEventsCommand.js +21 -28
- package/dist-es/commands/RemoveAttributesCommand.js +21 -28
- package/dist-es/commands/SendMessagesCommand.js +21 -28
- package/dist-es/commands/SendOTPMessageCommand.js +21 -28
- package/dist-es/commands/SendUsersMessagesCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +22 -29
- package/dist-es/commands/UntagResourceCommand.js +22 -29
- package/dist-es/commands/UpdateAdmChannelCommand.js +21 -28
- package/dist-es/commands/UpdateApnsChannelCommand.js +21 -28
- package/dist-es/commands/UpdateApnsSandboxChannelCommand.js +21 -28
- package/dist-es/commands/UpdateApnsVoipChannelCommand.js +21 -28
- package/dist-es/commands/UpdateApnsVoipSandboxChannelCommand.js +21 -28
- package/dist-es/commands/UpdateApplicationSettingsCommand.js +21 -28
- package/dist-es/commands/UpdateBaiduChannelCommand.js +21 -28
- package/dist-es/commands/UpdateCampaignCommand.js +21 -28
- package/dist-es/commands/UpdateEmailChannelCommand.js +21 -28
- package/dist-es/commands/UpdateEmailTemplateCommand.js +21 -28
- package/dist-es/commands/UpdateEndpointCommand.js +21 -28
- package/dist-es/commands/UpdateEndpointsBatchCommand.js +21 -28
- package/dist-es/commands/UpdateGcmChannelCommand.js +21 -28
- package/dist-es/commands/UpdateInAppTemplateCommand.js +21 -28
- package/dist-es/commands/UpdateJourneyCommand.js +21 -28
- package/dist-es/commands/UpdateJourneyStateCommand.js +21 -28
- package/dist-es/commands/UpdatePushTemplateCommand.js +21 -28
- package/dist-es/commands/UpdateRecommenderConfigurationCommand.js +21 -28
- package/dist-es/commands/UpdateSegmentCommand.js +21 -28
- package/dist-es/commands/UpdateSmsChannelCommand.js +21 -28
- package/dist-es/commands/UpdateSmsTemplateCommand.js +21 -28
- package/dist-es/commands/UpdateTemplateActiveVersionCommand.js +21 -28
- package/dist-es/commands/UpdateVoiceChannelCommand.js +21 -28
- package/dist-es/commands/UpdateVoiceTemplateCommand.js +21 -28
- package/dist-es/commands/VerifyOTPMessageCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/PinpointServiceException.js +5 -10
- package/dist-es/models/models_0.js +902 -371
- package/dist-es/models/models_1.js +516 -173
- package/dist-es/protocols/Aws_restJson1.js +10181 -13408
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
|
@@ -2705,7 +2705,7 @@ exports.deserializeAws_restJson1CreateAppCommand = deserializeAws_restJson1Creat
|
|
|
2705
2705
|
const deserializeAws_restJson1CreateAppCommandError = async (output, context) => {
|
|
2706
2706
|
const parsedOutput = {
|
|
2707
2707
|
...output,
|
|
2708
|
-
body: await
|
|
2708
|
+
body: await parseErrorBody(output.body, context),
|
|
2709
2709
|
};
|
|
2710
2710
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2711
2711
|
switch (errorCode) {
|
|
@@ -2755,7 +2755,7 @@ exports.deserializeAws_restJson1CreateCampaignCommand = deserializeAws_restJson1
|
|
|
2755
2755
|
const deserializeAws_restJson1CreateCampaignCommandError = async (output, context) => {
|
|
2756
2756
|
const parsedOutput = {
|
|
2757
2757
|
...output,
|
|
2758
|
-
body: await
|
|
2758
|
+
body: await parseErrorBody(output.body, context),
|
|
2759
2759
|
};
|
|
2760
2760
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2761
2761
|
switch (errorCode) {
|
|
@@ -2805,7 +2805,7 @@ exports.deserializeAws_restJson1CreateEmailTemplateCommand = deserializeAws_rest
|
|
|
2805
2805
|
const deserializeAws_restJson1CreateEmailTemplateCommandError = async (output, context) => {
|
|
2806
2806
|
const parsedOutput = {
|
|
2807
2807
|
...output,
|
|
2808
|
-
body: await
|
|
2808
|
+
body: await parseErrorBody(output.body, context),
|
|
2809
2809
|
};
|
|
2810
2810
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2811
2811
|
switch (errorCode) {
|
|
@@ -2849,7 +2849,7 @@ exports.deserializeAws_restJson1CreateExportJobCommand = deserializeAws_restJson
|
|
|
2849
2849
|
const deserializeAws_restJson1CreateExportJobCommandError = async (output, context) => {
|
|
2850
2850
|
const parsedOutput = {
|
|
2851
2851
|
...output,
|
|
2852
|
-
body: await
|
|
2852
|
+
body: await parseErrorBody(output.body, context),
|
|
2853
2853
|
};
|
|
2854
2854
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2855
2855
|
switch (errorCode) {
|
|
@@ -2899,7 +2899,7 @@ exports.deserializeAws_restJson1CreateImportJobCommand = deserializeAws_restJson
|
|
|
2899
2899
|
const deserializeAws_restJson1CreateImportJobCommandError = async (output, context) => {
|
|
2900
2900
|
const parsedOutput = {
|
|
2901
2901
|
...output,
|
|
2902
|
-
body: await
|
|
2902
|
+
body: await parseErrorBody(output.body, context),
|
|
2903
2903
|
};
|
|
2904
2904
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2905
2905
|
switch (errorCode) {
|
|
@@ -2949,7 +2949,7 @@ exports.deserializeAws_restJson1CreateInAppTemplateCommand = deserializeAws_rest
|
|
|
2949
2949
|
const deserializeAws_restJson1CreateInAppTemplateCommandError = async (output, context) => {
|
|
2950
2950
|
const parsedOutput = {
|
|
2951
2951
|
...output,
|
|
2952
|
-
body: await
|
|
2952
|
+
body: await parseErrorBody(output.body, context),
|
|
2953
2953
|
};
|
|
2954
2954
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2955
2955
|
switch (errorCode) {
|
|
@@ -2993,7 +2993,7 @@ exports.deserializeAws_restJson1CreateJourneyCommand = deserializeAws_restJson1C
|
|
|
2993
2993
|
const deserializeAws_restJson1CreateJourneyCommandError = async (output, context) => {
|
|
2994
2994
|
const parsedOutput = {
|
|
2995
2995
|
...output,
|
|
2996
|
-
body: await
|
|
2996
|
+
body: await parseErrorBody(output.body, context),
|
|
2997
2997
|
};
|
|
2998
2998
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2999
2999
|
switch (errorCode) {
|
|
@@ -3043,7 +3043,7 @@ exports.deserializeAws_restJson1CreatePushTemplateCommand = deserializeAws_restJ
|
|
|
3043
3043
|
const deserializeAws_restJson1CreatePushTemplateCommandError = async (output, context) => {
|
|
3044
3044
|
const parsedOutput = {
|
|
3045
3045
|
...output,
|
|
3046
|
-
body: await
|
|
3046
|
+
body: await parseErrorBody(output.body, context),
|
|
3047
3047
|
};
|
|
3048
3048
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3049
3049
|
switch (errorCode) {
|
|
@@ -3087,7 +3087,7 @@ exports.deserializeAws_restJson1CreateRecommenderConfigurationCommand = deserial
|
|
|
3087
3087
|
const deserializeAws_restJson1CreateRecommenderConfigurationCommandError = async (output, context) => {
|
|
3088
3088
|
const parsedOutput = {
|
|
3089
3089
|
...output,
|
|
3090
|
-
body: await
|
|
3090
|
+
body: await parseErrorBody(output.body, context),
|
|
3091
3091
|
};
|
|
3092
3092
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3093
3093
|
switch (errorCode) {
|
|
@@ -3137,7 +3137,7 @@ exports.deserializeAws_restJson1CreateSegmentCommand = deserializeAws_restJson1C
|
|
|
3137
3137
|
const deserializeAws_restJson1CreateSegmentCommandError = async (output, context) => {
|
|
3138
3138
|
const parsedOutput = {
|
|
3139
3139
|
...output,
|
|
3140
|
-
body: await
|
|
3140
|
+
body: await parseErrorBody(output.body, context),
|
|
3141
3141
|
};
|
|
3142
3142
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3143
3143
|
switch (errorCode) {
|
|
@@ -3187,7 +3187,7 @@ exports.deserializeAws_restJson1CreateSmsTemplateCommand = deserializeAws_restJs
|
|
|
3187
3187
|
const deserializeAws_restJson1CreateSmsTemplateCommandError = async (output, context) => {
|
|
3188
3188
|
const parsedOutput = {
|
|
3189
3189
|
...output,
|
|
3190
|
-
body: await
|
|
3190
|
+
body: await parseErrorBody(output.body, context),
|
|
3191
3191
|
};
|
|
3192
3192
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3193
3193
|
switch (errorCode) {
|
|
@@ -3231,7 +3231,7 @@ exports.deserializeAws_restJson1CreateVoiceTemplateCommand = deserializeAws_rest
|
|
|
3231
3231
|
const deserializeAws_restJson1CreateVoiceTemplateCommandError = async (output, context) => {
|
|
3232
3232
|
const parsedOutput = {
|
|
3233
3233
|
...output,
|
|
3234
|
-
body: await
|
|
3234
|
+
body: await parseErrorBody(output.body, context),
|
|
3235
3235
|
};
|
|
3236
3236
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3237
3237
|
switch (errorCode) {
|
|
@@ -3275,7 +3275,7 @@ exports.deserializeAws_restJson1DeleteAdmChannelCommand = deserializeAws_restJso
|
|
|
3275
3275
|
const deserializeAws_restJson1DeleteAdmChannelCommandError = async (output, context) => {
|
|
3276
3276
|
const parsedOutput = {
|
|
3277
3277
|
...output,
|
|
3278
|
-
body: await
|
|
3278
|
+
body: await parseErrorBody(output.body, context),
|
|
3279
3279
|
};
|
|
3280
3280
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3281
3281
|
switch (errorCode) {
|
|
@@ -3325,7 +3325,7 @@ exports.deserializeAws_restJson1DeleteApnsChannelCommand = deserializeAws_restJs
|
|
|
3325
3325
|
const deserializeAws_restJson1DeleteApnsChannelCommandError = async (output, context) => {
|
|
3326
3326
|
const parsedOutput = {
|
|
3327
3327
|
...output,
|
|
3328
|
-
body: await
|
|
3328
|
+
body: await parseErrorBody(output.body, context),
|
|
3329
3329
|
};
|
|
3330
3330
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3331
3331
|
switch (errorCode) {
|
|
@@ -3375,7 +3375,7 @@ exports.deserializeAws_restJson1DeleteApnsSandboxChannelCommand = deserializeAws
|
|
|
3375
3375
|
const deserializeAws_restJson1DeleteApnsSandboxChannelCommandError = async (output, context) => {
|
|
3376
3376
|
const parsedOutput = {
|
|
3377
3377
|
...output,
|
|
3378
|
-
body: await
|
|
3378
|
+
body: await parseErrorBody(output.body, context),
|
|
3379
3379
|
};
|
|
3380
3380
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3381
3381
|
switch (errorCode) {
|
|
@@ -3425,7 +3425,7 @@ exports.deserializeAws_restJson1DeleteApnsVoipChannelCommand = deserializeAws_re
|
|
|
3425
3425
|
const deserializeAws_restJson1DeleteApnsVoipChannelCommandError = async (output, context) => {
|
|
3426
3426
|
const parsedOutput = {
|
|
3427
3427
|
...output,
|
|
3428
|
-
body: await
|
|
3428
|
+
body: await parseErrorBody(output.body, context),
|
|
3429
3429
|
};
|
|
3430
3430
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3431
3431
|
switch (errorCode) {
|
|
@@ -3475,7 +3475,7 @@ exports.deserializeAws_restJson1DeleteApnsVoipSandboxChannelCommand = deserializ
|
|
|
3475
3475
|
const deserializeAws_restJson1DeleteApnsVoipSandboxChannelCommandError = async (output, context) => {
|
|
3476
3476
|
const parsedOutput = {
|
|
3477
3477
|
...output,
|
|
3478
|
-
body: await
|
|
3478
|
+
body: await parseErrorBody(output.body, context),
|
|
3479
3479
|
};
|
|
3480
3480
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3481
3481
|
switch (errorCode) {
|
|
@@ -3525,7 +3525,7 @@ exports.deserializeAws_restJson1DeleteAppCommand = deserializeAws_restJson1Delet
|
|
|
3525
3525
|
const deserializeAws_restJson1DeleteAppCommandError = async (output, context) => {
|
|
3526
3526
|
const parsedOutput = {
|
|
3527
3527
|
...output,
|
|
3528
|
-
body: await
|
|
3528
|
+
body: await parseErrorBody(output.body, context),
|
|
3529
3529
|
};
|
|
3530
3530
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3531
3531
|
switch (errorCode) {
|
|
@@ -3575,7 +3575,7 @@ exports.deserializeAws_restJson1DeleteBaiduChannelCommand = deserializeAws_restJ
|
|
|
3575
3575
|
const deserializeAws_restJson1DeleteBaiduChannelCommandError = async (output, context) => {
|
|
3576
3576
|
const parsedOutput = {
|
|
3577
3577
|
...output,
|
|
3578
|
-
body: await
|
|
3578
|
+
body: await parseErrorBody(output.body, context),
|
|
3579
3579
|
};
|
|
3580
3580
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3581
3581
|
switch (errorCode) {
|
|
@@ -3625,7 +3625,7 @@ exports.deserializeAws_restJson1DeleteCampaignCommand = deserializeAws_restJson1
|
|
|
3625
3625
|
const deserializeAws_restJson1DeleteCampaignCommandError = async (output, context) => {
|
|
3626
3626
|
const parsedOutput = {
|
|
3627
3627
|
...output,
|
|
3628
|
-
body: await
|
|
3628
|
+
body: await parseErrorBody(output.body, context),
|
|
3629
3629
|
};
|
|
3630
3630
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3631
3631
|
switch (errorCode) {
|
|
@@ -3675,7 +3675,7 @@ exports.deserializeAws_restJson1DeleteEmailChannelCommand = deserializeAws_restJ
|
|
|
3675
3675
|
const deserializeAws_restJson1DeleteEmailChannelCommandError = async (output, context) => {
|
|
3676
3676
|
const parsedOutput = {
|
|
3677
3677
|
...output,
|
|
3678
|
-
body: await
|
|
3678
|
+
body: await parseErrorBody(output.body, context),
|
|
3679
3679
|
};
|
|
3680
3680
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3681
3681
|
switch (errorCode) {
|
|
@@ -3725,7 +3725,7 @@ exports.deserializeAws_restJson1DeleteEmailTemplateCommand = deserializeAws_rest
|
|
|
3725
3725
|
const deserializeAws_restJson1DeleteEmailTemplateCommandError = async (output, context) => {
|
|
3726
3726
|
const parsedOutput = {
|
|
3727
3727
|
...output,
|
|
3728
|
-
body: await
|
|
3728
|
+
body: await parseErrorBody(output.body, context),
|
|
3729
3729
|
};
|
|
3730
3730
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3731
3731
|
switch (errorCode) {
|
|
@@ -3775,7 +3775,7 @@ exports.deserializeAws_restJson1DeleteEndpointCommand = deserializeAws_restJson1
|
|
|
3775
3775
|
const deserializeAws_restJson1DeleteEndpointCommandError = async (output, context) => {
|
|
3776
3776
|
const parsedOutput = {
|
|
3777
3777
|
...output,
|
|
3778
|
-
body: await
|
|
3778
|
+
body: await parseErrorBody(output.body, context),
|
|
3779
3779
|
};
|
|
3780
3780
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3781
3781
|
switch (errorCode) {
|
|
@@ -3825,7 +3825,7 @@ exports.deserializeAws_restJson1DeleteEventStreamCommand = deserializeAws_restJs
|
|
|
3825
3825
|
const deserializeAws_restJson1DeleteEventStreamCommandError = async (output, context) => {
|
|
3826
3826
|
const parsedOutput = {
|
|
3827
3827
|
...output,
|
|
3828
|
-
body: await
|
|
3828
|
+
body: await parseErrorBody(output.body, context),
|
|
3829
3829
|
};
|
|
3830
3830
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3831
3831
|
switch (errorCode) {
|
|
@@ -3875,7 +3875,7 @@ exports.deserializeAws_restJson1DeleteGcmChannelCommand = deserializeAws_restJso
|
|
|
3875
3875
|
const deserializeAws_restJson1DeleteGcmChannelCommandError = async (output, context) => {
|
|
3876
3876
|
const parsedOutput = {
|
|
3877
3877
|
...output,
|
|
3878
|
-
body: await
|
|
3878
|
+
body: await parseErrorBody(output.body, context),
|
|
3879
3879
|
};
|
|
3880
3880
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3881
3881
|
switch (errorCode) {
|
|
@@ -3925,7 +3925,7 @@ exports.deserializeAws_restJson1DeleteInAppTemplateCommand = deserializeAws_rest
|
|
|
3925
3925
|
const deserializeAws_restJson1DeleteInAppTemplateCommandError = async (output, context) => {
|
|
3926
3926
|
const parsedOutput = {
|
|
3927
3927
|
...output,
|
|
3928
|
-
body: await
|
|
3928
|
+
body: await parseErrorBody(output.body, context),
|
|
3929
3929
|
};
|
|
3930
3930
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3931
3931
|
switch (errorCode) {
|
|
@@ -3975,7 +3975,7 @@ exports.deserializeAws_restJson1DeleteJourneyCommand = deserializeAws_restJson1D
|
|
|
3975
3975
|
const deserializeAws_restJson1DeleteJourneyCommandError = async (output, context) => {
|
|
3976
3976
|
const parsedOutput = {
|
|
3977
3977
|
...output,
|
|
3978
|
-
body: await
|
|
3978
|
+
body: await parseErrorBody(output.body, context),
|
|
3979
3979
|
};
|
|
3980
3980
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3981
3981
|
switch (errorCode) {
|
|
@@ -4025,7 +4025,7 @@ exports.deserializeAws_restJson1DeletePushTemplateCommand = deserializeAws_restJ
|
|
|
4025
4025
|
const deserializeAws_restJson1DeletePushTemplateCommandError = async (output, context) => {
|
|
4026
4026
|
const parsedOutput = {
|
|
4027
4027
|
...output,
|
|
4028
|
-
body: await
|
|
4028
|
+
body: await parseErrorBody(output.body, context),
|
|
4029
4029
|
};
|
|
4030
4030
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4031
4031
|
switch (errorCode) {
|
|
@@ -4075,7 +4075,7 @@ exports.deserializeAws_restJson1DeleteRecommenderConfigurationCommand = deserial
|
|
|
4075
4075
|
const deserializeAws_restJson1DeleteRecommenderConfigurationCommandError = async (output, context) => {
|
|
4076
4076
|
const parsedOutput = {
|
|
4077
4077
|
...output,
|
|
4078
|
-
body: await
|
|
4078
|
+
body: await parseErrorBody(output.body, context),
|
|
4079
4079
|
};
|
|
4080
4080
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4081
4081
|
switch (errorCode) {
|
|
@@ -4125,7 +4125,7 @@ exports.deserializeAws_restJson1DeleteSegmentCommand = deserializeAws_restJson1D
|
|
|
4125
4125
|
const deserializeAws_restJson1DeleteSegmentCommandError = async (output, context) => {
|
|
4126
4126
|
const parsedOutput = {
|
|
4127
4127
|
...output,
|
|
4128
|
-
body: await
|
|
4128
|
+
body: await parseErrorBody(output.body, context),
|
|
4129
4129
|
};
|
|
4130
4130
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4131
4131
|
switch (errorCode) {
|
|
@@ -4175,7 +4175,7 @@ exports.deserializeAws_restJson1DeleteSmsChannelCommand = deserializeAws_restJso
|
|
|
4175
4175
|
const deserializeAws_restJson1DeleteSmsChannelCommandError = async (output, context) => {
|
|
4176
4176
|
const parsedOutput = {
|
|
4177
4177
|
...output,
|
|
4178
|
-
body: await
|
|
4178
|
+
body: await parseErrorBody(output.body, context),
|
|
4179
4179
|
};
|
|
4180
4180
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4181
4181
|
switch (errorCode) {
|
|
@@ -4225,7 +4225,7 @@ exports.deserializeAws_restJson1DeleteSmsTemplateCommand = deserializeAws_restJs
|
|
|
4225
4225
|
const deserializeAws_restJson1DeleteSmsTemplateCommandError = async (output, context) => {
|
|
4226
4226
|
const parsedOutput = {
|
|
4227
4227
|
...output,
|
|
4228
|
-
body: await
|
|
4228
|
+
body: await parseErrorBody(output.body, context),
|
|
4229
4229
|
};
|
|
4230
4230
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4231
4231
|
switch (errorCode) {
|
|
@@ -4275,7 +4275,7 @@ exports.deserializeAws_restJson1DeleteUserEndpointsCommand = deserializeAws_rest
|
|
|
4275
4275
|
const deserializeAws_restJson1DeleteUserEndpointsCommandError = async (output, context) => {
|
|
4276
4276
|
const parsedOutput = {
|
|
4277
4277
|
...output,
|
|
4278
|
-
body: await
|
|
4278
|
+
body: await parseErrorBody(output.body, context),
|
|
4279
4279
|
};
|
|
4280
4280
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4281
4281
|
switch (errorCode) {
|
|
@@ -4325,7 +4325,7 @@ exports.deserializeAws_restJson1DeleteVoiceChannelCommand = deserializeAws_restJ
|
|
|
4325
4325
|
const deserializeAws_restJson1DeleteVoiceChannelCommandError = async (output, context) => {
|
|
4326
4326
|
const parsedOutput = {
|
|
4327
4327
|
...output,
|
|
4328
|
-
body: await
|
|
4328
|
+
body: await parseErrorBody(output.body, context),
|
|
4329
4329
|
};
|
|
4330
4330
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4331
4331
|
switch (errorCode) {
|
|
@@ -4375,7 +4375,7 @@ exports.deserializeAws_restJson1DeleteVoiceTemplateCommand = deserializeAws_rest
|
|
|
4375
4375
|
const deserializeAws_restJson1DeleteVoiceTemplateCommandError = async (output, context) => {
|
|
4376
4376
|
const parsedOutput = {
|
|
4377
4377
|
...output,
|
|
4378
|
-
body: await
|
|
4378
|
+
body: await parseErrorBody(output.body, context),
|
|
4379
4379
|
};
|
|
4380
4380
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4381
4381
|
switch (errorCode) {
|
|
@@ -4425,7 +4425,7 @@ exports.deserializeAws_restJson1GetAdmChannelCommand = deserializeAws_restJson1G
|
|
|
4425
4425
|
const deserializeAws_restJson1GetAdmChannelCommandError = async (output, context) => {
|
|
4426
4426
|
const parsedOutput = {
|
|
4427
4427
|
...output,
|
|
4428
|
-
body: await
|
|
4428
|
+
body: await parseErrorBody(output.body, context),
|
|
4429
4429
|
};
|
|
4430
4430
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4431
4431
|
switch (errorCode) {
|
|
@@ -4475,7 +4475,7 @@ exports.deserializeAws_restJson1GetApnsChannelCommand = deserializeAws_restJson1
|
|
|
4475
4475
|
const deserializeAws_restJson1GetApnsChannelCommandError = async (output, context) => {
|
|
4476
4476
|
const parsedOutput = {
|
|
4477
4477
|
...output,
|
|
4478
|
-
body: await
|
|
4478
|
+
body: await parseErrorBody(output.body, context),
|
|
4479
4479
|
};
|
|
4480
4480
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4481
4481
|
switch (errorCode) {
|
|
@@ -4525,7 +4525,7 @@ exports.deserializeAws_restJson1GetApnsSandboxChannelCommand = deserializeAws_re
|
|
|
4525
4525
|
const deserializeAws_restJson1GetApnsSandboxChannelCommandError = async (output, context) => {
|
|
4526
4526
|
const parsedOutput = {
|
|
4527
4527
|
...output,
|
|
4528
|
-
body: await
|
|
4528
|
+
body: await parseErrorBody(output.body, context),
|
|
4529
4529
|
};
|
|
4530
4530
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4531
4531
|
switch (errorCode) {
|
|
@@ -4575,7 +4575,7 @@ exports.deserializeAws_restJson1GetApnsVoipChannelCommand = deserializeAws_restJ
|
|
|
4575
4575
|
const deserializeAws_restJson1GetApnsVoipChannelCommandError = async (output, context) => {
|
|
4576
4576
|
const parsedOutput = {
|
|
4577
4577
|
...output,
|
|
4578
|
-
body: await
|
|
4578
|
+
body: await parseErrorBody(output.body, context),
|
|
4579
4579
|
};
|
|
4580
4580
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4581
4581
|
switch (errorCode) {
|
|
@@ -4625,7 +4625,7 @@ exports.deserializeAws_restJson1GetApnsVoipSandboxChannelCommand = deserializeAw
|
|
|
4625
4625
|
const deserializeAws_restJson1GetApnsVoipSandboxChannelCommandError = async (output, context) => {
|
|
4626
4626
|
const parsedOutput = {
|
|
4627
4627
|
...output,
|
|
4628
|
-
body: await
|
|
4628
|
+
body: await parseErrorBody(output.body, context),
|
|
4629
4629
|
};
|
|
4630
4630
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4631
4631
|
switch (errorCode) {
|
|
@@ -4675,7 +4675,7 @@ exports.deserializeAws_restJson1GetAppCommand = deserializeAws_restJson1GetAppCo
|
|
|
4675
4675
|
const deserializeAws_restJson1GetAppCommandError = async (output, context) => {
|
|
4676
4676
|
const parsedOutput = {
|
|
4677
4677
|
...output,
|
|
4678
|
-
body: await
|
|
4678
|
+
body: await parseErrorBody(output.body, context),
|
|
4679
4679
|
};
|
|
4680
4680
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4681
4681
|
switch (errorCode) {
|
|
@@ -4725,7 +4725,7 @@ exports.deserializeAws_restJson1GetApplicationDateRangeKpiCommand = deserializeA
|
|
|
4725
4725
|
const deserializeAws_restJson1GetApplicationDateRangeKpiCommandError = async (output, context) => {
|
|
4726
4726
|
const parsedOutput = {
|
|
4727
4727
|
...output,
|
|
4728
|
-
body: await
|
|
4728
|
+
body: await parseErrorBody(output.body, context),
|
|
4729
4729
|
};
|
|
4730
4730
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4731
4731
|
switch (errorCode) {
|
|
@@ -4775,7 +4775,7 @@ exports.deserializeAws_restJson1GetApplicationSettingsCommand = deserializeAws_r
|
|
|
4775
4775
|
const deserializeAws_restJson1GetApplicationSettingsCommandError = async (output, context) => {
|
|
4776
4776
|
const parsedOutput = {
|
|
4777
4777
|
...output,
|
|
4778
|
-
body: await
|
|
4778
|
+
body: await parseErrorBody(output.body, context),
|
|
4779
4779
|
};
|
|
4780
4780
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4781
4781
|
switch (errorCode) {
|
|
@@ -4825,7 +4825,7 @@ exports.deserializeAws_restJson1GetAppsCommand = deserializeAws_restJson1GetApps
|
|
|
4825
4825
|
const deserializeAws_restJson1GetAppsCommandError = async (output, context) => {
|
|
4826
4826
|
const parsedOutput = {
|
|
4827
4827
|
...output,
|
|
4828
|
-
body: await
|
|
4828
|
+
body: await parseErrorBody(output.body, context),
|
|
4829
4829
|
};
|
|
4830
4830
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4831
4831
|
switch (errorCode) {
|
|
@@ -4875,7 +4875,7 @@ exports.deserializeAws_restJson1GetBaiduChannelCommand = deserializeAws_restJson
|
|
|
4875
4875
|
const deserializeAws_restJson1GetBaiduChannelCommandError = async (output, context) => {
|
|
4876
4876
|
const parsedOutput = {
|
|
4877
4877
|
...output,
|
|
4878
|
-
body: await
|
|
4878
|
+
body: await parseErrorBody(output.body, context),
|
|
4879
4879
|
};
|
|
4880
4880
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4881
4881
|
switch (errorCode) {
|
|
@@ -4925,7 +4925,7 @@ exports.deserializeAws_restJson1GetCampaignCommand = deserializeAws_restJson1Get
|
|
|
4925
4925
|
const deserializeAws_restJson1GetCampaignCommandError = async (output, context) => {
|
|
4926
4926
|
const parsedOutput = {
|
|
4927
4927
|
...output,
|
|
4928
|
-
body: await
|
|
4928
|
+
body: await parseErrorBody(output.body, context),
|
|
4929
4929
|
};
|
|
4930
4930
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4931
4931
|
switch (errorCode) {
|
|
@@ -4975,7 +4975,7 @@ exports.deserializeAws_restJson1GetCampaignActivitiesCommand = deserializeAws_re
|
|
|
4975
4975
|
const deserializeAws_restJson1GetCampaignActivitiesCommandError = async (output, context) => {
|
|
4976
4976
|
const parsedOutput = {
|
|
4977
4977
|
...output,
|
|
4978
|
-
body: await
|
|
4978
|
+
body: await parseErrorBody(output.body, context),
|
|
4979
4979
|
};
|
|
4980
4980
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4981
4981
|
switch (errorCode) {
|
|
@@ -5025,7 +5025,7 @@ exports.deserializeAws_restJson1GetCampaignDateRangeKpiCommand = deserializeAws_
|
|
|
5025
5025
|
const deserializeAws_restJson1GetCampaignDateRangeKpiCommandError = async (output, context) => {
|
|
5026
5026
|
const parsedOutput = {
|
|
5027
5027
|
...output,
|
|
5028
|
-
body: await
|
|
5028
|
+
body: await parseErrorBody(output.body, context),
|
|
5029
5029
|
};
|
|
5030
5030
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5031
5031
|
switch (errorCode) {
|
|
@@ -5075,7 +5075,7 @@ exports.deserializeAws_restJson1GetCampaignsCommand = deserializeAws_restJson1Ge
|
|
|
5075
5075
|
const deserializeAws_restJson1GetCampaignsCommandError = async (output, context) => {
|
|
5076
5076
|
const parsedOutput = {
|
|
5077
5077
|
...output,
|
|
5078
|
-
body: await
|
|
5078
|
+
body: await parseErrorBody(output.body, context),
|
|
5079
5079
|
};
|
|
5080
5080
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5081
5081
|
switch (errorCode) {
|
|
@@ -5125,7 +5125,7 @@ exports.deserializeAws_restJson1GetCampaignVersionCommand = deserializeAws_restJ
|
|
|
5125
5125
|
const deserializeAws_restJson1GetCampaignVersionCommandError = async (output, context) => {
|
|
5126
5126
|
const parsedOutput = {
|
|
5127
5127
|
...output,
|
|
5128
|
-
body: await
|
|
5128
|
+
body: await parseErrorBody(output.body, context),
|
|
5129
5129
|
};
|
|
5130
5130
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5131
5131
|
switch (errorCode) {
|
|
@@ -5175,7 +5175,7 @@ exports.deserializeAws_restJson1GetCampaignVersionsCommand = deserializeAws_rest
|
|
|
5175
5175
|
const deserializeAws_restJson1GetCampaignVersionsCommandError = async (output, context) => {
|
|
5176
5176
|
const parsedOutput = {
|
|
5177
5177
|
...output,
|
|
5178
|
-
body: await
|
|
5178
|
+
body: await parseErrorBody(output.body, context),
|
|
5179
5179
|
};
|
|
5180
5180
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5181
5181
|
switch (errorCode) {
|
|
@@ -5225,7 +5225,7 @@ exports.deserializeAws_restJson1GetChannelsCommand = deserializeAws_restJson1Get
|
|
|
5225
5225
|
const deserializeAws_restJson1GetChannelsCommandError = async (output, context) => {
|
|
5226
5226
|
const parsedOutput = {
|
|
5227
5227
|
...output,
|
|
5228
|
-
body: await
|
|
5228
|
+
body: await parseErrorBody(output.body, context),
|
|
5229
5229
|
};
|
|
5230
5230
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5231
5231
|
switch (errorCode) {
|
|
@@ -5275,7 +5275,7 @@ exports.deserializeAws_restJson1GetEmailChannelCommand = deserializeAws_restJson
|
|
|
5275
5275
|
const deserializeAws_restJson1GetEmailChannelCommandError = async (output, context) => {
|
|
5276
5276
|
const parsedOutput = {
|
|
5277
5277
|
...output,
|
|
5278
|
-
body: await
|
|
5278
|
+
body: await parseErrorBody(output.body, context),
|
|
5279
5279
|
};
|
|
5280
5280
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5281
5281
|
switch (errorCode) {
|
|
@@ -5325,7 +5325,7 @@ exports.deserializeAws_restJson1GetEmailTemplateCommand = deserializeAws_restJso
|
|
|
5325
5325
|
const deserializeAws_restJson1GetEmailTemplateCommandError = async (output, context) => {
|
|
5326
5326
|
const parsedOutput = {
|
|
5327
5327
|
...output,
|
|
5328
|
-
body: await
|
|
5328
|
+
body: await parseErrorBody(output.body, context),
|
|
5329
5329
|
};
|
|
5330
5330
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5331
5331
|
switch (errorCode) {
|
|
@@ -5375,7 +5375,7 @@ exports.deserializeAws_restJson1GetEndpointCommand = deserializeAws_restJson1Get
|
|
|
5375
5375
|
const deserializeAws_restJson1GetEndpointCommandError = async (output, context) => {
|
|
5376
5376
|
const parsedOutput = {
|
|
5377
5377
|
...output,
|
|
5378
|
-
body: await
|
|
5378
|
+
body: await parseErrorBody(output.body, context),
|
|
5379
5379
|
};
|
|
5380
5380
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5381
5381
|
switch (errorCode) {
|
|
@@ -5425,7 +5425,7 @@ exports.deserializeAws_restJson1GetEventStreamCommand = deserializeAws_restJson1
|
|
|
5425
5425
|
const deserializeAws_restJson1GetEventStreamCommandError = async (output, context) => {
|
|
5426
5426
|
const parsedOutput = {
|
|
5427
5427
|
...output,
|
|
5428
|
-
body: await
|
|
5428
|
+
body: await parseErrorBody(output.body, context),
|
|
5429
5429
|
};
|
|
5430
5430
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5431
5431
|
switch (errorCode) {
|
|
@@ -5475,7 +5475,7 @@ exports.deserializeAws_restJson1GetExportJobCommand = deserializeAws_restJson1Ge
|
|
|
5475
5475
|
const deserializeAws_restJson1GetExportJobCommandError = async (output, context) => {
|
|
5476
5476
|
const parsedOutput = {
|
|
5477
5477
|
...output,
|
|
5478
|
-
body: await
|
|
5478
|
+
body: await parseErrorBody(output.body, context),
|
|
5479
5479
|
};
|
|
5480
5480
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5481
5481
|
switch (errorCode) {
|
|
@@ -5525,7 +5525,7 @@ exports.deserializeAws_restJson1GetExportJobsCommand = deserializeAws_restJson1G
|
|
|
5525
5525
|
const deserializeAws_restJson1GetExportJobsCommandError = async (output, context) => {
|
|
5526
5526
|
const parsedOutput = {
|
|
5527
5527
|
...output,
|
|
5528
|
-
body: await
|
|
5528
|
+
body: await parseErrorBody(output.body, context),
|
|
5529
5529
|
};
|
|
5530
5530
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5531
5531
|
switch (errorCode) {
|
|
@@ -5575,7 +5575,7 @@ exports.deserializeAws_restJson1GetGcmChannelCommand = deserializeAws_restJson1G
|
|
|
5575
5575
|
const deserializeAws_restJson1GetGcmChannelCommandError = async (output, context) => {
|
|
5576
5576
|
const parsedOutput = {
|
|
5577
5577
|
...output,
|
|
5578
|
-
body: await
|
|
5578
|
+
body: await parseErrorBody(output.body, context),
|
|
5579
5579
|
};
|
|
5580
5580
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5581
5581
|
switch (errorCode) {
|
|
@@ -5625,7 +5625,7 @@ exports.deserializeAws_restJson1GetImportJobCommand = deserializeAws_restJson1Ge
|
|
|
5625
5625
|
const deserializeAws_restJson1GetImportJobCommandError = async (output, context) => {
|
|
5626
5626
|
const parsedOutput = {
|
|
5627
5627
|
...output,
|
|
5628
|
-
body: await
|
|
5628
|
+
body: await parseErrorBody(output.body, context),
|
|
5629
5629
|
};
|
|
5630
5630
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5631
5631
|
switch (errorCode) {
|
|
@@ -5675,7 +5675,7 @@ exports.deserializeAws_restJson1GetImportJobsCommand = deserializeAws_restJson1G
|
|
|
5675
5675
|
const deserializeAws_restJson1GetImportJobsCommandError = async (output, context) => {
|
|
5676
5676
|
const parsedOutput = {
|
|
5677
5677
|
...output,
|
|
5678
|
-
body: await
|
|
5678
|
+
body: await parseErrorBody(output.body, context),
|
|
5679
5679
|
};
|
|
5680
5680
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5681
5681
|
switch (errorCode) {
|
|
@@ -5725,7 +5725,7 @@ exports.deserializeAws_restJson1GetInAppMessagesCommand = deserializeAws_restJso
|
|
|
5725
5725
|
const deserializeAws_restJson1GetInAppMessagesCommandError = async (output, context) => {
|
|
5726
5726
|
const parsedOutput = {
|
|
5727
5727
|
...output,
|
|
5728
|
-
body: await
|
|
5728
|
+
body: await parseErrorBody(output.body, context),
|
|
5729
5729
|
};
|
|
5730
5730
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5731
5731
|
switch (errorCode) {
|
|
@@ -5775,7 +5775,7 @@ exports.deserializeAws_restJson1GetInAppTemplateCommand = deserializeAws_restJso
|
|
|
5775
5775
|
const deserializeAws_restJson1GetInAppTemplateCommandError = async (output, context) => {
|
|
5776
5776
|
const parsedOutput = {
|
|
5777
5777
|
...output,
|
|
5778
|
-
body: await
|
|
5778
|
+
body: await parseErrorBody(output.body, context),
|
|
5779
5779
|
};
|
|
5780
5780
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5781
5781
|
switch (errorCode) {
|
|
@@ -5825,7 +5825,7 @@ exports.deserializeAws_restJson1GetJourneyCommand = deserializeAws_restJson1GetJ
|
|
|
5825
5825
|
const deserializeAws_restJson1GetJourneyCommandError = async (output, context) => {
|
|
5826
5826
|
const parsedOutput = {
|
|
5827
5827
|
...output,
|
|
5828
|
-
body: await
|
|
5828
|
+
body: await parseErrorBody(output.body, context),
|
|
5829
5829
|
};
|
|
5830
5830
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5831
5831
|
switch (errorCode) {
|
|
@@ -5875,7 +5875,7 @@ exports.deserializeAws_restJson1GetJourneyDateRangeKpiCommand = deserializeAws_r
|
|
|
5875
5875
|
const deserializeAws_restJson1GetJourneyDateRangeKpiCommandError = async (output, context) => {
|
|
5876
5876
|
const parsedOutput = {
|
|
5877
5877
|
...output,
|
|
5878
|
-
body: await
|
|
5878
|
+
body: await parseErrorBody(output.body, context),
|
|
5879
5879
|
};
|
|
5880
5880
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5881
5881
|
switch (errorCode) {
|
|
@@ -5925,7 +5925,7 @@ exports.deserializeAws_restJson1GetJourneyExecutionActivityMetricsCommand = dese
|
|
|
5925
5925
|
const deserializeAws_restJson1GetJourneyExecutionActivityMetricsCommandError = async (output, context) => {
|
|
5926
5926
|
const parsedOutput = {
|
|
5927
5927
|
...output,
|
|
5928
|
-
body: await
|
|
5928
|
+
body: await parseErrorBody(output.body, context),
|
|
5929
5929
|
};
|
|
5930
5930
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5931
5931
|
switch (errorCode) {
|
|
@@ -5975,7 +5975,7 @@ exports.deserializeAws_restJson1GetJourneyExecutionMetricsCommand = deserializeA
|
|
|
5975
5975
|
const deserializeAws_restJson1GetJourneyExecutionMetricsCommandError = async (output, context) => {
|
|
5976
5976
|
const parsedOutput = {
|
|
5977
5977
|
...output,
|
|
5978
|
-
body: await
|
|
5978
|
+
body: await parseErrorBody(output.body, context),
|
|
5979
5979
|
};
|
|
5980
5980
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5981
5981
|
switch (errorCode) {
|
|
@@ -6025,7 +6025,7 @@ exports.deserializeAws_restJson1GetPushTemplateCommand = deserializeAws_restJson
|
|
|
6025
6025
|
const deserializeAws_restJson1GetPushTemplateCommandError = async (output, context) => {
|
|
6026
6026
|
const parsedOutput = {
|
|
6027
6027
|
...output,
|
|
6028
|
-
body: await
|
|
6028
|
+
body: await parseErrorBody(output.body, context),
|
|
6029
6029
|
};
|
|
6030
6030
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6031
6031
|
switch (errorCode) {
|
|
@@ -6075,7 +6075,7 @@ exports.deserializeAws_restJson1GetRecommenderConfigurationCommand = deserialize
|
|
|
6075
6075
|
const deserializeAws_restJson1GetRecommenderConfigurationCommandError = async (output, context) => {
|
|
6076
6076
|
const parsedOutput = {
|
|
6077
6077
|
...output,
|
|
6078
|
-
body: await
|
|
6078
|
+
body: await parseErrorBody(output.body, context),
|
|
6079
6079
|
};
|
|
6080
6080
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6081
6081
|
switch (errorCode) {
|
|
@@ -6125,7 +6125,7 @@ exports.deserializeAws_restJson1GetRecommenderConfigurationsCommand = deserializ
|
|
|
6125
6125
|
const deserializeAws_restJson1GetRecommenderConfigurationsCommandError = async (output, context) => {
|
|
6126
6126
|
const parsedOutput = {
|
|
6127
6127
|
...output,
|
|
6128
|
-
body: await
|
|
6128
|
+
body: await parseErrorBody(output.body, context),
|
|
6129
6129
|
};
|
|
6130
6130
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6131
6131
|
switch (errorCode) {
|
|
@@ -6175,7 +6175,7 @@ exports.deserializeAws_restJson1GetSegmentCommand = deserializeAws_restJson1GetS
|
|
|
6175
6175
|
const deserializeAws_restJson1GetSegmentCommandError = async (output, context) => {
|
|
6176
6176
|
const parsedOutput = {
|
|
6177
6177
|
...output,
|
|
6178
|
-
body: await
|
|
6178
|
+
body: await parseErrorBody(output.body, context),
|
|
6179
6179
|
};
|
|
6180
6180
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6181
6181
|
switch (errorCode) {
|
|
@@ -6225,7 +6225,7 @@ exports.deserializeAws_restJson1GetSegmentExportJobsCommand = deserializeAws_res
|
|
|
6225
6225
|
const deserializeAws_restJson1GetSegmentExportJobsCommandError = async (output, context) => {
|
|
6226
6226
|
const parsedOutput = {
|
|
6227
6227
|
...output,
|
|
6228
|
-
body: await
|
|
6228
|
+
body: await parseErrorBody(output.body, context),
|
|
6229
6229
|
};
|
|
6230
6230
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6231
6231
|
switch (errorCode) {
|
|
@@ -6275,7 +6275,7 @@ exports.deserializeAws_restJson1GetSegmentImportJobsCommand = deserializeAws_res
|
|
|
6275
6275
|
const deserializeAws_restJson1GetSegmentImportJobsCommandError = async (output, context) => {
|
|
6276
6276
|
const parsedOutput = {
|
|
6277
6277
|
...output,
|
|
6278
|
-
body: await
|
|
6278
|
+
body: await parseErrorBody(output.body, context),
|
|
6279
6279
|
};
|
|
6280
6280
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6281
6281
|
switch (errorCode) {
|
|
@@ -6325,7 +6325,7 @@ exports.deserializeAws_restJson1GetSegmentsCommand = deserializeAws_restJson1Get
|
|
|
6325
6325
|
const deserializeAws_restJson1GetSegmentsCommandError = async (output, context) => {
|
|
6326
6326
|
const parsedOutput = {
|
|
6327
6327
|
...output,
|
|
6328
|
-
body: await
|
|
6328
|
+
body: await parseErrorBody(output.body, context),
|
|
6329
6329
|
};
|
|
6330
6330
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6331
6331
|
switch (errorCode) {
|
|
@@ -6375,7 +6375,7 @@ exports.deserializeAws_restJson1GetSegmentVersionCommand = deserializeAws_restJs
|
|
|
6375
6375
|
const deserializeAws_restJson1GetSegmentVersionCommandError = async (output, context) => {
|
|
6376
6376
|
const parsedOutput = {
|
|
6377
6377
|
...output,
|
|
6378
|
-
body: await
|
|
6378
|
+
body: await parseErrorBody(output.body, context),
|
|
6379
6379
|
};
|
|
6380
6380
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6381
6381
|
switch (errorCode) {
|
|
@@ -6425,7 +6425,7 @@ exports.deserializeAws_restJson1GetSegmentVersionsCommand = deserializeAws_restJ
|
|
|
6425
6425
|
const deserializeAws_restJson1GetSegmentVersionsCommandError = async (output, context) => {
|
|
6426
6426
|
const parsedOutput = {
|
|
6427
6427
|
...output,
|
|
6428
|
-
body: await
|
|
6428
|
+
body: await parseErrorBody(output.body, context),
|
|
6429
6429
|
};
|
|
6430
6430
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6431
6431
|
switch (errorCode) {
|
|
@@ -6475,7 +6475,7 @@ exports.deserializeAws_restJson1GetSmsChannelCommand = deserializeAws_restJson1G
|
|
|
6475
6475
|
const deserializeAws_restJson1GetSmsChannelCommandError = async (output, context) => {
|
|
6476
6476
|
const parsedOutput = {
|
|
6477
6477
|
...output,
|
|
6478
|
-
body: await
|
|
6478
|
+
body: await parseErrorBody(output.body, context),
|
|
6479
6479
|
};
|
|
6480
6480
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6481
6481
|
switch (errorCode) {
|
|
@@ -6525,7 +6525,7 @@ exports.deserializeAws_restJson1GetSmsTemplateCommand = deserializeAws_restJson1
|
|
|
6525
6525
|
const deserializeAws_restJson1GetSmsTemplateCommandError = async (output, context) => {
|
|
6526
6526
|
const parsedOutput = {
|
|
6527
6527
|
...output,
|
|
6528
|
-
body: await
|
|
6528
|
+
body: await parseErrorBody(output.body, context),
|
|
6529
6529
|
};
|
|
6530
6530
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6531
6531
|
switch (errorCode) {
|
|
@@ -6575,7 +6575,7 @@ exports.deserializeAws_restJson1GetUserEndpointsCommand = deserializeAws_restJso
|
|
|
6575
6575
|
const deserializeAws_restJson1GetUserEndpointsCommandError = async (output, context) => {
|
|
6576
6576
|
const parsedOutput = {
|
|
6577
6577
|
...output,
|
|
6578
|
-
body: await
|
|
6578
|
+
body: await parseErrorBody(output.body, context),
|
|
6579
6579
|
};
|
|
6580
6580
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6581
6581
|
switch (errorCode) {
|
|
@@ -6625,7 +6625,7 @@ exports.deserializeAws_restJson1GetVoiceChannelCommand = deserializeAws_restJson
|
|
|
6625
6625
|
const deserializeAws_restJson1GetVoiceChannelCommandError = async (output, context) => {
|
|
6626
6626
|
const parsedOutput = {
|
|
6627
6627
|
...output,
|
|
6628
|
-
body: await
|
|
6628
|
+
body: await parseErrorBody(output.body, context),
|
|
6629
6629
|
};
|
|
6630
6630
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6631
6631
|
switch (errorCode) {
|
|
@@ -6675,7 +6675,7 @@ exports.deserializeAws_restJson1GetVoiceTemplateCommand = deserializeAws_restJso
|
|
|
6675
6675
|
const deserializeAws_restJson1GetVoiceTemplateCommandError = async (output, context) => {
|
|
6676
6676
|
const parsedOutput = {
|
|
6677
6677
|
...output,
|
|
6678
|
-
body: await
|
|
6678
|
+
body: await parseErrorBody(output.body, context),
|
|
6679
6679
|
};
|
|
6680
6680
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6681
6681
|
switch (errorCode) {
|
|
@@ -6725,7 +6725,7 @@ exports.deserializeAws_restJson1ListJourneysCommand = deserializeAws_restJson1Li
|
|
|
6725
6725
|
const deserializeAws_restJson1ListJourneysCommandError = async (output, context) => {
|
|
6726
6726
|
const parsedOutput = {
|
|
6727
6727
|
...output,
|
|
6728
|
-
body: await
|
|
6728
|
+
body: await parseErrorBody(output.body, context),
|
|
6729
6729
|
};
|
|
6730
6730
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6731
6731
|
switch (errorCode) {
|
|
@@ -6775,7 +6775,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
6775
6775
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
6776
6776
|
const parsedOutput = {
|
|
6777
6777
|
...output,
|
|
6778
|
-
body: await
|
|
6778
|
+
body: await parseErrorBody(output.body, context),
|
|
6779
6779
|
};
|
|
6780
6780
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6781
6781
|
const parsedBody = parsedOutput.body;
|
|
@@ -6801,7 +6801,7 @@ exports.deserializeAws_restJson1ListTemplatesCommand = deserializeAws_restJson1L
|
|
|
6801
6801
|
const deserializeAws_restJson1ListTemplatesCommandError = async (output, context) => {
|
|
6802
6802
|
const parsedOutput = {
|
|
6803
6803
|
...output,
|
|
6804
|
-
body: await
|
|
6804
|
+
body: await parseErrorBody(output.body, context),
|
|
6805
6805
|
};
|
|
6806
6806
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6807
6807
|
switch (errorCode) {
|
|
@@ -6845,7 +6845,7 @@ exports.deserializeAws_restJson1ListTemplateVersionsCommand = deserializeAws_res
|
|
|
6845
6845
|
const deserializeAws_restJson1ListTemplateVersionsCommandError = async (output, context) => {
|
|
6846
6846
|
const parsedOutput = {
|
|
6847
6847
|
...output,
|
|
6848
|
-
body: await
|
|
6848
|
+
body: await parseErrorBody(output.body, context),
|
|
6849
6849
|
};
|
|
6850
6850
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6851
6851
|
switch (errorCode) {
|
|
@@ -6895,7 +6895,7 @@ exports.deserializeAws_restJson1PhoneNumberValidateCommand = deserializeAws_rest
|
|
|
6895
6895
|
const deserializeAws_restJson1PhoneNumberValidateCommandError = async (output, context) => {
|
|
6896
6896
|
const parsedOutput = {
|
|
6897
6897
|
...output,
|
|
6898
|
-
body: await
|
|
6898
|
+
body: await parseErrorBody(output.body, context),
|
|
6899
6899
|
};
|
|
6900
6900
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6901
6901
|
switch (errorCode) {
|
|
@@ -6945,7 +6945,7 @@ exports.deserializeAws_restJson1PutEventsCommand = deserializeAws_restJson1PutEv
|
|
|
6945
6945
|
const deserializeAws_restJson1PutEventsCommandError = async (output, context) => {
|
|
6946
6946
|
const parsedOutput = {
|
|
6947
6947
|
...output,
|
|
6948
|
-
body: await
|
|
6948
|
+
body: await parseErrorBody(output.body, context),
|
|
6949
6949
|
};
|
|
6950
6950
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6951
6951
|
switch (errorCode) {
|
|
@@ -6995,7 +6995,7 @@ exports.deserializeAws_restJson1PutEventStreamCommand = deserializeAws_restJson1
|
|
|
6995
6995
|
const deserializeAws_restJson1PutEventStreamCommandError = async (output, context) => {
|
|
6996
6996
|
const parsedOutput = {
|
|
6997
6997
|
...output,
|
|
6998
|
-
body: await
|
|
6998
|
+
body: await parseErrorBody(output.body, context),
|
|
6999
6999
|
};
|
|
7000
7000
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7001
7001
|
switch (errorCode) {
|
|
@@ -7045,7 +7045,7 @@ exports.deserializeAws_restJson1RemoveAttributesCommand = deserializeAws_restJso
|
|
|
7045
7045
|
const deserializeAws_restJson1RemoveAttributesCommandError = async (output, context) => {
|
|
7046
7046
|
const parsedOutput = {
|
|
7047
7047
|
...output,
|
|
7048
|
-
body: await
|
|
7048
|
+
body: await parseErrorBody(output.body, context),
|
|
7049
7049
|
};
|
|
7050
7050
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7051
7051
|
switch (errorCode) {
|
|
@@ -7095,7 +7095,7 @@ exports.deserializeAws_restJson1SendMessagesCommand = deserializeAws_restJson1Se
|
|
|
7095
7095
|
const deserializeAws_restJson1SendMessagesCommandError = async (output, context) => {
|
|
7096
7096
|
const parsedOutput = {
|
|
7097
7097
|
...output,
|
|
7098
|
-
body: await
|
|
7098
|
+
body: await parseErrorBody(output.body, context),
|
|
7099
7099
|
};
|
|
7100
7100
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7101
7101
|
switch (errorCode) {
|
|
@@ -7145,7 +7145,7 @@ exports.deserializeAws_restJson1SendOTPMessageCommand = deserializeAws_restJson1
|
|
|
7145
7145
|
const deserializeAws_restJson1SendOTPMessageCommandError = async (output, context) => {
|
|
7146
7146
|
const parsedOutput = {
|
|
7147
7147
|
...output,
|
|
7148
|
-
body: await
|
|
7148
|
+
body: await parseErrorBody(output.body, context),
|
|
7149
7149
|
};
|
|
7150
7150
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7151
7151
|
switch (errorCode) {
|
|
@@ -7195,7 +7195,7 @@ exports.deserializeAws_restJson1SendUsersMessagesCommand = deserializeAws_restJs
|
|
|
7195
7195
|
const deserializeAws_restJson1SendUsersMessagesCommandError = async (output, context) => {
|
|
7196
7196
|
const parsedOutput = {
|
|
7197
7197
|
...output,
|
|
7198
|
-
body: await
|
|
7198
|
+
body: await parseErrorBody(output.body, context),
|
|
7199
7199
|
};
|
|
7200
7200
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7201
7201
|
switch (errorCode) {
|
|
@@ -7244,7 +7244,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
7244
7244
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
7245
7245
|
const parsedOutput = {
|
|
7246
7246
|
...output,
|
|
7247
|
-
body: await
|
|
7247
|
+
body: await parseErrorBody(output.body, context),
|
|
7248
7248
|
};
|
|
7249
7249
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7250
7250
|
const parsedBody = parsedOutput.body;
|
|
@@ -7269,7 +7269,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
7269
7269
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
7270
7270
|
const parsedOutput = {
|
|
7271
7271
|
...output,
|
|
7272
|
-
body: await
|
|
7272
|
+
body: await parseErrorBody(output.body, context),
|
|
7273
7273
|
};
|
|
7274
7274
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7275
7275
|
const parsedBody = parsedOutput.body;
|
|
@@ -7295,7 +7295,7 @@ exports.deserializeAws_restJson1UpdateAdmChannelCommand = deserializeAws_restJso
|
|
|
7295
7295
|
const deserializeAws_restJson1UpdateAdmChannelCommandError = async (output, context) => {
|
|
7296
7296
|
const parsedOutput = {
|
|
7297
7297
|
...output,
|
|
7298
|
-
body: await
|
|
7298
|
+
body: await parseErrorBody(output.body, context),
|
|
7299
7299
|
};
|
|
7300
7300
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7301
7301
|
switch (errorCode) {
|
|
@@ -7345,7 +7345,7 @@ exports.deserializeAws_restJson1UpdateApnsChannelCommand = deserializeAws_restJs
|
|
|
7345
7345
|
const deserializeAws_restJson1UpdateApnsChannelCommandError = async (output, context) => {
|
|
7346
7346
|
const parsedOutput = {
|
|
7347
7347
|
...output,
|
|
7348
|
-
body: await
|
|
7348
|
+
body: await parseErrorBody(output.body, context),
|
|
7349
7349
|
};
|
|
7350
7350
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7351
7351
|
switch (errorCode) {
|
|
@@ -7395,7 +7395,7 @@ exports.deserializeAws_restJson1UpdateApnsSandboxChannelCommand = deserializeAws
|
|
|
7395
7395
|
const deserializeAws_restJson1UpdateApnsSandboxChannelCommandError = async (output, context) => {
|
|
7396
7396
|
const parsedOutput = {
|
|
7397
7397
|
...output,
|
|
7398
|
-
body: await
|
|
7398
|
+
body: await parseErrorBody(output.body, context),
|
|
7399
7399
|
};
|
|
7400
7400
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7401
7401
|
switch (errorCode) {
|
|
@@ -7445,7 +7445,7 @@ exports.deserializeAws_restJson1UpdateApnsVoipChannelCommand = deserializeAws_re
|
|
|
7445
7445
|
const deserializeAws_restJson1UpdateApnsVoipChannelCommandError = async (output, context) => {
|
|
7446
7446
|
const parsedOutput = {
|
|
7447
7447
|
...output,
|
|
7448
|
-
body: await
|
|
7448
|
+
body: await parseErrorBody(output.body, context),
|
|
7449
7449
|
};
|
|
7450
7450
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7451
7451
|
switch (errorCode) {
|
|
@@ -7495,7 +7495,7 @@ exports.deserializeAws_restJson1UpdateApnsVoipSandboxChannelCommand = deserializ
|
|
|
7495
7495
|
const deserializeAws_restJson1UpdateApnsVoipSandboxChannelCommandError = async (output, context) => {
|
|
7496
7496
|
const parsedOutput = {
|
|
7497
7497
|
...output,
|
|
7498
|
-
body: await
|
|
7498
|
+
body: await parseErrorBody(output.body, context),
|
|
7499
7499
|
};
|
|
7500
7500
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7501
7501
|
switch (errorCode) {
|
|
@@ -7545,7 +7545,7 @@ exports.deserializeAws_restJson1UpdateApplicationSettingsCommand = deserializeAw
|
|
|
7545
7545
|
const deserializeAws_restJson1UpdateApplicationSettingsCommandError = async (output, context) => {
|
|
7546
7546
|
const parsedOutput = {
|
|
7547
7547
|
...output,
|
|
7548
|
-
body: await
|
|
7548
|
+
body: await parseErrorBody(output.body, context),
|
|
7549
7549
|
};
|
|
7550
7550
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7551
7551
|
switch (errorCode) {
|
|
@@ -7595,7 +7595,7 @@ exports.deserializeAws_restJson1UpdateBaiduChannelCommand = deserializeAws_restJ
|
|
|
7595
7595
|
const deserializeAws_restJson1UpdateBaiduChannelCommandError = async (output, context) => {
|
|
7596
7596
|
const parsedOutput = {
|
|
7597
7597
|
...output,
|
|
7598
|
-
body: await
|
|
7598
|
+
body: await parseErrorBody(output.body, context),
|
|
7599
7599
|
};
|
|
7600
7600
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7601
7601
|
switch (errorCode) {
|
|
@@ -7645,7 +7645,7 @@ exports.deserializeAws_restJson1UpdateCampaignCommand = deserializeAws_restJson1
|
|
|
7645
7645
|
const deserializeAws_restJson1UpdateCampaignCommandError = async (output, context) => {
|
|
7646
7646
|
const parsedOutput = {
|
|
7647
7647
|
...output,
|
|
7648
|
-
body: await
|
|
7648
|
+
body: await parseErrorBody(output.body, context),
|
|
7649
7649
|
};
|
|
7650
7650
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7651
7651
|
switch (errorCode) {
|
|
@@ -7695,7 +7695,7 @@ exports.deserializeAws_restJson1UpdateEmailChannelCommand = deserializeAws_restJ
|
|
|
7695
7695
|
const deserializeAws_restJson1UpdateEmailChannelCommandError = async (output, context) => {
|
|
7696
7696
|
const parsedOutput = {
|
|
7697
7697
|
...output,
|
|
7698
|
-
body: await
|
|
7698
|
+
body: await parseErrorBody(output.body, context),
|
|
7699
7699
|
};
|
|
7700
7700
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7701
7701
|
switch (errorCode) {
|
|
@@ -7745,7 +7745,7 @@ exports.deserializeAws_restJson1UpdateEmailTemplateCommand = deserializeAws_rest
|
|
|
7745
7745
|
const deserializeAws_restJson1UpdateEmailTemplateCommandError = async (output, context) => {
|
|
7746
7746
|
const parsedOutput = {
|
|
7747
7747
|
...output,
|
|
7748
|
-
body: await
|
|
7748
|
+
body: await parseErrorBody(output.body, context),
|
|
7749
7749
|
};
|
|
7750
7750
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7751
7751
|
switch (errorCode) {
|
|
@@ -7795,7 +7795,7 @@ exports.deserializeAws_restJson1UpdateEndpointCommand = deserializeAws_restJson1
|
|
|
7795
7795
|
const deserializeAws_restJson1UpdateEndpointCommandError = async (output, context) => {
|
|
7796
7796
|
const parsedOutput = {
|
|
7797
7797
|
...output,
|
|
7798
|
-
body: await
|
|
7798
|
+
body: await parseErrorBody(output.body, context),
|
|
7799
7799
|
};
|
|
7800
7800
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7801
7801
|
switch (errorCode) {
|
|
@@ -7845,7 +7845,7 @@ exports.deserializeAws_restJson1UpdateEndpointsBatchCommand = deserializeAws_res
|
|
|
7845
7845
|
const deserializeAws_restJson1UpdateEndpointsBatchCommandError = async (output, context) => {
|
|
7846
7846
|
const parsedOutput = {
|
|
7847
7847
|
...output,
|
|
7848
|
-
body: await
|
|
7848
|
+
body: await parseErrorBody(output.body, context),
|
|
7849
7849
|
};
|
|
7850
7850
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7851
7851
|
switch (errorCode) {
|
|
@@ -7895,7 +7895,7 @@ exports.deserializeAws_restJson1UpdateGcmChannelCommand = deserializeAws_restJso
|
|
|
7895
7895
|
const deserializeAws_restJson1UpdateGcmChannelCommandError = async (output, context) => {
|
|
7896
7896
|
const parsedOutput = {
|
|
7897
7897
|
...output,
|
|
7898
|
-
body: await
|
|
7898
|
+
body: await parseErrorBody(output.body, context),
|
|
7899
7899
|
};
|
|
7900
7900
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7901
7901
|
switch (errorCode) {
|
|
@@ -7945,7 +7945,7 @@ exports.deserializeAws_restJson1UpdateInAppTemplateCommand = deserializeAws_rest
|
|
|
7945
7945
|
const deserializeAws_restJson1UpdateInAppTemplateCommandError = async (output, context) => {
|
|
7946
7946
|
const parsedOutput = {
|
|
7947
7947
|
...output,
|
|
7948
|
-
body: await
|
|
7948
|
+
body: await parseErrorBody(output.body, context),
|
|
7949
7949
|
};
|
|
7950
7950
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7951
7951
|
switch (errorCode) {
|
|
@@ -7995,7 +7995,7 @@ exports.deserializeAws_restJson1UpdateJourneyCommand = deserializeAws_restJson1U
|
|
|
7995
7995
|
const deserializeAws_restJson1UpdateJourneyCommandError = async (output, context) => {
|
|
7996
7996
|
const parsedOutput = {
|
|
7997
7997
|
...output,
|
|
7998
|
-
body: await
|
|
7998
|
+
body: await parseErrorBody(output.body, context),
|
|
7999
7999
|
};
|
|
8000
8000
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8001
8001
|
switch (errorCode) {
|
|
@@ -8048,7 +8048,7 @@ exports.deserializeAws_restJson1UpdateJourneyStateCommand = deserializeAws_restJ
|
|
|
8048
8048
|
const deserializeAws_restJson1UpdateJourneyStateCommandError = async (output, context) => {
|
|
8049
8049
|
const parsedOutput = {
|
|
8050
8050
|
...output,
|
|
8051
|
-
body: await
|
|
8051
|
+
body: await parseErrorBody(output.body, context),
|
|
8052
8052
|
};
|
|
8053
8053
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8054
8054
|
switch (errorCode) {
|
|
@@ -8098,7 +8098,7 @@ exports.deserializeAws_restJson1UpdatePushTemplateCommand = deserializeAws_restJ
|
|
|
8098
8098
|
const deserializeAws_restJson1UpdatePushTemplateCommandError = async (output, context) => {
|
|
8099
8099
|
const parsedOutput = {
|
|
8100
8100
|
...output,
|
|
8101
|
-
body: await
|
|
8101
|
+
body: await parseErrorBody(output.body, context),
|
|
8102
8102
|
};
|
|
8103
8103
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8104
8104
|
switch (errorCode) {
|
|
@@ -8148,7 +8148,7 @@ exports.deserializeAws_restJson1UpdateRecommenderConfigurationCommand = deserial
|
|
|
8148
8148
|
const deserializeAws_restJson1UpdateRecommenderConfigurationCommandError = async (output, context) => {
|
|
8149
8149
|
const parsedOutput = {
|
|
8150
8150
|
...output,
|
|
8151
|
-
body: await
|
|
8151
|
+
body: await parseErrorBody(output.body, context),
|
|
8152
8152
|
};
|
|
8153
8153
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8154
8154
|
switch (errorCode) {
|
|
@@ -8198,7 +8198,7 @@ exports.deserializeAws_restJson1UpdateSegmentCommand = deserializeAws_restJson1U
|
|
|
8198
8198
|
const deserializeAws_restJson1UpdateSegmentCommandError = async (output, context) => {
|
|
8199
8199
|
const parsedOutput = {
|
|
8200
8200
|
...output,
|
|
8201
|
-
body: await
|
|
8201
|
+
body: await parseErrorBody(output.body, context),
|
|
8202
8202
|
};
|
|
8203
8203
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8204
8204
|
switch (errorCode) {
|
|
@@ -8248,7 +8248,7 @@ exports.deserializeAws_restJson1UpdateSmsChannelCommand = deserializeAws_restJso
|
|
|
8248
8248
|
const deserializeAws_restJson1UpdateSmsChannelCommandError = async (output, context) => {
|
|
8249
8249
|
const parsedOutput = {
|
|
8250
8250
|
...output,
|
|
8251
|
-
body: await
|
|
8251
|
+
body: await parseErrorBody(output.body, context),
|
|
8252
8252
|
};
|
|
8253
8253
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8254
8254
|
switch (errorCode) {
|
|
@@ -8298,7 +8298,7 @@ exports.deserializeAws_restJson1UpdateSmsTemplateCommand = deserializeAws_restJs
|
|
|
8298
8298
|
const deserializeAws_restJson1UpdateSmsTemplateCommandError = async (output, context) => {
|
|
8299
8299
|
const parsedOutput = {
|
|
8300
8300
|
...output,
|
|
8301
|
-
body: await
|
|
8301
|
+
body: await parseErrorBody(output.body, context),
|
|
8302
8302
|
};
|
|
8303
8303
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8304
8304
|
switch (errorCode) {
|
|
@@ -8348,7 +8348,7 @@ exports.deserializeAws_restJson1UpdateTemplateActiveVersionCommand = deserialize
|
|
|
8348
8348
|
const deserializeAws_restJson1UpdateTemplateActiveVersionCommandError = async (output, context) => {
|
|
8349
8349
|
const parsedOutput = {
|
|
8350
8350
|
...output,
|
|
8351
|
-
body: await
|
|
8351
|
+
body: await parseErrorBody(output.body, context),
|
|
8352
8352
|
};
|
|
8353
8353
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8354
8354
|
switch (errorCode) {
|
|
@@ -8398,7 +8398,7 @@ exports.deserializeAws_restJson1UpdateVoiceChannelCommand = deserializeAws_restJ
|
|
|
8398
8398
|
const deserializeAws_restJson1UpdateVoiceChannelCommandError = async (output, context) => {
|
|
8399
8399
|
const parsedOutput = {
|
|
8400
8400
|
...output,
|
|
8401
|
-
body: await
|
|
8401
|
+
body: await parseErrorBody(output.body, context),
|
|
8402
8402
|
};
|
|
8403
8403
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8404
8404
|
switch (errorCode) {
|
|
@@ -8448,7 +8448,7 @@ exports.deserializeAws_restJson1UpdateVoiceTemplateCommand = deserializeAws_rest
|
|
|
8448
8448
|
const deserializeAws_restJson1UpdateVoiceTemplateCommandError = async (output, context) => {
|
|
8449
8449
|
const parsedOutput = {
|
|
8450
8450
|
...output,
|
|
8451
|
-
body: await
|
|
8451
|
+
body: await parseErrorBody(output.body, context),
|
|
8452
8452
|
};
|
|
8453
8453
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8454
8454
|
switch (errorCode) {
|
|
@@ -8498,7 +8498,7 @@ exports.deserializeAws_restJson1VerifyOTPMessageCommand = deserializeAws_restJso
|
|
|
8498
8498
|
const deserializeAws_restJson1VerifyOTPMessageCommandError = async (output, context) => {
|
|
8499
8499
|
const parsedOutput = {
|
|
8500
8500
|
...output,
|
|
8501
|
-
body: await
|
|
8501
|
+
body: await parseErrorBody(output.body, context),
|
|
8502
8502
|
};
|
|
8503
8503
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8504
8504
|
switch (errorCode) {
|
|
@@ -12100,6 +12100,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
12100
12100
|
}
|
|
12101
12101
|
return {};
|
|
12102
12102
|
});
|
|
12103
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
12104
|
+
var _a;
|
|
12105
|
+
const value = await parseBody(errorBody, context);
|
|
12106
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
12107
|
+
return value;
|
|
12108
|
+
};
|
|
12103
12109
|
const loadRestJsonErrorCode = (output, data) => {
|
|
12104
12110
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
12105
12111
|
const sanitizeErrorCode = (rawValue) => {
|