@aws-sdk/client-sns 3.309.0 → 3.312.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 +45 -126
- package/dist-es/protocols/Aws_query.js +45 -126
- package/package.json +35 -35
|
@@ -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),
|
|
@@ -4217,6 +4133,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
4217
4133
|
}
|
|
4218
4134
|
return new protocol_http_1.HttpRequest(contents);
|
|
4219
4135
|
};
|
|
4136
|
+
const SHARED_HEADERS = {
|
|
4137
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
4138
|
+
};
|
|
4220
4139
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4221
4140
|
if (encoded.length) {
|
|
4222
4141
|
const parser = new fast_xml_parser_1.XMLParser({
|
|
@@ -4,9 +4,7 @@ import { XMLParser } from "fast-xml-parser";
|
|
|
4
4
|
import { AuthorizationErrorException, BatchEntryIdsNotDistinctException, BatchRequestTooLongException, ConcurrentAccessException, EmptyBatchRequestException, EndpointDisabledException, FilterPolicyLimitExceededException, InternalErrorException, InvalidBatchEntryIdException, InvalidParameterException, InvalidParameterValueException, InvalidSecurityException, KMSAccessDeniedException, KMSDisabledException, KMSInvalidStateException, KMSNotFoundException, KMSOptInRequired, KMSThrottlingException, NotFoundException, OptedOutException, PlatformApplicationDisabledException, ResourceNotFoundException, StaleTagException, SubscriptionLimitExceededException, TagLimitExceededException, TagPolicyException, ThrottledException, TooManyEntriesInBatchRequestException, TopicLimitExceededException, UserErrorException, ValidationException, VerificationException, } from "../models/models_0";
|
|
5
5
|
import { SNSServiceException as __BaseException } from "../models/SNSServiceException";
|
|
6
6
|
export const se_AddPermissionCommand = async (input, context) => {
|
|
7
|
-
const headers =
|
|
8
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
9
|
-
};
|
|
7
|
+
const headers = SHARED_HEADERS;
|
|
10
8
|
let body;
|
|
11
9
|
body = buildFormUrlencodedString({
|
|
12
10
|
...se_AddPermissionInput(input, context),
|
|
@@ -16,9 +14,7 @@ export const se_AddPermissionCommand = async (input, context) => {
|
|
|
16
14
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
15
|
};
|
|
18
16
|
export const se_CheckIfPhoneNumberIsOptedOutCommand = async (input, context) => {
|
|
19
|
-
const headers =
|
|
20
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
21
|
-
};
|
|
17
|
+
const headers = SHARED_HEADERS;
|
|
22
18
|
let body;
|
|
23
19
|
body = buildFormUrlencodedString({
|
|
24
20
|
...se_CheckIfPhoneNumberIsOptedOutInput(input, context),
|
|
@@ -28,9 +24,7 @@ export const se_CheckIfPhoneNumberIsOptedOutCommand = async (input, context) =>
|
|
|
28
24
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
25
|
};
|
|
30
26
|
export const se_ConfirmSubscriptionCommand = async (input, context) => {
|
|
31
|
-
const headers =
|
|
32
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
33
|
-
};
|
|
27
|
+
const headers = SHARED_HEADERS;
|
|
34
28
|
let body;
|
|
35
29
|
body = buildFormUrlencodedString({
|
|
36
30
|
...se_ConfirmSubscriptionInput(input, context),
|
|
@@ -40,9 +34,7 @@ export const se_ConfirmSubscriptionCommand = async (input, context) => {
|
|
|
40
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
35
|
};
|
|
42
36
|
export const se_CreatePlatformApplicationCommand = async (input, context) => {
|
|
43
|
-
const headers =
|
|
44
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
45
|
-
};
|
|
37
|
+
const headers = SHARED_HEADERS;
|
|
46
38
|
let body;
|
|
47
39
|
body = buildFormUrlencodedString({
|
|
48
40
|
...se_CreatePlatformApplicationInput(input, context),
|
|
@@ -52,9 +44,7 @@ export const se_CreatePlatformApplicationCommand = async (input, context) => {
|
|
|
52
44
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
53
45
|
};
|
|
54
46
|
export const se_CreatePlatformEndpointCommand = async (input, context) => {
|
|
55
|
-
const headers =
|
|
56
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
57
|
-
};
|
|
47
|
+
const headers = SHARED_HEADERS;
|
|
58
48
|
let body;
|
|
59
49
|
body = buildFormUrlencodedString({
|
|
60
50
|
...se_CreatePlatformEndpointInput(input, context),
|
|
@@ -64,9 +54,7 @@ export const se_CreatePlatformEndpointCommand = async (input, context) => {
|
|
|
64
54
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
55
|
};
|
|
66
56
|
export const se_CreateSMSSandboxPhoneNumberCommand = async (input, context) => {
|
|
67
|
-
const headers =
|
|
68
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
69
|
-
};
|
|
57
|
+
const headers = SHARED_HEADERS;
|
|
70
58
|
let body;
|
|
71
59
|
body = buildFormUrlencodedString({
|
|
72
60
|
...se_CreateSMSSandboxPhoneNumberInput(input, context),
|
|
@@ -76,9 +64,7 @@ export const se_CreateSMSSandboxPhoneNumberCommand = async (input, context) => {
|
|
|
76
64
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
65
|
};
|
|
78
66
|
export const se_CreateTopicCommand = async (input, context) => {
|
|
79
|
-
const headers =
|
|
80
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
81
|
-
};
|
|
67
|
+
const headers = SHARED_HEADERS;
|
|
82
68
|
let body;
|
|
83
69
|
body = buildFormUrlencodedString({
|
|
84
70
|
...se_CreateTopicInput(input, context),
|
|
@@ -88,9 +74,7 @@ export const se_CreateTopicCommand = async (input, context) => {
|
|
|
88
74
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
75
|
};
|
|
90
76
|
export const se_DeleteEndpointCommand = async (input, context) => {
|
|
91
|
-
const headers =
|
|
92
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
93
|
-
};
|
|
77
|
+
const headers = SHARED_HEADERS;
|
|
94
78
|
let body;
|
|
95
79
|
body = buildFormUrlencodedString({
|
|
96
80
|
...se_DeleteEndpointInput(input, context),
|
|
@@ -100,9 +84,7 @@ export const se_DeleteEndpointCommand = async (input, context) => {
|
|
|
100
84
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
85
|
};
|
|
102
86
|
export const se_DeletePlatformApplicationCommand = async (input, context) => {
|
|
103
|
-
const headers =
|
|
104
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
105
|
-
};
|
|
87
|
+
const headers = SHARED_HEADERS;
|
|
106
88
|
let body;
|
|
107
89
|
body = buildFormUrlencodedString({
|
|
108
90
|
...se_DeletePlatformApplicationInput(input, context),
|
|
@@ -112,9 +94,7 @@ export const se_DeletePlatformApplicationCommand = async (input, context) => {
|
|
|
112
94
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
95
|
};
|
|
114
96
|
export const se_DeleteSMSSandboxPhoneNumberCommand = async (input, context) => {
|
|
115
|
-
const headers =
|
|
116
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
117
|
-
};
|
|
97
|
+
const headers = SHARED_HEADERS;
|
|
118
98
|
let body;
|
|
119
99
|
body = buildFormUrlencodedString({
|
|
120
100
|
...se_DeleteSMSSandboxPhoneNumberInput(input, context),
|
|
@@ -124,9 +104,7 @@ export const se_DeleteSMSSandboxPhoneNumberCommand = async (input, context) => {
|
|
|
124
104
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
105
|
};
|
|
126
106
|
export const se_DeleteTopicCommand = async (input, context) => {
|
|
127
|
-
const headers =
|
|
128
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
129
|
-
};
|
|
107
|
+
const headers = SHARED_HEADERS;
|
|
130
108
|
let body;
|
|
131
109
|
body = buildFormUrlencodedString({
|
|
132
110
|
...se_DeleteTopicInput(input, context),
|
|
@@ -136,9 +114,7 @@ export const se_DeleteTopicCommand = async (input, context) => {
|
|
|
136
114
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
115
|
};
|
|
138
116
|
export const se_GetDataProtectionPolicyCommand = async (input, context) => {
|
|
139
|
-
const headers =
|
|
140
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
141
|
-
};
|
|
117
|
+
const headers = SHARED_HEADERS;
|
|
142
118
|
let body;
|
|
143
119
|
body = buildFormUrlencodedString({
|
|
144
120
|
...se_GetDataProtectionPolicyInput(input, context),
|
|
@@ -148,9 +124,7 @@ export const se_GetDataProtectionPolicyCommand = async (input, context) => {
|
|
|
148
124
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
125
|
};
|
|
150
126
|
export const se_GetEndpointAttributesCommand = async (input, context) => {
|
|
151
|
-
const headers =
|
|
152
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
153
|
-
};
|
|
127
|
+
const headers = SHARED_HEADERS;
|
|
154
128
|
let body;
|
|
155
129
|
body = buildFormUrlencodedString({
|
|
156
130
|
...se_GetEndpointAttributesInput(input, context),
|
|
@@ -160,9 +134,7 @@ export const se_GetEndpointAttributesCommand = async (input, context) => {
|
|
|
160
134
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
161
135
|
};
|
|
162
136
|
export const se_GetPlatformApplicationAttributesCommand = async (input, context) => {
|
|
163
|
-
const headers =
|
|
164
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
165
|
-
};
|
|
137
|
+
const headers = SHARED_HEADERS;
|
|
166
138
|
let body;
|
|
167
139
|
body = buildFormUrlencodedString({
|
|
168
140
|
...se_GetPlatformApplicationAttributesInput(input, context),
|
|
@@ -172,9 +144,7 @@ export const se_GetPlatformApplicationAttributesCommand = async (input, context)
|
|
|
172
144
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
173
145
|
};
|
|
174
146
|
export const se_GetSMSAttributesCommand = async (input, context) => {
|
|
175
|
-
const headers =
|
|
176
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
177
|
-
};
|
|
147
|
+
const headers = SHARED_HEADERS;
|
|
178
148
|
let body;
|
|
179
149
|
body = buildFormUrlencodedString({
|
|
180
150
|
...se_GetSMSAttributesInput(input, context),
|
|
@@ -184,9 +154,7 @@ export const se_GetSMSAttributesCommand = async (input, context) => {
|
|
|
184
154
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
185
155
|
};
|
|
186
156
|
export const se_GetSMSSandboxAccountStatusCommand = async (input, context) => {
|
|
187
|
-
const headers =
|
|
188
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
189
|
-
};
|
|
157
|
+
const headers = SHARED_HEADERS;
|
|
190
158
|
let body;
|
|
191
159
|
body = buildFormUrlencodedString({
|
|
192
160
|
...se_GetSMSSandboxAccountStatusInput(input, context),
|
|
@@ -196,9 +164,7 @@ export const se_GetSMSSandboxAccountStatusCommand = async (input, context) => {
|
|
|
196
164
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
165
|
};
|
|
198
166
|
export const se_GetSubscriptionAttributesCommand = async (input, context) => {
|
|
199
|
-
const headers =
|
|
200
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
201
|
-
};
|
|
167
|
+
const headers = SHARED_HEADERS;
|
|
202
168
|
let body;
|
|
203
169
|
body = buildFormUrlencodedString({
|
|
204
170
|
...se_GetSubscriptionAttributesInput(input, context),
|
|
@@ -208,9 +174,7 @@ export const se_GetSubscriptionAttributesCommand = async (input, context) => {
|
|
|
208
174
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
209
175
|
};
|
|
210
176
|
export const se_GetTopicAttributesCommand = async (input, context) => {
|
|
211
|
-
const headers =
|
|
212
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
213
|
-
};
|
|
177
|
+
const headers = SHARED_HEADERS;
|
|
214
178
|
let body;
|
|
215
179
|
body = buildFormUrlencodedString({
|
|
216
180
|
...se_GetTopicAttributesInput(input, context),
|
|
@@ -220,9 +184,7 @@ export const se_GetTopicAttributesCommand = async (input, context) => {
|
|
|
220
184
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
221
185
|
};
|
|
222
186
|
export const se_ListEndpointsByPlatformApplicationCommand = async (input, context) => {
|
|
223
|
-
const headers =
|
|
224
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
225
|
-
};
|
|
187
|
+
const headers = SHARED_HEADERS;
|
|
226
188
|
let body;
|
|
227
189
|
body = buildFormUrlencodedString({
|
|
228
190
|
...se_ListEndpointsByPlatformApplicationInput(input, context),
|
|
@@ -232,9 +194,7 @@ export const se_ListEndpointsByPlatformApplicationCommand = async (input, contex
|
|
|
232
194
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
233
195
|
};
|
|
234
196
|
export const se_ListOriginationNumbersCommand = async (input, context) => {
|
|
235
|
-
const headers =
|
|
236
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
237
|
-
};
|
|
197
|
+
const headers = SHARED_HEADERS;
|
|
238
198
|
let body;
|
|
239
199
|
body = buildFormUrlencodedString({
|
|
240
200
|
...se_ListOriginationNumbersRequest(input, context),
|
|
@@ -244,9 +204,7 @@ export const se_ListOriginationNumbersCommand = async (input, context) => {
|
|
|
244
204
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
245
205
|
};
|
|
246
206
|
export const se_ListPhoneNumbersOptedOutCommand = async (input, context) => {
|
|
247
|
-
const headers =
|
|
248
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
249
|
-
};
|
|
207
|
+
const headers = SHARED_HEADERS;
|
|
250
208
|
let body;
|
|
251
209
|
body = buildFormUrlencodedString({
|
|
252
210
|
...se_ListPhoneNumbersOptedOutInput(input, context),
|
|
@@ -256,9 +214,7 @@ export const se_ListPhoneNumbersOptedOutCommand = async (input, context) => {
|
|
|
256
214
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
215
|
};
|
|
258
216
|
export const se_ListPlatformApplicationsCommand = async (input, context) => {
|
|
259
|
-
const headers =
|
|
260
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
261
|
-
};
|
|
217
|
+
const headers = SHARED_HEADERS;
|
|
262
218
|
let body;
|
|
263
219
|
body = buildFormUrlencodedString({
|
|
264
220
|
...se_ListPlatformApplicationsInput(input, context),
|
|
@@ -268,9 +224,7 @@ export const se_ListPlatformApplicationsCommand = async (input, context) => {
|
|
|
268
224
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
269
225
|
};
|
|
270
226
|
export const se_ListSMSSandboxPhoneNumbersCommand = async (input, context) => {
|
|
271
|
-
const headers =
|
|
272
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
273
|
-
};
|
|
227
|
+
const headers = SHARED_HEADERS;
|
|
274
228
|
let body;
|
|
275
229
|
body = buildFormUrlencodedString({
|
|
276
230
|
...se_ListSMSSandboxPhoneNumbersInput(input, context),
|
|
@@ -280,9 +234,7 @@ export const se_ListSMSSandboxPhoneNumbersCommand = async (input, context) => {
|
|
|
280
234
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
281
235
|
};
|
|
282
236
|
export const se_ListSubscriptionsCommand = async (input, context) => {
|
|
283
|
-
const headers =
|
|
284
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
285
|
-
};
|
|
237
|
+
const headers = SHARED_HEADERS;
|
|
286
238
|
let body;
|
|
287
239
|
body = buildFormUrlencodedString({
|
|
288
240
|
...se_ListSubscriptionsInput(input, context),
|
|
@@ -292,9 +244,7 @@ export const se_ListSubscriptionsCommand = async (input, context) => {
|
|
|
292
244
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
293
245
|
};
|
|
294
246
|
export const se_ListSubscriptionsByTopicCommand = async (input, context) => {
|
|
295
|
-
const headers =
|
|
296
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
297
|
-
};
|
|
247
|
+
const headers = SHARED_HEADERS;
|
|
298
248
|
let body;
|
|
299
249
|
body = buildFormUrlencodedString({
|
|
300
250
|
...se_ListSubscriptionsByTopicInput(input, context),
|
|
@@ -304,9 +254,7 @@ export const se_ListSubscriptionsByTopicCommand = async (input, context) => {
|
|
|
304
254
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
305
255
|
};
|
|
306
256
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
307
|
-
const headers =
|
|
308
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
309
|
-
};
|
|
257
|
+
const headers = SHARED_HEADERS;
|
|
310
258
|
let body;
|
|
311
259
|
body = buildFormUrlencodedString({
|
|
312
260
|
...se_ListTagsForResourceRequest(input, context),
|
|
@@ -316,9 +264,7 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
316
264
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
317
265
|
};
|
|
318
266
|
export const se_ListTopicsCommand = async (input, context) => {
|
|
319
|
-
const headers =
|
|
320
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
321
|
-
};
|
|
267
|
+
const headers = SHARED_HEADERS;
|
|
322
268
|
let body;
|
|
323
269
|
body = buildFormUrlencodedString({
|
|
324
270
|
...se_ListTopicsInput(input, context),
|
|
@@ -328,9 +274,7 @@ export const se_ListTopicsCommand = async (input, context) => {
|
|
|
328
274
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
329
275
|
};
|
|
330
276
|
export const se_OptInPhoneNumberCommand = async (input, context) => {
|
|
331
|
-
const headers =
|
|
332
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
333
|
-
};
|
|
277
|
+
const headers = SHARED_HEADERS;
|
|
334
278
|
let body;
|
|
335
279
|
body = buildFormUrlencodedString({
|
|
336
280
|
...se_OptInPhoneNumberInput(input, context),
|
|
@@ -340,9 +284,7 @@ export const se_OptInPhoneNumberCommand = async (input, context) => {
|
|
|
340
284
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
341
285
|
};
|
|
342
286
|
export const se_PublishCommand = async (input, context) => {
|
|
343
|
-
const headers =
|
|
344
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
345
|
-
};
|
|
287
|
+
const headers = SHARED_HEADERS;
|
|
346
288
|
let body;
|
|
347
289
|
body = buildFormUrlencodedString({
|
|
348
290
|
...se_PublishInput(input, context),
|
|
@@ -352,9 +294,7 @@ export const se_PublishCommand = async (input, context) => {
|
|
|
352
294
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
353
295
|
};
|
|
354
296
|
export const se_PublishBatchCommand = async (input, context) => {
|
|
355
|
-
const headers =
|
|
356
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
357
|
-
};
|
|
297
|
+
const headers = SHARED_HEADERS;
|
|
358
298
|
let body;
|
|
359
299
|
body = buildFormUrlencodedString({
|
|
360
300
|
...se_PublishBatchInput(input, context),
|
|
@@ -364,9 +304,7 @@ export const se_PublishBatchCommand = async (input, context) => {
|
|
|
364
304
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
365
305
|
};
|
|
366
306
|
export const se_PutDataProtectionPolicyCommand = async (input, context) => {
|
|
367
|
-
const headers =
|
|
368
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
369
|
-
};
|
|
307
|
+
const headers = SHARED_HEADERS;
|
|
370
308
|
let body;
|
|
371
309
|
body = buildFormUrlencodedString({
|
|
372
310
|
...se_PutDataProtectionPolicyInput(input, context),
|
|
@@ -376,9 +314,7 @@ export const se_PutDataProtectionPolicyCommand = async (input, context) => {
|
|
|
376
314
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
377
315
|
};
|
|
378
316
|
export const se_RemovePermissionCommand = async (input, context) => {
|
|
379
|
-
const headers =
|
|
380
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
381
|
-
};
|
|
317
|
+
const headers = SHARED_HEADERS;
|
|
382
318
|
let body;
|
|
383
319
|
body = buildFormUrlencodedString({
|
|
384
320
|
...se_RemovePermissionInput(input, context),
|
|
@@ -388,9 +324,7 @@ export const se_RemovePermissionCommand = async (input, context) => {
|
|
|
388
324
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
389
325
|
};
|
|
390
326
|
export const se_SetEndpointAttributesCommand = async (input, context) => {
|
|
391
|
-
const headers =
|
|
392
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
393
|
-
};
|
|
327
|
+
const headers = SHARED_HEADERS;
|
|
394
328
|
let body;
|
|
395
329
|
body = buildFormUrlencodedString({
|
|
396
330
|
...se_SetEndpointAttributesInput(input, context),
|
|
@@ -400,9 +334,7 @@ export const se_SetEndpointAttributesCommand = async (input, context) => {
|
|
|
400
334
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
401
335
|
};
|
|
402
336
|
export const se_SetPlatformApplicationAttributesCommand = async (input, context) => {
|
|
403
|
-
const headers =
|
|
404
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
405
|
-
};
|
|
337
|
+
const headers = SHARED_HEADERS;
|
|
406
338
|
let body;
|
|
407
339
|
body = buildFormUrlencodedString({
|
|
408
340
|
...se_SetPlatformApplicationAttributesInput(input, context),
|
|
@@ -412,9 +344,7 @@ export const se_SetPlatformApplicationAttributesCommand = async (input, context)
|
|
|
412
344
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
413
345
|
};
|
|
414
346
|
export const se_SetSMSAttributesCommand = async (input, context) => {
|
|
415
|
-
const headers =
|
|
416
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
417
|
-
};
|
|
347
|
+
const headers = SHARED_HEADERS;
|
|
418
348
|
let body;
|
|
419
349
|
body = buildFormUrlencodedString({
|
|
420
350
|
...se_SetSMSAttributesInput(input, context),
|
|
@@ -424,9 +354,7 @@ export const se_SetSMSAttributesCommand = async (input, context) => {
|
|
|
424
354
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
425
355
|
};
|
|
426
356
|
export const se_SetSubscriptionAttributesCommand = async (input, context) => {
|
|
427
|
-
const headers =
|
|
428
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
429
|
-
};
|
|
357
|
+
const headers = SHARED_HEADERS;
|
|
430
358
|
let body;
|
|
431
359
|
body = buildFormUrlencodedString({
|
|
432
360
|
...se_SetSubscriptionAttributesInput(input, context),
|
|
@@ -436,9 +364,7 @@ export const se_SetSubscriptionAttributesCommand = async (input, context) => {
|
|
|
436
364
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
437
365
|
};
|
|
438
366
|
export const se_SetTopicAttributesCommand = async (input, context) => {
|
|
439
|
-
const headers =
|
|
440
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
441
|
-
};
|
|
367
|
+
const headers = SHARED_HEADERS;
|
|
442
368
|
let body;
|
|
443
369
|
body = buildFormUrlencodedString({
|
|
444
370
|
...se_SetTopicAttributesInput(input, context),
|
|
@@ -448,9 +374,7 @@ export const se_SetTopicAttributesCommand = async (input, context) => {
|
|
|
448
374
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
449
375
|
};
|
|
450
376
|
export const se_SubscribeCommand = async (input, context) => {
|
|
451
|
-
const headers =
|
|
452
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
453
|
-
};
|
|
377
|
+
const headers = SHARED_HEADERS;
|
|
454
378
|
let body;
|
|
455
379
|
body = buildFormUrlencodedString({
|
|
456
380
|
...se_SubscribeInput(input, context),
|
|
@@ -460,9 +384,7 @@ export const se_SubscribeCommand = async (input, context) => {
|
|
|
460
384
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
461
385
|
};
|
|
462
386
|
export const se_TagResourceCommand = async (input, context) => {
|
|
463
|
-
const headers =
|
|
464
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
465
|
-
};
|
|
387
|
+
const headers = SHARED_HEADERS;
|
|
466
388
|
let body;
|
|
467
389
|
body = buildFormUrlencodedString({
|
|
468
390
|
...se_TagResourceRequest(input, context),
|
|
@@ -472,9 +394,7 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
472
394
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
473
395
|
};
|
|
474
396
|
export const se_UnsubscribeCommand = async (input, context) => {
|
|
475
|
-
const headers =
|
|
476
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
477
|
-
};
|
|
397
|
+
const headers = SHARED_HEADERS;
|
|
478
398
|
let body;
|
|
479
399
|
body = buildFormUrlencodedString({
|
|
480
400
|
...se_UnsubscribeInput(input, context),
|
|
@@ -484,9 +404,7 @@ export const se_UnsubscribeCommand = async (input, context) => {
|
|
|
484
404
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
485
405
|
};
|
|
486
406
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
487
|
-
const headers =
|
|
488
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
489
|
-
};
|
|
407
|
+
const headers = SHARED_HEADERS;
|
|
490
408
|
let body;
|
|
491
409
|
body = buildFormUrlencodedString({
|
|
492
410
|
...se_UntagResourceRequest(input, context),
|
|
@@ -496,9 +414,7 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
496
414
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
497
415
|
};
|
|
498
416
|
export const se_VerifySMSSandboxPhoneNumberCommand = async (input, context) => {
|
|
499
|
-
const headers =
|
|
500
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
501
|
-
};
|
|
417
|
+
const headers = SHARED_HEADERS;
|
|
502
418
|
let body;
|
|
503
419
|
body = buildFormUrlencodedString({
|
|
504
420
|
...se_VerifySMSSandboxPhoneNumberInput(input, context),
|
|
@@ -4129,6 +4045,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
4129
4045
|
}
|
|
4130
4046
|
return new __HttpRequest(contents);
|
|
4131
4047
|
};
|
|
4048
|
+
const SHARED_HEADERS = {
|
|
4049
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
4050
|
+
};
|
|
4132
4051
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4133
4052
|
if (encoded.length) {
|
|
4134
4053
|
const parser = new XMLParser({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sns",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sns Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.312.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,43 +21,43 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
33
|
-
"@aws-sdk/middleware-logger": "3.
|
|
34
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-serde": "3.
|
|
37
|
-
"@aws-sdk/middleware-signing": "3.
|
|
38
|
-
"@aws-sdk/middleware-stack": "3.
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
42
|
-
"@aws-sdk/protocol-http": "3.
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
44
|
-
"@aws-sdk/types": "3.
|
|
45
|
-
"@aws-sdk/url-parser": "3.
|
|
46
|
-
"@aws-sdk/util-base64": "3.
|
|
47
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
48
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
52
|
-
"@aws-sdk/util-retry": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
55
|
-
"@aws-sdk/util-utf8": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.312.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.310.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.310.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.310.0",
|
|
31
|
+
"@aws-sdk/middleware-endpoint": "3.310.0",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "3.310.0",
|
|
33
|
+
"@aws-sdk/middleware-logger": "3.310.0",
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "3.310.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.310.0",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.310.0",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.310.0",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.310.0",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.310.0",
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
|
+
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
+
"@aws-sdk/smithy-client": "3.310.0",
|
|
44
|
+
"@aws-sdk/types": "3.310.0",
|
|
45
|
+
"@aws-sdk/url-parser": "3.310.0",
|
|
46
|
+
"@aws-sdk/util-base64": "3.310.0",
|
|
47
|
+
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
|
+
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.310.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.310.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
|
+
"@aws-sdk/util-retry": "3.310.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-browser": "3.310.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-node": "3.310.0",
|
|
55
|
+
"@aws-sdk/util-utf8": "3.310.0",
|
|
56
56
|
"fast-xml-parser": "4.1.2",
|
|
57
57
|
"tslib": "^2.5.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
60
|
+
"@aws-sdk/service-client-documentation-generator": "3.310.0",
|
|
61
61
|
"@tsconfig/node14": "1.0.3",
|
|
62
62
|
"@types/node": "^14.14.31",
|
|
63
63
|
"concurrently": "7.0.0",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
79
|
"files": [
|
|
80
|
-
"dist
|
|
80
|
+
"dist-*/**"
|
|
81
81
|
],
|
|
82
82
|
"author": {
|
|
83
83
|
"name": "AWS SDK for JavaScript Team",
|