@aws-sdk/client-pinpoint-sms-voice-v2 3.489.0 → 3.495.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/dist-cjs/PinpointSMSVoiceV2.js +1 -149
- package/dist-cjs/PinpointSMSVoiceV2Client.js +1 -43
- package/dist-cjs/commands/AssociateOriginationIdentityCommand.js +1 -28
- package/dist-cjs/commands/CreateConfigurationSetCommand.js +1 -28
- package/dist-cjs/commands/CreateEventDestinationCommand.js +1 -28
- package/dist-cjs/commands/CreateOptOutListCommand.js +1 -28
- package/dist-cjs/commands/CreatePoolCommand.js +1 -28
- package/dist-cjs/commands/CreateRegistrationAssociationCommand.js +1 -28
- package/dist-cjs/commands/CreateRegistrationAttachmentCommand.js +1 -28
- package/dist-cjs/commands/CreateRegistrationCommand.js +1 -28
- package/dist-cjs/commands/CreateRegistrationVersionCommand.js +1 -28
- package/dist-cjs/commands/CreateVerifiedDestinationNumberCommand.js +1 -28
- package/dist-cjs/commands/DeleteConfigurationSetCommand.js +1 -28
- package/dist-cjs/commands/DeleteDefaultMessageTypeCommand.js +1 -28
- package/dist-cjs/commands/DeleteDefaultSenderIdCommand.js +1 -28
- package/dist-cjs/commands/DeleteEventDestinationCommand.js +1 -28
- package/dist-cjs/commands/DeleteKeywordCommand.js +1 -28
- package/dist-cjs/commands/DeleteOptOutListCommand.js +1 -28
- package/dist-cjs/commands/DeleteOptedOutNumberCommand.js +1 -28
- package/dist-cjs/commands/DeletePoolCommand.js +1 -28
- package/dist-cjs/commands/DeleteRegistrationAttachmentCommand.js +1 -28
- package/dist-cjs/commands/DeleteRegistrationCommand.js +1 -28
- package/dist-cjs/commands/DeleteRegistrationFieldValueCommand.js +1 -28
- package/dist-cjs/commands/DeleteTextMessageSpendLimitOverrideCommand.js +1 -28
- package/dist-cjs/commands/DeleteVerifiedDestinationNumberCommand.js +1 -28
- package/dist-cjs/commands/DeleteVoiceMessageSpendLimitOverrideCommand.js +1 -28
- package/dist-cjs/commands/DescribeAccountAttributesCommand.js +1 -28
- package/dist-cjs/commands/DescribeAccountLimitsCommand.js +1 -28
- package/dist-cjs/commands/DescribeConfigurationSetsCommand.js +1 -28
- package/dist-cjs/commands/DescribeKeywordsCommand.js +1 -28
- package/dist-cjs/commands/DescribeOptOutListsCommand.js +1 -28
- package/dist-cjs/commands/DescribeOptedOutNumbersCommand.js +1 -28
- package/dist-cjs/commands/DescribePhoneNumbersCommand.js +1 -28
- package/dist-cjs/commands/DescribePoolsCommand.js +1 -28
- package/dist-cjs/commands/DescribeRegistrationAttachmentsCommand.js +1 -28
- package/dist-cjs/commands/DescribeRegistrationFieldDefinitionsCommand.js +1 -28
- package/dist-cjs/commands/DescribeRegistrationFieldValuesCommand.js +1 -28
- package/dist-cjs/commands/DescribeRegistrationSectionDefinitionsCommand.js +1 -28
- package/dist-cjs/commands/DescribeRegistrationTypeDefinitionsCommand.js +1 -28
- package/dist-cjs/commands/DescribeRegistrationVersionsCommand.js +1 -28
- package/dist-cjs/commands/DescribeRegistrationsCommand.js +1 -28
- package/dist-cjs/commands/DescribeSenderIdsCommand.js +1 -28
- package/dist-cjs/commands/DescribeSpendLimitsCommand.js +1 -28
- package/dist-cjs/commands/DescribeVerifiedDestinationNumbersCommand.js +1 -28
- package/dist-cjs/commands/DisassociateOriginationIdentityCommand.js +1 -28
- package/dist-cjs/commands/DiscardRegistrationVersionCommand.js +1 -28
- package/dist-cjs/commands/ListPoolOriginationIdentitiesCommand.js +1 -28
- package/dist-cjs/commands/ListRegistrationAssociationsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/PutKeywordCommand.js +1 -28
- package/dist-cjs/commands/PutOptedOutNumberCommand.js +1 -28
- package/dist-cjs/commands/PutRegistrationFieldValueCommand.js +1 -28
- package/dist-cjs/commands/ReleasePhoneNumberCommand.js +1 -28
- package/dist-cjs/commands/ReleaseSenderIdCommand.js +1 -28
- package/dist-cjs/commands/RequestPhoneNumberCommand.js +1 -28
- package/dist-cjs/commands/RequestSenderIdCommand.js +1 -28
- package/dist-cjs/commands/SendDestinationNumberVerificationCodeCommand.js +1 -28
- package/dist-cjs/commands/SendTextMessageCommand.js +1 -28
- package/dist-cjs/commands/SendVoiceMessageCommand.js +1 -28
- package/dist-cjs/commands/SetDefaultMessageTypeCommand.js +1 -28
- package/dist-cjs/commands/SetDefaultSenderIdCommand.js +1 -28
- package/dist-cjs/commands/SetTextMessageSpendLimitOverrideCommand.js +1 -28
- package/dist-cjs/commands/SetVoiceMessageSpendLimitOverrideCommand.js +1 -28
- package/dist-cjs/commands/SubmitRegistrationVersionCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateEventDestinationCommand.js +1 -28
- package/dist-cjs/commands/UpdatePhoneNumberCommand.js +1 -28
- package/dist-cjs/commands/UpdatePoolCommand.js +1 -28
- package/dist-cjs/commands/UpdateSenderIdCommand.js +1 -28
- package/dist-cjs/commands/VerifyDestinationNumberCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -72
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +6576 -11
- package/dist-cjs/models/PinpointSMSVoiceV2ServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -519
- package/dist-cjs/pagination/DescribeAccountAttributesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeAccountLimitsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeConfigurationSetsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeKeywordsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeOptOutListsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeOptedOutNumbersPaginator.js +1 -7
- package/dist-cjs/pagination/DescribePhoneNumbersPaginator.js +1 -7
- package/dist-cjs/pagination/DescribePoolsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeRegistrationAttachmentsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeRegistrationFieldDefinitionsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeRegistrationFieldValuesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeRegistrationSectionDefinitionsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeRegistrationTypeDefinitionsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeRegistrationVersionsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeRegistrationsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeSenderIdsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeSpendLimitsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeVerifiedDestinationNumbersPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListPoolOriginationIdentitiesPaginator.js +1 -7
- package/dist-cjs/pagination/ListRegistrationAssociationsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -24
- package/dist-cjs/protocols/Aws_json1_0.js +1 -4438
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,4438 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.se_PutRegistrationFieldValueCommand = exports.se_PutOptedOutNumberCommand = exports.se_PutKeywordCommand = exports.se_ListTagsForResourceCommand = exports.se_ListRegistrationAssociationsCommand = exports.se_ListPoolOriginationIdentitiesCommand = exports.se_DiscardRegistrationVersionCommand = exports.se_DisassociateOriginationIdentityCommand = exports.se_DescribeVerifiedDestinationNumbersCommand = exports.se_DescribeSpendLimitsCommand = exports.se_DescribeSenderIdsCommand = exports.se_DescribeRegistrationVersionsCommand = exports.se_DescribeRegistrationTypeDefinitionsCommand = exports.se_DescribeRegistrationSectionDefinitionsCommand = exports.se_DescribeRegistrationsCommand = exports.se_DescribeRegistrationFieldValuesCommand = exports.se_DescribeRegistrationFieldDefinitionsCommand = exports.se_DescribeRegistrationAttachmentsCommand = exports.se_DescribePoolsCommand = exports.se_DescribePhoneNumbersCommand = exports.se_DescribeOptOutListsCommand = exports.se_DescribeOptedOutNumbersCommand = exports.se_DescribeKeywordsCommand = exports.se_DescribeConfigurationSetsCommand = exports.se_DescribeAccountLimitsCommand = exports.se_DescribeAccountAttributesCommand = exports.se_DeleteVoiceMessageSpendLimitOverrideCommand = exports.se_DeleteVerifiedDestinationNumberCommand = exports.se_DeleteTextMessageSpendLimitOverrideCommand = exports.se_DeleteRegistrationFieldValueCommand = exports.se_DeleteRegistrationAttachmentCommand = exports.se_DeleteRegistrationCommand = exports.se_DeletePoolCommand = exports.se_DeleteOptOutListCommand = exports.se_DeleteOptedOutNumberCommand = exports.se_DeleteKeywordCommand = exports.se_DeleteEventDestinationCommand = exports.se_DeleteDefaultSenderIdCommand = exports.se_DeleteDefaultMessageTypeCommand = exports.se_DeleteConfigurationSetCommand = exports.se_CreateVerifiedDestinationNumberCommand = exports.se_CreateRegistrationVersionCommand = exports.se_CreateRegistrationAttachmentCommand = exports.se_CreateRegistrationAssociationCommand = exports.se_CreateRegistrationCommand = exports.se_CreatePoolCommand = exports.se_CreateOptOutListCommand = exports.se_CreateEventDestinationCommand = exports.se_CreateConfigurationSetCommand = exports.se_AssociateOriginationIdentityCommand = void 0;
|
|
4
|
-
exports.de_DescribePhoneNumbersCommand = exports.de_DescribeOptOutListsCommand = exports.de_DescribeOptedOutNumbersCommand = exports.de_DescribeKeywordsCommand = exports.de_DescribeConfigurationSetsCommand = exports.de_DescribeAccountLimitsCommand = exports.de_DescribeAccountAttributesCommand = exports.de_DeleteVoiceMessageSpendLimitOverrideCommand = exports.de_DeleteVerifiedDestinationNumberCommand = exports.de_DeleteTextMessageSpendLimitOverrideCommand = exports.de_DeleteRegistrationFieldValueCommand = exports.de_DeleteRegistrationAttachmentCommand = exports.de_DeleteRegistrationCommand = exports.de_DeletePoolCommand = exports.de_DeleteOptOutListCommand = exports.de_DeleteOptedOutNumberCommand = exports.de_DeleteKeywordCommand = exports.de_DeleteEventDestinationCommand = exports.de_DeleteDefaultSenderIdCommand = exports.de_DeleteDefaultMessageTypeCommand = exports.de_DeleteConfigurationSetCommand = exports.de_CreateVerifiedDestinationNumberCommand = exports.de_CreateRegistrationVersionCommand = exports.de_CreateRegistrationAttachmentCommand = exports.de_CreateRegistrationAssociationCommand = exports.de_CreateRegistrationCommand = exports.de_CreatePoolCommand = exports.de_CreateOptOutListCommand = exports.de_CreateEventDestinationCommand = exports.de_CreateConfigurationSetCommand = exports.de_AssociateOriginationIdentityCommand = exports.se_VerifyDestinationNumberCommand = exports.se_UpdateSenderIdCommand = exports.se_UpdatePoolCommand = exports.se_UpdatePhoneNumberCommand = exports.se_UpdateEventDestinationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SubmitRegistrationVersionCommand = exports.se_SetVoiceMessageSpendLimitOverrideCommand = exports.se_SetTextMessageSpendLimitOverrideCommand = exports.se_SetDefaultSenderIdCommand = exports.se_SetDefaultMessageTypeCommand = exports.se_SendVoiceMessageCommand = exports.se_SendTextMessageCommand = exports.se_SendDestinationNumberVerificationCodeCommand = exports.se_RequestSenderIdCommand = exports.se_RequestPhoneNumberCommand = exports.se_ReleaseSenderIdCommand = exports.se_ReleasePhoneNumberCommand = void 0;
|
|
5
|
-
exports.de_VerifyDestinationNumberCommand = exports.de_UpdateSenderIdCommand = exports.de_UpdatePoolCommand = exports.de_UpdatePhoneNumberCommand = exports.de_UpdateEventDestinationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SubmitRegistrationVersionCommand = exports.de_SetVoiceMessageSpendLimitOverrideCommand = exports.de_SetTextMessageSpendLimitOverrideCommand = exports.de_SetDefaultSenderIdCommand = exports.de_SetDefaultMessageTypeCommand = exports.de_SendVoiceMessageCommand = exports.de_SendTextMessageCommand = exports.de_SendDestinationNumberVerificationCodeCommand = exports.de_RequestSenderIdCommand = exports.de_RequestPhoneNumberCommand = exports.de_ReleaseSenderIdCommand = exports.de_ReleasePhoneNumberCommand = exports.de_PutRegistrationFieldValueCommand = exports.de_PutOptedOutNumberCommand = exports.de_PutKeywordCommand = exports.de_ListTagsForResourceCommand = exports.de_ListRegistrationAssociationsCommand = exports.de_ListPoolOriginationIdentitiesCommand = exports.de_DiscardRegistrationVersionCommand = exports.de_DisassociateOriginationIdentityCommand = exports.de_DescribeVerifiedDestinationNumbersCommand = exports.de_DescribeSpendLimitsCommand = exports.de_DescribeSenderIdsCommand = exports.de_DescribeRegistrationVersionsCommand = exports.de_DescribeRegistrationTypeDefinitionsCommand = exports.de_DescribeRegistrationSectionDefinitionsCommand = exports.de_DescribeRegistrationsCommand = exports.de_DescribeRegistrationFieldValuesCommand = exports.de_DescribeRegistrationFieldDefinitionsCommand = exports.de_DescribeRegistrationAttachmentsCommand = exports.de_DescribePoolsCommand = void 0;
|
|
6
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
|
-
const uuid_1 = require("uuid");
|
|
9
|
-
const models_0_1 = require("../models/models_0");
|
|
10
|
-
const PinpointSMSVoiceV2ServiceException_1 = require("../models/PinpointSMSVoiceV2ServiceException");
|
|
11
|
-
const se_AssociateOriginationIdentityCommand = async (input, context) => {
|
|
12
|
-
const headers = sharedHeaders("AssociateOriginationIdentity");
|
|
13
|
-
let body;
|
|
14
|
-
body = JSON.stringify(se_AssociateOriginationIdentityRequest(input, context));
|
|
15
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
|
-
};
|
|
17
|
-
exports.se_AssociateOriginationIdentityCommand = se_AssociateOriginationIdentityCommand;
|
|
18
|
-
const se_CreateConfigurationSetCommand = async (input, context) => {
|
|
19
|
-
const headers = sharedHeaders("CreateConfigurationSet");
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify(se_CreateConfigurationSetRequest(input, context));
|
|
22
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
-
};
|
|
24
|
-
exports.se_CreateConfigurationSetCommand = se_CreateConfigurationSetCommand;
|
|
25
|
-
const se_CreateEventDestinationCommand = async (input, context) => {
|
|
26
|
-
const headers = sharedHeaders("CreateEventDestination");
|
|
27
|
-
let body;
|
|
28
|
-
body = JSON.stringify(se_CreateEventDestinationRequest(input, context));
|
|
29
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
30
|
-
};
|
|
31
|
-
exports.se_CreateEventDestinationCommand = se_CreateEventDestinationCommand;
|
|
32
|
-
const se_CreateOptOutListCommand = async (input, context) => {
|
|
33
|
-
const headers = sharedHeaders("CreateOptOutList");
|
|
34
|
-
let body;
|
|
35
|
-
body = JSON.stringify(se_CreateOptOutListRequest(input, context));
|
|
36
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
|
-
};
|
|
38
|
-
exports.se_CreateOptOutListCommand = se_CreateOptOutListCommand;
|
|
39
|
-
const se_CreatePoolCommand = async (input, context) => {
|
|
40
|
-
const headers = sharedHeaders("CreatePool");
|
|
41
|
-
let body;
|
|
42
|
-
body = JSON.stringify(se_CreatePoolRequest(input, context));
|
|
43
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
44
|
-
};
|
|
45
|
-
exports.se_CreatePoolCommand = se_CreatePoolCommand;
|
|
46
|
-
const se_CreateRegistrationCommand = async (input, context) => {
|
|
47
|
-
const headers = sharedHeaders("CreateRegistration");
|
|
48
|
-
let body;
|
|
49
|
-
body = JSON.stringify(se_CreateRegistrationRequest(input, context));
|
|
50
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
51
|
-
};
|
|
52
|
-
exports.se_CreateRegistrationCommand = se_CreateRegistrationCommand;
|
|
53
|
-
const se_CreateRegistrationAssociationCommand = async (input, context) => {
|
|
54
|
-
const headers = sharedHeaders("CreateRegistrationAssociation");
|
|
55
|
-
let body;
|
|
56
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
57
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
|
-
};
|
|
59
|
-
exports.se_CreateRegistrationAssociationCommand = se_CreateRegistrationAssociationCommand;
|
|
60
|
-
const se_CreateRegistrationAttachmentCommand = async (input, context) => {
|
|
61
|
-
const headers = sharedHeaders("CreateRegistrationAttachment");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify(se_CreateRegistrationAttachmentRequest(input, context));
|
|
64
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
-
};
|
|
66
|
-
exports.se_CreateRegistrationAttachmentCommand = se_CreateRegistrationAttachmentCommand;
|
|
67
|
-
const se_CreateRegistrationVersionCommand = async (input, context) => {
|
|
68
|
-
const headers = sharedHeaders("CreateRegistrationVersion");
|
|
69
|
-
let body;
|
|
70
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
71
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
72
|
-
};
|
|
73
|
-
exports.se_CreateRegistrationVersionCommand = se_CreateRegistrationVersionCommand;
|
|
74
|
-
const se_CreateVerifiedDestinationNumberCommand = async (input, context) => {
|
|
75
|
-
const headers = sharedHeaders("CreateVerifiedDestinationNumber");
|
|
76
|
-
let body;
|
|
77
|
-
body = JSON.stringify(se_CreateVerifiedDestinationNumberRequest(input, context));
|
|
78
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
79
|
-
};
|
|
80
|
-
exports.se_CreateVerifiedDestinationNumberCommand = se_CreateVerifiedDestinationNumberCommand;
|
|
81
|
-
const se_DeleteConfigurationSetCommand = async (input, context) => {
|
|
82
|
-
const headers = sharedHeaders("DeleteConfigurationSet");
|
|
83
|
-
let body;
|
|
84
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
85
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
|
-
};
|
|
87
|
-
exports.se_DeleteConfigurationSetCommand = se_DeleteConfigurationSetCommand;
|
|
88
|
-
const se_DeleteDefaultMessageTypeCommand = async (input, context) => {
|
|
89
|
-
const headers = sharedHeaders("DeleteDefaultMessageType");
|
|
90
|
-
let body;
|
|
91
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
92
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
93
|
-
};
|
|
94
|
-
exports.se_DeleteDefaultMessageTypeCommand = se_DeleteDefaultMessageTypeCommand;
|
|
95
|
-
const se_DeleteDefaultSenderIdCommand = async (input, context) => {
|
|
96
|
-
const headers = sharedHeaders("DeleteDefaultSenderId");
|
|
97
|
-
let body;
|
|
98
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
99
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
100
|
-
};
|
|
101
|
-
exports.se_DeleteDefaultSenderIdCommand = se_DeleteDefaultSenderIdCommand;
|
|
102
|
-
const se_DeleteEventDestinationCommand = async (input, context) => {
|
|
103
|
-
const headers = sharedHeaders("DeleteEventDestination");
|
|
104
|
-
let body;
|
|
105
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
106
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
|
-
};
|
|
108
|
-
exports.se_DeleteEventDestinationCommand = se_DeleteEventDestinationCommand;
|
|
109
|
-
const se_DeleteKeywordCommand = async (input, context) => {
|
|
110
|
-
const headers = sharedHeaders("DeleteKeyword");
|
|
111
|
-
let body;
|
|
112
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
113
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
114
|
-
};
|
|
115
|
-
exports.se_DeleteKeywordCommand = se_DeleteKeywordCommand;
|
|
116
|
-
const se_DeleteOptedOutNumberCommand = async (input, context) => {
|
|
117
|
-
const headers = sharedHeaders("DeleteOptedOutNumber");
|
|
118
|
-
let body;
|
|
119
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
120
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
|
-
};
|
|
122
|
-
exports.se_DeleteOptedOutNumberCommand = se_DeleteOptedOutNumberCommand;
|
|
123
|
-
const se_DeleteOptOutListCommand = async (input, context) => {
|
|
124
|
-
const headers = sharedHeaders("DeleteOptOutList");
|
|
125
|
-
let body;
|
|
126
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
127
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
128
|
-
};
|
|
129
|
-
exports.se_DeleteOptOutListCommand = se_DeleteOptOutListCommand;
|
|
130
|
-
const se_DeletePoolCommand = async (input, context) => {
|
|
131
|
-
const headers = sharedHeaders("DeletePool");
|
|
132
|
-
let body;
|
|
133
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
134
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
135
|
-
};
|
|
136
|
-
exports.se_DeletePoolCommand = se_DeletePoolCommand;
|
|
137
|
-
const se_DeleteRegistrationCommand = async (input, context) => {
|
|
138
|
-
const headers = sharedHeaders("DeleteRegistration");
|
|
139
|
-
let body;
|
|
140
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
141
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
142
|
-
};
|
|
143
|
-
exports.se_DeleteRegistrationCommand = se_DeleteRegistrationCommand;
|
|
144
|
-
const se_DeleteRegistrationAttachmentCommand = async (input, context) => {
|
|
145
|
-
const headers = sharedHeaders("DeleteRegistrationAttachment");
|
|
146
|
-
let body;
|
|
147
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
148
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
|
-
};
|
|
150
|
-
exports.se_DeleteRegistrationAttachmentCommand = se_DeleteRegistrationAttachmentCommand;
|
|
151
|
-
const se_DeleteRegistrationFieldValueCommand = async (input, context) => {
|
|
152
|
-
const headers = sharedHeaders("DeleteRegistrationFieldValue");
|
|
153
|
-
let body;
|
|
154
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
155
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
|
-
};
|
|
157
|
-
exports.se_DeleteRegistrationFieldValueCommand = se_DeleteRegistrationFieldValueCommand;
|
|
158
|
-
const se_DeleteTextMessageSpendLimitOverrideCommand = async (input, context) => {
|
|
159
|
-
const headers = sharedHeaders("DeleteTextMessageSpendLimitOverride");
|
|
160
|
-
let body;
|
|
161
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
162
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
163
|
-
};
|
|
164
|
-
exports.se_DeleteTextMessageSpendLimitOverrideCommand = se_DeleteTextMessageSpendLimitOverrideCommand;
|
|
165
|
-
const se_DeleteVerifiedDestinationNumberCommand = async (input, context) => {
|
|
166
|
-
const headers = sharedHeaders("DeleteVerifiedDestinationNumber");
|
|
167
|
-
let body;
|
|
168
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
169
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
170
|
-
};
|
|
171
|
-
exports.se_DeleteVerifiedDestinationNumberCommand = se_DeleteVerifiedDestinationNumberCommand;
|
|
172
|
-
const se_DeleteVoiceMessageSpendLimitOverrideCommand = async (input, context) => {
|
|
173
|
-
const headers = sharedHeaders("DeleteVoiceMessageSpendLimitOverride");
|
|
174
|
-
let body;
|
|
175
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
176
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
|
-
};
|
|
178
|
-
exports.se_DeleteVoiceMessageSpendLimitOverrideCommand = se_DeleteVoiceMessageSpendLimitOverrideCommand;
|
|
179
|
-
const se_DescribeAccountAttributesCommand = async (input, context) => {
|
|
180
|
-
const headers = sharedHeaders("DescribeAccountAttributes");
|
|
181
|
-
let body;
|
|
182
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
183
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
|
-
};
|
|
185
|
-
exports.se_DescribeAccountAttributesCommand = se_DescribeAccountAttributesCommand;
|
|
186
|
-
const se_DescribeAccountLimitsCommand = async (input, context) => {
|
|
187
|
-
const headers = sharedHeaders("DescribeAccountLimits");
|
|
188
|
-
let body;
|
|
189
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
190
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
191
|
-
};
|
|
192
|
-
exports.se_DescribeAccountLimitsCommand = se_DescribeAccountLimitsCommand;
|
|
193
|
-
const se_DescribeConfigurationSetsCommand = async (input, context) => {
|
|
194
|
-
const headers = sharedHeaders("DescribeConfigurationSets");
|
|
195
|
-
let body;
|
|
196
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
197
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
198
|
-
};
|
|
199
|
-
exports.se_DescribeConfigurationSetsCommand = se_DescribeConfigurationSetsCommand;
|
|
200
|
-
const se_DescribeKeywordsCommand = async (input, context) => {
|
|
201
|
-
const headers = sharedHeaders("DescribeKeywords");
|
|
202
|
-
let body;
|
|
203
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
204
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
205
|
-
};
|
|
206
|
-
exports.se_DescribeKeywordsCommand = se_DescribeKeywordsCommand;
|
|
207
|
-
const se_DescribeOptedOutNumbersCommand = async (input, context) => {
|
|
208
|
-
const headers = sharedHeaders("DescribeOptedOutNumbers");
|
|
209
|
-
let body;
|
|
210
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
211
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
212
|
-
};
|
|
213
|
-
exports.se_DescribeOptedOutNumbersCommand = se_DescribeOptedOutNumbersCommand;
|
|
214
|
-
const se_DescribeOptOutListsCommand = async (input, context) => {
|
|
215
|
-
const headers = sharedHeaders("DescribeOptOutLists");
|
|
216
|
-
let body;
|
|
217
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
218
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
219
|
-
};
|
|
220
|
-
exports.se_DescribeOptOutListsCommand = se_DescribeOptOutListsCommand;
|
|
221
|
-
const se_DescribePhoneNumbersCommand = async (input, context) => {
|
|
222
|
-
const headers = sharedHeaders("DescribePhoneNumbers");
|
|
223
|
-
let body;
|
|
224
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
225
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
226
|
-
};
|
|
227
|
-
exports.se_DescribePhoneNumbersCommand = se_DescribePhoneNumbersCommand;
|
|
228
|
-
const se_DescribePoolsCommand = async (input, context) => {
|
|
229
|
-
const headers = sharedHeaders("DescribePools");
|
|
230
|
-
let body;
|
|
231
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
232
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
233
|
-
};
|
|
234
|
-
exports.se_DescribePoolsCommand = se_DescribePoolsCommand;
|
|
235
|
-
const se_DescribeRegistrationAttachmentsCommand = async (input, context) => {
|
|
236
|
-
const headers = sharedHeaders("DescribeRegistrationAttachments");
|
|
237
|
-
let body;
|
|
238
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
239
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
240
|
-
};
|
|
241
|
-
exports.se_DescribeRegistrationAttachmentsCommand = se_DescribeRegistrationAttachmentsCommand;
|
|
242
|
-
const se_DescribeRegistrationFieldDefinitionsCommand = async (input, context) => {
|
|
243
|
-
const headers = sharedHeaders("DescribeRegistrationFieldDefinitions");
|
|
244
|
-
let body;
|
|
245
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
246
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
|
-
};
|
|
248
|
-
exports.se_DescribeRegistrationFieldDefinitionsCommand = se_DescribeRegistrationFieldDefinitionsCommand;
|
|
249
|
-
const se_DescribeRegistrationFieldValuesCommand = async (input, context) => {
|
|
250
|
-
const headers = sharedHeaders("DescribeRegistrationFieldValues");
|
|
251
|
-
let body;
|
|
252
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
253
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
254
|
-
};
|
|
255
|
-
exports.se_DescribeRegistrationFieldValuesCommand = se_DescribeRegistrationFieldValuesCommand;
|
|
256
|
-
const se_DescribeRegistrationsCommand = async (input, context) => {
|
|
257
|
-
const headers = sharedHeaders("DescribeRegistrations");
|
|
258
|
-
let body;
|
|
259
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
260
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
261
|
-
};
|
|
262
|
-
exports.se_DescribeRegistrationsCommand = se_DescribeRegistrationsCommand;
|
|
263
|
-
const se_DescribeRegistrationSectionDefinitionsCommand = async (input, context) => {
|
|
264
|
-
const headers = sharedHeaders("DescribeRegistrationSectionDefinitions");
|
|
265
|
-
let body;
|
|
266
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
267
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
268
|
-
};
|
|
269
|
-
exports.se_DescribeRegistrationSectionDefinitionsCommand = se_DescribeRegistrationSectionDefinitionsCommand;
|
|
270
|
-
const se_DescribeRegistrationTypeDefinitionsCommand = async (input, context) => {
|
|
271
|
-
const headers = sharedHeaders("DescribeRegistrationTypeDefinitions");
|
|
272
|
-
let body;
|
|
273
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
274
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
275
|
-
};
|
|
276
|
-
exports.se_DescribeRegistrationTypeDefinitionsCommand = se_DescribeRegistrationTypeDefinitionsCommand;
|
|
277
|
-
const se_DescribeRegistrationVersionsCommand = async (input, context) => {
|
|
278
|
-
const headers = sharedHeaders("DescribeRegistrationVersions");
|
|
279
|
-
let body;
|
|
280
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
281
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
282
|
-
};
|
|
283
|
-
exports.se_DescribeRegistrationVersionsCommand = se_DescribeRegistrationVersionsCommand;
|
|
284
|
-
const se_DescribeSenderIdsCommand = async (input, context) => {
|
|
285
|
-
const headers = sharedHeaders("DescribeSenderIds");
|
|
286
|
-
let body;
|
|
287
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
288
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
289
|
-
};
|
|
290
|
-
exports.se_DescribeSenderIdsCommand = se_DescribeSenderIdsCommand;
|
|
291
|
-
const se_DescribeSpendLimitsCommand = async (input, context) => {
|
|
292
|
-
const headers = sharedHeaders("DescribeSpendLimits");
|
|
293
|
-
let body;
|
|
294
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
295
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
296
|
-
};
|
|
297
|
-
exports.se_DescribeSpendLimitsCommand = se_DescribeSpendLimitsCommand;
|
|
298
|
-
const se_DescribeVerifiedDestinationNumbersCommand = async (input, context) => {
|
|
299
|
-
const headers = sharedHeaders("DescribeVerifiedDestinationNumbers");
|
|
300
|
-
let body;
|
|
301
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
302
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
303
|
-
};
|
|
304
|
-
exports.se_DescribeVerifiedDestinationNumbersCommand = se_DescribeVerifiedDestinationNumbersCommand;
|
|
305
|
-
const se_DisassociateOriginationIdentityCommand = async (input, context) => {
|
|
306
|
-
const headers = sharedHeaders("DisassociateOriginationIdentity");
|
|
307
|
-
let body;
|
|
308
|
-
body = JSON.stringify(se_DisassociateOriginationIdentityRequest(input, context));
|
|
309
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
310
|
-
};
|
|
311
|
-
exports.se_DisassociateOriginationIdentityCommand = se_DisassociateOriginationIdentityCommand;
|
|
312
|
-
const se_DiscardRegistrationVersionCommand = async (input, context) => {
|
|
313
|
-
const headers = sharedHeaders("DiscardRegistrationVersion");
|
|
314
|
-
let body;
|
|
315
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
316
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
317
|
-
};
|
|
318
|
-
exports.se_DiscardRegistrationVersionCommand = se_DiscardRegistrationVersionCommand;
|
|
319
|
-
const se_ListPoolOriginationIdentitiesCommand = async (input, context) => {
|
|
320
|
-
const headers = sharedHeaders("ListPoolOriginationIdentities");
|
|
321
|
-
let body;
|
|
322
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
323
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
324
|
-
};
|
|
325
|
-
exports.se_ListPoolOriginationIdentitiesCommand = se_ListPoolOriginationIdentitiesCommand;
|
|
326
|
-
const se_ListRegistrationAssociationsCommand = async (input, context) => {
|
|
327
|
-
const headers = sharedHeaders("ListRegistrationAssociations");
|
|
328
|
-
let body;
|
|
329
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
330
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
331
|
-
};
|
|
332
|
-
exports.se_ListRegistrationAssociationsCommand = se_ListRegistrationAssociationsCommand;
|
|
333
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
334
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
335
|
-
let body;
|
|
336
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
337
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
338
|
-
};
|
|
339
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
340
|
-
const se_PutKeywordCommand = async (input, context) => {
|
|
341
|
-
const headers = sharedHeaders("PutKeyword");
|
|
342
|
-
let body;
|
|
343
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
344
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
345
|
-
};
|
|
346
|
-
exports.se_PutKeywordCommand = se_PutKeywordCommand;
|
|
347
|
-
const se_PutOptedOutNumberCommand = async (input, context) => {
|
|
348
|
-
const headers = sharedHeaders("PutOptedOutNumber");
|
|
349
|
-
let body;
|
|
350
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
351
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
352
|
-
};
|
|
353
|
-
exports.se_PutOptedOutNumberCommand = se_PutOptedOutNumberCommand;
|
|
354
|
-
const se_PutRegistrationFieldValueCommand = async (input, context) => {
|
|
355
|
-
const headers = sharedHeaders("PutRegistrationFieldValue");
|
|
356
|
-
let body;
|
|
357
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
358
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
359
|
-
};
|
|
360
|
-
exports.se_PutRegistrationFieldValueCommand = se_PutRegistrationFieldValueCommand;
|
|
361
|
-
const se_ReleasePhoneNumberCommand = async (input, context) => {
|
|
362
|
-
const headers = sharedHeaders("ReleasePhoneNumber");
|
|
363
|
-
let body;
|
|
364
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
365
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
366
|
-
};
|
|
367
|
-
exports.se_ReleasePhoneNumberCommand = se_ReleasePhoneNumberCommand;
|
|
368
|
-
const se_ReleaseSenderIdCommand = async (input, context) => {
|
|
369
|
-
const headers = sharedHeaders("ReleaseSenderId");
|
|
370
|
-
let body;
|
|
371
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
372
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
373
|
-
};
|
|
374
|
-
exports.se_ReleaseSenderIdCommand = se_ReleaseSenderIdCommand;
|
|
375
|
-
const se_RequestPhoneNumberCommand = async (input, context) => {
|
|
376
|
-
const headers = sharedHeaders("RequestPhoneNumber");
|
|
377
|
-
let body;
|
|
378
|
-
body = JSON.stringify(se_RequestPhoneNumberRequest(input, context));
|
|
379
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
380
|
-
};
|
|
381
|
-
exports.se_RequestPhoneNumberCommand = se_RequestPhoneNumberCommand;
|
|
382
|
-
const se_RequestSenderIdCommand = async (input, context) => {
|
|
383
|
-
const headers = sharedHeaders("RequestSenderId");
|
|
384
|
-
let body;
|
|
385
|
-
body = JSON.stringify(se_RequestSenderIdRequest(input, context));
|
|
386
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
387
|
-
};
|
|
388
|
-
exports.se_RequestSenderIdCommand = se_RequestSenderIdCommand;
|
|
389
|
-
const se_SendDestinationNumberVerificationCodeCommand = async (input, context) => {
|
|
390
|
-
const headers = sharedHeaders("SendDestinationNumberVerificationCode");
|
|
391
|
-
let body;
|
|
392
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
393
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
394
|
-
};
|
|
395
|
-
exports.se_SendDestinationNumberVerificationCodeCommand = se_SendDestinationNumberVerificationCodeCommand;
|
|
396
|
-
const se_SendTextMessageCommand = async (input, context) => {
|
|
397
|
-
const headers = sharedHeaders("SendTextMessage");
|
|
398
|
-
let body;
|
|
399
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
400
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
401
|
-
};
|
|
402
|
-
exports.se_SendTextMessageCommand = se_SendTextMessageCommand;
|
|
403
|
-
const se_SendVoiceMessageCommand = async (input, context) => {
|
|
404
|
-
const headers = sharedHeaders("SendVoiceMessage");
|
|
405
|
-
let body;
|
|
406
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
407
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
408
|
-
};
|
|
409
|
-
exports.se_SendVoiceMessageCommand = se_SendVoiceMessageCommand;
|
|
410
|
-
const se_SetDefaultMessageTypeCommand = async (input, context) => {
|
|
411
|
-
const headers = sharedHeaders("SetDefaultMessageType");
|
|
412
|
-
let body;
|
|
413
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
414
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
415
|
-
};
|
|
416
|
-
exports.se_SetDefaultMessageTypeCommand = se_SetDefaultMessageTypeCommand;
|
|
417
|
-
const se_SetDefaultSenderIdCommand = async (input, context) => {
|
|
418
|
-
const headers = sharedHeaders("SetDefaultSenderId");
|
|
419
|
-
let body;
|
|
420
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
421
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
422
|
-
};
|
|
423
|
-
exports.se_SetDefaultSenderIdCommand = se_SetDefaultSenderIdCommand;
|
|
424
|
-
const se_SetTextMessageSpendLimitOverrideCommand = async (input, context) => {
|
|
425
|
-
const headers = sharedHeaders("SetTextMessageSpendLimitOverride");
|
|
426
|
-
let body;
|
|
427
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
428
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
429
|
-
};
|
|
430
|
-
exports.se_SetTextMessageSpendLimitOverrideCommand = se_SetTextMessageSpendLimitOverrideCommand;
|
|
431
|
-
const se_SetVoiceMessageSpendLimitOverrideCommand = async (input, context) => {
|
|
432
|
-
const headers = sharedHeaders("SetVoiceMessageSpendLimitOverride");
|
|
433
|
-
let body;
|
|
434
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
435
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
436
|
-
};
|
|
437
|
-
exports.se_SetVoiceMessageSpendLimitOverrideCommand = se_SetVoiceMessageSpendLimitOverrideCommand;
|
|
438
|
-
const se_SubmitRegistrationVersionCommand = async (input, context) => {
|
|
439
|
-
const headers = sharedHeaders("SubmitRegistrationVersion");
|
|
440
|
-
let body;
|
|
441
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
442
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
443
|
-
};
|
|
444
|
-
exports.se_SubmitRegistrationVersionCommand = se_SubmitRegistrationVersionCommand;
|
|
445
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
446
|
-
const headers = sharedHeaders("TagResource");
|
|
447
|
-
let body;
|
|
448
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
449
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
450
|
-
};
|
|
451
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
452
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
453
|
-
const headers = sharedHeaders("UntagResource");
|
|
454
|
-
let body;
|
|
455
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
456
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
457
|
-
};
|
|
458
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
459
|
-
const se_UpdateEventDestinationCommand = async (input, context) => {
|
|
460
|
-
const headers = sharedHeaders("UpdateEventDestination");
|
|
461
|
-
let body;
|
|
462
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
463
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
464
|
-
};
|
|
465
|
-
exports.se_UpdateEventDestinationCommand = se_UpdateEventDestinationCommand;
|
|
466
|
-
const se_UpdatePhoneNumberCommand = async (input, context) => {
|
|
467
|
-
const headers = sharedHeaders("UpdatePhoneNumber");
|
|
468
|
-
let body;
|
|
469
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
470
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
471
|
-
};
|
|
472
|
-
exports.se_UpdatePhoneNumberCommand = se_UpdatePhoneNumberCommand;
|
|
473
|
-
const se_UpdatePoolCommand = async (input, context) => {
|
|
474
|
-
const headers = sharedHeaders("UpdatePool");
|
|
475
|
-
let body;
|
|
476
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
477
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
478
|
-
};
|
|
479
|
-
exports.se_UpdatePoolCommand = se_UpdatePoolCommand;
|
|
480
|
-
const se_UpdateSenderIdCommand = async (input, context) => {
|
|
481
|
-
const headers = sharedHeaders("UpdateSenderId");
|
|
482
|
-
let body;
|
|
483
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
484
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
485
|
-
};
|
|
486
|
-
exports.se_UpdateSenderIdCommand = se_UpdateSenderIdCommand;
|
|
487
|
-
const se_VerifyDestinationNumberCommand = async (input, context) => {
|
|
488
|
-
const headers = sharedHeaders("VerifyDestinationNumber");
|
|
489
|
-
let body;
|
|
490
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
491
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
492
|
-
};
|
|
493
|
-
exports.se_VerifyDestinationNumberCommand = se_VerifyDestinationNumberCommand;
|
|
494
|
-
const de_AssociateOriginationIdentityCommand = async (output, context) => {
|
|
495
|
-
if (output.statusCode >= 300) {
|
|
496
|
-
return de_AssociateOriginationIdentityCommandError(output, context);
|
|
497
|
-
}
|
|
498
|
-
const data = await parseBody(output.body, context);
|
|
499
|
-
let contents = {};
|
|
500
|
-
contents = (0, smithy_client_1._json)(data);
|
|
501
|
-
const response = {
|
|
502
|
-
$metadata: deserializeMetadata(output),
|
|
503
|
-
...contents,
|
|
504
|
-
};
|
|
505
|
-
return response;
|
|
506
|
-
};
|
|
507
|
-
exports.de_AssociateOriginationIdentityCommand = de_AssociateOriginationIdentityCommand;
|
|
508
|
-
const de_AssociateOriginationIdentityCommandError = async (output, context) => {
|
|
509
|
-
const parsedOutput = {
|
|
510
|
-
...output,
|
|
511
|
-
body: await parseErrorBody(output.body, context),
|
|
512
|
-
};
|
|
513
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
514
|
-
switch (errorCode) {
|
|
515
|
-
case "AccessDeniedException":
|
|
516
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
517
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
518
|
-
case "ConflictException":
|
|
519
|
-
case "com.amazonaws.pinpointsmsvoicev2#ConflictException":
|
|
520
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
521
|
-
case "InternalServerException":
|
|
522
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
523
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
524
|
-
case "ResourceNotFoundException":
|
|
525
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
526
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
527
|
-
case "ServiceQuotaExceededException":
|
|
528
|
-
case "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException":
|
|
529
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
530
|
-
case "ThrottlingException":
|
|
531
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
532
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
533
|
-
case "ValidationException":
|
|
534
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
535
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
536
|
-
default:
|
|
537
|
-
const parsedBody = parsedOutput.body;
|
|
538
|
-
return throwDefaultError({
|
|
539
|
-
output,
|
|
540
|
-
parsedBody,
|
|
541
|
-
errorCode,
|
|
542
|
-
});
|
|
543
|
-
}
|
|
544
|
-
};
|
|
545
|
-
const de_CreateConfigurationSetCommand = async (output, context) => {
|
|
546
|
-
if (output.statusCode >= 300) {
|
|
547
|
-
return de_CreateConfigurationSetCommandError(output, context);
|
|
548
|
-
}
|
|
549
|
-
const data = await parseBody(output.body, context);
|
|
550
|
-
let contents = {};
|
|
551
|
-
contents = de_CreateConfigurationSetResult(data, context);
|
|
552
|
-
const response = {
|
|
553
|
-
$metadata: deserializeMetadata(output),
|
|
554
|
-
...contents,
|
|
555
|
-
};
|
|
556
|
-
return response;
|
|
557
|
-
};
|
|
558
|
-
exports.de_CreateConfigurationSetCommand = de_CreateConfigurationSetCommand;
|
|
559
|
-
const de_CreateConfigurationSetCommandError = async (output, context) => {
|
|
560
|
-
const parsedOutput = {
|
|
561
|
-
...output,
|
|
562
|
-
body: await parseErrorBody(output.body, context),
|
|
563
|
-
};
|
|
564
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
565
|
-
switch (errorCode) {
|
|
566
|
-
case "AccessDeniedException":
|
|
567
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
568
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
569
|
-
case "ConflictException":
|
|
570
|
-
case "com.amazonaws.pinpointsmsvoicev2#ConflictException":
|
|
571
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
572
|
-
case "InternalServerException":
|
|
573
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
574
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
575
|
-
case "ServiceQuotaExceededException":
|
|
576
|
-
case "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException":
|
|
577
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
578
|
-
case "ThrottlingException":
|
|
579
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
580
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
581
|
-
case "ValidationException":
|
|
582
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
583
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
584
|
-
default:
|
|
585
|
-
const parsedBody = parsedOutput.body;
|
|
586
|
-
return throwDefaultError({
|
|
587
|
-
output,
|
|
588
|
-
parsedBody,
|
|
589
|
-
errorCode,
|
|
590
|
-
});
|
|
591
|
-
}
|
|
592
|
-
};
|
|
593
|
-
const de_CreateEventDestinationCommand = async (output, context) => {
|
|
594
|
-
if (output.statusCode >= 300) {
|
|
595
|
-
return de_CreateEventDestinationCommandError(output, context);
|
|
596
|
-
}
|
|
597
|
-
const data = await parseBody(output.body, context);
|
|
598
|
-
let contents = {};
|
|
599
|
-
contents = (0, smithy_client_1._json)(data);
|
|
600
|
-
const response = {
|
|
601
|
-
$metadata: deserializeMetadata(output),
|
|
602
|
-
...contents,
|
|
603
|
-
};
|
|
604
|
-
return response;
|
|
605
|
-
};
|
|
606
|
-
exports.de_CreateEventDestinationCommand = de_CreateEventDestinationCommand;
|
|
607
|
-
const de_CreateEventDestinationCommandError = async (output, context) => {
|
|
608
|
-
const parsedOutput = {
|
|
609
|
-
...output,
|
|
610
|
-
body: await parseErrorBody(output.body, context),
|
|
611
|
-
};
|
|
612
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
613
|
-
switch (errorCode) {
|
|
614
|
-
case "AccessDeniedException":
|
|
615
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
616
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
617
|
-
case "ConflictException":
|
|
618
|
-
case "com.amazonaws.pinpointsmsvoicev2#ConflictException":
|
|
619
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
620
|
-
case "InternalServerException":
|
|
621
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
622
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
623
|
-
case "ResourceNotFoundException":
|
|
624
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
625
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
626
|
-
case "ServiceQuotaExceededException":
|
|
627
|
-
case "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException":
|
|
628
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
629
|
-
case "ThrottlingException":
|
|
630
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
631
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
632
|
-
case "ValidationException":
|
|
633
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
634
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
635
|
-
default:
|
|
636
|
-
const parsedBody = parsedOutput.body;
|
|
637
|
-
return throwDefaultError({
|
|
638
|
-
output,
|
|
639
|
-
parsedBody,
|
|
640
|
-
errorCode,
|
|
641
|
-
});
|
|
642
|
-
}
|
|
643
|
-
};
|
|
644
|
-
const de_CreateOptOutListCommand = async (output, context) => {
|
|
645
|
-
if (output.statusCode >= 300) {
|
|
646
|
-
return de_CreateOptOutListCommandError(output, context);
|
|
647
|
-
}
|
|
648
|
-
const data = await parseBody(output.body, context);
|
|
649
|
-
let contents = {};
|
|
650
|
-
contents = de_CreateOptOutListResult(data, context);
|
|
651
|
-
const response = {
|
|
652
|
-
$metadata: deserializeMetadata(output),
|
|
653
|
-
...contents,
|
|
654
|
-
};
|
|
655
|
-
return response;
|
|
656
|
-
};
|
|
657
|
-
exports.de_CreateOptOutListCommand = de_CreateOptOutListCommand;
|
|
658
|
-
const de_CreateOptOutListCommandError = async (output, context) => {
|
|
659
|
-
const parsedOutput = {
|
|
660
|
-
...output,
|
|
661
|
-
body: await parseErrorBody(output.body, context),
|
|
662
|
-
};
|
|
663
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
664
|
-
switch (errorCode) {
|
|
665
|
-
case "AccessDeniedException":
|
|
666
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
667
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
668
|
-
case "ConflictException":
|
|
669
|
-
case "com.amazonaws.pinpointsmsvoicev2#ConflictException":
|
|
670
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
671
|
-
case "InternalServerException":
|
|
672
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
673
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
674
|
-
case "ServiceQuotaExceededException":
|
|
675
|
-
case "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException":
|
|
676
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
677
|
-
case "ThrottlingException":
|
|
678
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
679
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
680
|
-
case "ValidationException":
|
|
681
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
682
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
683
|
-
default:
|
|
684
|
-
const parsedBody = parsedOutput.body;
|
|
685
|
-
return throwDefaultError({
|
|
686
|
-
output,
|
|
687
|
-
parsedBody,
|
|
688
|
-
errorCode,
|
|
689
|
-
});
|
|
690
|
-
}
|
|
691
|
-
};
|
|
692
|
-
const de_CreatePoolCommand = async (output, context) => {
|
|
693
|
-
if (output.statusCode >= 300) {
|
|
694
|
-
return de_CreatePoolCommandError(output, context);
|
|
695
|
-
}
|
|
696
|
-
const data = await parseBody(output.body, context);
|
|
697
|
-
let contents = {};
|
|
698
|
-
contents = de_CreatePoolResult(data, context);
|
|
699
|
-
const response = {
|
|
700
|
-
$metadata: deserializeMetadata(output),
|
|
701
|
-
...contents,
|
|
702
|
-
};
|
|
703
|
-
return response;
|
|
704
|
-
};
|
|
705
|
-
exports.de_CreatePoolCommand = de_CreatePoolCommand;
|
|
706
|
-
const de_CreatePoolCommandError = async (output, context) => {
|
|
707
|
-
const parsedOutput = {
|
|
708
|
-
...output,
|
|
709
|
-
body: await parseErrorBody(output.body, context),
|
|
710
|
-
};
|
|
711
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
712
|
-
switch (errorCode) {
|
|
713
|
-
case "AccessDeniedException":
|
|
714
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
715
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
716
|
-
case "ConflictException":
|
|
717
|
-
case "com.amazonaws.pinpointsmsvoicev2#ConflictException":
|
|
718
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
719
|
-
case "InternalServerException":
|
|
720
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
721
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
722
|
-
case "ResourceNotFoundException":
|
|
723
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
724
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
725
|
-
case "ServiceQuotaExceededException":
|
|
726
|
-
case "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException":
|
|
727
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
728
|
-
case "ThrottlingException":
|
|
729
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
730
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
731
|
-
case "ValidationException":
|
|
732
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
733
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
734
|
-
default:
|
|
735
|
-
const parsedBody = parsedOutput.body;
|
|
736
|
-
return throwDefaultError({
|
|
737
|
-
output,
|
|
738
|
-
parsedBody,
|
|
739
|
-
errorCode,
|
|
740
|
-
});
|
|
741
|
-
}
|
|
742
|
-
};
|
|
743
|
-
const de_CreateRegistrationCommand = async (output, context) => {
|
|
744
|
-
if (output.statusCode >= 300) {
|
|
745
|
-
return de_CreateRegistrationCommandError(output, context);
|
|
746
|
-
}
|
|
747
|
-
const data = await parseBody(output.body, context);
|
|
748
|
-
let contents = {};
|
|
749
|
-
contents = de_CreateRegistrationResult(data, context);
|
|
750
|
-
const response = {
|
|
751
|
-
$metadata: deserializeMetadata(output),
|
|
752
|
-
...contents,
|
|
753
|
-
};
|
|
754
|
-
return response;
|
|
755
|
-
};
|
|
756
|
-
exports.de_CreateRegistrationCommand = de_CreateRegistrationCommand;
|
|
757
|
-
const de_CreateRegistrationCommandError = async (output, context) => {
|
|
758
|
-
const parsedOutput = {
|
|
759
|
-
...output,
|
|
760
|
-
body: await parseErrorBody(output.body, context),
|
|
761
|
-
};
|
|
762
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
763
|
-
switch (errorCode) {
|
|
764
|
-
case "AccessDeniedException":
|
|
765
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
766
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
767
|
-
case "ConflictException":
|
|
768
|
-
case "com.amazonaws.pinpointsmsvoicev2#ConflictException":
|
|
769
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
770
|
-
case "InternalServerException":
|
|
771
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
772
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
773
|
-
case "ServiceQuotaExceededException":
|
|
774
|
-
case "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException":
|
|
775
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
776
|
-
case "ThrottlingException":
|
|
777
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
778
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
779
|
-
case "ValidationException":
|
|
780
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
781
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
782
|
-
default:
|
|
783
|
-
const parsedBody = parsedOutput.body;
|
|
784
|
-
return throwDefaultError({
|
|
785
|
-
output,
|
|
786
|
-
parsedBody,
|
|
787
|
-
errorCode,
|
|
788
|
-
});
|
|
789
|
-
}
|
|
790
|
-
};
|
|
791
|
-
const de_CreateRegistrationAssociationCommand = async (output, context) => {
|
|
792
|
-
if (output.statusCode >= 300) {
|
|
793
|
-
return de_CreateRegistrationAssociationCommandError(output, context);
|
|
794
|
-
}
|
|
795
|
-
const data = await parseBody(output.body, context);
|
|
796
|
-
let contents = {};
|
|
797
|
-
contents = (0, smithy_client_1._json)(data);
|
|
798
|
-
const response = {
|
|
799
|
-
$metadata: deserializeMetadata(output),
|
|
800
|
-
...contents,
|
|
801
|
-
};
|
|
802
|
-
return response;
|
|
803
|
-
};
|
|
804
|
-
exports.de_CreateRegistrationAssociationCommand = de_CreateRegistrationAssociationCommand;
|
|
805
|
-
const de_CreateRegistrationAssociationCommandError = async (output, context) => {
|
|
806
|
-
const parsedOutput = {
|
|
807
|
-
...output,
|
|
808
|
-
body: await parseErrorBody(output.body, context),
|
|
809
|
-
};
|
|
810
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
811
|
-
switch (errorCode) {
|
|
812
|
-
case "AccessDeniedException":
|
|
813
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
814
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
815
|
-
case "ConflictException":
|
|
816
|
-
case "com.amazonaws.pinpointsmsvoicev2#ConflictException":
|
|
817
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
818
|
-
case "InternalServerException":
|
|
819
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
820
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
821
|
-
case "ResourceNotFoundException":
|
|
822
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
823
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
824
|
-
case "ServiceQuotaExceededException":
|
|
825
|
-
case "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException":
|
|
826
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
827
|
-
case "ThrottlingException":
|
|
828
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
829
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
830
|
-
case "ValidationException":
|
|
831
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
832
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
833
|
-
default:
|
|
834
|
-
const parsedBody = parsedOutput.body;
|
|
835
|
-
return throwDefaultError({
|
|
836
|
-
output,
|
|
837
|
-
parsedBody,
|
|
838
|
-
errorCode,
|
|
839
|
-
});
|
|
840
|
-
}
|
|
841
|
-
};
|
|
842
|
-
const de_CreateRegistrationAttachmentCommand = async (output, context) => {
|
|
843
|
-
if (output.statusCode >= 300) {
|
|
844
|
-
return de_CreateRegistrationAttachmentCommandError(output, context);
|
|
845
|
-
}
|
|
846
|
-
const data = await parseBody(output.body, context);
|
|
847
|
-
let contents = {};
|
|
848
|
-
contents = de_CreateRegistrationAttachmentResult(data, context);
|
|
849
|
-
const response = {
|
|
850
|
-
$metadata: deserializeMetadata(output),
|
|
851
|
-
...contents,
|
|
852
|
-
};
|
|
853
|
-
return response;
|
|
854
|
-
};
|
|
855
|
-
exports.de_CreateRegistrationAttachmentCommand = de_CreateRegistrationAttachmentCommand;
|
|
856
|
-
const de_CreateRegistrationAttachmentCommandError = async (output, context) => {
|
|
857
|
-
const parsedOutput = {
|
|
858
|
-
...output,
|
|
859
|
-
body: await parseErrorBody(output.body, context),
|
|
860
|
-
};
|
|
861
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
862
|
-
switch (errorCode) {
|
|
863
|
-
case "AccessDeniedException":
|
|
864
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
865
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
866
|
-
case "ConflictException":
|
|
867
|
-
case "com.amazonaws.pinpointsmsvoicev2#ConflictException":
|
|
868
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
869
|
-
case "InternalServerException":
|
|
870
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
871
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
872
|
-
case "ServiceQuotaExceededException":
|
|
873
|
-
case "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException":
|
|
874
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
875
|
-
case "ThrottlingException":
|
|
876
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
877
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
878
|
-
case "ValidationException":
|
|
879
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
880
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
881
|
-
default:
|
|
882
|
-
const parsedBody = parsedOutput.body;
|
|
883
|
-
return throwDefaultError({
|
|
884
|
-
output,
|
|
885
|
-
parsedBody,
|
|
886
|
-
errorCode,
|
|
887
|
-
});
|
|
888
|
-
}
|
|
889
|
-
};
|
|
890
|
-
const de_CreateRegistrationVersionCommand = async (output, context) => {
|
|
891
|
-
if (output.statusCode >= 300) {
|
|
892
|
-
return de_CreateRegistrationVersionCommandError(output, context);
|
|
893
|
-
}
|
|
894
|
-
const data = await parseBody(output.body, context);
|
|
895
|
-
let contents = {};
|
|
896
|
-
contents = de_CreateRegistrationVersionResult(data, context);
|
|
897
|
-
const response = {
|
|
898
|
-
$metadata: deserializeMetadata(output),
|
|
899
|
-
...contents,
|
|
900
|
-
};
|
|
901
|
-
return response;
|
|
902
|
-
};
|
|
903
|
-
exports.de_CreateRegistrationVersionCommand = de_CreateRegistrationVersionCommand;
|
|
904
|
-
const de_CreateRegistrationVersionCommandError = async (output, context) => {
|
|
905
|
-
const parsedOutput = {
|
|
906
|
-
...output,
|
|
907
|
-
body: await parseErrorBody(output.body, context),
|
|
908
|
-
};
|
|
909
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
910
|
-
switch (errorCode) {
|
|
911
|
-
case "AccessDeniedException":
|
|
912
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
913
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
914
|
-
case "ConflictException":
|
|
915
|
-
case "com.amazonaws.pinpointsmsvoicev2#ConflictException":
|
|
916
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
917
|
-
case "InternalServerException":
|
|
918
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
919
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
920
|
-
case "ResourceNotFoundException":
|
|
921
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
922
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
923
|
-
case "ServiceQuotaExceededException":
|
|
924
|
-
case "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException":
|
|
925
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
926
|
-
case "ThrottlingException":
|
|
927
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
928
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
929
|
-
case "ValidationException":
|
|
930
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
931
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
932
|
-
default:
|
|
933
|
-
const parsedBody = parsedOutput.body;
|
|
934
|
-
return throwDefaultError({
|
|
935
|
-
output,
|
|
936
|
-
parsedBody,
|
|
937
|
-
errorCode,
|
|
938
|
-
});
|
|
939
|
-
}
|
|
940
|
-
};
|
|
941
|
-
const de_CreateVerifiedDestinationNumberCommand = async (output, context) => {
|
|
942
|
-
if (output.statusCode >= 300) {
|
|
943
|
-
return de_CreateVerifiedDestinationNumberCommandError(output, context);
|
|
944
|
-
}
|
|
945
|
-
const data = await parseBody(output.body, context);
|
|
946
|
-
let contents = {};
|
|
947
|
-
contents = de_CreateVerifiedDestinationNumberResult(data, context);
|
|
948
|
-
const response = {
|
|
949
|
-
$metadata: deserializeMetadata(output),
|
|
950
|
-
...contents,
|
|
951
|
-
};
|
|
952
|
-
return response;
|
|
953
|
-
};
|
|
954
|
-
exports.de_CreateVerifiedDestinationNumberCommand = de_CreateVerifiedDestinationNumberCommand;
|
|
955
|
-
const de_CreateVerifiedDestinationNumberCommandError = async (output, context) => {
|
|
956
|
-
const parsedOutput = {
|
|
957
|
-
...output,
|
|
958
|
-
body: await parseErrorBody(output.body, context),
|
|
959
|
-
};
|
|
960
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
961
|
-
switch (errorCode) {
|
|
962
|
-
case "AccessDeniedException":
|
|
963
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
964
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
965
|
-
case "ConflictException":
|
|
966
|
-
case "com.amazonaws.pinpointsmsvoicev2#ConflictException":
|
|
967
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
968
|
-
case "InternalServerException":
|
|
969
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
970
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
971
|
-
case "ServiceQuotaExceededException":
|
|
972
|
-
case "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException":
|
|
973
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
974
|
-
case "ThrottlingException":
|
|
975
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
976
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
977
|
-
case "ValidationException":
|
|
978
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
979
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
980
|
-
default:
|
|
981
|
-
const parsedBody = parsedOutput.body;
|
|
982
|
-
return throwDefaultError({
|
|
983
|
-
output,
|
|
984
|
-
parsedBody,
|
|
985
|
-
errorCode,
|
|
986
|
-
});
|
|
987
|
-
}
|
|
988
|
-
};
|
|
989
|
-
const de_DeleteConfigurationSetCommand = async (output, context) => {
|
|
990
|
-
if (output.statusCode >= 300) {
|
|
991
|
-
return de_DeleteConfigurationSetCommandError(output, context);
|
|
992
|
-
}
|
|
993
|
-
const data = await parseBody(output.body, context);
|
|
994
|
-
let contents = {};
|
|
995
|
-
contents = de_DeleteConfigurationSetResult(data, context);
|
|
996
|
-
const response = {
|
|
997
|
-
$metadata: deserializeMetadata(output),
|
|
998
|
-
...contents,
|
|
999
|
-
};
|
|
1000
|
-
return response;
|
|
1001
|
-
};
|
|
1002
|
-
exports.de_DeleteConfigurationSetCommand = de_DeleteConfigurationSetCommand;
|
|
1003
|
-
const de_DeleteConfigurationSetCommandError = async (output, context) => {
|
|
1004
|
-
const parsedOutput = {
|
|
1005
|
-
...output,
|
|
1006
|
-
body: await parseErrorBody(output.body, context),
|
|
1007
|
-
};
|
|
1008
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1009
|
-
switch (errorCode) {
|
|
1010
|
-
case "AccessDeniedException":
|
|
1011
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
1012
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1013
|
-
case "InternalServerException":
|
|
1014
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
1015
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1016
|
-
case "ResourceNotFoundException":
|
|
1017
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
1018
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1019
|
-
case "ThrottlingException":
|
|
1020
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
1021
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1022
|
-
case "ValidationException":
|
|
1023
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
1024
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1025
|
-
default:
|
|
1026
|
-
const parsedBody = parsedOutput.body;
|
|
1027
|
-
return throwDefaultError({
|
|
1028
|
-
output,
|
|
1029
|
-
parsedBody,
|
|
1030
|
-
errorCode,
|
|
1031
|
-
});
|
|
1032
|
-
}
|
|
1033
|
-
};
|
|
1034
|
-
const de_DeleteDefaultMessageTypeCommand = async (output, context) => {
|
|
1035
|
-
if (output.statusCode >= 300) {
|
|
1036
|
-
return de_DeleteDefaultMessageTypeCommandError(output, context);
|
|
1037
|
-
}
|
|
1038
|
-
const data = await parseBody(output.body, context);
|
|
1039
|
-
let contents = {};
|
|
1040
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1041
|
-
const response = {
|
|
1042
|
-
$metadata: deserializeMetadata(output),
|
|
1043
|
-
...contents,
|
|
1044
|
-
};
|
|
1045
|
-
return response;
|
|
1046
|
-
};
|
|
1047
|
-
exports.de_DeleteDefaultMessageTypeCommand = de_DeleteDefaultMessageTypeCommand;
|
|
1048
|
-
const de_DeleteDefaultMessageTypeCommandError = async (output, context) => {
|
|
1049
|
-
const parsedOutput = {
|
|
1050
|
-
...output,
|
|
1051
|
-
body: await parseErrorBody(output.body, context),
|
|
1052
|
-
};
|
|
1053
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1054
|
-
switch (errorCode) {
|
|
1055
|
-
case "AccessDeniedException":
|
|
1056
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
1057
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1058
|
-
case "InternalServerException":
|
|
1059
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
1060
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1061
|
-
case "ResourceNotFoundException":
|
|
1062
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
1063
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1064
|
-
case "ThrottlingException":
|
|
1065
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
1066
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1067
|
-
case "ValidationException":
|
|
1068
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
1069
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1070
|
-
default:
|
|
1071
|
-
const parsedBody = parsedOutput.body;
|
|
1072
|
-
return throwDefaultError({
|
|
1073
|
-
output,
|
|
1074
|
-
parsedBody,
|
|
1075
|
-
errorCode,
|
|
1076
|
-
});
|
|
1077
|
-
}
|
|
1078
|
-
};
|
|
1079
|
-
const de_DeleteDefaultSenderIdCommand = async (output, context) => {
|
|
1080
|
-
if (output.statusCode >= 300) {
|
|
1081
|
-
return de_DeleteDefaultSenderIdCommandError(output, context);
|
|
1082
|
-
}
|
|
1083
|
-
const data = await parseBody(output.body, context);
|
|
1084
|
-
let contents = {};
|
|
1085
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1086
|
-
const response = {
|
|
1087
|
-
$metadata: deserializeMetadata(output),
|
|
1088
|
-
...contents,
|
|
1089
|
-
};
|
|
1090
|
-
return response;
|
|
1091
|
-
};
|
|
1092
|
-
exports.de_DeleteDefaultSenderIdCommand = de_DeleteDefaultSenderIdCommand;
|
|
1093
|
-
const de_DeleteDefaultSenderIdCommandError = async (output, context) => {
|
|
1094
|
-
const parsedOutput = {
|
|
1095
|
-
...output,
|
|
1096
|
-
body: await parseErrorBody(output.body, context),
|
|
1097
|
-
};
|
|
1098
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1099
|
-
switch (errorCode) {
|
|
1100
|
-
case "AccessDeniedException":
|
|
1101
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
1102
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1103
|
-
case "InternalServerException":
|
|
1104
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
1105
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1106
|
-
case "ResourceNotFoundException":
|
|
1107
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
1108
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1109
|
-
case "ThrottlingException":
|
|
1110
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
1111
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1112
|
-
case "ValidationException":
|
|
1113
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
1114
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1115
|
-
default:
|
|
1116
|
-
const parsedBody = parsedOutput.body;
|
|
1117
|
-
return throwDefaultError({
|
|
1118
|
-
output,
|
|
1119
|
-
parsedBody,
|
|
1120
|
-
errorCode,
|
|
1121
|
-
});
|
|
1122
|
-
}
|
|
1123
|
-
};
|
|
1124
|
-
const de_DeleteEventDestinationCommand = async (output, context) => {
|
|
1125
|
-
if (output.statusCode >= 300) {
|
|
1126
|
-
return de_DeleteEventDestinationCommandError(output, context);
|
|
1127
|
-
}
|
|
1128
|
-
const data = await parseBody(output.body, context);
|
|
1129
|
-
let contents = {};
|
|
1130
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1131
|
-
const response = {
|
|
1132
|
-
$metadata: deserializeMetadata(output),
|
|
1133
|
-
...contents,
|
|
1134
|
-
};
|
|
1135
|
-
return response;
|
|
1136
|
-
};
|
|
1137
|
-
exports.de_DeleteEventDestinationCommand = de_DeleteEventDestinationCommand;
|
|
1138
|
-
const de_DeleteEventDestinationCommandError = async (output, context) => {
|
|
1139
|
-
const parsedOutput = {
|
|
1140
|
-
...output,
|
|
1141
|
-
body: await parseErrorBody(output.body, context),
|
|
1142
|
-
};
|
|
1143
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1144
|
-
switch (errorCode) {
|
|
1145
|
-
case "AccessDeniedException":
|
|
1146
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
1147
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1148
|
-
case "InternalServerException":
|
|
1149
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
1150
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1151
|
-
case "ResourceNotFoundException":
|
|
1152
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
1153
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1154
|
-
case "ThrottlingException":
|
|
1155
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
1156
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1157
|
-
case "ValidationException":
|
|
1158
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
1159
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1160
|
-
default:
|
|
1161
|
-
const parsedBody = parsedOutput.body;
|
|
1162
|
-
return throwDefaultError({
|
|
1163
|
-
output,
|
|
1164
|
-
parsedBody,
|
|
1165
|
-
errorCode,
|
|
1166
|
-
});
|
|
1167
|
-
}
|
|
1168
|
-
};
|
|
1169
|
-
const de_DeleteKeywordCommand = async (output, context) => {
|
|
1170
|
-
if (output.statusCode >= 300) {
|
|
1171
|
-
return de_DeleteKeywordCommandError(output, context);
|
|
1172
|
-
}
|
|
1173
|
-
const data = await parseBody(output.body, context);
|
|
1174
|
-
let contents = {};
|
|
1175
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1176
|
-
const response = {
|
|
1177
|
-
$metadata: deserializeMetadata(output),
|
|
1178
|
-
...contents,
|
|
1179
|
-
};
|
|
1180
|
-
return response;
|
|
1181
|
-
};
|
|
1182
|
-
exports.de_DeleteKeywordCommand = de_DeleteKeywordCommand;
|
|
1183
|
-
const de_DeleteKeywordCommandError = async (output, context) => {
|
|
1184
|
-
const parsedOutput = {
|
|
1185
|
-
...output,
|
|
1186
|
-
body: await parseErrorBody(output.body, context),
|
|
1187
|
-
};
|
|
1188
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1189
|
-
switch (errorCode) {
|
|
1190
|
-
case "AccessDeniedException":
|
|
1191
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
1192
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1193
|
-
case "ConflictException":
|
|
1194
|
-
case "com.amazonaws.pinpointsmsvoicev2#ConflictException":
|
|
1195
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1196
|
-
case "InternalServerException":
|
|
1197
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
1198
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1199
|
-
case "ResourceNotFoundException":
|
|
1200
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
1201
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1202
|
-
case "ThrottlingException":
|
|
1203
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
1204
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1205
|
-
case "ValidationException":
|
|
1206
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
1207
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1208
|
-
default:
|
|
1209
|
-
const parsedBody = parsedOutput.body;
|
|
1210
|
-
return throwDefaultError({
|
|
1211
|
-
output,
|
|
1212
|
-
parsedBody,
|
|
1213
|
-
errorCode,
|
|
1214
|
-
});
|
|
1215
|
-
}
|
|
1216
|
-
};
|
|
1217
|
-
const de_DeleteOptedOutNumberCommand = async (output, context) => {
|
|
1218
|
-
if (output.statusCode >= 300) {
|
|
1219
|
-
return de_DeleteOptedOutNumberCommandError(output, context);
|
|
1220
|
-
}
|
|
1221
|
-
const data = await parseBody(output.body, context);
|
|
1222
|
-
let contents = {};
|
|
1223
|
-
contents = de_DeleteOptedOutNumberResult(data, context);
|
|
1224
|
-
const response = {
|
|
1225
|
-
$metadata: deserializeMetadata(output),
|
|
1226
|
-
...contents,
|
|
1227
|
-
};
|
|
1228
|
-
return response;
|
|
1229
|
-
};
|
|
1230
|
-
exports.de_DeleteOptedOutNumberCommand = de_DeleteOptedOutNumberCommand;
|
|
1231
|
-
const de_DeleteOptedOutNumberCommandError = async (output, context) => {
|
|
1232
|
-
const parsedOutput = {
|
|
1233
|
-
...output,
|
|
1234
|
-
body: await parseErrorBody(output.body, context),
|
|
1235
|
-
};
|
|
1236
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1237
|
-
switch (errorCode) {
|
|
1238
|
-
case "AccessDeniedException":
|
|
1239
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
1240
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1241
|
-
case "ConflictException":
|
|
1242
|
-
case "com.amazonaws.pinpointsmsvoicev2#ConflictException":
|
|
1243
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1244
|
-
case "InternalServerException":
|
|
1245
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
1246
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1247
|
-
case "ResourceNotFoundException":
|
|
1248
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
1249
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1250
|
-
case "ThrottlingException":
|
|
1251
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
1252
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1253
|
-
case "ValidationException":
|
|
1254
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
1255
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1256
|
-
default:
|
|
1257
|
-
const parsedBody = parsedOutput.body;
|
|
1258
|
-
return throwDefaultError({
|
|
1259
|
-
output,
|
|
1260
|
-
parsedBody,
|
|
1261
|
-
errorCode,
|
|
1262
|
-
});
|
|
1263
|
-
}
|
|
1264
|
-
};
|
|
1265
|
-
const de_DeleteOptOutListCommand = async (output, context) => {
|
|
1266
|
-
if (output.statusCode >= 300) {
|
|
1267
|
-
return de_DeleteOptOutListCommandError(output, context);
|
|
1268
|
-
}
|
|
1269
|
-
const data = await parseBody(output.body, context);
|
|
1270
|
-
let contents = {};
|
|
1271
|
-
contents = de_DeleteOptOutListResult(data, context);
|
|
1272
|
-
const response = {
|
|
1273
|
-
$metadata: deserializeMetadata(output),
|
|
1274
|
-
...contents,
|
|
1275
|
-
};
|
|
1276
|
-
return response;
|
|
1277
|
-
};
|
|
1278
|
-
exports.de_DeleteOptOutListCommand = de_DeleteOptOutListCommand;
|
|
1279
|
-
const de_DeleteOptOutListCommandError = async (output, context) => {
|
|
1280
|
-
const parsedOutput = {
|
|
1281
|
-
...output,
|
|
1282
|
-
body: await parseErrorBody(output.body, context),
|
|
1283
|
-
};
|
|
1284
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1285
|
-
switch (errorCode) {
|
|
1286
|
-
case "AccessDeniedException":
|
|
1287
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
1288
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1289
|
-
case "ConflictException":
|
|
1290
|
-
case "com.amazonaws.pinpointsmsvoicev2#ConflictException":
|
|
1291
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1292
|
-
case "InternalServerException":
|
|
1293
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
1294
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1295
|
-
case "ResourceNotFoundException":
|
|
1296
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
1297
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1298
|
-
case "ThrottlingException":
|
|
1299
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
1300
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1301
|
-
case "ValidationException":
|
|
1302
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
1303
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1304
|
-
default:
|
|
1305
|
-
const parsedBody = parsedOutput.body;
|
|
1306
|
-
return throwDefaultError({
|
|
1307
|
-
output,
|
|
1308
|
-
parsedBody,
|
|
1309
|
-
errorCode,
|
|
1310
|
-
});
|
|
1311
|
-
}
|
|
1312
|
-
};
|
|
1313
|
-
const de_DeletePoolCommand = async (output, context) => {
|
|
1314
|
-
if (output.statusCode >= 300) {
|
|
1315
|
-
return de_DeletePoolCommandError(output, context);
|
|
1316
|
-
}
|
|
1317
|
-
const data = await parseBody(output.body, context);
|
|
1318
|
-
let contents = {};
|
|
1319
|
-
contents = de_DeletePoolResult(data, context);
|
|
1320
|
-
const response = {
|
|
1321
|
-
$metadata: deserializeMetadata(output),
|
|
1322
|
-
...contents,
|
|
1323
|
-
};
|
|
1324
|
-
return response;
|
|
1325
|
-
};
|
|
1326
|
-
exports.de_DeletePoolCommand = de_DeletePoolCommand;
|
|
1327
|
-
const de_DeletePoolCommandError = async (output, context) => {
|
|
1328
|
-
const parsedOutput = {
|
|
1329
|
-
...output,
|
|
1330
|
-
body: await parseErrorBody(output.body, context),
|
|
1331
|
-
};
|
|
1332
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1333
|
-
switch (errorCode) {
|
|
1334
|
-
case "AccessDeniedException":
|
|
1335
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
1336
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1337
|
-
case "ConflictException":
|
|
1338
|
-
case "com.amazonaws.pinpointsmsvoicev2#ConflictException":
|
|
1339
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1340
|
-
case "InternalServerException":
|
|
1341
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
1342
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1343
|
-
case "ResourceNotFoundException":
|
|
1344
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
1345
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1346
|
-
case "ThrottlingException":
|
|
1347
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
1348
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1349
|
-
case "ValidationException":
|
|
1350
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
1351
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1352
|
-
default:
|
|
1353
|
-
const parsedBody = parsedOutput.body;
|
|
1354
|
-
return throwDefaultError({
|
|
1355
|
-
output,
|
|
1356
|
-
parsedBody,
|
|
1357
|
-
errorCode,
|
|
1358
|
-
});
|
|
1359
|
-
}
|
|
1360
|
-
};
|
|
1361
|
-
const de_DeleteRegistrationCommand = async (output, context) => {
|
|
1362
|
-
if (output.statusCode >= 300) {
|
|
1363
|
-
return de_DeleteRegistrationCommandError(output, context);
|
|
1364
|
-
}
|
|
1365
|
-
const data = await parseBody(output.body, context);
|
|
1366
|
-
let contents = {};
|
|
1367
|
-
contents = de_DeleteRegistrationResult(data, context);
|
|
1368
|
-
const response = {
|
|
1369
|
-
$metadata: deserializeMetadata(output),
|
|
1370
|
-
...contents,
|
|
1371
|
-
};
|
|
1372
|
-
return response;
|
|
1373
|
-
};
|
|
1374
|
-
exports.de_DeleteRegistrationCommand = de_DeleteRegistrationCommand;
|
|
1375
|
-
const de_DeleteRegistrationCommandError = async (output, context) => {
|
|
1376
|
-
const parsedOutput = {
|
|
1377
|
-
...output,
|
|
1378
|
-
body: await parseErrorBody(output.body, context),
|
|
1379
|
-
};
|
|
1380
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1381
|
-
switch (errorCode) {
|
|
1382
|
-
case "AccessDeniedException":
|
|
1383
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
1384
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1385
|
-
case "ConflictException":
|
|
1386
|
-
case "com.amazonaws.pinpointsmsvoicev2#ConflictException":
|
|
1387
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1388
|
-
case "InternalServerException":
|
|
1389
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
1390
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1391
|
-
case "ResourceNotFoundException":
|
|
1392
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
1393
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1394
|
-
case "ThrottlingException":
|
|
1395
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
1396
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1397
|
-
case "ValidationException":
|
|
1398
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
1399
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1400
|
-
default:
|
|
1401
|
-
const parsedBody = parsedOutput.body;
|
|
1402
|
-
return throwDefaultError({
|
|
1403
|
-
output,
|
|
1404
|
-
parsedBody,
|
|
1405
|
-
errorCode,
|
|
1406
|
-
});
|
|
1407
|
-
}
|
|
1408
|
-
};
|
|
1409
|
-
const de_DeleteRegistrationAttachmentCommand = async (output, context) => {
|
|
1410
|
-
if (output.statusCode >= 300) {
|
|
1411
|
-
return de_DeleteRegistrationAttachmentCommandError(output, context);
|
|
1412
|
-
}
|
|
1413
|
-
const data = await parseBody(output.body, context);
|
|
1414
|
-
let contents = {};
|
|
1415
|
-
contents = de_DeleteRegistrationAttachmentResult(data, context);
|
|
1416
|
-
const response = {
|
|
1417
|
-
$metadata: deserializeMetadata(output),
|
|
1418
|
-
...contents,
|
|
1419
|
-
};
|
|
1420
|
-
return response;
|
|
1421
|
-
};
|
|
1422
|
-
exports.de_DeleteRegistrationAttachmentCommand = de_DeleteRegistrationAttachmentCommand;
|
|
1423
|
-
const de_DeleteRegistrationAttachmentCommandError = async (output, context) => {
|
|
1424
|
-
const parsedOutput = {
|
|
1425
|
-
...output,
|
|
1426
|
-
body: await parseErrorBody(output.body, context),
|
|
1427
|
-
};
|
|
1428
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1429
|
-
switch (errorCode) {
|
|
1430
|
-
case "AccessDeniedException":
|
|
1431
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
1432
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1433
|
-
case "ConflictException":
|
|
1434
|
-
case "com.amazonaws.pinpointsmsvoicev2#ConflictException":
|
|
1435
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1436
|
-
case "InternalServerException":
|
|
1437
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
1438
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1439
|
-
case "ResourceNotFoundException":
|
|
1440
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
1441
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1442
|
-
case "ThrottlingException":
|
|
1443
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
1444
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1445
|
-
case "ValidationException":
|
|
1446
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
1447
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1448
|
-
default:
|
|
1449
|
-
const parsedBody = parsedOutput.body;
|
|
1450
|
-
return throwDefaultError({
|
|
1451
|
-
output,
|
|
1452
|
-
parsedBody,
|
|
1453
|
-
errorCode,
|
|
1454
|
-
});
|
|
1455
|
-
}
|
|
1456
|
-
};
|
|
1457
|
-
const de_DeleteRegistrationFieldValueCommand = async (output, context) => {
|
|
1458
|
-
if (output.statusCode >= 300) {
|
|
1459
|
-
return de_DeleteRegistrationFieldValueCommandError(output, context);
|
|
1460
|
-
}
|
|
1461
|
-
const data = await parseBody(output.body, context);
|
|
1462
|
-
let contents = {};
|
|
1463
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1464
|
-
const response = {
|
|
1465
|
-
$metadata: deserializeMetadata(output),
|
|
1466
|
-
...contents,
|
|
1467
|
-
};
|
|
1468
|
-
return response;
|
|
1469
|
-
};
|
|
1470
|
-
exports.de_DeleteRegistrationFieldValueCommand = de_DeleteRegistrationFieldValueCommand;
|
|
1471
|
-
const de_DeleteRegistrationFieldValueCommandError = async (output, context) => {
|
|
1472
|
-
const parsedOutput = {
|
|
1473
|
-
...output,
|
|
1474
|
-
body: await parseErrorBody(output.body, context),
|
|
1475
|
-
};
|
|
1476
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1477
|
-
switch (errorCode) {
|
|
1478
|
-
case "AccessDeniedException":
|
|
1479
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
1480
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1481
|
-
case "ConflictException":
|
|
1482
|
-
case "com.amazonaws.pinpointsmsvoicev2#ConflictException":
|
|
1483
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1484
|
-
case "InternalServerException":
|
|
1485
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
1486
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1487
|
-
case "ResourceNotFoundException":
|
|
1488
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
1489
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1490
|
-
case "ThrottlingException":
|
|
1491
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
1492
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1493
|
-
case "ValidationException":
|
|
1494
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
1495
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1496
|
-
default:
|
|
1497
|
-
const parsedBody = parsedOutput.body;
|
|
1498
|
-
return throwDefaultError({
|
|
1499
|
-
output,
|
|
1500
|
-
parsedBody,
|
|
1501
|
-
errorCode,
|
|
1502
|
-
});
|
|
1503
|
-
}
|
|
1504
|
-
};
|
|
1505
|
-
const de_DeleteTextMessageSpendLimitOverrideCommand = async (output, context) => {
|
|
1506
|
-
if (output.statusCode >= 300) {
|
|
1507
|
-
return de_DeleteTextMessageSpendLimitOverrideCommandError(output, context);
|
|
1508
|
-
}
|
|
1509
|
-
const data = await parseBody(output.body, context);
|
|
1510
|
-
let contents = {};
|
|
1511
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1512
|
-
const response = {
|
|
1513
|
-
$metadata: deserializeMetadata(output),
|
|
1514
|
-
...contents,
|
|
1515
|
-
};
|
|
1516
|
-
return response;
|
|
1517
|
-
};
|
|
1518
|
-
exports.de_DeleteTextMessageSpendLimitOverrideCommand = de_DeleteTextMessageSpendLimitOverrideCommand;
|
|
1519
|
-
const de_DeleteTextMessageSpendLimitOverrideCommandError = async (output, context) => {
|
|
1520
|
-
const parsedOutput = {
|
|
1521
|
-
...output,
|
|
1522
|
-
body: await parseErrorBody(output.body, context),
|
|
1523
|
-
};
|
|
1524
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1525
|
-
switch (errorCode) {
|
|
1526
|
-
case "AccessDeniedException":
|
|
1527
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
1528
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1529
|
-
case "InternalServerException":
|
|
1530
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
1531
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1532
|
-
case "ThrottlingException":
|
|
1533
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
1534
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1535
|
-
case "ValidationException":
|
|
1536
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
1537
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1538
|
-
default:
|
|
1539
|
-
const parsedBody = parsedOutput.body;
|
|
1540
|
-
return throwDefaultError({
|
|
1541
|
-
output,
|
|
1542
|
-
parsedBody,
|
|
1543
|
-
errorCode,
|
|
1544
|
-
});
|
|
1545
|
-
}
|
|
1546
|
-
};
|
|
1547
|
-
const de_DeleteVerifiedDestinationNumberCommand = async (output, context) => {
|
|
1548
|
-
if (output.statusCode >= 300) {
|
|
1549
|
-
return de_DeleteVerifiedDestinationNumberCommandError(output, context);
|
|
1550
|
-
}
|
|
1551
|
-
const data = await parseBody(output.body, context);
|
|
1552
|
-
let contents = {};
|
|
1553
|
-
contents = de_DeleteVerifiedDestinationNumberResult(data, context);
|
|
1554
|
-
const response = {
|
|
1555
|
-
$metadata: deserializeMetadata(output),
|
|
1556
|
-
...contents,
|
|
1557
|
-
};
|
|
1558
|
-
return response;
|
|
1559
|
-
};
|
|
1560
|
-
exports.de_DeleteVerifiedDestinationNumberCommand = de_DeleteVerifiedDestinationNumberCommand;
|
|
1561
|
-
const de_DeleteVerifiedDestinationNumberCommandError = async (output, context) => {
|
|
1562
|
-
const parsedOutput = {
|
|
1563
|
-
...output,
|
|
1564
|
-
body: await parseErrorBody(output.body, context),
|
|
1565
|
-
};
|
|
1566
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1567
|
-
switch (errorCode) {
|
|
1568
|
-
case "AccessDeniedException":
|
|
1569
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
1570
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1571
|
-
case "ConflictException":
|
|
1572
|
-
case "com.amazonaws.pinpointsmsvoicev2#ConflictException":
|
|
1573
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1574
|
-
case "InternalServerException":
|
|
1575
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
1576
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1577
|
-
case "ResourceNotFoundException":
|
|
1578
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
1579
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1580
|
-
case "ThrottlingException":
|
|
1581
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
1582
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1583
|
-
case "ValidationException":
|
|
1584
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
1585
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1586
|
-
default:
|
|
1587
|
-
const parsedBody = parsedOutput.body;
|
|
1588
|
-
return throwDefaultError({
|
|
1589
|
-
output,
|
|
1590
|
-
parsedBody,
|
|
1591
|
-
errorCode,
|
|
1592
|
-
});
|
|
1593
|
-
}
|
|
1594
|
-
};
|
|
1595
|
-
const de_DeleteVoiceMessageSpendLimitOverrideCommand = async (output, context) => {
|
|
1596
|
-
if (output.statusCode >= 300) {
|
|
1597
|
-
return de_DeleteVoiceMessageSpendLimitOverrideCommandError(output, context);
|
|
1598
|
-
}
|
|
1599
|
-
const data = await parseBody(output.body, context);
|
|
1600
|
-
let contents = {};
|
|
1601
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1602
|
-
const response = {
|
|
1603
|
-
$metadata: deserializeMetadata(output),
|
|
1604
|
-
...contents,
|
|
1605
|
-
};
|
|
1606
|
-
return response;
|
|
1607
|
-
};
|
|
1608
|
-
exports.de_DeleteVoiceMessageSpendLimitOverrideCommand = de_DeleteVoiceMessageSpendLimitOverrideCommand;
|
|
1609
|
-
const de_DeleteVoiceMessageSpendLimitOverrideCommandError = async (output, context) => {
|
|
1610
|
-
const parsedOutput = {
|
|
1611
|
-
...output,
|
|
1612
|
-
body: await parseErrorBody(output.body, context),
|
|
1613
|
-
};
|
|
1614
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1615
|
-
switch (errorCode) {
|
|
1616
|
-
case "AccessDeniedException":
|
|
1617
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
1618
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1619
|
-
case "InternalServerException":
|
|
1620
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
1621
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1622
|
-
case "ThrottlingException":
|
|
1623
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
1624
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1625
|
-
case "ValidationException":
|
|
1626
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
1627
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1628
|
-
default:
|
|
1629
|
-
const parsedBody = parsedOutput.body;
|
|
1630
|
-
return throwDefaultError({
|
|
1631
|
-
output,
|
|
1632
|
-
parsedBody,
|
|
1633
|
-
errorCode,
|
|
1634
|
-
});
|
|
1635
|
-
}
|
|
1636
|
-
};
|
|
1637
|
-
const de_DescribeAccountAttributesCommand = async (output, context) => {
|
|
1638
|
-
if (output.statusCode >= 300) {
|
|
1639
|
-
return de_DescribeAccountAttributesCommandError(output, context);
|
|
1640
|
-
}
|
|
1641
|
-
const data = await parseBody(output.body, context);
|
|
1642
|
-
let contents = {};
|
|
1643
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1644
|
-
const response = {
|
|
1645
|
-
$metadata: deserializeMetadata(output),
|
|
1646
|
-
...contents,
|
|
1647
|
-
};
|
|
1648
|
-
return response;
|
|
1649
|
-
};
|
|
1650
|
-
exports.de_DescribeAccountAttributesCommand = de_DescribeAccountAttributesCommand;
|
|
1651
|
-
const de_DescribeAccountAttributesCommandError = async (output, context) => {
|
|
1652
|
-
const parsedOutput = {
|
|
1653
|
-
...output,
|
|
1654
|
-
body: await parseErrorBody(output.body, context),
|
|
1655
|
-
};
|
|
1656
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1657
|
-
switch (errorCode) {
|
|
1658
|
-
case "AccessDeniedException":
|
|
1659
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
1660
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1661
|
-
case "InternalServerException":
|
|
1662
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
1663
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1664
|
-
case "ThrottlingException":
|
|
1665
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
1666
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1667
|
-
case "ValidationException":
|
|
1668
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
1669
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1670
|
-
default:
|
|
1671
|
-
const parsedBody = parsedOutput.body;
|
|
1672
|
-
return throwDefaultError({
|
|
1673
|
-
output,
|
|
1674
|
-
parsedBody,
|
|
1675
|
-
errorCode,
|
|
1676
|
-
});
|
|
1677
|
-
}
|
|
1678
|
-
};
|
|
1679
|
-
const de_DescribeAccountLimitsCommand = async (output, context) => {
|
|
1680
|
-
if (output.statusCode >= 300) {
|
|
1681
|
-
return de_DescribeAccountLimitsCommandError(output, context);
|
|
1682
|
-
}
|
|
1683
|
-
const data = await parseBody(output.body, context);
|
|
1684
|
-
let contents = {};
|
|
1685
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1686
|
-
const response = {
|
|
1687
|
-
$metadata: deserializeMetadata(output),
|
|
1688
|
-
...contents,
|
|
1689
|
-
};
|
|
1690
|
-
return response;
|
|
1691
|
-
};
|
|
1692
|
-
exports.de_DescribeAccountLimitsCommand = de_DescribeAccountLimitsCommand;
|
|
1693
|
-
const de_DescribeAccountLimitsCommandError = async (output, context) => {
|
|
1694
|
-
const parsedOutput = {
|
|
1695
|
-
...output,
|
|
1696
|
-
body: await parseErrorBody(output.body, context),
|
|
1697
|
-
};
|
|
1698
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1699
|
-
switch (errorCode) {
|
|
1700
|
-
case "AccessDeniedException":
|
|
1701
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
1702
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1703
|
-
case "InternalServerException":
|
|
1704
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
1705
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1706
|
-
case "ThrottlingException":
|
|
1707
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
1708
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1709
|
-
case "ValidationException":
|
|
1710
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
1711
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1712
|
-
default:
|
|
1713
|
-
const parsedBody = parsedOutput.body;
|
|
1714
|
-
return throwDefaultError({
|
|
1715
|
-
output,
|
|
1716
|
-
parsedBody,
|
|
1717
|
-
errorCode,
|
|
1718
|
-
});
|
|
1719
|
-
}
|
|
1720
|
-
};
|
|
1721
|
-
const de_DescribeConfigurationSetsCommand = async (output, context) => {
|
|
1722
|
-
if (output.statusCode >= 300) {
|
|
1723
|
-
return de_DescribeConfigurationSetsCommandError(output, context);
|
|
1724
|
-
}
|
|
1725
|
-
const data = await parseBody(output.body, context);
|
|
1726
|
-
let contents = {};
|
|
1727
|
-
contents = de_DescribeConfigurationSetsResult(data, context);
|
|
1728
|
-
const response = {
|
|
1729
|
-
$metadata: deserializeMetadata(output),
|
|
1730
|
-
...contents,
|
|
1731
|
-
};
|
|
1732
|
-
return response;
|
|
1733
|
-
};
|
|
1734
|
-
exports.de_DescribeConfigurationSetsCommand = de_DescribeConfigurationSetsCommand;
|
|
1735
|
-
const de_DescribeConfigurationSetsCommandError = async (output, context) => {
|
|
1736
|
-
const parsedOutput = {
|
|
1737
|
-
...output,
|
|
1738
|
-
body: await parseErrorBody(output.body, context),
|
|
1739
|
-
};
|
|
1740
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1741
|
-
switch (errorCode) {
|
|
1742
|
-
case "AccessDeniedException":
|
|
1743
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
1744
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1745
|
-
case "InternalServerException":
|
|
1746
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
1747
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1748
|
-
case "ResourceNotFoundException":
|
|
1749
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
1750
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1751
|
-
case "ThrottlingException":
|
|
1752
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
1753
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1754
|
-
case "ValidationException":
|
|
1755
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
1756
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1757
|
-
default:
|
|
1758
|
-
const parsedBody = parsedOutput.body;
|
|
1759
|
-
return throwDefaultError({
|
|
1760
|
-
output,
|
|
1761
|
-
parsedBody,
|
|
1762
|
-
errorCode,
|
|
1763
|
-
});
|
|
1764
|
-
}
|
|
1765
|
-
};
|
|
1766
|
-
const de_DescribeKeywordsCommand = async (output, context) => {
|
|
1767
|
-
if (output.statusCode >= 300) {
|
|
1768
|
-
return de_DescribeKeywordsCommandError(output, context);
|
|
1769
|
-
}
|
|
1770
|
-
const data = await parseBody(output.body, context);
|
|
1771
|
-
let contents = {};
|
|
1772
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1773
|
-
const response = {
|
|
1774
|
-
$metadata: deserializeMetadata(output),
|
|
1775
|
-
...contents,
|
|
1776
|
-
};
|
|
1777
|
-
return response;
|
|
1778
|
-
};
|
|
1779
|
-
exports.de_DescribeKeywordsCommand = de_DescribeKeywordsCommand;
|
|
1780
|
-
const de_DescribeKeywordsCommandError = async (output, context) => {
|
|
1781
|
-
const parsedOutput = {
|
|
1782
|
-
...output,
|
|
1783
|
-
body: await parseErrorBody(output.body, context),
|
|
1784
|
-
};
|
|
1785
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1786
|
-
switch (errorCode) {
|
|
1787
|
-
case "AccessDeniedException":
|
|
1788
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
1789
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1790
|
-
case "InternalServerException":
|
|
1791
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
1792
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1793
|
-
case "ResourceNotFoundException":
|
|
1794
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
1795
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1796
|
-
case "ThrottlingException":
|
|
1797
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
1798
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1799
|
-
case "ValidationException":
|
|
1800
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
1801
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1802
|
-
default:
|
|
1803
|
-
const parsedBody = parsedOutput.body;
|
|
1804
|
-
return throwDefaultError({
|
|
1805
|
-
output,
|
|
1806
|
-
parsedBody,
|
|
1807
|
-
errorCode,
|
|
1808
|
-
});
|
|
1809
|
-
}
|
|
1810
|
-
};
|
|
1811
|
-
const de_DescribeOptedOutNumbersCommand = async (output, context) => {
|
|
1812
|
-
if (output.statusCode >= 300) {
|
|
1813
|
-
return de_DescribeOptedOutNumbersCommandError(output, context);
|
|
1814
|
-
}
|
|
1815
|
-
const data = await parseBody(output.body, context);
|
|
1816
|
-
let contents = {};
|
|
1817
|
-
contents = de_DescribeOptedOutNumbersResult(data, context);
|
|
1818
|
-
const response = {
|
|
1819
|
-
$metadata: deserializeMetadata(output),
|
|
1820
|
-
...contents,
|
|
1821
|
-
};
|
|
1822
|
-
return response;
|
|
1823
|
-
};
|
|
1824
|
-
exports.de_DescribeOptedOutNumbersCommand = de_DescribeOptedOutNumbersCommand;
|
|
1825
|
-
const de_DescribeOptedOutNumbersCommandError = async (output, context) => {
|
|
1826
|
-
const parsedOutput = {
|
|
1827
|
-
...output,
|
|
1828
|
-
body: await parseErrorBody(output.body, context),
|
|
1829
|
-
};
|
|
1830
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1831
|
-
switch (errorCode) {
|
|
1832
|
-
case "AccessDeniedException":
|
|
1833
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
1834
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1835
|
-
case "InternalServerException":
|
|
1836
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
1837
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1838
|
-
case "ResourceNotFoundException":
|
|
1839
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
1840
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1841
|
-
case "ThrottlingException":
|
|
1842
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
1843
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1844
|
-
case "ValidationException":
|
|
1845
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
1846
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1847
|
-
default:
|
|
1848
|
-
const parsedBody = parsedOutput.body;
|
|
1849
|
-
return throwDefaultError({
|
|
1850
|
-
output,
|
|
1851
|
-
parsedBody,
|
|
1852
|
-
errorCode,
|
|
1853
|
-
});
|
|
1854
|
-
}
|
|
1855
|
-
};
|
|
1856
|
-
const de_DescribeOptOutListsCommand = async (output, context) => {
|
|
1857
|
-
if (output.statusCode >= 300) {
|
|
1858
|
-
return de_DescribeOptOutListsCommandError(output, context);
|
|
1859
|
-
}
|
|
1860
|
-
const data = await parseBody(output.body, context);
|
|
1861
|
-
let contents = {};
|
|
1862
|
-
contents = de_DescribeOptOutListsResult(data, context);
|
|
1863
|
-
const response = {
|
|
1864
|
-
$metadata: deserializeMetadata(output),
|
|
1865
|
-
...contents,
|
|
1866
|
-
};
|
|
1867
|
-
return response;
|
|
1868
|
-
};
|
|
1869
|
-
exports.de_DescribeOptOutListsCommand = de_DescribeOptOutListsCommand;
|
|
1870
|
-
const de_DescribeOptOutListsCommandError = async (output, context) => {
|
|
1871
|
-
const parsedOutput = {
|
|
1872
|
-
...output,
|
|
1873
|
-
body: await parseErrorBody(output.body, context),
|
|
1874
|
-
};
|
|
1875
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1876
|
-
switch (errorCode) {
|
|
1877
|
-
case "AccessDeniedException":
|
|
1878
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
1879
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1880
|
-
case "InternalServerException":
|
|
1881
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
1882
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1883
|
-
case "ResourceNotFoundException":
|
|
1884
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
1885
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1886
|
-
case "ThrottlingException":
|
|
1887
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
1888
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1889
|
-
case "ValidationException":
|
|
1890
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
1891
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1892
|
-
default:
|
|
1893
|
-
const parsedBody = parsedOutput.body;
|
|
1894
|
-
return throwDefaultError({
|
|
1895
|
-
output,
|
|
1896
|
-
parsedBody,
|
|
1897
|
-
errorCode,
|
|
1898
|
-
});
|
|
1899
|
-
}
|
|
1900
|
-
};
|
|
1901
|
-
const de_DescribePhoneNumbersCommand = async (output, context) => {
|
|
1902
|
-
if (output.statusCode >= 300) {
|
|
1903
|
-
return de_DescribePhoneNumbersCommandError(output, context);
|
|
1904
|
-
}
|
|
1905
|
-
const data = await parseBody(output.body, context);
|
|
1906
|
-
let contents = {};
|
|
1907
|
-
contents = de_DescribePhoneNumbersResult(data, context);
|
|
1908
|
-
const response = {
|
|
1909
|
-
$metadata: deserializeMetadata(output),
|
|
1910
|
-
...contents,
|
|
1911
|
-
};
|
|
1912
|
-
return response;
|
|
1913
|
-
};
|
|
1914
|
-
exports.de_DescribePhoneNumbersCommand = de_DescribePhoneNumbersCommand;
|
|
1915
|
-
const de_DescribePhoneNumbersCommandError = async (output, context) => {
|
|
1916
|
-
const parsedOutput = {
|
|
1917
|
-
...output,
|
|
1918
|
-
body: await parseErrorBody(output.body, context),
|
|
1919
|
-
};
|
|
1920
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1921
|
-
switch (errorCode) {
|
|
1922
|
-
case "AccessDeniedException":
|
|
1923
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
1924
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1925
|
-
case "InternalServerException":
|
|
1926
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
1927
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1928
|
-
case "ResourceNotFoundException":
|
|
1929
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
1930
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1931
|
-
case "ThrottlingException":
|
|
1932
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
1933
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1934
|
-
case "ValidationException":
|
|
1935
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
1936
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1937
|
-
default:
|
|
1938
|
-
const parsedBody = parsedOutput.body;
|
|
1939
|
-
return throwDefaultError({
|
|
1940
|
-
output,
|
|
1941
|
-
parsedBody,
|
|
1942
|
-
errorCode,
|
|
1943
|
-
});
|
|
1944
|
-
}
|
|
1945
|
-
};
|
|
1946
|
-
const de_DescribePoolsCommand = async (output, context) => {
|
|
1947
|
-
if (output.statusCode >= 300) {
|
|
1948
|
-
return de_DescribePoolsCommandError(output, context);
|
|
1949
|
-
}
|
|
1950
|
-
const data = await parseBody(output.body, context);
|
|
1951
|
-
let contents = {};
|
|
1952
|
-
contents = de_DescribePoolsResult(data, context);
|
|
1953
|
-
const response = {
|
|
1954
|
-
$metadata: deserializeMetadata(output),
|
|
1955
|
-
...contents,
|
|
1956
|
-
};
|
|
1957
|
-
return response;
|
|
1958
|
-
};
|
|
1959
|
-
exports.de_DescribePoolsCommand = de_DescribePoolsCommand;
|
|
1960
|
-
const de_DescribePoolsCommandError = async (output, context) => {
|
|
1961
|
-
const parsedOutput = {
|
|
1962
|
-
...output,
|
|
1963
|
-
body: await parseErrorBody(output.body, context),
|
|
1964
|
-
};
|
|
1965
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1966
|
-
switch (errorCode) {
|
|
1967
|
-
case "AccessDeniedException":
|
|
1968
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
1969
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1970
|
-
case "InternalServerException":
|
|
1971
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
1972
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1973
|
-
case "ResourceNotFoundException":
|
|
1974
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
1975
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1976
|
-
case "ThrottlingException":
|
|
1977
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
1978
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1979
|
-
case "ValidationException":
|
|
1980
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
1981
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1982
|
-
default:
|
|
1983
|
-
const parsedBody = parsedOutput.body;
|
|
1984
|
-
return throwDefaultError({
|
|
1985
|
-
output,
|
|
1986
|
-
parsedBody,
|
|
1987
|
-
errorCode,
|
|
1988
|
-
});
|
|
1989
|
-
}
|
|
1990
|
-
};
|
|
1991
|
-
const de_DescribeRegistrationAttachmentsCommand = async (output, context) => {
|
|
1992
|
-
if (output.statusCode >= 300) {
|
|
1993
|
-
return de_DescribeRegistrationAttachmentsCommandError(output, context);
|
|
1994
|
-
}
|
|
1995
|
-
const data = await parseBody(output.body, context);
|
|
1996
|
-
let contents = {};
|
|
1997
|
-
contents = de_DescribeRegistrationAttachmentsResult(data, context);
|
|
1998
|
-
const response = {
|
|
1999
|
-
$metadata: deserializeMetadata(output),
|
|
2000
|
-
...contents,
|
|
2001
|
-
};
|
|
2002
|
-
return response;
|
|
2003
|
-
};
|
|
2004
|
-
exports.de_DescribeRegistrationAttachmentsCommand = de_DescribeRegistrationAttachmentsCommand;
|
|
2005
|
-
const de_DescribeRegistrationAttachmentsCommandError = async (output, context) => {
|
|
2006
|
-
const parsedOutput = {
|
|
2007
|
-
...output,
|
|
2008
|
-
body: await parseErrorBody(output.body, context),
|
|
2009
|
-
};
|
|
2010
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2011
|
-
switch (errorCode) {
|
|
2012
|
-
case "AccessDeniedException":
|
|
2013
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
2014
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2015
|
-
case "InternalServerException":
|
|
2016
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
2017
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2018
|
-
case "ResourceNotFoundException":
|
|
2019
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
2020
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2021
|
-
case "ThrottlingException":
|
|
2022
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
2023
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2024
|
-
case "ValidationException":
|
|
2025
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
2026
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2027
|
-
default:
|
|
2028
|
-
const parsedBody = parsedOutput.body;
|
|
2029
|
-
return throwDefaultError({
|
|
2030
|
-
output,
|
|
2031
|
-
parsedBody,
|
|
2032
|
-
errorCode,
|
|
2033
|
-
});
|
|
2034
|
-
}
|
|
2035
|
-
};
|
|
2036
|
-
const de_DescribeRegistrationFieldDefinitionsCommand = async (output, context) => {
|
|
2037
|
-
if (output.statusCode >= 300) {
|
|
2038
|
-
return de_DescribeRegistrationFieldDefinitionsCommandError(output, context);
|
|
2039
|
-
}
|
|
2040
|
-
const data = await parseBody(output.body, context);
|
|
2041
|
-
let contents = {};
|
|
2042
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2043
|
-
const response = {
|
|
2044
|
-
$metadata: deserializeMetadata(output),
|
|
2045
|
-
...contents,
|
|
2046
|
-
};
|
|
2047
|
-
return response;
|
|
2048
|
-
};
|
|
2049
|
-
exports.de_DescribeRegistrationFieldDefinitionsCommand = de_DescribeRegistrationFieldDefinitionsCommand;
|
|
2050
|
-
const de_DescribeRegistrationFieldDefinitionsCommandError = async (output, context) => {
|
|
2051
|
-
const parsedOutput = {
|
|
2052
|
-
...output,
|
|
2053
|
-
body: await parseErrorBody(output.body, context),
|
|
2054
|
-
};
|
|
2055
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2056
|
-
switch (errorCode) {
|
|
2057
|
-
case "AccessDeniedException":
|
|
2058
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
2059
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2060
|
-
case "InternalServerException":
|
|
2061
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
2062
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2063
|
-
case "ThrottlingException":
|
|
2064
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
2065
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2066
|
-
case "ValidationException":
|
|
2067
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
2068
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2069
|
-
default:
|
|
2070
|
-
const parsedBody = parsedOutput.body;
|
|
2071
|
-
return throwDefaultError({
|
|
2072
|
-
output,
|
|
2073
|
-
parsedBody,
|
|
2074
|
-
errorCode,
|
|
2075
|
-
});
|
|
2076
|
-
}
|
|
2077
|
-
};
|
|
2078
|
-
const de_DescribeRegistrationFieldValuesCommand = async (output, context) => {
|
|
2079
|
-
if (output.statusCode >= 300) {
|
|
2080
|
-
return de_DescribeRegistrationFieldValuesCommandError(output, context);
|
|
2081
|
-
}
|
|
2082
|
-
const data = await parseBody(output.body, context);
|
|
2083
|
-
let contents = {};
|
|
2084
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2085
|
-
const response = {
|
|
2086
|
-
$metadata: deserializeMetadata(output),
|
|
2087
|
-
...contents,
|
|
2088
|
-
};
|
|
2089
|
-
return response;
|
|
2090
|
-
};
|
|
2091
|
-
exports.de_DescribeRegistrationFieldValuesCommand = de_DescribeRegistrationFieldValuesCommand;
|
|
2092
|
-
const de_DescribeRegistrationFieldValuesCommandError = async (output, context) => {
|
|
2093
|
-
const parsedOutput = {
|
|
2094
|
-
...output,
|
|
2095
|
-
body: await parseErrorBody(output.body, context),
|
|
2096
|
-
};
|
|
2097
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2098
|
-
switch (errorCode) {
|
|
2099
|
-
case "AccessDeniedException":
|
|
2100
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
2101
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2102
|
-
case "InternalServerException":
|
|
2103
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
2104
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2105
|
-
case "ResourceNotFoundException":
|
|
2106
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
2107
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2108
|
-
case "ThrottlingException":
|
|
2109
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
2110
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2111
|
-
case "ValidationException":
|
|
2112
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
2113
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2114
|
-
default:
|
|
2115
|
-
const parsedBody = parsedOutput.body;
|
|
2116
|
-
return throwDefaultError({
|
|
2117
|
-
output,
|
|
2118
|
-
parsedBody,
|
|
2119
|
-
errorCode,
|
|
2120
|
-
});
|
|
2121
|
-
}
|
|
2122
|
-
};
|
|
2123
|
-
const de_DescribeRegistrationsCommand = async (output, context) => {
|
|
2124
|
-
if (output.statusCode >= 300) {
|
|
2125
|
-
return de_DescribeRegistrationsCommandError(output, context);
|
|
2126
|
-
}
|
|
2127
|
-
const data = await parseBody(output.body, context);
|
|
2128
|
-
let contents = {};
|
|
2129
|
-
contents = de_DescribeRegistrationsResult(data, context);
|
|
2130
|
-
const response = {
|
|
2131
|
-
$metadata: deserializeMetadata(output),
|
|
2132
|
-
...contents,
|
|
2133
|
-
};
|
|
2134
|
-
return response;
|
|
2135
|
-
};
|
|
2136
|
-
exports.de_DescribeRegistrationsCommand = de_DescribeRegistrationsCommand;
|
|
2137
|
-
const de_DescribeRegistrationsCommandError = async (output, context) => {
|
|
2138
|
-
const parsedOutput = {
|
|
2139
|
-
...output,
|
|
2140
|
-
body: await parseErrorBody(output.body, context),
|
|
2141
|
-
};
|
|
2142
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2143
|
-
switch (errorCode) {
|
|
2144
|
-
case "AccessDeniedException":
|
|
2145
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
2146
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2147
|
-
case "InternalServerException":
|
|
2148
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
2149
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2150
|
-
case "ResourceNotFoundException":
|
|
2151
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
2152
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2153
|
-
case "ThrottlingException":
|
|
2154
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
2155
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2156
|
-
case "ValidationException":
|
|
2157
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
2158
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2159
|
-
default:
|
|
2160
|
-
const parsedBody = parsedOutput.body;
|
|
2161
|
-
return throwDefaultError({
|
|
2162
|
-
output,
|
|
2163
|
-
parsedBody,
|
|
2164
|
-
errorCode,
|
|
2165
|
-
});
|
|
2166
|
-
}
|
|
2167
|
-
};
|
|
2168
|
-
const de_DescribeRegistrationSectionDefinitionsCommand = async (output, context) => {
|
|
2169
|
-
if (output.statusCode >= 300) {
|
|
2170
|
-
return de_DescribeRegistrationSectionDefinitionsCommandError(output, context);
|
|
2171
|
-
}
|
|
2172
|
-
const data = await parseBody(output.body, context);
|
|
2173
|
-
let contents = {};
|
|
2174
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2175
|
-
const response = {
|
|
2176
|
-
$metadata: deserializeMetadata(output),
|
|
2177
|
-
...contents,
|
|
2178
|
-
};
|
|
2179
|
-
return response;
|
|
2180
|
-
};
|
|
2181
|
-
exports.de_DescribeRegistrationSectionDefinitionsCommand = de_DescribeRegistrationSectionDefinitionsCommand;
|
|
2182
|
-
const de_DescribeRegistrationSectionDefinitionsCommandError = async (output, context) => {
|
|
2183
|
-
const parsedOutput = {
|
|
2184
|
-
...output,
|
|
2185
|
-
body: await parseErrorBody(output.body, context),
|
|
2186
|
-
};
|
|
2187
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2188
|
-
switch (errorCode) {
|
|
2189
|
-
case "AccessDeniedException":
|
|
2190
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
2191
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2192
|
-
case "InternalServerException":
|
|
2193
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
2194
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2195
|
-
case "ThrottlingException":
|
|
2196
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
2197
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2198
|
-
case "ValidationException":
|
|
2199
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
2200
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2201
|
-
default:
|
|
2202
|
-
const parsedBody = parsedOutput.body;
|
|
2203
|
-
return throwDefaultError({
|
|
2204
|
-
output,
|
|
2205
|
-
parsedBody,
|
|
2206
|
-
errorCode,
|
|
2207
|
-
});
|
|
2208
|
-
}
|
|
2209
|
-
};
|
|
2210
|
-
const de_DescribeRegistrationTypeDefinitionsCommand = async (output, context) => {
|
|
2211
|
-
if (output.statusCode >= 300) {
|
|
2212
|
-
return de_DescribeRegistrationTypeDefinitionsCommandError(output, context);
|
|
2213
|
-
}
|
|
2214
|
-
const data = await parseBody(output.body, context);
|
|
2215
|
-
let contents = {};
|
|
2216
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2217
|
-
const response = {
|
|
2218
|
-
$metadata: deserializeMetadata(output),
|
|
2219
|
-
...contents,
|
|
2220
|
-
};
|
|
2221
|
-
return response;
|
|
2222
|
-
};
|
|
2223
|
-
exports.de_DescribeRegistrationTypeDefinitionsCommand = de_DescribeRegistrationTypeDefinitionsCommand;
|
|
2224
|
-
const de_DescribeRegistrationTypeDefinitionsCommandError = async (output, context) => {
|
|
2225
|
-
const parsedOutput = {
|
|
2226
|
-
...output,
|
|
2227
|
-
body: await parseErrorBody(output.body, context),
|
|
2228
|
-
};
|
|
2229
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2230
|
-
switch (errorCode) {
|
|
2231
|
-
case "AccessDeniedException":
|
|
2232
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
2233
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2234
|
-
case "InternalServerException":
|
|
2235
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
2236
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2237
|
-
case "ThrottlingException":
|
|
2238
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
2239
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2240
|
-
case "ValidationException":
|
|
2241
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
2242
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2243
|
-
default:
|
|
2244
|
-
const parsedBody = parsedOutput.body;
|
|
2245
|
-
return throwDefaultError({
|
|
2246
|
-
output,
|
|
2247
|
-
parsedBody,
|
|
2248
|
-
errorCode,
|
|
2249
|
-
});
|
|
2250
|
-
}
|
|
2251
|
-
};
|
|
2252
|
-
const de_DescribeRegistrationVersionsCommand = async (output, context) => {
|
|
2253
|
-
if (output.statusCode >= 300) {
|
|
2254
|
-
return de_DescribeRegistrationVersionsCommandError(output, context);
|
|
2255
|
-
}
|
|
2256
|
-
const data = await parseBody(output.body, context);
|
|
2257
|
-
let contents = {};
|
|
2258
|
-
contents = de_DescribeRegistrationVersionsResult(data, context);
|
|
2259
|
-
const response = {
|
|
2260
|
-
$metadata: deserializeMetadata(output),
|
|
2261
|
-
...contents,
|
|
2262
|
-
};
|
|
2263
|
-
return response;
|
|
2264
|
-
};
|
|
2265
|
-
exports.de_DescribeRegistrationVersionsCommand = de_DescribeRegistrationVersionsCommand;
|
|
2266
|
-
const de_DescribeRegistrationVersionsCommandError = async (output, context) => {
|
|
2267
|
-
const parsedOutput = {
|
|
2268
|
-
...output,
|
|
2269
|
-
body: await parseErrorBody(output.body, context),
|
|
2270
|
-
};
|
|
2271
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2272
|
-
switch (errorCode) {
|
|
2273
|
-
case "AccessDeniedException":
|
|
2274
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
2275
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2276
|
-
case "InternalServerException":
|
|
2277
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
2278
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2279
|
-
case "ResourceNotFoundException":
|
|
2280
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
2281
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2282
|
-
case "ThrottlingException":
|
|
2283
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
2284
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2285
|
-
case "ValidationException":
|
|
2286
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
2287
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2288
|
-
default:
|
|
2289
|
-
const parsedBody = parsedOutput.body;
|
|
2290
|
-
return throwDefaultError({
|
|
2291
|
-
output,
|
|
2292
|
-
parsedBody,
|
|
2293
|
-
errorCode,
|
|
2294
|
-
});
|
|
2295
|
-
}
|
|
2296
|
-
};
|
|
2297
|
-
const de_DescribeSenderIdsCommand = async (output, context) => {
|
|
2298
|
-
if (output.statusCode >= 300) {
|
|
2299
|
-
return de_DescribeSenderIdsCommandError(output, context);
|
|
2300
|
-
}
|
|
2301
|
-
const data = await parseBody(output.body, context);
|
|
2302
|
-
let contents = {};
|
|
2303
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2304
|
-
const response = {
|
|
2305
|
-
$metadata: deserializeMetadata(output),
|
|
2306
|
-
...contents,
|
|
2307
|
-
};
|
|
2308
|
-
return response;
|
|
2309
|
-
};
|
|
2310
|
-
exports.de_DescribeSenderIdsCommand = de_DescribeSenderIdsCommand;
|
|
2311
|
-
const de_DescribeSenderIdsCommandError = async (output, context) => {
|
|
2312
|
-
const parsedOutput = {
|
|
2313
|
-
...output,
|
|
2314
|
-
body: await parseErrorBody(output.body, context),
|
|
2315
|
-
};
|
|
2316
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2317
|
-
switch (errorCode) {
|
|
2318
|
-
case "AccessDeniedException":
|
|
2319
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
2320
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2321
|
-
case "InternalServerException":
|
|
2322
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
2323
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2324
|
-
case "ResourceNotFoundException":
|
|
2325
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
2326
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2327
|
-
case "ThrottlingException":
|
|
2328
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
2329
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2330
|
-
case "ValidationException":
|
|
2331
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
2332
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2333
|
-
default:
|
|
2334
|
-
const parsedBody = parsedOutput.body;
|
|
2335
|
-
return throwDefaultError({
|
|
2336
|
-
output,
|
|
2337
|
-
parsedBody,
|
|
2338
|
-
errorCode,
|
|
2339
|
-
});
|
|
2340
|
-
}
|
|
2341
|
-
};
|
|
2342
|
-
const de_DescribeSpendLimitsCommand = async (output, context) => {
|
|
2343
|
-
if (output.statusCode >= 300) {
|
|
2344
|
-
return de_DescribeSpendLimitsCommandError(output, context);
|
|
2345
|
-
}
|
|
2346
|
-
const data = await parseBody(output.body, context);
|
|
2347
|
-
let contents = {};
|
|
2348
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2349
|
-
const response = {
|
|
2350
|
-
$metadata: deserializeMetadata(output),
|
|
2351
|
-
...contents,
|
|
2352
|
-
};
|
|
2353
|
-
return response;
|
|
2354
|
-
};
|
|
2355
|
-
exports.de_DescribeSpendLimitsCommand = de_DescribeSpendLimitsCommand;
|
|
2356
|
-
const de_DescribeSpendLimitsCommandError = async (output, context) => {
|
|
2357
|
-
const parsedOutput = {
|
|
2358
|
-
...output,
|
|
2359
|
-
body: await parseErrorBody(output.body, context),
|
|
2360
|
-
};
|
|
2361
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2362
|
-
switch (errorCode) {
|
|
2363
|
-
case "AccessDeniedException":
|
|
2364
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
2365
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2366
|
-
case "InternalServerException":
|
|
2367
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
2368
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2369
|
-
case "ThrottlingException":
|
|
2370
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
2371
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2372
|
-
case "ValidationException":
|
|
2373
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
2374
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2375
|
-
default:
|
|
2376
|
-
const parsedBody = parsedOutput.body;
|
|
2377
|
-
return throwDefaultError({
|
|
2378
|
-
output,
|
|
2379
|
-
parsedBody,
|
|
2380
|
-
errorCode,
|
|
2381
|
-
});
|
|
2382
|
-
}
|
|
2383
|
-
};
|
|
2384
|
-
const de_DescribeVerifiedDestinationNumbersCommand = async (output, context) => {
|
|
2385
|
-
if (output.statusCode >= 300) {
|
|
2386
|
-
return de_DescribeVerifiedDestinationNumbersCommandError(output, context);
|
|
2387
|
-
}
|
|
2388
|
-
const data = await parseBody(output.body, context);
|
|
2389
|
-
let contents = {};
|
|
2390
|
-
contents = de_DescribeVerifiedDestinationNumbersResult(data, context);
|
|
2391
|
-
const response = {
|
|
2392
|
-
$metadata: deserializeMetadata(output),
|
|
2393
|
-
...contents,
|
|
2394
|
-
};
|
|
2395
|
-
return response;
|
|
2396
|
-
};
|
|
2397
|
-
exports.de_DescribeVerifiedDestinationNumbersCommand = de_DescribeVerifiedDestinationNumbersCommand;
|
|
2398
|
-
const de_DescribeVerifiedDestinationNumbersCommandError = async (output, context) => {
|
|
2399
|
-
const parsedOutput = {
|
|
2400
|
-
...output,
|
|
2401
|
-
body: await parseErrorBody(output.body, context),
|
|
2402
|
-
};
|
|
2403
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2404
|
-
switch (errorCode) {
|
|
2405
|
-
case "AccessDeniedException":
|
|
2406
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
2407
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2408
|
-
case "InternalServerException":
|
|
2409
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
2410
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2411
|
-
case "ResourceNotFoundException":
|
|
2412
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
2413
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2414
|
-
case "ThrottlingException":
|
|
2415
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
2416
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2417
|
-
case "ValidationException":
|
|
2418
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
2419
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2420
|
-
default:
|
|
2421
|
-
const parsedBody = parsedOutput.body;
|
|
2422
|
-
return throwDefaultError({
|
|
2423
|
-
output,
|
|
2424
|
-
parsedBody,
|
|
2425
|
-
errorCode,
|
|
2426
|
-
});
|
|
2427
|
-
}
|
|
2428
|
-
};
|
|
2429
|
-
const de_DisassociateOriginationIdentityCommand = async (output, context) => {
|
|
2430
|
-
if (output.statusCode >= 300) {
|
|
2431
|
-
return de_DisassociateOriginationIdentityCommandError(output, context);
|
|
2432
|
-
}
|
|
2433
|
-
const data = await parseBody(output.body, context);
|
|
2434
|
-
let contents = {};
|
|
2435
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2436
|
-
const response = {
|
|
2437
|
-
$metadata: deserializeMetadata(output),
|
|
2438
|
-
...contents,
|
|
2439
|
-
};
|
|
2440
|
-
return response;
|
|
2441
|
-
};
|
|
2442
|
-
exports.de_DisassociateOriginationIdentityCommand = de_DisassociateOriginationIdentityCommand;
|
|
2443
|
-
const de_DisassociateOriginationIdentityCommandError = async (output, context) => {
|
|
2444
|
-
const parsedOutput = {
|
|
2445
|
-
...output,
|
|
2446
|
-
body: await parseErrorBody(output.body, context),
|
|
2447
|
-
};
|
|
2448
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2449
|
-
switch (errorCode) {
|
|
2450
|
-
case "AccessDeniedException":
|
|
2451
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
2452
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2453
|
-
case "ConflictException":
|
|
2454
|
-
case "com.amazonaws.pinpointsmsvoicev2#ConflictException":
|
|
2455
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2456
|
-
case "InternalServerException":
|
|
2457
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
2458
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2459
|
-
case "ResourceNotFoundException":
|
|
2460
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
2461
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2462
|
-
case "ThrottlingException":
|
|
2463
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
2464
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2465
|
-
case "ValidationException":
|
|
2466
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
2467
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2468
|
-
default:
|
|
2469
|
-
const parsedBody = parsedOutput.body;
|
|
2470
|
-
return throwDefaultError({
|
|
2471
|
-
output,
|
|
2472
|
-
parsedBody,
|
|
2473
|
-
errorCode,
|
|
2474
|
-
});
|
|
2475
|
-
}
|
|
2476
|
-
};
|
|
2477
|
-
const de_DiscardRegistrationVersionCommand = async (output, context) => {
|
|
2478
|
-
if (output.statusCode >= 300) {
|
|
2479
|
-
return de_DiscardRegistrationVersionCommandError(output, context);
|
|
2480
|
-
}
|
|
2481
|
-
const data = await parseBody(output.body, context);
|
|
2482
|
-
let contents = {};
|
|
2483
|
-
contents = de_DiscardRegistrationVersionResult(data, context);
|
|
2484
|
-
const response = {
|
|
2485
|
-
$metadata: deserializeMetadata(output),
|
|
2486
|
-
...contents,
|
|
2487
|
-
};
|
|
2488
|
-
return response;
|
|
2489
|
-
};
|
|
2490
|
-
exports.de_DiscardRegistrationVersionCommand = de_DiscardRegistrationVersionCommand;
|
|
2491
|
-
const de_DiscardRegistrationVersionCommandError = async (output, context) => {
|
|
2492
|
-
const parsedOutput = {
|
|
2493
|
-
...output,
|
|
2494
|
-
body: await parseErrorBody(output.body, context),
|
|
2495
|
-
};
|
|
2496
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2497
|
-
switch (errorCode) {
|
|
2498
|
-
case "AccessDeniedException":
|
|
2499
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
2500
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2501
|
-
case "ConflictException":
|
|
2502
|
-
case "com.amazonaws.pinpointsmsvoicev2#ConflictException":
|
|
2503
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2504
|
-
case "InternalServerException":
|
|
2505
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
2506
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2507
|
-
case "ResourceNotFoundException":
|
|
2508
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
2509
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2510
|
-
case "ThrottlingException":
|
|
2511
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
2512
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2513
|
-
case "ValidationException":
|
|
2514
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
2515
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2516
|
-
default:
|
|
2517
|
-
const parsedBody = parsedOutput.body;
|
|
2518
|
-
return throwDefaultError({
|
|
2519
|
-
output,
|
|
2520
|
-
parsedBody,
|
|
2521
|
-
errorCode,
|
|
2522
|
-
});
|
|
2523
|
-
}
|
|
2524
|
-
};
|
|
2525
|
-
const de_ListPoolOriginationIdentitiesCommand = async (output, context) => {
|
|
2526
|
-
if (output.statusCode >= 300) {
|
|
2527
|
-
return de_ListPoolOriginationIdentitiesCommandError(output, context);
|
|
2528
|
-
}
|
|
2529
|
-
const data = await parseBody(output.body, context);
|
|
2530
|
-
let contents = {};
|
|
2531
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2532
|
-
const response = {
|
|
2533
|
-
$metadata: deserializeMetadata(output),
|
|
2534
|
-
...contents,
|
|
2535
|
-
};
|
|
2536
|
-
return response;
|
|
2537
|
-
};
|
|
2538
|
-
exports.de_ListPoolOriginationIdentitiesCommand = de_ListPoolOriginationIdentitiesCommand;
|
|
2539
|
-
const de_ListPoolOriginationIdentitiesCommandError = async (output, context) => {
|
|
2540
|
-
const parsedOutput = {
|
|
2541
|
-
...output,
|
|
2542
|
-
body: await parseErrorBody(output.body, context),
|
|
2543
|
-
};
|
|
2544
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2545
|
-
switch (errorCode) {
|
|
2546
|
-
case "AccessDeniedException":
|
|
2547
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
2548
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2549
|
-
case "InternalServerException":
|
|
2550
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
2551
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2552
|
-
case "ResourceNotFoundException":
|
|
2553
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
2554
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2555
|
-
case "ThrottlingException":
|
|
2556
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
2557
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2558
|
-
case "ValidationException":
|
|
2559
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
2560
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2561
|
-
default:
|
|
2562
|
-
const parsedBody = parsedOutput.body;
|
|
2563
|
-
return throwDefaultError({
|
|
2564
|
-
output,
|
|
2565
|
-
parsedBody,
|
|
2566
|
-
errorCode,
|
|
2567
|
-
});
|
|
2568
|
-
}
|
|
2569
|
-
};
|
|
2570
|
-
const de_ListRegistrationAssociationsCommand = async (output, context) => {
|
|
2571
|
-
if (output.statusCode >= 300) {
|
|
2572
|
-
return de_ListRegistrationAssociationsCommandError(output, context);
|
|
2573
|
-
}
|
|
2574
|
-
const data = await parseBody(output.body, context);
|
|
2575
|
-
let contents = {};
|
|
2576
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2577
|
-
const response = {
|
|
2578
|
-
$metadata: deserializeMetadata(output),
|
|
2579
|
-
...contents,
|
|
2580
|
-
};
|
|
2581
|
-
return response;
|
|
2582
|
-
};
|
|
2583
|
-
exports.de_ListRegistrationAssociationsCommand = de_ListRegistrationAssociationsCommand;
|
|
2584
|
-
const de_ListRegistrationAssociationsCommandError = async (output, context) => {
|
|
2585
|
-
const parsedOutput = {
|
|
2586
|
-
...output,
|
|
2587
|
-
body: await parseErrorBody(output.body, context),
|
|
2588
|
-
};
|
|
2589
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2590
|
-
switch (errorCode) {
|
|
2591
|
-
case "AccessDeniedException":
|
|
2592
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
2593
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2594
|
-
case "InternalServerException":
|
|
2595
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
2596
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2597
|
-
case "ResourceNotFoundException":
|
|
2598
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
2599
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2600
|
-
case "ThrottlingException":
|
|
2601
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
2602
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2603
|
-
case "ValidationException":
|
|
2604
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
2605
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2606
|
-
default:
|
|
2607
|
-
const parsedBody = parsedOutput.body;
|
|
2608
|
-
return throwDefaultError({
|
|
2609
|
-
output,
|
|
2610
|
-
parsedBody,
|
|
2611
|
-
errorCode,
|
|
2612
|
-
});
|
|
2613
|
-
}
|
|
2614
|
-
};
|
|
2615
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2616
|
-
if (output.statusCode >= 300) {
|
|
2617
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
2618
|
-
}
|
|
2619
|
-
const data = await parseBody(output.body, context);
|
|
2620
|
-
let contents = {};
|
|
2621
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2622
|
-
const response = {
|
|
2623
|
-
$metadata: deserializeMetadata(output),
|
|
2624
|
-
...contents,
|
|
2625
|
-
};
|
|
2626
|
-
return response;
|
|
2627
|
-
};
|
|
2628
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
2629
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2630
|
-
const parsedOutput = {
|
|
2631
|
-
...output,
|
|
2632
|
-
body: await parseErrorBody(output.body, context),
|
|
2633
|
-
};
|
|
2634
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2635
|
-
switch (errorCode) {
|
|
2636
|
-
case "AccessDeniedException":
|
|
2637
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
2638
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2639
|
-
case "InternalServerException":
|
|
2640
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
2641
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2642
|
-
case "ResourceNotFoundException":
|
|
2643
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
2644
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2645
|
-
case "ThrottlingException":
|
|
2646
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
2647
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2648
|
-
case "ValidationException":
|
|
2649
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
2650
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2651
|
-
default:
|
|
2652
|
-
const parsedBody = parsedOutput.body;
|
|
2653
|
-
return throwDefaultError({
|
|
2654
|
-
output,
|
|
2655
|
-
parsedBody,
|
|
2656
|
-
errorCode,
|
|
2657
|
-
});
|
|
2658
|
-
}
|
|
2659
|
-
};
|
|
2660
|
-
const de_PutKeywordCommand = async (output, context) => {
|
|
2661
|
-
if (output.statusCode >= 300) {
|
|
2662
|
-
return de_PutKeywordCommandError(output, context);
|
|
2663
|
-
}
|
|
2664
|
-
const data = await parseBody(output.body, context);
|
|
2665
|
-
let contents = {};
|
|
2666
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2667
|
-
const response = {
|
|
2668
|
-
$metadata: deserializeMetadata(output),
|
|
2669
|
-
...contents,
|
|
2670
|
-
};
|
|
2671
|
-
return response;
|
|
2672
|
-
};
|
|
2673
|
-
exports.de_PutKeywordCommand = de_PutKeywordCommand;
|
|
2674
|
-
const de_PutKeywordCommandError = async (output, context) => {
|
|
2675
|
-
const parsedOutput = {
|
|
2676
|
-
...output,
|
|
2677
|
-
body: await parseErrorBody(output.body, context),
|
|
2678
|
-
};
|
|
2679
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2680
|
-
switch (errorCode) {
|
|
2681
|
-
case "AccessDeniedException":
|
|
2682
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
2683
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2684
|
-
case "ConflictException":
|
|
2685
|
-
case "com.amazonaws.pinpointsmsvoicev2#ConflictException":
|
|
2686
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2687
|
-
case "InternalServerException":
|
|
2688
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
2689
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2690
|
-
case "ResourceNotFoundException":
|
|
2691
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
2692
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2693
|
-
case "ServiceQuotaExceededException":
|
|
2694
|
-
case "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException":
|
|
2695
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2696
|
-
case "ThrottlingException":
|
|
2697
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
2698
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2699
|
-
case "ValidationException":
|
|
2700
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
2701
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2702
|
-
default:
|
|
2703
|
-
const parsedBody = parsedOutput.body;
|
|
2704
|
-
return throwDefaultError({
|
|
2705
|
-
output,
|
|
2706
|
-
parsedBody,
|
|
2707
|
-
errorCode,
|
|
2708
|
-
});
|
|
2709
|
-
}
|
|
2710
|
-
};
|
|
2711
|
-
const de_PutOptedOutNumberCommand = async (output, context) => {
|
|
2712
|
-
if (output.statusCode >= 300) {
|
|
2713
|
-
return de_PutOptedOutNumberCommandError(output, context);
|
|
2714
|
-
}
|
|
2715
|
-
const data = await parseBody(output.body, context);
|
|
2716
|
-
let contents = {};
|
|
2717
|
-
contents = de_PutOptedOutNumberResult(data, context);
|
|
2718
|
-
const response = {
|
|
2719
|
-
$metadata: deserializeMetadata(output),
|
|
2720
|
-
...contents,
|
|
2721
|
-
};
|
|
2722
|
-
return response;
|
|
2723
|
-
};
|
|
2724
|
-
exports.de_PutOptedOutNumberCommand = de_PutOptedOutNumberCommand;
|
|
2725
|
-
const de_PutOptedOutNumberCommandError = async (output, context) => {
|
|
2726
|
-
const parsedOutput = {
|
|
2727
|
-
...output,
|
|
2728
|
-
body: await parseErrorBody(output.body, context),
|
|
2729
|
-
};
|
|
2730
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2731
|
-
switch (errorCode) {
|
|
2732
|
-
case "AccessDeniedException":
|
|
2733
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
2734
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2735
|
-
case "InternalServerException":
|
|
2736
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
2737
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2738
|
-
case "ResourceNotFoundException":
|
|
2739
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
2740
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2741
|
-
case "ThrottlingException":
|
|
2742
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
2743
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2744
|
-
case "ValidationException":
|
|
2745
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
2746
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2747
|
-
default:
|
|
2748
|
-
const parsedBody = parsedOutput.body;
|
|
2749
|
-
return throwDefaultError({
|
|
2750
|
-
output,
|
|
2751
|
-
parsedBody,
|
|
2752
|
-
errorCode,
|
|
2753
|
-
});
|
|
2754
|
-
}
|
|
2755
|
-
};
|
|
2756
|
-
const de_PutRegistrationFieldValueCommand = async (output, context) => {
|
|
2757
|
-
if (output.statusCode >= 300) {
|
|
2758
|
-
return de_PutRegistrationFieldValueCommandError(output, context);
|
|
2759
|
-
}
|
|
2760
|
-
const data = await parseBody(output.body, context);
|
|
2761
|
-
let contents = {};
|
|
2762
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2763
|
-
const response = {
|
|
2764
|
-
$metadata: deserializeMetadata(output),
|
|
2765
|
-
...contents,
|
|
2766
|
-
};
|
|
2767
|
-
return response;
|
|
2768
|
-
};
|
|
2769
|
-
exports.de_PutRegistrationFieldValueCommand = de_PutRegistrationFieldValueCommand;
|
|
2770
|
-
const de_PutRegistrationFieldValueCommandError = async (output, context) => {
|
|
2771
|
-
const parsedOutput = {
|
|
2772
|
-
...output,
|
|
2773
|
-
body: await parseErrorBody(output.body, context),
|
|
2774
|
-
};
|
|
2775
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2776
|
-
switch (errorCode) {
|
|
2777
|
-
case "AccessDeniedException":
|
|
2778
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
2779
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2780
|
-
case "ConflictException":
|
|
2781
|
-
case "com.amazonaws.pinpointsmsvoicev2#ConflictException":
|
|
2782
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2783
|
-
case "InternalServerException":
|
|
2784
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
2785
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2786
|
-
case "ResourceNotFoundException":
|
|
2787
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
2788
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2789
|
-
case "ThrottlingException":
|
|
2790
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
2791
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2792
|
-
case "ValidationException":
|
|
2793
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
2794
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2795
|
-
default:
|
|
2796
|
-
const parsedBody = parsedOutput.body;
|
|
2797
|
-
return throwDefaultError({
|
|
2798
|
-
output,
|
|
2799
|
-
parsedBody,
|
|
2800
|
-
errorCode,
|
|
2801
|
-
});
|
|
2802
|
-
}
|
|
2803
|
-
};
|
|
2804
|
-
const de_ReleasePhoneNumberCommand = async (output, context) => {
|
|
2805
|
-
if (output.statusCode >= 300) {
|
|
2806
|
-
return de_ReleasePhoneNumberCommandError(output, context);
|
|
2807
|
-
}
|
|
2808
|
-
const data = await parseBody(output.body, context);
|
|
2809
|
-
let contents = {};
|
|
2810
|
-
contents = de_ReleasePhoneNumberResult(data, context);
|
|
2811
|
-
const response = {
|
|
2812
|
-
$metadata: deserializeMetadata(output),
|
|
2813
|
-
...contents,
|
|
2814
|
-
};
|
|
2815
|
-
return response;
|
|
2816
|
-
};
|
|
2817
|
-
exports.de_ReleasePhoneNumberCommand = de_ReleasePhoneNumberCommand;
|
|
2818
|
-
const de_ReleasePhoneNumberCommandError = async (output, context) => {
|
|
2819
|
-
const parsedOutput = {
|
|
2820
|
-
...output,
|
|
2821
|
-
body: await parseErrorBody(output.body, context),
|
|
2822
|
-
};
|
|
2823
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2824
|
-
switch (errorCode) {
|
|
2825
|
-
case "AccessDeniedException":
|
|
2826
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
2827
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2828
|
-
case "ConflictException":
|
|
2829
|
-
case "com.amazonaws.pinpointsmsvoicev2#ConflictException":
|
|
2830
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2831
|
-
case "InternalServerException":
|
|
2832
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
2833
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2834
|
-
case "ResourceNotFoundException":
|
|
2835
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
2836
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2837
|
-
case "ThrottlingException":
|
|
2838
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
2839
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2840
|
-
case "ValidationException":
|
|
2841
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
2842
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2843
|
-
default:
|
|
2844
|
-
const parsedBody = parsedOutput.body;
|
|
2845
|
-
return throwDefaultError({
|
|
2846
|
-
output,
|
|
2847
|
-
parsedBody,
|
|
2848
|
-
errorCode,
|
|
2849
|
-
});
|
|
2850
|
-
}
|
|
2851
|
-
};
|
|
2852
|
-
const de_ReleaseSenderIdCommand = async (output, context) => {
|
|
2853
|
-
if (output.statusCode >= 300) {
|
|
2854
|
-
return de_ReleaseSenderIdCommandError(output, context);
|
|
2855
|
-
}
|
|
2856
|
-
const data = await parseBody(output.body, context);
|
|
2857
|
-
let contents = {};
|
|
2858
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2859
|
-
const response = {
|
|
2860
|
-
$metadata: deserializeMetadata(output),
|
|
2861
|
-
...contents,
|
|
2862
|
-
};
|
|
2863
|
-
return response;
|
|
2864
|
-
};
|
|
2865
|
-
exports.de_ReleaseSenderIdCommand = de_ReleaseSenderIdCommand;
|
|
2866
|
-
const de_ReleaseSenderIdCommandError = async (output, context) => {
|
|
2867
|
-
const parsedOutput = {
|
|
2868
|
-
...output,
|
|
2869
|
-
body: await parseErrorBody(output.body, context),
|
|
2870
|
-
};
|
|
2871
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2872
|
-
switch (errorCode) {
|
|
2873
|
-
case "AccessDeniedException":
|
|
2874
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
2875
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2876
|
-
case "ConflictException":
|
|
2877
|
-
case "com.amazonaws.pinpointsmsvoicev2#ConflictException":
|
|
2878
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2879
|
-
case "InternalServerException":
|
|
2880
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
2881
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2882
|
-
case "ResourceNotFoundException":
|
|
2883
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
2884
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2885
|
-
case "ThrottlingException":
|
|
2886
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
2887
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2888
|
-
case "ValidationException":
|
|
2889
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
2890
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2891
|
-
default:
|
|
2892
|
-
const parsedBody = parsedOutput.body;
|
|
2893
|
-
return throwDefaultError({
|
|
2894
|
-
output,
|
|
2895
|
-
parsedBody,
|
|
2896
|
-
errorCode,
|
|
2897
|
-
});
|
|
2898
|
-
}
|
|
2899
|
-
};
|
|
2900
|
-
const de_RequestPhoneNumberCommand = async (output, context) => {
|
|
2901
|
-
if (output.statusCode >= 300) {
|
|
2902
|
-
return de_RequestPhoneNumberCommandError(output, context);
|
|
2903
|
-
}
|
|
2904
|
-
const data = await parseBody(output.body, context);
|
|
2905
|
-
let contents = {};
|
|
2906
|
-
contents = de_RequestPhoneNumberResult(data, context);
|
|
2907
|
-
const response = {
|
|
2908
|
-
$metadata: deserializeMetadata(output),
|
|
2909
|
-
...contents,
|
|
2910
|
-
};
|
|
2911
|
-
return response;
|
|
2912
|
-
};
|
|
2913
|
-
exports.de_RequestPhoneNumberCommand = de_RequestPhoneNumberCommand;
|
|
2914
|
-
const de_RequestPhoneNumberCommandError = async (output, context) => {
|
|
2915
|
-
const parsedOutput = {
|
|
2916
|
-
...output,
|
|
2917
|
-
body: await parseErrorBody(output.body, context),
|
|
2918
|
-
};
|
|
2919
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2920
|
-
switch (errorCode) {
|
|
2921
|
-
case "AccessDeniedException":
|
|
2922
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
2923
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2924
|
-
case "ConflictException":
|
|
2925
|
-
case "com.amazonaws.pinpointsmsvoicev2#ConflictException":
|
|
2926
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2927
|
-
case "InternalServerException":
|
|
2928
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
2929
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2930
|
-
case "ResourceNotFoundException":
|
|
2931
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
2932
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2933
|
-
case "ServiceQuotaExceededException":
|
|
2934
|
-
case "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException":
|
|
2935
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2936
|
-
case "ThrottlingException":
|
|
2937
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
2938
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2939
|
-
case "ValidationException":
|
|
2940
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
2941
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2942
|
-
default:
|
|
2943
|
-
const parsedBody = parsedOutput.body;
|
|
2944
|
-
return throwDefaultError({
|
|
2945
|
-
output,
|
|
2946
|
-
parsedBody,
|
|
2947
|
-
errorCode,
|
|
2948
|
-
});
|
|
2949
|
-
}
|
|
2950
|
-
};
|
|
2951
|
-
const de_RequestSenderIdCommand = async (output, context) => {
|
|
2952
|
-
if (output.statusCode >= 300) {
|
|
2953
|
-
return de_RequestSenderIdCommandError(output, context);
|
|
2954
|
-
}
|
|
2955
|
-
const data = await parseBody(output.body, context);
|
|
2956
|
-
let contents = {};
|
|
2957
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2958
|
-
const response = {
|
|
2959
|
-
$metadata: deserializeMetadata(output),
|
|
2960
|
-
...contents,
|
|
2961
|
-
};
|
|
2962
|
-
return response;
|
|
2963
|
-
};
|
|
2964
|
-
exports.de_RequestSenderIdCommand = de_RequestSenderIdCommand;
|
|
2965
|
-
const de_RequestSenderIdCommandError = async (output, context) => {
|
|
2966
|
-
const parsedOutput = {
|
|
2967
|
-
...output,
|
|
2968
|
-
body: await parseErrorBody(output.body, context),
|
|
2969
|
-
};
|
|
2970
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2971
|
-
switch (errorCode) {
|
|
2972
|
-
case "AccessDeniedException":
|
|
2973
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
2974
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2975
|
-
case "ConflictException":
|
|
2976
|
-
case "com.amazonaws.pinpointsmsvoicev2#ConflictException":
|
|
2977
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2978
|
-
case "InternalServerException":
|
|
2979
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
2980
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2981
|
-
case "ServiceQuotaExceededException":
|
|
2982
|
-
case "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException":
|
|
2983
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2984
|
-
case "ThrottlingException":
|
|
2985
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
2986
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2987
|
-
case "ValidationException":
|
|
2988
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
2989
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2990
|
-
default:
|
|
2991
|
-
const parsedBody = parsedOutput.body;
|
|
2992
|
-
return throwDefaultError({
|
|
2993
|
-
output,
|
|
2994
|
-
parsedBody,
|
|
2995
|
-
errorCode,
|
|
2996
|
-
});
|
|
2997
|
-
}
|
|
2998
|
-
};
|
|
2999
|
-
const de_SendDestinationNumberVerificationCodeCommand = async (output, context) => {
|
|
3000
|
-
if (output.statusCode >= 300) {
|
|
3001
|
-
return de_SendDestinationNumberVerificationCodeCommandError(output, context);
|
|
3002
|
-
}
|
|
3003
|
-
const data = await parseBody(output.body, context);
|
|
3004
|
-
let contents = {};
|
|
3005
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3006
|
-
const response = {
|
|
3007
|
-
$metadata: deserializeMetadata(output),
|
|
3008
|
-
...contents,
|
|
3009
|
-
};
|
|
3010
|
-
return response;
|
|
3011
|
-
};
|
|
3012
|
-
exports.de_SendDestinationNumberVerificationCodeCommand = de_SendDestinationNumberVerificationCodeCommand;
|
|
3013
|
-
const de_SendDestinationNumberVerificationCodeCommandError = async (output, context) => {
|
|
3014
|
-
const parsedOutput = {
|
|
3015
|
-
...output,
|
|
3016
|
-
body: await parseErrorBody(output.body, context),
|
|
3017
|
-
};
|
|
3018
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3019
|
-
switch (errorCode) {
|
|
3020
|
-
case "AccessDeniedException":
|
|
3021
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
3022
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3023
|
-
case "ConflictException":
|
|
3024
|
-
case "com.amazonaws.pinpointsmsvoicev2#ConflictException":
|
|
3025
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3026
|
-
case "InternalServerException":
|
|
3027
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
3028
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3029
|
-
case "ResourceNotFoundException":
|
|
3030
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
3031
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3032
|
-
case "ServiceQuotaExceededException":
|
|
3033
|
-
case "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException":
|
|
3034
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3035
|
-
case "ThrottlingException":
|
|
3036
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
3037
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3038
|
-
case "ValidationException":
|
|
3039
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
3040
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3041
|
-
default:
|
|
3042
|
-
const parsedBody = parsedOutput.body;
|
|
3043
|
-
return throwDefaultError({
|
|
3044
|
-
output,
|
|
3045
|
-
parsedBody,
|
|
3046
|
-
errorCode,
|
|
3047
|
-
});
|
|
3048
|
-
}
|
|
3049
|
-
};
|
|
3050
|
-
const de_SendTextMessageCommand = async (output, context) => {
|
|
3051
|
-
if (output.statusCode >= 300) {
|
|
3052
|
-
return de_SendTextMessageCommandError(output, context);
|
|
3053
|
-
}
|
|
3054
|
-
const data = await parseBody(output.body, context);
|
|
3055
|
-
let contents = {};
|
|
3056
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3057
|
-
const response = {
|
|
3058
|
-
$metadata: deserializeMetadata(output),
|
|
3059
|
-
...contents,
|
|
3060
|
-
};
|
|
3061
|
-
return response;
|
|
3062
|
-
};
|
|
3063
|
-
exports.de_SendTextMessageCommand = de_SendTextMessageCommand;
|
|
3064
|
-
const de_SendTextMessageCommandError = async (output, context) => {
|
|
3065
|
-
const parsedOutput = {
|
|
3066
|
-
...output,
|
|
3067
|
-
body: await parseErrorBody(output.body, context),
|
|
3068
|
-
};
|
|
3069
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3070
|
-
switch (errorCode) {
|
|
3071
|
-
case "AccessDeniedException":
|
|
3072
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
3073
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3074
|
-
case "ConflictException":
|
|
3075
|
-
case "com.amazonaws.pinpointsmsvoicev2#ConflictException":
|
|
3076
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3077
|
-
case "InternalServerException":
|
|
3078
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
3079
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3080
|
-
case "ResourceNotFoundException":
|
|
3081
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
3082
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3083
|
-
case "ServiceQuotaExceededException":
|
|
3084
|
-
case "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException":
|
|
3085
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3086
|
-
case "ThrottlingException":
|
|
3087
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
3088
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3089
|
-
case "ValidationException":
|
|
3090
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
3091
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3092
|
-
default:
|
|
3093
|
-
const parsedBody = parsedOutput.body;
|
|
3094
|
-
return throwDefaultError({
|
|
3095
|
-
output,
|
|
3096
|
-
parsedBody,
|
|
3097
|
-
errorCode,
|
|
3098
|
-
});
|
|
3099
|
-
}
|
|
3100
|
-
};
|
|
3101
|
-
const de_SendVoiceMessageCommand = async (output, context) => {
|
|
3102
|
-
if (output.statusCode >= 300) {
|
|
3103
|
-
return de_SendVoiceMessageCommandError(output, context);
|
|
3104
|
-
}
|
|
3105
|
-
const data = await parseBody(output.body, context);
|
|
3106
|
-
let contents = {};
|
|
3107
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3108
|
-
const response = {
|
|
3109
|
-
$metadata: deserializeMetadata(output),
|
|
3110
|
-
...contents,
|
|
3111
|
-
};
|
|
3112
|
-
return response;
|
|
3113
|
-
};
|
|
3114
|
-
exports.de_SendVoiceMessageCommand = de_SendVoiceMessageCommand;
|
|
3115
|
-
const de_SendVoiceMessageCommandError = async (output, context) => {
|
|
3116
|
-
const parsedOutput = {
|
|
3117
|
-
...output,
|
|
3118
|
-
body: await parseErrorBody(output.body, context),
|
|
3119
|
-
};
|
|
3120
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3121
|
-
switch (errorCode) {
|
|
3122
|
-
case "AccessDeniedException":
|
|
3123
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
3124
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3125
|
-
case "ConflictException":
|
|
3126
|
-
case "com.amazonaws.pinpointsmsvoicev2#ConflictException":
|
|
3127
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3128
|
-
case "InternalServerException":
|
|
3129
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
3130
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3131
|
-
case "ResourceNotFoundException":
|
|
3132
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
3133
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3134
|
-
case "ServiceQuotaExceededException":
|
|
3135
|
-
case "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException":
|
|
3136
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3137
|
-
case "ThrottlingException":
|
|
3138
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
3139
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3140
|
-
case "ValidationException":
|
|
3141
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
3142
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3143
|
-
default:
|
|
3144
|
-
const parsedBody = parsedOutput.body;
|
|
3145
|
-
return throwDefaultError({
|
|
3146
|
-
output,
|
|
3147
|
-
parsedBody,
|
|
3148
|
-
errorCode,
|
|
3149
|
-
});
|
|
3150
|
-
}
|
|
3151
|
-
};
|
|
3152
|
-
const de_SetDefaultMessageTypeCommand = async (output, context) => {
|
|
3153
|
-
if (output.statusCode >= 300) {
|
|
3154
|
-
return de_SetDefaultMessageTypeCommandError(output, context);
|
|
3155
|
-
}
|
|
3156
|
-
const data = await parseBody(output.body, context);
|
|
3157
|
-
let contents = {};
|
|
3158
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3159
|
-
const response = {
|
|
3160
|
-
$metadata: deserializeMetadata(output),
|
|
3161
|
-
...contents,
|
|
3162
|
-
};
|
|
3163
|
-
return response;
|
|
3164
|
-
};
|
|
3165
|
-
exports.de_SetDefaultMessageTypeCommand = de_SetDefaultMessageTypeCommand;
|
|
3166
|
-
const de_SetDefaultMessageTypeCommandError = async (output, context) => {
|
|
3167
|
-
const parsedOutput = {
|
|
3168
|
-
...output,
|
|
3169
|
-
body: await parseErrorBody(output.body, context),
|
|
3170
|
-
};
|
|
3171
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3172
|
-
switch (errorCode) {
|
|
3173
|
-
case "AccessDeniedException":
|
|
3174
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
3175
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3176
|
-
case "InternalServerException":
|
|
3177
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
3178
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3179
|
-
case "ResourceNotFoundException":
|
|
3180
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
3181
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3182
|
-
case "ThrottlingException":
|
|
3183
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
3184
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3185
|
-
case "ValidationException":
|
|
3186
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
3187
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3188
|
-
default:
|
|
3189
|
-
const parsedBody = parsedOutput.body;
|
|
3190
|
-
return throwDefaultError({
|
|
3191
|
-
output,
|
|
3192
|
-
parsedBody,
|
|
3193
|
-
errorCode,
|
|
3194
|
-
});
|
|
3195
|
-
}
|
|
3196
|
-
};
|
|
3197
|
-
const de_SetDefaultSenderIdCommand = async (output, context) => {
|
|
3198
|
-
if (output.statusCode >= 300) {
|
|
3199
|
-
return de_SetDefaultSenderIdCommandError(output, context);
|
|
3200
|
-
}
|
|
3201
|
-
const data = await parseBody(output.body, context);
|
|
3202
|
-
let contents = {};
|
|
3203
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3204
|
-
const response = {
|
|
3205
|
-
$metadata: deserializeMetadata(output),
|
|
3206
|
-
...contents,
|
|
3207
|
-
};
|
|
3208
|
-
return response;
|
|
3209
|
-
};
|
|
3210
|
-
exports.de_SetDefaultSenderIdCommand = de_SetDefaultSenderIdCommand;
|
|
3211
|
-
const de_SetDefaultSenderIdCommandError = async (output, context) => {
|
|
3212
|
-
const parsedOutput = {
|
|
3213
|
-
...output,
|
|
3214
|
-
body: await parseErrorBody(output.body, context),
|
|
3215
|
-
};
|
|
3216
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3217
|
-
switch (errorCode) {
|
|
3218
|
-
case "AccessDeniedException":
|
|
3219
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
3220
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3221
|
-
case "InternalServerException":
|
|
3222
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
3223
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3224
|
-
case "ResourceNotFoundException":
|
|
3225
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
3226
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3227
|
-
case "ThrottlingException":
|
|
3228
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
3229
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3230
|
-
case "ValidationException":
|
|
3231
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
3232
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3233
|
-
default:
|
|
3234
|
-
const parsedBody = parsedOutput.body;
|
|
3235
|
-
return throwDefaultError({
|
|
3236
|
-
output,
|
|
3237
|
-
parsedBody,
|
|
3238
|
-
errorCode,
|
|
3239
|
-
});
|
|
3240
|
-
}
|
|
3241
|
-
};
|
|
3242
|
-
const de_SetTextMessageSpendLimitOverrideCommand = async (output, context) => {
|
|
3243
|
-
if (output.statusCode >= 300) {
|
|
3244
|
-
return de_SetTextMessageSpendLimitOverrideCommandError(output, context);
|
|
3245
|
-
}
|
|
3246
|
-
const data = await parseBody(output.body, context);
|
|
3247
|
-
let contents = {};
|
|
3248
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3249
|
-
const response = {
|
|
3250
|
-
$metadata: deserializeMetadata(output),
|
|
3251
|
-
...contents,
|
|
3252
|
-
};
|
|
3253
|
-
return response;
|
|
3254
|
-
};
|
|
3255
|
-
exports.de_SetTextMessageSpendLimitOverrideCommand = de_SetTextMessageSpendLimitOverrideCommand;
|
|
3256
|
-
const de_SetTextMessageSpendLimitOverrideCommandError = async (output, context) => {
|
|
3257
|
-
const parsedOutput = {
|
|
3258
|
-
...output,
|
|
3259
|
-
body: await parseErrorBody(output.body, context),
|
|
3260
|
-
};
|
|
3261
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3262
|
-
switch (errorCode) {
|
|
3263
|
-
case "AccessDeniedException":
|
|
3264
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
3265
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3266
|
-
case "InternalServerException":
|
|
3267
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
3268
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3269
|
-
case "ThrottlingException":
|
|
3270
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
3271
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3272
|
-
case "ValidationException":
|
|
3273
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
3274
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3275
|
-
default:
|
|
3276
|
-
const parsedBody = parsedOutput.body;
|
|
3277
|
-
return throwDefaultError({
|
|
3278
|
-
output,
|
|
3279
|
-
parsedBody,
|
|
3280
|
-
errorCode,
|
|
3281
|
-
});
|
|
3282
|
-
}
|
|
3283
|
-
};
|
|
3284
|
-
const de_SetVoiceMessageSpendLimitOverrideCommand = async (output, context) => {
|
|
3285
|
-
if (output.statusCode >= 300) {
|
|
3286
|
-
return de_SetVoiceMessageSpendLimitOverrideCommandError(output, context);
|
|
3287
|
-
}
|
|
3288
|
-
const data = await parseBody(output.body, context);
|
|
3289
|
-
let contents = {};
|
|
3290
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3291
|
-
const response = {
|
|
3292
|
-
$metadata: deserializeMetadata(output),
|
|
3293
|
-
...contents,
|
|
3294
|
-
};
|
|
3295
|
-
return response;
|
|
3296
|
-
};
|
|
3297
|
-
exports.de_SetVoiceMessageSpendLimitOverrideCommand = de_SetVoiceMessageSpendLimitOverrideCommand;
|
|
3298
|
-
const de_SetVoiceMessageSpendLimitOverrideCommandError = async (output, context) => {
|
|
3299
|
-
const parsedOutput = {
|
|
3300
|
-
...output,
|
|
3301
|
-
body: await parseErrorBody(output.body, context),
|
|
3302
|
-
};
|
|
3303
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3304
|
-
switch (errorCode) {
|
|
3305
|
-
case "AccessDeniedException":
|
|
3306
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
3307
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3308
|
-
case "InternalServerException":
|
|
3309
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
3310
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3311
|
-
case "ThrottlingException":
|
|
3312
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
3313
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3314
|
-
case "ValidationException":
|
|
3315
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
3316
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3317
|
-
default:
|
|
3318
|
-
const parsedBody = parsedOutput.body;
|
|
3319
|
-
return throwDefaultError({
|
|
3320
|
-
output,
|
|
3321
|
-
parsedBody,
|
|
3322
|
-
errorCode,
|
|
3323
|
-
});
|
|
3324
|
-
}
|
|
3325
|
-
};
|
|
3326
|
-
const de_SubmitRegistrationVersionCommand = async (output, context) => {
|
|
3327
|
-
if (output.statusCode >= 300) {
|
|
3328
|
-
return de_SubmitRegistrationVersionCommandError(output, context);
|
|
3329
|
-
}
|
|
3330
|
-
const data = await parseBody(output.body, context);
|
|
3331
|
-
let contents = {};
|
|
3332
|
-
contents = de_SubmitRegistrationVersionResult(data, context);
|
|
3333
|
-
const response = {
|
|
3334
|
-
$metadata: deserializeMetadata(output),
|
|
3335
|
-
...contents,
|
|
3336
|
-
};
|
|
3337
|
-
return response;
|
|
3338
|
-
};
|
|
3339
|
-
exports.de_SubmitRegistrationVersionCommand = de_SubmitRegistrationVersionCommand;
|
|
3340
|
-
const de_SubmitRegistrationVersionCommandError = async (output, context) => {
|
|
3341
|
-
const parsedOutput = {
|
|
3342
|
-
...output,
|
|
3343
|
-
body: await parseErrorBody(output.body, context),
|
|
3344
|
-
};
|
|
3345
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3346
|
-
switch (errorCode) {
|
|
3347
|
-
case "AccessDeniedException":
|
|
3348
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
3349
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3350
|
-
case "ConflictException":
|
|
3351
|
-
case "com.amazonaws.pinpointsmsvoicev2#ConflictException":
|
|
3352
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3353
|
-
case "InternalServerException":
|
|
3354
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
3355
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3356
|
-
case "ResourceNotFoundException":
|
|
3357
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
3358
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3359
|
-
case "ThrottlingException":
|
|
3360
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
3361
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3362
|
-
case "ValidationException":
|
|
3363
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
3364
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3365
|
-
default:
|
|
3366
|
-
const parsedBody = parsedOutput.body;
|
|
3367
|
-
return throwDefaultError({
|
|
3368
|
-
output,
|
|
3369
|
-
parsedBody,
|
|
3370
|
-
errorCode,
|
|
3371
|
-
});
|
|
3372
|
-
}
|
|
3373
|
-
};
|
|
3374
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
3375
|
-
if (output.statusCode >= 300) {
|
|
3376
|
-
return de_TagResourceCommandError(output, context);
|
|
3377
|
-
}
|
|
3378
|
-
const data = await parseBody(output.body, context);
|
|
3379
|
-
let contents = {};
|
|
3380
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3381
|
-
const response = {
|
|
3382
|
-
$metadata: deserializeMetadata(output),
|
|
3383
|
-
...contents,
|
|
3384
|
-
};
|
|
3385
|
-
return response;
|
|
3386
|
-
};
|
|
3387
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
3388
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
3389
|
-
const parsedOutput = {
|
|
3390
|
-
...output,
|
|
3391
|
-
body: await parseErrorBody(output.body, context),
|
|
3392
|
-
};
|
|
3393
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3394
|
-
switch (errorCode) {
|
|
3395
|
-
case "AccessDeniedException":
|
|
3396
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
3397
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3398
|
-
case "InternalServerException":
|
|
3399
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
3400
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3401
|
-
case "ResourceNotFoundException":
|
|
3402
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
3403
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3404
|
-
case "ServiceQuotaExceededException":
|
|
3405
|
-
case "com.amazonaws.pinpointsmsvoicev2#ServiceQuotaExceededException":
|
|
3406
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3407
|
-
case "ThrottlingException":
|
|
3408
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
3409
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3410
|
-
case "ValidationException":
|
|
3411
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
3412
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3413
|
-
default:
|
|
3414
|
-
const parsedBody = parsedOutput.body;
|
|
3415
|
-
return throwDefaultError({
|
|
3416
|
-
output,
|
|
3417
|
-
parsedBody,
|
|
3418
|
-
errorCode,
|
|
3419
|
-
});
|
|
3420
|
-
}
|
|
3421
|
-
};
|
|
3422
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
3423
|
-
if (output.statusCode >= 300) {
|
|
3424
|
-
return de_UntagResourceCommandError(output, context);
|
|
3425
|
-
}
|
|
3426
|
-
const data = await parseBody(output.body, context);
|
|
3427
|
-
let contents = {};
|
|
3428
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3429
|
-
const response = {
|
|
3430
|
-
$metadata: deserializeMetadata(output),
|
|
3431
|
-
...contents,
|
|
3432
|
-
};
|
|
3433
|
-
return response;
|
|
3434
|
-
};
|
|
3435
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
3436
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
3437
|
-
const parsedOutput = {
|
|
3438
|
-
...output,
|
|
3439
|
-
body: await parseErrorBody(output.body, context),
|
|
3440
|
-
};
|
|
3441
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3442
|
-
switch (errorCode) {
|
|
3443
|
-
case "AccessDeniedException":
|
|
3444
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
3445
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3446
|
-
case "InternalServerException":
|
|
3447
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
3448
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3449
|
-
case "ResourceNotFoundException":
|
|
3450
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
3451
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3452
|
-
case "ThrottlingException":
|
|
3453
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
3454
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3455
|
-
case "ValidationException":
|
|
3456
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
3457
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3458
|
-
default:
|
|
3459
|
-
const parsedBody = parsedOutput.body;
|
|
3460
|
-
return throwDefaultError({
|
|
3461
|
-
output,
|
|
3462
|
-
parsedBody,
|
|
3463
|
-
errorCode,
|
|
3464
|
-
});
|
|
3465
|
-
}
|
|
3466
|
-
};
|
|
3467
|
-
const de_UpdateEventDestinationCommand = async (output, context) => {
|
|
3468
|
-
if (output.statusCode >= 300) {
|
|
3469
|
-
return de_UpdateEventDestinationCommandError(output, context);
|
|
3470
|
-
}
|
|
3471
|
-
const data = await parseBody(output.body, context);
|
|
3472
|
-
let contents = {};
|
|
3473
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3474
|
-
const response = {
|
|
3475
|
-
$metadata: deserializeMetadata(output),
|
|
3476
|
-
...contents,
|
|
3477
|
-
};
|
|
3478
|
-
return response;
|
|
3479
|
-
};
|
|
3480
|
-
exports.de_UpdateEventDestinationCommand = de_UpdateEventDestinationCommand;
|
|
3481
|
-
const de_UpdateEventDestinationCommandError = async (output, context) => {
|
|
3482
|
-
const parsedOutput = {
|
|
3483
|
-
...output,
|
|
3484
|
-
body: await parseErrorBody(output.body, context),
|
|
3485
|
-
};
|
|
3486
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3487
|
-
switch (errorCode) {
|
|
3488
|
-
case "AccessDeniedException":
|
|
3489
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
3490
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3491
|
-
case "ConflictException":
|
|
3492
|
-
case "com.amazonaws.pinpointsmsvoicev2#ConflictException":
|
|
3493
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3494
|
-
case "InternalServerException":
|
|
3495
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
3496
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3497
|
-
case "ResourceNotFoundException":
|
|
3498
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
3499
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3500
|
-
case "ThrottlingException":
|
|
3501
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
3502
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3503
|
-
case "ValidationException":
|
|
3504
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
3505
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3506
|
-
default:
|
|
3507
|
-
const parsedBody = parsedOutput.body;
|
|
3508
|
-
return throwDefaultError({
|
|
3509
|
-
output,
|
|
3510
|
-
parsedBody,
|
|
3511
|
-
errorCode,
|
|
3512
|
-
});
|
|
3513
|
-
}
|
|
3514
|
-
};
|
|
3515
|
-
const de_UpdatePhoneNumberCommand = async (output, context) => {
|
|
3516
|
-
if (output.statusCode >= 300) {
|
|
3517
|
-
return de_UpdatePhoneNumberCommandError(output, context);
|
|
3518
|
-
}
|
|
3519
|
-
const data = await parseBody(output.body, context);
|
|
3520
|
-
let contents = {};
|
|
3521
|
-
contents = de_UpdatePhoneNumberResult(data, context);
|
|
3522
|
-
const response = {
|
|
3523
|
-
$metadata: deserializeMetadata(output),
|
|
3524
|
-
...contents,
|
|
3525
|
-
};
|
|
3526
|
-
return response;
|
|
3527
|
-
};
|
|
3528
|
-
exports.de_UpdatePhoneNumberCommand = de_UpdatePhoneNumberCommand;
|
|
3529
|
-
const de_UpdatePhoneNumberCommandError = async (output, context) => {
|
|
3530
|
-
const parsedOutput = {
|
|
3531
|
-
...output,
|
|
3532
|
-
body: await parseErrorBody(output.body, context),
|
|
3533
|
-
};
|
|
3534
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3535
|
-
switch (errorCode) {
|
|
3536
|
-
case "AccessDeniedException":
|
|
3537
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
3538
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3539
|
-
case "ConflictException":
|
|
3540
|
-
case "com.amazonaws.pinpointsmsvoicev2#ConflictException":
|
|
3541
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3542
|
-
case "InternalServerException":
|
|
3543
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
3544
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3545
|
-
case "ResourceNotFoundException":
|
|
3546
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
3547
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3548
|
-
case "ThrottlingException":
|
|
3549
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
3550
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3551
|
-
case "ValidationException":
|
|
3552
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
3553
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3554
|
-
default:
|
|
3555
|
-
const parsedBody = parsedOutput.body;
|
|
3556
|
-
return throwDefaultError({
|
|
3557
|
-
output,
|
|
3558
|
-
parsedBody,
|
|
3559
|
-
errorCode,
|
|
3560
|
-
});
|
|
3561
|
-
}
|
|
3562
|
-
};
|
|
3563
|
-
const de_UpdatePoolCommand = async (output, context) => {
|
|
3564
|
-
if (output.statusCode >= 300) {
|
|
3565
|
-
return de_UpdatePoolCommandError(output, context);
|
|
3566
|
-
}
|
|
3567
|
-
const data = await parseBody(output.body, context);
|
|
3568
|
-
let contents = {};
|
|
3569
|
-
contents = de_UpdatePoolResult(data, context);
|
|
3570
|
-
const response = {
|
|
3571
|
-
$metadata: deserializeMetadata(output),
|
|
3572
|
-
...contents,
|
|
3573
|
-
};
|
|
3574
|
-
return response;
|
|
3575
|
-
};
|
|
3576
|
-
exports.de_UpdatePoolCommand = de_UpdatePoolCommand;
|
|
3577
|
-
const de_UpdatePoolCommandError = async (output, context) => {
|
|
3578
|
-
const parsedOutput = {
|
|
3579
|
-
...output,
|
|
3580
|
-
body: await parseErrorBody(output.body, context),
|
|
3581
|
-
};
|
|
3582
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3583
|
-
switch (errorCode) {
|
|
3584
|
-
case "AccessDeniedException":
|
|
3585
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
3586
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3587
|
-
case "ConflictException":
|
|
3588
|
-
case "com.amazonaws.pinpointsmsvoicev2#ConflictException":
|
|
3589
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3590
|
-
case "InternalServerException":
|
|
3591
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
3592
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3593
|
-
case "ResourceNotFoundException":
|
|
3594
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
3595
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3596
|
-
case "ThrottlingException":
|
|
3597
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
3598
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3599
|
-
case "ValidationException":
|
|
3600
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
3601
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3602
|
-
default:
|
|
3603
|
-
const parsedBody = parsedOutput.body;
|
|
3604
|
-
return throwDefaultError({
|
|
3605
|
-
output,
|
|
3606
|
-
parsedBody,
|
|
3607
|
-
errorCode,
|
|
3608
|
-
});
|
|
3609
|
-
}
|
|
3610
|
-
};
|
|
3611
|
-
const de_UpdateSenderIdCommand = async (output, context) => {
|
|
3612
|
-
if (output.statusCode >= 300) {
|
|
3613
|
-
return de_UpdateSenderIdCommandError(output, context);
|
|
3614
|
-
}
|
|
3615
|
-
const data = await parseBody(output.body, context);
|
|
3616
|
-
let contents = {};
|
|
3617
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3618
|
-
const response = {
|
|
3619
|
-
$metadata: deserializeMetadata(output),
|
|
3620
|
-
...contents,
|
|
3621
|
-
};
|
|
3622
|
-
return response;
|
|
3623
|
-
};
|
|
3624
|
-
exports.de_UpdateSenderIdCommand = de_UpdateSenderIdCommand;
|
|
3625
|
-
const de_UpdateSenderIdCommandError = async (output, context) => {
|
|
3626
|
-
const parsedOutput = {
|
|
3627
|
-
...output,
|
|
3628
|
-
body: await parseErrorBody(output.body, context),
|
|
3629
|
-
};
|
|
3630
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3631
|
-
switch (errorCode) {
|
|
3632
|
-
case "AccessDeniedException":
|
|
3633
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
3634
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3635
|
-
case "InternalServerException":
|
|
3636
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
3637
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3638
|
-
case "ResourceNotFoundException":
|
|
3639
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
3640
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3641
|
-
case "ThrottlingException":
|
|
3642
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
3643
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3644
|
-
case "ValidationException":
|
|
3645
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
3646
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3647
|
-
default:
|
|
3648
|
-
const parsedBody = parsedOutput.body;
|
|
3649
|
-
return throwDefaultError({
|
|
3650
|
-
output,
|
|
3651
|
-
parsedBody,
|
|
3652
|
-
errorCode,
|
|
3653
|
-
});
|
|
3654
|
-
}
|
|
3655
|
-
};
|
|
3656
|
-
const de_VerifyDestinationNumberCommand = async (output, context) => {
|
|
3657
|
-
if (output.statusCode >= 300) {
|
|
3658
|
-
return de_VerifyDestinationNumberCommandError(output, context);
|
|
3659
|
-
}
|
|
3660
|
-
const data = await parseBody(output.body, context);
|
|
3661
|
-
let contents = {};
|
|
3662
|
-
contents = de_VerifyDestinationNumberResult(data, context);
|
|
3663
|
-
const response = {
|
|
3664
|
-
$metadata: deserializeMetadata(output),
|
|
3665
|
-
...contents,
|
|
3666
|
-
};
|
|
3667
|
-
return response;
|
|
3668
|
-
};
|
|
3669
|
-
exports.de_VerifyDestinationNumberCommand = de_VerifyDestinationNumberCommand;
|
|
3670
|
-
const de_VerifyDestinationNumberCommandError = async (output, context) => {
|
|
3671
|
-
const parsedOutput = {
|
|
3672
|
-
...output,
|
|
3673
|
-
body: await parseErrorBody(output.body, context),
|
|
3674
|
-
};
|
|
3675
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3676
|
-
switch (errorCode) {
|
|
3677
|
-
case "AccessDeniedException":
|
|
3678
|
-
case "com.amazonaws.pinpointsmsvoicev2#AccessDeniedException":
|
|
3679
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3680
|
-
case "ConflictException":
|
|
3681
|
-
case "com.amazonaws.pinpointsmsvoicev2#ConflictException":
|
|
3682
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3683
|
-
case "InternalServerException":
|
|
3684
|
-
case "com.amazonaws.pinpointsmsvoicev2#InternalServerException":
|
|
3685
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3686
|
-
case "ResourceNotFoundException":
|
|
3687
|
-
case "com.amazonaws.pinpointsmsvoicev2#ResourceNotFoundException":
|
|
3688
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3689
|
-
case "ThrottlingException":
|
|
3690
|
-
case "com.amazonaws.pinpointsmsvoicev2#ThrottlingException":
|
|
3691
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3692
|
-
case "ValidationException":
|
|
3693
|
-
case "com.amazonaws.pinpointsmsvoicev2#ValidationException":
|
|
3694
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3695
|
-
default:
|
|
3696
|
-
const parsedBody = parsedOutput.body;
|
|
3697
|
-
return throwDefaultError({
|
|
3698
|
-
output,
|
|
3699
|
-
parsedBody,
|
|
3700
|
-
errorCode,
|
|
3701
|
-
});
|
|
3702
|
-
}
|
|
3703
|
-
};
|
|
3704
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
3705
|
-
const body = parsedOutput.body;
|
|
3706
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3707
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
3708
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3709
|
-
...deserialized,
|
|
3710
|
-
});
|
|
3711
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3712
|
-
};
|
|
3713
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
3714
|
-
const body = parsedOutput.body;
|
|
3715
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3716
|
-
const exception = new models_0_1.ConflictException({
|
|
3717
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3718
|
-
...deserialized,
|
|
3719
|
-
});
|
|
3720
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3721
|
-
};
|
|
3722
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
3723
|
-
const body = parsedOutput.body;
|
|
3724
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3725
|
-
const exception = new models_0_1.InternalServerException({
|
|
3726
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3727
|
-
...deserialized,
|
|
3728
|
-
});
|
|
3729
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3730
|
-
};
|
|
3731
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3732
|
-
const body = parsedOutput.body;
|
|
3733
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3734
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
3735
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3736
|
-
...deserialized,
|
|
3737
|
-
});
|
|
3738
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3739
|
-
};
|
|
3740
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
3741
|
-
const body = parsedOutput.body;
|
|
3742
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3743
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
3744
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3745
|
-
...deserialized,
|
|
3746
|
-
});
|
|
3747
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3748
|
-
};
|
|
3749
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
3750
|
-
const body = parsedOutput.body;
|
|
3751
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3752
|
-
const exception = new models_0_1.ThrottlingException({
|
|
3753
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3754
|
-
...deserialized,
|
|
3755
|
-
});
|
|
3756
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3757
|
-
};
|
|
3758
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
3759
|
-
const body = parsedOutput.body;
|
|
3760
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3761
|
-
const exception = new models_0_1.ValidationException({
|
|
3762
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3763
|
-
...deserialized,
|
|
3764
|
-
});
|
|
3765
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3766
|
-
};
|
|
3767
|
-
const se_AssociateOriginationIdentityRequest = (input, context) => {
|
|
3768
|
-
return (0, smithy_client_1.take)(input, {
|
|
3769
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
3770
|
-
IsoCountryCode: [],
|
|
3771
|
-
OriginationIdentity: [],
|
|
3772
|
-
PoolId: [],
|
|
3773
|
-
});
|
|
3774
|
-
};
|
|
3775
|
-
const se_CreateConfigurationSetRequest = (input, context) => {
|
|
3776
|
-
return (0, smithy_client_1.take)(input, {
|
|
3777
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
3778
|
-
ConfigurationSetName: [],
|
|
3779
|
-
Tags: smithy_client_1._json,
|
|
3780
|
-
});
|
|
3781
|
-
};
|
|
3782
|
-
const se_CreateEventDestinationRequest = (input, context) => {
|
|
3783
|
-
return (0, smithy_client_1.take)(input, {
|
|
3784
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
3785
|
-
CloudWatchLogsDestination: smithy_client_1._json,
|
|
3786
|
-
ConfigurationSetName: [],
|
|
3787
|
-
EventDestinationName: [],
|
|
3788
|
-
KinesisFirehoseDestination: smithy_client_1._json,
|
|
3789
|
-
MatchingEventTypes: smithy_client_1._json,
|
|
3790
|
-
SnsDestination: smithy_client_1._json,
|
|
3791
|
-
});
|
|
3792
|
-
};
|
|
3793
|
-
const se_CreateOptOutListRequest = (input, context) => {
|
|
3794
|
-
return (0, smithy_client_1.take)(input, {
|
|
3795
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
3796
|
-
OptOutListName: [],
|
|
3797
|
-
Tags: smithy_client_1._json,
|
|
3798
|
-
});
|
|
3799
|
-
};
|
|
3800
|
-
const se_CreatePoolRequest = (input, context) => {
|
|
3801
|
-
return (0, smithy_client_1.take)(input, {
|
|
3802
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
3803
|
-
DeletionProtectionEnabled: [],
|
|
3804
|
-
IsoCountryCode: [],
|
|
3805
|
-
MessageType: [],
|
|
3806
|
-
OriginationIdentity: [],
|
|
3807
|
-
Tags: smithy_client_1._json,
|
|
3808
|
-
});
|
|
3809
|
-
};
|
|
3810
|
-
const se_CreateRegistrationAttachmentRequest = (input, context) => {
|
|
3811
|
-
return (0, smithy_client_1.take)(input, {
|
|
3812
|
-
AttachmentBody: context.base64Encoder,
|
|
3813
|
-
AttachmentUrl: [],
|
|
3814
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
3815
|
-
Tags: smithy_client_1._json,
|
|
3816
|
-
});
|
|
3817
|
-
};
|
|
3818
|
-
const se_CreateRegistrationRequest = (input, context) => {
|
|
3819
|
-
return (0, smithy_client_1.take)(input, {
|
|
3820
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
3821
|
-
RegistrationType: [],
|
|
3822
|
-
Tags: smithy_client_1._json,
|
|
3823
|
-
});
|
|
3824
|
-
};
|
|
3825
|
-
const se_CreateVerifiedDestinationNumberRequest = (input, context) => {
|
|
3826
|
-
return (0, smithy_client_1.take)(input, {
|
|
3827
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
3828
|
-
DestinationPhoneNumber: [],
|
|
3829
|
-
Tags: smithy_client_1._json,
|
|
3830
|
-
});
|
|
3831
|
-
};
|
|
3832
|
-
const se_DisassociateOriginationIdentityRequest = (input, context) => {
|
|
3833
|
-
return (0, smithy_client_1.take)(input, {
|
|
3834
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
3835
|
-
IsoCountryCode: [],
|
|
3836
|
-
OriginationIdentity: [],
|
|
3837
|
-
PoolId: [],
|
|
3838
|
-
});
|
|
3839
|
-
};
|
|
3840
|
-
const se_RequestPhoneNumberRequest = (input, context) => {
|
|
3841
|
-
return (0, smithy_client_1.take)(input, {
|
|
3842
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
3843
|
-
DeletionProtectionEnabled: [],
|
|
3844
|
-
IsoCountryCode: [],
|
|
3845
|
-
MessageType: [],
|
|
3846
|
-
NumberCapabilities: smithy_client_1._json,
|
|
3847
|
-
NumberType: [],
|
|
3848
|
-
OptOutListName: [],
|
|
3849
|
-
PoolId: [],
|
|
3850
|
-
RegistrationId: [],
|
|
3851
|
-
Tags: smithy_client_1._json,
|
|
3852
|
-
});
|
|
3853
|
-
};
|
|
3854
|
-
const se_RequestSenderIdRequest = (input, context) => {
|
|
3855
|
-
return (0, smithy_client_1.take)(input, {
|
|
3856
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
3857
|
-
DeletionProtectionEnabled: [],
|
|
3858
|
-
IsoCountryCode: [],
|
|
3859
|
-
MessageTypes: smithy_client_1._json,
|
|
3860
|
-
SenderId: [],
|
|
3861
|
-
Tags: smithy_client_1._json,
|
|
3862
|
-
});
|
|
3863
|
-
};
|
|
3864
|
-
const de_ConfigurationSetInformation = (output, context) => {
|
|
3865
|
-
return (0, smithy_client_1.take)(output, {
|
|
3866
|
-
ConfigurationSetArn: smithy_client_1.expectString,
|
|
3867
|
-
ConfigurationSetName: smithy_client_1.expectString,
|
|
3868
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3869
|
-
DefaultMessageType: smithy_client_1.expectString,
|
|
3870
|
-
DefaultSenderId: smithy_client_1.expectString,
|
|
3871
|
-
EventDestinations: smithy_client_1._json,
|
|
3872
|
-
});
|
|
3873
|
-
};
|
|
3874
|
-
const de_ConfigurationSetInformationList = (output, context) => {
|
|
3875
|
-
const retVal = (output || [])
|
|
3876
|
-
.filter((e) => e != null)
|
|
3877
|
-
.map((entry) => {
|
|
3878
|
-
return de_ConfigurationSetInformation(entry, context);
|
|
3879
|
-
});
|
|
3880
|
-
return retVal;
|
|
3881
|
-
};
|
|
3882
|
-
const de_CreateConfigurationSetResult = (output, context) => {
|
|
3883
|
-
return (0, smithy_client_1.take)(output, {
|
|
3884
|
-
ConfigurationSetArn: smithy_client_1.expectString,
|
|
3885
|
-
ConfigurationSetName: smithy_client_1.expectString,
|
|
3886
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3887
|
-
Tags: smithy_client_1._json,
|
|
3888
|
-
});
|
|
3889
|
-
};
|
|
3890
|
-
const de_CreateOptOutListResult = (output, context) => {
|
|
3891
|
-
return (0, smithy_client_1.take)(output, {
|
|
3892
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3893
|
-
OptOutListArn: smithy_client_1.expectString,
|
|
3894
|
-
OptOutListName: smithy_client_1.expectString,
|
|
3895
|
-
Tags: smithy_client_1._json,
|
|
3896
|
-
});
|
|
3897
|
-
};
|
|
3898
|
-
const de_CreatePoolResult = (output, context) => {
|
|
3899
|
-
return (0, smithy_client_1.take)(output, {
|
|
3900
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3901
|
-
DeletionProtectionEnabled: smithy_client_1.expectBoolean,
|
|
3902
|
-
MessageType: smithy_client_1.expectString,
|
|
3903
|
-
OptOutListName: smithy_client_1.expectString,
|
|
3904
|
-
PoolArn: smithy_client_1.expectString,
|
|
3905
|
-
PoolId: smithy_client_1.expectString,
|
|
3906
|
-
SelfManagedOptOutsEnabled: smithy_client_1.expectBoolean,
|
|
3907
|
-
SharedRoutesEnabled: smithy_client_1.expectBoolean,
|
|
3908
|
-
Status: smithy_client_1.expectString,
|
|
3909
|
-
Tags: smithy_client_1._json,
|
|
3910
|
-
TwoWayChannelArn: smithy_client_1.expectString,
|
|
3911
|
-
TwoWayChannelRole: smithy_client_1.expectString,
|
|
3912
|
-
TwoWayEnabled: smithy_client_1.expectBoolean,
|
|
3913
|
-
});
|
|
3914
|
-
};
|
|
3915
|
-
const de_CreateRegistrationAttachmentResult = (output, context) => {
|
|
3916
|
-
return (0, smithy_client_1.take)(output, {
|
|
3917
|
-
AttachmentStatus: smithy_client_1.expectString,
|
|
3918
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3919
|
-
RegistrationAttachmentArn: smithy_client_1.expectString,
|
|
3920
|
-
RegistrationAttachmentId: smithy_client_1.expectString,
|
|
3921
|
-
Tags: smithy_client_1._json,
|
|
3922
|
-
});
|
|
3923
|
-
};
|
|
3924
|
-
const de_CreateRegistrationResult = (output, context) => {
|
|
3925
|
-
return (0, smithy_client_1.take)(output, {
|
|
3926
|
-
AdditionalAttributes: smithy_client_1._json,
|
|
3927
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3928
|
-
CurrentVersionNumber: smithy_client_1.expectLong,
|
|
3929
|
-
RegistrationArn: smithy_client_1.expectString,
|
|
3930
|
-
RegistrationId: smithy_client_1.expectString,
|
|
3931
|
-
RegistrationStatus: smithy_client_1.expectString,
|
|
3932
|
-
RegistrationType: smithy_client_1.expectString,
|
|
3933
|
-
Tags: smithy_client_1._json,
|
|
3934
|
-
});
|
|
3935
|
-
};
|
|
3936
|
-
const de_CreateRegistrationVersionResult = (output, context) => {
|
|
3937
|
-
return (0, smithy_client_1.take)(output, {
|
|
3938
|
-
RegistrationArn: smithy_client_1.expectString,
|
|
3939
|
-
RegistrationId: smithy_client_1.expectString,
|
|
3940
|
-
RegistrationVersionStatus: smithy_client_1.expectString,
|
|
3941
|
-
RegistrationVersionStatusHistory: (_) => de_RegistrationVersionStatusHistory(_, context),
|
|
3942
|
-
VersionNumber: smithy_client_1.expectLong,
|
|
3943
|
-
});
|
|
3944
|
-
};
|
|
3945
|
-
const de_CreateVerifiedDestinationNumberResult = (output, context) => {
|
|
3946
|
-
return (0, smithy_client_1.take)(output, {
|
|
3947
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3948
|
-
DestinationPhoneNumber: smithy_client_1.expectString,
|
|
3949
|
-
Status: smithy_client_1.expectString,
|
|
3950
|
-
Tags: smithy_client_1._json,
|
|
3951
|
-
VerifiedDestinationNumberArn: smithy_client_1.expectString,
|
|
3952
|
-
VerifiedDestinationNumberId: smithy_client_1.expectString,
|
|
3953
|
-
});
|
|
3954
|
-
};
|
|
3955
|
-
const de_DeleteConfigurationSetResult = (output, context) => {
|
|
3956
|
-
return (0, smithy_client_1.take)(output, {
|
|
3957
|
-
ConfigurationSetArn: smithy_client_1.expectString,
|
|
3958
|
-
ConfigurationSetName: smithy_client_1.expectString,
|
|
3959
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3960
|
-
DefaultMessageType: smithy_client_1.expectString,
|
|
3961
|
-
DefaultSenderId: smithy_client_1.expectString,
|
|
3962
|
-
EventDestinations: smithy_client_1._json,
|
|
3963
|
-
});
|
|
3964
|
-
};
|
|
3965
|
-
const de_DeleteOptedOutNumberResult = (output, context) => {
|
|
3966
|
-
return (0, smithy_client_1.take)(output, {
|
|
3967
|
-
EndUserOptedOut: smithy_client_1.expectBoolean,
|
|
3968
|
-
OptOutListArn: smithy_client_1.expectString,
|
|
3969
|
-
OptOutListName: smithy_client_1.expectString,
|
|
3970
|
-
OptedOutNumber: smithy_client_1.expectString,
|
|
3971
|
-
OptedOutTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3972
|
-
});
|
|
3973
|
-
};
|
|
3974
|
-
const de_DeleteOptOutListResult = (output, context) => {
|
|
3975
|
-
return (0, smithy_client_1.take)(output, {
|
|
3976
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3977
|
-
OptOutListArn: smithy_client_1.expectString,
|
|
3978
|
-
OptOutListName: smithy_client_1.expectString,
|
|
3979
|
-
});
|
|
3980
|
-
};
|
|
3981
|
-
const de_DeletePoolResult = (output, context) => {
|
|
3982
|
-
return (0, smithy_client_1.take)(output, {
|
|
3983
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3984
|
-
MessageType: smithy_client_1.expectString,
|
|
3985
|
-
OptOutListName: smithy_client_1.expectString,
|
|
3986
|
-
PoolArn: smithy_client_1.expectString,
|
|
3987
|
-
PoolId: smithy_client_1.expectString,
|
|
3988
|
-
SelfManagedOptOutsEnabled: smithy_client_1.expectBoolean,
|
|
3989
|
-
SharedRoutesEnabled: smithy_client_1.expectBoolean,
|
|
3990
|
-
Status: smithy_client_1.expectString,
|
|
3991
|
-
TwoWayChannelArn: smithy_client_1.expectString,
|
|
3992
|
-
TwoWayChannelRole: smithy_client_1.expectString,
|
|
3993
|
-
TwoWayEnabled: smithy_client_1.expectBoolean,
|
|
3994
|
-
});
|
|
3995
|
-
};
|
|
3996
|
-
const de_DeleteRegistrationAttachmentResult = (output, context) => {
|
|
3997
|
-
return (0, smithy_client_1.take)(output, {
|
|
3998
|
-
AttachmentStatus: smithy_client_1.expectString,
|
|
3999
|
-
AttachmentUploadErrorReason: smithy_client_1.expectString,
|
|
4000
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4001
|
-
RegistrationAttachmentArn: smithy_client_1.expectString,
|
|
4002
|
-
RegistrationAttachmentId: smithy_client_1.expectString,
|
|
4003
|
-
});
|
|
4004
|
-
};
|
|
4005
|
-
const de_DeleteRegistrationResult = (output, context) => {
|
|
4006
|
-
return (0, smithy_client_1.take)(output, {
|
|
4007
|
-
AdditionalAttributes: smithy_client_1._json,
|
|
4008
|
-
ApprovedVersionNumber: smithy_client_1.expectLong,
|
|
4009
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4010
|
-
CurrentVersionNumber: smithy_client_1.expectLong,
|
|
4011
|
-
LatestDeniedVersionNumber: smithy_client_1.expectLong,
|
|
4012
|
-
RegistrationArn: smithy_client_1.expectString,
|
|
4013
|
-
RegistrationId: smithy_client_1.expectString,
|
|
4014
|
-
RegistrationStatus: smithy_client_1.expectString,
|
|
4015
|
-
RegistrationType: smithy_client_1.expectString,
|
|
4016
|
-
});
|
|
4017
|
-
};
|
|
4018
|
-
const de_DeleteVerifiedDestinationNumberResult = (output, context) => {
|
|
4019
|
-
return (0, smithy_client_1.take)(output, {
|
|
4020
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4021
|
-
DestinationPhoneNumber: smithy_client_1.expectString,
|
|
4022
|
-
VerifiedDestinationNumberArn: smithy_client_1.expectString,
|
|
4023
|
-
VerifiedDestinationNumberId: smithy_client_1.expectString,
|
|
4024
|
-
});
|
|
4025
|
-
};
|
|
4026
|
-
const de_DescribeConfigurationSetsResult = (output, context) => {
|
|
4027
|
-
return (0, smithy_client_1.take)(output, {
|
|
4028
|
-
ConfigurationSets: (_) => de_ConfigurationSetInformationList(_, context),
|
|
4029
|
-
NextToken: smithy_client_1.expectString,
|
|
4030
|
-
});
|
|
4031
|
-
};
|
|
4032
|
-
const de_DescribeOptedOutNumbersResult = (output, context) => {
|
|
4033
|
-
return (0, smithy_client_1.take)(output, {
|
|
4034
|
-
NextToken: smithy_client_1.expectString,
|
|
4035
|
-
OptOutListArn: smithy_client_1.expectString,
|
|
4036
|
-
OptOutListName: smithy_client_1.expectString,
|
|
4037
|
-
OptedOutNumbers: (_) => de_OptedOutNumberInformationList(_, context),
|
|
4038
|
-
});
|
|
4039
|
-
};
|
|
4040
|
-
const de_DescribeOptOutListsResult = (output, context) => {
|
|
4041
|
-
return (0, smithy_client_1.take)(output, {
|
|
4042
|
-
NextToken: smithy_client_1.expectString,
|
|
4043
|
-
OptOutLists: (_) => de_OptOutListInformationList(_, context),
|
|
4044
|
-
});
|
|
4045
|
-
};
|
|
4046
|
-
const de_DescribePhoneNumbersResult = (output, context) => {
|
|
4047
|
-
return (0, smithy_client_1.take)(output, {
|
|
4048
|
-
NextToken: smithy_client_1.expectString,
|
|
4049
|
-
PhoneNumbers: (_) => de_PhoneNumberInformationList(_, context),
|
|
4050
|
-
});
|
|
4051
|
-
};
|
|
4052
|
-
const de_DescribePoolsResult = (output, context) => {
|
|
4053
|
-
return (0, smithy_client_1.take)(output, {
|
|
4054
|
-
NextToken: smithy_client_1.expectString,
|
|
4055
|
-
Pools: (_) => de_PoolInformationList(_, context),
|
|
4056
|
-
});
|
|
4057
|
-
};
|
|
4058
|
-
const de_DescribeRegistrationAttachmentsResult = (output, context) => {
|
|
4059
|
-
return (0, smithy_client_1.take)(output, {
|
|
4060
|
-
NextToken: smithy_client_1.expectString,
|
|
4061
|
-
RegistrationAttachments: (_) => de_RegistrationAttachmentsInformationList(_, context),
|
|
4062
|
-
});
|
|
4063
|
-
};
|
|
4064
|
-
const de_DescribeRegistrationsResult = (output, context) => {
|
|
4065
|
-
return (0, smithy_client_1.take)(output, {
|
|
4066
|
-
NextToken: smithy_client_1.expectString,
|
|
4067
|
-
Registrations: (_) => de_RegistrationInformationList(_, context),
|
|
4068
|
-
});
|
|
4069
|
-
};
|
|
4070
|
-
const de_DescribeRegistrationVersionsResult = (output, context) => {
|
|
4071
|
-
return (0, smithy_client_1.take)(output, {
|
|
4072
|
-
NextToken: smithy_client_1.expectString,
|
|
4073
|
-
RegistrationArn: smithy_client_1.expectString,
|
|
4074
|
-
RegistrationId: smithy_client_1.expectString,
|
|
4075
|
-
RegistrationVersions: (_) => de_RegistrationVersionInformationList(_, context),
|
|
4076
|
-
});
|
|
4077
|
-
};
|
|
4078
|
-
const de_DescribeVerifiedDestinationNumbersResult = (output, context) => {
|
|
4079
|
-
return (0, smithy_client_1.take)(output, {
|
|
4080
|
-
NextToken: smithy_client_1.expectString,
|
|
4081
|
-
VerifiedDestinationNumbers: (_) => de_VerifiedDestinationNumberInformationList(_, context),
|
|
4082
|
-
});
|
|
4083
|
-
};
|
|
4084
|
-
const de_DiscardRegistrationVersionResult = (output, context) => {
|
|
4085
|
-
return (0, smithy_client_1.take)(output, {
|
|
4086
|
-
RegistrationArn: smithy_client_1.expectString,
|
|
4087
|
-
RegistrationId: smithy_client_1.expectString,
|
|
4088
|
-
RegistrationVersionStatus: smithy_client_1.expectString,
|
|
4089
|
-
RegistrationVersionStatusHistory: (_) => de_RegistrationVersionStatusHistory(_, context),
|
|
4090
|
-
VersionNumber: smithy_client_1.expectLong,
|
|
4091
|
-
});
|
|
4092
|
-
};
|
|
4093
|
-
const de_OptedOutNumberInformation = (output, context) => {
|
|
4094
|
-
return (0, smithy_client_1.take)(output, {
|
|
4095
|
-
EndUserOptedOut: smithy_client_1.expectBoolean,
|
|
4096
|
-
OptedOutNumber: smithy_client_1.expectString,
|
|
4097
|
-
OptedOutTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4098
|
-
});
|
|
4099
|
-
};
|
|
4100
|
-
const de_OptedOutNumberInformationList = (output, context) => {
|
|
4101
|
-
const retVal = (output || [])
|
|
4102
|
-
.filter((e) => e != null)
|
|
4103
|
-
.map((entry) => {
|
|
4104
|
-
return de_OptedOutNumberInformation(entry, context);
|
|
4105
|
-
});
|
|
4106
|
-
return retVal;
|
|
4107
|
-
};
|
|
4108
|
-
const de_OptOutListInformation = (output, context) => {
|
|
4109
|
-
return (0, smithy_client_1.take)(output, {
|
|
4110
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4111
|
-
OptOutListArn: smithy_client_1.expectString,
|
|
4112
|
-
OptOutListName: smithy_client_1.expectString,
|
|
4113
|
-
});
|
|
4114
|
-
};
|
|
4115
|
-
const de_OptOutListInformationList = (output, context) => {
|
|
4116
|
-
const retVal = (output || [])
|
|
4117
|
-
.filter((e) => e != null)
|
|
4118
|
-
.map((entry) => {
|
|
4119
|
-
return de_OptOutListInformation(entry, context);
|
|
4120
|
-
});
|
|
4121
|
-
return retVal;
|
|
4122
|
-
};
|
|
4123
|
-
const de_PhoneNumberInformation = (output, context) => {
|
|
4124
|
-
return (0, smithy_client_1.take)(output, {
|
|
4125
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4126
|
-
DeletionProtectionEnabled: smithy_client_1.expectBoolean,
|
|
4127
|
-
IsoCountryCode: smithy_client_1.expectString,
|
|
4128
|
-
MessageType: smithy_client_1.expectString,
|
|
4129
|
-
MonthlyLeasingPrice: smithy_client_1.expectString,
|
|
4130
|
-
NumberCapabilities: smithy_client_1._json,
|
|
4131
|
-
NumberType: smithy_client_1.expectString,
|
|
4132
|
-
OptOutListName: smithy_client_1.expectString,
|
|
4133
|
-
PhoneNumber: smithy_client_1.expectString,
|
|
4134
|
-
PhoneNumberArn: smithy_client_1.expectString,
|
|
4135
|
-
PhoneNumberId: smithy_client_1.expectString,
|
|
4136
|
-
PoolId: smithy_client_1.expectString,
|
|
4137
|
-
RegistrationId: smithy_client_1.expectString,
|
|
4138
|
-
SelfManagedOptOutsEnabled: smithy_client_1.expectBoolean,
|
|
4139
|
-
Status: smithy_client_1.expectString,
|
|
4140
|
-
TwoWayChannelArn: smithy_client_1.expectString,
|
|
4141
|
-
TwoWayChannelRole: smithy_client_1.expectString,
|
|
4142
|
-
TwoWayEnabled: smithy_client_1.expectBoolean,
|
|
4143
|
-
});
|
|
4144
|
-
};
|
|
4145
|
-
const de_PhoneNumberInformationList = (output, context) => {
|
|
4146
|
-
const retVal = (output || [])
|
|
4147
|
-
.filter((e) => e != null)
|
|
4148
|
-
.map((entry) => {
|
|
4149
|
-
return de_PhoneNumberInformation(entry, context);
|
|
4150
|
-
});
|
|
4151
|
-
return retVal;
|
|
4152
|
-
};
|
|
4153
|
-
const de_PoolInformation = (output, context) => {
|
|
4154
|
-
return (0, smithy_client_1.take)(output, {
|
|
4155
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4156
|
-
DeletionProtectionEnabled: smithy_client_1.expectBoolean,
|
|
4157
|
-
MessageType: smithy_client_1.expectString,
|
|
4158
|
-
OptOutListName: smithy_client_1.expectString,
|
|
4159
|
-
PoolArn: smithy_client_1.expectString,
|
|
4160
|
-
PoolId: smithy_client_1.expectString,
|
|
4161
|
-
SelfManagedOptOutsEnabled: smithy_client_1.expectBoolean,
|
|
4162
|
-
SharedRoutesEnabled: smithy_client_1.expectBoolean,
|
|
4163
|
-
Status: smithy_client_1.expectString,
|
|
4164
|
-
TwoWayChannelArn: smithy_client_1.expectString,
|
|
4165
|
-
TwoWayChannelRole: smithy_client_1.expectString,
|
|
4166
|
-
TwoWayEnabled: smithy_client_1.expectBoolean,
|
|
4167
|
-
});
|
|
4168
|
-
};
|
|
4169
|
-
const de_PoolInformationList = (output, context) => {
|
|
4170
|
-
const retVal = (output || [])
|
|
4171
|
-
.filter((e) => e != null)
|
|
4172
|
-
.map((entry) => {
|
|
4173
|
-
return de_PoolInformation(entry, context);
|
|
4174
|
-
});
|
|
4175
|
-
return retVal;
|
|
4176
|
-
};
|
|
4177
|
-
const de_PutOptedOutNumberResult = (output, context) => {
|
|
4178
|
-
return (0, smithy_client_1.take)(output, {
|
|
4179
|
-
EndUserOptedOut: smithy_client_1.expectBoolean,
|
|
4180
|
-
OptOutListArn: smithy_client_1.expectString,
|
|
4181
|
-
OptOutListName: smithy_client_1.expectString,
|
|
4182
|
-
OptedOutNumber: smithy_client_1.expectString,
|
|
4183
|
-
OptedOutTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4184
|
-
});
|
|
4185
|
-
};
|
|
4186
|
-
const de_RegistrationAttachmentsInformation = (output, context) => {
|
|
4187
|
-
return (0, smithy_client_1.take)(output, {
|
|
4188
|
-
AttachmentStatus: smithy_client_1.expectString,
|
|
4189
|
-
AttachmentUploadErrorReason: smithy_client_1.expectString,
|
|
4190
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4191
|
-
RegistrationAttachmentArn: smithy_client_1.expectString,
|
|
4192
|
-
RegistrationAttachmentId: smithy_client_1.expectString,
|
|
4193
|
-
});
|
|
4194
|
-
};
|
|
4195
|
-
const de_RegistrationAttachmentsInformationList = (output, context) => {
|
|
4196
|
-
const retVal = (output || [])
|
|
4197
|
-
.filter((e) => e != null)
|
|
4198
|
-
.map((entry) => {
|
|
4199
|
-
return de_RegistrationAttachmentsInformation(entry, context);
|
|
4200
|
-
});
|
|
4201
|
-
return retVal;
|
|
4202
|
-
};
|
|
4203
|
-
const de_RegistrationInformation = (output, context) => {
|
|
4204
|
-
return (0, smithy_client_1.take)(output, {
|
|
4205
|
-
AdditionalAttributes: smithy_client_1._json,
|
|
4206
|
-
ApprovedVersionNumber: smithy_client_1.expectLong,
|
|
4207
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4208
|
-
CurrentVersionNumber: smithy_client_1.expectLong,
|
|
4209
|
-
LatestDeniedVersionNumber: smithy_client_1.expectLong,
|
|
4210
|
-
RegistrationArn: smithy_client_1.expectString,
|
|
4211
|
-
RegistrationId: smithy_client_1.expectString,
|
|
4212
|
-
RegistrationStatus: smithy_client_1.expectString,
|
|
4213
|
-
RegistrationType: smithy_client_1.expectString,
|
|
4214
|
-
});
|
|
4215
|
-
};
|
|
4216
|
-
const de_RegistrationInformationList = (output, context) => {
|
|
4217
|
-
const retVal = (output || [])
|
|
4218
|
-
.filter((e) => e != null)
|
|
4219
|
-
.map((entry) => {
|
|
4220
|
-
return de_RegistrationInformation(entry, context);
|
|
4221
|
-
});
|
|
4222
|
-
return retVal;
|
|
4223
|
-
};
|
|
4224
|
-
const de_RegistrationVersionInformation = (output, context) => {
|
|
4225
|
-
return (0, smithy_client_1.take)(output, {
|
|
4226
|
-
DeniedReasons: smithy_client_1._json,
|
|
4227
|
-
RegistrationVersionStatus: smithy_client_1.expectString,
|
|
4228
|
-
RegistrationVersionStatusHistory: (_) => de_RegistrationVersionStatusHistory(_, context),
|
|
4229
|
-
VersionNumber: smithy_client_1.expectLong,
|
|
4230
|
-
});
|
|
4231
|
-
};
|
|
4232
|
-
const de_RegistrationVersionInformationList = (output, context) => {
|
|
4233
|
-
const retVal = (output || [])
|
|
4234
|
-
.filter((e) => e != null)
|
|
4235
|
-
.map((entry) => {
|
|
4236
|
-
return de_RegistrationVersionInformation(entry, context);
|
|
4237
|
-
});
|
|
4238
|
-
return retVal;
|
|
4239
|
-
};
|
|
4240
|
-
const de_RegistrationVersionStatusHistory = (output, context) => {
|
|
4241
|
-
return (0, smithy_client_1.take)(output, {
|
|
4242
|
-
ApprovedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4243
|
-
ArchivedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4244
|
-
DeniedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4245
|
-
DiscardedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4246
|
-
DraftTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4247
|
-
ReviewingTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4248
|
-
RevokedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4249
|
-
SubmittedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4250
|
-
});
|
|
4251
|
-
};
|
|
4252
|
-
const de_ReleasePhoneNumberResult = (output, context) => {
|
|
4253
|
-
return (0, smithy_client_1.take)(output, {
|
|
4254
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4255
|
-
IsoCountryCode: smithy_client_1.expectString,
|
|
4256
|
-
MessageType: smithy_client_1.expectString,
|
|
4257
|
-
MonthlyLeasingPrice: smithy_client_1.expectString,
|
|
4258
|
-
NumberCapabilities: smithy_client_1._json,
|
|
4259
|
-
NumberType: smithy_client_1.expectString,
|
|
4260
|
-
OptOutListName: smithy_client_1.expectString,
|
|
4261
|
-
PhoneNumber: smithy_client_1.expectString,
|
|
4262
|
-
PhoneNumberArn: smithy_client_1.expectString,
|
|
4263
|
-
PhoneNumberId: smithy_client_1.expectString,
|
|
4264
|
-
RegistrationId: smithy_client_1.expectString,
|
|
4265
|
-
SelfManagedOptOutsEnabled: smithy_client_1.expectBoolean,
|
|
4266
|
-
Status: smithy_client_1.expectString,
|
|
4267
|
-
TwoWayChannelArn: smithy_client_1.expectString,
|
|
4268
|
-
TwoWayChannelRole: smithy_client_1.expectString,
|
|
4269
|
-
TwoWayEnabled: smithy_client_1.expectBoolean,
|
|
4270
|
-
});
|
|
4271
|
-
};
|
|
4272
|
-
const de_RequestPhoneNumberResult = (output, context) => {
|
|
4273
|
-
return (0, smithy_client_1.take)(output, {
|
|
4274
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4275
|
-
DeletionProtectionEnabled: smithy_client_1.expectBoolean,
|
|
4276
|
-
IsoCountryCode: smithy_client_1.expectString,
|
|
4277
|
-
MessageType: smithy_client_1.expectString,
|
|
4278
|
-
MonthlyLeasingPrice: smithy_client_1.expectString,
|
|
4279
|
-
NumberCapabilities: smithy_client_1._json,
|
|
4280
|
-
NumberType: smithy_client_1.expectString,
|
|
4281
|
-
OptOutListName: smithy_client_1.expectString,
|
|
4282
|
-
PhoneNumber: smithy_client_1.expectString,
|
|
4283
|
-
PhoneNumberArn: smithy_client_1.expectString,
|
|
4284
|
-
PhoneNumberId: smithy_client_1.expectString,
|
|
4285
|
-
PoolId: smithy_client_1.expectString,
|
|
4286
|
-
RegistrationId: smithy_client_1.expectString,
|
|
4287
|
-
SelfManagedOptOutsEnabled: smithy_client_1.expectBoolean,
|
|
4288
|
-
Status: smithy_client_1.expectString,
|
|
4289
|
-
Tags: smithy_client_1._json,
|
|
4290
|
-
TwoWayChannelArn: smithy_client_1.expectString,
|
|
4291
|
-
TwoWayChannelRole: smithy_client_1.expectString,
|
|
4292
|
-
TwoWayEnabled: smithy_client_1.expectBoolean,
|
|
4293
|
-
});
|
|
4294
|
-
};
|
|
4295
|
-
const de_SubmitRegistrationVersionResult = (output, context) => {
|
|
4296
|
-
return (0, smithy_client_1.take)(output, {
|
|
4297
|
-
RegistrationArn: smithy_client_1.expectString,
|
|
4298
|
-
RegistrationId: smithy_client_1.expectString,
|
|
4299
|
-
RegistrationVersionStatus: smithy_client_1.expectString,
|
|
4300
|
-
RegistrationVersionStatusHistory: (_) => de_RegistrationVersionStatusHistory(_, context),
|
|
4301
|
-
VersionNumber: smithy_client_1.expectLong,
|
|
4302
|
-
});
|
|
4303
|
-
};
|
|
4304
|
-
const de_UpdatePhoneNumberResult = (output, context) => {
|
|
4305
|
-
return (0, smithy_client_1.take)(output, {
|
|
4306
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4307
|
-
DeletionProtectionEnabled: smithy_client_1.expectBoolean,
|
|
4308
|
-
IsoCountryCode: smithy_client_1.expectString,
|
|
4309
|
-
MessageType: smithy_client_1.expectString,
|
|
4310
|
-
MonthlyLeasingPrice: smithy_client_1.expectString,
|
|
4311
|
-
NumberCapabilities: smithy_client_1._json,
|
|
4312
|
-
NumberType: smithy_client_1.expectString,
|
|
4313
|
-
OptOutListName: smithy_client_1.expectString,
|
|
4314
|
-
PhoneNumber: smithy_client_1.expectString,
|
|
4315
|
-
PhoneNumberArn: smithy_client_1.expectString,
|
|
4316
|
-
PhoneNumberId: smithy_client_1.expectString,
|
|
4317
|
-
RegistrationId: smithy_client_1.expectString,
|
|
4318
|
-
SelfManagedOptOutsEnabled: smithy_client_1.expectBoolean,
|
|
4319
|
-
Status: smithy_client_1.expectString,
|
|
4320
|
-
TwoWayChannelArn: smithy_client_1.expectString,
|
|
4321
|
-
TwoWayChannelRole: smithy_client_1.expectString,
|
|
4322
|
-
TwoWayEnabled: smithy_client_1.expectBoolean,
|
|
4323
|
-
});
|
|
4324
|
-
};
|
|
4325
|
-
const de_UpdatePoolResult = (output, context) => {
|
|
4326
|
-
return (0, smithy_client_1.take)(output, {
|
|
4327
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4328
|
-
DeletionProtectionEnabled: smithy_client_1.expectBoolean,
|
|
4329
|
-
MessageType: smithy_client_1.expectString,
|
|
4330
|
-
OptOutListName: smithy_client_1.expectString,
|
|
4331
|
-
PoolArn: smithy_client_1.expectString,
|
|
4332
|
-
PoolId: smithy_client_1.expectString,
|
|
4333
|
-
SelfManagedOptOutsEnabled: smithy_client_1.expectBoolean,
|
|
4334
|
-
SharedRoutesEnabled: smithy_client_1.expectBoolean,
|
|
4335
|
-
Status: smithy_client_1.expectString,
|
|
4336
|
-
TwoWayChannelArn: smithy_client_1.expectString,
|
|
4337
|
-
TwoWayChannelRole: smithy_client_1.expectString,
|
|
4338
|
-
TwoWayEnabled: smithy_client_1.expectBoolean,
|
|
4339
|
-
});
|
|
4340
|
-
};
|
|
4341
|
-
const de_VerifiedDestinationNumberInformation = (output, context) => {
|
|
4342
|
-
return (0, smithy_client_1.take)(output, {
|
|
4343
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4344
|
-
DestinationPhoneNumber: smithy_client_1.expectString,
|
|
4345
|
-
Status: smithy_client_1.expectString,
|
|
4346
|
-
VerifiedDestinationNumberArn: smithy_client_1.expectString,
|
|
4347
|
-
VerifiedDestinationNumberId: smithy_client_1.expectString,
|
|
4348
|
-
});
|
|
4349
|
-
};
|
|
4350
|
-
const de_VerifiedDestinationNumberInformationList = (output, context) => {
|
|
4351
|
-
const retVal = (output || [])
|
|
4352
|
-
.filter((e) => e != null)
|
|
4353
|
-
.map((entry) => {
|
|
4354
|
-
return de_VerifiedDestinationNumberInformation(entry, context);
|
|
4355
|
-
});
|
|
4356
|
-
return retVal;
|
|
4357
|
-
};
|
|
4358
|
-
const de_VerifyDestinationNumberResult = (output, context) => {
|
|
4359
|
-
return (0, smithy_client_1.take)(output, {
|
|
4360
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4361
|
-
DestinationPhoneNumber: smithy_client_1.expectString,
|
|
4362
|
-
Status: smithy_client_1.expectString,
|
|
4363
|
-
VerifiedDestinationNumberArn: smithy_client_1.expectString,
|
|
4364
|
-
VerifiedDestinationNumberId: smithy_client_1.expectString,
|
|
4365
|
-
});
|
|
4366
|
-
};
|
|
4367
|
-
const deserializeMetadata = (output) => ({
|
|
4368
|
-
httpStatusCode: output.statusCode,
|
|
4369
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
4370
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
4371
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
4372
|
-
});
|
|
4373
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
4374
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(PinpointSMSVoiceV2ServiceException_1.PinpointSMSVoiceV2ServiceException);
|
|
4375
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
4376
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4377
|
-
const contents = {
|
|
4378
|
-
protocol,
|
|
4379
|
-
hostname,
|
|
4380
|
-
port,
|
|
4381
|
-
method: "POST",
|
|
4382
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
4383
|
-
headers,
|
|
4384
|
-
};
|
|
4385
|
-
if (resolvedHostname !== undefined) {
|
|
4386
|
-
contents.hostname = resolvedHostname;
|
|
4387
|
-
}
|
|
4388
|
-
if (body !== undefined) {
|
|
4389
|
-
contents.body = body;
|
|
4390
|
-
}
|
|
4391
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
4392
|
-
};
|
|
4393
|
-
function sharedHeaders(operation) {
|
|
4394
|
-
return {
|
|
4395
|
-
"content-type": "application/x-amz-json-1.0",
|
|
4396
|
-
"x-amz-target": `PinpointSMSVoiceV2.${operation}`,
|
|
4397
|
-
};
|
|
4398
|
-
}
|
|
4399
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4400
|
-
if (encoded.length) {
|
|
4401
|
-
return JSON.parse(encoded);
|
|
4402
|
-
}
|
|
4403
|
-
return {};
|
|
4404
|
-
});
|
|
4405
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
4406
|
-
const value = await parseBody(errorBody, context);
|
|
4407
|
-
value.message = value.message ?? value.Message;
|
|
4408
|
-
return value;
|
|
4409
|
-
};
|
|
4410
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
4411
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4412
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
4413
|
-
let cleanValue = rawValue;
|
|
4414
|
-
if (typeof cleanValue === "number") {
|
|
4415
|
-
cleanValue = cleanValue.toString();
|
|
4416
|
-
}
|
|
4417
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
4418
|
-
cleanValue = cleanValue.split(",")[0];
|
|
4419
|
-
}
|
|
4420
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
4421
|
-
cleanValue = cleanValue.split(":")[0];
|
|
4422
|
-
}
|
|
4423
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
4424
|
-
cleanValue = cleanValue.split("#")[1];
|
|
4425
|
-
}
|
|
4426
|
-
return cleanValue;
|
|
4427
|
-
};
|
|
4428
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
4429
|
-
if (headerKey !== undefined) {
|
|
4430
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
4431
|
-
}
|
|
4432
|
-
if (data.code !== undefined) {
|
|
4433
|
-
return sanitizeErrorCode(data.code);
|
|
4434
|
-
}
|
|
4435
|
-
if (data["__type"] !== undefined) {
|
|
4436
|
-
return sanitizeErrorCode(data["__type"]);
|
|
4437
|
-
}
|
|
4438
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|