@aws-sdk/client-sns 3.310.0 → 3.315.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/protocols/Aws_query.js +130 -252
- package/dist-es/protocols/Aws_query.js +131 -253
- package/package.json +6 -6
|
@@ -8,9 +8,7 @@ const fast_xml_parser_1 = require("fast-xml-parser");
|
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
9
|
const SNSServiceException_1 = require("../models/SNSServiceException");
|
|
10
10
|
const se_AddPermissionCommand = async (input, context) => {
|
|
11
|
-
const headers =
|
|
12
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
13
|
-
};
|
|
11
|
+
const headers = SHARED_HEADERS;
|
|
14
12
|
let body;
|
|
15
13
|
body = buildFormUrlencodedString({
|
|
16
14
|
...se_AddPermissionInput(input, context),
|
|
@@ -21,9 +19,7 @@ const se_AddPermissionCommand = async (input, context) => {
|
|
|
21
19
|
};
|
|
22
20
|
exports.se_AddPermissionCommand = se_AddPermissionCommand;
|
|
23
21
|
const se_CheckIfPhoneNumberIsOptedOutCommand = async (input, context) => {
|
|
24
|
-
const headers =
|
|
25
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
26
|
-
};
|
|
22
|
+
const headers = SHARED_HEADERS;
|
|
27
23
|
let body;
|
|
28
24
|
body = buildFormUrlencodedString({
|
|
29
25
|
...se_CheckIfPhoneNumberIsOptedOutInput(input, context),
|
|
@@ -34,9 +30,7 @@ const se_CheckIfPhoneNumberIsOptedOutCommand = async (input, context) => {
|
|
|
34
30
|
};
|
|
35
31
|
exports.se_CheckIfPhoneNumberIsOptedOutCommand = se_CheckIfPhoneNumberIsOptedOutCommand;
|
|
36
32
|
const se_ConfirmSubscriptionCommand = async (input, context) => {
|
|
37
|
-
const headers =
|
|
38
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
39
|
-
};
|
|
33
|
+
const headers = SHARED_HEADERS;
|
|
40
34
|
let body;
|
|
41
35
|
body = buildFormUrlencodedString({
|
|
42
36
|
...se_ConfirmSubscriptionInput(input, context),
|
|
@@ -47,9 +41,7 @@ const se_ConfirmSubscriptionCommand = async (input, context) => {
|
|
|
47
41
|
};
|
|
48
42
|
exports.se_ConfirmSubscriptionCommand = se_ConfirmSubscriptionCommand;
|
|
49
43
|
const se_CreatePlatformApplicationCommand = async (input, context) => {
|
|
50
|
-
const headers =
|
|
51
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
52
|
-
};
|
|
44
|
+
const headers = SHARED_HEADERS;
|
|
53
45
|
let body;
|
|
54
46
|
body = buildFormUrlencodedString({
|
|
55
47
|
...se_CreatePlatformApplicationInput(input, context),
|
|
@@ -60,9 +52,7 @@ const se_CreatePlatformApplicationCommand = async (input, context) => {
|
|
|
60
52
|
};
|
|
61
53
|
exports.se_CreatePlatformApplicationCommand = se_CreatePlatformApplicationCommand;
|
|
62
54
|
const se_CreatePlatformEndpointCommand = async (input, context) => {
|
|
63
|
-
const headers =
|
|
64
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
65
|
-
};
|
|
55
|
+
const headers = SHARED_HEADERS;
|
|
66
56
|
let body;
|
|
67
57
|
body = buildFormUrlencodedString({
|
|
68
58
|
...se_CreatePlatformEndpointInput(input, context),
|
|
@@ -73,9 +63,7 @@ const se_CreatePlatformEndpointCommand = async (input, context) => {
|
|
|
73
63
|
};
|
|
74
64
|
exports.se_CreatePlatformEndpointCommand = se_CreatePlatformEndpointCommand;
|
|
75
65
|
const se_CreateSMSSandboxPhoneNumberCommand = async (input, context) => {
|
|
76
|
-
const headers =
|
|
77
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
78
|
-
};
|
|
66
|
+
const headers = SHARED_HEADERS;
|
|
79
67
|
let body;
|
|
80
68
|
body = buildFormUrlencodedString({
|
|
81
69
|
...se_CreateSMSSandboxPhoneNumberInput(input, context),
|
|
@@ -86,9 +74,7 @@ const se_CreateSMSSandboxPhoneNumberCommand = async (input, context) => {
|
|
|
86
74
|
};
|
|
87
75
|
exports.se_CreateSMSSandboxPhoneNumberCommand = se_CreateSMSSandboxPhoneNumberCommand;
|
|
88
76
|
const se_CreateTopicCommand = async (input, context) => {
|
|
89
|
-
const headers =
|
|
90
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
91
|
-
};
|
|
77
|
+
const headers = SHARED_HEADERS;
|
|
92
78
|
let body;
|
|
93
79
|
body = buildFormUrlencodedString({
|
|
94
80
|
...se_CreateTopicInput(input, context),
|
|
@@ -99,9 +85,7 @@ const se_CreateTopicCommand = async (input, context) => {
|
|
|
99
85
|
};
|
|
100
86
|
exports.se_CreateTopicCommand = se_CreateTopicCommand;
|
|
101
87
|
const se_DeleteEndpointCommand = async (input, context) => {
|
|
102
|
-
const headers =
|
|
103
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
104
|
-
};
|
|
88
|
+
const headers = SHARED_HEADERS;
|
|
105
89
|
let body;
|
|
106
90
|
body = buildFormUrlencodedString({
|
|
107
91
|
...se_DeleteEndpointInput(input, context),
|
|
@@ -112,9 +96,7 @@ const se_DeleteEndpointCommand = async (input, context) => {
|
|
|
112
96
|
};
|
|
113
97
|
exports.se_DeleteEndpointCommand = se_DeleteEndpointCommand;
|
|
114
98
|
const se_DeletePlatformApplicationCommand = async (input, context) => {
|
|
115
|
-
const headers =
|
|
116
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
117
|
-
};
|
|
99
|
+
const headers = SHARED_HEADERS;
|
|
118
100
|
let body;
|
|
119
101
|
body = buildFormUrlencodedString({
|
|
120
102
|
...se_DeletePlatformApplicationInput(input, context),
|
|
@@ -125,9 +107,7 @@ const se_DeletePlatformApplicationCommand = async (input, context) => {
|
|
|
125
107
|
};
|
|
126
108
|
exports.se_DeletePlatformApplicationCommand = se_DeletePlatformApplicationCommand;
|
|
127
109
|
const se_DeleteSMSSandboxPhoneNumberCommand = async (input, context) => {
|
|
128
|
-
const headers =
|
|
129
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
130
|
-
};
|
|
110
|
+
const headers = SHARED_HEADERS;
|
|
131
111
|
let body;
|
|
132
112
|
body = buildFormUrlencodedString({
|
|
133
113
|
...se_DeleteSMSSandboxPhoneNumberInput(input, context),
|
|
@@ -138,9 +118,7 @@ const se_DeleteSMSSandboxPhoneNumberCommand = async (input, context) => {
|
|
|
138
118
|
};
|
|
139
119
|
exports.se_DeleteSMSSandboxPhoneNumberCommand = se_DeleteSMSSandboxPhoneNumberCommand;
|
|
140
120
|
const se_DeleteTopicCommand = async (input, context) => {
|
|
141
|
-
const headers =
|
|
142
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
143
|
-
};
|
|
121
|
+
const headers = SHARED_HEADERS;
|
|
144
122
|
let body;
|
|
145
123
|
body = buildFormUrlencodedString({
|
|
146
124
|
...se_DeleteTopicInput(input, context),
|
|
@@ -151,9 +129,7 @@ const se_DeleteTopicCommand = async (input, context) => {
|
|
|
151
129
|
};
|
|
152
130
|
exports.se_DeleteTopicCommand = se_DeleteTopicCommand;
|
|
153
131
|
const se_GetDataProtectionPolicyCommand = async (input, context) => {
|
|
154
|
-
const headers =
|
|
155
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
156
|
-
};
|
|
132
|
+
const headers = SHARED_HEADERS;
|
|
157
133
|
let body;
|
|
158
134
|
body = buildFormUrlencodedString({
|
|
159
135
|
...se_GetDataProtectionPolicyInput(input, context),
|
|
@@ -164,9 +140,7 @@ const se_GetDataProtectionPolicyCommand = async (input, context) => {
|
|
|
164
140
|
};
|
|
165
141
|
exports.se_GetDataProtectionPolicyCommand = se_GetDataProtectionPolicyCommand;
|
|
166
142
|
const se_GetEndpointAttributesCommand = async (input, context) => {
|
|
167
|
-
const headers =
|
|
168
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
169
|
-
};
|
|
143
|
+
const headers = SHARED_HEADERS;
|
|
170
144
|
let body;
|
|
171
145
|
body = buildFormUrlencodedString({
|
|
172
146
|
...se_GetEndpointAttributesInput(input, context),
|
|
@@ -177,9 +151,7 @@ const se_GetEndpointAttributesCommand = async (input, context) => {
|
|
|
177
151
|
};
|
|
178
152
|
exports.se_GetEndpointAttributesCommand = se_GetEndpointAttributesCommand;
|
|
179
153
|
const se_GetPlatformApplicationAttributesCommand = async (input, context) => {
|
|
180
|
-
const headers =
|
|
181
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
182
|
-
};
|
|
154
|
+
const headers = SHARED_HEADERS;
|
|
183
155
|
let body;
|
|
184
156
|
body = buildFormUrlencodedString({
|
|
185
157
|
...se_GetPlatformApplicationAttributesInput(input, context),
|
|
@@ -190,9 +162,7 @@ const se_GetPlatformApplicationAttributesCommand = async (input, context) => {
|
|
|
190
162
|
};
|
|
191
163
|
exports.se_GetPlatformApplicationAttributesCommand = se_GetPlatformApplicationAttributesCommand;
|
|
192
164
|
const se_GetSMSAttributesCommand = async (input, context) => {
|
|
193
|
-
const headers =
|
|
194
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
195
|
-
};
|
|
165
|
+
const headers = SHARED_HEADERS;
|
|
196
166
|
let body;
|
|
197
167
|
body = buildFormUrlencodedString({
|
|
198
168
|
...se_GetSMSAttributesInput(input, context),
|
|
@@ -203,9 +173,7 @@ const se_GetSMSAttributesCommand = async (input, context) => {
|
|
|
203
173
|
};
|
|
204
174
|
exports.se_GetSMSAttributesCommand = se_GetSMSAttributesCommand;
|
|
205
175
|
const se_GetSMSSandboxAccountStatusCommand = async (input, context) => {
|
|
206
|
-
const headers =
|
|
207
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
208
|
-
};
|
|
176
|
+
const headers = SHARED_HEADERS;
|
|
209
177
|
let body;
|
|
210
178
|
body = buildFormUrlencodedString({
|
|
211
179
|
...se_GetSMSSandboxAccountStatusInput(input, context),
|
|
@@ -216,9 +184,7 @@ const se_GetSMSSandboxAccountStatusCommand = async (input, context) => {
|
|
|
216
184
|
};
|
|
217
185
|
exports.se_GetSMSSandboxAccountStatusCommand = se_GetSMSSandboxAccountStatusCommand;
|
|
218
186
|
const se_GetSubscriptionAttributesCommand = async (input, context) => {
|
|
219
|
-
const headers =
|
|
220
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
221
|
-
};
|
|
187
|
+
const headers = SHARED_HEADERS;
|
|
222
188
|
let body;
|
|
223
189
|
body = buildFormUrlencodedString({
|
|
224
190
|
...se_GetSubscriptionAttributesInput(input, context),
|
|
@@ -229,9 +195,7 @@ const se_GetSubscriptionAttributesCommand = async (input, context) => {
|
|
|
229
195
|
};
|
|
230
196
|
exports.se_GetSubscriptionAttributesCommand = se_GetSubscriptionAttributesCommand;
|
|
231
197
|
const se_GetTopicAttributesCommand = async (input, context) => {
|
|
232
|
-
const headers =
|
|
233
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
234
|
-
};
|
|
198
|
+
const headers = SHARED_HEADERS;
|
|
235
199
|
let body;
|
|
236
200
|
body = buildFormUrlencodedString({
|
|
237
201
|
...se_GetTopicAttributesInput(input, context),
|
|
@@ -242,9 +206,7 @@ const se_GetTopicAttributesCommand = async (input, context) => {
|
|
|
242
206
|
};
|
|
243
207
|
exports.se_GetTopicAttributesCommand = se_GetTopicAttributesCommand;
|
|
244
208
|
const se_ListEndpointsByPlatformApplicationCommand = async (input, context) => {
|
|
245
|
-
const headers =
|
|
246
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
247
|
-
};
|
|
209
|
+
const headers = SHARED_HEADERS;
|
|
248
210
|
let body;
|
|
249
211
|
body = buildFormUrlencodedString({
|
|
250
212
|
...se_ListEndpointsByPlatformApplicationInput(input, context),
|
|
@@ -255,9 +217,7 @@ const se_ListEndpointsByPlatformApplicationCommand = async (input, context) => {
|
|
|
255
217
|
};
|
|
256
218
|
exports.se_ListEndpointsByPlatformApplicationCommand = se_ListEndpointsByPlatformApplicationCommand;
|
|
257
219
|
const se_ListOriginationNumbersCommand = async (input, context) => {
|
|
258
|
-
const headers =
|
|
259
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
260
|
-
};
|
|
220
|
+
const headers = SHARED_HEADERS;
|
|
261
221
|
let body;
|
|
262
222
|
body = buildFormUrlencodedString({
|
|
263
223
|
...se_ListOriginationNumbersRequest(input, context),
|
|
@@ -268,9 +228,7 @@ const se_ListOriginationNumbersCommand = async (input, context) => {
|
|
|
268
228
|
};
|
|
269
229
|
exports.se_ListOriginationNumbersCommand = se_ListOriginationNumbersCommand;
|
|
270
230
|
const se_ListPhoneNumbersOptedOutCommand = async (input, context) => {
|
|
271
|
-
const headers =
|
|
272
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
273
|
-
};
|
|
231
|
+
const headers = SHARED_HEADERS;
|
|
274
232
|
let body;
|
|
275
233
|
body = buildFormUrlencodedString({
|
|
276
234
|
...se_ListPhoneNumbersOptedOutInput(input, context),
|
|
@@ -281,9 +239,7 @@ const se_ListPhoneNumbersOptedOutCommand = async (input, context) => {
|
|
|
281
239
|
};
|
|
282
240
|
exports.se_ListPhoneNumbersOptedOutCommand = se_ListPhoneNumbersOptedOutCommand;
|
|
283
241
|
const se_ListPlatformApplicationsCommand = async (input, context) => {
|
|
284
|
-
const headers =
|
|
285
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
286
|
-
};
|
|
242
|
+
const headers = SHARED_HEADERS;
|
|
287
243
|
let body;
|
|
288
244
|
body = buildFormUrlencodedString({
|
|
289
245
|
...se_ListPlatformApplicationsInput(input, context),
|
|
@@ -294,9 +250,7 @@ const se_ListPlatformApplicationsCommand = async (input, context) => {
|
|
|
294
250
|
};
|
|
295
251
|
exports.se_ListPlatformApplicationsCommand = se_ListPlatformApplicationsCommand;
|
|
296
252
|
const se_ListSMSSandboxPhoneNumbersCommand = async (input, context) => {
|
|
297
|
-
const headers =
|
|
298
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
299
|
-
};
|
|
253
|
+
const headers = SHARED_HEADERS;
|
|
300
254
|
let body;
|
|
301
255
|
body = buildFormUrlencodedString({
|
|
302
256
|
...se_ListSMSSandboxPhoneNumbersInput(input, context),
|
|
@@ -307,9 +261,7 @@ const se_ListSMSSandboxPhoneNumbersCommand = async (input, context) => {
|
|
|
307
261
|
};
|
|
308
262
|
exports.se_ListSMSSandboxPhoneNumbersCommand = se_ListSMSSandboxPhoneNumbersCommand;
|
|
309
263
|
const se_ListSubscriptionsCommand = async (input, context) => {
|
|
310
|
-
const headers =
|
|
311
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
312
|
-
};
|
|
264
|
+
const headers = SHARED_HEADERS;
|
|
313
265
|
let body;
|
|
314
266
|
body = buildFormUrlencodedString({
|
|
315
267
|
...se_ListSubscriptionsInput(input, context),
|
|
@@ -320,9 +272,7 @@ const se_ListSubscriptionsCommand = async (input, context) => {
|
|
|
320
272
|
};
|
|
321
273
|
exports.se_ListSubscriptionsCommand = se_ListSubscriptionsCommand;
|
|
322
274
|
const se_ListSubscriptionsByTopicCommand = async (input, context) => {
|
|
323
|
-
const headers =
|
|
324
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
325
|
-
};
|
|
275
|
+
const headers = SHARED_HEADERS;
|
|
326
276
|
let body;
|
|
327
277
|
body = buildFormUrlencodedString({
|
|
328
278
|
...se_ListSubscriptionsByTopicInput(input, context),
|
|
@@ -333,9 +283,7 @@ const se_ListSubscriptionsByTopicCommand = async (input, context) => {
|
|
|
333
283
|
};
|
|
334
284
|
exports.se_ListSubscriptionsByTopicCommand = se_ListSubscriptionsByTopicCommand;
|
|
335
285
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
336
|
-
const headers =
|
|
337
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
338
|
-
};
|
|
286
|
+
const headers = SHARED_HEADERS;
|
|
339
287
|
let body;
|
|
340
288
|
body = buildFormUrlencodedString({
|
|
341
289
|
...se_ListTagsForResourceRequest(input, context),
|
|
@@ -346,9 +294,7 @@ const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
346
294
|
};
|
|
347
295
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
348
296
|
const se_ListTopicsCommand = async (input, context) => {
|
|
349
|
-
const headers =
|
|
350
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
351
|
-
};
|
|
297
|
+
const headers = SHARED_HEADERS;
|
|
352
298
|
let body;
|
|
353
299
|
body = buildFormUrlencodedString({
|
|
354
300
|
...se_ListTopicsInput(input, context),
|
|
@@ -359,9 +305,7 @@ const se_ListTopicsCommand = async (input, context) => {
|
|
|
359
305
|
};
|
|
360
306
|
exports.se_ListTopicsCommand = se_ListTopicsCommand;
|
|
361
307
|
const se_OptInPhoneNumberCommand = async (input, context) => {
|
|
362
|
-
const headers =
|
|
363
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
364
|
-
};
|
|
308
|
+
const headers = SHARED_HEADERS;
|
|
365
309
|
let body;
|
|
366
310
|
body = buildFormUrlencodedString({
|
|
367
311
|
...se_OptInPhoneNumberInput(input, context),
|
|
@@ -372,9 +316,7 @@ const se_OptInPhoneNumberCommand = async (input, context) => {
|
|
|
372
316
|
};
|
|
373
317
|
exports.se_OptInPhoneNumberCommand = se_OptInPhoneNumberCommand;
|
|
374
318
|
const se_PublishCommand = async (input, context) => {
|
|
375
|
-
const headers =
|
|
376
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
377
|
-
};
|
|
319
|
+
const headers = SHARED_HEADERS;
|
|
378
320
|
let body;
|
|
379
321
|
body = buildFormUrlencodedString({
|
|
380
322
|
...se_PublishInput(input, context),
|
|
@@ -385,9 +327,7 @@ const se_PublishCommand = async (input, context) => {
|
|
|
385
327
|
};
|
|
386
328
|
exports.se_PublishCommand = se_PublishCommand;
|
|
387
329
|
const se_PublishBatchCommand = async (input, context) => {
|
|
388
|
-
const headers =
|
|
389
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
390
|
-
};
|
|
330
|
+
const headers = SHARED_HEADERS;
|
|
391
331
|
let body;
|
|
392
332
|
body = buildFormUrlencodedString({
|
|
393
333
|
...se_PublishBatchInput(input, context),
|
|
@@ -398,9 +338,7 @@ const se_PublishBatchCommand = async (input, context) => {
|
|
|
398
338
|
};
|
|
399
339
|
exports.se_PublishBatchCommand = se_PublishBatchCommand;
|
|
400
340
|
const se_PutDataProtectionPolicyCommand = async (input, context) => {
|
|
401
|
-
const headers =
|
|
402
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
403
|
-
};
|
|
341
|
+
const headers = SHARED_HEADERS;
|
|
404
342
|
let body;
|
|
405
343
|
body = buildFormUrlencodedString({
|
|
406
344
|
...se_PutDataProtectionPolicyInput(input, context),
|
|
@@ -411,9 +349,7 @@ const se_PutDataProtectionPolicyCommand = async (input, context) => {
|
|
|
411
349
|
};
|
|
412
350
|
exports.se_PutDataProtectionPolicyCommand = se_PutDataProtectionPolicyCommand;
|
|
413
351
|
const se_RemovePermissionCommand = async (input, context) => {
|
|
414
|
-
const headers =
|
|
415
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
416
|
-
};
|
|
352
|
+
const headers = SHARED_HEADERS;
|
|
417
353
|
let body;
|
|
418
354
|
body = buildFormUrlencodedString({
|
|
419
355
|
...se_RemovePermissionInput(input, context),
|
|
@@ -424,9 +360,7 @@ const se_RemovePermissionCommand = async (input, context) => {
|
|
|
424
360
|
};
|
|
425
361
|
exports.se_RemovePermissionCommand = se_RemovePermissionCommand;
|
|
426
362
|
const se_SetEndpointAttributesCommand = async (input, context) => {
|
|
427
|
-
const headers =
|
|
428
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
429
|
-
};
|
|
363
|
+
const headers = SHARED_HEADERS;
|
|
430
364
|
let body;
|
|
431
365
|
body = buildFormUrlencodedString({
|
|
432
366
|
...se_SetEndpointAttributesInput(input, context),
|
|
@@ -437,9 +371,7 @@ const se_SetEndpointAttributesCommand = async (input, context) => {
|
|
|
437
371
|
};
|
|
438
372
|
exports.se_SetEndpointAttributesCommand = se_SetEndpointAttributesCommand;
|
|
439
373
|
const se_SetPlatformApplicationAttributesCommand = async (input, context) => {
|
|
440
|
-
const headers =
|
|
441
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
442
|
-
};
|
|
374
|
+
const headers = SHARED_HEADERS;
|
|
443
375
|
let body;
|
|
444
376
|
body = buildFormUrlencodedString({
|
|
445
377
|
...se_SetPlatformApplicationAttributesInput(input, context),
|
|
@@ -450,9 +382,7 @@ const se_SetPlatformApplicationAttributesCommand = async (input, context) => {
|
|
|
450
382
|
};
|
|
451
383
|
exports.se_SetPlatformApplicationAttributesCommand = se_SetPlatformApplicationAttributesCommand;
|
|
452
384
|
const se_SetSMSAttributesCommand = async (input, context) => {
|
|
453
|
-
const headers =
|
|
454
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
455
|
-
};
|
|
385
|
+
const headers = SHARED_HEADERS;
|
|
456
386
|
let body;
|
|
457
387
|
body = buildFormUrlencodedString({
|
|
458
388
|
...se_SetSMSAttributesInput(input, context),
|
|
@@ -463,9 +393,7 @@ const se_SetSMSAttributesCommand = async (input, context) => {
|
|
|
463
393
|
};
|
|
464
394
|
exports.se_SetSMSAttributesCommand = se_SetSMSAttributesCommand;
|
|
465
395
|
const se_SetSubscriptionAttributesCommand = async (input, context) => {
|
|
466
|
-
const headers =
|
|
467
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
468
|
-
};
|
|
396
|
+
const headers = SHARED_HEADERS;
|
|
469
397
|
let body;
|
|
470
398
|
body = buildFormUrlencodedString({
|
|
471
399
|
...se_SetSubscriptionAttributesInput(input, context),
|
|
@@ -476,9 +404,7 @@ const se_SetSubscriptionAttributesCommand = async (input, context) => {
|
|
|
476
404
|
};
|
|
477
405
|
exports.se_SetSubscriptionAttributesCommand = se_SetSubscriptionAttributesCommand;
|
|
478
406
|
const se_SetTopicAttributesCommand = async (input, context) => {
|
|
479
|
-
const headers =
|
|
480
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
481
|
-
};
|
|
407
|
+
const headers = SHARED_HEADERS;
|
|
482
408
|
let body;
|
|
483
409
|
body = buildFormUrlencodedString({
|
|
484
410
|
...se_SetTopicAttributesInput(input, context),
|
|
@@ -489,9 +415,7 @@ const se_SetTopicAttributesCommand = async (input, context) => {
|
|
|
489
415
|
};
|
|
490
416
|
exports.se_SetTopicAttributesCommand = se_SetTopicAttributesCommand;
|
|
491
417
|
const se_SubscribeCommand = async (input, context) => {
|
|
492
|
-
const headers =
|
|
493
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
494
|
-
};
|
|
418
|
+
const headers = SHARED_HEADERS;
|
|
495
419
|
let body;
|
|
496
420
|
body = buildFormUrlencodedString({
|
|
497
421
|
...se_SubscribeInput(input, context),
|
|
@@ -502,9 +426,7 @@ const se_SubscribeCommand = async (input, context) => {
|
|
|
502
426
|
};
|
|
503
427
|
exports.se_SubscribeCommand = se_SubscribeCommand;
|
|
504
428
|
const se_TagResourceCommand = async (input, context) => {
|
|
505
|
-
const headers =
|
|
506
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
507
|
-
};
|
|
429
|
+
const headers = SHARED_HEADERS;
|
|
508
430
|
let body;
|
|
509
431
|
body = buildFormUrlencodedString({
|
|
510
432
|
...se_TagResourceRequest(input, context),
|
|
@@ -515,9 +437,7 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
515
437
|
};
|
|
516
438
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
517
439
|
const se_UnsubscribeCommand = async (input, context) => {
|
|
518
|
-
const headers =
|
|
519
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
520
|
-
};
|
|
440
|
+
const headers = SHARED_HEADERS;
|
|
521
441
|
let body;
|
|
522
442
|
body = buildFormUrlencodedString({
|
|
523
443
|
...se_UnsubscribeInput(input, context),
|
|
@@ -528,9 +448,7 @@ const se_UnsubscribeCommand = async (input, context) => {
|
|
|
528
448
|
};
|
|
529
449
|
exports.se_UnsubscribeCommand = se_UnsubscribeCommand;
|
|
530
450
|
const se_UntagResourceCommand = async (input, context) => {
|
|
531
|
-
const headers =
|
|
532
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
533
|
-
};
|
|
451
|
+
const headers = SHARED_HEADERS;
|
|
534
452
|
let body;
|
|
535
453
|
body = buildFormUrlencodedString({
|
|
536
454
|
...se_UntagResourceRequest(input, context),
|
|
@@ -541,9 +459,7 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
541
459
|
};
|
|
542
460
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
543
461
|
const se_VerifySMSSandboxPhoneNumberCommand = async (input, context) => {
|
|
544
|
-
const headers =
|
|
545
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
546
|
-
};
|
|
462
|
+
const headers = SHARED_HEADERS;
|
|
547
463
|
let body;
|
|
548
464
|
body = buildFormUrlencodedString({
|
|
549
465
|
...se_VerifySMSSandboxPhoneNumberInput(input, context),
|
|
@@ -561,7 +477,7 @@ const de_AddPermissionCommand = async (output, context) => {
|
|
|
561
477
|
const response = {
|
|
562
478
|
$metadata: deserializeMetadata(output),
|
|
563
479
|
};
|
|
564
|
-
return
|
|
480
|
+
return response;
|
|
565
481
|
};
|
|
566
482
|
exports.de_AddPermissionCommand = de_AddPermissionCommand;
|
|
567
483
|
const de_AddPermissionCommandError = async (output, context) => {
|
|
@@ -585,10 +501,9 @@ const de_AddPermissionCommandError = async (output, context) => {
|
|
|
585
501
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
586
502
|
default:
|
|
587
503
|
const parsedBody = parsedOutput.body;
|
|
588
|
-
|
|
504
|
+
return throwDefaultError({
|
|
589
505
|
output,
|
|
590
506
|
parsedBody: parsedBody.Error,
|
|
591
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
592
507
|
errorCode,
|
|
593
508
|
});
|
|
594
509
|
}
|
|
@@ -604,7 +519,7 @@ const de_CheckIfPhoneNumberIsOptedOutCommand = async (output, context) => {
|
|
|
604
519
|
$metadata: deserializeMetadata(output),
|
|
605
520
|
...contents,
|
|
606
521
|
};
|
|
607
|
-
return
|
|
522
|
+
return response;
|
|
608
523
|
};
|
|
609
524
|
exports.de_CheckIfPhoneNumberIsOptedOutCommand = de_CheckIfPhoneNumberIsOptedOutCommand;
|
|
610
525
|
const de_CheckIfPhoneNumberIsOptedOutCommandError = async (output, context) => {
|
|
@@ -628,10 +543,9 @@ const de_CheckIfPhoneNumberIsOptedOutCommandError = async (output, context) => {
|
|
|
628
543
|
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
629
544
|
default:
|
|
630
545
|
const parsedBody = parsedOutput.body;
|
|
631
|
-
|
|
546
|
+
return throwDefaultError({
|
|
632
547
|
output,
|
|
633
548
|
parsedBody: parsedBody.Error,
|
|
634
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
635
549
|
errorCode,
|
|
636
550
|
});
|
|
637
551
|
}
|
|
@@ -647,7 +561,7 @@ const de_ConfirmSubscriptionCommand = async (output, context) => {
|
|
|
647
561
|
$metadata: deserializeMetadata(output),
|
|
648
562
|
...contents,
|
|
649
563
|
};
|
|
650
|
-
return
|
|
564
|
+
return response;
|
|
651
565
|
};
|
|
652
566
|
exports.de_ConfirmSubscriptionCommand = de_ConfirmSubscriptionCommand;
|
|
653
567
|
const de_ConfirmSubscriptionCommandError = async (output, context) => {
|
|
@@ -677,10 +591,9 @@ const de_ConfirmSubscriptionCommandError = async (output, context) => {
|
|
|
677
591
|
throw await de_SubscriptionLimitExceededExceptionRes(parsedOutput, context);
|
|
678
592
|
default:
|
|
679
593
|
const parsedBody = parsedOutput.body;
|
|
680
|
-
|
|
594
|
+
return throwDefaultError({
|
|
681
595
|
output,
|
|
682
596
|
parsedBody: parsedBody.Error,
|
|
683
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
684
597
|
errorCode,
|
|
685
598
|
});
|
|
686
599
|
}
|
|
@@ -696,7 +609,7 @@ const de_CreatePlatformApplicationCommand = async (output, context) => {
|
|
|
696
609
|
$metadata: deserializeMetadata(output),
|
|
697
610
|
...contents,
|
|
698
611
|
};
|
|
699
|
-
return
|
|
612
|
+
return response;
|
|
700
613
|
};
|
|
701
614
|
exports.de_CreatePlatformApplicationCommand = de_CreatePlatformApplicationCommand;
|
|
702
615
|
const de_CreatePlatformApplicationCommandError = async (output, context) => {
|
|
@@ -717,10 +630,9 @@ const de_CreatePlatformApplicationCommandError = async (output, context) => {
|
|
|
717
630
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
718
631
|
default:
|
|
719
632
|
const parsedBody = parsedOutput.body;
|
|
720
|
-
|
|
633
|
+
return throwDefaultError({
|
|
721
634
|
output,
|
|
722
635
|
parsedBody: parsedBody.Error,
|
|
723
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
724
636
|
errorCode,
|
|
725
637
|
});
|
|
726
638
|
}
|
|
@@ -736,7 +648,7 @@ const de_CreatePlatformEndpointCommand = async (output, context) => {
|
|
|
736
648
|
$metadata: deserializeMetadata(output),
|
|
737
649
|
...contents,
|
|
738
650
|
};
|
|
739
|
-
return
|
|
651
|
+
return response;
|
|
740
652
|
};
|
|
741
653
|
exports.de_CreatePlatformEndpointCommand = de_CreatePlatformEndpointCommand;
|
|
742
654
|
const de_CreatePlatformEndpointCommandError = async (output, context) => {
|
|
@@ -760,10 +672,9 @@ const de_CreatePlatformEndpointCommandError = async (output, context) => {
|
|
|
760
672
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
761
673
|
default:
|
|
762
674
|
const parsedBody = parsedOutput.body;
|
|
763
|
-
|
|
675
|
+
return throwDefaultError({
|
|
764
676
|
output,
|
|
765
677
|
parsedBody: parsedBody.Error,
|
|
766
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
767
678
|
errorCode,
|
|
768
679
|
});
|
|
769
680
|
}
|
|
@@ -779,7 +690,7 @@ const de_CreateSMSSandboxPhoneNumberCommand = async (output, context) => {
|
|
|
779
690
|
$metadata: deserializeMetadata(output),
|
|
780
691
|
...contents,
|
|
781
692
|
};
|
|
782
|
-
return
|
|
693
|
+
return response;
|
|
783
694
|
};
|
|
784
695
|
exports.de_CreateSMSSandboxPhoneNumberCommand = de_CreateSMSSandboxPhoneNumberCommand;
|
|
785
696
|
const de_CreateSMSSandboxPhoneNumberCommandError = async (output, context) => {
|
|
@@ -809,10 +720,9 @@ const de_CreateSMSSandboxPhoneNumberCommandError = async (output, context) => {
|
|
|
809
720
|
throw await de_UserErrorExceptionRes(parsedOutput, context);
|
|
810
721
|
default:
|
|
811
722
|
const parsedBody = parsedOutput.body;
|
|
812
|
-
|
|
723
|
+
return throwDefaultError({
|
|
813
724
|
output,
|
|
814
725
|
parsedBody: parsedBody.Error,
|
|
815
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
816
726
|
errorCode,
|
|
817
727
|
});
|
|
818
728
|
}
|
|
@@ -828,7 +738,7 @@ const de_CreateTopicCommand = async (output, context) => {
|
|
|
828
738
|
$metadata: deserializeMetadata(output),
|
|
829
739
|
...contents,
|
|
830
740
|
};
|
|
831
|
-
return
|
|
741
|
+
return response;
|
|
832
742
|
};
|
|
833
743
|
exports.de_CreateTopicCommand = de_CreateTopicCommand;
|
|
834
744
|
const de_CreateTopicCommandError = async (output, context) => {
|
|
@@ -867,10 +777,9 @@ const de_CreateTopicCommandError = async (output, context) => {
|
|
|
867
777
|
throw await de_TopicLimitExceededExceptionRes(parsedOutput, context);
|
|
868
778
|
default:
|
|
869
779
|
const parsedBody = parsedOutput.body;
|
|
870
|
-
|
|
780
|
+
return throwDefaultError({
|
|
871
781
|
output,
|
|
872
782
|
parsedBody: parsedBody.Error,
|
|
873
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
874
783
|
errorCode,
|
|
875
784
|
});
|
|
876
785
|
}
|
|
@@ -883,7 +792,7 @@ const de_DeleteEndpointCommand = async (output, context) => {
|
|
|
883
792
|
const response = {
|
|
884
793
|
$metadata: deserializeMetadata(output),
|
|
885
794
|
};
|
|
886
|
-
return
|
|
795
|
+
return response;
|
|
887
796
|
};
|
|
888
797
|
exports.de_DeleteEndpointCommand = de_DeleteEndpointCommand;
|
|
889
798
|
const de_DeleteEndpointCommandError = async (output, context) => {
|
|
@@ -904,10 +813,9 @@ const de_DeleteEndpointCommandError = async (output, context) => {
|
|
|
904
813
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
905
814
|
default:
|
|
906
815
|
const parsedBody = parsedOutput.body;
|
|
907
|
-
|
|
816
|
+
return throwDefaultError({
|
|
908
817
|
output,
|
|
909
818
|
parsedBody: parsedBody.Error,
|
|
910
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
911
819
|
errorCode,
|
|
912
820
|
});
|
|
913
821
|
}
|
|
@@ -920,7 +828,7 @@ const de_DeletePlatformApplicationCommand = async (output, context) => {
|
|
|
920
828
|
const response = {
|
|
921
829
|
$metadata: deserializeMetadata(output),
|
|
922
830
|
};
|
|
923
|
-
return
|
|
831
|
+
return response;
|
|
924
832
|
};
|
|
925
833
|
exports.de_DeletePlatformApplicationCommand = de_DeletePlatformApplicationCommand;
|
|
926
834
|
const de_DeletePlatformApplicationCommandError = async (output, context) => {
|
|
@@ -941,10 +849,9 @@ const de_DeletePlatformApplicationCommandError = async (output, context) => {
|
|
|
941
849
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
942
850
|
default:
|
|
943
851
|
const parsedBody = parsedOutput.body;
|
|
944
|
-
|
|
852
|
+
return throwDefaultError({
|
|
945
853
|
output,
|
|
946
854
|
parsedBody: parsedBody.Error,
|
|
947
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
948
855
|
errorCode,
|
|
949
856
|
});
|
|
950
857
|
}
|
|
@@ -960,7 +867,7 @@ const de_DeleteSMSSandboxPhoneNumberCommand = async (output, context) => {
|
|
|
960
867
|
$metadata: deserializeMetadata(output),
|
|
961
868
|
...contents,
|
|
962
869
|
};
|
|
963
|
-
return
|
|
870
|
+
return response;
|
|
964
871
|
};
|
|
965
872
|
exports.de_DeleteSMSSandboxPhoneNumberCommand = de_DeleteSMSSandboxPhoneNumberCommand;
|
|
966
873
|
const de_DeleteSMSSandboxPhoneNumberCommandError = async (output, context) => {
|
|
@@ -990,10 +897,9 @@ const de_DeleteSMSSandboxPhoneNumberCommandError = async (output, context) => {
|
|
|
990
897
|
throw await de_UserErrorExceptionRes(parsedOutput, context);
|
|
991
898
|
default:
|
|
992
899
|
const parsedBody = parsedOutput.body;
|
|
993
|
-
|
|
900
|
+
return throwDefaultError({
|
|
994
901
|
output,
|
|
995
902
|
parsedBody: parsedBody.Error,
|
|
996
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
997
903
|
errorCode,
|
|
998
904
|
});
|
|
999
905
|
}
|
|
@@ -1006,7 +912,7 @@ const de_DeleteTopicCommand = async (output, context) => {
|
|
|
1006
912
|
const response = {
|
|
1007
913
|
$metadata: deserializeMetadata(output),
|
|
1008
914
|
};
|
|
1009
|
-
return
|
|
915
|
+
return response;
|
|
1010
916
|
};
|
|
1011
917
|
exports.de_DeleteTopicCommand = de_DeleteTopicCommand;
|
|
1012
918
|
const de_DeleteTopicCommandError = async (output, context) => {
|
|
@@ -1039,10 +945,9 @@ const de_DeleteTopicCommandError = async (output, context) => {
|
|
|
1039
945
|
throw await de_TagPolicyExceptionRes(parsedOutput, context);
|
|
1040
946
|
default:
|
|
1041
947
|
const parsedBody = parsedOutput.body;
|
|
1042
|
-
|
|
948
|
+
return throwDefaultError({
|
|
1043
949
|
output,
|
|
1044
950
|
parsedBody: parsedBody.Error,
|
|
1045
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1046
951
|
errorCode,
|
|
1047
952
|
});
|
|
1048
953
|
}
|
|
@@ -1058,7 +963,7 @@ const de_GetDataProtectionPolicyCommand = async (output, context) => {
|
|
|
1058
963
|
$metadata: deserializeMetadata(output),
|
|
1059
964
|
...contents,
|
|
1060
965
|
};
|
|
1061
|
-
return
|
|
966
|
+
return response;
|
|
1062
967
|
};
|
|
1063
968
|
exports.de_GetDataProtectionPolicyCommand = de_GetDataProtectionPolicyCommand;
|
|
1064
969
|
const de_GetDataProtectionPolicyCommandError = async (output, context) => {
|
|
@@ -1085,10 +990,9 @@ const de_GetDataProtectionPolicyCommandError = async (output, context) => {
|
|
|
1085
990
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1086
991
|
default:
|
|
1087
992
|
const parsedBody = parsedOutput.body;
|
|
1088
|
-
|
|
993
|
+
return throwDefaultError({
|
|
1089
994
|
output,
|
|
1090
995
|
parsedBody: parsedBody.Error,
|
|
1091
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1092
996
|
errorCode,
|
|
1093
997
|
});
|
|
1094
998
|
}
|
|
@@ -1104,7 +1008,7 @@ const de_GetEndpointAttributesCommand = async (output, context) => {
|
|
|
1104
1008
|
$metadata: deserializeMetadata(output),
|
|
1105
1009
|
...contents,
|
|
1106
1010
|
};
|
|
1107
|
-
return
|
|
1011
|
+
return response;
|
|
1108
1012
|
};
|
|
1109
1013
|
exports.de_GetEndpointAttributesCommand = de_GetEndpointAttributesCommand;
|
|
1110
1014
|
const de_GetEndpointAttributesCommandError = async (output, context) => {
|
|
@@ -1128,10 +1032,9 @@ const de_GetEndpointAttributesCommandError = async (output, context) => {
|
|
|
1128
1032
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1129
1033
|
default:
|
|
1130
1034
|
const parsedBody = parsedOutput.body;
|
|
1131
|
-
|
|
1035
|
+
return throwDefaultError({
|
|
1132
1036
|
output,
|
|
1133
1037
|
parsedBody: parsedBody.Error,
|
|
1134
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1135
1038
|
errorCode,
|
|
1136
1039
|
});
|
|
1137
1040
|
}
|
|
@@ -1147,7 +1050,7 @@ const de_GetPlatformApplicationAttributesCommand = async (output, context) => {
|
|
|
1147
1050
|
$metadata: deserializeMetadata(output),
|
|
1148
1051
|
...contents,
|
|
1149
1052
|
};
|
|
1150
|
-
return
|
|
1053
|
+
return response;
|
|
1151
1054
|
};
|
|
1152
1055
|
exports.de_GetPlatformApplicationAttributesCommand = de_GetPlatformApplicationAttributesCommand;
|
|
1153
1056
|
const de_GetPlatformApplicationAttributesCommandError = async (output, context) => {
|
|
@@ -1171,10 +1074,9 @@ const de_GetPlatformApplicationAttributesCommandError = async (output, context)
|
|
|
1171
1074
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1172
1075
|
default:
|
|
1173
1076
|
const parsedBody = parsedOutput.body;
|
|
1174
|
-
|
|
1077
|
+
return throwDefaultError({
|
|
1175
1078
|
output,
|
|
1176
1079
|
parsedBody: parsedBody.Error,
|
|
1177
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1178
1080
|
errorCode,
|
|
1179
1081
|
});
|
|
1180
1082
|
}
|
|
@@ -1190,7 +1092,7 @@ const de_GetSMSAttributesCommand = async (output, context) => {
|
|
|
1190
1092
|
$metadata: deserializeMetadata(output),
|
|
1191
1093
|
...contents,
|
|
1192
1094
|
};
|
|
1193
|
-
return
|
|
1095
|
+
return response;
|
|
1194
1096
|
};
|
|
1195
1097
|
exports.de_GetSMSAttributesCommand = de_GetSMSAttributesCommand;
|
|
1196
1098
|
const de_GetSMSAttributesCommandError = async (output, context) => {
|
|
@@ -1214,10 +1116,9 @@ const de_GetSMSAttributesCommandError = async (output, context) => {
|
|
|
1214
1116
|
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1215
1117
|
default:
|
|
1216
1118
|
const parsedBody = parsedOutput.body;
|
|
1217
|
-
|
|
1119
|
+
return throwDefaultError({
|
|
1218
1120
|
output,
|
|
1219
1121
|
parsedBody: parsedBody.Error,
|
|
1220
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1221
1122
|
errorCode,
|
|
1222
1123
|
});
|
|
1223
1124
|
}
|
|
@@ -1233,7 +1134,7 @@ const de_GetSMSSandboxAccountStatusCommand = async (output, context) => {
|
|
|
1233
1134
|
$metadata: deserializeMetadata(output),
|
|
1234
1135
|
...contents,
|
|
1235
1136
|
};
|
|
1236
|
-
return
|
|
1137
|
+
return response;
|
|
1237
1138
|
};
|
|
1238
1139
|
exports.de_GetSMSSandboxAccountStatusCommand = de_GetSMSSandboxAccountStatusCommand;
|
|
1239
1140
|
const de_GetSMSSandboxAccountStatusCommandError = async (output, context) => {
|
|
@@ -1254,10 +1155,9 @@ const de_GetSMSSandboxAccountStatusCommandError = async (output, context) => {
|
|
|
1254
1155
|
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1255
1156
|
default:
|
|
1256
1157
|
const parsedBody = parsedOutput.body;
|
|
1257
|
-
|
|
1158
|
+
return throwDefaultError({
|
|
1258
1159
|
output,
|
|
1259
1160
|
parsedBody: parsedBody.Error,
|
|
1260
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1261
1161
|
errorCode,
|
|
1262
1162
|
});
|
|
1263
1163
|
}
|
|
@@ -1273,7 +1173,7 @@ const de_GetSubscriptionAttributesCommand = async (output, context) => {
|
|
|
1273
1173
|
$metadata: deserializeMetadata(output),
|
|
1274
1174
|
...contents,
|
|
1275
1175
|
};
|
|
1276
|
-
return
|
|
1176
|
+
return response;
|
|
1277
1177
|
};
|
|
1278
1178
|
exports.de_GetSubscriptionAttributesCommand = de_GetSubscriptionAttributesCommand;
|
|
1279
1179
|
const de_GetSubscriptionAttributesCommandError = async (output, context) => {
|
|
@@ -1297,10 +1197,9 @@ const de_GetSubscriptionAttributesCommandError = async (output, context) => {
|
|
|
1297
1197
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1298
1198
|
default:
|
|
1299
1199
|
const parsedBody = parsedOutput.body;
|
|
1300
|
-
|
|
1200
|
+
return throwDefaultError({
|
|
1301
1201
|
output,
|
|
1302
1202
|
parsedBody: parsedBody.Error,
|
|
1303
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1304
1203
|
errorCode,
|
|
1305
1204
|
});
|
|
1306
1205
|
}
|
|
@@ -1316,7 +1215,7 @@ const de_GetTopicAttributesCommand = async (output, context) => {
|
|
|
1316
1215
|
$metadata: deserializeMetadata(output),
|
|
1317
1216
|
...contents,
|
|
1318
1217
|
};
|
|
1319
|
-
return
|
|
1218
|
+
return response;
|
|
1320
1219
|
};
|
|
1321
1220
|
exports.de_GetTopicAttributesCommand = de_GetTopicAttributesCommand;
|
|
1322
1221
|
const de_GetTopicAttributesCommandError = async (output, context) => {
|
|
@@ -1343,10 +1242,9 @@ const de_GetTopicAttributesCommandError = async (output, context) => {
|
|
|
1343
1242
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1344
1243
|
default:
|
|
1345
1244
|
const parsedBody = parsedOutput.body;
|
|
1346
|
-
|
|
1245
|
+
return throwDefaultError({
|
|
1347
1246
|
output,
|
|
1348
1247
|
parsedBody: parsedBody.Error,
|
|
1349
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1350
1248
|
errorCode,
|
|
1351
1249
|
});
|
|
1352
1250
|
}
|
|
@@ -1362,7 +1260,7 @@ const de_ListEndpointsByPlatformApplicationCommand = async (output, context) =>
|
|
|
1362
1260
|
$metadata: deserializeMetadata(output),
|
|
1363
1261
|
...contents,
|
|
1364
1262
|
};
|
|
1365
|
-
return
|
|
1263
|
+
return response;
|
|
1366
1264
|
};
|
|
1367
1265
|
exports.de_ListEndpointsByPlatformApplicationCommand = de_ListEndpointsByPlatformApplicationCommand;
|
|
1368
1266
|
const de_ListEndpointsByPlatformApplicationCommandError = async (output, context) => {
|
|
@@ -1386,10 +1284,9 @@ const de_ListEndpointsByPlatformApplicationCommandError = async (output, context
|
|
|
1386
1284
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1387
1285
|
default:
|
|
1388
1286
|
const parsedBody = parsedOutput.body;
|
|
1389
|
-
|
|
1287
|
+
return throwDefaultError({
|
|
1390
1288
|
output,
|
|
1391
1289
|
parsedBody: parsedBody.Error,
|
|
1392
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1393
1290
|
errorCode,
|
|
1394
1291
|
});
|
|
1395
1292
|
}
|
|
@@ -1405,7 +1302,7 @@ const de_ListOriginationNumbersCommand = async (output, context) => {
|
|
|
1405
1302
|
$metadata: deserializeMetadata(output),
|
|
1406
1303
|
...contents,
|
|
1407
1304
|
};
|
|
1408
|
-
return
|
|
1305
|
+
return response;
|
|
1409
1306
|
};
|
|
1410
1307
|
exports.de_ListOriginationNumbersCommand = de_ListOriginationNumbersCommand;
|
|
1411
1308
|
const de_ListOriginationNumbersCommandError = async (output, context) => {
|
|
@@ -1432,10 +1329,9 @@ const de_ListOriginationNumbersCommandError = async (output, context) => {
|
|
|
1432
1329
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1433
1330
|
default:
|
|
1434
1331
|
const parsedBody = parsedOutput.body;
|
|
1435
|
-
|
|
1332
|
+
return throwDefaultError({
|
|
1436
1333
|
output,
|
|
1437
1334
|
parsedBody: parsedBody.Error,
|
|
1438
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1439
1335
|
errorCode,
|
|
1440
1336
|
});
|
|
1441
1337
|
}
|
|
@@ -1451,7 +1347,7 @@ const de_ListPhoneNumbersOptedOutCommand = async (output, context) => {
|
|
|
1451
1347
|
$metadata: deserializeMetadata(output),
|
|
1452
1348
|
...contents,
|
|
1453
1349
|
};
|
|
1454
|
-
return
|
|
1350
|
+
return response;
|
|
1455
1351
|
};
|
|
1456
1352
|
exports.de_ListPhoneNumbersOptedOutCommand = de_ListPhoneNumbersOptedOutCommand;
|
|
1457
1353
|
const de_ListPhoneNumbersOptedOutCommandError = async (output, context) => {
|
|
@@ -1475,10 +1371,9 @@ const de_ListPhoneNumbersOptedOutCommandError = async (output, context) => {
|
|
|
1475
1371
|
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1476
1372
|
default:
|
|
1477
1373
|
const parsedBody = parsedOutput.body;
|
|
1478
|
-
|
|
1374
|
+
return throwDefaultError({
|
|
1479
1375
|
output,
|
|
1480
1376
|
parsedBody: parsedBody.Error,
|
|
1481
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1482
1377
|
errorCode,
|
|
1483
1378
|
});
|
|
1484
1379
|
}
|
|
@@ -1494,7 +1389,7 @@ const de_ListPlatformApplicationsCommand = async (output, context) => {
|
|
|
1494
1389
|
$metadata: deserializeMetadata(output),
|
|
1495
1390
|
...contents,
|
|
1496
1391
|
};
|
|
1497
|
-
return
|
|
1392
|
+
return response;
|
|
1498
1393
|
};
|
|
1499
1394
|
exports.de_ListPlatformApplicationsCommand = de_ListPlatformApplicationsCommand;
|
|
1500
1395
|
const de_ListPlatformApplicationsCommandError = async (output, context) => {
|
|
@@ -1515,10 +1410,9 @@ const de_ListPlatformApplicationsCommandError = async (output, context) => {
|
|
|
1515
1410
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1516
1411
|
default:
|
|
1517
1412
|
const parsedBody = parsedOutput.body;
|
|
1518
|
-
|
|
1413
|
+
return throwDefaultError({
|
|
1519
1414
|
output,
|
|
1520
1415
|
parsedBody: parsedBody.Error,
|
|
1521
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1522
1416
|
errorCode,
|
|
1523
1417
|
});
|
|
1524
1418
|
}
|
|
@@ -1534,7 +1428,7 @@ const de_ListSMSSandboxPhoneNumbersCommand = async (output, context) => {
|
|
|
1534
1428
|
$metadata: deserializeMetadata(output),
|
|
1535
1429
|
...contents,
|
|
1536
1430
|
};
|
|
1537
|
-
return
|
|
1431
|
+
return response;
|
|
1538
1432
|
};
|
|
1539
1433
|
exports.de_ListSMSSandboxPhoneNumbersCommand = de_ListSMSSandboxPhoneNumbersCommand;
|
|
1540
1434
|
const de_ListSMSSandboxPhoneNumbersCommandError = async (output, context) => {
|
|
@@ -1561,10 +1455,9 @@ const de_ListSMSSandboxPhoneNumbersCommandError = async (output, context) => {
|
|
|
1561
1455
|
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1562
1456
|
default:
|
|
1563
1457
|
const parsedBody = parsedOutput.body;
|
|
1564
|
-
|
|
1458
|
+
return throwDefaultError({
|
|
1565
1459
|
output,
|
|
1566
1460
|
parsedBody: parsedBody.Error,
|
|
1567
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1568
1461
|
errorCode,
|
|
1569
1462
|
});
|
|
1570
1463
|
}
|
|
@@ -1580,7 +1473,7 @@ const de_ListSubscriptionsCommand = async (output, context) => {
|
|
|
1580
1473
|
$metadata: deserializeMetadata(output),
|
|
1581
1474
|
...contents,
|
|
1582
1475
|
};
|
|
1583
|
-
return
|
|
1476
|
+
return response;
|
|
1584
1477
|
};
|
|
1585
1478
|
exports.de_ListSubscriptionsCommand = de_ListSubscriptionsCommand;
|
|
1586
1479
|
const de_ListSubscriptionsCommandError = async (output, context) => {
|
|
@@ -1601,10 +1494,9 @@ const de_ListSubscriptionsCommandError = async (output, context) => {
|
|
|
1601
1494
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1602
1495
|
default:
|
|
1603
1496
|
const parsedBody = parsedOutput.body;
|
|
1604
|
-
|
|
1497
|
+
return throwDefaultError({
|
|
1605
1498
|
output,
|
|
1606
1499
|
parsedBody: parsedBody.Error,
|
|
1607
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1608
1500
|
errorCode,
|
|
1609
1501
|
});
|
|
1610
1502
|
}
|
|
@@ -1620,7 +1512,7 @@ const de_ListSubscriptionsByTopicCommand = async (output, context) => {
|
|
|
1620
1512
|
$metadata: deserializeMetadata(output),
|
|
1621
1513
|
...contents,
|
|
1622
1514
|
};
|
|
1623
|
-
return
|
|
1515
|
+
return response;
|
|
1624
1516
|
};
|
|
1625
1517
|
exports.de_ListSubscriptionsByTopicCommand = de_ListSubscriptionsByTopicCommand;
|
|
1626
1518
|
const de_ListSubscriptionsByTopicCommandError = async (output, context) => {
|
|
@@ -1644,10 +1536,9 @@ const de_ListSubscriptionsByTopicCommandError = async (output, context) => {
|
|
|
1644
1536
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1645
1537
|
default:
|
|
1646
1538
|
const parsedBody = parsedOutput.body;
|
|
1647
|
-
|
|
1539
|
+
return throwDefaultError({
|
|
1648
1540
|
output,
|
|
1649
1541
|
parsedBody: parsedBody.Error,
|
|
1650
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1651
1542
|
errorCode,
|
|
1652
1543
|
});
|
|
1653
1544
|
}
|
|
@@ -1663,7 +1554,7 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1663
1554
|
$metadata: deserializeMetadata(output),
|
|
1664
1555
|
...contents,
|
|
1665
1556
|
};
|
|
1666
|
-
return
|
|
1557
|
+
return response;
|
|
1667
1558
|
};
|
|
1668
1559
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1669
1560
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1690,10 +1581,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1690
1581
|
throw await de_TagPolicyExceptionRes(parsedOutput, context);
|
|
1691
1582
|
default:
|
|
1692
1583
|
const parsedBody = parsedOutput.body;
|
|
1693
|
-
|
|
1584
|
+
return throwDefaultError({
|
|
1694
1585
|
output,
|
|
1695
1586
|
parsedBody: parsedBody.Error,
|
|
1696
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1697
1587
|
errorCode,
|
|
1698
1588
|
});
|
|
1699
1589
|
}
|
|
@@ -1709,7 +1599,7 @@ const de_ListTopicsCommand = async (output, context) => {
|
|
|
1709
1599
|
$metadata: deserializeMetadata(output),
|
|
1710
1600
|
...contents,
|
|
1711
1601
|
};
|
|
1712
|
-
return
|
|
1602
|
+
return response;
|
|
1713
1603
|
};
|
|
1714
1604
|
exports.de_ListTopicsCommand = de_ListTopicsCommand;
|
|
1715
1605
|
const de_ListTopicsCommandError = async (output, context) => {
|
|
@@ -1730,10 +1620,9 @@ const de_ListTopicsCommandError = async (output, context) => {
|
|
|
1730
1620
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1731
1621
|
default:
|
|
1732
1622
|
const parsedBody = parsedOutput.body;
|
|
1733
|
-
|
|
1623
|
+
return throwDefaultError({
|
|
1734
1624
|
output,
|
|
1735
1625
|
parsedBody: parsedBody.Error,
|
|
1736
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1737
1626
|
errorCode,
|
|
1738
1627
|
});
|
|
1739
1628
|
}
|
|
@@ -1749,7 +1638,7 @@ const de_OptInPhoneNumberCommand = async (output, context) => {
|
|
|
1749
1638
|
$metadata: deserializeMetadata(output),
|
|
1750
1639
|
...contents,
|
|
1751
1640
|
};
|
|
1752
|
-
return
|
|
1641
|
+
return response;
|
|
1753
1642
|
};
|
|
1754
1643
|
exports.de_OptInPhoneNumberCommand = de_OptInPhoneNumberCommand;
|
|
1755
1644
|
const de_OptInPhoneNumberCommandError = async (output, context) => {
|
|
@@ -1773,10 +1662,9 @@ const de_OptInPhoneNumberCommandError = async (output, context) => {
|
|
|
1773
1662
|
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1774
1663
|
default:
|
|
1775
1664
|
const parsedBody = parsedOutput.body;
|
|
1776
|
-
|
|
1665
|
+
return throwDefaultError({
|
|
1777
1666
|
output,
|
|
1778
1667
|
parsedBody: parsedBody.Error,
|
|
1779
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1780
1668
|
errorCode,
|
|
1781
1669
|
});
|
|
1782
1670
|
}
|
|
@@ -1792,7 +1680,7 @@ const de_PublishCommand = async (output, context) => {
|
|
|
1792
1680
|
$metadata: deserializeMetadata(output),
|
|
1793
1681
|
...contents,
|
|
1794
1682
|
};
|
|
1795
|
-
return
|
|
1683
|
+
return response;
|
|
1796
1684
|
};
|
|
1797
1685
|
exports.de_PublishCommand = de_PublishCommand;
|
|
1798
1686
|
const de_PublishCommandError = async (output, context) => {
|
|
@@ -1849,10 +1737,9 @@ const de_PublishCommandError = async (output, context) => {
|
|
|
1849
1737
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1850
1738
|
default:
|
|
1851
1739
|
const parsedBody = parsedOutput.body;
|
|
1852
|
-
|
|
1740
|
+
return throwDefaultError({
|
|
1853
1741
|
output,
|
|
1854
1742
|
parsedBody: parsedBody.Error,
|
|
1855
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1856
1743
|
errorCode,
|
|
1857
1744
|
});
|
|
1858
1745
|
}
|
|
@@ -1868,7 +1755,7 @@ const de_PublishBatchCommand = async (output, context) => {
|
|
|
1868
1755
|
$metadata: deserializeMetadata(output),
|
|
1869
1756
|
...contents,
|
|
1870
1757
|
};
|
|
1871
|
-
return
|
|
1758
|
+
return response;
|
|
1872
1759
|
};
|
|
1873
1760
|
exports.de_PublishBatchCommand = de_PublishBatchCommand;
|
|
1874
1761
|
const de_PublishBatchCommandError = async (output, context) => {
|
|
@@ -1940,10 +1827,9 @@ const de_PublishBatchCommandError = async (output, context) => {
|
|
|
1940
1827
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1941
1828
|
default:
|
|
1942
1829
|
const parsedBody = parsedOutput.body;
|
|
1943
|
-
|
|
1830
|
+
return throwDefaultError({
|
|
1944
1831
|
output,
|
|
1945
1832
|
parsedBody: parsedBody.Error,
|
|
1946
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1947
1833
|
errorCode,
|
|
1948
1834
|
});
|
|
1949
1835
|
}
|
|
@@ -1956,7 +1842,7 @@ const de_PutDataProtectionPolicyCommand = async (output, context) => {
|
|
|
1956
1842
|
const response = {
|
|
1957
1843
|
$metadata: deserializeMetadata(output),
|
|
1958
1844
|
};
|
|
1959
|
-
return
|
|
1845
|
+
return response;
|
|
1960
1846
|
};
|
|
1961
1847
|
exports.de_PutDataProtectionPolicyCommand = de_PutDataProtectionPolicyCommand;
|
|
1962
1848
|
const de_PutDataProtectionPolicyCommandError = async (output, context) => {
|
|
@@ -1983,10 +1869,9 @@ const de_PutDataProtectionPolicyCommandError = async (output, context) => {
|
|
|
1983
1869
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1984
1870
|
default:
|
|
1985
1871
|
const parsedBody = parsedOutput.body;
|
|
1986
|
-
|
|
1872
|
+
return throwDefaultError({
|
|
1987
1873
|
output,
|
|
1988
1874
|
parsedBody: parsedBody.Error,
|
|
1989
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1990
1875
|
errorCode,
|
|
1991
1876
|
});
|
|
1992
1877
|
}
|
|
@@ -1999,7 +1884,7 @@ const de_RemovePermissionCommand = async (output, context) => {
|
|
|
1999
1884
|
const response = {
|
|
2000
1885
|
$metadata: deserializeMetadata(output),
|
|
2001
1886
|
};
|
|
2002
|
-
return
|
|
1887
|
+
return response;
|
|
2003
1888
|
};
|
|
2004
1889
|
exports.de_RemovePermissionCommand = de_RemovePermissionCommand;
|
|
2005
1890
|
const de_RemovePermissionCommandError = async (output, context) => {
|
|
@@ -2023,10 +1908,9 @@ const de_RemovePermissionCommandError = async (output, context) => {
|
|
|
2023
1908
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2024
1909
|
default:
|
|
2025
1910
|
const parsedBody = parsedOutput.body;
|
|
2026
|
-
|
|
1911
|
+
return throwDefaultError({
|
|
2027
1912
|
output,
|
|
2028
1913
|
parsedBody: parsedBody.Error,
|
|
2029
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
2030
1914
|
errorCode,
|
|
2031
1915
|
});
|
|
2032
1916
|
}
|
|
@@ -2039,7 +1923,7 @@ const de_SetEndpointAttributesCommand = async (output, context) => {
|
|
|
2039
1923
|
const response = {
|
|
2040
1924
|
$metadata: deserializeMetadata(output),
|
|
2041
1925
|
};
|
|
2042
|
-
return
|
|
1926
|
+
return response;
|
|
2043
1927
|
};
|
|
2044
1928
|
exports.de_SetEndpointAttributesCommand = de_SetEndpointAttributesCommand;
|
|
2045
1929
|
const de_SetEndpointAttributesCommandError = async (output, context) => {
|
|
@@ -2063,10 +1947,9 @@ const de_SetEndpointAttributesCommandError = async (output, context) => {
|
|
|
2063
1947
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2064
1948
|
default:
|
|
2065
1949
|
const parsedBody = parsedOutput.body;
|
|
2066
|
-
|
|
1950
|
+
return throwDefaultError({
|
|
2067
1951
|
output,
|
|
2068
1952
|
parsedBody: parsedBody.Error,
|
|
2069
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
2070
1953
|
errorCode,
|
|
2071
1954
|
});
|
|
2072
1955
|
}
|
|
@@ -2079,7 +1962,7 @@ const de_SetPlatformApplicationAttributesCommand = async (output, context) => {
|
|
|
2079
1962
|
const response = {
|
|
2080
1963
|
$metadata: deserializeMetadata(output),
|
|
2081
1964
|
};
|
|
2082
|
-
return
|
|
1965
|
+
return response;
|
|
2083
1966
|
};
|
|
2084
1967
|
exports.de_SetPlatformApplicationAttributesCommand = de_SetPlatformApplicationAttributesCommand;
|
|
2085
1968
|
const de_SetPlatformApplicationAttributesCommandError = async (output, context) => {
|
|
@@ -2103,10 +1986,9 @@ const de_SetPlatformApplicationAttributesCommandError = async (output, context)
|
|
|
2103
1986
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2104
1987
|
default:
|
|
2105
1988
|
const parsedBody = parsedOutput.body;
|
|
2106
|
-
|
|
1989
|
+
return throwDefaultError({
|
|
2107
1990
|
output,
|
|
2108
1991
|
parsedBody: parsedBody.Error,
|
|
2109
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
2110
1992
|
errorCode,
|
|
2111
1993
|
});
|
|
2112
1994
|
}
|
|
@@ -2122,7 +2004,7 @@ const de_SetSMSAttributesCommand = async (output, context) => {
|
|
|
2122
2004
|
$metadata: deserializeMetadata(output),
|
|
2123
2005
|
...contents,
|
|
2124
2006
|
};
|
|
2125
|
-
return
|
|
2007
|
+
return response;
|
|
2126
2008
|
};
|
|
2127
2009
|
exports.de_SetSMSAttributesCommand = de_SetSMSAttributesCommand;
|
|
2128
2010
|
const de_SetSMSAttributesCommandError = async (output, context) => {
|
|
@@ -2146,10 +2028,9 @@ const de_SetSMSAttributesCommandError = async (output, context) => {
|
|
|
2146
2028
|
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
2147
2029
|
default:
|
|
2148
2030
|
const parsedBody = parsedOutput.body;
|
|
2149
|
-
|
|
2031
|
+
return throwDefaultError({
|
|
2150
2032
|
output,
|
|
2151
2033
|
parsedBody: parsedBody.Error,
|
|
2152
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
2153
2034
|
errorCode,
|
|
2154
2035
|
});
|
|
2155
2036
|
}
|
|
@@ -2162,7 +2043,7 @@ const de_SetSubscriptionAttributesCommand = async (output, context) => {
|
|
|
2162
2043
|
const response = {
|
|
2163
2044
|
$metadata: deserializeMetadata(output),
|
|
2164
2045
|
};
|
|
2165
|
-
return
|
|
2046
|
+
return response;
|
|
2166
2047
|
};
|
|
2167
2048
|
exports.de_SetSubscriptionAttributesCommand = de_SetSubscriptionAttributesCommand;
|
|
2168
2049
|
const de_SetSubscriptionAttributesCommandError = async (output, context) => {
|
|
@@ -2189,10 +2070,9 @@ const de_SetSubscriptionAttributesCommandError = async (output, context) => {
|
|
|
2189
2070
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2190
2071
|
default:
|
|
2191
2072
|
const parsedBody = parsedOutput.body;
|
|
2192
|
-
|
|
2073
|
+
return throwDefaultError({
|
|
2193
2074
|
output,
|
|
2194
2075
|
parsedBody: parsedBody.Error,
|
|
2195
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
2196
2076
|
errorCode,
|
|
2197
2077
|
});
|
|
2198
2078
|
}
|
|
@@ -2205,7 +2085,7 @@ const de_SetTopicAttributesCommand = async (output, context) => {
|
|
|
2205
2085
|
const response = {
|
|
2206
2086
|
$metadata: deserializeMetadata(output),
|
|
2207
2087
|
};
|
|
2208
|
-
return
|
|
2088
|
+
return response;
|
|
2209
2089
|
};
|
|
2210
2090
|
exports.de_SetTopicAttributesCommand = de_SetTopicAttributesCommand;
|
|
2211
2091
|
const de_SetTopicAttributesCommandError = async (output, context) => {
|
|
@@ -2232,10 +2112,9 @@ const de_SetTopicAttributesCommandError = async (output, context) => {
|
|
|
2232
2112
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2233
2113
|
default:
|
|
2234
2114
|
const parsedBody = parsedOutput.body;
|
|
2235
|
-
|
|
2115
|
+
return throwDefaultError({
|
|
2236
2116
|
output,
|
|
2237
2117
|
parsedBody: parsedBody.Error,
|
|
2238
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
2239
2118
|
errorCode,
|
|
2240
2119
|
});
|
|
2241
2120
|
}
|
|
@@ -2251,7 +2130,7 @@ const de_SubscribeCommand = async (output, context) => {
|
|
|
2251
2130
|
$metadata: deserializeMetadata(output),
|
|
2252
2131
|
...contents,
|
|
2253
2132
|
};
|
|
2254
|
-
return
|
|
2133
|
+
return response;
|
|
2255
2134
|
};
|
|
2256
2135
|
exports.de_SubscribeCommand = de_SubscribeCommand;
|
|
2257
2136
|
const de_SubscribeCommandError = async (output, context) => {
|
|
@@ -2284,10 +2163,9 @@ const de_SubscribeCommandError = async (output, context) => {
|
|
|
2284
2163
|
throw await de_SubscriptionLimitExceededExceptionRes(parsedOutput, context);
|
|
2285
2164
|
default:
|
|
2286
2165
|
const parsedBody = parsedOutput.body;
|
|
2287
|
-
|
|
2166
|
+
return throwDefaultError({
|
|
2288
2167
|
output,
|
|
2289
2168
|
parsedBody: parsedBody.Error,
|
|
2290
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
2291
2169
|
errorCode,
|
|
2292
2170
|
});
|
|
2293
2171
|
}
|
|
@@ -2303,7 +2181,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
2303
2181
|
$metadata: deserializeMetadata(output),
|
|
2304
2182
|
...contents,
|
|
2305
2183
|
};
|
|
2306
|
-
return
|
|
2184
|
+
return response;
|
|
2307
2185
|
};
|
|
2308
2186
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
2309
2187
|
const de_TagResourceCommandError = async (output, context) => {
|
|
@@ -2336,10 +2214,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
2336
2214
|
throw await de_TagPolicyExceptionRes(parsedOutput, context);
|
|
2337
2215
|
default:
|
|
2338
2216
|
const parsedBody = parsedOutput.body;
|
|
2339
|
-
|
|
2217
|
+
return throwDefaultError({
|
|
2340
2218
|
output,
|
|
2341
2219
|
parsedBody: parsedBody.Error,
|
|
2342
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
2343
2220
|
errorCode,
|
|
2344
2221
|
});
|
|
2345
2222
|
}
|
|
@@ -2352,7 +2229,7 @@ const de_UnsubscribeCommand = async (output, context) => {
|
|
|
2352
2229
|
const response = {
|
|
2353
2230
|
$metadata: deserializeMetadata(output),
|
|
2354
2231
|
};
|
|
2355
|
-
return
|
|
2232
|
+
return response;
|
|
2356
2233
|
};
|
|
2357
2234
|
exports.de_UnsubscribeCommand = de_UnsubscribeCommand;
|
|
2358
2235
|
const de_UnsubscribeCommandError = async (output, context) => {
|
|
@@ -2379,10 +2256,9 @@ const de_UnsubscribeCommandError = async (output, context) => {
|
|
|
2379
2256
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2380
2257
|
default:
|
|
2381
2258
|
const parsedBody = parsedOutput.body;
|
|
2382
|
-
|
|
2259
|
+
return throwDefaultError({
|
|
2383
2260
|
output,
|
|
2384
2261
|
parsedBody: parsedBody.Error,
|
|
2385
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
2386
2262
|
errorCode,
|
|
2387
2263
|
});
|
|
2388
2264
|
}
|
|
@@ -2398,7 +2274,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
2398
2274
|
$metadata: deserializeMetadata(output),
|
|
2399
2275
|
...contents,
|
|
2400
2276
|
};
|
|
2401
|
-
return
|
|
2277
|
+
return response;
|
|
2402
2278
|
};
|
|
2403
2279
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
2404
2280
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
@@ -2431,10 +2307,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
2431
2307
|
throw await de_TagPolicyExceptionRes(parsedOutput, context);
|
|
2432
2308
|
default:
|
|
2433
2309
|
const parsedBody = parsedOutput.body;
|
|
2434
|
-
|
|
2310
|
+
return throwDefaultError({
|
|
2435
2311
|
output,
|
|
2436
2312
|
parsedBody: parsedBody.Error,
|
|
2437
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
2438
2313
|
errorCode,
|
|
2439
2314
|
});
|
|
2440
2315
|
}
|
|
@@ -2450,7 +2325,7 @@ const de_VerifySMSSandboxPhoneNumberCommand = async (output, context) => {
|
|
|
2450
2325
|
$metadata: deserializeMetadata(output),
|
|
2451
2326
|
...contents,
|
|
2452
2327
|
};
|
|
2453
|
-
return
|
|
2328
|
+
return response;
|
|
2454
2329
|
};
|
|
2455
2330
|
exports.de_VerifySMSSandboxPhoneNumberCommand = de_VerifySMSSandboxPhoneNumberCommand;
|
|
2456
2331
|
const de_VerifySMSSandboxPhoneNumberCommandError = async (output, context) => {
|
|
@@ -2480,10 +2355,9 @@ const de_VerifySMSSandboxPhoneNumberCommandError = async (output, context) => {
|
|
|
2480
2355
|
throw await de_VerificationExceptionRes(parsedOutput, context);
|
|
2481
2356
|
default:
|
|
2482
2357
|
const parsedBody = parsedOutput.body;
|
|
2483
|
-
|
|
2358
|
+
return throwDefaultError({
|
|
2484
2359
|
output,
|
|
2485
2360
|
parsedBody: parsedBody.Error,
|
|
2486
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
2487
2361
|
errorCode,
|
|
2488
2362
|
});
|
|
2489
2363
|
}
|
|
@@ -4199,6 +4073,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
4199
4073
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
4200
4074
|
};
|
|
4201
4075
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
4076
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(SNSServiceException_1.SNSServiceException);
|
|
4202
4077
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
4203
4078
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4204
4079
|
const contents = {
|
|
@@ -4217,6 +4092,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
4217
4092
|
}
|
|
4218
4093
|
return new protocol_http_1.HttpRequest(contents);
|
|
4219
4094
|
};
|
|
4095
|
+
const SHARED_HEADERS = {
|
|
4096
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
4097
|
+
};
|
|
4220
4098
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4221
4099
|
if (encoded.length) {
|
|
4222
4100
|
const parser = new fast_xml_parser_1.XMLParser({
|