@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
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset,
|
|
2
|
+
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
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),
|
|
@@ -515,7 +431,7 @@ export const de_AddPermissionCommand = async (output, context) => {
|
|
|
515
431
|
const response = {
|
|
516
432
|
$metadata: deserializeMetadata(output),
|
|
517
433
|
};
|
|
518
|
-
return
|
|
434
|
+
return response;
|
|
519
435
|
};
|
|
520
436
|
const de_AddPermissionCommandError = async (output, context) => {
|
|
521
437
|
const parsedOutput = {
|
|
@@ -538,10 +454,9 @@ const de_AddPermissionCommandError = async (output, context) => {
|
|
|
538
454
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
539
455
|
default:
|
|
540
456
|
const parsedBody = parsedOutput.body;
|
|
541
|
-
throwDefaultError({
|
|
457
|
+
return throwDefaultError({
|
|
542
458
|
output,
|
|
543
459
|
parsedBody: parsedBody.Error,
|
|
544
|
-
exceptionCtor: __BaseException,
|
|
545
460
|
errorCode,
|
|
546
461
|
});
|
|
547
462
|
}
|
|
@@ -557,7 +472,7 @@ export const de_CheckIfPhoneNumberIsOptedOutCommand = async (output, context) =>
|
|
|
557
472
|
$metadata: deserializeMetadata(output),
|
|
558
473
|
...contents,
|
|
559
474
|
};
|
|
560
|
-
return
|
|
475
|
+
return response;
|
|
561
476
|
};
|
|
562
477
|
const de_CheckIfPhoneNumberIsOptedOutCommandError = async (output, context) => {
|
|
563
478
|
const parsedOutput = {
|
|
@@ -580,10 +495,9 @@ const de_CheckIfPhoneNumberIsOptedOutCommandError = async (output, context) => {
|
|
|
580
495
|
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
581
496
|
default:
|
|
582
497
|
const parsedBody = parsedOutput.body;
|
|
583
|
-
throwDefaultError({
|
|
498
|
+
return throwDefaultError({
|
|
584
499
|
output,
|
|
585
500
|
parsedBody: parsedBody.Error,
|
|
586
|
-
exceptionCtor: __BaseException,
|
|
587
501
|
errorCode,
|
|
588
502
|
});
|
|
589
503
|
}
|
|
@@ -599,7 +513,7 @@ export const de_ConfirmSubscriptionCommand = async (output, context) => {
|
|
|
599
513
|
$metadata: deserializeMetadata(output),
|
|
600
514
|
...contents,
|
|
601
515
|
};
|
|
602
|
-
return
|
|
516
|
+
return response;
|
|
603
517
|
};
|
|
604
518
|
const de_ConfirmSubscriptionCommandError = async (output, context) => {
|
|
605
519
|
const parsedOutput = {
|
|
@@ -628,10 +542,9 @@ const de_ConfirmSubscriptionCommandError = async (output, context) => {
|
|
|
628
542
|
throw await de_SubscriptionLimitExceededExceptionRes(parsedOutput, context);
|
|
629
543
|
default:
|
|
630
544
|
const parsedBody = parsedOutput.body;
|
|
631
|
-
throwDefaultError({
|
|
545
|
+
return throwDefaultError({
|
|
632
546
|
output,
|
|
633
547
|
parsedBody: parsedBody.Error,
|
|
634
|
-
exceptionCtor: __BaseException,
|
|
635
548
|
errorCode,
|
|
636
549
|
});
|
|
637
550
|
}
|
|
@@ -647,7 +560,7 @@ export const de_CreatePlatformApplicationCommand = async (output, context) => {
|
|
|
647
560
|
$metadata: deserializeMetadata(output),
|
|
648
561
|
...contents,
|
|
649
562
|
};
|
|
650
|
-
return
|
|
563
|
+
return response;
|
|
651
564
|
};
|
|
652
565
|
const de_CreatePlatformApplicationCommandError = async (output, context) => {
|
|
653
566
|
const parsedOutput = {
|
|
@@ -667,10 +580,9 @@ const de_CreatePlatformApplicationCommandError = async (output, context) => {
|
|
|
667
580
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
668
581
|
default:
|
|
669
582
|
const parsedBody = parsedOutput.body;
|
|
670
|
-
throwDefaultError({
|
|
583
|
+
return throwDefaultError({
|
|
671
584
|
output,
|
|
672
585
|
parsedBody: parsedBody.Error,
|
|
673
|
-
exceptionCtor: __BaseException,
|
|
674
586
|
errorCode,
|
|
675
587
|
});
|
|
676
588
|
}
|
|
@@ -686,7 +598,7 @@ export const de_CreatePlatformEndpointCommand = async (output, context) => {
|
|
|
686
598
|
$metadata: deserializeMetadata(output),
|
|
687
599
|
...contents,
|
|
688
600
|
};
|
|
689
|
-
return
|
|
601
|
+
return response;
|
|
690
602
|
};
|
|
691
603
|
const de_CreatePlatformEndpointCommandError = async (output, context) => {
|
|
692
604
|
const parsedOutput = {
|
|
@@ -709,10 +621,9 @@ const de_CreatePlatformEndpointCommandError = async (output, context) => {
|
|
|
709
621
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
710
622
|
default:
|
|
711
623
|
const parsedBody = parsedOutput.body;
|
|
712
|
-
throwDefaultError({
|
|
624
|
+
return throwDefaultError({
|
|
713
625
|
output,
|
|
714
626
|
parsedBody: parsedBody.Error,
|
|
715
|
-
exceptionCtor: __BaseException,
|
|
716
627
|
errorCode,
|
|
717
628
|
});
|
|
718
629
|
}
|
|
@@ -728,7 +639,7 @@ export const de_CreateSMSSandboxPhoneNumberCommand = async (output, context) =>
|
|
|
728
639
|
$metadata: deserializeMetadata(output),
|
|
729
640
|
...contents,
|
|
730
641
|
};
|
|
731
|
-
return
|
|
642
|
+
return response;
|
|
732
643
|
};
|
|
733
644
|
const de_CreateSMSSandboxPhoneNumberCommandError = async (output, context) => {
|
|
734
645
|
const parsedOutput = {
|
|
@@ -757,10 +668,9 @@ const de_CreateSMSSandboxPhoneNumberCommandError = async (output, context) => {
|
|
|
757
668
|
throw await de_UserErrorExceptionRes(parsedOutput, context);
|
|
758
669
|
default:
|
|
759
670
|
const parsedBody = parsedOutput.body;
|
|
760
|
-
throwDefaultError({
|
|
671
|
+
return throwDefaultError({
|
|
761
672
|
output,
|
|
762
673
|
parsedBody: parsedBody.Error,
|
|
763
|
-
exceptionCtor: __BaseException,
|
|
764
674
|
errorCode,
|
|
765
675
|
});
|
|
766
676
|
}
|
|
@@ -776,7 +686,7 @@ export const de_CreateTopicCommand = async (output, context) => {
|
|
|
776
686
|
$metadata: deserializeMetadata(output),
|
|
777
687
|
...contents,
|
|
778
688
|
};
|
|
779
|
-
return
|
|
689
|
+
return response;
|
|
780
690
|
};
|
|
781
691
|
const de_CreateTopicCommandError = async (output, context) => {
|
|
782
692
|
const parsedOutput = {
|
|
@@ -814,10 +724,9 @@ const de_CreateTopicCommandError = async (output, context) => {
|
|
|
814
724
|
throw await de_TopicLimitExceededExceptionRes(parsedOutput, context);
|
|
815
725
|
default:
|
|
816
726
|
const parsedBody = parsedOutput.body;
|
|
817
|
-
throwDefaultError({
|
|
727
|
+
return throwDefaultError({
|
|
818
728
|
output,
|
|
819
729
|
parsedBody: parsedBody.Error,
|
|
820
|
-
exceptionCtor: __BaseException,
|
|
821
730
|
errorCode,
|
|
822
731
|
});
|
|
823
732
|
}
|
|
@@ -830,7 +739,7 @@ export const de_DeleteEndpointCommand = async (output, context) => {
|
|
|
830
739
|
const response = {
|
|
831
740
|
$metadata: deserializeMetadata(output),
|
|
832
741
|
};
|
|
833
|
-
return
|
|
742
|
+
return response;
|
|
834
743
|
};
|
|
835
744
|
const de_DeleteEndpointCommandError = async (output, context) => {
|
|
836
745
|
const parsedOutput = {
|
|
@@ -850,10 +759,9 @@ const de_DeleteEndpointCommandError = async (output, context) => {
|
|
|
850
759
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
851
760
|
default:
|
|
852
761
|
const parsedBody = parsedOutput.body;
|
|
853
|
-
throwDefaultError({
|
|
762
|
+
return throwDefaultError({
|
|
854
763
|
output,
|
|
855
764
|
parsedBody: parsedBody.Error,
|
|
856
|
-
exceptionCtor: __BaseException,
|
|
857
765
|
errorCode,
|
|
858
766
|
});
|
|
859
767
|
}
|
|
@@ -866,7 +774,7 @@ export const de_DeletePlatformApplicationCommand = async (output, context) => {
|
|
|
866
774
|
const response = {
|
|
867
775
|
$metadata: deserializeMetadata(output),
|
|
868
776
|
};
|
|
869
|
-
return
|
|
777
|
+
return response;
|
|
870
778
|
};
|
|
871
779
|
const de_DeletePlatformApplicationCommandError = async (output, context) => {
|
|
872
780
|
const parsedOutput = {
|
|
@@ -886,10 +794,9 @@ const de_DeletePlatformApplicationCommandError = async (output, context) => {
|
|
|
886
794
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
887
795
|
default:
|
|
888
796
|
const parsedBody = parsedOutput.body;
|
|
889
|
-
throwDefaultError({
|
|
797
|
+
return throwDefaultError({
|
|
890
798
|
output,
|
|
891
799
|
parsedBody: parsedBody.Error,
|
|
892
|
-
exceptionCtor: __BaseException,
|
|
893
800
|
errorCode,
|
|
894
801
|
});
|
|
895
802
|
}
|
|
@@ -905,7 +812,7 @@ export const de_DeleteSMSSandboxPhoneNumberCommand = async (output, context) =>
|
|
|
905
812
|
$metadata: deserializeMetadata(output),
|
|
906
813
|
...contents,
|
|
907
814
|
};
|
|
908
|
-
return
|
|
815
|
+
return response;
|
|
909
816
|
};
|
|
910
817
|
const de_DeleteSMSSandboxPhoneNumberCommandError = async (output, context) => {
|
|
911
818
|
const parsedOutput = {
|
|
@@ -934,10 +841,9 @@ const de_DeleteSMSSandboxPhoneNumberCommandError = async (output, context) => {
|
|
|
934
841
|
throw await de_UserErrorExceptionRes(parsedOutput, context);
|
|
935
842
|
default:
|
|
936
843
|
const parsedBody = parsedOutput.body;
|
|
937
|
-
throwDefaultError({
|
|
844
|
+
return throwDefaultError({
|
|
938
845
|
output,
|
|
939
846
|
parsedBody: parsedBody.Error,
|
|
940
|
-
exceptionCtor: __BaseException,
|
|
941
847
|
errorCode,
|
|
942
848
|
});
|
|
943
849
|
}
|
|
@@ -950,7 +856,7 @@ export const de_DeleteTopicCommand = async (output, context) => {
|
|
|
950
856
|
const response = {
|
|
951
857
|
$metadata: deserializeMetadata(output),
|
|
952
858
|
};
|
|
953
|
-
return
|
|
859
|
+
return response;
|
|
954
860
|
};
|
|
955
861
|
const de_DeleteTopicCommandError = async (output, context) => {
|
|
956
862
|
const parsedOutput = {
|
|
@@ -982,10 +888,9 @@ const de_DeleteTopicCommandError = async (output, context) => {
|
|
|
982
888
|
throw await de_TagPolicyExceptionRes(parsedOutput, context);
|
|
983
889
|
default:
|
|
984
890
|
const parsedBody = parsedOutput.body;
|
|
985
|
-
throwDefaultError({
|
|
891
|
+
return throwDefaultError({
|
|
986
892
|
output,
|
|
987
893
|
parsedBody: parsedBody.Error,
|
|
988
|
-
exceptionCtor: __BaseException,
|
|
989
894
|
errorCode,
|
|
990
895
|
});
|
|
991
896
|
}
|
|
@@ -1001,7 +906,7 @@ export const de_GetDataProtectionPolicyCommand = async (output, context) => {
|
|
|
1001
906
|
$metadata: deserializeMetadata(output),
|
|
1002
907
|
...contents,
|
|
1003
908
|
};
|
|
1004
|
-
return
|
|
909
|
+
return response;
|
|
1005
910
|
};
|
|
1006
911
|
const de_GetDataProtectionPolicyCommandError = async (output, context) => {
|
|
1007
912
|
const parsedOutput = {
|
|
@@ -1027,10 +932,9 @@ const de_GetDataProtectionPolicyCommandError = async (output, context) => {
|
|
|
1027
932
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1028
933
|
default:
|
|
1029
934
|
const parsedBody = parsedOutput.body;
|
|
1030
|
-
throwDefaultError({
|
|
935
|
+
return throwDefaultError({
|
|
1031
936
|
output,
|
|
1032
937
|
parsedBody: parsedBody.Error,
|
|
1033
|
-
exceptionCtor: __BaseException,
|
|
1034
938
|
errorCode,
|
|
1035
939
|
});
|
|
1036
940
|
}
|
|
@@ -1046,7 +950,7 @@ export const de_GetEndpointAttributesCommand = async (output, context) => {
|
|
|
1046
950
|
$metadata: deserializeMetadata(output),
|
|
1047
951
|
...contents,
|
|
1048
952
|
};
|
|
1049
|
-
return
|
|
953
|
+
return response;
|
|
1050
954
|
};
|
|
1051
955
|
const de_GetEndpointAttributesCommandError = async (output, context) => {
|
|
1052
956
|
const parsedOutput = {
|
|
@@ -1069,10 +973,9 @@ const de_GetEndpointAttributesCommandError = async (output, context) => {
|
|
|
1069
973
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1070
974
|
default:
|
|
1071
975
|
const parsedBody = parsedOutput.body;
|
|
1072
|
-
throwDefaultError({
|
|
976
|
+
return throwDefaultError({
|
|
1073
977
|
output,
|
|
1074
978
|
parsedBody: parsedBody.Error,
|
|
1075
|
-
exceptionCtor: __BaseException,
|
|
1076
979
|
errorCode,
|
|
1077
980
|
});
|
|
1078
981
|
}
|
|
@@ -1088,7 +991,7 @@ export const de_GetPlatformApplicationAttributesCommand = async (output, context
|
|
|
1088
991
|
$metadata: deserializeMetadata(output),
|
|
1089
992
|
...contents,
|
|
1090
993
|
};
|
|
1091
|
-
return
|
|
994
|
+
return response;
|
|
1092
995
|
};
|
|
1093
996
|
const de_GetPlatformApplicationAttributesCommandError = async (output, context) => {
|
|
1094
997
|
const parsedOutput = {
|
|
@@ -1111,10 +1014,9 @@ const de_GetPlatformApplicationAttributesCommandError = async (output, context)
|
|
|
1111
1014
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1112
1015
|
default:
|
|
1113
1016
|
const parsedBody = parsedOutput.body;
|
|
1114
|
-
throwDefaultError({
|
|
1017
|
+
return throwDefaultError({
|
|
1115
1018
|
output,
|
|
1116
1019
|
parsedBody: parsedBody.Error,
|
|
1117
|
-
exceptionCtor: __BaseException,
|
|
1118
1020
|
errorCode,
|
|
1119
1021
|
});
|
|
1120
1022
|
}
|
|
@@ -1130,7 +1032,7 @@ export const de_GetSMSAttributesCommand = async (output, context) => {
|
|
|
1130
1032
|
$metadata: deserializeMetadata(output),
|
|
1131
1033
|
...contents,
|
|
1132
1034
|
};
|
|
1133
|
-
return
|
|
1035
|
+
return response;
|
|
1134
1036
|
};
|
|
1135
1037
|
const de_GetSMSAttributesCommandError = async (output, context) => {
|
|
1136
1038
|
const parsedOutput = {
|
|
@@ -1153,10 +1055,9 @@ const de_GetSMSAttributesCommandError = async (output, context) => {
|
|
|
1153
1055
|
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1154
1056
|
default:
|
|
1155
1057
|
const parsedBody = parsedOutput.body;
|
|
1156
|
-
throwDefaultError({
|
|
1058
|
+
return throwDefaultError({
|
|
1157
1059
|
output,
|
|
1158
1060
|
parsedBody: parsedBody.Error,
|
|
1159
|
-
exceptionCtor: __BaseException,
|
|
1160
1061
|
errorCode,
|
|
1161
1062
|
});
|
|
1162
1063
|
}
|
|
@@ -1172,7 +1073,7 @@ export const de_GetSMSSandboxAccountStatusCommand = async (output, context) => {
|
|
|
1172
1073
|
$metadata: deserializeMetadata(output),
|
|
1173
1074
|
...contents,
|
|
1174
1075
|
};
|
|
1175
|
-
return
|
|
1076
|
+
return response;
|
|
1176
1077
|
};
|
|
1177
1078
|
const de_GetSMSSandboxAccountStatusCommandError = async (output, context) => {
|
|
1178
1079
|
const parsedOutput = {
|
|
@@ -1192,10 +1093,9 @@ const de_GetSMSSandboxAccountStatusCommandError = async (output, context) => {
|
|
|
1192
1093
|
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1193
1094
|
default:
|
|
1194
1095
|
const parsedBody = parsedOutput.body;
|
|
1195
|
-
throwDefaultError({
|
|
1096
|
+
return throwDefaultError({
|
|
1196
1097
|
output,
|
|
1197
1098
|
parsedBody: parsedBody.Error,
|
|
1198
|
-
exceptionCtor: __BaseException,
|
|
1199
1099
|
errorCode,
|
|
1200
1100
|
});
|
|
1201
1101
|
}
|
|
@@ -1211,7 +1111,7 @@ export const de_GetSubscriptionAttributesCommand = async (output, context) => {
|
|
|
1211
1111
|
$metadata: deserializeMetadata(output),
|
|
1212
1112
|
...contents,
|
|
1213
1113
|
};
|
|
1214
|
-
return
|
|
1114
|
+
return response;
|
|
1215
1115
|
};
|
|
1216
1116
|
const de_GetSubscriptionAttributesCommandError = async (output, context) => {
|
|
1217
1117
|
const parsedOutput = {
|
|
@@ -1234,10 +1134,9 @@ const de_GetSubscriptionAttributesCommandError = async (output, context) => {
|
|
|
1234
1134
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1235
1135
|
default:
|
|
1236
1136
|
const parsedBody = parsedOutput.body;
|
|
1237
|
-
throwDefaultError({
|
|
1137
|
+
return throwDefaultError({
|
|
1238
1138
|
output,
|
|
1239
1139
|
parsedBody: parsedBody.Error,
|
|
1240
|
-
exceptionCtor: __BaseException,
|
|
1241
1140
|
errorCode,
|
|
1242
1141
|
});
|
|
1243
1142
|
}
|
|
@@ -1253,7 +1152,7 @@ export const de_GetTopicAttributesCommand = async (output, context) => {
|
|
|
1253
1152
|
$metadata: deserializeMetadata(output),
|
|
1254
1153
|
...contents,
|
|
1255
1154
|
};
|
|
1256
|
-
return
|
|
1155
|
+
return response;
|
|
1257
1156
|
};
|
|
1258
1157
|
const de_GetTopicAttributesCommandError = async (output, context) => {
|
|
1259
1158
|
const parsedOutput = {
|
|
@@ -1279,10 +1178,9 @@ const de_GetTopicAttributesCommandError = async (output, context) => {
|
|
|
1279
1178
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1280
1179
|
default:
|
|
1281
1180
|
const parsedBody = parsedOutput.body;
|
|
1282
|
-
throwDefaultError({
|
|
1181
|
+
return throwDefaultError({
|
|
1283
1182
|
output,
|
|
1284
1183
|
parsedBody: parsedBody.Error,
|
|
1285
|
-
exceptionCtor: __BaseException,
|
|
1286
1184
|
errorCode,
|
|
1287
1185
|
});
|
|
1288
1186
|
}
|
|
@@ -1298,7 +1196,7 @@ export const de_ListEndpointsByPlatformApplicationCommand = async (output, conte
|
|
|
1298
1196
|
$metadata: deserializeMetadata(output),
|
|
1299
1197
|
...contents,
|
|
1300
1198
|
};
|
|
1301
|
-
return
|
|
1199
|
+
return response;
|
|
1302
1200
|
};
|
|
1303
1201
|
const de_ListEndpointsByPlatformApplicationCommandError = async (output, context) => {
|
|
1304
1202
|
const parsedOutput = {
|
|
@@ -1321,10 +1219,9 @@ const de_ListEndpointsByPlatformApplicationCommandError = async (output, context
|
|
|
1321
1219
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1322
1220
|
default:
|
|
1323
1221
|
const parsedBody = parsedOutput.body;
|
|
1324
|
-
throwDefaultError({
|
|
1222
|
+
return throwDefaultError({
|
|
1325
1223
|
output,
|
|
1326
1224
|
parsedBody: parsedBody.Error,
|
|
1327
|
-
exceptionCtor: __BaseException,
|
|
1328
1225
|
errorCode,
|
|
1329
1226
|
});
|
|
1330
1227
|
}
|
|
@@ -1340,7 +1237,7 @@ export const de_ListOriginationNumbersCommand = async (output, context) => {
|
|
|
1340
1237
|
$metadata: deserializeMetadata(output),
|
|
1341
1238
|
...contents,
|
|
1342
1239
|
};
|
|
1343
|
-
return
|
|
1240
|
+
return response;
|
|
1344
1241
|
};
|
|
1345
1242
|
const de_ListOriginationNumbersCommandError = async (output, context) => {
|
|
1346
1243
|
const parsedOutput = {
|
|
@@ -1366,10 +1263,9 @@ const de_ListOriginationNumbersCommandError = async (output, context) => {
|
|
|
1366
1263
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1367
1264
|
default:
|
|
1368
1265
|
const parsedBody = parsedOutput.body;
|
|
1369
|
-
throwDefaultError({
|
|
1266
|
+
return throwDefaultError({
|
|
1370
1267
|
output,
|
|
1371
1268
|
parsedBody: parsedBody.Error,
|
|
1372
|
-
exceptionCtor: __BaseException,
|
|
1373
1269
|
errorCode,
|
|
1374
1270
|
});
|
|
1375
1271
|
}
|
|
@@ -1385,7 +1281,7 @@ export const de_ListPhoneNumbersOptedOutCommand = async (output, context) => {
|
|
|
1385
1281
|
$metadata: deserializeMetadata(output),
|
|
1386
1282
|
...contents,
|
|
1387
1283
|
};
|
|
1388
|
-
return
|
|
1284
|
+
return response;
|
|
1389
1285
|
};
|
|
1390
1286
|
const de_ListPhoneNumbersOptedOutCommandError = async (output, context) => {
|
|
1391
1287
|
const parsedOutput = {
|
|
@@ -1408,10 +1304,9 @@ const de_ListPhoneNumbersOptedOutCommandError = async (output, context) => {
|
|
|
1408
1304
|
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1409
1305
|
default:
|
|
1410
1306
|
const parsedBody = parsedOutput.body;
|
|
1411
|
-
throwDefaultError({
|
|
1307
|
+
return throwDefaultError({
|
|
1412
1308
|
output,
|
|
1413
1309
|
parsedBody: parsedBody.Error,
|
|
1414
|
-
exceptionCtor: __BaseException,
|
|
1415
1310
|
errorCode,
|
|
1416
1311
|
});
|
|
1417
1312
|
}
|
|
@@ -1427,7 +1322,7 @@ export const de_ListPlatformApplicationsCommand = async (output, context) => {
|
|
|
1427
1322
|
$metadata: deserializeMetadata(output),
|
|
1428
1323
|
...contents,
|
|
1429
1324
|
};
|
|
1430
|
-
return
|
|
1325
|
+
return response;
|
|
1431
1326
|
};
|
|
1432
1327
|
const de_ListPlatformApplicationsCommandError = async (output, context) => {
|
|
1433
1328
|
const parsedOutput = {
|
|
@@ -1447,10 +1342,9 @@ const de_ListPlatformApplicationsCommandError = async (output, context) => {
|
|
|
1447
1342
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1448
1343
|
default:
|
|
1449
1344
|
const parsedBody = parsedOutput.body;
|
|
1450
|
-
throwDefaultError({
|
|
1345
|
+
return throwDefaultError({
|
|
1451
1346
|
output,
|
|
1452
1347
|
parsedBody: parsedBody.Error,
|
|
1453
|
-
exceptionCtor: __BaseException,
|
|
1454
1348
|
errorCode,
|
|
1455
1349
|
});
|
|
1456
1350
|
}
|
|
@@ -1466,7 +1360,7 @@ export const de_ListSMSSandboxPhoneNumbersCommand = async (output, context) => {
|
|
|
1466
1360
|
$metadata: deserializeMetadata(output),
|
|
1467
1361
|
...contents,
|
|
1468
1362
|
};
|
|
1469
|
-
return
|
|
1363
|
+
return response;
|
|
1470
1364
|
};
|
|
1471
1365
|
const de_ListSMSSandboxPhoneNumbersCommandError = async (output, context) => {
|
|
1472
1366
|
const parsedOutput = {
|
|
@@ -1492,10 +1386,9 @@ const de_ListSMSSandboxPhoneNumbersCommandError = async (output, context) => {
|
|
|
1492
1386
|
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1493
1387
|
default:
|
|
1494
1388
|
const parsedBody = parsedOutput.body;
|
|
1495
|
-
throwDefaultError({
|
|
1389
|
+
return throwDefaultError({
|
|
1496
1390
|
output,
|
|
1497
1391
|
parsedBody: parsedBody.Error,
|
|
1498
|
-
exceptionCtor: __BaseException,
|
|
1499
1392
|
errorCode,
|
|
1500
1393
|
});
|
|
1501
1394
|
}
|
|
@@ -1511,7 +1404,7 @@ export const de_ListSubscriptionsCommand = async (output, context) => {
|
|
|
1511
1404
|
$metadata: deserializeMetadata(output),
|
|
1512
1405
|
...contents,
|
|
1513
1406
|
};
|
|
1514
|
-
return
|
|
1407
|
+
return response;
|
|
1515
1408
|
};
|
|
1516
1409
|
const de_ListSubscriptionsCommandError = async (output, context) => {
|
|
1517
1410
|
const parsedOutput = {
|
|
@@ -1531,10 +1424,9 @@ const de_ListSubscriptionsCommandError = async (output, context) => {
|
|
|
1531
1424
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1532
1425
|
default:
|
|
1533
1426
|
const parsedBody = parsedOutput.body;
|
|
1534
|
-
throwDefaultError({
|
|
1427
|
+
return throwDefaultError({
|
|
1535
1428
|
output,
|
|
1536
1429
|
parsedBody: parsedBody.Error,
|
|
1537
|
-
exceptionCtor: __BaseException,
|
|
1538
1430
|
errorCode,
|
|
1539
1431
|
});
|
|
1540
1432
|
}
|
|
@@ -1550,7 +1442,7 @@ export const de_ListSubscriptionsByTopicCommand = async (output, context) => {
|
|
|
1550
1442
|
$metadata: deserializeMetadata(output),
|
|
1551
1443
|
...contents,
|
|
1552
1444
|
};
|
|
1553
|
-
return
|
|
1445
|
+
return response;
|
|
1554
1446
|
};
|
|
1555
1447
|
const de_ListSubscriptionsByTopicCommandError = async (output, context) => {
|
|
1556
1448
|
const parsedOutput = {
|
|
@@ -1573,10 +1465,9 @@ const de_ListSubscriptionsByTopicCommandError = async (output, context) => {
|
|
|
1573
1465
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1574
1466
|
default:
|
|
1575
1467
|
const parsedBody = parsedOutput.body;
|
|
1576
|
-
throwDefaultError({
|
|
1468
|
+
return throwDefaultError({
|
|
1577
1469
|
output,
|
|
1578
1470
|
parsedBody: parsedBody.Error,
|
|
1579
|
-
exceptionCtor: __BaseException,
|
|
1580
1471
|
errorCode,
|
|
1581
1472
|
});
|
|
1582
1473
|
}
|
|
@@ -1592,7 +1483,7 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1592
1483
|
$metadata: deserializeMetadata(output),
|
|
1593
1484
|
...contents,
|
|
1594
1485
|
};
|
|
1595
|
-
return
|
|
1486
|
+
return response;
|
|
1596
1487
|
};
|
|
1597
1488
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1598
1489
|
const parsedOutput = {
|
|
@@ -1618,10 +1509,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1618
1509
|
throw await de_TagPolicyExceptionRes(parsedOutput, context);
|
|
1619
1510
|
default:
|
|
1620
1511
|
const parsedBody = parsedOutput.body;
|
|
1621
|
-
throwDefaultError({
|
|
1512
|
+
return throwDefaultError({
|
|
1622
1513
|
output,
|
|
1623
1514
|
parsedBody: parsedBody.Error,
|
|
1624
|
-
exceptionCtor: __BaseException,
|
|
1625
1515
|
errorCode,
|
|
1626
1516
|
});
|
|
1627
1517
|
}
|
|
@@ -1637,7 +1527,7 @@ export const de_ListTopicsCommand = async (output, context) => {
|
|
|
1637
1527
|
$metadata: deserializeMetadata(output),
|
|
1638
1528
|
...contents,
|
|
1639
1529
|
};
|
|
1640
|
-
return
|
|
1530
|
+
return response;
|
|
1641
1531
|
};
|
|
1642
1532
|
const de_ListTopicsCommandError = async (output, context) => {
|
|
1643
1533
|
const parsedOutput = {
|
|
@@ -1657,10 +1547,9 @@ const de_ListTopicsCommandError = async (output, context) => {
|
|
|
1657
1547
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1658
1548
|
default:
|
|
1659
1549
|
const parsedBody = parsedOutput.body;
|
|
1660
|
-
throwDefaultError({
|
|
1550
|
+
return throwDefaultError({
|
|
1661
1551
|
output,
|
|
1662
1552
|
parsedBody: parsedBody.Error,
|
|
1663
|
-
exceptionCtor: __BaseException,
|
|
1664
1553
|
errorCode,
|
|
1665
1554
|
});
|
|
1666
1555
|
}
|
|
@@ -1676,7 +1565,7 @@ export const de_OptInPhoneNumberCommand = async (output, context) => {
|
|
|
1676
1565
|
$metadata: deserializeMetadata(output),
|
|
1677
1566
|
...contents,
|
|
1678
1567
|
};
|
|
1679
|
-
return
|
|
1568
|
+
return response;
|
|
1680
1569
|
};
|
|
1681
1570
|
const de_OptInPhoneNumberCommandError = async (output, context) => {
|
|
1682
1571
|
const parsedOutput = {
|
|
@@ -1699,10 +1588,9 @@ const de_OptInPhoneNumberCommandError = async (output, context) => {
|
|
|
1699
1588
|
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1700
1589
|
default:
|
|
1701
1590
|
const parsedBody = parsedOutput.body;
|
|
1702
|
-
throwDefaultError({
|
|
1591
|
+
return throwDefaultError({
|
|
1703
1592
|
output,
|
|
1704
1593
|
parsedBody: parsedBody.Error,
|
|
1705
|
-
exceptionCtor: __BaseException,
|
|
1706
1594
|
errorCode,
|
|
1707
1595
|
});
|
|
1708
1596
|
}
|
|
@@ -1718,7 +1606,7 @@ export const de_PublishCommand = async (output, context) => {
|
|
|
1718
1606
|
$metadata: deserializeMetadata(output),
|
|
1719
1607
|
...contents,
|
|
1720
1608
|
};
|
|
1721
|
-
return
|
|
1609
|
+
return response;
|
|
1722
1610
|
};
|
|
1723
1611
|
const de_PublishCommandError = async (output, context) => {
|
|
1724
1612
|
const parsedOutput = {
|
|
@@ -1774,10 +1662,9 @@ const de_PublishCommandError = async (output, context) => {
|
|
|
1774
1662
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1775
1663
|
default:
|
|
1776
1664
|
const parsedBody = parsedOutput.body;
|
|
1777
|
-
throwDefaultError({
|
|
1665
|
+
return throwDefaultError({
|
|
1778
1666
|
output,
|
|
1779
1667
|
parsedBody: parsedBody.Error,
|
|
1780
|
-
exceptionCtor: __BaseException,
|
|
1781
1668
|
errorCode,
|
|
1782
1669
|
});
|
|
1783
1670
|
}
|
|
@@ -1793,7 +1680,7 @@ export const de_PublishBatchCommand = async (output, context) => {
|
|
|
1793
1680
|
$metadata: deserializeMetadata(output),
|
|
1794
1681
|
...contents,
|
|
1795
1682
|
};
|
|
1796
|
-
return
|
|
1683
|
+
return response;
|
|
1797
1684
|
};
|
|
1798
1685
|
const de_PublishBatchCommandError = async (output, context) => {
|
|
1799
1686
|
const parsedOutput = {
|
|
@@ -1864,10 +1751,9 @@ const de_PublishBatchCommandError = async (output, context) => {
|
|
|
1864
1751
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1865
1752
|
default:
|
|
1866
1753
|
const parsedBody = parsedOutput.body;
|
|
1867
|
-
throwDefaultError({
|
|
1754
|
+
return throwDefaultError({
|
|
1868
1755
|
output,
|
|
1869
1756
|
parsedBody: parsedBody.Error,
|
|
1870
|
-
exceptionCtor: __BaseException,
|
|
1871
1757
|
errorCode,
|
|
1872
1758
|
});
|
|
1873
1759
|
}
|
|
@@ -1880,7 +1766,7 @@ export const de_PutDataProtectionPolicyCommand = async (output, context) => {
|
|
|
1880
1766
|
const response = {
|
|
1881
1767
|
$metadata: deserializeMetadata(output),
|
|
1882
1768
|
};
|
|
1883
|
-
return
|
|
1769
|
+
return response;
|
|
1884
1770
|
};
|
|
1885
1771
|
const de_PutDataProtectionPolicyCommandError = async (output, context) => {
|
|
1886
1772
|
const parsedOutput = {
|
|
@@ -1906,10 +1792,9 @@ const de_PutDataProtectionPolicyCommandError = async (output, context) => {
|
|
|
1906
1792
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1907
1793
|
default:
|
|
1908
1794
|
const parsedBody = parsedOutput.body;
|
|
1909
|
-
throwDefaultError({
|
|
1795
|
+
return throwDefaultError({
|
|
1910
1796
|
output,
|
|
1911
1797
|
parsedBody: parsedBody.Error,
|
|
1912
|
-
exceptionCtor: __BaseException,
|
|
1913
1798
|
errorCode,
|
|
1914
1799
|
});
|
|
1915
1800
|
}
|
|
@@ -1922,7 +1807,7 @@ export const de_RemovePermissionCommand = async (output, context) => {
|
|
|
1922
1807
|
const response = {
|
|
1923
1808
|
$metadata: deserializeMetadata(output),
|
|
1924
1809
|
};
|
|
1925
|
-
return
|
|
1810
|
+
return response;
|
|
1926
1811
|
};
|
|
1927
1812
|
const de_RemovePermissionCommandError = async (output, context) => {
|
|
1928
1813
|
const parsedOutput = {
|
|
@@ -1945,10 +1830,9 @@ const de_RemovePermissionCommandError = async (output, context) => {
|
|
|
1945
1830
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1946
1831
|
default:
|
|
1947
1832
|
const parsedBody = parsedOutput.body;
|
|
1948
|
-
throwDefaultError({
|
|
1833
|
+
return throwDefaultError({
|
|
1949
1834
|
output,
|
|
1950
1835
|
parsedBody: parsedBody.Error,
|
|
1951
|
-
exceptionCtor: __BaseException,
|
|
1952
1836
|
errorCode,
|
|
1953
1837
|
});
|
|
1954
1838
|
}
|
|
@@ -1961,7 +1845,7 @@ export const de_SetEndpointAttributesCommand = async (output, context) => {
|
|
|
1961
1845
|
const response = {
|
|
1962
1846
|
$metadata: deserializeMetadata(output),
|
|
1963
1847
|
};
|
|
1964
|
-
return
|
|
1848
|
+
return response;
|
|
1965
1849
|
};
|
|
1966
1850
|
const de_SetEndpointAttributesCommandError = async (output, context) => {
|
|
1967
1851
|
const parsedOutput = {
|
|
@@ -1984,10 +1868,9 @@ const de_SetEndpointAttributesCommandError = async (output, context) => {
|
|
|
1984
1868
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1985
1869
|
default:
|
|
1986
1870
|
const parsedBody = parsedOutput.body;
|
|
1987
|
-
throwDefaultError({
|
|
1871
|
+
return throwDefaultError({
|
|
1988
1872
|
output,
|
|
1989
1873
|
parsedBody: parsedBody.Error,
|
|
1990
|
-
exceptionCtor: __BaseException,
|
|
1991
1874
|
errorCode,
|
|
1992
1875
|
});
|
|
1993
1876
|
}
|
|
@@ -2000,7 +1883,7 @@ export const de_SetPlatformApplicationAttributesCommand = async (output, context
|
|
|
2000
1883
|
const response = {
|
|
2001
1884
|
$metadata: deserializeMetadata(output),
|
|
2002
1885
|
};
|
|
2003
|
-
return
|
|
1886
|
+
return response;
|
|
2004
1887
|
};
|
|
2005
1888
|
const de_SetPlatformApplicationAttributesCommandError = async (output, context) => {
|
|
2006
1889
|
const parsedOutput = {
|
|
@@ -2023,10 +1906,9 @@ const de_SetPlatformApplicationAttributesCommandError = async (output, context)
|
|
|
2023
1906
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2024
1907
|
default:
|
|
2025
1908
|
const parsedBody = parsedOutput.body;
|
|
2026
|
-
throwDefaultError({
|
|
1909
|
+
return throwDefaultError({
|
|
2027
1910
|
output,
|
|
2028
1911
|
parsedBody: parsedBody.Error,
|
|
2029
|
-
exceptionCtor: __BaseException,
|
|
2030
1912
|
errorCode,
|
|
2031
1913
|
});
|
|
2032
1914
|
}
|
|
@@ -2042,7 +1924,7 @@ export const de_SetSMSAttributesCommand = async (output, context) => {
|
|
|
2042
1924
|
$metadata: deserializeMetadata(output),
|
|
2043
1925
|
...contents,
|
|
2044
1926
|
};
|
|
2045
|
-
return
|
|
1927
|
+
return response;
|
|
2046
1928
|
};
|
|
2047
1929
|
const de_SetSMSAttributesCommandError = async (output, context) => {
|
|
2048
1930
|
const parsedOutput = {
|
|
@@ -2065,10 +1947,9 @@ const de_SetSMSAttributesCommandError = async (output, context) => {
|
|
|
2065
1947
|
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
2066
1948
|
default:
|
|
2067
1949
|
const parsedBody = parsedOutput.body;
|
|
2068
|
-
throwDefaultError({
|
|
1950
|
+
return throwDefaultError({
|
|
2069
1951
|
output,
|
|
2070
1952
|
parsedBody: parsedBody.Error,
|
|
2071
|
-
exceptionCtor: __BaseException,
|
|
2072
1953
|
errorCode,
|
|
2073
1954
|
});
|
|
2074
1955
|
}
|
|
@@ -2081,7 +1962,7 @@ export const de_SetSubscriptionAttributesCommand = async (output, context) => {
|
|
|
2081
1962
|
const response = {
|
|
2082
1963
|
$metadata: deserializeMetadata(output),
|
|
2083
1964
|
};
|
|
2084
|
-
return
|
|
1965
|
+
return response;
|
|
2085
1966
|
};
|
|
2086
1967
|
const de_SetSubscriptionAttributesCommandError = async (output, context) => {
|
|
2087
1968
|
const parsedOutput = {
|
|
@@ -2107,10 +1988,9 @@ const de_SetSubscriptionAttributesCommandError = async (output, context) => {
|
|
|
2107
1988
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2108
1989
|
default:
|
|
2109
1990
|
const parsedBody = parsedOutput.body;
|
|
2110
|
-
throwDefaultError({
|
|
1991
|
+
return throwDefaultError({
|
|
2111
1992
|
output,
|
|
2112
1993
|
parsedBody: parsedBody.Error,
|
|
2113
|
-
exceptionCtor: __BaseException,
|
|
2114
1994
|
errorCode,
|
|
2115
1995
|
});
|
|
2116
1996
|
}
|
|
@@ -2123,7 +2003,7 @@ export const de_SetTopicAttributesCommand = async (output, context) => {
|
|
|
2123
2003
|
const response = {
|
|
2124
2004
|
$metadata: deserializeMetadata(output),
|
|
2125
2005
|
};
|
|
2126
|
-
return
|
|
2006
|
+
return response;
|
|
2127
2007
|
};
|
|
2128
2008
|
const de_SetTopicAttributesCommandError = async (output, context) => {
|
|
2129
2009
|
const parsedOutput = {
|
|
@@ -2149,10 +2029,9 @@ const de_SetTopicAttributesCommandError = async (output, context) => {
|
|
|
2149
2029
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2150
2030
|
default:
|
|
2151
2031
|
const parsedBody = parsedOutput.body;
|
|
2152
|
-
throwDefaultError({
|
|
2032
|
+
return throwDefaultError({
|
|
2153
2033
|
output,
|
|
2154
2034
|
parsedBody: parsedBody.Error,
|
|
2155
|
-
exceptionCtor: __BaseException,
|
|
2156
2035
|
errorCode,
|
|
2157
2036
|
});
|
|
2158
2037
|
}
|
|
@@ -2168,7 +2047,7 @@ export const de_SubscribeCommand = async (output, context) => {
|
|
|
2168
2047
|
$metadata: deserializeMetadata(output),
|
|
2169
2048
|
...contents,
|
|
2170
2049
|
};
|
|
2171
|
-
return
|
|
2050
|
+
return response;
|
|
2172
2051
|
};
|
|
2173
2052
|
const de_SubscribeCommandError = async (output, context) => {
|
|
2174
2053
|
const parsedOutput = {
|
|
@@ -2200,10 +2079,9 @@ const de_SubscribeCommandError = async (output, context) => {
|
|
|
2200
2079
|
throw await de_SubscriptionLimitExceededExceptionRes(parsedOutput, context);
|
|
2201
2080
|
default:
|
|
2202
2081
|
const parsedBody = parsedOutput.body;
|
|
2203
|
-
throwDefaultError({
|
|
2082
|
+
return throwDefaultError({
|
|
2204
2083
|
output,
|
|
2205
2084
|
parsedBody: parsedBody.Error,
|
|
2206
|
-
exceptionCtor: __BaseException,
|
|
2207
2085
|
errorCode,
|
|
2208
2086
|
});
|
|
2209
2087
|
}
|
|
@@ -2219,7 +2097,7 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
2219
2097
|
$metadata: deserializeMetadata(output),
|
|
2220
2098
|
...contents,
|
|
2221
2099
|
};
|
|
2222
|
-
return
|
|
2100
|
+
return response;
|
|
2223
2101
|
};
|
|
2224
2102
|
const de_TagResourceCommandError = async (output, context) => {
|
|
2225
2103
|
const parsedOutput = {
|
|
@@ -2251,10 +2129,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
2251
2129
|
throw await de_TagPolicyExceptionRes(parsedOutput, context);
|
|
2252
2130
|
default:
|
|
2253
2131
|
const parsedBody = parsedOutput.body;
|
|
2254
|
-
throwDefaultError({
|
|
2132
|
+
return throwDefaultError({
|
|
2255
2133
|
output,
|
|
2256
2134
|
parsedBody: parsedBody.Error,
|
|
2257
|
-
exceptionCtor: __BaseException,
|
|
2258
2135
|
errorCode,
|
|
2259
2136
|
});
|
|
2260
2137
|
}
|
|
@@ -2267,7 +2144,7 @@ export const de_UnsubscribeCommand = async (output, context) => {
|
|
|
2267
2144
|
const response = {
|
|
2268
2145
|
$metadata: deserializeMetadata(output),
|
|
2269
2146
|
};
|
|
2270
|
-
return
|
|
2147
|
+
return response;
|
|
2271
2148
|
};
|
|
2272
2149
|
const de_UnsubscribeCommandError = async (output, context) => {
|
|
2273
2150
|
const parsedOutput = {
|
|
@@ -2293,10 +2170,9 @@ const de_UnsubscribeCommandError = async (output, context) => {
|
|
|
2293
2170
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2294
2171
|
default:
|
|
2295
2172
|
const parsedBody = parsedOutput.body;
|
|
2296
|
-
throwDefaultError({
|
|
2173
|
+
return throwDefaultError({
|
|
2297
2174
|
output,
|
|
2298
2175
|
parsedBody: parsedBody.Error,
|
|
2299
|
-
exceptionCtor: __BaseException,
|
|
2300
2176
|
errorCode,
|
|
2301
2177
|
});
|
|
2302
2178
|
}
|
|
@@ -2312,7 +2188,7 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
2312
2188
|
$metadata: deserializeMetadata(output),
|
|
2313
2189
|
...contents,
|
|
2314
2190
|
};
|
|
2315
|
-
return
|
|
2191
|
+
return response;
|
|
2316
2192
|
};
|
|
2317
2193
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
2318
2194
|
const parsedOutput = {
|
|
@@ -2344,10 +2220,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
2344
2220
|
throw await de_TagPolicyExceptionRes(parsedOutput, context);
|
|
2345
2221
|
default:
|
|
2346
2222
|
const parsedBody = parsedOutput.body;
|
|
2347
|
-
throwDefaultError({
|
|
2223
|
+
return throwDefaultError({
|
|
2348
2224
|
output,
|
|
2349
2225
|
parsedBody: parsedBody.Error,
|
|
2350
|
-
exceptionCtor: __BaseException,
|
|
2351
2226
|
errorCode,
|
|
2352
2227
|
});
|
|
2353
2228
|
}
|
|
@@ -2363,7 +2238,7 @@ export const de_VerifySMSSandboxPhoneNumberCommand = async (output, context) =>
|
|
|
2363
2238
|
$metadata: deserializeMetadata(output),
|
|
2364
2239
|
...contents,
|
|
2365
2240
|
};
|
|
2366
|
-
return
|
|
2241
|
+
return response;
|
|
2367
2242
|
};
|
|
2368
2243
|
const de_VerifySMSSandboxPhoneNumberCommandError = async (output, context) => {
|
|
2369
2244
|
const parsedOutput = {
|
|
@@ -2392,10 +2267,9 @@ const de_VerifySMSSandboxPhoneNumberCommandError = async (output, context) => {
|
|
|
2392
2267
|
throw await de_VerificationExceptionRes(parsedOutput, context);
|
|
2393
2268
|
default:
|
|
2394
2269
|
const parsedBody = parsedOutput.body;
|
|
2395
|
-
throwDefaultError({
|
|
2270
|
+
return throwDefaultError({
|
|
2396
2271
|
output,
|
|
2397
2272
|
parsedBody: parsedBody.Error,
|
|
2398
|
-
exceptionCtor: __BaseException,
|
|
2399
2273
|
errorCode,
|
|
2400
2274
|
});
|
|
2401
2275
|
}
|
|
@@ -4111,6 +3985,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
4111
3985
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
4112
3986
|
};
|
|
4113
3987
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3988
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
4114
3989
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
4115
3990
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4116
3991
|
const contents = {
|
|
@@ -4129,6 +4004,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
4129
4004
|
}
|
|
4130
4005
|
return new __HttpRequest(contents);
|
|
4131
4006
|
};
|
|
4007
|
+
const SHARED_HEADERS = {
|
|
4008
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
4009
|
+
};
|
|
4132
4010
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4133
4011
|
if (encoded.length) {
|
|
4134
4012
|
const parser = new XMLParser({
|