@aws-sdk/client-sns 3.490.0 → 3.496.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/SNS.js +1 -95
- package/dist-cjs/SNSClient.js +1 -43
- package/dist-cjs/commands/AddPermissionCommand.js +1 -28
- package/dist-cjs/commands/CheckIfPhoneNumberIsOptedOutCommand.js +1 -28
- package/dist-cjs/commands/ConfirmSubscriptionCommand.js +1 -28
- package/dist-cjs/commands/CreatePlatformApplicationCommand.js +1 -28
- package/dist-cjs/commands/CreatePlatformEndpointCommand.js +1 -28
- package/dist-cjs/commands/CreateSMSSandboxPhoneNumberCommand.js +1 -28
- package/dist-cjs/commands/CreateTopicCommand.js +1 -28
- package/dist-cjs/commands/DeleteEndpointCommand.js +1 -28
- package/dist-cjs/commands/DeletePlatformApplicationCommand.js +1 -28
- package/dist-cjs/commands/DeleteSMSSandboxPhoneNumberCommand.js +1 -28
- package/dist-cjs/commands/DeleteTopicCommand.js +1 -28
- package/dist-cjs/commands/GetDataProtectionPolicyCommand.js +1 -28
- package/dist-cjs/commands/GetEndpointAttributesCommand.js +1 -28
- package/dist-cjs/commands/GetPlatformApplicationAttributesCommand.js +1 -28
- package/dist-cjs/commands/GetSMSAttributesCommand.js +1 -28
- package/dist-cjs/commands/GetSMSSandboxAccountStatusCommand.js +1 -28
- package/dist-cjs/commands/GetSubscriptionAttributesCommand.js +1 -28
- package/dist-cjs/commands/GetTopicAttributesCommand.js +1 -28
- package/dist-cjs/commands/ListEndpointsByPlatformApplicationCommand.js +1 -28
- package/dist-cjs/commands/ListOriginationNumbersCommand.js +1 -28
- package/dist-cjs/commands/ListPhoneNumbersOptedOutCommand.js +1 -28
- package/dist-cjs/commands/ListPlatformApplicationsCommand.js +1 -28
- package/dist-cjs/commands/ListSMSSandboxPhoneNumbersCommand.js +1 -28
- package/dist-cjs/commands/ListSubscriptionsByTopicCommand.js +1 -28
- package/dist-cjs/commands/ListSubscriptionsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListTopicsCommand.js +1 -28
- package/dist-cjs/commands/OptInPhoneNumberCommand.js +1 -28
- package/dist-cjs/commands/PublishBatchCommand.js +1 -28
- package/dist-cjs/commands/PublishCommand.js +1 -28
- package/dist-cjs/commands/PutDataProtectionPolicyCommand.js +1 -28
- package/dist-cjs/commands/RemovePermissionCommand.js +1 -28
- package/dist-cjs/commands/SetEndpointAttributesCommand.js +1 -28
- package/dist-cjs/commands/SetPlatformApplicationAttributesCommand.js +1 -28
- package/dist-cjs/commands/SetSMSAttributesCommand.js +1 -28
- package/dist-cjs/commands/SetSubscriptionAttributesCommand.js +1 -28
- package/dist-cjs/commands/SetTopicAttributesCommand.js +1 -28
- package/dist-cjs/commands/SubscribeCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UnsubscribeCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/VerifySMSSandboxPhoneNumberCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -45
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +5889 -11
- package/dist-cjs/models/SNSServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -478
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListEndpointsByPlatformApplicationPaginator.js +1 -7
- package/dist-cjs/pagination/ListOriginationNumbersPaginator.js +1 -7
- package/dist-cjs/pagination/ListPhoneNumbersOptedOutPaginator.js +1 -7
- package/dist-cjs/pagination/ListPlatformApplicationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListSMSSandboxPhoneNumbersPaginator.js +1 -7
- package/dist-cjs/pagination/ListSubscriptionsByTopicPaginator.js +1 -7
- package/dist-cjs/pagination/ListSubscriptionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListTopicsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -12
- package/dist-cjs/protocols/Aws_query.js +1 -4290
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,4290 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_DeleteEndpointCommand = exports.de_CreateTopicCommand = exports.de_CreateSMSSandboxPhoneNumberCommand = exports.de_CreatePlatformEndpointCommand = exports.de_CreatePlatformApplicationCommand = exports.de_ConfirmSubscriptionCommand = exports.de_CheckIfPhoneNumberIsOptedOutCommand = exports.de_AddPermissionCommand = exports.se_VerifySMSSandboxPhoneNumberCommand = exports.se_UntagResourceCommand = exports.se_UnsubscribeCommand = exports.se_TagResourceCommand = exports.se_SubscribeCommand = exports.se_SetTopicAttributesCommand = exports.se_SetSubscriptionAttributesCommand = exports.se_SetSMSAttributesCommand = exports.se_SetPlatformApplicationAttributesCommand = exports.se_SetEndpointAttributesCommand = exports.se_RemovePermissionCommand = exports.se_PutDataProtectionPolicyCommand = exports.se_PublishBatchCommand = exports.se_PublishCommand = exports.se_OptInPhoneNumberCommand = exports.se_ListTopicsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSubscriptionsByTopicCommand = exports.se_ListSubscriptionsCommand = exports.se_ListSMSSandboxPhoneNumbersCommand = exports.se_ListPlatformApplicationsCommand = exports.se_ListPhoneNumbersOptedOutCommand = exports.se_ListOriginationNumbersCommand = exports.se_ListEndpointsByPlatformApplicationCommand = exports.se_GetTopicAttributesCommand = exports.se_GetSubscriptionAttributesCommand = exports.se_GetSMSSandboxAccountStatusCommand = exports.se_GetSMSAttributesCommand = exports.se_GetPlatformApplicationAttributesCommand = exports.se_GetEndpointAttributesCommand = exports.se_GetDataProtectionPolicyCommand = exports.se_DeleteTopicCommand = exports.se_DeleteSMSSandboxPhoneNumberCommand = exports.se_DeletePlatformApplicationCommand = exports.se_DeleteEndpointCommand = exports.se_CreateTopicCommand = exports.se_CreateSMSSandboxPhoneNumberCommand = exports.se_CreatePlatformEndpointCommand = exports.se_CreatePlatformApplicationCommand = exports.se_ConfirmSubscriptionCommand = exports.se_CheckIfPhoneNumberIsOptedOutCommand = exports.se_AddPermissionCommand = void 0;
|
|
4
|
-
exports.de_VerifySMSSandboxPhoneNumberCommand = exports.de_UntagResourceCommand = exports.de_UnsubscribeCommand = exports.de_TagResourceCommand = exports.de_SubscribeCommand = exports.de_SetTopicAttributesCommand = exports.de_SetSubscriptionAttributesCommand = exports.de_SetSMSAttributesCommand = exports.de_SetPlatformApplicationAttributesCommand = exports.de_SetEndpointAttributesCommand = exports.de_RemovePermissionCommand = exports.de_PutDataProtectionPolicyCommand = exports.de_PublishBatchCommand = exports.de_PublishCommand = exports.de_OptInPhoneNumberCommand = exports.de_ListTopicsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSubscriptionsByTopicCommand = exports.de_ListSubscriptionsCommand = exports.de_ListSMSSandboxPhoneNumbersCommand = exports.de_ListPlatformApplicationsCommand = exports.de_ListPhoneNumbersOptedOutCommand = exports.de_ListOriginationNumbersCommand = exports.de_ListEndpointsByPlatformApplicationCommand = exports.de_GetTopicAttributesCommand = exports.de_GetSubscriptionAttributesCommand = exports.de_GetSMSSandboxAccountStatusCommand = exports.de_GetSMSAttributesCommand = exports.de_GetPlatformApplicationAttributesCommand = exports.de_GetEndpointAttributesCommand = exports.de_GetDataProtectionPolicyCommand = exports.de_DeleteTopicCommand = exports.de_DeleteSMSSandboxPhoneNumberCommand = exports.de_DeletePlatformApplicationCommand = void 0;
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const fast_xml_parser_1 = require("fast-xml-parser");
|
|
8
|
-
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const SNSServiceException_1 = require("../models/SNSServiceException");
|
|
10
|
-
const se_AddPermissionCommand = async (input, context) => {
|
|
11
|
-
const headers = SHARED_HEADERS;
|
|
12
|
-
let body;
|
|
13
|
-
body = buildFormUrlencodedString({
|
|
14
|
-
...se_AddPermissionInput(input, context),
|
|
15
|
-
[_A]: _AP,
|
|
16
|
-
[_V]: _,
|
|
17
|
-
});
|
|
18
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
19
|
-
};
|
|
20
|
-
exports.se_AddPermissionCommand = se_AddPermissionCommand;
|
|
21
|
-
const se_CheckIfPhoneNumberIsOptedOutCommand = async (input, context) => {
|
|
22
|
-
const headers = SHARED_HEADERS;
|
|
23
|
-
let body;
|
|
24
|
-
body = buildFormUrlencodedString({
|
|
25
|
-
...se_CheckIfPhoneNumberIsOptedOutInput(input, context),
|
|
26
|
-
[_A]: _CIPNIOO,
|
|
27
|
-
[_V]: _,
|
|
28
|
-
});
|
|
29
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
30
|
-
};
|
|
31
|
-
exports.se_CheckIfPhoneNumberIsOptedOutCommand = se_CheckIfPhoneNumberIsOptedOutCommand;
|
|
32
|
-
const se_ConfirmSubscriptionCommand = async (input, context) => {
|
|
33
|
-
const headers = SHARED_HEADERS;
|
|
34
|
-
let body;
|
|
35
|
-
body = buildFormUrlencodedString({
|
|
36
|
-
...se_ConfirmSubscriptionInput(input, context),
|
|
37
|
-
[_A]: _CS,
|
|
38
|
-
[_V]: _,
|
|
39
|
-
});
|
|
40
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
-
};
|
|
42
|
-
exports.se_ConfirmSubscriptionCommand = se_ConfirmSubscriptionCommand;
|
|
43
|
-
const se_CreatePlatformApplicationCommand = async (input, context) => {
|
|
44
|
-
const headers = SHARED_HEADERS;
|
|
45
|
-
let body;
|
|
46
|
-
body = buildFormUrlencodedString({
|
|
47
|
-
...se_CreatePlatformApplicationInput(input, context),
|
|
48
|
-
[_A]: _CPA,
|
|
49
|
-
[_V]: _,
|
|
50
|
-
});
|
|
51
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
52
|
-
};
|
|
53
|
-
exports.se_CreatePlatformApplicationCommand = se_CreatePlatformApplicationCommand;
|
|
54
|
-
const se_CreatePlatformEndpointCommand = async (input, context) => {
|
|
55
|
-
const headers = SHARED_HEADERS;
|
|
56
|
-
let body;
|
|
57
|
-
body = buildFormUrlencodedString({
|
|
58
|
-
...se_CreatePlatformEndpointInput(input, context),
|
|
59
|
-
[_A]: _CPE,
|
|
60
|
-
[_V]: _,
|
|
61
|
-
});
|
|
62
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
63
|
-
};
|
|
64
|
-
exports.se_CreatePlatformEndpointCommand = se_CreatePlatformEndpointCommand;
|
|
65
|
-
const se_CreateSMSSandboxPhoneNumberCommand = async (input, context) => {
|
|
66
|
-
const headers = SHARED_HEADERS;
|
|
67
|
-
let body;
|
|
68
|
-
body = buildFormUrlencodedString({
|
|
69
|
-
...se_CreateSMSSandboxPhoneNumberInput(input, context),
|
|
70
|
-
[_A]: _CSMSSPN,
|
|
71
|
-
[_V]: _,
|
|
72
|
-
});
|
|
73
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
74
|
-
};
|
|
75
|
-
exports.se_CreateSMSSandboxPhoneNumberCommand = se_CreateSMSSandboxPhoneNumberCommand;
|
|
76
|
-
const se_CreateTopicCommand = async (input, context) => {
|
|
77
|
-
const headers = SHARED_HEADERS;
|
|
78
|
-
let body;
|
|
79
|
-
body = buildFormUrlencodedString({
|
|
80
|
-
...se_CreateTopicInput(input, context),
|
|
81
|
-
[_A]: _CT,
|
|
82
|
-
[_V]: _,
|
|
83
|
-
});
|
|
84
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
|
-
};
|
|
86
|
-
exports.se_CreateTopicCommand = se_CreateTopicCommand;
|
|
87
|
-
const se_DeleteEndpointCommand = async (input, context) => {
|
|
88
|
-
const headers = SHARED_HEADERS;
|
|
89
|
-
let body;
|
|
90
|
-
body = buildFormUrlencodedString({
|
|
91
|
-
...se_DeleteEndpointInput(input, context),
|
|
92
|
-
[_A]: _DE,
|
|
93
|
-
[_V]: _,
|
|
94
|
-
});
|
|
95
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
|
-
};
|
|
97
|
-
exports.se_DeleteEndpointCommand = se_DeleteEndpointCommand;
|
|
98
|
-
const se_DeletePlatformApplicationCommand = async (input, context) => {
|
|
99
|
-
const headers = SHARED_HEADERS;
|
|
100
|
-
let body;
|
|
101
|
-
body = buildFormUrlencodedString({
|
|
102
|
-
...se_DeletePlatformApplicationInput(input, context),
|
|
103
|
-
[_A]: _DPA,
|
|
104
|
-
[_V]: _,
|
|
105
|
-
});
|
|
106
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
|
-
};
|
|
108
|
-
exports.se_DeletePlatformApplicationCommand = se_DeletePlatformApplicationCommand;
|
|
109
|
-
const se_DeleteSMSSandboxPhoneNumberCommand = async (input, context) => {
|
|
110
|
-
const headers = SHARED_HEADERS;
|
|
111
|
-
let body;
|
|
112
|
-
body = buildFormUrlencodedString({
|
|
113
|
-
...se_DeleteSMSSandboxPhoneNumberInput(input, context),
|
|
114
|
-
[_A]: _DSMSSPN,
|
|
115
|
-
[_V]: _,
|
|
116
|
-
});
|
|
117
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
|
-
};
|
|
119
|
-
exports.se_DeleteSMSSandboxPhoneNumberCommand = se_DeleteSMSSandboxPhoneNumberCommand;
|
|
120
|
-
const se_DeleteTopicCommand = async (input, context) => {
|
|
121
|
-
const headers = SHARED_HEADERS;
|
|
122
|
-
let body;
|
|
123
|
-
body = buildFormUrlencodedString({
|
|
124
|
-
...se_DeleteTopicInput(input, context),
|
|
125
|
-
[_A]: _DT,
|
|
126
|
-
[_V]: _,
|
|
127
|
-
});
|
|
128
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
129
|
-
};
|
|
130
|
-
exports.se_DeleteTopicCommand = se_DeleteTopicCommand;
|
|
131
|
-
const se_GetDataProtectionPolicyCommand = async (input, context) => {
|
|
132
|
-
const headers = SHARED_HEADERS;
|
|
133
|
-
let body;
|
|
134
|
-
body = buildFormUrlencodedString({
|
|
135
|
-
...se_GetDataProtectionPolicyInput(input, context),
|
|
136
|
-
[_A]: _GDPP,
|
|
137
|
-
[_V]: _,
|
|
138
|
-
});
|
|
139
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
140
|
-
};
|
|
141
|
-
exports.se_GetDataProtectionPolicyCommand = se_GetDataProtectionPolicyCommand;
|
|
142
|
-
const se_GetEndpointAttributesCommand = async (input, context) => {
|
|
143
|
-
const headers = SHARED_HEADERS;
|
|
144
|
-
let body;
|
|
145
|
-
body = buildFormUrlencodedString({
|
|
146
|
-
...se_GetEndpointAttributesInput(input, context),
|
|
147
|
-
[_A]: _GEA,
|
|
148
|
-
[_V]: _,
|
|
149
|
-
});
|
|
150
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
151
|
-
};
|
|
152
|
-
exports.se_GetEndpointAttributesCommand = se_GetEndpointAttributesCommand;
|
|
153
|
-
const se_GetPlatformApplicationAttributesCommand = async (input, context) => {
|
|
154
|
-
const headers = SHARED_HEADERS;
|
|
155
|
-
let body;
|
|
156
|
-
body = buildFormUrlencodedString({
|
|
157
|
-
...se_GetPlatformApplicationAttributesInput(input, context),
|
|
158
|
-
[_A]: _GPAA,
|
|
159
|
-
[_V]: _,
|
|
160
|
-
});
|
|
161
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
162
|
-
};
|
|
163
|
-
exports.se_GetPlatformApplicationAttributesCommand = se_GetPlatformApplicationAttributesCommand;
|
|
164
|
-
const se_GetSMSAttributesCommand = async (input, context) => {
|
|
165
|
-
const headers = SHARED_HEADERS;
|
|
166
|
-
let body;
|
|
167
|
-
body = buildFormUrlencodedString({
|
|
168
|
-
...se_GetSMSAttributesInput(input, context),
|
|
169
|
-
[_A]: _GSMSA,
|
|
170
|
-
[_V]: _,
|
|
171
|
-
});
|
|
172
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
173
|
-
};
|
|
174
|
-
exports.se_GetSMSAttributesCommand = se_GetSMSAttributesCommand;
|
|
175
|
-
const se_GetSMSSandboxAccountStatusCommand = async (input, context) => {
|
|
176
|
-
const headers = SHARED_HEADERS;
|
|
177
|
-
let body;
|
|
178
|
-
body = buildFormUrlencodedString({
|
|
179
|
-
...se_GetSMSSandboxAccountStatusInput(input, context),
|
|
180
|
-
[_A]: _GSMSSAS,
|
|
181
|
-
[_V]: _,
|
|
182
|
-
});
|
|
183
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
|
-
};
|
|
185
|
-
exports.se_GetSMSSandboxAccountStatusCommand = se_GetSMSSandboxAccountStatusCommand;
|
|
186
|
-
const se_GetSubscriptionAttributesCommand = async (input, context) => {
|
|
187
|
-
const headers = SHARED_HEADERS;
|
|
188
|
-
let body;
|
|
189
|
-
body = buildFormUrlencodedString({
|
|
190
|
-
...se_GetSubscriptionAttributesInput(input, context),
|
|
191
|
-
[_A]: _GSA,
|
|
192
|
-
[_V]: _,
|
|
193
|
-
});
|
|
194
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
195
|
-
};
|
|
196
|
-
exports.se_GetSubscriptionAttributesCommand = se_GetSubscriptionAttributesCommand;
|
|
197
|
-
const se_GetTopicAttributesCommand = async (input, context) => {
|
|
198
|
-
const headers = SHARED_HEADERS;
|
|
199
|
-
let body;
|
|
200
|
-
body = buildFormUrlencodedString({
|
|
201
|
-
...se_GetTopicAttributesInput(input, context),
|
|
202
|
-
[_A]: _GTA,
|
|
203
|
-
[_V]: _,
|
|
204
|
-
});
|
|
205
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
206
|
-
};
|
|
207
|
-
exports.se_GetTopicAttributesCommand = se_GetTopicAttributesCommand;
|
|
208
|
-
const se_ListEndpointsByPlatformApplicationCommand = async (input, context) => {
|
|
209
|
-
const headers = SHARED_HEADERS;
|
|
210
|
-
let body;
|
|
211
|
-
body = buildFormUrlencodedString({
|
|
212
|
-
...se_ListEndpointsByPlatformApplicationInput(input, context),
|
|
213
|
-
[_A]: _LEBPA,
|
|
214
|
-
[_V]: _,
|
|
215
|
-
});
|
|
216
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
217
|
-
};
|
|
218
|
-
exports.se_ListEndpointsByPlatformApplicationCommand = se_ListEndpointsByPlatformApplicationCommand;
|
|
219
|
-
const se_ListOriginationNumbersCommand = async (input, context) => {
|
|
220
|
-
const headers = SHARED_HEADERS;
|
|
221
|
-
let body;
|
|
222
|
-
body = buildFormUrlencodedString({
|
|
223
|
-
...se_ListOriginationNumbersRequest(input, context),
|
|
224
|
-
[_A]: _LON,
|
|
225
|
-
[_V]: _,
|
|
226
|
-
});
|
|
227
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
228
|
-
};
|
|
229
|
-
exports.se_ListOriginationNumbersCommand = se_ListOriginationNumbersCommand;
|
|
230
|
-
const se_ListPhoneNumbersOptedOutCommand = async (input, context) => {
|
|
231
|
-
const headers = SHARED_HEADERS;
|
|
232
|
-
let body;
|
|
233
|
-
body = buildFormUrlencodedString({
|
|
234
|
-
...se_ListPhoneNumbersOptedOutInput(input, context),
|
|
235
|
-
[_A]: _LPNOO,
|
|
236
|
-
[_V]: _,
|
|
237
|
-
});
|
|
238
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
239
|
-
};
|
|
240
|
-
exports.se_ListPhoneNumbersOptedOutCommand = se_ListPhoneNumbersOptedOutCommand;
|
|
241
|
-
const se_ListPlatformApplicationsCommand = async (input, context) => {
|
|
242
|
-
const headers = SHARED_HEADERS;
|
|
243
|
-
let body;
|
|
244
|
-
body = buildFormUrlencodedString({
|
|
245
|
-
...se_ListPlatformApplicationsInput(input, context),
|
|
246
|
-
[_A]: _LPA,
|
|
247
|
-
[_V]: _,
|
|
248
|
-
});
|
|
249
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
250
|
-
};
|
|
251
|
-
exports.se_ListPlatformApplicationsCommand = se_ListPlatformApplicationsCommand;
|
|
252
|
-
const se_ListSMSSandboxPhoneNumbersCommand = async (input, context) => {
|
|
253
|
-
const headers = SHARED_HEADERS;
|
|
254
|
-
let body;
|
|
255
|
-
body = buildFormUrlencodedString({
|
|
256
|
-
...se_ListSMSSandboxPhoneNumbersInput(input, context),
|
|
257
|
-
[_A]: _LSMSSPN,
|
|
258
|
-
[_V]: _,
|
|
259
|
-
});
|
|
260
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
261
|
-
};
|
|
262
|
-
exports.se_ListSMSSandboxPhoneNumbersCommand = se_ListSMSSandboxPhoneNumbersCommand;
|
|
263
|
-
const se_ListSubscriptionsCommand = async (input, context) => {
|
|
264
|
-
const headers = SHARED_HEADERS;
|
|
265
|
-
let body;
|
|
266
|
-
body = buildFormUrlencodedString({
|
|
267
|
-
...se_ListSubscriptionsInput(input, context),
|
|
268
|
-
[_A]: _LS,
|
|
269
|
-
[_V]: _,
|
|
270
|
-
});
|
|
271
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
272
|
-
};
|
|
273
|
-
exports.se_ListSubscriptionsCommand = se_ListSubscriptionsCommand;
|
|
274
|
-
const se_ListSubscriptionsByTopicCommand = async (input, context) => {
|
|
275
|
-
const headers = SHARED_HEADERS;
|
|
276
|
-
let body;
|
|
277
|
-
body = buildFormUrlencodedString({
|
|
278
|
-
...se_ListSubscriptionsByTopicInput(input, context),
|
|
279
|
-
[_A]: _LSBT,
|
|
280
|
-
[_V]: _,
|
|
281
|
-
});
|
|
282
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
283
|
-
};
|
|
284
|
-
exports.se_ListSubscriptionsByTopicCommand = se_ListSubscriptionsByTopicCommand;
|
|
285
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
286
|
-
const headers = SHARED_HEADERS;
|
|
287
|
-
let body;
|
|
288
|
-
body = buildFormUrlencodedString({
|
|
289
|
-
...se_ListTagsForResourceRequest(input, context),
|
|
290
|
-
[_A]: _LTFR,
|
|
291
|
-
[_V]: _,
|
|
292
|
-
});
|
|
293
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
294
|
-
};
|
|
295
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
296
|
-
const se_ListTopicsCommand = async (input, context) => {
|
|
297
|
-
const headers = SHARED_HEADERS;
|
|
298
|
-
let body;
|
|
299
|
-
body = buildFormUrlencodedString({
|
|
300
|
-
...se_ListTopicsInput(input, context),
|
|
301
|
-
[_A]: _LT,
|
|
302
|
-
[_V]: _,
|
|
303
|
-
});
|
|
304
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
305
|
-
};
|
|
306
|
-
exports.se_ListTopicsCommand = se_ListTopicsCommand;
|
|
307
|
-
const se_OptInPhoneNumberCommand = async (input, context) => {
|
|
308
|
-
const headers = SHARED_HEADERS;
|
|
309
|
-
let body;
|
|
310
|
-
body = buildFormUrlencodedString({
|
|
311
|
-
...se_OptInPhoneNumberInput(input, context),
|
|
312
|
-
[_A]: _OIPN,
|
|
313
|
-
[_V]: _,
|
|
314
|
-
});
|
|
315
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
316
|
-
};
|
|
317
|
-
exports.se_OptInPhoneNumberCommand = se_OptInPhoneNumberCommand;
|
|
318
|
-
const se_PublishCommand = async (input, context) => {
|
|
319
|
-
const headers = SHARED_HEADERS;
|
|
320
|
-
let body;
|
|
321
|
-
body = buildFormUrlencodedString({
|
|
322
|
-
...se_PublishInput(input, context),
|
|
323
|
-
[_A]: _P,
|
|
324
|
-
[_V]: _,
|
|
325
|
-
});
|
|
326
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
327
|
-
};
|
|
328
|
-
exports.se_PublishCommand = se_PublishCommand;
|
|
329
|
-
const se_PublishBatchCommand = async (input, context) => {
|
|
330
|
-
const headers = SHARED_HEADERS;
|
|
331
|
-
let body;
|
|
332
|
-
body = buildFormUrlencodedString({
|
|
333
|
-
...se_PublishBatchInput(input, context),
|
|
334
|
-
[_A]: _PB,
|
|
335
|
-
[_V]: _,
|
|
336
|
-
});
|
|
337
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
338
|
-
};
|
|
339
|
-
exports.se_PublishBatchCommand = se_PublishBatchCommand;
|
|
340
|
-
const se_PutDataProtectionPolicyCommand = async (input, context) => {
|
|
341
|
-
const headers = SHARED_HEADERS;
|
|
342
|
-
let body;
|
|
343
|
-
body = buildFormUrlencodedString({
|
|
344
|
-
...se_PutDataProtectionPolicyInput(input, context),
|
|
345
|
-
[_A]: _PDPP,
|
|
346
|
-
[_V]: _,
|
|
347
|
-
});
|
|
348
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
349
|
-
};
|
|
350
|
-
exports.se_PutDataProtectionPolicyCommand = se_PutDataProtectionPolicyCommand;
|
|
351
|
-
const se_RemovePermissionCommand = async (input, context) => {
|
|
352
|
-
const headers = SHARED_HEADERS;
|
|
353
|
-
let body;
|
|
354
|
-
body = buildFormUrlencodedString({
|
|
355
|
-
...se_RemovePermissionInput(input, context),
|
|
356
|
-
[_A]: _RP,
|
|
357
|
-
[_V]: _,
|
|
358
|
-
});
|
|
359
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
360
|
-
};
|
|
361
|
-
exports.se_RemovePermissionCommand = se_RemovePermissionCommand;
|
|
362
|
-
const se_SetEndpointAttributesCommand = async (input, context) => {
|
|
363
|
-
const headers = SHARED_HEADERS;
|
|
364
|
-
let body;
|
|
365
|
-
body = buildFormUrlencodedString({
|
|
366
|
-
...se_SetEndpointAttributesInput(input, context),
|
|
367
|
-
[_A]: _SEA,
|
|
368
|
-
[_V]: _,
|
|
369
|
-
});
|
|
370
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
371
|
-
};
|
|
372
|
-
exports.se_SetEndpointAttributesCommand = se_SetEndpointAttributesCommand;
|
|
373
|
-
const se_SetPlatformApplicationAttributesCommand = async (input, context) => {
|
|
374
|
-
const headers = SHARED_HEADERS;
|
|
375
|
-
let body;
|
|
376
|
-
body = buildFormUrlencodedString({
|
|
377
|
-
...se_SetPlatformApplicationAttributesInput(input, context),
|
|
378
|
-
[_A]: _SPAA,
|
|
379
|
-
[_V]: _,
|
|
380
|
-
});
|
|
381
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
382
|
-
};
|
|
383
|
-
exports.se_SetPlatformApplicationAttributesCommand = se_SetPlatformApplicationAttributesCommand;
|
|
384
|
-
const se_SetSMSAttributesCommand = async (input, context) => {
|
|
385
|
-
const headers = SHARED_HEADERS;
|
|
386
|
-
let body;
|
|
387
|
-
body = buildFormUrlencodedString({
|
|
388
|
-
...se_SetSMSAttributesInput(input, context),
|
|
389
|
-
[_A]: _SSMSA,
|
|
390
|
-
[_V]: _,
|
|
391
|
-
});
|
|
392
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
393
|
-
};
|
|
394
|
-
exports.se_SetSMSAttributesCommand = se_SetSMSAttributesCommand;
|
|
395
|
-
const se_SetSubscriptionAttributesCommand = async (input, context) => {
|
|
396
|
-
const headers = SHARED_HEADERS;
|
|
397
|
-
let body;
|
|
398
|
-
body = buildFormUrlencodedString({
|
|
399
|
-
...se_SetSubscriptionAttributesInput(input, context),
|
|
400
|
-
[_A]: _SSA,
|
|
401
|
-
[_V]: _,
|
|
402
|
-
});
|
|
403
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
404
|
-
};
|
|
405
|
-
exports.se_SetSubscriptionAttributesCommand = se_SetSubscriptionAttributesCommand;
|
|
406
|
-
const se_SetTopicAttributesCommand = async (input, context) => {
|
|
407
|
-
const headers = SHARED_HEADERS;
|
|
408
|
-
let body;
|
|
409
|
-
body = buildFormUrlencodedString({
|
|
410
|
-
...se_SetTopicAttributesInput(input, context),
|
|
411
|
-
[_A]: _STA,
|
|
412
|
-
[_V]: _,
|
|
413
|
-
});
|
|
414
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
415
|
-
};
|
|
416
|
-
exports.se_SetTopicAttributesCommand = se_SetTopicAttributesCommand;
|
|
417
|
-
const se_SubscribeCommand = async (input, context) => {
|
|
418
|
-
const headers = SHARED_HEADERS;
|
|
419
|
-
let body;
|
|
420
|
-
body = buildFormUrlencodedString({
|
|
421
|
-
...se_SubscribeInput(input, context),
|
|
422
|
-
[_A]: _S,
|
|
423
|
-
[_V]: _,
|
|
424
|
-
});
|
|
425
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
426
|
-
};
|
|
427
|
-
exports.se_SubscribeCommand = se_SubscribeCommand;
|
|
428
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
429
|
-
const headers = SHARED_HEADERS;
|
|
430
|
-
let body;
|
|
431
|
-
body = buildFormUrlencodedString({
|
|
432
|
-
...se_TagResourceRequest(input, context),
|
|
433
|
-
[_A]: _TR,
|
|
434
|
-
[_V]: _,
|
|
435
|
-
});
|
|
436
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
437
|
-
};
|
|
438
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
439
|
-
const se_UnsubscribeCommand = async (input, context) => {
|
|
440
|
-
const headers = SHARED_HEADERS;
|
|
441
|
-
let body;
|
|
442
|
-
body = buildFormUrlencodedString({
|
|
443
|
-
...se_UnsubscribeInput(input, context),
|
|
444
|
-
[_A]: _U,
|
|
445
|
-
[_V]: _,
|
|
446
|
-
});
|
|
447
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
448
|
-
};
|
|
449
|
-
exports.se_UnsubscribeCommand = se_UnsubscribeCommand;
|
|
450
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
451
|
-
const headers = SHARED_HEADERS;
|
|
452
|
-
let body;
|
|
453
|
-
body = buildFormUrlencodedString({
|
|
454
|
-
...se_UntagResourceRequest(input, context),
|
|
455
|
-
[_A]: _UR,
|
|
456
|
-
[_V]: _,
|
|
457
|
-
});
|
|
458
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
459
|
-
};
|
|
460
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
461
|
-
const se_VerifySMSSandboxPhoneNumberCommand = async (input, context) => {
|
|
462
|
-
const headers = SHARED_HEADERS;
|
|
463
|
-
let body;
|
|
464
|
-
body = buildFormUrlencodedString({
|
|
465
|
-
...se_VerifySMSSandboxPhoneNumberInput(input, context),
|
|
466
|
-
[_A]: _VSMSSPN,
|
|
467
|
-
[_V]: _,
|
|
468
|
-
});
|
|
469
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
470
|
-
};
|
|
471
|
-
exports.se_VerifySMSSandboxPhoneNumberCommand = se_VerifySMSSandboxPhoneNumberCommand;
|
|
472
|
-
const de_AddPermissionCommand = async (output, context) => {
|
|
473
|
-
if (output.statusCode >= 300) {
|
|
474
|
-
return de_AddPermissionCommandError(output, context);
|
|
475
|
-
}
|
|
476
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
477
|
-
const response = {
|
|
478
|
-
$metadata: deserializeMetadata(output),
|
|
479
|
-
};
|
|
480
|
-
return response;
|
|
481
|
-
};
|
|
482
|
-
exports.de_AddPermissionCommand = de_AddPermissionCommand;
|
|
483
|
-
const de_AddPermissionCommandError = async (output, context) => {
|
|
484
|
-
const parsedOutput = {
|
|
485
|
-
...output,
|
|
486
|
-
body: await parseErrorBody(output.body, context),
|
|
487
|
-
};
|
|
488
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
489
|
-
switch (errorCode) {
|
|
490
|
-
case "AuthorizationError":
|
|
491
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
492
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
493
|
-
case "InternalError":
|
|
494
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
495
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
496
|
-
case "InvalidParameter":
|
|
497
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
498
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
499
|
-
case "NotFound":
|
|
500
|
-
case "com.amazonaws.sns#NotFoundException":
|
|
501
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
502
|
-
default:
|
|
503
|
-
const parsedBody = parsedOutput.body;
|
|
504
|
-
return throwDefaultError({
|
|
505
|
-
output,
|
|
506
|
-
parsedBody: parsedBody.Error,
|
|
507
|
-
errorCode,
|
|
508
|
-
});
|
|
509
|
-
}
|
|
510
|
-
};
|
|
511
|
-
const de_CheckIfPhoneNumberIsOptedOutCommand = async (output, context) => {
|
|
512
|
-
if (output.statusCode >= 300) {
|
|
513
|
-
return de_CheckIfPhoneNumberIsOptedOutCommandError(output, context);
|
|
514
|
-
}
|
|
515
|
-
const data = await parseBody(output.body, context);
|
|
516
|
-
let contents = {};
|
|
517
|
-
contents = de_CheckIfPhoneNumberIsOptedOutResponse(data.CheckIfPhoneNumberIsOptedOutResult, context);
|
|
518
|
-
const response = {
|
|
519
|
-
$metadata: deserializeMetadata(output),
|
|
520
|
-
...contents,
|
|
521
|
-
};
|
|
522
|
-
return response;
|
|
523
|
-
};
|
|
524
|
-
exports.de_CheckIfPhoneNumberIsOptedOutCommand = de_CheckIfPhoneNumberIsOptedOutCommand;
|
|
525
|
-
const de_CheckIfPhoneNumberIsOptedOutCommandError = async (output, context) => {
|
|
526
|
-
const parsedOutput = {
|
|
527
|
-
...output,
|
|
528
|
-
body: await parseErrorBody(output.body, context),
|
|
529
|
-
};
|
|
530
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
531
|
-
switch (errorCode) {
|
|
532
|
-
case "AuthorizationError":
|
|
533
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
534
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
535
|
-
case "InternalError":
|
|
536
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
537
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
538
|
-
case "InvalidParameter":
|
|
539
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
540
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
541
|
-
case "Throttled":
|
|
542
|
-
case "com.amazonaws.sns#ThrottledException":
|
|
543
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
544
|
-
default:
|
|
545
|
-
const parsedBody = parsedOutput.body;
|
|
546
|
-
return throwDefaultError({
|
|
547
|
-
output,
|
|
548
|
-
parsedBody: parsedBody.Error,
|
|
549
|
-
errorCode,
|
|
550
|
-
});
|
|
551
|
-
}
|
|
552
|
-
};
|
|
553
|
-
const de_ConfirmSubscriptionCommand = async (output, context) => {
|
|
554
|
-
if (output.statusCode >= 300) {
|
|
555
|
-
return de_ConfirmSubscriptionCommandError(output, context);
|
|
556
|
-
}
|
|
557
|
-
const data = await parseBody(output.body, context);
|
|
558
|
-
let contents = {};
|
|
559
|
-
contents = de_ConfirmSubscriptionResponse(data.ConfirmSubscriptionResult, context);
|
|
560
|
-
const response = {
|
|
561
|
-
$metadata: deserializeMetadata(output),
|
|
562
|
-
...contents,
|
|
563
|
-
};
|
|
564
|
-
return response;
|
|
565
|
-
};
|
|
566
|
-
exports.de_ConfirmSubscriptionCommand = de_ConfirmSubscriptionCommand;
|
|
567
|
-
const de_ConfirmSubscriptionCommandError = async (output, context) => {
|
|
568
|
-
const parsedOutput = {
|
|
569
|
-
...output,
|
|
570
|
-
body: await parseErrorBody(output.body, context),
|
|
571
|
-
};
|
|
572
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
573
|
-
switch (errorCode) {
|
|
574
|
-
case "AuthorizationError":
|
|
575
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
576
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
577
|
-
case "FilterPolicyLimitExceeded":
|
|
578
|
-
case "com.amazonaws.sns#FilterPolicyLimitExceededException":
|
|
579
|
-
throw await de_FilterPolicyLimitExceededExceptionRes(parsedOutput, context);
|
|
580
|
-
case "InternalError":
|
|
581
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
582
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
583
|
-
case "InvalidParameter":
|
|
584
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
585
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
586
|
-
case "NotFound":
|
|
587
|
-
case "com.amazonaws.sns#NotFoundException":
|
|
588
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
589
|
-
case "ReplayLimitExceeded":
|
|
590
|
-
case "com.amazonaws.sns#ReplayLimitExceededException":
|
|
591
|
-
throw await de_ReplayLimitExceededExceptionRes(parsedOutput, context);
|
|
592
|
-
case "SubscriptionLimitExceeded":
|
|
593
|
-
case "com.amazonaws.sns#SubscriptionLimitExceededException":
|
|
594
|
-
throw await de_SubscriptionLimitExceededExceptionRes(parsedOutput, context);
|
|
595
|
-
default:
|
|
596
|
-
const parsedBody = parsedOutput.body;
|
|
597
|
-
return throwDefaultError({
|
|
598
|
-
output,
|
|
599
|
-
parsedBody: parsedBody.Error,
|
|
600
|
-
errorCode,
|
|
601
|
-
});
|
|
602
|
-
}
|
|
603
|
-
};
|
|
604
|
-
const de_CreatePlatformApplicationCommand = async (output, context) => {
|
|
605
|
-
if (output.statusCode >= 300) {
|
|
606
|
-
return de_CreatePlatformApplicationCommandError(output, context);
|
|
607
|
-
}
|
|
608
|
-
const data = await parseBody(output.body, context);
|
|
609
|
-
let contents = {};
|
|
610
|
-
contents = de_CreatePlatformApplicationResponse(data.CreatePlatformApplicationResult, context);
|
|
611
|
-
const response = {
|
|
612
|
-
$metadata: deserializeMetadata(output),
|
|
613
|
-
...contents,
|
|
614
|
-
};
|
|
615
|
-
return response;
|
|
616
|
-
};
|
|
617
|
-
exports.de_CreatePlatformApplicationCommand = de_CreatePlatformApplicationCommand;
|
|
618
|
-
const de_CreatePlatformApplicationCommandError = async (output, context) => {
|
|
619
|
-
const parsedOutput = {
|
|
620
|
-
...output,
|
|
621
|
-
body: await parseErrorBody(output.body, context),
|
|
622
|
-
};
|
|
623
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
624
|
-
switch (errorCode) {
|
|
625
|
-
case "AuthorizationError":
|
|
626
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
627
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
628
|
-
case "InternalError":
|
|
629
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
630
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
631
|
-
case "InvalidParameter":
|
|
632
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
633
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
634
|
-
default:
|
|
635
|
-
const parsedBody = parsedOutput.body;
|
|
636
|
-
return throwDefaultError({
|
|
637
|
-
output,
|
|
638
|
-
parsedBody: parsedBody.Error,
|
|
639
|
-
errorCode,
|
|
640
|
-
});
|
|
641
|
-
}
|
|
642
|
-
};
|
|
643
|
-
const de_CreatePlatformEndpointCommand = async (output, context) => {
|
|
644
|
-
if (output.statusCode >= 300) {
|
|
645
|
-
return de_CreatePlatformEndpointCommandError(output, context);
|
|
646
|
-
}
|
|
647
|
-
const data = await parseBody(output.body, context);
|
|
648
|
-
let contents = {};
|
|
649
|
-
contents = de_CreateEndpointResponse(data.CreatePlatformEndpointResult, context);
|
|
650
|
-
const response = {
|
|
651
|
-
$metadata: deserializeMetadata(output),
|
|
652
|
-
...contents,
|
|
653
|
-
};
|
|
654
|
-
return response;
|
|
655
|
-
};
|
|
656
|
-
exports.de_CreatePlatformEndpointCommand = de_CreatePlatformEndpointCommand;
|
|
657
|
-
const de_CreatePlatformEndpointCommandError = async (output, context) => {
|
|
658
|
-
const parsedOutput = {
|
|
659
|
-
...output,
|
|
660
|
-
body: await parseErrorBody(output.body, context),
|
|
661
|
-
};
|
|
662
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
663
|
-
switch (errorCode) {
|
|
664
|
-
case "AuthorizationError":
|
|
665
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
666
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
667
|
-
case "InternalError":
|
|
668
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
669
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
670
|
-
case "InvalidParameter":
|
|
671
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
672
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
673
|
-
case "NotFound":
|
|
674
|
-
case "com.amazonaws.sns#NotFoundException":
|
|
675
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
676
|
-
default:
|
|
677
|
-
const parsedBody = parsedOutput.body;
|
|
678
|
-
return throwDefaultError({
|
|
679
|
-
output,
|
|
680
|
-
parsedBody: parsedBody.Error,
|
|
681
|
-
errorCode,
|
|
682
|
-
});
|
|
683
|
-
}
|
|
684
|
-
};
|
|
685
|
-
const de_CreateSMSSandboxPhoneNumberCommand = async (output, context) => {
|
|
686
|
-
if (output.statusCode >= 300) {
|
|
687
|
-
return de_CreateSMSSandboxPhoneNumberCommandError(output, context);
|
|
688
|
-
}
|
|
689
|
-
const data = await parseBody(output.body, context);
|
|
690
|
-
let contents = {};
|
|
691
|
-
contents = de_CreateSMSSandboxPhoneNumberResult(data.CreateSMSSandboxPhoneNumberResult, context);
|
|
692
|
-
const response = {
|
|
693
|
-
$metadata: deserializeMetadata(output),
|
|
694
|
-
...contents,
|
|
695
|
-
};
|
|
696
|
-
return response;
|
|
697
|
-
};
|
|
698
|
-
exports.de_CreateSMSSandboxPhoneNumberCommand = de_CreateSMSSandboxPhoneNumberCommand;
|
|
699
|
-
const de_CreateSMSSandboxPhoneNumberCommandError = async (output, context) => {
|
|
700
|
-
const parsedOutput = {
|
|
701
|
-
...output,
|
|
702
|
-
body: await parseErrorBody(output.body, context),
|
|
703
|
-
};
|
|
704
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
705
|
-
switch (errorCode) {
|
|
706
|
-
case "AuthorizationError":
|
|
707
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
708
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
709
|
-
case "InternalError":
|
|
710
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
711
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
712
|
-
case "InvalidParameter":
|
|
713
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
714
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
715
|
-
case "OptedOut":
|
|
716
|
-
case "com.amazonaws.sns#OptedOutException":
|
|
717
|
-
throw await de_OptedOutExceptionRes(parsedOutput, context);
|
|
718
|
-
case "Throttled":
|
|
719
|
-
case "com.amazonaws.sns#ThrottledException":
|
|
720
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
721
|
-
case "UserError":
|
|
722
|
-
case "com.amazonaws.sns#UserErrorException":
|
|
723
|
-
throw await de_UserErrorExceptionRes(parsedOutput, context);
|
|
724
|
-
default:
|
|
725
|
-
const parsedBody = parsedOutput.body;
|
|
726
|
-
return throwDefaultError({
|
|
727
|
-
output,
|
|
728
|
-
parsedBody: parsedBody.Error,
|
|
729
|
-
errorCode,
|
|
730
|
-
});
|
|
731
|
-
}
|
|
732
|
-
};
|
|
733
|
-
const de_CreateTopicCommand = async (output, context) => {
|
|
734
|
-
if (output.statusCode >= 300) {
|
|
735
|
-
return de_CreateTopicCommandError(output, context);
|
|
736
|
-
}
|
|
737
|
-
const data = await parseBody(output.body, context);
|
|
738
|
-
let contents = {};
|
|
739
|
-
contents = de_CreateTopicResponse(data.CreateTopicResult, context);
|
|
740
|
-
const response = {
|
|
741
|
-
$metadata: deserializeMetadata(output),
|
|
742
|
-
...contents,
|
|
743
|
-
};
|
|
744
|
-
return response;
|
|
745
|
-
};
|
|
746
|
-
exports.de_CreateTopicCommand = de_CreateTopicCommand;
|
|
747
|
-
const de_CreateTopicCommandError = async (output, context) => {
|
|
748
|
-
const parsedOutput = {
|
|
749
|
-
...output,
|
|
750
|
-
body: await parseErrorBody(output.body, context),
|
|
751
|
-
};
|
|
752
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
753
|
-
switch (errorCode) {
|
|
754
|
-
case "AuthorizationError":
|
|
755
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
756
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
757
|
-
case "ConcurrentAccess":
|
|
758
|
-
case "com.amazonaws.sns#ConcurrentAccessException":
|
|
759
|
-
throw await de_ConcurrentAccessExceptionRes(parsedOutput, context);
|
|
760
|
-
case "InternalError":
|
|
761
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
762
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
763
|
-
case "InvalidParameter":
|
|
764
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
765
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
766
|
-
case "InvalidSecurity":
|
|
767
|
-
case "com.amazonaws.sns#InvalidSecurityException":
|
|
768
|
-
throw await de_InvalidSecurityExceptionRes(parsedOutput, context);
|
|
769
|
-
case "StaleTag":
|
|
770
|
-
case "com.amazonaws.sns#StaleTagException":
|
|
771
|
-
throw await de_StaleTagExceptionRes(parsedOutput, context);
|
|
772
|
-
case "TagLimitExceeded":
|
|
773
|
-
case "com.amazonaws.sns#TagLimitExceededException":
|
|
774
|
-
throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
|
|
775
|
-
case "TagPolicy":
|
|
776
|
-
case "com.amazonaws.sns#TagPolicyException":
|
|
777
|
-
throw await de_TagPolicyExceptionRes(parsedOutput, context);
|
|
778
|
-
case "TopicLimitExceeded":
|
|
779
|
-
case "com.amazonaws.sns#TopicLimitExceededException":
|
|
780
|
-
throw await de_TopicLimitExceededExceptionRes(parsedOutput, context);
|
|
781
|
-
default:
|
|
782
|
-
const parsedBody = parsedOutput.body;
|
|
783
|
-
return throwDefaultError({
|
|
784
|
-
output,
|
|
785
|
-
parsedBody: parsedBody.Error,
|
|
786
|
-
errorCode,
|
|
787
|
-
});
|
|
788
|
-
}
|
|
789
|
-
};
|
|
790
|
-
const de_DeleteEndpointCommand = async (output, context) => {
|
|
791
|
-
if (output.statusCode >= 300) {
|
|
792
|
-
return de_DeleteEndpointCommandError(output, context);
|
|
793
|
-
}
|
|
794
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
795
|
-
const response = {
|
|
796
|
-
$metadata: deserializeMetadata(output),
|
|
797
|
-
};
|
|
798
|
-
return response;
|
|
799
|
-
};
|
|
800
|
-
exports.de_DeleteEndpointCommand = de_DeleteEndpointCommand;
|
|
801
|
-
const de_DeleteEndpointCommandError = async (output, context) => {
|
|
802
|
-
const parsedOutput = {
|
|
803
|
-
...output,
|
|
804
|
-
body: await parseErrorBody(output.body, context),
|
|
805
|
-
};
|
|
806
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
807
|
-
switch (errorCode) {
|
|
808
|
-
case "AuthorizationError":
|
|
809
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
810
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
811
|
-
case "InternalError":
|
|
812
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
813
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
814
|
-
case "InvalidParameter":
|
|
815
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
816
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
817
|
-
default:
|
|
818
|
-
const parsedBody = parsedOutput.body;
|
|
819
|
-
return throwDefaultError({
|
|
820
|
-
output,
|
|
821
|
-
parsedBody: parsedBody.Error,
|
|
822
|
-
errorCode,
|
|
823
|
-
});
|
|
824
|
-
}
|
|
825
|
-
};
|
|
826
|
-
const de_DeletePlatformApplicationCommand = async (output, context) => {
|
|
827
|
-
if (output.statusCode >= 300) {
|
|
828
|
-
return de_DeletePlatformApplicationCommandError(output, context);
|
|
829
|
-
}
|
|
830
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
831
|
-
const response = {
|
|
832
|
-
$metadata: deserializeMetadata(output),
|
|
833
|
-
};
|
|
834
|
-
return response;
|
|
835
|
-
};
|
|
836
|
-
exports.de_DeletePlatformApplicationCommand = de_DeletePlatformApplicationCommand;
|
|
837
|
-
const de_DeletePlatformApplicationCommandError = async (output, context) => {
|
|
838
|
-
const parsedOutput = {
|
|
839
|
-
...output,
|
|
840
|
-
body: await parseErrorBody(output.body, context),
|
|
841
|
-
};
|
|
842
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
843
|
-
switch (errorCode) {
|
|
844
|
-
case "AuthorizationError":
|
|
845
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
846
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
847
|
-
case "InternalError":
|
|
848
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
849
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
850
|
-
case "InvalidParameter":
|
|
851
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
852
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
853
|
-
default:
|
|
854
|
-
const parsedBody = parsedOutput.body;
|
|
855
|
-
return throwDefaultError({
|
|
856
|
-
output,
|
|
857
|
-
parsedBody: parsedBody.Error,
|
|
858
|
-
errorCode,
|
|
859
|
-
});
|
|
860
|
-
}
|
|
861
|
-
};
|
|
862
|
-
const de_DeleteSMSSandboxPhoneNumberCommand = async (output, context) => {
|
|
863
|
-
if (output.statusCode >= 300) {
|
|
864
|
-
return de_DeleteSMSSandboxPhoneNumberCommandError(output, context);
|
|
865
|
-
}
|
|
866
|
-
const data = await parseBody(output.body, context);
|
|
867
|
-
let contents = {};
|
|
868
|
-
contents = de_DeleteSMSSandboxPhoneNumberResult(data.DeleteSMSSandboxPhoneNumberResult, context);
|
|
869
|
-
const response = {
|
|
870
|
-
$metadata: deserializeMetadata(output),
|
|
871
|
-
...contents,
|
|
872
|
-
};
|
|
873
|
-
return response;
|
|
874
|
-
};
|
|
875
|
-
exports.de_DeleteSMSSandboxPhoneNumberCommand = de_DeleteSMSSandboxPhoneNumberCommand;
|
|
876
|
-
const de_DeleteSMSSandboxPhoneNumberCommandError = async (output, context) => {
|
|
877
|
-
const parsedOutput = {
|
|
878
|
-
...output,
|
|
879
|
-
body: await parseErrorBody(output.body, context),
|
|
880
|
-
};
|
|
881
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
882
|
-
switch (errorCode) {
|
|
883
|
-
case "AuthorizationError":
|
|
884
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
885
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
886
|
-
case "InternalError":
|
|
887
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
888
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
889
|
-
case "InvalidParameter":
|
|
890
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
891
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
892
|
-
case "ResourceNotFound":
|
|
893
|
-
case "com.amazonaws.sns#ResourceNotFoundException":
|
|
894
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
895
|
-
case "Throttled":
|
|
896
|
-
case "com.amazonaws.sns#ThrottledException":
|
|
897
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
898
|
-
case "UserError":
|
|
899
|
-
case "com.amazonaws.sns#UserErrorException":
|
|
900
|
-
throw await de_UserErrorExceptionRes(parsedOutput, context);
|
|
901
|
-
default:
|
|
902
|
-
const parsedBody = parsedOutput.body;
|
|
903
|
-
return throwDefaultError({
|
|
904
|
-
output,
|
|
905
|
-
parsedBody: parsedBody.Error,
|
|
906
|
-
errorCode,
|
|
907
|
-
});
|
|
908
|
-
}
|
|
909
|
-
};
|
|
910
|
-
const de_DeleteTopicCommand = async (output, context) => {
|
|
911
|
-
if (output.statusCode >= 300) {
|
|
912
|
-
return de_DeleteTopicCommandError(output, context);
|
|
913
|
-
}
|
|
914
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
915
|
-
const response = {
|
|
916
|
-
$metadata: deserializeMetadata(output),
|
|
917
|
-
};
|
|
918
|
-
return response;
|
|
919
|
-
};
|
|
920
|
-
exports.de_DeleteTopicCommand = de_DeleteTopicCommand;
|
|
921
|
-
const de_DeleteTopicCommandError = async (output, context) => {
|
|
922
|
-
const parsedOutput = {
|
|
923
|
-
...output,
|
|
924
|
-
body: await parseErrorBody(output.body, context),
|
|
925
|
-
};
|
|
926
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
927
|
-
switch (errorCode) {
|
|
928
|
-
case "AuthorizationError":
|
|
929
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
930
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
931
|
-
case "ConcurrentAccess":
|
|
932
|
-
case "com.amazonaws.sns#ConcurrentAccessException":
|
|
933
|
-
throw await de_ConcurrentAccessExceptionRes(parsedOutput, context);
|
|
934
|
-
case "InternalError":
|
|
935
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
936
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
937
|
-
case "InvalidParameter":
|
|
938
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
939
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
940
|
-
case "InvalidState":
|
|
941
|
-
case "com.amazonaws.sns#InvalidStateException":
|
|
942
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
943
|
-
case "NotFound":
|
|
944
|
-
case "com.amazonaws.sns#NotFoundException":
|
|
945
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
946
|
-
case "StaleTag":
|
|
947
|
-
case "com.amazonaws.sns#StaleTagException":
|
|
948
|
-
throw await de_StaleTagExceptionRes(parsedOutput, context);
|
|
949
|
-
case "TagPolicy":
|
|
950
|
-
case "com.amazonaws.sns#TagPolicyException":
|
|
951
|
-
throw await de_TagPolicyExceptionRes(parsedOutput, context);
|
|
952
|
-
default:
|
|
953
|
-
const parsedBody = parsedOutput.body;
|
|
954
|
-
return throwDefaultError({
|
|
955
|
-
output,
|
|
956
|
-
parsedBody: parsedBody.Error,
|
|
957
|
-
errorCode,
|
|
958
|
-
});
|
|
959
|
-
}
|
|
960
|
-
};
|
|
961
|
-
const de_GetDataProtectionPolicyCommand = async (output, context) => {
|
|
962
|
-
if (output.statusCode >= 300) {
|
|
963
|
-
return de_GetDataProtectionPolicyCommandError(output, context);
|
|
964
|
-
}
|
|
965
|
-
const data = await parseBody(output.body, context);
|
|
966
|
-
let contents = {};
|
|
967
|
-
contents = de_GetDataProtectionPolicyResponse(data.GetDataProtectionPolicyResult, context);
|
|
968
|
-
const response = {
|
|
969
|
-
$metadata: deserializeMetadata(output),
|
|
970
|
-
...contents,
|
|
971
|
-
};
|
|
972
|
-
return response;
|
|
973
|
-
};
|
|
974
|
-
exports.de_GetDataProtectionPolicyCommand = de_GetDataProtectionPolicyCommand;
|
|
975
|
-
const de_GetDataProtectionPolicyCommandError = async (output, context) => {
|
|
976
|
-
const parsedOutput = {
|
|
977
|
-
...output,
|
|
978
|
-
body: await parseErrorBody(output.body, context),
|
|
979
|
-
};
|
|
980
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
981
|
-
switch (errorCode) {
|
|
982
|
-
case "AuthorizationError":
|
|
983
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
984
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
985
|
-
case "InternalError":
|
|
986
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
987
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
988
|
-
case "InvalidParameter":
|
|
989
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
990
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
991
|
-
case "InvalidSecurity":
|
|
992
|
-
case "com.amazonaws.sns#InvalidSecurityException":
|
|
993
|
-
throw await de_InvalidSecurityExceptionRes(parsedOutput, context);
|
|
994
|
-
case "NotFound":
|
|
995
|
-
case "com.amazonaws.sns#NotFoundException":
|
|
996
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
997
|
-
default:
|
|
998
|
-
const parsedBody = parsedOutput.body;
|
|
999
|
-
return throwDefaultError({
|
|
1000
|
-
output,
|
|
1001
|
-
parsedBody: parsedBody.Error,
|
|
1002
|
-
errorCode,
|
|
1003
|
-
});
|
|
1004
|
-
}
|
|
1005
|
-
};
|
|
1006
|
-
const de_GetEndpointAttributesCommand = async (output, context) => {
|
|
1007
|
-
if (output.statusCode >= 300) {
|
|
1008
|
-
return de_GetEndpointAttributesCommandError(output, context);
|
|
1009
|
-
}
|
|
1010
|
-
const data = await parseBody(output.body, context);
|
|
1011
|
-
let contents = {};
|
|
1012
|
-
contents = de_GetEndpointAttributesResponse(data.GetEndpointAttributesResult, context);
|
|
1013
|
-
const response = {
|
|
1014
|
-
$metadata: deserializeMetadata(output),
|
|
1015
|
-
...contents,
|
|
1016
|
-
};
|
|
1017
|
-
return response;
|
|
1018
|
-
};
|
|
1019
|
-
exports.de_GetEndpointAttributesCommand = de_GetEndpointAttributesCommand;
|
|
1020
|
-
const de_GetEndpointAttributesCommandError = async (output, context) => {
|
|
1021
|
-
const parsedOutput = {
|
|
1022
|
-
...output,
|
|
1023
|
-
body: await parseErrorBody(output.body, context),
|
|
1024
|
-
};
|
|
1025
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1026
|
-
switch (errorCode) {
|
|
1027
|
-
case "AuthorizationError":
|
|
1028
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
1029
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1030
|
-
case "InternalError":
|
|
1031
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
1032
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1033
|
-
case "InvalidParameter":
|
|
1034
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
1035
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1036
|
-
case "NotFound":
|
|
1037
|
-
case "com.amazonaws.sns#NotFoundException":
|
|
1038
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1039
|
-
default:
|
|
1040
|
-
const parsedBody = parsedOutput.body;
|
|
1041
|
-
return throwDefaultError({
|
|
1042
|
-
output,
|
|
1043
|
-
parsedBody: parsedBody.Error,
|
|
1044
|
-
errorCode,
|
|
1045
|
-
});
|
|
1046
|
-
}
|
|
1047
|
-
};
|
|
1048
|
-
const de_GetPlatformApplicationAttributesCommand = async (output, context) => {
|
|
1049
|
-
if (output.statusCode >= 300) {
|
|
1050
|
-
return de_GetPlatformApplicationAttributesCommandError(output, context);
|
|
1051
|
-
}
|
|
1052
|
-
const data = await parseBody(output.body, context);
|
|
1053
|
-
let contents = {};
|
|
1054
|
-
contents = de_GetPlatformApplicationAttributesResponse(data.GetPlatformApplicationAttributesResult, context);
|
|
1055
|
-
const response = {
|
|
1056
|
-
$metadata: deserializeMetadata(output),
|
|
1057
|
-
...contents,
|
|
1058
|
-
};
|
|
1059
|
-
return response;
|
|
1060
|
-
};
|
|
1061
|
-
exports.de_GetPlatformApplicationAttributesCommand = de_GetPlatformApplicationAttributesCommand;
|
|
1062
|
-
const de_GetPlatformApplicationAttributesCommandError = async (output, context) => {
|
|
1063
|
-
const parsedOutput = {
|
|
1064
|
-
...output,
|
|
1065
|
-
body: await parseErrorBody(output.body, context),
|
|
1066
|
-
};
|
|
1067
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1068
|
-
switch (errorCode) {
|
|
1069
|
-
case "AuthorizationError":
|
|
1070
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
1071
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1072
|
-
case "InternalError":
|
|
1073
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
1074
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1075
|
-
case "InvalidParameter":
|
|
1076
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
1077
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1078
|
-
case "NotFound":
|
|
1079
|
-
case "com.amazonaws.sns#NotFoundException":
|
|
1080
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1081
|
-
default:
|
|
1082
|
-
const parsedBody = parsedOutput.body;
|
|
1083
|
-
return throwDefaultError({
|
|
1084
|
-
output,
|
|
1085
|
-
parsedBody: parsedBody.Error,
|
|
1086
|
-
errorCode,
|
|
1087
|
-
});
|
|
1088
|
-
}
|
|
1089
|
-
};
|
|
1090
|
-
const de_GetSMSAttributesCommand = async (output, context) => {
|
|
1091
|
-
if (output.statusCode >= 300) {
|
|
1092
|
-
return de_GetSMSAttributesCommandError(output, context);
|
|
1093
|
-
}
|
|
1094
|
-
const data = await parseBody(output.body, context);
|
|
1095
|
-
let contents = {};
|
|
1096
|
-
contents = de_GetSMSAttributesResponse(data.GetSMSAttributesResult, context);
|
|
1097
|
-
const response = {
|
|
1098
|
-
$metadata: deserializeMetadata(output),
|
|
1099
|
-
...contents,
|
|
1100
|
-
};
|
|
1101
|
-
return response;
|
|
1102
|
-
};
|
|
1103
|
-
exports.de_GetSMSAttributesCommand = de_GetSMSAttributesCommand;
|
|
1104
|
-
const de_GetSMSAttributesCommandError = async (output, context) => {
|
|
1105
|
-
const parsedOutput = {
|
|
1106
|
-
...output,
|
|
1107
|
-
body: await parseErrorBody(output.body, context),
|
|
1108
|
-
};
|
|
1109
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1110
|
-
switch (errorCode) {
|
|
1111
|
-
case "AuthorizationError":
|
|
1112
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
1113
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1114
|
-
case "InternalError":
|
|
1115
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
1116
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1117
|
-
case "InvalidParameter":
|
|
1118
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
1119
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1120
|
-
case "Throttled":
|
|
1121
|
-
case "com.amazonaws.sns#ThrottledException":
|
|
1122
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1123
|
-
default:
|
|
1124
|
-
const parsedBody = parsedOutput.body;
|
|
1125
|
-
return throwDefaultError({
|
|
1126
|
-
output,
|
|
1127
|
-
parsedBody: parsedBody.Error,
|
|
1128
|
-
errorCode,
|
|
1129
|
-
});
|
|
1130
|
-
}
|
|
1131
|
-
};
|
|
1132
|
-
const de_GetSMSSandboxAccountStatusCommand = async (output, context) => {
|
|
1133
|
-
if (output.statusCode >= 300) {
|
|
1134
|
-
return de_GetSMSSandboxAccountStatusCommandError(output, context);
|
|
1135
|
-
}
|
|
1136
|
-
const data = await parseBody(output.body, context);
|
|
1137
|
-
let contents = {};
|
|
1138
|
-
contents = de_GetSMSSandboxAccountStatusResult(data.GetSMSSandboxAccountStatusResult, context);
|
|
1139
|
-
const response = {
|
|
1140
|
-
$metadata: deserializeMetadata(output),
|
|
1141
|
-
...contents,
|
|
1142
|
-
};
|
|
1143
|
-
return response;
|
|
1144
|
-
};
|
|
1145
|
-
exports.de_GetSMSSandboxAccountStatusCommand = de_GetSMSSandboxAccountStatusCommand;
|
|
1146
|
-
const de_GetSMSSandboxAccountStatusCommandError = async (output, context) => {
|
|
1147
|
-
const parsedOutput = {
|
|
1148
|
-
...output,
|
|
1149
|
-
body: await parseErrorBody(output.body, context),
|
|
1150
|
-
};
|
|
1151
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1152
|
-
switch (errorCode) {
|
|
1153
|
-
case "AuthorizationError":
|
|
1154
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
1155
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1156
|
-
case "InternalError":
|
|
1157
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
1158
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1159
|
-
case "Throttled":
|
|
1160
|
-
case "com.amazonaws.sns#ThrottledException":
|
|
1161
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1162
|
-
default:
|
|
1163
|
-
const parsedBody = parsedOutput.body;
|
|
1164
|
-
return throwDefaultError({
|
|
1165
|
-
output,
|
|
1166
|
-
parsedBody: parsedBody.Error,
|
|
1167
|
-
errorCode,
|
|
1168
|
-
});
|
|
1169
|
-
}
|
|
1170
|
-
};
|
|
1171
|
-
const de_GetSubscriptionAttributesCommand = async (output, context) => {
|
|
1172
|
-
if (output.statusCode >= 300) {
|
|
1173
|
-
return de_GetSubscriptionAttributesCommandError(output, context);
|
|
1174
|
-
}
|
|
1175
|
-
const data = await parseBody(output.body, context);
|
|
1176
|
-
let contents = {};
|
|
1177
|
-
contents = de_GetSubscriptionAttributesResponse(data.GetSubscriptionAttributesResult, context);
|
|
1178
|
-
const response = {
|
|
1179
|
-
$metadata: deserializeMetadata(output),
|
|
1180
|
-
...contents,
|
|
1181
|
-
};
|
|
1182
|
-
return response;
|
|
1183
|
-
};
|
|
1184
|
-
exports.de_GetSubscriptionAttributesCommand = de_GetSubscriptionAttributesCommand;
|
|
1185
|
-
const de_GetSubscriptionAttributesCommandError = async (output, context) => {
|
|
1186
|
-
const parsedOutput = {
|
|
1187
|
-
...output,
|
|
1188
|
-
body: await parseErrorBody(output.body, context),
|
|
1189
|
-
};
|
|
1190
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1191
|
-
switch (errorCode) {
|
|
1192
|
-
case "AuthorizationError":
|
|
1193
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
1194
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1195
|
-
case "InternalError":
|
|
1196
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
1197
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1198
|
-
case "InvalidParameter":
|
|
1199
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
1200
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1201
|
-
case "NotFound":
|
|
1202
|
-
case "com.amazonaws.sns#NotFoundException":
|
|
1203
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1204
|
-
default:
|
|
1205
|
-
const parsedBody = parsedOutput.body;
|
|
1206
|
-
return throwDefaultError({
|
|
1207
|
-
output,
|
|
1208
|
-
parsedBody: parsedBody.Error,
|
|
1209
|
-
errorCode,
|
|
1210
|
-
});
|
|
1211
|
-
}
|
|
1212
|
-
};
|
|
1213
|
-
const de_GetTopicAttributesCommand = async (output, context) => {
|
|
1214
|
-
if (output.statusCode >= 300) {
|
|
1215
|
-
return de_GetTopicAttributesCommandError(output, context);
|
|
1216
|
-
}
|
|
1217
|
-
const data = await parseBody(output.body, context);
|
|
1218
|
-
let contents = {};
|
|
1219
|
-
contents = de_GetTopicAttributesResponse(data.GetTopicAttributesResult, context);
|
|
1220
|
-
const response = {
|
|
1221
|
-
$metadata: deserializeMetadata(output),
|
|
1222
|
-
...contents,
|
|
1223
|
-
};
|
|
1224
|
-
return response;
|
|
1225
|
-
};
|
|
1226
|
-
exports.de_GetTopicAttributesCommand = de_GetTopicAttributesCommand;
|
|
1227
|
-
const de_GetTopicAttributesCommandError = async (output, context) => {
|
|
1228
|
-
const parsedOutput = {
|
|
1229
|
-
...output,
|
|
1230
|
-
body: await parseErrorBody(output.body, context),
|
|
1231
|
-
};
|
|
1232
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1233
|
-
switch (errorCode) {
|
|
1234
|
-
case "AuthorizationError":
|
|
1235
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
1236
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1237
|
-
case "InternalError":
|
|
1238
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
1239
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1240
|
-
case "InvalidParameter":
|
|
1241
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
1242
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1243
|
-
case "InvalidSecurity":
|
|
1244
|
-
case "com.amazonaws.sns#InvalidSecurityException":
|
|
1245
|
-
throw await de_InvalidSecurityExceptionRes(parsedOutput, context);
|
|
1246
|
-
case "NotFound":
|
|
1247
|
-
case "com.amazonaws.sns#NotFoundException":
|
|
1248
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1249
|
-
default:
|
|
1250
|
-
const parsedBody = parsedOutput.body;
|
|
1251
|
-
return throwDefaultError({
|
|
1252
|
-
output,
|
|
1253
|
-
parsedBody: parsedBody.Error,
|
|
1254
|
-
errorCode,
|
|
1255
|
-
});
|
|
1256
|
-
}
|
|
1257
|
-
};
|
|
1258
|
-
const de_ListEndpointsByPlatformApplicationCommand = async (output, context) => {
|
|
1259
|
-
if (output.statusCode >= 300) {
|
|
1260
|
-
return de_ListEndpointsByPlatformApplicationCommandError(output, context);
|
|
1261
|
-
}
|
|
1262
|
-
const data = await parseBody(output.body, context);
|
|
1263
|
-
let contents = {};
|
|
1264
|
-
contents = de_ListEndpointsByPlatformApplicationResponse(data.ListEndpointsByPlatformApplicationResult, context);
|
|
1265
|
-
const response = {
|
|
1266
|
-
$metadata: deserializeMetadata(output),
|
|
1267
|
-
...contents,
|
|
1268
|
-
};
|
|
1269
|
-
return response;
|
|
1270
|
-
};
|
|
1271
|
-
exports.de_ListEndpointsByPlatformApplicationCommand = de_ListEndpointsByPlatformApplicationCommand;
|
|
1272
|
-
const de_ListEndpointsByPlatformApplicationCommandError = async (output, context) => {
|
|
1273
|
-
const parsedOutput = {
|
|
1274
|
-
...output,
|
|
1275
|
-
body: await parseErrorBody(output.body, context),
|
|
1276
|
-
};
|
|
1277
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1278
|
-
switch (errorCode) {
|
|
1279
|
-
case "AuthorizationError":
|
|
1280
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
1281
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1282
|
-
case "InternalError":
|
|
1283
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
1284
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1285
|
-
case "InvalidParameter":
|
|
1286
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
1287
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1288
|
-
case "NotFound":
|
|
1289
|
-
case "com.amazonaws.sns#NotFoundException":
|
|
1290
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1291
|
-
default:
|
|
1292
|
-
const parsedBody = parsedOutput.body;
|
|
1293
|
-
return throwDefaultError({
|
|
1294
|
-
output,
|
|
1295
|
-
parsedBody: parsedBody.Error,
|
|
1296
|
-
errorCode,
|
|
1297
|
-
});
|
|
1298
|
-
}
|
|
1299
|
-
};
|
|
1300
|
-
const de_ListOriginationNumbersCommand = async (output, context) => {
|
|
1301
|
-
if (output.statusCode >= 300) {
|
|
1302
|
-
return de_ListOriginationNumbersCommandError(output, context);
|
|
1303
|
-
}
|
|
1304
|
-
const data = await parseBody(output.body, context);
|
|
1305
|
-
let contents = {};
|
|
1306
|
-
contents = de_ListOriginationNumbersResult(data.ListOriginationNumbersResult, context);
|
|
1307
|
-
const response = {
|
|
1308
|
-
$metadata: deserializeMetadata(output),
|
|
1309
|
-
...contents,
|
|
1310
|
-
};
|
|
1311
|
-
return response;
|
|
1312
|
-
};
|
|
1313
|
-
exports.de_ListOriginationNumbersCommand = de_ListOriginationNumbersCommand;
|
|
1314
|
-
const de_ListOriginationNumbersCommandError = async (output, context) => {
|
|
1315
|
-
const parsedOutput = {
|
|
1316
|
-
...output,
|
|
1317
|
-
body: await parseErrorBody(output.body, context),
|
|
1318
|
-
};
|
|
1319
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1320
|
-
switch (errorCode) {
|
|
1321
|
-
case "AuthorizationError":
|
|
1322
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
1323
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1324
|
-
case "InternalError":
|
|
1325
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
1326
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1327
|
-
case "InvalidParameter":
|
|
1328
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
1329
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1330
|
-
case "Throttled":
|
|
1331
|
-
case "com.amazonaws.sns#ThrottledException":
|
|
1332
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1333
|
-
case "ValidationException":
|
|
1334
|
-
case "com.amazonaws.sns#ValidationException":
|
|
1335
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1336
|
-
default:
|
|
1337
|
-
const parsedBody = parsedOutput.body;
|
|
1338
|
-
return throwDefaultError({
|
|
1339
|
-
output,
|
|
1340
|
-
parsedBody: parsedBody.Error,
|
|
1341
|
-
errorCode,
|
|
1342
|
-
});
|
|
1343
|
-
}
|
|
1344
|
-
};
|
|
1345
|
-
const de_ListPhoneNumbersOptedOutCommand = async (output, context) => {
|
|
1346
|
-
if (output.statusCode >= 300) {
|
|
1347
|
-
return de_ListPhoneNumbersOptedOutCommandError(output, context);
|
|
1348
|
-
}
|
|
1349
|
-
const data = await parseBody(output.body, context);
|
|
1350
|
-
let contents = {};
|
|
1351
|
-
contents = de_ListPhoneNumbersOptedOutResponse(data.ListPhoneNumbersOptedOutResult, context);
|
|
1352
|
-
const response = {
|
|
1353
|
-
$metadata: deserializeMetadata(output),
|
|
1354
|
-
...contents,
|
|
1355
|
-
};
|
|
1356
|
-
return response;
|
|
1357
|
-
};
|
|
1358
|
-
exports.de_ListPhoneNumbersOptedOutCommand = de_ListPhoneNumbersOptedOutCommand;
|
|
1359
|
-
const de_ListPhoneNumbersOptedOutCommandError = async (output, context) => {
|
|
1360
|
-
const parsedOutput = {
|
|
1361
|
-
...output,
|
|
1362
|
-
body: await parseErrorBody(output.body, context),
|
|
1363
|
-
};
|
|
1364
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1365
|
-
switch (errorCode) {
|
|
1366
|
-
case "AuthorizationError":
|
|
1367
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
1368
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1369
|
-
case "InternalError":
|
|
1370
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
1371
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1372
|
-
case "InvalidParameter":
|
|
1373
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
1374
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1375
|
-
case "Throttled":
|
|
1376
|
-
case "com.amazonaws.sns#ThrottledException":
|
|
1377
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1378
|
-
default:
|
|
1379
|
-
const parsedBody = parsedOutput.body;
|
|
1380
|
-
return throwDefaultError({
|
|
1381
|
-
output,
|
|
1382
|
-
parsedBody: parsedBody.Error,
|
|
1383
|
-
errorCode,
|
|
1384
|
-
});
|
|
1385
|
-
}
|
|
1386
|
-
};
|
|
1387
|
-
const de_ListPlatformApplicationsCommand = async (output, context) => {
|
|
1388
|
-
if (output.statusCode >= 300) {
|
|
1389
|
-
return de_ListPlatformApplicationsCommandError(output, context);
|
|
1390
|
-
}
|
|
1391
|
-
const data = await parseBody(output.body, context);
|
|
1392
|
-
let contents = {};
|
|
1393
|
-
contents = de_ListPlatformApplicationsResponse(data.ListPlatformApplicationsResult, context);
|
|
1394
|
-
const response = {
|
|
1395
|
-
$metadata: deserializeMetadata(output),
|
|
1396
|
-
...contents,
|
|
1397
|
-
};
|
|
1398
|
-
return response;
|
|
1399
|
-
};
|
|
1400
|
-
exports.de_ListPlatformApplicationsCommand = de_ListPlatformApplicationsCommand;
|
|
1401
|
-
const de_ListPlatformApplicationsCommandError = async (output, context) => {
|
|
1402
|
-
const parsedOutput = {
|
|
1403
|
-
...output,
|
|
1404
|
-
body: await parseErrorBody(output.body, context),
|
|
1405
|
-
};
|
|
1406
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1407
|
-
switch (errorCode) {
|
|
1408
|
-
case "AuthorizationError":
|
|
1409
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
1410
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1411
|
-
case "InternalError":
|
|
1412
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
1413
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1414
|
-
case "InvalidParameter":
|
|
1415
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
1416
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1417
|
-
default:
|
|
1418
|
-
const parsedBody = parsedOutput.body;
|
|
1419
|
-
return throwDefaultError({
|
|
1420
|
-
output,
|
|
1421
|
-
parsedBody: parsedBody.Error,
|
|
1422
|
-
errorCode,
|
|
1423
|
-
});
|
|
1424
|
-
}
|
|
1425
|
-
};
|
|
1426
|
-
const de_ListSMSSandboxPhoneNumbersCommand = async (output, context) => {
|
|
1427
|
-
if (output.statusCode >= 300) {
|
|
1428
|
-
return de_ListSMSSandboxPhoneNumbersCommandError(output, context);
|
|
1429
|
-
}
|
|
1430
|
-
const data = await parseBody(output.body, context);
|
|
1431
|
-
let contents = {};
|
|
1432
|
-
contents = de_ListSMSSandboxPhoneNumbersResult(data.ListSMSSandboxPhoneNumbersResult, context);
|
|
1433
|
-
const response = {
|
|
1434
|
-
$metadata: deserializeMetadata(output),
|
|
1435
|
-
...contents,
|
|
1436
|
-
};
|
|
1437
|
-
return response;
|
|
1438
|
-
};
|
|
1439
|
-
exports.de_ListSMSSandboxPhoneNumbersCommand = de_ListSMSSandboxPhoneNumbersCommand;
|
|
1440
|
-
const de_ListSMSSandboxPhoneNumbersCommandError = async (output, context) => {
|
|
1441
|
-
const parsedOutput = {
|
|
1442
|
-
...output,
|
|
1443
|
-
body: await parseErrorBody(output.body, context),
|
|
1444
|
-
};
|
|
1445
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1446
|
-
switch (errorCode) {
|
|
1447
|
-
case "AuthorizationError":
|
|
1448
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
1449
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1450
|
-
case "InternalError":
|
|
1451
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
1452
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1453
|
-
case "InvalidParameter":
|
|
1454
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
1455
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1456
|
-
case "ResourceNotFound":
|
|
1457
|
-
case "com.amazonaws.sns#ResourceNotFoundException":
|
|
1458
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1459
|
-
case "Throttled":
|
|
1460
|
-
case "com.amazonaws.sns#ThrottledException":
|
|
1461
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1462
|
-
default:
|
|
1463
|
-
const parsedBody = parsedOutput.body;
|
|
1464
|
-
return throwDefaultError({
|
|
1465
|
-
output,
|
|
1466
|
-
parsedBody: parsedBody.Error,
|
|
1467
|
-
errorCode,
|
|
1468
|
-
});
|
|
1469
|
-
}
|
|
1470
|
-
};
|
|
1471
|
-
const de_ListSubscriptionsCommand = async (output, context) => {
|
|
1472
|
-
if (output.statusCode >= 300) {
|
|
1473
|
-
return de_ListSubscriptionsCommandError(output, context);
|
|
1474
|
-
}
|
|
1475
|
-
const data = await parseBody(output.body, context);
|
|
1476
|
-
let contents = {};
|
|
1477
|
-
contents = de_ListSubscriptionsResponse(data.ListSubscriptionsResult, context);
|
|
1478
|
-
const response = {
|
|
1479
|
-
$metadata: deserializeMetadata(output),
|
|
1480
|
-
...contents,
|
|
1481
|
-
};
|
|
1482
|
-
return response;
|
|
1483
|
-
};
|
|
1484
|
-
exports.de_ListSubscriptionsCommand = de_ListSubscriptionsCommand;
|
|
1485
|
-
const de_ListSubscriptionsCommandError = async (output, context) => {
|
|
1486
|
-
const parsedOutput = {
|
|
1487
|
-
...output,
|
|
1488
|
-
body: await parseErrorBody(output.body, context),
|
|
1489
|
-
};
|
|
1490
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1491
|
-
switch (errorCode) {
|
|
1492
|
-
case "AuthorizationError":
|
|
1493
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
1494
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1495
|
-
case "InternalError":
|
|
1496
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
1497
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1498
|
-
case "InvalidParameter":
|
|
1499
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
1500
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1501
|
-
default:
|
|
1502
|
-
const parsedBody = parsedOutput.body;
|
|
1503
|
-
return throwDefaultError({
|
|
1504
|
-
output,
|
|
1505
|
-
parsedBody: parsedBody.Error,
|
|
1506
|
-
errorCode,
|
|
1507
|
-
});
|
|
1508
|
-
}
|
|
1509
|
-
};
|
|
1510
|
-
const de_ListSubscriptionsByTopicCommand = async (output, context) => {
|
|
1511
|
-
if (output.statusCode >= 300) {
|
|
1512
|
-
return de_ListSubscriptionsByTopicCommandError(output, context);
|
|
1513
|
-
}
|
|
1514
|
-
const data = await parseBody(output.body, context);
|
|
1515
|
-
let contents = {};
|
|
1516
|
-
contents = de_ListSubscriptionsByTopicResponse(data.ListSubscriptionsByTopicResult, context);
|
|
1517
|
-
const response = {
|
|
1518
|
-
$metadata: deserializeMetadata(output),
|
|
1519
|
-
...contents,
|
|
1520
|
-
};
|
|
1521
|
-
return response;
|
|
1522
|
-
};
|
|
1523
|
-
exports.de_ListSubscriptionsByTopicCommand = de_ListSubscriptionsByTopicCommand;
|
|
1524
|
-
const de_ListSubscriptionsByTopicCommandError = async (output, context) => {
|
|
1525
|
-
const parsedOutput = {
|
|
1526
|
-
...output,
|
|
1527
|
-
body: await parseErrorBody(output.body, context),
|
|
1528
|
-
};
|
|
1529
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1530
|
-
switch (errorCode) {
|
|
1531
|
-
case "AuthorizationError":
|
|
1532
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
1533
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1534
|
-
case "InternalError":
|
|
1535
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
1536
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1537
|
-
case "InvalidParameter":
|
|
1538
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
1539
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1540
|
-
case "NotFound":
|
|
1541
|
-
case "com.amazonaws.sns#NotFoundException":
|
|
1542
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1543
|
-
default:
|
|
1544
|
-
const parsedBody = parsedOutput.body;
|
|
1545
|
-
return throwDefaultError({
|
|
1546
|
-
output,
|
|
1547
|
-
parsedBody: parsedBody.Error,
|
|
1548
|
-
errorCode,
|
|
1549
|
-
});
|
|
1550
|
-
}
|
|
1551
|
-
};
|
|
1552
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1553
|
-
if (output.statusCode >= 300) {
|
|
1554
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
1555
|
-
}
|
|
1556
|
-
const data = await parseBody(output.body, context);
|
|
1557
|
-
let contents = {};
|
|
1558
|
-
contents = de_ListTagsForResourceResponse(data.ListTagsForResourceResult, context);
|
|
1559
|
-
const response = {
|
|
1560
|
-
$metadata: deserializeMetadata(output),
|
|
1561
|
-
...contents,
|
|
1562
|
-
};
|
|
1563
|
-
return response;
|
|
1564
|
-
};
|
|
1565
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1566
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1567
|
-
const parsedOutput = {
|
|
1568
|
-
...output,
|
|
1569
|
-
body: await parseErrorBody(output.body, context),
|
|
1570
|
-
};
|
|
1571
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1572
|
-
switch (errorCode) {
|
|
1573
|
-
case "AuthorizationError":
|
|
1574
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
1575
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1576
|
-
case "ConcurrentAccess":
|
|
1577
|
-
case "com.amazonaws.sns#ConcurrentAccessException":
|
|
1578
|
-
throw await de_ConcurrentAccessExceptionRes(parsedOutput, context);
|
|
1579
|
-
case "InvalidParameter":
|
|
1580
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
1581
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1582
|
-
case "ResourceNotFound":
|
|
1583
|
-
case "com.amazonaws.sns#ResourceNotFoundException":
|
|
1584
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1585
|
-
case "TagPolicy":
|
|
1586
|
-
case "com.amazonaws.sns#TagPolicyException":
|
|
1587
|
-
throw await de_TagPolicyExceptionRes(parsedOutput, context);
|
|
1588
|
-
default:
|
|
1589
|
-
const parsedBody = parsedOutput.body;
|
|
1590
|
-
return throwDefaultError({
|
|
1591
|
-
output,
|
|
1592
|
-
parsedBody: parsedBody.Error,
|
|
1593
|
-
errorCode,
|
|
1594
|
-
});
|
|
1595
|
-
}
|
|
1596
|
-
};
|
|
1597
|
-
const de_ListTopicsCommand = async (output, context) => {
|
|
1598
|
-
if (output.statusCode >= 300) {
|
|
1599
|
-
return de_ListTopicsCommandError(output, context);
|
|
1600
|
-
}
|
|
1601
|
-
const data = await parseBody(output.body, context);
|
|
1602
|
-
let contents = {};
|
|
1603
|
-
contents = de_ListTopicsResponse(data.ListTopicsResult, context);
|
|
1604
|
-
const response = {
|
|
1605
|
-
$metadata: deserializeMetadata(output),
|
|
1606
|
-
...contents,
|
|
1607
|
-
};
|
|
1608
|
-
return response;
|
|
1609
|
-
};
|
|
1610
|
-
exports.de_ListTopicsCommand = de_ListTopicsCommand;
|
|
1611
|
-
const de_ListTopicsCommandError = async (output, context) => {
|
|
1612
|
-
const parsedOutput = {
|
|
1613
|
-
...output,
|
|
1614
|
-
body: await parseErrorBody(output.body, context),
|
|
1615
|
-
};
|
|
1616
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1617
|
-
switch (errorCode) {
|
|
1618
|
-
case "AuthorizationError":
|
|
1619
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
1620
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1621
|
-
case "InternalError":
|
|
1622
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
1623
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1624
|
-
case "InvalidParameter":
|
|
1625
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
1626
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1627
|
-
default:
|
|
1628
|
-
const parsedBody = parsedOutput.body;
|
|
1629
|
-
return throwDefaultError({
|
|
1630
|
-
output,
|
|
1631
|
-
parsedBody: parsedBody.Error,
|
|
1632
|
-
errorCode,
|
|
1633
|
-
});
|
|
1634
|
-
}
|
|
1635
|
-
};
|
|
1636
|
-
const de_OptInPhoneNumberCommand = async (output, context) => {
|
|
1637
|
-
if (output.statusCode >= 300) {
|
|
1638
|
-
return de_OptInPhoneNumberCommandError(output, context);
|
|
1639
|
-
}
|
|
1640
|
-
const data = await parseBody(output.body, context);
|
|
1641
|
-
let contents = {};
|
|
1642
|
-
contents = de_OptInPhoneNumberResponse(data.OptInPhoneNumberResult, context);
|
|
1643
|
-
const response = {
|
|
1644
|
-
$metadata: deserializeMetadata(output),
|
|
1645
|
-
...contents,
|
|
1646
|
-
};
|
|
1647
|
-
return response;
|
|
1648
|
-
};
|
|
1649
|
-
exports.de_OptInPhoneNumberCommand = de_OptInPhoneNumberCommand;
|
|
1650
|
-
const de_OptInPhoneNumberCommandError = async (output, context) => {
|
|
1651
|
-
const parsedOutput = {
|
|
1652
|
-
...output,
|
|
1653
|
-
body: await parseErrorBody(output.body, context),
|
|
1654
|
-
};
|
|
1655
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1656
|
-
switch (errorCode) {
|
|
1657
|
-
case "AuthorizationError":
|
|
1658
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
1659
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1660
|
-
case "InternalError":
|
|
1661
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
1662
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1663
|
-
case "InvalidParameter":
|
|
1664
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
1665
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1666
|
-
case "Throttled":
|
|
1667
|
-
case "com.amazonaws.sns#ThrottledException":
|
|
1668
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1669
|
-
default:
|
|
1670
|
-
const parsedBody = parsedOutput.body;
|
|
1671
|
-
return throwDefaultError({
|
|
1672
|
-
output,
|
|
1673
|
-
parsedBody: parsedBody.Error,
|
|
1674
|
-
errorCode,
|
|
1675
|
-
});
|
|
1676
|
-
}
|
|
1677
|
-
};
|
|
1678
|
-
const de_PublishCommand = async (output, context) => {
|
|
1679
|
-
if (output.statusCode >= 300) {
|
|
1680
|
-
return de_PublishCommandError(output, context);
|
|
1681
|
-
}
|
|
1682
|
-
const data = await parseBody(output.body, context);
|
|
1683
|
-
let contents = {};
|
|
1684
|
-
contents = de_PublishResponse(data.PublishResult, context);
|
|
1685
|
-
const response = {
|
|
1686
|
-
$metadata: deserializeMetadata(output),
|
|
1687
|
-
...contents,
|
|
1688
|
-
};
|
|
1689
|
-
return response;
|
|
1690
|
-
};
|
|
1691
|
-
exports.de_PublishCommand = de_PublishCommand;
|
|
1692
|
-
const de_PublishCommandError = async (output, context) => {
|
|
1693
|
-
const parsedOutput = {
|
|
1694
|
-
...output,
|
|
1695
|
-
body: await parseErrorBody(output.body, context),
|
|
1696
|
-
};
|
|
1697
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1698
|
-
switch (errorCode) {
|
|
1699
|
-
case "AuthorizationError":
|
|
1700
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
1701
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1702
|
-
case "EndpointDisabled":
|
|
1703
|
-
case "com.amazonaws.sns#EndpointDisabledException":
|
|
1704
|
-
throw await de_EndpointDisabledExceptionRes(parsedOutput, context);
|
|
1705
|
-
case "InternalError":
|
|
1706
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
1707
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1708
|
-
case "InvalidParameter":
|
|
1709
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
1710
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1711
|
-
case "InvalidSecurity":
|
|
1712
|
-
case "com.amazonaws.sns#InvalidSecurityException":
|
|
1713
|
-
throw await de_InvalidSecurityExceptionRes(parsedOutput, context);
|
|
1714
|
-
case "KMSAccessDenied":
|
|
1715
|
-
case "com.amazonaws.sns#KMSAccessDeniedException":
|
|
1716
|
-
throw await de_KMSAccessDeniedExceptionRes(parsedOutput, context);
|
|
1717
|
-
case "KMSDisabled":
|
|
1718
|
-
case "com.amazonaws.sns#KMSDisabledException":
|
|
1719
|
-
throw await de_KMSDisabledExceptionRes(parsedOutput, context);
|
|
1720
|
-
case "KMSInvalidState":
|
|
1721
|
-
case "com.amazonaws.sns#KMSInvalidStateException":
|
|
1722
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
1723
|
-
case "KMSNotFound":
|
|
1724
|
-
case "com.amazonaws.sns#KMSNotFoundException":
|
|
1725
|
-
throw await de_KMSNotFoundExceptionRes(parsedOutput, context);
|
|
1726
|
-
case "KMSOptInRequired":
|
|
1727
|
-
case "com.amazonaws.sns#KMSOptInRequired":
|
|
1728
|
-
throw await de_KMSOptInRequiredRes(parsedOutput, context);
|
|
1729
|
-
case "KMSThrottling":
|
|
1730
|
-
case "com.amazonaws.sns#KMSThrottlingException":
|
|
1731
|
-
throw await de_KMSThrottlingExceptionRes(parsedOutput, context);
|
|
1732
|
-
case "NotFound":
|
|
1733
|
-
case "com.amazonaws.sns#NotFoundException":
|
|
1734
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1735
|
-
case "ParameterValueInvalid":
|
|
1736
|
-
case "com.amazonaws.sns#InvalidParameterValueException":
|
|
1737
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1738
|
-
case "PlatformApplicationDisabled":
|
|
1739
|
-
case "com.amazonaws.sns#PlatformApplicationDisabledException":
|
|
1740
|
-
throw await de_PlatformApplicationDisabledExceptionRes(parsedOutput, context);
|
|
1741
|
-
case "ValidationException":
|
|
1742
|
-
case "com.amazonaws.sns#ValidationException":
|
|
1743
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1744
|
-
default:
|
|
1745
|
-
const parsedBody = parsedOutput.body;
|
|
1746
|
-
return throwDefaultError({
|
|
1747
|
-
output,
|
|
1748
|
-
parsedBody: parsedBody.Error,
|
|
1749
|
-
errorCode,
|
|
1750
|
-
});
|
|
1751
|
-
}
|
|
1752
|
-
};
|
|
1753
|
-
const de_PublishBatchCommand = async (output, context) => {
|
|
1754
|
-
if (output.statusCode >= 300) {
|
|
1755
|
-
return de_PublishBatchCommandError(output, context);
|
|
1756
|
-
}
|
|
1757
|
-
const data = await parseBody(output.body, context);
|
|
1758
|
-
let contents = {};
|
|
1759
|
-
contents = de_PublishBatchResponse(data.PublishBatchResult, context);
|
|
1760
|
-
const response = {
|
|
1761
|
-
$metadata: deserializeMetadata(output),
|
|
1762
|
-
...contents,
|
|
1763
|
-
};
|
|
1764
|
-
return response;
|
|
1765
|
-
};
|
|
1766
|
-
exports.de_PublishBatchCommand = de_PublishBatchCommand;
|
|
1767
|
-
const de_PublishBatchCommandError = async (output, context) => {
|
|
1768
|
-
const parsedOutput = {
|
|
1769
|
-
...output,
|
|
1770
|
-
body: await parseErrorBody(output.body, context),
|
|
1771
|
-
};
|
|
1772
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1773
|
-
switch (errorCode) {
|
|
1774
|
-
case "AuthorizationError":
|
|
1775
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
1776
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1777
|
-
case "BatchEntryIdsNotDistinct":
|
|
1778
|
-
case "com.amazonaws.sns#BatchEntryIdsNotDistinctException":
|
|
1779
|
-
throw await de_BatchEntryIdsNotDistinctExceptionRes(parsedOutput, context);
|
|
1780
|
-
case "BatchRequestTooLong":
|
|
1781
|
-
case "com.amazonaws.sns#BatchRequestTooLongException":
|
|
1782
|
-
throw await de_BatchRequestTooLongExceptionRes(parsedOutput, context);
|
|
1783
|
-
case "EmptyBatchRequest":
|
|
1784
|
-
case "com.amazonaws.sns#EmptyBatchRequestException":
|
|
1785
|
-
throw await de_EmptyBatchRequestExceptionRes(parsedOutput, context);
|
|
1786
|
-
case "EndpointDisabled":
|
|
1787
|
-
case "com.amazonaws.sns#EndpointDisabledException":
|
|
1788
|
-
throw await de_EndpointDisabledExceptionRes(parsedOutput, context);
|
|
1789
|
-
case "InternalError":
|
|
1790
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
1791
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1792
|
-
case "InvalidBatchEntryId":
|
|
1793
|
-
case "com.amazonaws.sns#InvalidBatchEntryIdException":
|
|
1794
|
-
throw await de_InvalidBatchEntryIdExceptionRes(parsedOutput, context);
|
|
1795
|
-
case "InvalidParameter":
|
|
1796
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
1797
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1798
|
-
case "InvalidSecurity":
|
|
1799
|
-
case "com.amazonaws.sns#InvalidSecurityException":
|
|
1800
|
-
throw await de_InvalidSecurityExceptionRes(parsedOutput, context);
|
|
1801
|
-
case "KMSAccessDenied":
|
|
1802
|
-
case "com.amazonaws.sns#KMSAccessDeniedException":
|
|
1803
|
-
throw await de_KMSAccessDeniedExceptionRes(parsedOutput, context);
|
|
1804
|
-
case "KMSDisabled":
|
|
1805
|
-
case "com.amazonaws.sns#KMSDisabledException":
|
|
1806
|
-
throw await de_KMSDisabledExceptionRes(parsedOutput, context);
|
|
1807
|
-
case "KMSInvalidState":
|
|
1808
|
-
case "com.amazonaws.sns#KMSInvalidStateException":
|
|
1809
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
1810
|
-
case "KMSNotFound":
|
|
1811
|
-
case "com.amazonaws.sns#KMSNotFoundException":
|
|
1812
|
-
throw await de_KMSNotFoundExceptionRes(parsedOutput, context);
|
|
1813
|
-
case "KMSOptInRequired":
|
|
1814
|
-
case "com.amazonaws.sns#KMSOptInRequired":
|
|
1815
|
-
throw await de_KMSOptInRequiredRes(parsedOutput, context);
|
|
1816
|
-
case "KMSThrottling":
|
|
1817
|
-
case "com.amazonaws.sns#KMSThrottlingException":
|
|
1818
|
-
throw await de_KMSThrottlingExceptionRes(parsedOutput, context);
|
|
1819
|
-
case "NotFound":
|
|
1820
|
-
case "com.amazonaws.sns#NotFoundException":
|
|
1821
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1822
|
-
case "ParameterValueInvalid":
|
|
1823
|
-
case "com.amazonaws.sns#InvalidParameterValueException":
|
|
1824
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1825
|
-
case "PlatformApplicationDisabled":
|
|
1826
|
-
case "com.amazonaws.sns#PlatformApplicationDisabledException":
|
|
1827
|
-
throw await de_PlatformApplicationDisabledExceptionRes(parsedOutput, context);
|
|
1828
|
-
case "TooManyEntriesInBatchRequest":
|
|
1829
|
-
case "com.amazonaws.sns#TooManyEntriesInBatchRequestException":
|
|
1830
|
-
throw await de_TooManyEntriesInBatchRequestExceptionRes(parsedOutput, context);
|
|
1831
|
-
case "ValidationException":
|
|
1832
|
-
case "com.amazonaws.sns#ValidationException":
|
|
1833
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1834
|
-
default:
|
|
1835
|
-
const parsedBody = parsedOutput.body;
|
|
1836
|
-
return throwDefaultError({
|
|
1837
|
-
output,
|
|
1838
|
-
parsedBody: parsedBody.Error,
|
|
1839
|
-
errorCode,
|
|
1840
|
-
});
|
|
1841
|
-
}
|
|
1842
|
-
};
|
|
1843
|
-
const de_PutDataProtectionPolicyCommand = async (output, context) => {
|
|
1844
|
-
if (output.statusCode >= 300) {
|
|
1845
|
-
return de_PutDataProtectionPolicyCommandError(output, context);
|
|
1846
|
-
}
|
|
1847
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1848
|
-
const response = {
|
|
1849
|
-
$metadata: deserializeMetadata(output),
|
|
1850
|
-
};
|
|
1851
|
-
return response;
|
|
1852
|
-
};
|
|
1853
|
-
exports.de_PutDataProtectionPolicyCommand = de_PutDataProtectionPolicyCommand;
|
|
1854
|
-
const de_PutDataProtectionPolicyCommandError = async (output, context) => {
|
|
1855
|
-
const parsedOutput = {
|
|
1856
|
-
...output,
|
|
1857
|
-
body: await parseErrorBody(output.body, context),
|
|
1858
|
-
};
|
|
1859
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1860
|
-
switch (errorCode) {
|
|
1861
|
-
case "AuthorizationError":
|
|
1862
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
1863
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1864
|
-
case "InternalError":
|
|
1865
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
1866
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1867
|
-
case "InvalidParameter":
|
|
1868
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
1869
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1870
|
-
case "InvalidSecurity":
|
|
1871
|
-
case "com.amazonaws.sns#InvalidSecurityException":
|
|
1872
|
-
throw await de_InvalidSecurityExceptionRes(parsedOutput, context);
|
|
1873
|
-
case "NotFound":
|
|
1874
|
-
case "com.amazonaws.sns#NotFoundException":
|
|
1875
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1876
|
-
default:
|
|
1877
|
-
const parsedBody = parsedOutput.body;
|
|
1878
|
-
return throwDefaultError({
|
|
1879
|
-
output,
|
|
1880
|
-
parsedBody: parsedBody.Error,
|
|
1881
|
-
errorCode,
|
|
1882
|
-
});
|
|
1883
|
-
}
|
|
1884
|
-
};
|
|
1885
|
-
const de_RemovePermissionCommand = async (output, context) => {
|
|
1886
|
-
if (output.statusCode >= 300) {
|
|
1887
|
-
return de_RemovePermissionCommandError(output, context);
|
|
1888
|
-
}
|
|
1889
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1890
|
-
const response = {
|
|
1891
|
-
$metadata: deserializeMetadata(output),
|
|
1892
|
-
};
|
|
1893
|
-
return response;
|
|
1894
|
-
};
|
|
1895
|
-
exports.de_RemovePermissionCommand = de_RemovePermissionCommand;
|
|
1896
|
-
const de_RemovePermissionCommandError = async (output, context) => {
|
|
1897
|
-
const parsedOutput = {
|
|
1898
|
-
...output,
|
|
1899
|
-
body: await parseErrorBody(output.body, context),
|
|
1900
|
-
};
|
|
1901
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1902
|
-
switch (errorCode) {
|
|
1903
|
-
case "AuthorizationError":
|
|
1904
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
1905
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1906
|
-
case "InternalError":
|
|
1907
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
1908
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1909
|
-
case "InvalidParameter":
|
|
1910
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
1911
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1912
|
-
case "NotFound":
|
|
1913
|
-
case "com.amazonaws.sns#NotFoundException":
|
|
1914
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1915
|
-
default:
|
|
1916
|
-
const parsedBody = parsedOutput.body;
|
|
1917
|
-
return throwDefaultError({
|
|
1918
|
-
output,
|
|
1919
|
-
parsedBody: parsedBody.Error,
|
|
1920
|
-
errorCode,
|
|
1921
|
-
});
|
|
1922
|
-
}
|
|
1923
|
-
};
|
|
1924
|
-
const de_SetEndpointAttributesCommand = async (output, context) => {
|
|
1925
|
-
if (output.statusCode >= 300) {
|
|
1926
|
-
return de_SetEndpointAttributesCommandError(output, context);
|
|
1927
|
-
}
|
|
1928
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1929
|
-
const response = {
|
|
1930
|
-
$metadata: deserializeMetadata(output),
|
|
1931
|
-
};
|
|
1932
|
-
return response;
|
|
1933
|
-
};
|
|
1934
|
-
exports.de_SetEndpointAttributesCommand = de_SetEndpointAttributesCommand;
|
|
1935
|
-
const de_SetEndpointAttributesCommandError = async (output, context) => {
|
|
1936
|
-
const parsedOutput = {
|
|
1937
|
-
...output,
|
|
1938
|
-
body: await parseErrorBody(output.body, context),
|
|
1939
|
-
};
|
|
1940
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1941
|
-
switch (errorCode) {
|
|
1942
|
-
case "AuthorizationError":
|
|
1943
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
1944
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1945
|
-
case "InternalError":
|
|
1946
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
1947
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1948
|
-
case "InvalidParameter":
|
|
1949
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
1950
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1951
|
-
case "NotFound":
|
|
1952
|
-
case "com.amazonaws.sns#NotFoundException":
|
|
1953
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1954
|
-
default:
|
|
1955
|
-
const parsedBody = parsedOutput.body;
|
|
1956
|
-
return throwDefaultError({
|
|
1957
|
-
output,
|
|
1958
|
-
parsedBody: parsedBody.Error,
|
|
1959
|
-
errorCode,
|
|
1960
|
-
});
|
|
1961
|
-
}
|
|
1962
|
-
};
|
|
1963
|
-
const de_SetPlatformApplicationAttributesCommand = async (output, context) => {
|
|
1964
|
-
if (output.statusCode >= 300) {
|
|
1965
|
-
return de_SetPlatformApplicationAttributesCommandError(output, context);
|
|
1966
|
-
}
|
|
1967
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1968
|
-
const response = {
|
|
1969
|
-
$metadata: deserializeMetadata(output),
|
|
1970
|
-
};
|
|
1971
|
-
return response;
|
|
1972
|
-
};
|
|
1973
|
-
exports.de_SetPlatformApplicationAttributesCommand = de_SetPlatformApplicationAttributesCommand;
|
|
1974
|
-
const de_SetPlatformApplicationAttributesCommandError = async (output, context) => {
|
|
1975
|
-
const parsedOutput = {
|
|
1976
|
-
...output,
|
|
1977
|
-
body: await parseErrorBody(output.body, context),
|
|
1978
|
-
};
|
|
1979
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1980
|
-
switch (errorCode) {
|
|
1981
|
-
case "AuthorizationError":
|
|
1982
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
1983
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1984
|
-
case "InternalError":
|
|
1985
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
1986
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1987
|
-
case "InvalidParameter":
|
|
1988
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
1989
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1990
|
-
case "NotFound":
|
|
1991
|
-
case "com.amazonaws.sns#NotFoundException":
|
|
1992
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1993
|
-
default:
|
|
1994
|
-
const parsedBody = parsedOutput.body;
|
|
1995
|
-
return throwDefaultError({
|
|
1996
|
-
output,
|
|
1997
|
-
parsedBody: parsedBody.Error,
|
|
1998
|
-
errorCode,
|
|
1999
|
-
});
|
|
2000
|
-
}
|
|
2001
|
-
};
|
|
2002
|
-
const de_SetSMSAttributesCommand = async (output, context) => {
|
|
2003
|
-
if (output.statusCode >= 300) {
|
|
2004
|
-
return de_SetSMSAttributesCommandError(output, context);
|
|
2005
|
-
}
|
|
2006
|
-
const data = await parseBody(output.body, context);
|
|
2007
|
-
let contents = {};
|
|
2008
|
-
contents = de_SetSMSAttributesResponse(data.SetSMSAttributesResult, context);
|
|
2009
|
-
const response = {
|
|
2010
|
-
$metadata: deserializeMetadata(output),
|
|
2011
|
-
...contents,
|
|
2012
|
-
};
|
|
2013
|
-
return response;
|
|
2014
|
-
};
|
|
2015
|
-
exports.de_SetSMSAttributesCommand = de_SetSMSAttributesCommand;
|
|
2016
|
-
const de_SetSMSAttributesCommandError = async (output, context) => {
|
|
2017
|
-
const parsedOutput = {
|
|
2018
|
-
...output,
|
|
2019
|
-
body: await parseErrorBody(output.body, context),
|
|
2020
|
-
};
|
|
2021
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2022
|
-
switch (errorCode) {
|
|
2023
|
-
case "AuthorizationError":
|
|
2024
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
2025
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
2026
|
-
case "InternalError":
|
|
2027
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
2028
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
2029
|
-
case "InvalidParameter":
|
|
2030
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
2031
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2032
|
-
case "Throttled":
|
|
2033
|
-
case "com.amazonaws.sns#ThrottledException":
|
|
2034
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
2035
|
-
default:
|
|
2036
|
-
const parsedBody = parsedOutput.body;
|
|
2037
|
-
return throwDefaultError({
|
|
2038
|
-
output,
|
|
2039
|
-
parsedBody: parsedBody.Error,
|
|
2040
|
-
errorCode,
|
|
2041
|
-
});
|
|
2042
|
-
}
|
|
2043
|
-
};
|
|
2044
|
-
const de_SetSubscriptionAttributesCommand = async (output, context) => {
|
|
2045
|
-
if (output.statusCode >= 300) {
|
|
2046
|
-
return de_SetSubscriptionAttributesCommandError(output, context);
|
|
2047
|
-
}
|
|
2048
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2049
|
-
const response = {
|
|
2050
|
-
$metadata: deserializeMetadata(output),
|
|
2051
|
-
};
|
|
2052
|
-
return response;
|
|
2053
|
-
};
|
|
2054
|
-
exports.de_SetSubscriptionAttributesCommand = de_SetSubscriptionAttributesCommand;
|
|
2055
|
-
const de_SetSubscriptionAttributesCommandError = async (output, context) => {
|
|
2056
|
-
const parsedOutput = {
|
|
2057
|
-
...output,
|
|
2058
|
-
body: await parseErrorBody(output.body, context),
|
|
2059
|
-
};
|
|
2060
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2061
|
-
switch (errorCode) {
|
|
2062
|
-
case "AuthorizationError":
|
|
2063
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
2064
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
2065
|
-
case "FilterPolicyLimitExceeded":
|
|
2066
|
-
case "com.amazonaws.sns#FilterPolicyLimitExceededException":
|
|
2067
|
-
throw await de_FilterPolicyLimitExceededExceptionRes(parsedOutput, context);
|
|
2068
|
-
case "InternalError":
|
|
2069
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
2070
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
2071
|
-
case "InvalidParameter":
|
|
2072
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
2073
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2074
|
-
case "NotFound":
|
|
2075
|
-
case "com.amazonaws.sns#NotFoundException":
|
|
2076
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2077
|
-
case "ReplayLimitExceeded":
|
|
2078
|
-
case "com.amazonaws.sns#ReplayLimitExceededException":
|
|
2079
|
-
throw await de_ReplayLimitExceededExceptionRes(parsedOutput, context);
|
|
2080
|
-
default:
|
|
2081
|
-
const parsedBody = parsedOutput.body;
|
|
2082
|
-
return throwDefaultError({
|
|
2083
|
-
output,
|
|
2084
|
-
parsedBody: parsedBody.Error,
|
|
2085
|
-
errorCode,
|
|
2086
|
-
});
|
|
2087
|
-
}
|
|
2088
|
-
};
|
|
2089
|
-
const de_SetTopicAttributesCommand = async (output, context) => {
|
|
2090
|
-
if (output.statusCode >= 300) {
|
|
2091
|
-
return de_SetTopicAttributesCommandError(output, context);
|
|
2092
|
-
}
|
|
2093
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2094
|
-
const response = {
|
|
2095
|
-
$metadata: deserializeMetadata(output),
|
|
2096
|
-
};
|
|
2097
|
-
return response;
|
|
2098
|
-
};
|
|
2099
|
-
exports.de_SetTopicAttributesCommand = de_SetTopicAttributesCommand;
|
|
2100
|
-
const de_SetTopicAttributesCommandError = async (output, context) => {
|
|
2101
|
-
const parsedOutput = {
|
|
2102
|
-
...output,
|
|
2103
|
-
body: await parseErrorBody(output.body, context),
|
|
2104
|
-
};
|
|
2105
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2106
|
-
switch (errorCode) {
|
|
2107
|
-
case "AuthorizationError":
|
|
2108
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
2109
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
2110
|
-
case "InternalError":
|
|
2111
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
2112
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
2113
|
-
case "InvalidParameter":
|
|
2114
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
2115
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2116
|
-
case "InvalidSecurity":
|
|
2117
|
-
case "com.amazonaws.sns#InvalidSecurityException":
|
|
2118
|
-
throw await de_InvalidSecurityExceptionRes(parsedOutput, context);
|
|
2119
|
-
case "NotFound":
|
|
2120
|
-
case "com.amazonaws.sns#NotFoundException":
|
|
2121
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2122
|
-
default:
|
|
2123
|
-
const parsedBody = parsedOutput.body;
|
|
2124
|
-
return throwDefaultError({
|
|
2125
|
-
output,
|
|
2126
|
-
parsedBody: parsedBody.Error,
|
|
2127
|
-
errorCode,
|
|
2128
|
-
});
|
|
2129
|
-
}
|
|
2130
|
-
};
|
|
2131
|
-
const de_SubscribeCommand = async (output, context) => {
|
|
2132
|
-
if (output.statusCode >= 300) {
|
|
2133
|
-
return de_SubscribeCommandError(output, context);
|
|
2134
|
-
}
|
|
2135
|
-
const data = await parseBody(output.body, context);
|
|
2136
|
-
let contents = {};
|
|
2137
|
-
contents = de_SubscribeResponse(data.SubscribeResult, context);
|
|
2138
|
-
const response = {
|
|
2139
|
-
$metadata: deserializeMetadata(output),
|
|
2140
|
-
...contents,
|
|
2141
|
-
};
|
|
2142
|
-
return response;
|
|
2143
|
-
};
|
|
2144
|
-
exports.de_SubscribeCommand = de_SubscribeCommand;
|
|
2145
|
-
const de_SubscribeCommandError = async (output, context) => {
|
|
2146
|
-
const parsedOutput = {
|
|
2147
|
-
...output,
|
|
2148
|
-
body: await parseErrorBody(output.body, context),
|
|
2149
|
-
};
|
|
2150
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2151
|
-
switch (errorCode) {
|
|
2152
|
-
case "AuthorizationError":
|
|
2153
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
2154
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
2155
|
-
case "FilterPolicyLimitExceeded":
|
|
2156
|
-
case "com.amazonaws.sns#FilterPolicyLimitExceededException":
|
|
2157
|
-
throw await de_FilterPolicyLimitExceededExceptionRes(parsedOutput, context);
|
|
2158
|
-
case "InternalError":
|
|
2159
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
2160
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
2161
|
-
case "InvalidParameter":
|
|
2162
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
2163
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2164
|
-
case "InvalidSecurity":
|
|
2165
|
-
case "com.amazonaws.sns#InvalidSecurityException":
|
|
2166
|
-
throw await de_InvalidSecurityExceptionRes(parsedOutput, context);
|
|
2167
|
-
case "NotFound":
|
|
2168
|
-
case "com.amazonaws.sns#NotFoundException":
|
|
2169
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2170
|
-
case "ReplayLimitExceeded":
|
|
2171
|
-
case "com.amazonaws.sns#ReplayLimitExceededException":
|
|
2172
|
-
throw await de_ReplayLimitExceededExceptionRes(parsedOutput, context);
|
|
2173
|
-
case "SubscriptionLimitExceeded":
|
|
2174
|
-
case "com.amazonaws.sns#SubscriptionLimitExceededException":
|
|
2175
|
-
throw await de_SubscriptionLimitExceededExceptionRes(parsedOutput, context);
|
|
2176
|
-
default:
|
|
2177
|
-
const parsedBody = parsedOutput.body;
|
|
2178
|
-
return throwDefaultError({
|
|
2179
|
-
output,
|
|
2180
|
-
parsedBody: parsedBody.Error,
|
|
2181
|
-
errorCode,
|
|
2182
|
-
});
|
|
2183
|
-
}
|
|
2184
|
-
};
|
|
2185
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
2186
|
-
if (output.statusCode >= 300) {
|
|
2187
|
-
return de_TagResourceCommandError(output, context);
|
|
2188
|
-
}
|
|
2189
|
-
const data = await parseBody(output.body, context);
|
|
2190
|
-
let contents = {};
|
|
2191
|
-
contents = de_TagResourceResponse(data.TagResourceResult, context);
|
|
2192
|
-
const response = {
|
|
2193
|
-
$metadata: deserializeMetadata(output),
|
|
2194
|
-
...contents,
|
|
2195
|
-
};
|
|
2196
|
-
return response;
|
|
2197
|
-
};
|
|
2198
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
2199
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
2200
|
-
const parsedOutput = {
|
|
2201
|
-
...output,
|
|
2202
|
-
body: await parseErrorBody(output.body, context),
|
|
2203
|
-
};
|
|
2204
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2205
|
-
switch (errorCode) {
|
|
2206
|
-
case "AuthorizationError":
|
|
2207
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
2208
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
2209
|
-
case "ConcurrentAccess":
|
|
2210
|
-
case "com.amazonaws.sns#ConcurrentAccessException":
|
|
2211
|
-
throw await de_ConcurrentAccessExceptionRes(parsedOutput, context);
|
|
2212
|
-
case "InvalidParameter":
|
|
2213
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
2214
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2215
|
-
case "ResourceNotFound":
|
|
2216
|
-
case "com.amazonaws.sns#ResourceNotFoundException":
|
|
2217
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2218
|
-
case "StaleTag":
|
|
2219
|
-
case "com.amazonaws.sns#StaleTagException":
|
|
2220
|
-
throw await de_StaleTagExceptionRes(parsedOutput, context);
|
|
2221
|
-
case "TagLimitExceeded":
|
|
2222
|
-
case "com.amazonaws.sns#TagLimitExceededException":
|
|
2223
|
-
throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
|
|
2224
|
-
case "TagPolicy":
|
|
2225
|
-
case "com.amazonaws.sns#TagPolicyException":
|
|
2226
|
-
throw await de_TagPolicyExceptionRes(parsedOutput, context);
|
|
2227
|
-
default:
|
|
2228
|
-
const parsedBody = parsedOutput.body;
|
|
2229
|
-
return throwDefaultError({
|
|
2230
|
-
output,
|
|
2231
|
-
parsedBody: parsedBody.Error,
|
|
2232
|
-
errorCode,
|
|
2233
|
-
});
|
|
2234
|
-
}
|
|
2235
|
-
};
|
|
2236
|
-
const de_UnsubscribeCommand = async (output, context) => {
|
|
2237
|
-
if (output.statusCode >= 300) {
|
|
2238
|
-
return de_UnsubscribeCommandError(output, context);
|
|
2239
|
-
}
|
|
2240
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2241
|
-
const response = {
|
|
2242
|
-
$metadata: deserializeMetadata(output),
|
|
2243
|
-
};
|
|
2244
|
-
return response;
|
|
2245
|
-
};
|
|
2246
|
-
exports.de_UnsubscribeCommand = de_UnsubscribeCommand;
|
|
2247
|
-
const de_UnsubscribeCommandError = async (output, context) => {
|
|
2248
|
-
const parsedOutput = {
|
|
2249
|
-
...output,
|
|
2250
|
-
body: await parseErrorBody(output.body, context),
|
|
2251
|
-
};
|
|
2252
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2253
|
-
switch (errorCode) {
|
|
2254
|
-
case "AuthorizationError":
|
|
2255
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
2256
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
2257
|
-
case "InternalError":
|
|
2258
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
2259
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
2260
|
-
case "InvalidParameter":
|
|
2261
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
2262
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2263
|
-
case "InvalidSecurity":
|
|
2264
|
-
case "com.amazonaws.sns#InvalidSecurityException":
|
|
2265
|
-
throw await de_InvalidSecurityExceptionRes(parsedOutput, context);
|
|
2266
|
-
case "NotFound":
|
|
2267
|
-
case "com.amazonaws.sns#NotFoundException":
|
|
2268
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2269
|
-
default:
|
|
2270
|
-
const parsedBody = parsedOutput.body;
|
|
2271
|
-
return throwDefaultError({
|
|
2272
|
-
output,
|
|
2273
|
-
parsedBody: parsedBody.Error,
|
|
2274
|
-
errorCode,
|
|
2275
|
-
});
|
|
2276
|
-
}
|
|
2277
|
-
};
|
|
2278
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
2279
|
-
if (output.statusCode >= 300) {
|
|
2280
|
-
return de_UntagResourceCommandError(output, context);
|
|
2281
|
-
}
|
|
2282
|
-
const data = await parseBody(output.body, context);
|
|
2283
|
-
let contents = {};
|
|
2284
|
-
contents = de_UntagResourceResponse(data.UntagResourceResult, context);
|
|
2285
|
-
const response = {
|
|
2286
|
-
$metadata: deserializeMetadata(output),
|
|
2287
|
-
...contents,
|
|
2288
|
-
};
|
|
2289
|
-
return response;
|
|
2290
|
-
};
|
|
2291
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
2292
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
2293
|
-
const parsedOutput = {
|
|
2294
|
-
...output,
|
|
2295
|
-
body: await parseErrorBody(output.body, context),
|
|
2296
|
-
};
|
|
2297
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2298
|
-
switch (errorCode) {
|
|
2299
|
-
case "AuthorizationError":
|
|
2300
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
2301
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
2302
|
-
case "ConcurrentAccess":
|
|
2303
|
-
case "com.amazonaws.sns#ConcurrentAccessException":
|
|
2304
|
-
throw await de_ConcurrentAccessExceptionRes(parsedOutput, context);
|
|
2305
|
-
case "InvalidParameter":
|
|
2306
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
2307
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2308
|
-
case "ResourceNotFound":
|
|
2309
|
-
case "com.amazonaws.sns#ResourceNotFoundException":
|
|
2310
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2311
|
-
case "StaleTag":
|
|
2312
|
-
case "com.amazonaws.sns#StaleTagException":
|
|
2313
|
-
throw await de_StaleTagExceptionRes(parsedOutput, context);
|
|
2314
|
-
case "TagLimitExceeded":
|
|
2315
|
-
case "com.amazonaws.sns#TagLimitExceededException":
|
|
2316
|
-
throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
|
|
2317
|
-
case "TagPolicy":
|
|
2318
|
-
case "com.amazonaws.sns#TagPolicyException":
|
|
2319
|
-
throw await de_TagPolicyExceptionRes(parsedOutput, context);
|
|
2320
|
-
default:
|
|
2321
|
-
const parsedBody = parsedOutput.body;
|
|
2322
|
-
return throwDefaultError({
|
|
2323
|
-
output,
|
|
2324
|
-
parsedBody: parsedBody.Error,
|
|
2325
|
-
errorCode,
|
|
2326
|
-
});
|
|
2327
|
-
}
|
|
2328
|
-
};
|
|
2329
|
-
const de_VerifySMSSandboxPhoneNumberCommand = async (output, context) => {
|
|
2330
|
-
if (output.statusCode >= 300) {
|
|
2331
|
-
return de_VerifySMSSandboxPhoneNumberCommandError(output, context);
|
|
2332
|
-
}
|
|
2333
|
-
const data = await parseBody(output.body, context);
|
|
2334
|
-
let contents = {};
|
|
2335
|
-
contents = de_VerifySMSSandboxPhoneNumberResult(data.VerifySMSSandboxPhoneNumberResult, context);
|
|
2336
|
-
const response = {
|
|
2337
|
-
$metadata: deserializeMetadata(output),
|
|
2338
|
-
...contents,
|
|
2339
|
-
};
|
|
2340
|
-
return response;
|
|
2341
|
-
};
|
|
2342
|
-
exports.de_VerifySMSSandboxPhoneNumberCommand = de_VerifySMSSandboxPhoneNumberCommand;
|
|
2343
|
-
const de_VerifySMSSandboxPhoneNumberCommandError = async (output, context) => {
|
|
2344
|
-
const parsedOutput = {
|
|
2345
|
-
...output,
|
|
2346
|
-
body: await parseErrorBody(output.body, context),
|
|
2347
|
-
};
|
|
2348
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2349
|
-
switch (errorCode) {
|
|
2350
|
-
case "AuthorizationError":
|
|
2351
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
2352
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
2353
|
-
case "InternalError":
|
|
2354
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
2355
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
2356
|
-
case "InvalidParameter":
|
|
2357
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
2358
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2359
|
-
case "ResourceNotFound":
|
|
2360
|
-
case "com.amazonaws.sns#ResourceNotFoundException":
|
|
2361
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2362
|
-
case "Throttled":
|
|
2363
|
-
case "com.amazonaws.sns#ThrottledException":
|
|
2364
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
2365
|
-
case "VerificationException":
|
|
2366
|
-
case "com.amazonaws.sns#VerificationException":
|
|
2367
|
-
throw await de_VerificationExceptionRes(parsedOutput, context);
|
|
2368
|
-
default:
|
|
2369
|
-
const parsedBody = parsedOutput.body;
|
|
2370
|
-
return throwDefaultError({
|
|
2371
|
-
output,
|
|
2372
|
-
parsedBody: parsedBody.Error,
|
|
2373
|
-
errorCode,
|
|
2374
|
-
});
|
|
2375
|
-
}
|
|
2376
|
-
};
|
|
2377
|
-
const de_AuthorizationErrorExceptionRes = async (parsedOutput, context) => {
|
|
2378
|
-
const body = parsedOutput.body;
|
|
2379
|
-
const deserialized = de_AuthorizationErrorException(body.Error, context);
|
|
2380
|
-
const exception = new models_0_1.AuthorizationErrorException({
|
|
2381
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2382
|
-
...deserialized,
|
|
2383
|
-
});
|
|
2384
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2385
|
-
};
|
|
2386
|
-
const de_BatchEntryIdsNotDistinctExceptionRes = async (parsedOutput, context) => {
|
|
2387
|
-
const body = parsedOutput.body;
|
|
2388
|
-
const deserialized = de_BatchEntryIdsNotDistinctException(body.Error, context);
|
|
2389
|
-
const exception = new models_0_1.BatchEntryIdsNotDistinctException({
|
|
2390
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2391
|
-
...deserialized,
|
|
2392
|
-
});
|
|
2393
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2394
|
-
};
|
|
2395
|
-
const de_BatchRequestTooLongExceptionRes = async (parsedOutput, context) => {
|
|
2396
|
-
const body = parsedOutput.body;
|
|
2397
|
-
const deserialized = de_BatchRequestTooLongException(body.Error, context);
|
|
2398
|
-
const exception = new models_0_1.BatchRequestTooLongException({
|
|
2399
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2400
|
-
...deserialized,
|
|
2401
|
-
});
|
|
2402
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2403
|
-
};
|
|
2404
|
-
const de_ConcurrentAccessExceptionRes = async (parsedOutput, context) => {
|
|
2405
|
-
const body = parsedOutput.body;
|
|
2406
|
-
const deserialized = de_ConcurrentAccessException(body.Error, context);
|
|
2407
|
-
const exception = new models_0_1.ConcurrentAccessException({
|
|
2408
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2409
|
-
...deserialized,
|
|
2410
|
-
});
|
|
2411
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2412
|
-
};
|
|
2413
|
-
const de_EmptyBatchRequestExceptionRes = async (parsedOutput, context) => {
|
|
2414
|
-
const body = parsedOutput.body;
|
|
2415
|
-
const deserialized = de_EmptyBatchRequestException(body.Error, context);
|
|
2416
|
-
const exception = new models_0_1.EmptyBatchRequestException({
|
|
2417
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2418
|
-
...deserialized,
|
|
2419
|
-
});
|
|
2420
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2421
|
-
};
|
|
2422
|
-
const de_EndpointDisabledExceptionRes = async (parsedOutput, context) => {
|
|
2423
|
-
const body = parsedOutput.body;
|
|
2424
|
-
const deserialized = de_EndpointDisabledException(body.Error, context);
|
|
2425
|
-
const exception = new models_0_1.EndpointDisabledException({
|
|
2426
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2427
|
-
...deserialized,
|
|
2428
|
-
});
|
|
2429
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2430
|
-
};
|
|
2431
|
-
const de_FilterPolicyLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2432
|
-
const body = parsedOutput.body;
|
|
2433
|
-
const deserialized = de_FilterPolicyLimitExceededException(body.Error, context);
|
|
2434
|
-
const exception = new models_0_1.FilterPolicyLimitExceededException({
|
|
2435
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2436
|
-
...deserialized,
|
|
2437
|
-
});
|
|
2438
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2439
|
-
};
|
|
2440
|
-
const de_InternalErrorExceptionRes = async (parsedOutput, context) => {
|
|
2441
|
-
const body = parsedOutput.body;
|
|
2442
|
-
const deserialized = de_InternalErrorException(body.Error, context);
|
|
2443
|
-
const exception = new models_0_1.InternalErrorException({
|
|
2444
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2445
|
-
...deserialized,
|
|
2446
|
-
});
|
|
2447
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2448
|
-
};
|
|
2449
|
-
const de_InvalidBatchEntryIdExceptionRes = async (parsedOutput, context) => {
|
|
2450
|
-
const body = parsedOutput.body;
|
|
2451
|
-
const deserialized = de_InvalidBatchEntryIdException(body.Error, context);
|
|
2452
|
-
const exception = new models_0_1.InvalidBatchEntryIdException({
|
|
2453
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2454
|
-
...deserialized,
|
|
2455
|
-
});
|
|
2456
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2457
|
-
};
|
|
2458
|
-
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
2459
|
-
const body = parsedOutput.body;
|
|
2460
|
-
const deserialized = de_InvalidParameterException(body.Error, context);
|
|
2461
|
-
const exception = new models_0_1.InvalidParameterException({
|
|
2462
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2463
|
-
...deserialized,
|
|
2464
|
-
});
|
|
2465
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2466
|
-
};
|
|
2467
|
-
const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
|
|
2468
|
-
const body = parsedOutput.body;
|
|
2469
|
-
const deserialized = de_InvalidParameterValueException(body.Error, context);
|
|
2470
|
-
const exception = new models_0_1.InvalidParameterValueException({
|
|
2471
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2472
|
-
...deserialized,
|
|
2473
|
-
});
|
|
2474
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2475
|
-
};
|
|
2476
|
-
const de_InvalidSecurityExceptionRes = async (parsedOutput, context) => {
|
|
2477
|
-
const body = parsedOutput.body;
|
|
2478
|
-
const deserialized = de_InvalidSecurityException(body.Error, context);
|
|
2479
|
-
const exception = new models_0_1.InvalidSecurityException({
|
|
2480
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2481
|
-
...deserialized,
|
|
2482
|
-
});
|
|
2483
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2484
|
-
};
|
|
2485
|
-
const de_InvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
2486
|
-
const body = parsedOutput.body;
|
|
2487
|
-
const deserialized = de_InvalidStateException(body.Error, context);
|
|
2488
|
-
const exception = new models_0_1.InvalidStateException({
|
|
2489
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2490
|
-
...deserialized,
|
|
2491
|
-
});
|
|
2492
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2493
|
-
};
|
|
2494
|
-
const de_KMSAccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2495
|
-
const body = parsedOutput.body;
|
|
2496
|
-
const deserialized = de_KMSAccessDeniedException(body.Error, context);
|
|
2497
|
-
const exception = new models_0_1.KMSAccessDeniedException({
|
|
2498
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2499
|
-
...deserialized,
|
|
2500
|
-
});
|
|
2501
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2502
|
-
};
|
|
2503
|
-
const de_KMSDisabledExceptionRes = async (parsedOutput, context) => {
|
|
2504
|
-
const body = parsedOutput.body;
|
|
2505
|
-
const deserialized = de_KMSDisabledException(body.Error, context);
|
|
2506
|
-
const exception = new models_0_1.KMSDisabledException({
|
|
2507
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2508
|
-
...deserialized,
|
|
2509
|
-
});
|
|
2510
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2511
|
-
};
|
|
2512
|
-
const de_KMSInvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
2513
|
-
const body = parsedOutput.body;
|
|
2514
|
-
const deserialized = de_KMSInvalidStateException(body.Error, context);
|
|
2515
|
-
const exception = new models_0_1.KMSInvalidStateException({
|
|
2516
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2517
|
-
...deserialized,
|
|
2518
|
-
});
|
|
2519
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2520
|
-
};
|
|
2521
|
-
const de_KMSNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2522
|
-
const body = parsedOutput.body;
|
|
2523
|
-
const deserialized = de_KMSNotFoundException(body.Error, context);
|
|
2524
|
-
const exception = new models_0_1.KMSNotFoundException({
|
|
2525
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2526
|
-
...deserialized,
|
|
2527
|
-
});
|
|
2528
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2529
|
-
};
|
|
2530
|
-
const de_KMSOptInRequiredRes = async (parsedOutput, context) => {
|
|
2531
|
-
const body = parsedOutput.body;
|
|
2532
|
-
const deserialized = de_KMSOptInRequired(body.Error, context);
|
|
2533
|
-
const exception = new models_0_1.KMSOptInRequired({
|
|
2534
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2535
|
-
...deserialized,
|
|
2536
|
-
});
|
|
2537
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2538
|
-
};
|
|
2539
|
-
const de_KMSThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2540
|
-
const body = parsedOutput.body;
|
|
2541
|
-
const deserialized = de_KMSThrottlingException(body.Error, context);
|
|
2542
|
-
const exception = new models_0_1.KMSThrottlingException({
|
|
2543
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2544
|
-
...deserialized,
|
|
2545
|
-
});
|
|
2546
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2547
|
-
};
|
|
2548
|
-
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2549
|
-
const body = parsedOutput.body;
|
|
2550
|
-
const deserialized = de_NotFoundException(body.Error, context);
|
|
2551
|
-
const exception = new models_0_1.NotFoundException({
|
|
2552
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2553
|
-
...deserialized,
|
|
2554
|
-
});
|
|
2555
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2556
|
-
};
|
|
2557
|
-
const de_OptedOutExceptionRes = async (parsedOutput, context) => {
|
|
2558
|
-
const body = parsedOutput.body;
|
|
2559
|
-
const deserialized = de_OptedOutException(body.Error, context);
|
|
2560
|
-
const exception = new models_0_1.OptedOutException({
|
|
2561
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2562
|
-
...deserialized,
|
|
2563
|
-
});
|
|
2564
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2565
|
-
};
|
|
2566
|
-
const de_PlatformApplicationDisabledExceptionRes = async (parsedOutput, context) => {
|
|
2567
|
-
const body = parsedOutput.body;
|
|
2568
|
-
const deserialized = de_PlatformApplicationDisabledException(body.Error, context);
|
|
2569
|
-
const exception = new models_0_1.PlatformApplicationDisabledException({
|
|
2570
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2571
|
-
...deserialized,
|
|
2572
|
-
});
|
|
2573
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2574
|
-
};
|
|
2575
|
-
const de_ReplayLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2576
|
-
const body = parsedOutput.body;
|
|
2577
|
-
const deserialized = de_ReplayLimitExceededException(body.Error, context);
|
|
2578
|
-
const exception = new models_0_1.ReplayLimitExceededException({
|
|
2579
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2580
|
-
...deserialized,
|
|
2581
|
-
});
|
|
2582
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2583
|
-
};
|
|
2584
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2585
|
-
const body = parsedOutput.body;
|
|
2586
|
-
const deserialized = de_ResourceNotFoundException(body.Error, context);
|
|
2587
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
2588
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2589
|
-
...deserialized,
|
|
2590
|
-
});
|
|
2591
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2592
|
-
};
|
|
2593
|
-
const de_StaleTagExceptionRes = async (parsedOutput, context) => {
|
|
2594
|
-
const body = parsedOutput.body;
|
|
2595
|
-
const deserialized = de_StaleTagException(body.Error, context);
|
|
2596
|
-
const exception = new models_0_1.StaleTagException({
|
|
2597
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2598
|
-
...deserialized,
|
|
2599
|
-
});
|
|
2600
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2601
|
-
};
|
|
2602
|
-
const de_SubscriptionLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2603
|
-
const body = parsedOutput.body;
|
|
2604
|
-
const deserialized = de_SubscriptionLimitExceededException(body.Error, context);
|
|
2605
|
-
const exception = new models_0_1.SubscriptionLimitExceededException({
|
|
2606
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2607
|
-
...deserialized,
|
|
2608
|
-
});
|
|
2609
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2610
|
-
};
|
|
2611
|
-
const de_TagLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2612
|
-
const body = parsedOutput.body;
|
|
2613
|
-
const deserialized = de_TagLimitExceededException(body.Error, context);
|
|
2614
|
-
const exception = new models_0_1.TagLimitExceededException({
|
|
2615
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2616
|
-
...deserialized,
|
|
2617
|
-
});
|
|
2618
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2619
|
-
};
|
|
2620
|
-
const de_TagPolicyExceptionRes = async (parsedOutput, context) => {
|
|
2621
|
-
const body = parsedOutput.body;
|
|
2622
|
-
const deserialized = de_TagPolicyException(body.Error, context);
|
|
2623
|
-
const exception = new models_0_1.TagPolicyException({
|
|
2624
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2625
|
-
...deserialized,
|
|
2626
|
-
});
|
|
2627
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2628
|
-
};
|
|
2629
|
-
const de_ThrottledExceptionRes = async (parsedOutput, context) => {
|
|
2630
|
-
const body = parsedOutput.body;
|
|
2631
|
-
const deserialized = de_ThrottledException(body.Error, context);
|
|
2632
|
-
const exception = new models_0_1.ThrottledException({
|
|
2633
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2634
|
-
...deserialized,
|
|
2635
|
-
});
|
|
2636
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2637
|
-
};
|
|
2638
|
-
const de_TooManyEntriesInBatchRequestExceptionRes = async (parsedOutput, context) => {
|
|
2639
|
-
const body = parsedOutput.body;
|
|
2640
|
-
const deserialized = de_TooManyEntriesInBatchRequestException(body.Error, context);
|
|
2641
|
-
const exception = new models_0_1.TooManyEntriesInBatchRequestException({
|
|
2642
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2643
|
-
...deserialized,
|
|
2644
|
-
});
|
|
2645
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2646
|
-
};
|
|
2647
|
-
const de_TopicLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2648
|
-
const body = parsedOutput.body;
|
|
2649
|
-
const deserialized = de_TopicLimitExceededException(body.Error, context);
|
|
2650
|
-
const exception = new models_0_1.TopicLimitExceededException({
|
|
2651
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2652
|
-
...deserialized,
|
|
2653
|
-
});
|
|
2654
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2655
|
-
};
|
|
2656
|
-
const de_UserErrorExceptionRes = async (parsedOutput, context) => {
|
|
2657
|
-
const body = parsedOutput.body;
|
|
2658
|
-
const deserialized = de_UserErrorException(body.Error, context);
|
|
2659
|
-
const exception = new models_0_1.UserErrorException({
|
|
2660
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2661
|
-
...deserialized,
|
|
2662
|
-
});
|
|
2663
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2664
|
-
};
|
|
2665
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2666
|
-
const body = parsedOutput.body;
|
|
2667
|
-
const deserialized = de_ValidationException(body.Error, context);
|
|
2668
|
-
const exception = new models_0_1.ValidationException({
|
|
2669
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2670
|
-
...deserialized,
|
|
2671
|
-
});
|
|
2672
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2673
|
-
};
|
|
2674
|
-
const de_VerificationExceptionRes = async (parsedOutput, context) => {
|
|
2675
|
-
const body = parsedOutput.body;
|
|
2676
|
-
const deserialized = de_VerificationException(body.Error, context);
|
|
2677
|
-
const exception = new models_0_1.VerificationException({
|
|
2678
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2679
|
-
...deserialized,
|
|
2680
|
-
});
|
|
2681
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2682
|
-
};
|
|
2683
|
-
const se_ActionsList = (input, context) => {
|
|
2684
|
-
const entries = {};
|
|
2685
|
-
let counter = 1;
|
|
2686
|
-
for (const entry of input) {
|
|
2687
|
-
if (entry === null) {
|
|
2688
|
-
continue;
|
|
2689
|
-
}
|
|
2690
|
-
entries[`member.${counter}`] = entry;
|
|
2691
|
-
counter++;
|
|
2692
|
-
}
|
|
2693
|
-
return entries;
|
|
2694
|
-
};
|
|
2695
|
-
const se_AddPermissionInput = (input, context) => {
|
|
2696
|
-
const entries = {};
|
|
2697
|
-
if (input[_TA] != null) {
|
|
2698
|
-
entries[_TA] = input[_TA];
|
|
2699
|
-
}
|
|
2700
|
-
if (input[_L] != null) {
|
|
2701
|
-
entries[_L] = input[_L];
|
|
2702
|
-
}
|
|
2703
|
-
if (input[_AWSAI] != null) {
|
|
2704
|
-
const memberEntries = se_DelegatesList(input[_AWSAI], context);
|
|
2705
|
-
if (input[_AWSAI]?.length === 0) {
|
|
2706
|
-
entries.AWSAccountId = [];
|
|
2707
|
-
}
|
|
2708
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2709
|
-
const loc = `AWSAccountId.${key}`;
|
|
2710
|
-
entries[loc] = value;
|
|
2711
|
-
});
|
|
2712
|
-
}
|
|
2713
|
-
if (input[_AN] != null) {
|
|
2714
|
-
const memberEntries = se_ActionsList(input[_AN], context);
|
|
2715
|
-
if (input[_AN]?.length === 0) {
|
|
2716
|
-
entries.ActionName = [];
|
|
2717
|
-
}
|
|
2718
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2719
|
-
const loc = `ActionName.${key}`;
|
|
2720
|
-
entries[loc] = value;
|
|
2721
|
-
});
|
|
2722
|
-
}
|
|
2723
|
-
return entries;
|
|
2724
|
-
};
|
|
2725
|
-
const se_CheckIfPhoneNumberIsOptedOutInput = (input, context) => {
|
|
2726
|
-
const entries = {};
|
|
2727
|
-
if (input[_pN] != null) {
|
|
2728
|
-
entries[_pN] = input[_pN];
|
|
2729
|
-
}
|
|
2730
|
-
return entries;
|
|
2731
|
-
};
|
|
2732
|
-
const se_ConfirmSubscriptionInput = (input, context) => {
|
|
2733
|
-
const entries = {};
|
|
2734
|
-
if (input[_TA] != null) {
|
|
2735
|
-
entries[_TA] = input[_TA];
|
|
2736
|
-
}
|
|
2737
|
-
if (input[_T] != null) {
|
|
2738
|
-
entries[_T] = input[_T];
|
|
2739
|
-
}
|
|
2740
|
-
if (input[_AOU] != null) {
|
|
2741
|
-
entries[_AOU] = input[_AOU];
|
|
2742
|
-
}
|
|
2743
|
-
return entries;
|
|
2744
|
-
};
|
|
2745
|
-
const se_CreatePlatformApplicationInput = (input, context) => {
|
|
2746
|
-
const entries = {};
|
|
2747
|
-
if (input[_N] != null) {
|
|
2748
|
-
entries[_N] = input[_N];
|
|
2749
|
-
}
|
|
2750
|
-
if (input[_Pl] != null) {
|
|
2751
|
-
entries[_Pl] = input[_Pl];
|
|
2752
|
-
}
|
|
2753
|
-
if (input[_At] != null) {
|
|
2754
|
-
const memberEntries = se_MapStringToString(input[_At], context);
|
|
2755
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2756
|
-
const loc = `Attributes.${key}`;
|
|
2757
|
-
entries[loc] = value;
|
|
2758
|
-
});
|
|
2759
|
-
}
|
|
2760
|
-
return entries;
|
|
2761
|
-
};
|
|
2762
|
-
const se_CreatePlatformEndpointInput = (input, context) => {
|
|
2763
|
-
const entries = {};
|
|
2764
|
-
if (input[_PAA] != null) {
|
|
2765
|
-
entries[_PAA] = input[_PAA];
|
|
2766
|
-
}
|
|
2767
|
-
if (input[_T] != null) {
|
|
2768
|
-
entries[_T] = input[_T];
|
|
2769
|
-
}
|
|
2770
|
-
if (input[_CUD] != null) {
|
|
2771
|
-
entries[_CUD] = input[_CUD];
|
|
2772
|
-
}
|
|
2773
|
-
if (input[_At] != null) {
|
|
2774
|
-
const memberEntries = se_MapStringToString(input[_At], context);
|
|
2775
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2776
|
-
const loc = `Attributes.${key}`;
|
|
2777
|
-
entries[loc] = value;
|
|
2778
|
-
});
|
|
2779
|
-
}
|
|
2780
|
-
return entries;
|
|
2781
|
-
};
|
|
2782
|
-
const se_CreateSMSSandboxPhoneNumberInput = (input, context) => {
|
|
2783
|
-
const entries = {};
|
|
2784
|
-
if (input[_PN] != null) {
|
|
2785
|
-
entries[_PN] = input[_PN];
|
|
2786
|
-
}
|
|
2787
|
-
if (input[_LC] != null) {
|
|
2788
|
-
entries[_LC] = input[_LC];
|
|
2789
|
-
}
|
|
2790
|
-
return entries;
|
|
2791
|
-
};
|
|
2792
|
-
const se_CreateTopicInput = (input, context) => {
|
|
2793
|
-
const entries = {};
|
|
2794
|
-
if (input[_N] != null) {
|
|
2795
|
-
entries[_N] = input[_N];
|
|
2796
|
-
}
|
|
2797
|
-
if (input[_At] != null) {
|
|
2798
|
-
const memberEntries = se_TopicAttributesMap(input[_At], context);
|
|
2799
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2800
|
-
const loc = `Attributes.${key}`;
|
|
2801
|
-
entries[loc] = value;
|
|
2802
|
-
});
|
|
2803
|
-
}
|
|
2804
|
-
if (input[_Ta] != null) {
|
|
2805
|
-
const memberEntries = se_TagList(input[_Ta], context);
|
|
2806
|
-
if (input[_Ta]?.length === 0) {
|
|
2807
|
-
entries.Tags = [];
|
|
2808
|
-
}
|
|
2809
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2810
|
-
const loc = `Tags.${key}`;
|
|
2811
|
-
entries[loc] = value;
|
|
2812
|
-
});
|
|
2813
|
-
}
|
|
2814
|
-
if (input[_DPP] != null) {
|
|
2815
|
-
entries[_DPP] = input[_DPP];
|
|
2816
|
-
}
|
|
2817
|
-
return entries;
|
|
2818
|
-
};
|
|
2819
|
-
const se_DelegatesList = (input, context) => {
|
|
2820
|
-
const entries = {};
|
|
2821
|
-
let counter = 1;
|
|
2822
|
-
for (const entry of input) {
|
|
2823
|
-
if (entry === null) {
|
|
2824
|
-
continue;
|
|
2825
|
-
}
|
|
2826
|
-
entries[`member.${counter}`] = entry;
|
|
2827
|
-
counter++;
|
|
2828
|
-
}
|
|
2829
|
-
return entries;
|
|
2830
|
-
};
|
|
2831
|
-
const se_DeleteEndpointInput = (input, context) => {
|
|
2832
|
-
const entries = {};
|
|
2833
|
-
if (input[_EA] != null) {
|
|
2834
|
-
entries[_EA] = input[_EA];
|
|
2835
|
-
}
|
|
2836
|
-
return entries;
|
|
2837
|
-
};
|
|
2838
|
-
const se_DeletePlatformApplicationInput = (input, context) => {
|
|
2839
|
-
const entries = {};
|
|
2840
|
-
if (input[_PAA] != null) {
|
|
2841
|
-
entries[_PAA] = input[_PAA];
|
|
2842
|
-
}
|
|
2843
|
-
return entries;
|
|
2844
|
-
};
|
|
2845
|
-
const se_DeleteSMSSandboxPhoneNumberInput = (input, context) => {
|
|
2846
|
-
const entries = {};
|
|
2847
|
-
if (input[_PN] != null) {
|
|
2848
|
-
entries[_PN] = input[_PN];
|
|
2849
|
-
}
|
|
2850
|
-
return entries;
|
|
2851
|
-
};
|
|
2852
|
-
const se_DeleteTopicInput = (input, context) => {
|
|
2853
|
-
const entries = {};
|
|
2854
|
-
if (input[_TA] != null) {
|
|
2855
|
-
entries[_TA] = input[_TA];
|
|
2856
|
-
}
|
|
2857
|
-
return entries;
|
|
2858
|
-
};
|
|
2859
|
-
const se_GetDataProtectionPolicyInput = (input, context) => {
|
|
2860
|
-
const entries = {};
|
|
2861
|
-
if (input[_RA] != null) {
|
|
2862
|
-
entries[_RA] = input[_RA];
|
|
2863
|
-
}
|
|
2864
|
-
return entries;
|
|
2865
|
-
};
|
|
2866
|
-
const se_GetEndpointAttributesInput = (input, context) => {
|
|
2867
|
-
const entries = {};
|
|
2868
|
-
if (input[_EA] != null) {
|
|
2869
|
-
entries[_EA] = input[_EA];
|
|
2870
|
-
}
|
|
2871
|
-
return entries;
|
|
2872
|
-
};
|
|
2873
|
-
const se_GetPlatformApplicationAttributesInput = (input, context) => {
|
|
2874
|
-
const entries = {};
|
|
2875
|
-
if (input[_PAA] != null) {
|
|
2876
|
-
entries[_PAA] = input[_PAA];
|
|
2877
|
-
}
|
|
2878
|
-
return entries;
|
|
2879
|
-
};
|
|
2880
|
-
const se_GetSMSAttributesInput = (input, context) => {
|
|
2881
|
-
const entries = {};
|
|
2882
|
-
if (input[_a] != null) {
|
|
2883
|
-
const memberEntries = se_ListString(input[_a], context);
|
|
2884
|
-
if (input[_a]?.length === 0) {
|
|
2885
|
-
entries.attributes = [];
|
|
2886
|
-
}
|
|
2887
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2888
|
-
const loc = `attributes.${key}`;
|
|
2889
|
-
entries[loc] = value;
|
|
2890
|
-
});
|
|
2891
|
-
}
|
|
2892
|
-
return entries;
|
|
2893
|
-
};
|
|
2894
|
-
const se_GetSMSSandboxAccountStatusInput = (input, context) => {
|
|
2895
|
-
const entries = {};
|
|
2896
|
-
return entries;
|
|
2897
|
-
};
|
|
2898
|
-
const se_GetSubscriptionAttributesInput = (input, context) => {
|
|
2899
|
-
const entries = {};
|
|
2900
|
-
if (input[_SA] != null) {
|
|
2901
|
-
entries[_SA] = input[_SA];
|
|
2902
|
-
}
|
|
2903
|
-
return entries;
|
|
2904
|
-
};
|
|
2905
|
-
const se_GetTopicAttributesInput = (input, context) => {
|
|
2906
|
-
const entries = {};
|
|
2907
|
-
if (input[_TA] != null) {
|
|
2908
|
-
entries[_TA] = input[_TA];
|
|
2909
|
-
}
|
|
2910
|
-
return entries;
|
|
2911
|
-
};
|
|
2912
|
-
const se_ListEndpointsByPlatformApplicationInput = (input, context) => {
|
|
2913
|
-
const entries = {};
|
|
2914
|
-
if (input[_PAA] != null) {
|
|
2915
|
-
entries[_PAA] = input[_PAA];
|
|
2916
|
-
}
|
|
2917
|
-
if (input[_NT] != null) {
|
|
2918
|
-
entries[_NT] = input[_NT];
|
|
2919
|
-
}
|
|
2920
|
-
return entries;
|
|
2921
|
-
};
|
|
2922
|
-
const se_ListOriginationNumbersRequest = (input, context) => {
|
|
2923
|
-
const entries = {};
|
|
2924
|
-
if (input[_NT] != null) {
|
|
2925
|
-
entries[_NT] = input[_NT];
|
|
2926
|
-
}
|
|
2927
|
-
if (input[_MR] != null) {
|
|
2928
|
-
entries[_MR] = input[_MR];
|
|
2929
|
-
}
|
|
2930
|
-
return entries;
|
|
2931
|
-
};
|
|
2932
|
-
const se_ListPhoneNumbersOptedOutInput = (input, context) => {
|
|
2933
|
-
const entries = {};
|
|
2934
|
-
if (input[_nT] != null) {
|
|
2935
|
-
entries[_nT] = input[_nT];
|
|
2936
|
-
}
|
|
2937
|
-
return entries;
|
|
2938
|
-
};
|
|
2939
|
-
const se_ListPlatformApplicationsInput = (input, context) => {
|
|
2940
|
-
const entries = {};
|
|
2941
|
-
if (input[_NT] != null) {
|
|
2942
|
-
entries[_NT] = input[_NT];
|
|
2943
|
-
}
|
|
2944
|
-
return entries;
|
|
2945
|
-
};
|
|
2946
|
-
const se_ListSMSSandboxPhoneNumbersInput = (input, context) => {
|
|
2947
|
-
const entries = {};
|
|
2948
|
-
if (input[_NT] != null) {
|
|
2949
|
-
entries[_NT] = input[_NT];
|
|
2950
|
-
}
|
|
2951
|
-
if (input[_MR] != null) {
|
|
2952
|
-
entries[_MR] = input[_MR];
|
|
2953
|
-
}
|
|
2954
|
-
return entries;
|
|
2955
|
-
};
|
|
2956
|
-
const se_ListString = (input, context) => {
|
|
2957
|
-
const entries = {};
|
|
2958
|
-
let counter = 1;
|
|
2959
|
-
for (const entry of input) {
|
|
2960
|
-
if (entry === null) {
|
|
2961
|
-
continue;
|
|
2962
|
-
}
|
|
2963
|
-
entries[`member.${counter}`] = entry;
|
|
2964
|
-
counter++;
|
|
2965
|
-
}
|
|
2966
|
-
return entries;
|
|
2967
|
-
};
|
|
2968
|
-
const se_ListSubscriptionsByTopicInput = (input, context) => {
|
|
2969
|
-
const entries = {};
|
|
2970
|
-
if (input[_TA] != null) {
|
|
2971
|
-
entries[_TA] = input[_TA];
|
|
2972
|
-
}
|
|
2973
|
-
if (input[_NT] != null) {
|
|
2974
|
-
entries[_NT] = input[_NT];
|
|
2975
|
-
}
|
|
2976
|
-
return entries;
|
|
2977
|
-
};
|
|
2978
|
-
const se_ListSubscriptionsInput = (input, context) => {
|
|
2979
|
-
const entries = {};
|
|
2980
|
-
if (input[_NT] != null) {
|
|
2981
|
-
entries[_NT] = input[_NT];
|
|
2982
|
-
}
|
|
2983
|
-
return entries;
|
|
2984
|
-
};
|
|
2985
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
2986
|
-
const entries = {};
|
|
2987
|
-
if (input[_RA] != null) {
|
|
2988
|
-
entries[_RA] = input[_RA];
|
|
2989
|
-
}
|
|
2990
|
-
return entries;
|
|
2991
|
-
};
|
|
2992
|
-
const se_ListTopicsInput = (input, context) => {
|
|
2993
|
-
const entries = {};
|
|
2994
|
-
if (input[_NT] != null) {
|
|
2995
|
-
entries[_NT] = input[_NT];
|
|
2996
|
-
}
|
|
2997
|
-
return entries;
|
|
2998
|
-
};
|
|
2999
|
-
const se_MapStringToString = (input, context) => {
|
|
3000
|
-
const entries = {};
|
|
3001
|
-
let counter = 1;
|
|
3002
|
-
Object.keys(input)
|
|
3003
|
-
.filter((key) => input[key] != null)
|
|
3004
|
-
.forEach((key) => {
|
|
3005
|
-
entries[`entry.${counter}.key`] = key;
|
|
3006
|
-
entries[`entry.${counter}.value`] = input[key];
|
|
3007
|
-
counter++;
|
|
3008
|
-
});
|
|
3009
|
-
return entries;
|
|
3010
|
-
};
|
|
3011
|
-
const se_MessageAttributeMap = (input, context) => {
|
|
3012
|
-
const entries = {};
|
|
3013
|
-
let counter = 1;
|
|
3014
|
-
Object.keys(input)
|
|
3015
|
-
.filter((key) => input[key] != null)
|
|
3016
|
-
.forEach((key) => {
|
|
3017
|
-
entries[`entry.${counter}.Name`] = key;
|
|
3018
|
-
const memberEntries = se_MessageAttributeValue(input[key], context);
|
|
3019
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3020
|
-
entries[`entry.${counter}.Value.${key}`] = value;
|
|
3021
|
-
});
|
|
3022
|
-
counter++;
|
|
3023
|
-
});
|
|
3024
|
-
return entries;
|
|
3025
|
-
};
|
|
3026
|
-
const se_MessageAttributeValue = (input, context) => {
|
|
3027
|
-
const entries = {};
|
|
3028
|
-
if (input[_DTa] != null) {
|
|
3029
|
-
entries[_DTa] = input[_DTa];
|
|
3030
|
-
}
|
|
3031
|
-
if (input[_SV] != null) {
|
|
3032
|
-
entries[_SV] = input[_SV];
|
|
3033
|
-
}
|
|
3034
|
-
if (input[_BV] != null) {
|
|
3035
|
-
entries[_BV] = context.base64Encoder(input[_BV]);
|
|
3036
|
-
}
|
|
3037
|
-
return entries;
|
|
3038
|
-
};
|
|
3039
|
-
const se_OptInPhoneNumberInput = (input, context) => {
|
|
3040
|
-
const entries = {};
|
|
3041
|
-
if (input[_pN] != null) {
|
|
3042
|
-
entries[_pN] = input[_pN];
|
|
3043
|
-
}
|
|
3044
|
-
return entries;
|
|
3045
|
-
};
|
|
3046
|
-
const se_PublishBatchInput = (input, context) => {
|
|
3047
|
-
const entries = {};
|
|
3048
|
-
if (input[_TA] != null) {
|
|
3049
|
-
entries[_TA] = input[_TA];
|
|
3050
|
-
}
|
|
3051
|
-
if (input[_PBRE] != null) {
|
|
3052
|
-
const memberEntries = se_PublishBatchRequestEntryList(input[_PBRE], context);
|
|
3053
|
-
if (input[_PBRE]?.length === 0) {
|
|
3054
|
-
entries.PublishBatchRequestEntries = [];
|
|
3055
|
-
}
|
|
3056
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3057
|
-
const loc = `PublishBatchRequestEntries.${key}`;
|
|
3058
|
-
entries[loc] = value;
|
|
3059
|
-
});
|
|
3060
|
-
}
|
|
3061
|
-
return entries;
|
|
3062
|
-
};
|
|
3063
|
-
const se_PublishBatchRequestEntry = (input, context) => {
|
|
3064
|
-
const entries = {};
|
|
3065
|
-
if (input[_I] != null) {
|
|
3066
|
-
entries[_I] = input[_I];
|
|
3067
|
-
}
|
|
3068
|
-
if (input[_M] != null) {
|
|
3069
|
-
entries[_M] = input[_M];
|
|
3070
|
-
}
|
|
3071
|
-
if (input[_Su] != null) {
|
|
3072
|
-
entries[_Su] = input[_Su];
|
|
3073
|
-
}
|
|
3074
|
-
if (input[_MS] != null) {
|
|
3075
|
-
entries[_MS] = input[_MS];
|
|
3076
|
-
}
|
|
3077
|
-
if (input[_MA] != null) {
|
|
3078
|
-
const memberEntries = se_MessageAttributeMap(input[_MA], context);
|
|
3079
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3080
|
-
const loc = `MessageAttributes.${key}`;
|
|
3081
|
-
entries[loc] = value;
|
|
3082
|
-
});
|
|
3083
|
-
}
|
|
3084
|
-
if (input[_MDI] != null) {
|
|
3085
|
-
entries[_MDI] = input[_MDI];
|
|
3086
|
-
}
|
|
3087
|
-
if (input[_MGI] != null) {
|
|
3088
|
-
entries[_MGI] = input[_MGI];
|
|
3089
|
-
}
|
|
3090
|
-
return entries;
|
|
3091
|
-
};
|
|
3092
|
-
const se_PublishBatchRequestEntryList = (input, context) => {
|
|
3093
|
-
const entries = {};
|
|
3094
|
-
let counter = 1;
|
|
3095
|
-
for (const entry of input) {
|
|
3096
|
-
if (entry === null) {
|
|
3097
|
-
continue;
|
|
3098
|
-
}
|
|
3099
|
-
const memberEntries = se_PublishBatchRequestEntry(entry, context);
|
|
3100
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3101
|
-
entries[`member.${counter}.${key}`] = value;
|
|
3102
|
-
});
|
|
3103
|
-
counter++;
|
|
3104
|
-
}
|
|
3105
|
-
return entries;
|
|
3106
|
-
};
|
|
3107
|
-
const se_PublishInput = (input, context) => {
|
|
3108
|
-
const entries = {};
|
|
3109
|
-
if (input[_TA] != null) {
|
|
3110
|
-
entries[_TA] = input[_TA];
|
|
3111
|
-
}
|
|
3112
|
-
if (input[_TAa] != null) {
|
|
3113
|
-
entries[_TAa] = input[_TAa];
|
|
3114
|
-
}
|
|
3115
|
-
if (input[_PN] != null) {
|
|
3116
|
-
entries[_PN] = input[_PN];
|
|
3117
|
-
}
|
|
3118
|
-
if (input[_M] != null) {
|
|
3119
|
-
entries[_M] = input[_M];
|
|
3120
|
-
}
|
|
3121
|
-
if (input[_Su] != null) {
|
|
3122
|
-
entries[_Su] = input[_Su];
|
|
3123
|
-
}
|
|
3124
|
-
if (input[_MS] != null) {
|
|
3125
|
-
entries[_MS] = input[_MS];
|
|
3126
|
-
}
|
|
3127
|
-
if (input[_MA] != null) {
|
|
3128
|
-
const memberEntries = se_MessageAttributeMap(input[_MA], context);
|
|
3129
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3130
|
-
const loc = `MessageAttributes.${key}`;
|
|
3131
|
-
entries[loc] = value;
|
|
3132
|
-
});
|
|
3133
|
-
}
|
|
3134
|
-
if (input[_MDI] != null) {
|
|
3135
|
-
entries[_MDI] = input[_MDI];
|
|
3136
|
-
}
|
|
3137
|
-
if (input[_MGI] != null) {
|
|
3138
|
-
entries[_MGI] = input[_MGI];
|
|
3139
|
-
}
|
|
3140
|
-
return entries;
|
|
3141
|
-
};
|
|
3142
|
-
const se_PutDataProtectionPolicyInput = (input, context) => {
|
|
3143
|
-
const entries = {};
|
|
3144
|
-
if (input[_RA] != null) {
|
|
3145
|
-
entries[_RA] = input[_RA];
|
|
3146
|
-
}
|
|
3147
|
-
if (input[_DPP] != null) {
|
|
3148
|
-
entries[_DPP] = input[_DPP];
|
|
3149
|
-
}
|
|
3150
|
-
return entries;
|
|
3151
|
-
};
|
|
3152
|
-
const se_RemovePermissionInput = (input, context) => {
|
|
3153
|
-
const entries = {};
|
|
3154
|
-
if (input[_TA] != null) {
|
|
3155
|
-
entries[_TA] = input[_TA];
|
|
3156
|
-
}
|
|
3157
|
-
if (input[_L] != null) {
|
|
3158
|
-
entries[_L] = input[_L];
|
|
3159
|
-
}
|
|
3160
|
-
return entries;
|
|
3161
|
-
};
|
|
3162
|
-
const se_SetEndpointAttributesInput = (input, context) => {
|
|
3163
|
-
const entries = {};
|
|
3164
|
-
if (input[_EA] != null) {
|
|
3165
|
-
entries[_EA] = input[_EA];
|
|
3166
|
-
}
|
|
3167
|
-
if (input[_At] != null) {
|
|
3168
|
-
const memberEntries = se_MapStringToString(input[_At], context);
|
|
3169
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3170
|
-
const loc = `Attributes.${key}`;
|
|
3171
|
-
entries[loc] = value;
|
|
3172
|
-
});
|
|
3173
|
-
}
|
|
3174
|
-
return entries;
|
|
3175
|
-
};
|
|
3176
|
-
const se_SetPlatformApplicationAttributesInput = (input, context) => {
|
|
3177
|
-
const entries = {};
|
|
3178
|
-
if (input[_PAA] != null) {
|
|
3179
|
-
entries[_PAA] = input[_PAA];
|
|
3180
|
-
}
|
|
3181
|
-
if (input[_At] != null) {
|
|
3182
|
-
const memberEntries = se_MapStringToString(input[_At], context);
|
|
3183
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3184
|
-
const loc = `Attributes.${key}`;
|
|
3185
|
-
entries[loc] = value;
|
|
3186
|
-
});
|
|
3187
|
-
}
|
|
3188
|
-
return entries;
|
|
3189
|
-
};
|
|
3190
|
-
const se_SetSMSAttributesInput = (input, context) => {
|
|
3191
|
-
const entries = {};
|
|
3192
|
-
if (input[_a] != null) {
|
|
3193
|
-
const memberEntries = se_MapStringToString(input[_a], context);
|
|
3194
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3195
|
-
const loc = `attributes.${key}`;
|
|
3196
|
-
entries[loc] = value;
|
|
3197
|
-
});
|
|
3198
|
-
}
|
|
3199
|
-
return entries;
|
|
3200
|
-
};
|
|
3201
|
-
const se_SetSubscriptionAttributesInput = (input, context) => {
|
|
3202
|
-
const entries = {};
|
|
3203
|
-
if (input[_SA] != null) {
|
|
3204
|
-
entries[_SA] = input[_SA];
|
|
3205
|
-
}
|
|
3206
|
-
if (input[_ANt] != null) {
|
|
3207
|
-
entries[_ANt] = input[_ANt];
|
|
3208
|
-
}
|
|
3209
|
-
if (input[_AV] != null) {
|
|
3210
|
-
entries[_AV] = input[_AV];
|
|
3211
|
-
}
|
|
3212
|
-
return entries;
|
|
3213
|
-
};
|
|
3214
|
-
const se_SetTopicAttributesInput = (input, context) => {
|
|
3215
|
-
const entries = {};
|
|
3216
|
-
if (input[_TA] != null) {
|
|
3217
|
-
entries[_TA] = input[_TA];
|
|
3218
|
-
}
|
|
3219
|
-
if (input[_ANt] != null) {
|
|
3220
|
-
entries[_ANt] = input[_ANt];
|
|
3221
|
-
}
|
|
3222
|
-
if (input[_AV] != null) {
|
|
3223
|
-
entries[_AV] = input[_AV];
|
|
3224
|
-
}
|
|
3225
|
-
return entries;
|
|
3226
|
-
};
|
|
3227
|
-
const se_SubscribeInput = (input, context) => {
|
|
3228
|
-
const entries = {};
|
|
3229
|
-
if (input[_TA] != null) {
|
|
3230
|
-
entries[_TA] = input[_TA];
|
|
3231
|
-
}
|
|
3232
|
-
if (input[_Pr] != null) {
|
|
3233
|
-
entries[_Pr] = input[_Pr];
|
|
3234
|
-
}
|
|
3235
|
-
if (input[_E] != null) {
|
|
3236
|
-
entries[_E] = input[_E];
|
|
3237
|
-
}
|
|
3238
|
-
if (input[_At] != null) {
|
|
3239
|
-
const memberEntries = se_SubscriptionAttributesMap(input[_At], context);
|
|
3240
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3241
|
-
const loc = `Attributes.${key}`;
|
|
3242
|
-
entries[loc] = value;
|
|
3243
|
-
});
|
|
3244
|
-
}
|
|
3245
|
-
if (input[_RSA] != null) {
|
|
3246
|
-
entries[_RSA] = input[_RSA];
|
|
3247
|
-
}
|
|
3248
|
-
return entries;
|
|
3249
|
-
};
|
|
3250
|
-
const se_SubscriptionAttributesMap = (input, context) => {
|
|
3251
|
-
const entries = {};
|
|
3252
|
-
let counter = 1;
|
|
3253
|
-
Object.keys(input)
|
|
3254
|
-
.filter((key) => input[key] != null)
|
|
3255
|
-
.forEach((key) => {
|
|
3256
|
-
entries[`entry.${counter}.key`] = key;
|
|
3257
|
-
entries[`entry.${counter}.value`] = input[key];
|
|
3258
|
-
counter++;
|
|
3259
|
-
});
|
|
3260
|
-
return entries;
|
|
3261
|
-
};
|
|
3262
|
-
const se_Tag = (input, context) => {
|
|
3263
|
-
const entries = {};
|
|
3264
|
-
if (input[_K] != null) {
|
|
3265
|
-
entries[_K] = input[_K];
|
|
3266
|
-
}
|
|
3267
|
-
if (input[_Va] != null) {
|
|
3268
|
-
entries[_Va] = input[_Va];
|
|
3269
|
-
}
|
|
3270
|
-
return entries;
|
|
3271
|
-
};
|
|
3272
|
-
const se_TagKeyList = (input, context) => {
|
|
3273
|
-
const entries = {};
|
|
3274
|
-
let counter = 1;
|
|
3275
|
-
for (const entry of input) {
|
|
3276
|
-
if (entry === null) {
|
|
3277
|
-
continue;
|
|
3278
|
-
}
|
|
3279
|
-
entries[`member.${counter}`] = entry;
|
|
3280
|
-
counter++;
|
|
3281
|
-
}
|
|
3282
|
-
return entries;
|
|
3283
|
-
};
|
|
3284
|
-
const se_TagList = (input, context) => {
|
|
3285
|
-
const entries = {};
|
|
3286
|
-
let counter = 1;
|
|
3287
|
-
for (const entry of input) {
|
|
3288
|
-
if (entry === null) {
|
|
3289
|
-
continue;
|
|
3290
|
-
}
|
|
3291
|
-
const memberEntries = se_Tag(entry, context);
|
|
3292
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3293
|
-
entries[`member.${counter}.${key}`] = value;
|
|
3294
|
-
});
|
|
3295
|
-
counter++;
|
|
3296
|
-
}
|
|
3297
|
-
return entries;
|
|
3298
|
-
};
|
|
3299
|
-
const se_TagResourceRequest = (input, context) => {
|
|
3300
|
-
const entries = {};
|
|
3301
|
-
if (input[_RA] != null) {
|
|
3302
|
-
entries[_RA] = input[_RA];
|
|
3303
|
-
}
|
|
3304
|
-
if (input[_Ta] != null) {
|
|
3305
|
-
const memberEntries = se_TagList(input[_Ta], context);
|
|
3306
|
-
if (input[_Ta]?.length === 0) {
|
|
3307
|
-
entries.Tags = [];
|
|
3308
|
-
}
|
|
3309
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3310
|
-
const loc = `Tags.${key}`;
|
|
3311
|
-
entries[loc] = value;
|
|
3312
|
-
});
|
|
3313
|
-
}
|
|
3314
|
-
return entries;
|
|
3315
|
-
};
|
|
3316
|
-
const se_TopicAttributesMap = (input, context) => {
|
|
3317
|
-
const entries = {};
|
|
3318
|
-
let counter = 1;
|
|
3319
|
-
Object.keys(input)
|
|
3320
|
-
.filter((key) => input[key] != null)
|
|
3321
|
-
.forEach((key) => {
|
|
3322
|
-
entries[`entry.${counter}.key`] = key;
|
|
3323
|
-
entries[`entry.${counter}.value`] = input[key];
|
|
3324
|
-
counter++;
|
|
3325
|
-
});
|
|
3326
|
-
return entries;
|
|
3327
|
-
};
|
|
3328
|
-
const se_UnsubscribeInput = (input, context) => {
|
|
3329
|
-
const entries = {};
|
|
3330
|
-
if (input[_SA] != null) {
|
|
3331
|
-
entries[_SA] = input[_SA];
|
|
3332
|
-
}
|
|
3333
|
-
return entries;
|
|
3334
|
-
};
|
|
3335
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
3336
|
-
const entries = {};
|
|
3337
|
-
if (input[_RA] != null) {
|
|
3338
|
-
entries[_RA] = input[_RA];
|
|
3339
|
-
}
|
|
3340
|
-
if (input[_TK] != null) {
|
|
3341
|
-
const memberEntries = se_TagKeyList(input[_TK], context);
|
|
3342
|
-
if (input[_TK]?.length === 0) {
|
|
3343
|
-
entries.TagKeys = [];
|
|
3344
|
-
}
|
|
3345
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3346
|
-
const loc = `TagKeys.${key}`;
|
|
3347
|
-
entries[loc] = value;
|
|
3348
|
-
});
|
|
3349
|
-
}
|
|
3350
|
-
return entries;
|
|
3351
|
-
};
|
|
3352
|
-
const se_VerifySMSSandboxPhoneNumberInput = (input, context) => {
|
|
3353
|
-
const entries = {};
|
|
3354
|
-
if (input[_PN] != null) {
|
|
3355
|
-
entries[_PN] = input[_PN];
|
|
3356
|
-
}
|
|
3357
|
-
if (input[_OTP] != null) {
|
|
3358
|
-
entries[_OTP] = input[_OTP];
|
|
3359
|
-
}
|
|
3360
|
-
return entries;
|
|
3361
|
-
};
|
|
3362
|
-
const de_AuthorizationErrorException = (output, context) => {
|
|
3363
|
-
const contents = {};
|
|
3364
|
-
if (output[_m] != null) {
|
|
3365
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
|
3366
|
-
}
|
|
3367
|
-
return contents;
|
|
3368
|
-
};
|
|
3369
|
-
const de_BatchEntryIdsNotDistinctException = (output, context) => {
|
|
3370
|
-
const contents = {};
|
|
3371
|
-
if (output[_m] != null) {
|
|
3372
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
|
3373
|
-
}
|
|
3374
|
-
return contents;
|
|
3375
|
-
};
|
|
3376
|
-
const de_BatchRequestTooLongException = (output, context) => {
|
|
3377
|
-
const contents = {};
|
|
3378
|
-
if (output[_m] != null) {
|
|
3379
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
|
3380
|
-
}
|
|
3381
|
-
return contents;
|
|
3382
|
-
};
|
|
3383
|
-
const de_BatchResultErrorEntry = (output, context) => {
|
|
3384
|
-
const contents = {};
|
|
3385
|
-
if (output[_I] != null) {
|
|
3386
|
-
contents[_I] = (0, smithy_client_1.expectString)(output[_I]);
|
|
3387
|
-
}
|
|
3388
|
-
if (output[_C] != null) {
|
|
3389
|
-
contents[_C] = (0, smithy_client_1.expectString)(output[_C]);
|
|
3390
|
-
}
|
|
3391
|
-
if (output[_M] != null) {
|
|
3392
|
-
contents[_M] = (0, smithy_client_1.expectString)(output[_M]);
|
|
3393
|
-
}
|
|
3394
|
-
if (output[_SF] != null) {
|
|
3395
|
-
contents[_SF] = (0, smithy_client_1.parseBoolean)(output[_SF]);
|
|
3396
|
-
}
|
|
3397
|
-
return contents;
|
|
3398
|
-
};
|
|
3399
|
-
const de_BatchResultErrorEntryList = (output, context) => {
|
|
3400
|
-
return (output || [])
|
|
3401
|
-
.filter((e) => e != null)
|
|
3402
|
-
.map((entry) => {
|
|
3403
|
-
return de_BatchResultErrorEntry(entry, context);
|
|
3404
|
-
});
|
|
3405
|
-
};
|
|
3406
|
-
const de_CheckIfPhoneNumberIsOptedOutResponse = (output, context) => {
|
|
3407
|
-
const contents = {};
|
|
3408
|
-
if (output[_iOO] != null) {
|
|
3409
|
-
contents[_iOO] = (0, smithy_client_1.parseBoolean)(output[_iOO]);
|
|
3410
|
-
}
|
|
3411
|
-
return contents;
|
|
3412
|
-
};
|
|
3413
|
-
const de_ConcurrentAccessException = (output, context) => {
|
|
3414
|
-
const contents = {};
|
|
3415
|
-
if (output[_m] != null) {
|
|
3416
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
|
3417
|
-
}
|
|
3418
|
-
return contents;
|
|
3419
|
-
};
|
|
3420
|
-
const de_ConfirmSubscriptionResponse = (output, context) => {
|
|
3421
|
-
const contents = {};
|
|
3422
|
-
if (output[_SA] != null) {
|
|
3423
|
-
contents[_SA] = (0, smithy_client_1.expectString)(output[_SA]);
|
|
3424
|
-
}
|
|
3425
|
-
return contents;
|
|
3426
|
-
};
|
|
3427
|
-
const de_CreateEndpointResponse = (output, context) => {
|
|
3428
|
-
const contents = {};
|
|
3429
|
-
if (output[_EA] != null) {
|
|
3430
|
-
contents[_EA] = (0, smithy_client_1.expectString)(output[_EA]);
|
|
3431
|
-
}
|
|
3432
|
-
return contents;
|
|
3433
|
-
};
|
|
3434
|
-
const de_CreatePlatformApplicationResponse = (output, context) => {
|
|
3435
|
-
const contents = {};
|
|
3436
|
-
if (output[_PAA] != null) {
|
|
3437
|
-
contents[_PAA] = (0, smithy_client_1.expectString)(output[_PAA]);
|
|
3438
|
-
}
|
|
3439
|
-
return contents;
|
|
3440
|
-
};
|
|
3441
|
-
const de_CreateSMSSandboxPhoneNumberResult = (output, context) => {
|
|
3442
|
-
const contents = {};
|
|
3443
|
-
return contents;
|
|
3444
|
-
};
|
|
3445
|
-
const de_CreateTopicResponse = (output, context) => {
|
|
3446
|
-
const contents = {};
|
|
3447
|
-
if (output[_TA] != null) {
|
|
3448
|
-
contents[_TA] = (0, smithy_client_1.expectString)(output[_TA]);
|
|
3449
|
-
}
|
|
3450
|
-
return contents;
|
|
3451
|
-
};
|
|
3452
|
-
const de_DeleteSMSSandboxPhoneNumberResult = (output, context) => {
|
|
3453
|
-
const contents = {};
|
|
3454
|
-
return contents;
|
|
3455
|
-
};
|
|
3456
|
-
const de_EmptyBatchRequestException = (output, context) => {
|
|
3457
|
-
const contents = {};
|
|
3458
|
-
if (output[_m] != null) {
|
|
3459
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
|
3460
|
-
}
|
|
3461
|
-
return contents;
|
|
3462
|
-
};
|
|
3463
|
-
const de_Endpoint = (output, context) => {
|
|
3464
|
-
const contents = {};
|
|
3465
|
-
if (output[_EA] != null) {
|
|
3466
|
-
contents[_EA] = (0, smithy_client_1.expectString)(output[_EA]);
|
|
3467
|
-
}
|
|
3468
|
-
if (output.Attributes === "") {
|
|
3469
|
-
contents[_At] = {};
|
|
3470
|
-
}
|
|
3471
|
-
else if (output[_At] != null && output[_At][_e] != null) {
|
|
3472
|
-
contents[_At] = de_MapStringToString((0, smithy_client_1.getArrayIfSingleItem)(output[_At][_e]), context);
|
|
3473
|
-
}
|
|
3474
|
-
return contents;
|
|
3475
|
-
};
|
|
3476
|
-
const de_EndpointDisabledException = (output, context) => {
|
|
3477
|
-
const contents = {};
|
|
3478
|
-
if (output[_m] != null) {
|
|
3479
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
|
3480
|
-
}
|
|
3481
|
-
return contents;
|
|
3482
|
-
};
|
|
3483
|
-
const de_FilterPolicyLimitExceededException = (output, context) => {
|
|
3484
|
-
const contents = {};
|
|
3485
|
-
if (output[_m] != null) {
|
|
3486
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
|
3487
|
-
}
|
|
3488
|
-
return contents;
|
|
3489
|
-
};
|
|
3490
|
-
const de_GetDataProtectionPolicyResponse = (output, context) => {
|
|
3491
|
-
const contents = {};
|
|
3492
|
-
if (output[_DPP] != null) {
|
|
3493
|
-
contents[_DPP] = (0, smithy_client_1.expectString)(output[_DPP]);
|
|
3494
|
-
}
|
|
3495
|
-
return contents;
|
|
3496
|
-
};
|
|
3497
|
-
const de_GetEndpointAttributesResponse = (output, context) => {
|
|
3498
|
-
const contents = {};
|
|
3499
|
-
if (output.Attributes === "") {
|
|
3500
|
-
contents[_At] = {};
|
|
3501
|
-
}
|
|
3502
|
-
else if (output[_At] != null && output[_At][_e] != null) {
|
|
3503
|
-
contents[_At] = de_MapStringToString((0, smithy_client_1.getArrayIfSingleItem)(output[_At][_e]), context);
|
|
3504
|
-
}
|
|
3505
|
-
return contents;
|
|
3506
|
-
};
|
|
3507
|
-
const de_GetPlatformApplicationAttributesResponse = (output, context) => {
|
|
3508
|
-
const contents = {};
|
|
3509
|
-
if (output.Attributes === "") {
|
|
3510
|
-
contents[_At] = {};
|
|
3511
|
-
}
|
|
3512
|
-
else if (output[_At] != null && output[_At][_e] != null) {
|
|
3513
|
-
contents[_At] = de_MapStringToString((0, smithy_client_1.getArrayIfSingleItem)(output[_At][_e]), context);
|
|
3514
|
-
}
|
|
3515
|
-
return contents;
|
|
3516
|
-
};
|
|
3517
|
-
const de_GetSMSAttributesResponse = (output, context) => {
|
|
3518
|
-
const contents = {};
|
|
3519
|
-
if (output.attributes === "") {
|
|
3520
|
-
contents[_a] = {};
|
|
3521
|
-
}
|
|
3522
|
-
else if (output[_a] != null && output[_a][_e] != null) {
|
|
3523
|
-
contents[_a] = de_MapStringToString((0, smithy_client_1.getArrayIfSingleItem)(output[_a][_e]), context);
|
|
3524
|
-
}
|
|
3525
|
-
return contents;
|
|
3526
|
-
};
|
|
3527
|
-
const de_GetSMSSandboxAccountStatusResult = (output, context) => {
|
|
3528
|
-
const contents = {};
|
|
3529
|
-
if (output[_IIS] != null) {
|
|
3530
|
-
contents[_IIS] = (0, smithy_client_1.parseBoolean)(output[_IIS]);
|
|
3531
|
-
}
|
|
3532
|
-
return contents;
|
|
3533
|
-
};
|
|
3534
|
-
const de_GetSubscriptionAttributesResponse = (output, context) => {
|
|
3535
|
-
const contents = {};
|
|
3536
|
-
if (output.Attributes === "") {
|
|
3537
|
-
contents[_At] = {};
|
|
3538
|
-
}
|
|
3539
|
-
else if (output[_At] != null && output[_At][_e] != null) {
|
|
3540
|
-
contents[_At] = de_SubscriptionAttributesMap((0, smithy_client_1.getArrayIfSingleItem)(output[_At][_e]), context);
|
|
3541
|
-
}
|
|
3542
|
-
return contents;
|
|
3543
|
-
};
|
|
3544
|
-
const de_GetTopicAttributesResponse = (output, context) => {
|
|
3545
|
-
const contents = {};
|
|
3546
|
-
if (output.Attributes === "") {
|
|
3547
|
-
contents[_At] = {};
|
|
3548
|
-
}
|
|
3549
|
-
else if (output[_At] != null && output[_At][_e] != null) {
|
|
3550
|
-
contents[_At] = de_TopicAttributesMap((0, smithy_client_1.getArrayIfSingleItem)(output[_At][_e]), context);
|
|
3551
|
-
}
|
|
3552
|
-
return contents;
|
|
3553
|
-
};
|
|
3554
|
-
const de_InternalErrorException = (output, context) => {
|
|
3555
|
-
const contents = {};
|
|
3556
|
-
if (output[_m] != null) {
|
|
3557
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
|
3558
|
-
}
|
|
3559
|
-
return contents;
|
|
3560
|
-
};
|
|
3561
|
-
const de_InvalidBatchEntryIdException = (output, context) => {
|
|
3562
|
-
const contents = {};
|
|
3563
|
-
if (output[_m] != null) {
|
|
3564
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
|
3565
|
-
}
|
|
3566
|
-
return contents;
|
|
3567
|
-
};
|
|
3568
|
-
const de_InvalidParameterException = (output, context) => {
|
|
3569
|
-
const contents = {};
|
|
3570
|
-
if (output[_m] != null) {
|
|
3571
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
|
3572
|
-
}
|
|
3573
|
-
return contents;
|
|
3574
|
-
};
|
|
3575
|
-
const de_InvalidParameterValueException = (output, context) => {
|
|
3576
|
-
const contents = {};
|
|
3577
|
-
if (output[_m] != null) {
|
|
3578
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
|
3579
|
-
}
|
|
3580
|
-
return contents;
|
|
3581
|
-
};
|
|
3582
|
-
const de_InvalidSecurityException = (output, context) => {
|
|
3583
|
-
const contents = {};
|
|
3584
|
-
if (output[_m] != null) {
|
|
3585
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
|
3586
|
-
}
|
|
3587
|
-
return contents;
|
|
3588
|
-
};
|
|
3589
|
-
const de_InvalidStateException = (output, context) => {
|
|
3590
|
-
const contents = {};
|
|
3591
|
-
if (output[_m] != null) {
|
|
3592
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
|
3593
|
-
}
|
|
3594
|
-
return contents;
|
|
3595
|
-
};
|
|
3596
|
-
const de_KMSAccessDeniedException = (output, context) => {
|
|
3597
|
-
const contents = {};
|
|
3598
|
-
if (output[_m] != null) {
|
|
3599
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
|
3600
|
-
}
|
|
3601
|
-
return contents;
|
|
3602
|
-
};
|
|
3603
|
-
const de_KMSDisabledException = (output, context) => {
|
|
3604
|
-
const contents = {};
|
|
3605
|
-
if (output[_m] != null) {
|
|
3606
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
|
3607
|
-
}
|
|
3608
|
-
return contents;
|
|
3609
|
-
};
|
|
3610
|
-
const de_KMSInvalidStateException = (output, context) => {
|
|
3611
|
-
const contents = {};
|
|
3612
|
-
if (output[_m] != null) {
|
|
3613
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
|
3614
|
-
}
|
|
3615
|
-
return contents;
|
|
3616
|
-
};
|
|
3617
|
-
const de_KMSNotFoundException = (output, context) => {
|
|
3618
|
-
const contents = {};
|
|
3619
|
-
if (output[_m] != null) {
|
|
3620
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
|
3621
|
-
}
|
|
3622
|
-
return contents;
|
|
3623
|
-
};
|
|
3624
|
-
const de_KMSOptInRequired = (output, context) => {
|
|
3625
|
-
const contents = {};
|
|
3626
|
-
if (output[_m] != null) {
|
|
3627
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
|
3628
|
-
}
|
|
3629
|
-
return contents;
|
|
3630
|
-
};
|
|
3631
|
-
const de_KMSThrottlingException = (output, context) => {
|
|
3632
|
-
const contents = {};
|
|
3633
|
-
if (output[_m] != null) {
|
|
3634
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
|
3635
|
-
}
|
|
3636
|
-
return contents;
|
|
3637
|
-
};
|
|
3638
|
-
const de_ListEndpointsByPlatformApplicationResponse = (output, context) => {
|
|
3639
|
-
const contents = {};
|
|
3640
|
-
if (output.Endpoints === "") {
|
|
3641
|
-
contents[_En] = [];
|
|
3642
|
-
}
|
|
3643
|
-
else if (output[_En] != null && output[_En][_me] != null) {
|
|
3644
|
-
contents[_En] = de_ListOfEndpoints((0, smithy_client_1.getArrayIfSingleItem)(output[_En][_me]), context);
|
|
3645
|
-
}
|
|
3646
|
-
if (output[_NT] != null) {
|
|
3647
|
-
contents[_NT] = (0, smithy_client_1.expectString)(output[_NT]);
|
|
3648
|
-
}
|
|
3649
|
-
return contents;
|
|
3650
|
-
};
|
|
3651
|
-
const de_ListOfEndpoints = (output, context) => {
|
|
3652
|
-
return (output || [])
|
|
3653
|
-
.filter((e) => e != null)
|
|
3654
|
-
.map((entry) => {
|
|
3655
|
-
return de_Endpoint(entry, context);
|
|
3656
|
-
});
|
|
3657
|
-
};
|
|
3658
|
-
const de_ListOfPlatformApplications = (output, context) => {
|
|
3659
|
-
return (output || [])
|
|
3660
|
-
.filter((e) => e != null)
|
|
3661
|
-
.map((entry) => {
|
|
3662
|
-
return de_PlatformApplication(entry, context);
|
|
3663
|
-
});
|
|
3664
|
-
};
|
|
3665
|
-
const de_ListOriginationNumbersResult = (output, context) => {
|
|
3666
|
-
const contents = {};
|
|
3667
|
-
if (output[_NT] != null) {
|
|
3668
|
-
contents[_NT] = (0, smithy_client_1.expectString)(output[_NT]);
|
|
3669
|
-
}
|
|
3670
|
-
if (output.PhoneNumbers === "") {
|
|
3671
|
-
contents[_PNh] = [];
|
|
3672
|
-
}
|
|
3673
|
-
else if (output[_PNh] != null && output[_PNh][_me] != null) {
|
|
3674
|
-
contents[_PNh] = de_PhoneNumberInformationList((0, smithy_client_1.getArrayIfSingleItem)(output[_PNh][_me]), context);
|
|
3675
|
-
}
|
|
3676
|
-
return contents;
|
|
3677
|
-
};
|
|
3678
|
-
const de_ListPhoneNumbersOptedOutResponse = (output, context) => {
|
|
3679
|
-
const contents = {};
|
|
3680
|
-
if (output.phoneNumbers === "") {
|
|
3681
|
-
contents[_pNh] = [];
|
|
3682
|
-
}
|
|
3683
|
-
else if (output[_pNh] != null && output[_pNh][_me] != null) {
|
|
3684
|
-
contents[_pNh] = de_PhoneNumberList((0, smithy_client_1.getArrayIfSingleItem)(output[_pNh][_me]), context);
|
|
3685
|
-
}
|
|
3686
|
-
if (output[_nT] != null) {
|
|
3687
|
-
contents[_nT] = (0, smithy_client_1.expectString)(output[_nT]);
|
|
3688
|
-
}
|
|
3689
|
-
return contents;
|
|
3690
|
-
};
|
|
3691
|
-
const de_ListPlatformApplicationsResponse = (output, context) => {
|
|
3692
|
-
const contents = {};
|
|
3693
|
-
if (output.PlatformApplications === "") {
|
|
3694
|
-
contents[_PA] = [];
|
|
3695
|
-
}
|
|
3696
|
-
else if (output[_PA] != null && output[_PA][_me] != null) {
|
|
3697
|
-
contents[_PA] = de_ListOfPlatformApplications((0, smithy_client_1.getArrayIfSingleItem)(output[_PA][_me]), context);
|
|
3698
|
-
}
|
|
3699
|
-
if (output[_NT] != null) {
|
|
3700
|
-
contents[_NT] = (0, smithy_client_1.expectString)(output[_NT]);
|
|
3701
|
-
}
|
|
3702
|
-
return contents;
|
|
3703
|
-
};
|
|
3704
|
-
const de_ListSMSSandboxPhoneNumbersResult = (output, context) => {
|
|
3705
|
-
const contents = {};
|
|
3706
|
-
if (output.PhoneNumbers === "") {
|
|
3707
|
-
contents[_PNh] = [];
|
|
3708
|
-
}
|
|
3709
|
-
else if (output[_PNh] != null && output[_PNh][_me] != null) {
|
|
3710
|
-
contents[_PNh] = de_SMSSandboxPhoneNumberList((0, smithy_client_1.getArrayIfSingleItem)(output[_PNh][_me]), context);
|
|
3711
|
-
}
|
|
3712
|
-
if (output[_NT] != null) {
|
|
3713
|
-
contents[_NT] = (0, smithy_client_1.expectString)(output[_NT]);
|
|
3714
|
-
}
|
|
3715
|
-
return contents;
|
|
3716
|
-
};
|
|
3717
|
-
const de_ListSubscriptionsByTopicResponse = (output, context) => {
|
|
3718
|
-
const contents = {};
|
|
3719
|
-
if (output.Subscriptions === "") {
|
|
3720
|
-
contents[_Sub] = [];
|
|
3721
|
-
}
|
|
3722
|
-
else if (output[_Sub] != null && output[_Sub][_me] != null) {
|
|
3723
|
-
contents[_Sub] = de_SubscriptionsList((0, smithy_client_1.getArrayIfSingleItem)(output[_Sub][_me]), context);
|
|
3724
|
-
}
|
|
3725
|
-
if (output[_NT] != null) {
|
|
3726
|
-
contents[_NT] = (0, smithy_client_1.expectString)(output[_NT]);
|
|
3727
|
-
}
|
|
3728
|
-
return contents;
|
|
3729
|
-
};
|
|
3730
|
-
const de_ListSubscriptionsResponse = (output, context) => {
|
|
3731
|
-
const contents = {};
|
|
3732
|
-
if (output.Subscriptions === "") {
|
|
3733
|
-
contents[_Sub] = [];
|
|
3734
|
-
}
|
|
3735
|
-
else if (output[_Sub] != null && output[_Sub][_me] != null) {
|
|
3736
|
-
contents[_Sub] = de_SubscriptionsList((0, smithy_client_1.getArrayIfSingleItem)(output[_Sub][_me]), context);
|
|
3737
|
-
}
|
|
3738
|
-
if (output[_NT] != null) {
|
|
3739
|
-
contents[_NT] = (0, smithy_client_1.expectString)(output[_NT]);
|
|
3740
|
-
}
|
|
3741
|
-
return contents;
|
|
3742
|
-
};
|
|
3743
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
3744
|
-
const contents = {};
|
|
3745
|
-
if (output.Tags === "") {
|
|
3746
|
-
contents[_Ta] = [];
|
|
3747
|
-
}
|
|
3748
|
-
else if (output[_Ta] != null && output[_Ta][_me] != null) {
|
|
3749
|
-
contents[_Ta] = de_TagList((0, smithy_client_1.getArrayIfSingleItem)(output[_Ta][_me]), context);
|
|
3750
|
-
}
|
|
3751
|
-
return contents;
|
|
3752
|
-
};
|
|
3753
|
-
const de_ListTopicsResponse = (output, context) => {
|
|
3754
|
-
const contents = {};
|
|
3755
|
-
if (output.Topics === "") {
|
|
3756
|
-
contents[_To] = [];
|
|
3757
|
-
}
|
|
3758
|
-
else if (output[_To] != null && output[_To][_me] != null) {
|
|
3759
|
-
contents[_To] = de_TopicsList((0, smithy_client_1.getArrayIfSingleItem)(output[_To][_me]), context);
|
|
3760
|
-
}
|
|
3761
|
-
if (output[_NT] != null) {
|
|
3762
|
-
contents[_NT] = (0, smithy_client_1.expectString)(output[_NT]);
|
|
3763
|
-
}
|
|
3764
|
-
return contents;
|
|
3765
|
-
};
|
|
3766
|
-
const de_MapStringToString = (output, context) => {
|
|
3767
|
-
return output.reduce((acc, pair) => {
|
|
3768
|
-
if (pair["value"] === null) {
|
|
3769
|
-
return acc;
|
|
3770
|
-
}
|
|
3771
|
-
acc[pair["key"]] = (0, smithy_client_1.expectString)(pair["value"]);
|
|
3772
|
-
return acc;
|
|
3773
|
-
}, {});
|
|
3774
|
-
};
|
|
3775
|
-
const de_NotFoundException = (output, context) => {
|
|
3776
|
-
const contents = {};
|
|
3777
|
-
if (output[_m] != null) {
|
|
3778
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
|
3779
|
-
}
|
|
3780
|
-
return contents;
|
|
3781
|
-
};
|
|
3782
|
-
const de_NumberCapabilityList = (output, context) => {
|
|
3783
|
-
return (output || [])
|
|
3784
|
-
.filter((e) => e != null)
|
|
3785
|
-
.map((entry) => {
|
|
3786
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3787
|
-
});
|
|
3788
|
-
};
|
|
3789
|
-
const de_OptedOutException = (output, context) => {
|
|
3790
|
-
const contents = {};
|
|
3791
|
-
if (output[_m] != null) {
|
|
3792
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
|
3793
|
-
}
|
|
3794
|
-
return contents;
|
|
3795
|
-
};
|
|
3796
|
-
const de_OptInPhoneNumberResponse = (output, context) => {
|
|
3797
|
-
const contents = {};
|
|
3798
|
-
return contents;
|
|
3799
|
-
};
|
|
3800
|
-
const de_PhoneNumberInformation = (output, context) => {
|
|
3801
|
-
const contents = {};
|
|
3802
|
-
if (output[_CA] != null) {
|
|
3803
|
-
contents[_CA] = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output[_CA]));
|
|
3804
|
-
}
|
|
3805
|
-
if (output[_PN] != null) {
|
|
3806
|
-
contents[_PN] = (0, smithy_client_1.expectString)(output[_PN]);
|
|
3807
|
-
}
|
|
3808
|
-
if (output[_St] != null) {
|
|
3809
|
-
contents[_St] = (0, smithy_client_1.expectString)(output[_St]);
|
|
3810
|
-
}
|
|
3811
|
-
if (output[_ICC] != null) {
|
|
3812
|
-
contents[_ICC] = (0, smithy_client_1.expectString)(output[_ICC]);
|
|
3813
|
-
}
|
|
3814
|
-
if (output[_RT] != null) {
|
|
3815
|
-
contents[_RT] = (0, smithy_client_1.expectString)(output[_RT]);
|
|
3816
|
-
}
|
|
3817
|
-
if (output.NumberCapabilities === "") {
|
|
3818
|
-
contents[_NC] = [];
|
|
3819
|
-
}
|
|
3820
|
-
else if (output[_NC] != null && output[_NC][_me] != null) {
|
|
3821
|
-
contents[_NC] = de_NumberCapabilityList((0, smithy_client_1.getArrayIfSingleItem)(output[_NC][_me]), context);
|
|
3822
|
-
}
|
|
3823
|
-
return contents;
|
|
3824
|
-
};
|
|
3825
|
-
const de_PhoneNumberInformationList = (output, context) => {
|
|
3826
|
-
return (output || [])
|
|
3827
|
-
.filter((e) => e != null)
|
|
3828
|
-
.map((entry) => {
|
|
3829
|
-
return de_PhoneNumberInformation(entry, context);
|
|
3830
|
-
});
|
|
3831
|
-
};
|
|
3832
|
-
const de_PhoneNumberList = (output, context) => {
|
|
3833
|
-
return (output || [])
|
|
3834
|
-
.filter((e) => e != null)
|
|
3835
|
-
.map((entry) => {
|
|
3836
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3837
|
-
});
|
|
3838
|
-
};
|
|
3839
|
-
const de_PlatformApplication = (output, context) => {
|
|
3840
|
-
const contents = {};
|
|
3841
|
-
if (output[_PAA] != null) {
|
|
3842
|
-
contents[_PAA] = (0, smithy_client_1.expectString)(output[_PAA]);
|
|
3843
|
-
}
|
|
3844
|
-
if (output.Attributes === "") {
|
|
3845
|
-
contents[_At] = {};
|
|
3846
|
-
}
|
|
3847
|
-
else if (output[_At] != null && output[_At][_e] != null) {
|
|
3848
|
-
contents[_At] = de_MapStringToString((0, smithy_client_1.getArrayIfSingleItem)(output[_At][_e]), context);
|
|
3849
|
-
}
|
|
3850
|
-
return contents;
|
|
3851
|
-
};
|
|
3852
|
-
const de_PlatformApplicationDisabledException = (output, context) => {
|
|
3853
|
-
const contents = {};
|
|
3854
|
-
if (output[_m] != null) {
|
|
3855
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
|
3856
|
-
}
|
|
3857
|
-
return contents;
|
|
3858
|
-
};
|
|
3859
|
-
const de_PublishBatchResponse = (output, context) => {
|
|
3860
|
-
const contents = {};
|
|
3861
|
-
if (output.Successful === "") {
|
|
3862
|
-
contents[_Suc] = [];
|
|
3863
|
-
}
|
|
3864
|
-
else if (output[_Suc] != null && output[_Suc][_me] != null) {
|
|
3865
|
-
contents[_Suc] = de_PublishBatchResultEntryList((0, smithy_client_1.getArrayIfSingleItem)(output[_Suc][_me]), context);
|
|
3866
|
-
}
|
|
3867
|
-
if (output.Failed === "") {
|
|
3868
|
-
contents[_F] = [];
|
|
3869
|
-
}
|
|
3870
|
-
else if (output[_F] != null && output[_F][_me] != null) {
|
|
3871
|
-
contents[_F] = de_BatchResultErrorEntryList((0, smithy_client_1.getArrayIfSingleItem)(output[_F][_me]), context);
|
|
3872
|
-
}
|
|
3873
|
-
return contents;
|
|
3874
|
-
};
|
|
3875
|
-
const de_PublishBatchResultEntry = (output, context) => {
|
|
3876
|
-
const contents = {};
|
|
3877
|
-
if (output[_I] != null) {
|
|
3878
|
-
contents[_I] = (0, smithy_client_1.expectString)(output[_I]);
|
|
3879
|
-
}
|
|
3880
|
-
if (output[_MI] != null) {
|
|
3881
|
-
contents[_MI] = (0, smithy_client_1.expectString)(output[_MI]);
|
|
3882
|
-
}
|
|
3883
|
-
if (output[_SN] != null) {
|
|
3884
|
-
contents[_SN] = (0, smithy_client_1.expectString)(output[_SN]);
|
|
3885
|
-
}
|
|
3886
|
-
return contents;
|
|
3887
|
-
};
|
|
3888
|
-
const de_PublishBatchResultEntryList = (output, context) => {
|
|
3889
|
-
return (output || [])
|
|
3890
|
-
.filter((e) => e != null)
|
|
3891
|
-
.map((entry) => {
|
|
3892
|
-
return de_PublishBatchResultEntry(entry, context);
|
|
3893
|
-
});
|
|
3894
|
-
};
|
|
3895
|
-
const de_PublishResponse = (output, context) => {
|
|
3896
|
-
const contents = {};
|
|
3897
|
-
if (output[_MI] != null) {
|
|
3898
|
-
contents[_MI] = (0, smithy_client_1.expectString)(output[_MI]);
|
|
3899
|
-
}
|
|
3900
|
-
if (output[_SN] != null) {
|
|
3901
|
-
contents[_SN] = (0, smithy_client_1.expectString)(output[_SN]);
|
|
3902
|
-
}
|
|
3903
|
-
return contents;
|
|
3904
|
-
};
|
|
3905
|
-
const de_ReplayLimitExceededException = (output, context) => {
|
|
3906
|
-
const contents = {};
|
|
3907
|
-
if (output[_m] != null) {
|
|
3908
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
|
3909
|
-
}
|
|
3910
|
-
return contents;
|
|
3911
|
-
};
|
|
3912
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
3913
|
-
const contents = {};
|
|
3914
|
-
if (output[_m] != null) {
|
|
3915
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
|
3916
|
-
}
|
|
3917
|
-
return contents;
|
|
3918
|
-
};
|
|
3919
|
-
const de_SetSMSAttributesResponse = (output, context) => {
|
|
3920
|
-
const contents = {};
|
|
3921
|
-
return contents;
|
|
3922
|
-
};
|
|
3923
|
-
const de_SMSSandboxPhoneNumber = (output, context) => {
|
|
3924
|
-
const contents = {};
|
|
3925
|
-
if (output[_PN] != null) {
|
|
3926
|
-
contents[_PN] = (0, smithy_client_1.expectString)(output[_PN]);
|
|
3927
|
-
}
|
|
3928
|
-
if (output[_St] != null) {
|
|
3929
|
-
contents[_St] = (0, smithy_client_1.expectString)(output[_St]);
|
|
3930
|
-
}
|
|
3931
|
-
return contents;
|
|
3932
|
-
};
|
|
3933
|
-
const de_SMSSandboxPhoneNumberList = (output, context) => {
|
|
3934
|
-
return (output || [])
|
|
3935
|
-
.filter((e) => e != null)
|
|
3936
|
-
.map((entry) => {
|
|
3937
|
-
return de_SMSSandboxPhoneNumber(entry, context);
|
|
3938
|
-
});
|
|
3939
|
-
};
|
|
3940
|
-
const de_StaleTagException = (output, context) => {
|
|
3941
|
-
const contents = {};
|
|
3942
|
-
if (output[_m] != null) {
|
|
3943
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
|
3944
|
-
}
|
|
3945
|
-
return contents;
|
|
3946
|
-
};
|
|
3947
|
-
const de_SubscribeResponse = (output, context) => {
|
|
3948
|
-
const contents = {};
|
|
3949
|
-
if (output[_SA] != null) {
|
|
3950
|
-
contents[_SA] = (0, smithy_client_1.expectString)(output[_SA]);
|
|
3951
|
-
}
|
|
3952
|
-
return contents;
|
|
3953
|
-
};
|
|
3954
|
-
const de_Subscription = (output, context) => {
|
|
3955
|
-
const contents = {};
|
|
3956
|
-
if (output[_SA] != null) {
|
|
3957
|
-
contents[_SA] = (0, smithy_client_1.expectString)(output[_SA]);
|
|
3958
|
-
}
|
|
3959
|
-
if (output[_O] != null) {
|
|
3960
|
-
contents[_O] = (0, smithy_client_1.expectString)(output[_O]);
|
|
3961
|
-
}
|
|
3962
|
-
if (output[_Pr] != null) {
|
|
3963
|
-
contents[_Pr] = (0, smithy_client_1.expectString)(output[_Pr]);
|
|
3964
|
-
}
|
|
3965
|
-
if (output[_E] != null) {
|
|
3966
|
-
contents[_E] = (0, smithy_client_1.expectString)(output[_E]);
|
|
3967
|
-
}
|
|
3968
|
-
if (output[_TA] != null) {
|
|
3969
|
-
contents[_TA] = (0, smithy_client_1.expectString)(output[_TA]);
|
|
3970
|
-
}
|
|
3971
|
-
return contents;
|
|
3972
|
-
};
|
|
3973
|
-
const de_SubscriptionAttributesMap = (output, context) => {
|
|
3974
|
-
return output.reduce((acc, pair) => {
|
|
3975
|
-
if (pair["value"] === null) {
|
|
3976
|
-
return acc;
|
|
3977
|
-
}
|
|
3978
|
-
acc[pair["key"]] = (0, smithy_client_1.expectString)(pair["value"]);
|
|
3979
|
-
return acc;
|
|
3980
|
-
}, {});
|
|
3981
|
-
};
|
|
3982
|
-
const de_SubscriptionLimitExceededException = (output, context) => {
|
|
3983
|
-
const contents = {};
|
|
3984
|
-
if (output[_m] != null) {
|
|
3985
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
|
3986
|
-
}
|
|
3987
|
-
return contents;
|
|
3988
|
-
};
|
|
3989
|
-
const de_SubscriptionsList = (output, context) => {
|
|
3990
|
-
return (output || [])
|
|
3991
|
-
.filter((e) => e != null)
|
|
3992
|
-
.map((entry) => {
|
|
3993
|
-
return de_Subscription(entry, context);
|
|
3994
|
-
});
|
|
3995
|
-
};
|
|
3996
|
-
const de_Tag = (output, context) => {
|
|
3997
|
-
const contents = {};
|
|
3998
|
-
if (output[_K] != null) {
|
|
3999
|
-
contents[_K] = (0, smithy_client_1.expectString)(output[_K]);
|
|
4000
|
-
}
|
|
4001
|
-
if (output[_Va] != null) {
|
|
4002
|
-
contents[_Va] = (0, smithy_client_1.expectString)(output[_Va]);
|
|
4003
|
-
}
|
|
4004
|
-
return contents;
|
|
4005
|
-
};
|
|
4006
|
-
const de_TagLimitExceededException = (output, context) => {
|
|
4007
|
-
const contents = {};
|
|
4008
|
-
if (output[_m] != null) {
|
|
4009
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
|
4010
|
-
}
|
|
4011
|
-
return contents;
|
|
4012
|
-
};
|
|
4013
|
-
const de_TagList = (output, context) => {
|
|
4014
|
-
return (output || [])
|
|
4015
|
-
.filter((e) => e != null)
|
|
4016
|
-
.map((entry) => {
|
|
4017
|
-
return de_Tag(entry, context);
|
|
4018
|
-
});
|
|
4019
|
-
};
|
|
4020
|
-
const de_TagPolicyException = (output, context) => {
|
|
4021
|
-
const contents = {};
|
|
4022
|
-
if (output[_m] != null) {
|
|
4023
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
|
4024
|
-
}
|
|
4025
|
-
return contents;
|
|
4026
|
-
};
|
|
4027
|
-
const de_TagResourceResponse = (output, context) => {
|
|
4028
|
-
const contents = {};
|
|
4029
|
-
return contents;
|
|
4030
|
-
};
|
|
4031
|
-
const de_ThrottledException = (output, context) => {
|
|
4032
|
-
const contents = {};
|
|
4033
|
-
if (output[_m] != null) {
|
|
4034
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
|
4035
|
-
}
|
|
4036
|
-
return contents;
|
|
4037
|
-
};
|
|
4038
|
-
const de_TooManyEntriesInBatchRequestException = (output, context) => {
|
|
4039
|
-
const contents = {};
|
|
4040
|
-
if (output[_m] != null) {
|
|
4041
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
|
4042
|
-
}
|
|
4043
|
-
return contents;
|
|
4044
|
-
};
|
|
4045
|
-
const de_Topic = (output, context) => {
|
|
4046
|
-
const contents = {};
|
|
4047
|
-
if (output[_TA] != null) {
|
|
4048
|
-
contents[_TA] = (0, smithy_client_1.expectString)(output[_TA]);
|
|
4049
|
-
}
|
|
4050
|
-
return contents;
|
|
4051
|
-
};
|
|
4052
|
-
const de_TopicAttributesMap = (output, context) => {
|
|
4053
|
-
return output.reduce((acc, pair) => {
|
|
4054
|
-
if (pair["value"] === null) {
|
|
4055
|
-
return acc;
|
|
4056
|
-
}
|
|
4057
|
-
acc[pair["key"]] = (0, smithy_client_1.expectString)(pair["value"]);
|
|
4058
|
-
return acc;
|
|
4059
|
-
}, {});
|
|
4060
|
-
};
|
|
4061
|
-
const de_TopicLimitExceededException = (output, context) => {
|
|
4062
|
-
const contents = {};
|
|
4063
|
-
if (output[_m] != null) {
|
|
4064
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
|
4065
|
-
}
|
|
4066
|
-
return contents;
|
|
4067
|
-
};
|
|
4068
|
-
const de_TopicsList = (output, context) => {
|
|
4069
|
-
return (output || [])
|
|
4070
|
-
.filter((e) => e != null)
|
|
4071
|
-
.map((entry) => {
|
|
4072
|
-
return de_Topic(entry, context);
|
|
4073
|
-
});
|
|
4074
|
-
};
|
|
4075
|
-
const de_UntagResourceResponse = (output, context) => {
|
|
4076
|
-
const contents = {};
|
|
4077
|
-
return contents;
|
|
4078
|
-
};
|
|
4079
|
-
const de_UserErrorException = (output, context) => {
|
|
4080
|
-
const contents = {};
|
|
4081
|
-
if (output[_m] != null) {
|
|
4082
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
|
4083
|
-
}
|
|
4084
|
-
return contents;
|
|
4085
|
-
};
|
|
4086
|
-
const de_ValidationException = (output, context) => {
|
|
4087
|
-
const contents = {};
|
|
4088
|
-
if (output[_M] != null) {
|
|
4089
|
-
contents[_M] = (0, smithy_client_1.expectString)(output[_M]);
|
|
4090
|
-
}
|
|
4091
|
-
return contents;
|
|
4092
|
-
};
|
|
4093
|
-
const de_VerificationException = (output, context) => {
|
|
4094
|
-
const contents = {};
|
|
4095
|
-
if (output[_M] != null) {
|
|
4096
|
-
contents[_M] = (0, smithy_client_1.expectString)(output[_M]);
|
|
4097
|
-
}
|
|
4098
|
-
if (output[_St] != null) {
|
|
4099
|
-
contents[_St] = (0, smithy_client_1.expectString)(output[_St]);
|
|
4100
|
-
}
|
|
4101
|
-
return contents;
|
|
4102
|
-
};
|
|
4103
|
-
const de_VerifySMSSandboxPhoneNumberResult = (output, context) => {
|
|
4104
|
-
const contents = {};
|
|
4105
|
-
return contents;
|
|
4106
|
-
};
|
|
4107
|
-
const deserializeMetadata = (output) => ({
|
|
4108
|
-
httpStatusCode: output.statusCode,
|
|
4109
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
4110
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
4111
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
4112
|
-
});
|
|
4113
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
4114
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(SNSServiceException_1.SNSServiceException);
|
|
4115
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
4116
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4117
|
-
const contents = {
|
|
4118
|
-
protocol,
|
|
4119
|
-
hostname,
|
|
4120
|
-
port,
|
|
4121
|
-
method: "POST",
|
|
4122
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
4123
|
-
headers,
|
|
4124
|
-
};
|
|
4125
|
-
if (resolvedHostname !== undefined) {
|
|
4126
|
-
contents.hostname = resolvedHostname;
|
|
4127
|
-
}
|
|
4128
|
-
if (body !== undefined) {
|
|
4129
|
-
contents.body = body;
|
|
4130
|
-
}
|
|
4131
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
4132
|
-
};
|
|
4133
|
-
const SHARED_HEADERS = {
|
|
4134
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
4135
|
-
};
|
|
4136
|
-
const _ = "2010-03-31";
|
|
4137
|
-
const _A = "Action";
|
|
4138
|
-
const _AN = "ActionName";
|
|
4139
|
-
const _ANt = "AttributeName";
|
|
4140
|
-
const _AOU = "AuthenticateOnUnsubscribe";
|
|
4141
|
-
const _AP = "AddPermission";
|
|
4142
|
-
const _AV = "AttributeValue";
|
|
4143
|
-
const _AWSAI = "AWSAccountId";
|
|
4144
|
-
const _At = "Attributes";
|
|
4145
|
-
const _BV = "BinaryValue";
|
|
4146
|
-
const _C = "Code";
|
|
4147
|
-
const _CA = "CreatedAt";
|
|
4148
|
-
const _CIPNIOO = "CheckIfPhoneNumberIsOptedOut";
|
|
4149
|
-
const _CPA = "CreatePlatformApplication";
|
|
4150
|
-
const _CPE = "CreatePlatformEndpoint";
|
|
4151
|
-
const _CS = "ConfirmSubscription";
|
|
4152
|
-
const _CSMSSPN = "CreateSMSSandboxPhoneNumber";
|
|
4153
|
-
const _CT = "CreateTopic";
|
|
4154
|
-
const _CUD = "CustomUserData";
|
|
4155
|
-
const _DE = "DeleteEndpoint";
|
|
4156
|
-
const _DPA = "DeletePlatformApplication";
|
|
4157
|
-
const _DPP = "DataProtectionPolicy";
|
|
4158
|
-
const _DSMSSPN = "DeleteSMSSandboxPhoneNumber";
|
|
4159
|
-
const _DT = "DeleteTopic";
|
|
4160
|
-
const _DTa = "DataType";
|
|
4161
|
-
const _E = "Endpoint";
|
|
4162
|
-
const _EA = "EndpointArn";
|
|
4163
|
-
const _En = "Endpoints";
|
|
4164
|
-
const _F = "Failed";
|
|
4165
|
-
const _GDPP = "GetDataProtectionPolicy";
|
|
4166
|
-
const _GEA = "GetEndpointAttributes";
|
|
4167
|
-
const _GPAA = "GetPlatformApplicationAttributes";
|
|
4168
|
-
const _GSA = "GetSubscriptionAttributes";
|
|
4169
|
-
const _GSMSA = "GetSMSAttributes";
|
|
4170
|
-
const _GSMSSAS = "GetSMSSandboxAccountStatus";
|
|
4171
|
-
const _GTA = "GetTopicAttributes";
|
|
4172
|
-
const _I = "Id";
|
|
4173
|
-
const _ICC = "Iso2CountryCode";
|
|
4174
|
-
const _IIS = "IsInSandbox";
|
|
4175
|
-
const _K = "Key";
|
|
4176
|
-
const _L = "Label";
|
|
4177
|
-
const _LC = "LanguageCode";
|
|
4178
|
-
const _LEBPA = "ListEndpointsByPlatformApplication";
|
|
4179
|
-
const _LON = "ListOriginationNumbers";
|
|
4180
|
-
const _LPA = "ListPlatformApplications";
|
|
4181
|
-
const _LPNOO = "ListPhoneNumbersOptedOut";
|
|
4182
|
-
const _LS = "ListSubscriptions";
|
|
4183
|
-
const _LSBT = "ListSubscriptionsByTopic";
|
|
4184
|
-
const _LSMSSPN = "ListSMSSandboxPhoneNumbers";
|
|
4185
|
-
const _LT = "ListTopics";
|
|
4186
|
-
const _LTFR = "ListTagsForResource";
|
|
4187
|
-
const _M = "Message";
|
|
4188
|
-
const _MA = "MessageAttributes";
|
|
4189
|
-
const _MDI = "MessageDeduplicationId";
|
|
4190
|
-
const _MGI = "MessageGroupId";
|
|
4191
|
-
const _MI = "MessageId";
|
|
4192
|
-
const _MR = "MaxResults";
|
|
4193
|
-
const _MS = "MessageStructure";
|
|
4194
|
-
const _N = "Name";
|
|
4195
|
-
const _NC = "NumberCapabilities";
|
|
4196
|
-
const _NT = "NextToken";
|
|
4197
|
-
const _O = "Owner";
|
|
4198
|
-
const _OIPN = "OptInPhoneNumber";
|
|
4199
|
-
const _OTP = "OneTimePassword";
|
|
4200
|
-
const _P = "Publish";
|
|
4201
|
-
const _PA = "PlatformApplications";
|
|
4202
|
-
const _PAA = "PlatformApplicationArn";
|
|
4203
|
-
const _PB = "PublishBatch";
|
|
4204
|
-
const _PBRE = "PublishBatchRequestEntries";
|
|
4205
|
-
const _PDPP = "PutDataProtectionPolicy";
|
|
4206
|
-
const _PN = "PhoneNumber";
|
|
4207
|
-
const _PNh = "PhoneNumbers";
|
|
4208
|
-
const _Pl = "Platform";
|
|
4209
|
-
const _Pr = "Protocol";
|
|
4210
|
-
const _RA = "ResourceArn";
|
|
4211
|
-
const _RP = "RemovePermission";
|
|
4212
|
-
const _RSA = "ReturnSubscriptionArn";
|
|
4213
|
-
const _RT = "RouteType";
|
|
4214
|
-
const _S = "Subscribe";
|
|
4215
|
-
const _SA = "SubscriptionArn";
|
|
4216
|
-
const _SEA = "SetEndpointAttributes";
|
|
4217
|
-
const _SF = "SenderFault";
|
|
4218
|
-
const _SN = "SequenceNumber";
|
|
4219
|
-
const _SPAA = "SetPlatformApplicationAttributes";
|
|
4220
|
-
const _SSA = "SetSubscriptionAttributes";
|
|
4221
|
-
const _SSMSA = "SetSMSAttributes";
|
|
4222
|
-
const _STA = "SetTopicAttributes";
|
|
4223
|
-
const _SV = "StringValue";
|
|
4224
|
-
const _St = "Status";
|
|
4225
|
-
const _Su = "Subject";
|
|
4226
|
-
const _Sub = "Subscriptions";
|
|
4227
|
-
const _Suc = "Successful";
|
|
4228
|
-
const _T = "Token";
|
|
4229
|
-
const _TA = "TopicArn";
|
|
4230
|
-
const _TAa = "TargetArn";
|
|
4231
|
-
const _TK = "TagKeys";
|
|
4232
|
-
const _TR = "TagResource";
|
|
4233
|
-
const _Ta = "Tags";
|
|
4234
|
-
const _To = "Topics";
|
|
4235
|
-
const _U = "Unsubscribe";
|
|
4236
|
-
const _UR = "UntagResource";
|
|
4237
|
-
const _V = "Version";
|
|
4238
|
-
const _VSMSSPN = "VerifySMSSandboxPhoneNumber";
|
|
4239
|
-
const _Va = "Value";
|
|
4240
|
-
const _a = "attributes";
|
|
4241
|
-
const _e = "entry";
|
|
4242
|
-
const _iOO = "isOptedOut";
|
|
4243
|
-
const _m = "message";
|
|
4244
|
-
const _me = "member";
|
|
4245
|
-
const _nT = "nextToken";
|
|
4246
|
-
const _pN = "phoneNumber";
|
|
4247
|
-
const _pNh = "phoneNumbers";
|
|
4248
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4249
|
-
if (encoded.length) {
|
|
4250
|
-
const parser = new fast_xml_parser_1.XMLParser({
|
|
4251
|
-
attributeNamePrefix: "",
|
|
4252
|
-
htmlEntities: true,
|
|
4253
|
-
ignoreAttributes: false,
|
|
4254
|
-
ignoreDeclaration: true,
|
|
4255
|
-
parseTagValue: false,
|
|
4256
|
-
trimValues: false,
|
|
4257
|
-
tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined),
|
|
4258
|
-
});
|
|
4259
|
-
parser.addEntity("#xD", "\r");
|
|
4260
|
-
parser.addEntity("#10", "\n");
|
|
4261
|
-
const parsedObj = parser.parse(encoded);
|
|
4262
|
-
const textNodeName = "#text";
|
|
4263
|
-
const key = Object.keys(parsedObj)[0];
|
|
4264
|
-
const parsedObjToReturn = parsedObj[key];
|
|
4265
|
-
if (parsedObjToReturn[textNodeName]) {
|
|
4266
|
-
parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
|
|
4267
|
-
delete parsedObjToReturn[textNodeName];
|
|
4268
|
-
}
|
|
4269
|
-
return (0, smithy_client_1.getValueFromTextNode)(parsedObjToReturn);
|
|
4270
|
-
}
|
|
4271
|
-
return {};
|
|
4272
|
-
});
|
|
4273
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
4274
|
-
const value = await parseBody(errorBody, context);
|
|
4275
|
-
if (value.Error) {
|
|
4276
|
-
value.Error.message = value.Error.message ?? value.Error.Message;
|
|
4277
|
-
}
|
|
4278
|
-
return value;
|
|
4279
|
-
};
|
|
4280
|
-
const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries)
|
|
4281
|
-
.map(([key, value]) => (0, smithy_client_1.extendedEncodeURIComponent)(key) + "=" + (0, smithy_client_1.extendedEncodeURIComponent)(value))
|
|
4282
|
-
.join("&");
|
|
4283
|
-
const loadQueryErrorCode = (output, data) => {
|
|
4284
|
-
if (data.Error?.Code !== undefined) {
|
|
4285
|
-
return data.Error.Code;
|
|
4286
|
-
}
|
|
4287
|
-
if (output.statusCode == 404) {
|
|
4288
|
-
return "NotFound";
|
|
4289
|
-
}
|
|
4290
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|