@aws-sdk/client-sns 3.928.0 → 3.930.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/index.js +1273 -3290
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/SNSClient.js +2 -0
- package/dist-es/commands/AddPermissionCommand.js +3 -9
- package/dist-es/commands/CheckIfPhoneNumberIsOptedOutCommand.js +3 -10
- package/dist-es/commands/ConfirmSubscriptionCommand.js +3 -9
- package/dist-es/commands/CreatePlatformApplicationCommand.js +3 -9
- package/dist-es/commands/CreatePlatformEndpointCommand.js +3 -9
- package/dist-es/commands/CreateSMSSandboxPhoneNumberCommand.js +3 -10
- package/dist-es/commands/CreateTopicCommand.js +3 -9
- package/dist-es/commands/DeleteEndpointCommand.js +3 -9
- package/dist-es/commands/DeletePlatformApplicationCommand.js +3 -9
- package/dist-es/commands/DeleteSMSSandboxPhoneNumberCommand.js +3 -10
- package/dist-es/commands/DeleteTopicCommand.js +3 -9
- package/dist-es/commands/GetDataProtectionPolicyCommand.js +3 -9
- package/dist-es/commands/GetEndpointAttributesCommand.js +3 -9
- package/dist-es/commands/GetPlatformApplicationAttributesCommand.js +3 -9
- package/dist-es/commands/GetSMSAttributesCommand.js +3 -9
- package/dist-es/commands/GetSMSSandboxAccountStatusCommand.js +3 -9
- package/dist-es/commands/GetSubscriptionAttributesCommand.js +3 -9
- package/dist-es/commands/GetTopicAttributesCommand.js +3 -9
- package/dist-es/commands/ListEndpointsByPlatformApplicationCommand.js +3 -9
- package/dist-es/commands/ListOriginationNumbersCommand.js +3 -10
- package/dist-es/commands/ListPhoneNumbersOptedOutCommand.js +3 -10
- package/dist-es/commands/ListPlatformApplicationsCommand.js +3 -9
- package/dist-es/commands/ListSMSSandboxPhoneNumbersCommand.js +3 -10
- package/dist-es/commands/ListSubscriptionsByTopicCommand.js +3 -9
- package/dist-es/commands/ListSubscriptionsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ListTopicsCommand.js +3 -9
- package/dist-es/commands/OptInPhoneNumberCommand.js +3 -10
- package/dist-es/commands/PublishBatchCommand.js +3 -9
- package/dist-es/commands/PublishCommand.js +3 -10
- package/dist-es/commands/PutDataProtectionPolicyCommand.js +3 -9
- package/dist-es/commands/RemovePermissionCommand.js +3 -9
- package/dist-es/commands/SetEndpointAttributesCommand.js +3 -9
- package/dist-es/commands/SetPlatformApplicationAttributesCommand.js +3 -9
- package/dist-es/commands/SetSMSAttributesCommand.js +3 -9
- package/dist-es/commands/SetSubscriptionAttributesCommand.js +3 -9
- package/dist-es/commands/SetTopicAttributesCommand.js +3 -9
- package/dist-es/commands/SubscribeCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UnsubscribeCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/VerifySMSSandboxPhoneNumberCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -49
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +1192 -0
- package/dist-types/SNSClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -44
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +185 -0
- package/dist-types/ts3.4/SNSClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -31
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +192 -0
- package/package.json +33 -33
- package/dist-es/protocols/Aws_query.js +0 -2938
- package/dist-types/protocols/Aws_query.d.ts +0 -380
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +0 -509
|
@@ -1,2938 +0,0 @@
|
|
|
1
|
-
import { parseXmlBody as parseBody, parseXmlErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { AuthorizationErrorException, BatchEntryIdsNotDistinctException, BatchRequestTooLongException, ConcurrentAccessException, EmptyBatchRequestException, EndpointDisabledException, FilterPolicyLimitExceededException, InternalErrorException, InvalidBatchEntryIdException, InvalidParameterException, InvalidParameterValueException, InvalidSecurityException, InvalidStateException, KMSAccessDeniedException, KMSDisabledException, KMSInvalidStateException, KMSNotFoundException, KMSOptInRequired, KMSThrottlingException, NotFoundException, OptedOutException, PlatformApplicationDisabledException, ReplayLimitExceededException, ResourceNotFoundException, StaleTagException, SubscriptionLimitExceededException, TagLimitExceededException, TagPolicyException, ThrottledException, TooManyEntriesInBatchRequestException, TopicLimitExceededException, UserErrorException, ValidationException, VerificationException, } from "../models/models_0";
|
|
5
|
-
import { SNSServiceException as __BaseException } from "../models/SNSServiceException";
|
|
6
|
-
export const se_AddPermissionCommand = async (input, context) => {
|
|
7
|
-
const headers = SHARED_HEADERS;
|
|
8
|
-
let body;
|
|
9
|
-
body = buildFormUrlencodedString({
|
|
10
|
-
...se_AddPermissionInput(input, context),
|
|
11
|
-
[_A]: _AP,
|
|
12
|
-
[_V]: _,
|
|
13
|
-
});
|
|
14
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
15
|
-
};
|
|
16
|
-
export const se_CheckIfPhoneNumberIsOptedOutCommand = async (input, context) => {
|
|
17
|
-
const headers = SHARED_HEADERS;
|
|
18
|
-
let body;
|
|
19
|
-
body = buildFormUrlencodedString({
|
|
20
|
-
...se_CheckIfPhoneNumberIsOptedOutInput(input, context),
|
|
21
|
-
[_A]: _CIPNIOO,
|
|
22
|
-
[_V]: _,
|
|
23
|
-
});
|
|
24
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
25
|
-
};
|
|
26
|
-
export const se_ConfirmSubscriptionCommand = async (input, context) => {
|
|
27
|
-
const headers = SHARED_HEADERS;
|
|
28
|
-
let body;
|
|
29
|
-
body = buildFormUrlencodedString({
|
|
30
|
-
...se_ConfirmSubscriptionInput(input, context),
|
|
31
|
-
[_A]: _CS,
|
|
32
|
-
[_V]: _,
|
|
33
|
-
});
|
|
34
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
-
};
|
|
36
|
-
export const se_CreatePlatformApplicationCommand = async (input, context) => {
|
|
37
|
-
const headers = SHARED_HEADERS;
|
|
38
|
-
let body;
|
|
39
|
-
body = buildFormUrlencodedString({
|
|
40
|
-
...se_CreatePlatformApplicationInput(input, context),
|
|
41
|
-
[_A]: _CPA,
|
|
42
|
-
[_V]: _,
|
|
43
|
-
});
|
|
44
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
45
|
-
};
|
|
46
|
-
export const se_CreatePlatformEndpointCommand = async (input, context) => {
|
|
47
|
-
const headers = SHARED_HEADERS;
|
|
48
|
-
let body;
|
|
49
|
-
body = buildFormUrlencodedString({
|
|
50
|
-
...se_CreatePlatformEndpointInput(input, context),
|
|
51
|
-
[_A]: _CPE,
|
|
52
|
-
[_V]: _,
|
|
53
|
-
});
|
|
54
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
55
|
-
};
|
|
56
|
-
export const se_CreateSMSSandboxPhoneNumberCommand = async (input, context) => {
|
|
57
|
-
const headers = SHARED_HEADERS;
|
|
58
|
-
let body;
|
|
59
|
-
body = buildFormUrlencodedString({
|
|
60
|
-
...se_CreateSMSSandboxPhoneNumberInput(input, context),
|
|
61
|
-
[_A]: _CSMSSPN,
|
|
62
|
-
[_V]: _,
|
|
63
|
-
});
|
|
64
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
-
};
|
|
66
|
-
export const se_CreateTopicCommand = async (input, context) => {
|
|
67
|
-
const headers = SHARED_HEADERS;
|
|
68
|
-
let body;
|
|
69
|
-
body = buildFormUrlencodedString({
|
|
70
|
-
...se_CreateTopicInput(input, context),
|
|
71
|
-
[_A]: _CT,
|
|
72
|
-
[_V]: _,
|
|
73
|
-
});
|
|
74
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
75
|
-
};
|
|
76
|
-
export const se_DeleteEndpointCommand = async (input, context) => {
|
|
77
|
-
const headers = SHARED_HEADERS;
|
|
78
|
-
let body;
|
|
79
|
-
body = buildFormUrlencodedString({
|
|
80
|
-
...se_DeleteEndpointInput(input, context),
|
|
81
|
-
[_A]: _DE,
|
|
82
|
-
[_V]: _,
|
|
83
|
-
});
|
|
84
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
|
-
};
|
|
86
|
-
export const se_DeletePlatformApplicationCommand = async (input, context) => {
|
|
87
|
-
const headers = SHARED_HEADERS;
|
|
88
|
-
let body;
|
|
89
|
-
body = buildFormUrlencodedString({
|
|
90
|
-
...se_DeletePlatformApplicationInput(input, context),
|
|
91
|
-
[_A]: _DPA,
|
|
92
|
-
[_V]: _,
|
|
93
|
-
});
|
|
94
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
|
-
};
|
|
96
|
-
export const se_DeleteSMSSandboxPhoneNumberCommand = async (input, context) => {
|
|
97
|
-
const headers = SHARED_HEADERS;
|
|
98
|
-
let body;
|
|
99
|
-
body = buildFormUrlencodedString({
|
|
100
|
-
...se_DeleteSMSSandboxPhoneNumberInput(input, context),
|
|
101
|
-
[_A]: _DSMSSPN,
|
|
102
|
-
[_V]: _,
|
|
103
|
-
});
|
|
104
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
105
|
-
};
|
|
106
|
-
export const se_DeleteTopicCommand = async (input, context) => {
|
|
107
|
-
const headers = SHARED_HEADERS;
|
|
108
|
-
let body;
|
|
109
|
-
body = buildFormUrlencodedString({
|
|
110
|
-
...se_DeleteTopicInput(input, context),
|
|
111
|
-
[_A]: _DT,
|
|
112
|
-
[_V]: _,
|
|
113
|
-
});
|
|
114
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
115
|
-
};
|
|
116
|
-
export const se_GetDataProtectionPolicyCommand = async (input, context) => {
|
|
117
|
-
const headers = SHARED_HEADERS;
|
|
118
|
-
let body;
|
|
119
|
-
body = buildFormUrlencodedString({
|
|
120
|
-
...se_GetDataProtectionPolicyInput(input, context),
|
|
121
|
-
[_A]: _GDPP,
|
|
122
|
-
[_V]: _,
|
|
123
|
-
});
|
|
124
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
|
-
};
|
|
126
|
-
export const se_GetEndpointAttributesCommand = async (input, context) => {
|
|
127
|
-
const headers = SHARED_HEADERS;
|
|
128
|
-
let body;
|
|
129
|
-
body = buildFormUrlencodedString({
|
|
130
|
-
...se_GetEndpointAttributesInput(input, context),
|
|
131
|
-
[_A]: _GEA,
|
|
132
|
-
[_V]: _,
|
|
133
|
-
});
|
|
134
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
135
|
-
};
|
|
136
|
-
export const se_GetPlatformApplicationAttributesCommand = async (input, context) => {
|
|
137
|
-
const headers = SHARED_HEADERS;
|
|
138
|
-
let body;
|
|
139
|
-
body = buildFormUrlencodedString({
|
|
140
|
-
...se_GetPlatformApplicationAttributesInput(input, context),
|
|
141
|
-
[_A]: _GPAA,
|
|
142
|
-
[_V]: _,
|
|
143
|
-
});
|
|
144
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
145
|
-
};
|
|
146
|
-
export const se_GetSMSAttributesCommand = async (input, context) => {
|
|
147
|
-
const headers = SHARED_HEADERS;
|
|
148
|
-
let body;
|
|
149
|
-
body = buildFormUrlencodedString({
|
|
150
|
-
...se_GetSMSAttributesInput(input, context),
|
|
151
|
-
[_A]: _GSMSA,
|
|
152
|
-
[_V]: _,
|
|
153
|
-
});
|
|
154
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
|
-
};
|
|
156
|
-
export const se_GetSMSSandboxAccountStatusCommand = async (input, context) => {
|
|
157
|
-
const headers = SHARED_HEADERS;
|
|
158
|
-
let body;
|
|
159
|
-
body = buildFormUrlencodedString({
|
|
160
|
-
...se_GetSMSSandboxAccountStatusInput(input, context),
|
|
161
|
-
[_A]: _GSMSSAS,
|
|
162
|
-
[_V]: _,
|
|
163
|
-
});
|
|
164
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
165
|
-
};
|
|
166
|
-
export const se_GetSubscriptionAttributesCommand = async (input, context) => {
|
|
167
|
-
const headers = SHARED_HEADERS;
|
|
168
|
-
let body;
|
|
169
|
-
body = buildFormUrlencodedString({
|
|
170
|
-
...se_GetSubscriptionAttributesInput(input, context),
|
|
171
|
-
[_A]: _GSA,
|
|
172
|
-
[_V]: _,
|
|
173
|
-
});
|
|
174
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
|
-
};
|
|
176
|
-
export const se_GetTopicAttributesCommand = async (input, context) => {
|
|
177
|
-
const headers = SHARED_HEADERS;
|
|
178
|
-
let body;
|
|
179
|
-
body = buildFormUrlencodedString({
|
|
180
|
-
...se_GetTopicAttributesInput(input, context),
|
|
181
|
-
[_A]: _GTA,
|
|
182
|
-
[_V]: _,
|
|
183
|
-
});
|
|
184
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
185
|
-
};
|
|
186
|
-
export const se_ListEndpointsByPlatformApplicationCommand = async (input, context) => {
|
|
187
|
-
const headers = SHARED_HEADERS;
|
|
188
|
-
let body;
|
|
189
|
-
body = buildFormUrlencodedString({
|
|
190
|
-
...se_ListEndpointsByPlatformApplicationInput(input, context),
|
|
191
|
-
[_A]: _LEBPA,
|
|
192
|
-
[_V]: _,
|
|
193
|
-
});
|
|
194
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
195
|
-
};
|
|
196
|
-
export const se_ListOriginationNumbersCommand = async (input, context) => {
|
|
197
|
-
const headers = SHARED_HEADERS;
|
|
198
|
-
let body;
|
|
199
|
-
body = buildFormUrlencodedString({
|
|
200
|
-
...se_ListOriginationNumbersRequest(input, context),
|
|
201
|
-
[_A]: _LON,
|
|
202
|
-
[_V]: _,
|
|
203
|
-
});
|
|
204
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
205
|
-
};
|
|
206
|
-
export const se_ListPhoneNumbersOptedOutCommand = async (input, context) => {
|
|
207
|
-
const headers = SHARED_HEADERS;
|
|
208
|
-
let body;
|
|
209
|
-
body = buildFormUrlencodedString({
|
|
210
|
-
...se_ListPhoneNumbersOptedOutInput(input, context),
|
|
211
|
-
[_A]: _LPNOO,
|
|
212
|
-
[_V]: _,
|
|
213
|
-
});
|
|
214
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
215
|
-
};
|
|
216
|
-
export const se_ListPlatformApplicationsCommand = async (input, context) => {
|
|
217
|
-
const headers = SHARED_HEADERS;
|
|
218
|
-
let body;
|
|
219
|
-
body = buildFormUrlencodedString({
|
|
220
|
-
...se_ListPlatformApplicationsInput(input, context),
|
|
221
|
-
[_A]: _LPA,
|
|
222
|
-
[_V]: _,
|
|
223
|
-
});
|
|
224
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
225
|
-
};
|
|
226
|
-
export const se_ListSMSSandboxPhoneNumbersCommand = async (input, context) => {
|
|
227
|
-
const headers = SHARED_HEADERS;
|
|
228
|
-
let body;
|
|
229
|
-
body = buildFormUrlencodedString({
|
|
230
|
-
...se_ListSMSSandboxPhoneNumbersInput(input, context),
|
|
231
|
-
[_A]: _LSMSSPN,
|
|
232
|
-
[_V]: _,
|
|
233
|
-
});
|
|
234
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
235
|
-
};
|
|
236
|
-
export const se_ListSubscriptionsCommand = async (input, context) => {
|
|
237
|
-
const headers = SHARED_HEADERS;
|
|
238
|
-
let body;
|
|
239
|
-
body = buildFormUrlencodedString({
|
|
240
|
-
...se_ListSubscriptionsInput(input, context),
|
|
241
|
-
[_A]: _LS,
|
|
242
|
-
[_V]: _,
|
|
243
|
-
});
|
|
244
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
245
|
-
};
|
|
246
|
-
export const se_ListSubscriptionsByTopicCommand = async (input, context) => {
|
|
247
|
-
const headers = SHARED_HEADERS;
|
|
248
|
-
let body;
|
|
249
|
-
body = buildFormUrlencodedString({
|
|
250
|
-
...se_ListSubscriptionsByTopicInput(input, context),
|
|
251
|
-
[_A]: _LSBT,
|
|
252
|
-
[_V]: _,
|
|
253
|
-
});
|
|
254
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
255
|
-
};
|
|
256
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
257
|
-
const headers = SHARED_HEADERS;
|
|
258
|
-
let body;
|
|
259
|
-
body = buildFormUrlencodedString({
|
|
260
|
-
...se_ListTagsForResourceRequest(input, context),
|
|
261
|
-
[_A]: _LTFR,
|
|
262
|
-
[_V]: _,
|
|
263
|
-
});
|
|
264
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
265
|
-
};
|
|
266
|
-
export const se_ListTopicsCommand = async (input, context) => {
|
|
267
|
-
const headers = SHARED_HEADERS;
|
|
268
|
-
let body;
|
|
269
|
-
body = buildFormUrlencodedString({
|
|
270
|
-
...se_ListTopicsInput(input, context),
|
|
271
|
-
[_A]: _LT,
|
|
272
|
-
[_V]: _,
|
|
273
|
-
});
|
|
274
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
275
|
-
};
|
|
276
|
-
export const se_OptInPhoneNumberCommand = async (input, context) => {
|
|
277
|
-
const headers = SHARED_HEADERS;
|
|
278
|
-
let body;
|
|
279
|
-
body = buildFormUrlencodedString({
|
|
280
|
-
...se_OptInPhoneNumberInput(input, context),
|
|
281
|
-
[_A]: _OIPN,
|
|
282
|
-
[_V]: _,
|
|
283
|
-
});
|
|
284
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
285
|
-
};
|
|
286
|
-
export const se_PublishCommand = async (input, context) => {
|
|
287
|
-
const headers = SHARED_HEADERS;
|
|
288
|
-
let body;
|
|
289
|
-
body = buildFormUrlencodedString({
|
|
290
|
-
...se_PublishInput(input, context),
|
|
291
|
-
[_A]: _P,
|
|
292
|
-
[_V]: _,
|
|
293
|
-
});
|
|
294
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
295
|
-
};
|
|
296
|
-
export const se_PublishBatchCommand = async (input, context) => {
|
|
297
|
-
const headers = SHARED_HEADERS;
|
|
298
|
-
let body;
|
|
299
|
-
body = buildFormUrlencodedString({
|
|
300
|
-
...se_PublishBatchInput(input, context),
|
|
301
|
-
[_A]: _PB,
|
|
302
|
-
[_V]: _,
|
|
303
|
-
});
|
|
304
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
305
|
-
};
|
|
306
|
-
export const se_PutDataProtectionPolicyCommand = async (input, context) => {
|
|
307
|
-
const headers = SHARED_HEADERS;
|
|
308
|
-
let body;
|
|
309
|
-
body = buildFormUrlencodedString({
|
|
310
|
-
...se_PutDataProtectionPolicyInput(input, context),
|
|
311
|
-
[_A]: _PDPP,
|
|
312
|
-
[_V]: _,
|
|
313
|
-
});
|
|
314
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
315
|
-
};
|
|
316
|
-
export const se_RemovePermissionCommand = async (input, context) => {
|
|
317
|
-
const headers = SHARED_HEADERS;
|
|
318
|
-
let body;
|
|
319
|
-
body = buildFormUrlencodedString({
|
|
320
|
-
...se_RemovePermissionInput(input, context),
|
|
321
|
-
[_A]: _RP,
|
|
322
|
-
[_V]: _,
|
|
323
|
-
});
|
|
324
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
325
|
-
};
|
|
326
|
-
export const se_SetEndpointAttributesCommand = async (input, context) => {
|
|
327
|
-
const headers = SHARED_HEADERS;
|
|
328
|
-
let body;
|
|
329
|
-
body = buildFormUrlencodedString({
|
|
330
|
-
...se_SetEndpointAttributesInput(input, context),
|
|
331
|
-
[_A]: _SEA,
|
|
332
|
-
[_V]: _,
|
|
333
|
-
});
|
|
334
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
335
|
-
};
|
|
336
|
-
export const se_SetPlatformApplicationAttributesCommand = async (input, context) => {
|
|
337
|
-
const headers = SHARED_HEADERS;
|
|
338
|
-
let body;
|
|
339
|
-
body = buildFormUrlencodedString({
|
|
340
|
-
...se_SetPlatformApplicationAttributesInput(input, context),
|
|
341
|
-
[_A]: _SPAA,
|
|
342
|
-
[_V]: _,
|
|
343
|
-
});
|
|
344
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
345
|
-
};
|
|
346
|
-
export const se_SetSMSAttributesCommand = async (input, context) => {
|
|
347
|
-
const headers = SHARED_HEADERS;
|
|
348
|
-
let body;
|
|
349
|
-
body = buildFormUrlencodedString({
|
|
350
|
-
...se_SetSMSAttributesInput(input, context),
|
|
351
|
-
[_A]: _SSMSA,
|
|
352
|
-
[_V]: _,
|
|
353
|
-
});
|
|
354
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
355
|
-
};
|
|
356
|
-
export const se_SetSubscriptionAttributesCommand = async (input, context) => {
|
|
357
|
-
const headers = SHARED_HEADERS;
|
|
358
|
-
let body;
|
|
359
|
-
body = buildFormUrlencodedString({
|
|
360
|
-
...se_SetSubscriptionAttributesInput(input, context),
|
|
361
|
-
[_A]: _SSA,
|
|
362
|
-
[_V]: _,
|
|
363
|
-
});
|
|
364
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
365
|
-
};
|
|
366
|
-
export const se_SetTopicAttributesCommand = async (input, context) => {
|
|
367
|
-
const headers = SHARED_HEADERS;
|
|
368
|
-
let body;
|
|
369
|
-
body = buildFormUrlencodedString({
|
|
370
|
-
...se_SetTopicAttributesInput(input, context),
|
|
371
|
-
[_A]: _STA,
|
|
372
|
-
[_V]: _,
|
|
373
|
-
});
|
|
374
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
375
|
-
};
|
|
376
|
-
export const se_SubscribeCommand = async (input, context) => {
|
|
377
|
-
const headers = SHARED_HEADERS;
|
|
378
|
-
let body;
|
|
379
|
-
body = buildFormUrlencodedString({
|
|
380
|
-
...se_SubscribeInput(input, context),
|
|
381
|
-
[_A]: _S,
|
|
382
|
-
[_V]: _,
|
|
383
|
-
});
|
|
384
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
385
|
-
};
|
|
386
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
387
|
-
const headers = SHARED_HEADERS;
|
|
388
|
-
let body;
|
|
389
|
-
body = buildFormUrlencodedString({
|
|
390
|
-
...se_TagResourceRequest(input, context),
|
|
391
|
-
[_A]: _TR,
|
|
392
|
-
[_V]: _,
|
|
393
|
-
});
|
|
394
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
395
|
-
};
|
|
396
|
-
export const se_UnsubscribeCommand = async (input, context) => {
|
|
397
|
-
const headers = SHARED_HEADERS;
|
|
398
|
-
let body;
|
|
399
|
-
body = buildFormUrlencodedString({
|
|
400
|
-
...se_UnsubscribeInput(input, context),
|
|
401
|
-
[_A]: _U,
|
|
402
|
-
[_V]: _,
|
|
403
|
-
});
|
|
404
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
405
|
-
};
|
|
406
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
407
|
-
const headers = SHARED_HEADERS;
|
|
408
|
-
let body;
|
|
409
|
-
body = buildFormUrlencodedString({
|
|
410
|
-
...se_UntagResourceRequest(input, context),
|
|
411
|
-
[_A]: _UR,
|
|
412
|
-
[_V]: _,
|
|
413
|
-
});
|
|
414
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
415
|
-
};
|
|
416
|
-
export const se_VerifySMSSandboxPhoneNumberCommand = async (input, context) => {
|
|
417
|
-
const headers = SHARED_HEADERS;
|
|
418
|
-
let body;
|
|
419
|
-
body = buildFormUrlencodedString({
|
|
420
|
-
...se_VerifySMSSandboxPhoneNumberInput(input, context),
|
|
421
|
-
[_A]: _VSMSSPN,
|
|
422
|
-
[_V]: _,
|
|
423
|
-
});
|
|
424
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
425
|
-
};
|
|
426
|
-
export const de_AddPermissionCommand = async (output, context) => {
|
|
427
|
-
if (output.statusCode >= 300) {
|
|
428
|
-
return de_CommandError(output, context);
|
|
429
|
-
}
|
|
430
|
-
await collectBody(output.body, context);
|
|
431
|
-
const response = {
|
|
432
|
-
$metadata: deserializeMetadata(output),
|
|
433
|
-
};
|
|
434
|
-
return response;
|
|
435
|
-
};
|
|
436
|
-
export const de_CheckIfPhoneNumberIsOptedOutCommand = async (output, context) => {
|
|
437
|
-
if (output.statusCode >= 300) {
|
|
438
|
-
return de_CommandError(output, context);
|
|
439
|
-
}
|
|
440
|
-
const data = await parseBody(output.body, context);
|
|
441
|
-
let contents = {};
|
|
442
|
-
contents = de_CheckIfPhoneNumberIsOptedOutResponse(data.CheckIfPhoneNumberIsOptedOutResult, context);
|
|
443
|
-
const response = {
|
|
444
|
-
$metadata: deserializeMetadata(output),
|
|
445
|
-
...contents,
|
|
446
|
-
};
|
|
447
|
-
return response;
|
|
448
|
-
};
|
|
449
|
-
export const de_ConfirmSubscriptionCommand = async (output, context) => {
|
|
450
|
-
if (output.statusCode >= 300) {
|
|
451
|
-
return de_CommandError(output, context);
|
|
452
|
-
}
|
|
453
|
-
const data = await parseBody(output.body, context);
|
|
454
|
-
let contents = {};
|
|
455
|
-
contents = de_ConfirmSubscriptionResponse(data.ConfirmSubscriptionResult, context);
|
|
456
|
-
const response = {
|
|
457
|
-
$metadata: deserializeMetadata(output),
|
|
458
|
-
...contents,
|
|
459
|
-
};
|
|
460
|
-
return response;
|
|
461
|
-
};
|
|
462
|
-
export const de_CreatePlatformApplicationCommand = async (output, context) => {
|
|
463
|
-
if (output.statusCode >= 300) {
|
|
464
|
-
return de_CommandError(output, context);
|
|
465
|
-
}
|
|
466
|
-
const data = await parseBody(output.body, context);
|
|
467
|
-
let contents = {};
|
|
468
|
-
contents = de_CreatePlatformApplicationResponse(data.CreatePlatformApplicationResult, context);
|
|
469
|
-
const response = {
|
|
470
|
-
$metadata: deserializeMetadata(output),
|
|
471
|
-
...contents,
|
|
472
|
-
};
|
|
473
|
-
return response;
|
|
474
|
-
};
|
|
475
|
-
export const de_CreatePlatformEndpointCommand = async (output, context) => {
|
|
476
|
-
if (output.statusCode >= 300) {
|
|
477
|
-
return de_CommandError(output, context);
|
|
478
|
-
}
|
|
479
|
-
const data = await parseBody(output.body, context);
|
|
480
|
-
let contents = {};
|
|
481
|
-
contents = de_CreateEndpointResponse(data.CreatePlatformEndpointResult, context);
|
|
482
|
-
const response = {
|
|
483
|
-
$metadata: deserializeMetadata(output),
|
|
484
|
-
...contents,
|
|
485
|
-
};
|
|
486
|
-
return response;
|
|
487
|
-
};
|
|
488
|
-
export const de_CreateSMSSandboxPhoneNumberCommand = async (output, context) => {
|
|
489
|
-
if (output.statusCode >= 300) {
|
|
490
|
-
return de_CommandError(output, context);
|
|
491
|
-
}
|
|
492
|
-
const data = await parseBody(output.body, context);
|
|
493
|
-
let contents = {};
|
|
494
|
-
contents = de_CreateSMSSandboxPhoneNumberResult(data.CreateSMSSandboxPhoneNumberResult, context);
|
|
495
|
-
const response = {
|
|
496
|
-
$metadata: deserializeMetadata(output),
|
|
497
|
-
...contents,
|
|
498
|
-
};
|
|
499
|
-
return response;
|
|
500
|
-
};
|
|
501
|
-
export const de_CreateTopicCommand = async (output, context) => {
|
|
502
|
-
if (output.statusCode >= 300) {
|
|
503
|
-
return de_CommandError(output, context);
|
|
504
|
-
}
|
|
505
|
-
const data = await parseBody(output.body, context);
|
|
506
|
-
let contents = {};
|
|
507
|
-
contents = de_CreateTopicResponse(data.CreateTopicResult, context);
|
|
508
|
-
const response = {
|
|
509
|
-
$metadata: deserializeMetadata(output),
|
|
510
|
-
...contents,
|
|
511
|
-
};
|
|
512
|
-
return response;
|
|
513
|
-
};
|
|
514
|
-
export const de_DeleteEndpointCommand = async (output, context) => {
|
|
515
|
-
if (output.statusCode >= 300) {
|
|
516
|
-
return de_CommandError(output, context);
|
|
517
|
-
}
|
|
518
|
-
await collectBody(output.body, context);
|
|
519
|
-
const response = {
|
|
520
|
-
$metadata: deserializeMetadata(output),
|
|
521
|
-
};
|
|
522
|
-
return response;
|
|
523
|
-
};
|
|
524
|
-
export const de_DeletePlatformApplicationCommand = async (output, context) => {
|
|
525
|
-
if (output.statusCode >= 300) {
|
|
526
|
-
return de_CommandError(output, context);
|
|
527
|
-
}
|
|
528
|
-
await collectBody(output.body, context);
|
|
529
|
-
const response = {
|
|
530
|
-
$metadata: deserializeMetadata(output),
|
|
531
|
-
};
|
|
532
|
-
return response;
|
|
533
|
-
};
|
|
534
|
-
export const de_DeleteSMSSandboxPhoneNumberCommand = async (output, context) => {
|
|
535
|
-
if (output.statusCode >= 300) {
|
|
536
|
-
return de_CommandError(output, context);
|
|
537
|
-
}
|
|
538
|
-
const data = await parseBody(output.body, context);
|
|
539
|
-
let contents = {};
|
|
540
|
-
contents = de_DeleteSMSSandboxPhoneNumberResult(data.DeleteSMSSandboxPhoneNumberResult, context);
|
|
541
|
-
const response = {
|
|
542
|
-
$metadata: deserializeMetadata(output),
|
|
543
|
-
...contents,
|
|
544
|
-
};
|
|
545
|
-
return response;
|
|
546
|
-
};
|
|
547
|
-
export const de_DeleteTopicCommand = async (output, context) => {
|
|
548
|
-
if (output.statusCode >= 300) {
|
|
549
|
-
return de_CommandError(output, context);
|
|
550
|
-
}
|
|
551
|
-
await collectBody(output.body, context);
|
|
552
|
-
const response = {
|
|
553
|
-
$metadata: deserializeMetadata(output),
|
|
554
|
-
};
|
|
555
|
-
return response;
|
|
556
|
-
};
|
|
557
|
-
export const de_GetDataProtectionPolicyCommand = async (output, context) => {
|
|
558
|
-
if (output.statusCode >= 300) {
|
|
559
|
-
return de_CommandError(output, context);
|
|
560
|
-
}
|
|
561
|
-
const data = await parseBody(output.body, context);
|
|
562
|
-
let contents = {};
|
|
563
|
-
contents = de_GetDataProtectionPolicyResponse(data.GetDataProtectionPolicyResult, context);
|
|
564
|
-
const response = {
|
|
565
|
-
$metadata: deserializeMetadata(output),
|
|
566
|
-
...contents,
|
|
567
|
-
};
|
|
568
|
-
return response;
|
|
569
|
-
};
|
|
570
|
-
export const de_GetEndpointAttributesCommand = async (output, context) => {
|
|
571
|
-
if (output.statusCode >= 300) {
|
|
572
|
-
return de_CommandError(output, context);
|
|
573
|
-
}
|
|
574
|
-
const data = await parseBody(output.body, context);
|
|
575
|
-
let contents = {};
|
|
576
|
-
contents = de_GetEndpointAttributesResponse(data.GetEndpointAttributesResult, context);
|
|
577
|
-
const response = {
|
|
578
|
-
$metadata: deserializeMetadata(output),
|
|
579
|
-
...contents,
|
|
580
|
-
};
|
|
581
|
-
return response;
|
|
582
|
-
};
|
|
583
|
-
export const de_GetPlatformApplicationAttributesCommand = async (output, context) => {
|
|
584
|
-
if (output.statusCode >= 300) {
|
|
585
|
-
return de_CommandError(output, context);
|
|
586
|
-
}
|
|
587
|
-
const data = await parseBody(output.body, context);
|
|
588
|
-
let contents = {};
|
|
589
|
-
contents = de_GetPlatformApplicationAttributesResponse(data.GetPlatformApplicationAttributesResult, context);
|
|
590
|
-
const response = {
|
|
591
|
-
$metadata: deserializeMetadata(output),
|
|
592
|
-
...contents,
|
|
593
|
-
};
|
|
594
|
-
return response;
|
|
595
|
-
};
|
|
596
|
-
export const de_GetSMSAttributesCommand = async (output, context) => {
|
|
597
|
-
if (output.statusCode >= 300) {
|
|
598
|
-
return de_CommandError(output, context);
|
|
599
|
-
}
|
|
600
|
-
const data = await parseBody(output.body, context);
|
|
601
|
-
let contents = {};
|
|
602
|
-
contents = de_GetSMSAttributesResponse(data.GetSMSAttributesResult, context);
|
|
603
|
-
const response = {
|
|
604
|
-
$metadata: deserializeMetadata(output),
|
|
605
|
-
...contents,
|
|
606
|
-
};
|
|
607
|
-
return response;
|
|
608
|
-
};
|
|
609
|
-
export const de_GetSMSSandboxAccountStatusCommand = async (output, context) => {
|
|
610
|
-
if (output.statusCode >= 300) {
|
|
611
|
-
return de_CommandError(output, context);
|
|
612
|
-
}
|
|
613
|
-
const data = await parseBody(output.body, context);
|
|
614
|
-
let contents = {};
|
|
615
|
-
contents = de_GetSMSSandboxAccountStatusResult(data.GetSMSSandboxAccountStatusResult, context);
|
|
616
|
-
const response = {
|
|
617
|
-
$metadata: deserializeMetadata(output),
|
|
618
|
-
...contents,
|
|
619
|
-
};
|
|
620
|
-
return response;
|
|
621
|
-
};
|
|
622
|
-
export const de_GetSubscriptionAttributesCommand = async (output, context) => {
|
|
623
|
-
if (output.statusCode >= 300) {
|
|
624
|
-
return de_CommandError(output, context);
|
|
625
|
-
}
|
|
626
|
-
const data = await parseBody(output.body, context);
|
|
627
|
-
let contents = {};
|
|
628
|
-
contents = de_GetSubscriptionAttributesResponse(data.GetSubscriptionAttributesResult, context);
|
|
629
|
-
const response = {
|
|
630
|
-
$metadata: deserializeMetadata(output),
|
|
631
|
-
...contents,
|
|
632
|
-
};
|
|
633
|
-
return response;
|
|
634
|
-
};
|
|
635
|
-
export const de_GetTopicAttributesCommand = async (output, context) => {
|
|
636
|
-
if (output.statusCode >= 300) {
|
|
637
|
-
return de_CommandError(output, context);
|
|
638
|
-
}
|
|
639
|
-
const data = await parseBody(output.body, context);
|
|
640
|
-
let contents = {};
|
|
641
|
-
contents = de_GetTopicAttributesResponse(data.GetTopicAttributesResult, context);
|
|
642
|
-
const response = {
|
|
643
|
-
$metadata: deserializeMetadata(output),
|
|
644
|
-
...contents,
|
|
645
|
-
};
|
|
646
|
-
return response;
|
|
647
|
-
};
|
|
648
|
-
export const de_ListEndpointsByPlatformApplicationCommand = async (output, context) => {
|
|
649
|
-
if (output.statusCode >= 300) {
|
|
650
|
-
return de_CommandError(output, context);
|
|
651
|
-
}
|
|
652
|
-
const data = await parseBody(output.body, context);
|
|
653
|
-
let contents = {};
|
|
654
|
-
contents = de_ListEndpointsByPlatformApplicationResponse(data.ListEndpointsByPlatformApplicationResult, context);
|
|
655
|
-
const response = {
|
|
656
|
-
$metadata: deserializeMetadata(output),
|
|
657
|
-
...contents,
|
|
658
|
-
};
|
|
659
|
-
return response;
|
|
660
|
-
};
|
|
661
|
-
export const de_ListOriginationNumbersCommand = async (output, context) => {
|
|
662
|
-
if (output.statusCode >= 300) {
|
|
663
|
-
return de_CommandError(output, context);
|
|
664
|
-
}
|
|
665
|
-
const data = await parseBody(output.body, context);
|
|
666
|
-
let contents = {};
|
|
667
|
-
contents = de_ListOriginationNumbersResult(data.ListOriginationNumbersResult, context);
|
|
668
|
-
const response = {
|
|
669
|
-
$metadata: deserializeMetadata(output),
|
|
670
|
-
...contents,
|
|
671
|
-
};
|
|
672
|
-
return response;
|
|
673
|
-
};
|
|
674
|
-
export const de_ListPhoneNumbersOptedOutCommand = async (output, context) => {
|
|
675
|
-
if (output.statusCode >= 300) {
|
|
676
|
-
return de_CommandError(output, context);
|
|
677
|
-
}
|
|
678
|
-
const data = await parseBody(output.body, context);
|
|
679
|
-
let contents = {};
|
|
680
|
-
contents = de_ListPhoneNumbersOptedOutResponse(data.ListPhoneNumbersOptedOutResult, context);
|
|
681
|
-
const response = {
|
|
682
|
-
$metadata: deserializeMetadata(output),
|
|
683
|
-
...contents,
|
|
684
|
-
};
|
|
685
|
-
return response;
|
|
686
|
-
};
|
|
687
|
-
export const de_ListPlatformApplicationsCommand = async (output, context) => {
|
|
688
|
-
if (output.statusCode >= 300) {
|
|
689
|
-
return de_CommandError(output, context);
|
|
690
|
-
}
|
|
691
|
-
const data = await parseBody(output.body, context);
|
|
692
|
-
let contents = {};
|
|
693
|
-
contents = de_ListPlatformApplicationsResponse(data.ListPlatformApplicationsResult, context);
|
|
694
|
-
const response = {
|
|
695
|
-
$metadata: deserializeMetadata(output),
|
|
696
|
-
...contents,
|
|
697
|
-
};
|
|
698
|
-
return response;
|
|
699
|
-
};
|
|
700
|
-
export const de_ListSMSSandboxPhoneNumbersCommand = async (output, context) => {
|
|
701
|
-
if (output.statusCode >= 300) {
|
|
702
|
-
return de_CommandError(output, context);
|
|
703
|
-
}
|
|
704
|
-
const data = await parseBody(output.body, context);
|
|
705
|
-
let contents = {};
|
|
706
|
-
contents = de_ListSMSSandboxPhoneNumbersResult(data.ListSMSSandboxPhoneNumbersResult, context);
|
|
707
|
-
const response = {
|
|
708
|
-
$metadata: deserializeMetadata(output),
|
|
709
|
-
...contents,
|
|
710
|
-
};
|
|
711
|
-
return response;
|
|
712
|
-
};
|
|
713
|
-
export const de_ListSubscriptionsCommand = async (output, context) => {
|
|
714
|
-
if (output.statusCode >= 300) {
|
|
715
|
-
return de_CommandError(output, context);
|
|
716
|
-
}
|
|
717
|
-
const data = await parseBody(output.body, context);
|
|
718
|
-
let contents = {};
|
|
719
|
-
contents = de_ListSubscriptionsResponse(data.ListSubscriptionsResult, context);
|
|
720
|
-
const response = {
|
|
721
|
-
$metadata: deserializeMetadata(output),
|
|
722
|
-
...contents,
|
|
723
|
-
};
|
|
724
|
-
return response;
|
|
725
|
-
};
|
|
726
|
-
export const de_ListSubscriptionsByTopicCommand = async (output, context) => {
|
|
727
|
-
if (output.statusCode >= 300) {
|
|
728
|
-
return de_CommandError(output, context);
|
|
729
|
-
}
|
|
730
|
-
const data = await parseBody(output.body, context);
|
|
731
|
-
let contents = {};
|
|
732
|
-
contents = de_ListSubscriptionsByTopicResponse(data.ListSubscriptionsByTopicResult, context);
|
|
733
|
-
const response = {
|
|
734
|
-
$metadata: deserializeMetadata(output),
|
|
735
|
-
...contents,
|
|
736
|
-
};
|
|
737
|
-
return response;
|
|
738
|
-
};
|
|
739
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
740
|
-
if (output.statusCode >= 300) {
|
|
741
|
-
return de_CommandError(output, context);
|
|
742
|
-
}
|
|
743
|
-
const data = await parseBody(output.body, context);
|
|
744
|
-
let contents = {};
|
|
745
|
-
contents = de_ListTagsForResourceResponse(data.ListTagsForResourceResult, context);
|
|
746
|
-
const response = {
|
|
747
|
-
$metadata: deserializeMetadata(output),
|
|
748
|
-
...contents,
|
|
749
|
-
};
|
|
750
|
-
return response;
|
|
751
|
-
};
|
|
752
|
-
export const de_ListTopicsCommand = async (output, context) => {
|
|
753
|
-
if (output.statusCode >= 300) {
|
|
754
|
-
return de_CommandError(output, context);
|
|
755
|
-
}
|
|
756
|
-
const data = await parseBody(output.body, context);
|
|
757
|
-
let contents = {};
|
|
758
|
-
contents = de_ListTopicsResponse(data.ListTopicsResult, context);
|
|
759
|
-
const response = {
|
|
760
|
-
$metadata: deserializeMetadata(output),
|
|
761
|
-
...contents,
|
|
762
|
-
};
|
|
763
|
-
return response;
|
|
764
|
-
};
|
|
765
|
-
export const de_OptInPhoneNumberCommand = async (output, context) => {
|
|
766
|
-
if (output.statusCode >= 300) {
|
|
767
|
-
return de_CommandError(output, context);
|
|
768
|
-
}
|
|
769
|
-
const data = await parseBody(output.body, context);
|
|
770
|
-
let contents = {};
|
|
771
|
-
contents = de_OptInPhoneNumberResponse(data.OptInPhoneNumberResult, context);
|
|
772
|
-
const response = {
|
|
773
|
-
$metadata: deserializeMetadata(output),
|
|
774
|
-
...contents,
|
|
775
|
-
};
|
|
776
|
-
return response;
|
|
777
|
-
};
|
|
778
|
-
export const de_PublishCommand = async (output, context) => {
|
|
779
|
-
if (output.statusCode >= 300) {
|
|
780
|
-
return de_CommandError(output, context);
|
|
781
|
-
}
|
|
782
|
-
const data = await parseBody(output.body, context);
|
|
783
|
-
let contents = {};
|
|
784
|
-
contents = de_PublishResponse(data.PublishResult, context);
|
|
785
|
-
const response = {
|
|
786
|
-
$metadata: deserializeMetadata(output),
|
|
787
|
-
...contents,
|
|
788
|
-
};
|
|
789
|
-
return response;
|
|
790
|
-
};
|
|
791
|
-
export const de_PublishBatchCommand = async (output, context) => {
|
|
792
|
-
if (output.statusCode >= 300) {
|
|
793
|
-
return de_CommandError(output, context);
|
|
794
|
-
}
|
|
795
|
-
const data = await parseBody(output.body, context);
|
|
796
|
-
let contents = {};
|
|
797
|
-
contents = de_PublishBatchResponse(data.PublishBatchResult, context);
|
|
798
|
-
const response = {
|
|
799
|
-
$metadata: deserializeMetadata(output),
|
|
800
|
-
...contents,
|
|
801
|
-
};
|
|
802
|
-
return response;
|
|
803
|
-
};
|
|
804
|
-
export const de_PutDataProtectionPolicyCommand = async (output, context) => {
|
|
805
|
-
if (output.statusCode >= 300) {
|
|
806
|
-
return de_CommandError(output, context);
|
|
807
|
-
}
|
|
808
|
-
await collectBody(output.body, context);
|
|
809
|
-
const response = {
|
|
810
|
-
$metadata: deserializeMetadata(output),
|
|
811
|
-
};
|
|
812
|
-
return response;
|
|
813
|
-
};
|
|
814
|
-
export const de_RemovePermissionCommand = async (output, context) => {
|
|
815
|
-
if (output.statusCode >= 300) {
|
|
816
|
-
return de_CommandError(output, context);
|
|
817
|
-
}
|
|
818
|
-
await collectBody(output.body, context);
|
|
819
|
-
const response = {
|
|
820
|
-
$metadata: deserializeMetadata(output),
|
|
821
|
-
};
|
|
822
|
-
return response;
|
|
823
|
-
};
|
|
824
|
-
export const de_SetEndpointAttributesCommand = async (output, context) => {
|
|
825
|
-
if (output.statusCode >= 300) {
|
|
826
|
-
return de_CommandError(output, context);
|
|
827
|
-
}
|
|
828
|
-
await collectBody(output.body, context);
|
|
829
|
-
const response = {
|
|
830
|
-
$metadata: deserializeMetadata(output),
|
|
831
|
-
};
|
|
832
|
-
return response;
|
|
833
|
-
};
|
|
834
|
-
export const de_SetPlatformApplicationAttributesCommand = async (output, context) => {
|
|
835
|
-
if (output.statusCode >= 300) {
|
|
836
|
-
return de_CommandError(output, context);
|
|
837
|
-
}
|
|
838
|
-
await collectBody(output.body, context);
|
|
839
|
-
const response = {
|
|
840
|
-
$metadata: deserializeMetadata(output),
|
|
841
|
-
};
|
|
842
|
-
return response;
|
|
843
|
-
};
|
|
844
|
-
export const de_SetSMSAttributesCommand = async (output, context) => {
|
|
845
|
-
if (output.statusCode >= 300) {
|
|
846
|
-
return de_CommandError(output, context);
|
|
847
|
-
}
|
|
848
|
-
const data = await parseBody(output.body, context);
|
|
849
|
-
let contents = {};
|
|
850
|
-
contents = de_SetSMSAttributesResponse(data.SetSMSAttributesResult, context);
|
|
851
|
-
const response = {
|
|
852
|
-
$metadata: deserializeMetadata(output),
|
|
853
|
-
...contents,
|
|
854
|
-
};
|
|
855
|
-
return response;
|
|
856
|
-
};
|
|
857
|
-
export const de_SetSubscriptionAttributesCommand = async (output, context) => {
|
|
858
|
-
if (output.statusCode >= 300) {
|
|
859
|
-
return de_CommandError(output, context);
|
|
860
|
-
}
|
|
861
|
-
await collectBody(output.body, context);
|
|
862
|
-
const response = {
|
|
863
|
-
$metadata: deserializeMetadata(output),
|
|
864
|
-
};
|
|
865
|
-
return response;
|
|
866
|
-
};
|
|
867
|
-
export const de_SetTopicAttributesCommand = async (output, context) => {
|
|
868
|
-
if (output.statusCode >= 300) {
|
|
869
|
-
return de_CommandError(output, context);
|
|
870
|
-
}
|
|
871
|
-
await collectBody(output.body, context);
|
|
872
|
-
const response = {
|
|
873
|
-
$metadata: deserializeMetadata(output),
|
|
874
|
-
};
|
|
875
|
-
return response;
|
|
876
|
-
};
|
|
877
|
-
export const de_SubscribeCommand = async (output, context) => {
|
|
878
|
-
if (output.statusCode >= 300) {
|
|
879
|
-
return de_CommandError(output, context);
|
|
880
|
-
}
|
|
881
|
-
const data = await parseBody(output.body, context);
|
|
882
|
-
let contents = {};
|
|
883
|
-
contents = de_SubscribeResponse(data.SubscribeResult, context);
|
|
884
|
-
const response = {
|
|
885
|
-
$metadata: deserializeMetadata(output),
|
|
886
|
-
...contents,
|
|
887
|
-
};
|
|
888
|
-
return response;
|
|
889
|
-
};
|
|
890
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
891
|
-
if (output.statusCode >= 300) {
|
|
892
|
-
return de_CommandError(output, context);
|
|
893
|
-
}
|
|
894
|
-
const data = await parseBody(output.body, context);
|
|
895
|
-
let contents = {};
|
|
896
|
-
contents = de_TagResourceResponse(data.TagResourceResult, context);
|
|
897
|
-
const response = {
|
|
898
|
-
$metadata: deserializeMetadata(output),
|
|
899
|
-
...contents,
|
|
900
|
-
};
|
|
901
|
-
return response;
|
|
902
|
-
};
|
|
903
|
-
export const de_UnsubscribeCommand = async (output, context) => {
|
|
904
|
-
if (output.statusCode >= 300) {
|
|
905
|
-
return de_CommandError(output, context);
|
|
906
|
-
}
|
|
907
|
-
await collectBody(output.body, context);
|
|
908
|
-
const response = {
|
|
909
|
-
$metadata: deserializeMetadata(output),
|
|
910
|
-
};
|
|
911
|
-
return response;
|
|
912
|
-
};
|
|
913
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
914
|
-
if (output.statusCode >= 300) {
|
|
915
|
-
return de_CommandError(output, context);
|
|
916
|
-
}
|
|
917
|
-
const data = await parseBody(output.body, context);
|
|
918
|
-
let contents = {};
|
|
919
|
-
contents = de_UntagResourceResponse(data.UntagResourceResult, context);
|
|
920
|
-
const response = {
|
|
921
|
-
$metadata: deserializeMetadata(output),
|
|
922
|
-
...contents,
|
|
923
|
-
};
|
|
924
|
-
return response;
|
|
925
|
-
};
|
|
926
|
-
export const de_VerifySMSSandboxPhoneNumberCommand = async (output, context) => {
|
|
927
|
-
if (output.statusCode >= 300) {
|
|
928
|
-
return de_CommandError(output, context);
|
|
929
|
-
}
|
|
930
|
-
const data = await parseBody(output.body, context);
|
|
931
|
-
let contents = {};
|
|
932
|
-
contents = de_VerifySMSSandboxPhoneNumberResult(data.VerifySMSSandboxPhoneNumberResult, context);
|
|
933
|
-
const response = {
|
|
934
|
-
$metadata: deserializeMetadata(output),
|
|
935
|
-
...contents,
|
|
936
|
-
};
|
|
937
|
-
return response;
|
|
938
|
-
};
|
|
939
|
-
const de_CommandError = async (output, context) => {
|
|
940
|
-
const parsedOutput = {
|
|
941
|
-
...output,
|
|
942
|
-
body: await parseErrorBody(output.body, context),
|
|
943
|
-
};
|
|
944
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
945
|
-
switch (errorCode) {
|
|
946
|
-
case "AuthorizationError":
|
|
947
|
-
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
948
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
949
|
-
case "InternalError":
|
|
950
|
-
case "com.amazonaws.sns#InternalErrorException":
|
|
951
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
952
|
-
case "InvalidParameter":
|
|
953
|
-
case "com.amazonaws.sns#InvalidParameterException":
|
|
954
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
955
|
-
case "NotFound":
|
|
956
|
-
case "com.amazonaws.sns#NotFoundException":
|
|
957
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
958
|
-
case "Throttled":
|
|
959
|
-
case "com.amazonaws.sns#ThrottledException":
|
|
960
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
961
|
-
case "FilterPolicyLimitExceeded":
|
|
962
|
-
case "com.amazonaws.sns#FilterPolicyLimitExceededException":
|
|
963
|
-
throw await de_FilterPolicyLimitExceededExceptionRes(parsedOutput, context);
|
|
964
|
-
case "ReplayLimitExceeded":
|
|
965
|
-
case "com.amazonaws.sns#ReplayLimitExceededException":
|
|
966
|
-
throw await de_ReplayLimitExceededExceptionRes(parsedOutput, context);
|
|
967
|
-
case "SubscriptionLimitExceeded":
|
|
968
|
-
case "com.amazonaws.sns#SubscriptionLimitExceededException":
|
|
969
|
-
throw await de_SubscriptionLimitExceededExceptionRes(parsedOutput, context);
|
|
970
|
-
case "OptedOut":
|
|
971
|
-
case "com.amazonaws.sns#OptedOutException":
|
|
972
|
-
throw await de_OptedOutExceptionRes(parsedOutput, context);
|
|
973
|
-
case "UserError":
|
|
974
|
-
case "com.amazonaws.sns#UserErrorException":
|
|
975
|
-
throw await de_UserErrorExceptionRes(parsedOutput, context);
|
|
976
|
-
case "ConcurrentAccess":
|
|
977
|
-
case "com.amazonaws.sns#ConcurrentAccessException":
|
|
978
|
-
throw await de_ConcurrentAccessExceptionRes(parsedOutput, context);
|
|
979
|
-
case "InvalidSecurity":
|
|
980
|
-
case "com.amazonaws.sns#InvalidSecurityException":
|
|
981
|
-
throw await de_InvalidSecurityExceptionRes(parsedOutput, context);
|
|
982
|
-
case "StaleTag":
|
|
983
|
-
case "com.amazonaws.sns#StaleTagException":
|
|
984
|
-
throw await de_StaleTagExceptionRes(parsedOutput, context);
|
|
985
|
-
case "TagLimitExceeded":
|
|
986
|
-
case "com.amazonaws.sns#TagLimitExceededException":
|
|
987
|
-
throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
|
|
988
|
-
case "TagPolicy":
|
|
989
|
-
case "com.amazonaws.sns#TagPolicyException":
|
|
990
|
-
throw await de_TagPolicyExceptionRes(parsedOutput, context);
|
|
991
|
-
case "TopicLimitExceeded":
|
|
992
|
-
case "com.amazonaws.sns#TopicLimitExceededException":
|
|
993
|
-
throw await de_TopicLimitExceededExceptionRes(parsedOutput, context);
|
|
994
|
-
case "ResourceNotFound":
|
|
995
|
-
case "com.amazonaws.sns#ResourceNotFoundException":
|
|
996
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
997
|
-
case "InvalidState":
|
|
998
|
-
case "com.amazonaws.sns#InvalidStateException":
|
|
999
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1000
|
-
case "ValidationException":
|
|
1001
|
-
case "com.amazonaws.sns#ValidationException":
|
|
1002
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1003
|
-
case "EndpointDisabled":
|
|
1004
|
-
case "com.amazonaws.sns#EndpointDisabledException":
|
|
1005
|
-
throw await de_EndpointDisabledExceptionRes(parsedOutput, context);
|
|
1006
|
-
case "KMSAccessDenied":
|
|
1007
|
-
case "com.amazonaws.sns#KMSAccessDeniedException":
|
|
1008
|
-
throw await de_KMSAccessDeniedExceptionRes(parsedOutput, context);
|
|
1009
|
-
case "KMSDisabled":
|
|
1010
|
-
case "com.amazonaws.sns#KMSDisabledException":
|
|
1011
|
-
throw await de_KMSDisabledExceptionRes(parsedOutput, context);
|
|
1012
|
-
case "KMSInvalidState":
|
|
1013
|
-
case "com.amazonaws.sns#KMSInvalidStateException":
|
|
1014
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
1015
|
-
case "KMSNotFound":
|
|
1016
|
-
case "com.amazonaws.sns#KMSNotFoundException":
|
|
1017
|
-
throw await de_KMSNotFoundExceptionRes(parsedOutput, context);
|
|
1018
|
-
case "KMSOptInRequired":
|
|
1019
|
-
case "com.amazonaws.sns#KMSOptInRequired":
|
|
1020
|
-
throw await de_KMSOptInRequiredRes(parsedOutput, context);
|
|
1021
|
-
case "KMSThrottling":
|
|
1022
|
-
case "com.amazonaws.sns#KMSThrottlingException":
|
|
1023
|
-
throw await de_KMSThrottlingExceptionRes(parsedOutput, context);
|
|
1024
|
-
case "ParameterValueInvalid":
|
|
1025
|
-
case "com.amazonaws.sns#InvalidParameterValueException":
|
|
1026
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1027
|
-
case "PlatformApplicationDisabled":
|
|
1028
|
-
case "com.amazonaws.sns#PlatformApplicationDisabledException":
|
|
1029
|
-
throw await de_PlatformApplicationDisabledExceptionRes(parsedOutput, context);
|
|
1030
|
-
case "BatchEntryIdsNotDistinct":
|
|
1031
|
-
case "com.amazonaws.sns#BatchEntryIdsNotDistinctException":
|
|
1032
|
-
throw await de_BatchEntryIdsNotDistinctExceptionRes(parsedOutput, context);
|
|
1033
|
-
case "BatchRequestTooLong":
|
|
1034
|
-
case "com.amazonaws.sns#BatchRequestTooLongException":
|
|
1035
|
-
throw await de_BatchRequestTooLongExceptionRes(parsedOutput, context);
|
|
1036
|
-
case "EmptyBatchRequest":
|
|
1037
|
-
case "com.amazonaws.sns#EmptyBatchRequestException":
|
|
1038
|
-
throw await de_EmptyBatchRequestExceptionRes(parsedOutput, context);
|
|
1039
|
-
case "InvalidBatchEntryId":
|
|
1040
|
-
case "com.amazonaws.sns#InvalidBatchEntryIdException":
|
|
1041
|
-
throw await de_InvalidBatchEntryIdExceptionRes(parsedOutput, context);
|
|
1042
|
-
case "TooManyEntriesInBatchRequest":
|
|
1043
|
-
case "com.amazonaws.sns#TooManyEntriesInBatchRequestException":
|
|
1044
|
-
throw await de_TooManyEntriesInBatchRequestExceptionRes(parsedOutput, context);
|
|
1045
|
-
case "VerificationException":
|
|
1046
|
-
case "com.amazonaws.sns#VerificationException":
|
|
1047
|
-
throw await de_VerificationExceptionRes(parsedOutput, context);
|
|
1048
|
-
default:
|
|
1049
|
-
const parsedBody = parsedOutput.body;
|
|
1050
|
-
return throwDefaultError({
|
|
1051
|
-
output,
|
|
1052
|
-
parsedBody: parsedBody.Error,
|
|
1053
|
-
errorCode,
|
|
1054
|
-
});
|
|
1055
|
-
}
|
|
1056
|
-
};
|
|
1057
|
-
const de_AuthorizationErrorExceptionRes = async (parsedOutput, context) => {
|
|
1058
|
-
const body = parsedOutput.body;
|
|
1059
|
-
const deserialized = de_AuthorizationErrorException(body.Error, context);
|
|
1060
|
-
const exception = new AuthorizationErrorException({
|
|
1061
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1062
|
-
...deserialized,
|
|
1063
|
-
});
|
|
1064
|
-
return __decorateServiceException(exception, body);
|
|
1065
|
-
};
|
|
1066
|
-
const de_BatchEntryIdsNotDistinctExceptionRes = async (parsedOutput, context) => {
|
|
1067
|
-
const body = parsedOutput.body;
|
|
1068
|
-
const deserialized = de_BatchEntryIdsNotDistinctException(body.Error, context);
|
|
1069
|
-
const exception = new BatchEntryIdsNotDistinctException({
|
|
1070
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1071
|
-
...deserialized,
|
|
1072
|
-
});
|
|
1073
|
-
return __decorateServiceException(exception, body);
|
|
1074
|
-
};
|
|
1075
|
-
const de_BatchRequestTooLongExceptionRes = async (parsedOutput, context) => {
|
|
1076
|
-
const body = parsedOutput.body;
|
|
1077
|
-
const deserialized = de_BatchRequestTooLongException(body.Error, context);
|
|
1078
|
-
const exception = new BatchRequestTooLongException({
|
|
1079
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1080
|
-
...deserialized,
|
|
1081
|
-
});
|
|
1082
|
-
return __decorateServiceException(exception, body);
|
|
1083
|
-
};
|
|
1084
|
-
const de_ConcurrentAccessExceptionRes = async (parsedOutput, context) => {
|
|
1085
|
-
const body = parsedOutput.body;
|
|
1086
|
-
const deserialized = de_ConcurrentAccessException(body.Error, context);
|
|
1087
|
-
const exception = new ConcurrentAccessException({
|
|
1088
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1089
|
-
...deserialized,
|
|
1090
|
-
});
|
|
1091
|
-
return __decorateServiceException(exception, body);
|
|
1092
|
-
};
|
|
1093
|
-
const de_EmptyBatchRequestExceptionRes = async (parsedOutput, context) => {
|
|
1094
|
-
const body = parsedOutput.body;
|
|
1095
|
-
const deserialized = de_EmptyBatchRequestException(body.Error, context);
|
|
1096
|
-
const exception = new EmptyBatchRequestException({
|
|
1097
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1098
|
-
...deserialized,
|
|
1099
|
-
});
|
|
1100
|
-
return __decorateServiceException(exception, body);
|
|
1101
|
-
};
|
|
1102
|
-
const de_EndpointDisabledExceptionRes = async (parsedOutput, context) => {
|
|
1103
|
-
const body = parsedOutput.body;
|
|
1104
|
-
const deserialized = de_EndpointDisabledException(body.Error, context);
|
|
1105
|
-
const exception = new EndpointDisabledException({
|
|
1106
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1107
|
-
...deserialized,
|
|
1108
|
-
});
|
|
1109
|
-
return __decorateServiceException(exception, body);
|
|
1110
|
-
};
|
|
1111
|
-
const de_FilterPolicyLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1112
|
-
const body = parsedOutput.body;
|
|
1113
|
-
const deserialized = de_FilterPolicyLimitExceededException(body.Error, context);
|
|
1114
|
-
const exception = new FilterPolicyLimitExceededException({
|
|
1115
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1116
|
-
...deserialized,
|
|
1117
|
-
});
|
|
1118
|
-
return __decorateServiceException(exception, body);
|
|
1119
|
-
};
|
|
1120
|
-
const de_InternalErrorExceptionRes = async (parsedOutput, context) => {
|
|
1121
|
-
const body = parsedOutput.body;
|
|
1122
|
-
const deserialized = de_InternalErrorException(body.Error, context);
|
|
1123
|
-
const exception = new InternalErrorException({
|
|
1124
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1125
|
-
...deserialized,
|
|
1126
|
-
});
|
|
1127
|
-
return __decorateServiceException(exception, body);
|
|
1128
|
-
};
|
|
1129
|
-
const de_InvalidBatchEntryIdExceptionRes = async (parsedOutput, context) => {
|
|
1130
|
-
const body = parsedOutput.body;
|
|
1131
|
-
const deserialized = de_InvalidBatchEntryIdException(body.Error, context);
|
|
1132
|
-
const exception = new InvalidBatchEntryIdException({
|
|
1133
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1134
|
-
...deserialized,
|
|
1135
|
-
});
|
|
1136
|
-
return __decorateServiceException(exception, body);
|
|
1137
|
-
};
|
|
1138
|
-
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
1139
|
-
const body = parsedOutput.body;
|
|
1140
|
-
const deserialized = de_InvalidParameterException(body.Error, context);
|
|
1141
|
-
const exception = new InvalidParameterException({
|
|
1142
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1143
|
-
...deserialized,
|
|
1144
|
-
});
|
|
1145
|
-
return __decorateServiceException(exception, body);
|
|
1146
|
-
};
|
|
1147
|
-
const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
|
|
1148
|
-
const body = parsedOutput.body;
|
|
1149
|
-
const deserialized = de_InvalidParameterValueException(body.Error, context);
|
|
1150
|
-
const exception = new InvalidParameterValueException({
|
|
1151
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1152
|
-
...deserialized,
|
|
1153
|
-
});
|
|
1154
|
-
return __decorateServiceException(exception, body);
|
|
1155
|
-
};
|
|
1156
|
-
const de_InvalidSecurityExceptionRes = async (parsedOutput, context) => {
|
|
1157
|
-
const body = parsedOutput.body;
|
|
1158
|
-
const deserialized = de_InvalidSecurityException(body.Error, context);
|
|
1159
|
-
const exception = new InvalidSecurityException({
|
|
1160
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1161
|
-
...deserialized,
|
|
1162
|
-
});
|
|
1163
|
-
return __decorateServiceException(exception, body);
|
|
1164
|
-
};
|
|
1165
|
-
const de_InvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
1166
|
-
const body = parsedOutput.body;
|
|
1167
|
-
const deserialized = de_InvalidStateException(body.Error, context);
|
|
1168
|
-
const exception = new InvalidStateException({
|
|
1169
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1170
|
-
...deserialized,
|
|
1171
|
-
});
|
|
1172
|
-
return __decorateServiceException(exception, body);
|
|
1173
|
-
};
|
|
1174
|
-
const de_KMSAccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1175
|
-
const body = parsedOutput.body;
|
|
1176
|
-
const deserialized = de_KMSAccessDeniedException(body.Error, context);
|
|
1177
|
-
const exception = new KMSAccessDeniedException({
|
|
1178
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1179
|
-
...deserialized,
|
|
1180
|
-
});
|
|
1181
|
-
return __decorateServiceException(exception, body);
|
|
1182
|
-
};
|
|
1183
|
-
const de_KMSDisabledExceptionRes = async (parsedOutput, context) => {
|
|
1184
|
-
const body = parsedOutput.body;
|
|
1185
|
-
const deserialized = de_KMSDisabledException(body.Error, context);
|
|
1186
|
-
const exception = new KMSDisabledException({
|
|
1187
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1188
|
-
...deserialized,
|
|
1189
|
-
});
|
|
1190
|
-
return __decorateServiceException(exception, body);
|
|
1191
|
-
};
|
|
1192
|
-
const de_KMSInvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
1193
|
-
const body = parsedOutput.body;
|
|
1194
|
-
const deserialized = de_KMSInvalidStateException(body.Error, context);
|
|
1195
|
-
const exception = new KMSInvalidStateException({
|
|
1196
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1197
|
-
...deserialized,
|
|
1198
|
-
});
|
|
1199
|
-
return __decorateServiceException(exception, body);
|
|
1200
|
-
};
|
|
1201
|
-
const de_KMSNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1202
|
-
const body = parsedOutput.body;
|
|
1203
|
-
const deserialized = de_KMSNotFoundException(body.Error, context);
|
|
1204
|
-
const exception = new KMSNotFoundException({
|
|
1205
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1206
|
-
...deserialized,
|
|
1207
|
-
});
|
|
1208
|
-
return __decorateServiceException(exception, body);
|
|
1209
|
-
};
|
|
1210
|
-
const de_KMSOptInRequiredRes = async (parsedOutput, context) => {
|
|
1211
|
-
const body = parsedOutput.body;
|
|
1212
|
-
const deserialized = de_KMSOptInRequired(body.Error, context);
|
|
1213
|
-
const exception = new KMSOptInRequired({
|
|
1214
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1215
|
-
...deserialized,
|
|
1216
|
-
});
|
|
1217
|
-
return __decorateServiceException(exception, body);
|
|
1218
|
-
};
|
|
1219
|
-
const de_KMSThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1220
|
-
const body = parsedOutput.body;
|
|
1221
|
-
const deserialized = de_KMSThrottlingException(body.Error, context);
|
|
1222
|
-
const exception = new KMSThrottlingException({
|
|
1223
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1224
|
-
...deserialized,
|
|
1225
|
-
});
|
|
1226
|
-
return __decorateServiceException(exception, body);
|
|
1227
|
-
};
|
|
1228
|
-
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1229
|
-
const body = parsedOutput.body;
|
|
1230
|
-
const deserialized = de_NotFoundException(body.Error, context);
|
|
1231
|
-
const exception = new NotFoundException({
|
|
1232
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1233
|
-
...deserialized,
|
|
1234
|
-
});
|
|
1235
|
-
return __decorateServiceException(exception, body);
|
|
1236
|
-
};
|
|
1237
|
-
const de_OptedOutExceptionRes = async (parsedOutput, context) => {
|
|
1238
|
-
const body = parsedOutput.body;
|
|
1239
|
-
const deserialized = de_OptedOutException(body.Error, context);
|
|
1240
|
-
const exception = new OptedOutException({
|
|
1241
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1242
|
-
...deserialized,
|
|
1243
|
-
});
|
|
1244
|
-
return __decorateServiceException(exception, body);
|
|
1245
|
-
};
|
|
1246
|
-
const de_PlatformApplicationDisabledExceptionRes = async (parsedOutput, context) => {
|
|
1247
|
-
const body = parsedOutput.body;
|
|
1248
|
-
const deserialized = de_PlatformApplicationDisabledException(body.Error, context);
|
|
1249
|
-
const exception = new PlatformApplicationDisabledException({
|
|
1250
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1251
|
-
...deserialized,
|
|
1252
|
-
});
|
|
1253
|
-
return __decorateServiceException(exception, body);
|
|
1254
|
-
};
|
|
1255
|
-
const de_ReplayLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1256
|
-
const body = parsedOutput.body;
|
|
1257
|
-
const deserialized = de_ReplayLimitExceededException(body.Error, context);
|
|
1258
|
-
const exception = new ReplayLimitExceededException({
|
|
1259
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1260
|
-
...deserialized,
|
|
1261
|
-
});
|
|
1262
|
-
return __decorateServiceException(exception, body);
|
|
1263
|
-
};
|
|
1264
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1265
|
-
const body = parsedOutput.body;
|
|
1266
|
-
const deserialized = de_ResourceNotFoundException(body.Error, context);
|
|
1267
|
-
const exception = new ResourceNotFoundException({
|
|
1268
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1269
|
-
...deserialized,
|
|
1270
|
-
});
|
|
1271
|
-
return __decorateServiceException(exception, body);
|
|
1272
|
-
};
|
|
1273
|
-
const de_StaleTagExceptionRes = async (parsedOutput, context) => {
|
|
1274
|
-
const body = parsedOutput.body;
|
|
1275
|
-
const deserialized = de_StaleTagException(body.Error, context);
|
|
1276
|
-
const exception = new StaleTagException({
|
|
1277
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1278
|
-
...deserialized,
|
|
1279
|
-
});
|
|
1280
|
-
return __decorateServiceException(exception, body);
|
|
1281
|
-
};
|
|
1282
|
-
const de_SubscriptionLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1283
|
-
const body = parsedOutput.body;
|
|
1284
|
-
const deserialized = de_SubscriptionLimitExceededException(body.Error, context);
|
|
1285
|
-
const exception = new SubscriptionLimitExceededException({
|
|
1286
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1287
|
-
...deserialized,
|
|
1288
|
-
});
|
|
1289
|
-
return __decorateServiceException(exception, body);
|
|
1290
|
-
};
|
|
1291
|
-
const de_TagLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1292
|
-
const body = parsedOutput.body;
|
|
1293
|
-
const deserialized = de_TagLimitExceededException(body.Error, context);
|
|
1294
|
-
const exception = new TagLimitExceededException({
|
|
1295
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1296
|
-
...deserialized,
|
|
1297
|
-
});
|
|
1298
|
-
return __decorateServiceException(exception, body);
|
|
1299
|
-
};
|
|
1300
|
-
const de_TagPolicyExceptionRes = async (parsedOutput, context) => {
|
|
1301
|
-
const body = parsedOutput.body;
|
|
1302
|
-
const deserialized = de_TagPolicyException(body.Error, context);
|
|
1303
|
-
const exception = new TagPolicyException({
|
|
1304
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1305
|
-
...deserialized,
|
|
1306
|
-
});
|
|
1307
|
-
return __decorateServiceException(exception, body);
|
|
1308
|
-
};
|
|
1309
|
-
const de_ThrottledExceptionRes = async (parsedOutput, context) => {
|
|
1310
|
-
const body = parsedOutput.body;
|
|
1311
|
-
const deserialized = de_ThrottledException(body.Error, context);
|
|
1312
|
-
const exception = new ThrottledException({
|
|
1313
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1314
|
-
...deserialized,
|
|
1315
|
-
});
|
|
1316
|
-
return __decorateServiceException(exception, body);
|
|
1317
|
-
};
|
|
1318
|
-
const de_TooManyEntriesInBatchRequestExceptionRes = async (parsedOutput, context) => {
|
|
1319
|
-
const body = parsedOutput.body;
|
|
1320
|
-
const deserialized = de_TooManyEntriesInBatchRequestException(body.Error, context);
|
|
1321
|
-
const exception = new TooManyEntriesInBatchRequestException({
|
|
1322
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1323
|
-
...deserialized,
|
|
1324
|
-
});
|
|
1325
|
-
return __decorateServiceException(exception, body);
|
|
1326
|
-
};
|
|
1327
|
-
const de_TopicLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1328
|
-
const body = parsedOutput.body;
|
|
1329
|
-
const deserialized = de_TopicLimitExceededException(body.Error, context);
|
|
1330
|
-
const exception = new TopicLimitExceededException({
|
|
1331
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1332
|
-
...deserialized,
|
|
1333
|
-
});
|
|
1334
|
-
return __decorateServiceException(exception, body);
|
|
1335
|
-
};
|
|
1336
|
-
const de_UserErrorExceptionRes = async (parsedOutput, context) => {
|
|
1337
|
-
const body = parsedOutput.body;
|
|
1338
|
-
const deserialized = de_UserErrorException(body.Error, context);
|
|
1339
|
-
const exception = new UserErrorException({
|
|
1340
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1341
|
-
...deserialized,
|
|
1342
|
-
});
|
|
1343
|
-
return __decorateServiceException(exception, body);
|
|
1344
|
-
};
|
|
1345
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1346
|
-
const body = parsedOutput.body;
|
|
1347
|
-
const deserialized = de_ValidationException(body.Error, context);
|
|
1348
|
-
const exception = new ValidationException({
|
|
1349
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1350
|
-
...deserialized,
|
|
1351
|
-
});
|
|
1352
|
-
return __decorateServiceException(exception, body);
|
|
1353
|
-
};
|
|
1354
|
-
const de_VerificationExceptionRes = async (parsedOutput, context) => {
|
|
1355
|
-
const body = parsedOutput.body;
|
|
1356
|
-
const deserialized = de_VerificationException(body.Error, context);
|
|
1357
|
-
const exception = new VerificationException({
|
|
1358
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1359
|
-
...deserialized,
|
|
1360
|
-
});
|
|
1361
|
-
return __decorateServiceException(exception, body);
|
|
1362
|
-
};
|
|
1363
|
-
const se_ActionsList = (input, context) => {
|
|
1364
|
-
const entries = {};
|
|
1365
|
-
let counter = 1;
|
|
1366
|
-
for (const entry of input) {
|
|
1367
|
-
if (entry === null) {
|
|
1368
|
-
continue;
|
|
1369
|
-
}
|
|
1370
|
-
entries[`member.${counter}`] = entry;
|
|
1371
|
-
counter++;
|
|
1372
|
-
}
|
|
1373
|
-
return entries;
|
|
1374
|
-
};
|
|
1375
|
-
const se_AddPermissionInput = (input, context) => {
|
|
1376
|
-
const entries = {};
|
|
1377
|
-
if (input[_TA] != null) {
|
|
1378
|
-
entries[_TA] = input[_TA];
|
|
1379
|
-
}
|
|
1380
|
-
if (input[_L] != null) {
|
|
1381
|
-
entries[_L] = input[_L];
|
|
1382
|
-
}
|
|
1383
|
-
if (input[_AWSAI] != null) {
|
|
1384
|
-
const memberEntries = se_DelegatesList(input[_AWSAI], context);
|
|
1385
|
-
if (input[_AWSAI]?.length === 0) {
|
|
1386
|
-
entries.AWSAccountId = [];
|
|
1387
|
-
}
|
|
1388
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1389
|
-
const loc = `AWSAccountId.${key}`;
|
|
1390
|
-
entries[loc] = value;
|
|
1391
|
-
});
|
|
1392
|
-
}
|
|
1393
|
-
if (input[_AN] != null) {
|
|
1394
|
-
const memberEntries = se_ActionsList(input[_AN], context);
|
|
1395
|
-
if (input[_AN]?.length === 0) {
|
|
1396
|
-
entries.ActionName = [];
|
|
1397
|
-
}
|
|
1398
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1399
|
-
const loc = `ActionName.${key}`;
|
|
1400
|
-
entries[loc] = value;
|
|
1401
|
-
});
|
|
1402
|
-
}
|
|
1403
|
-
return entries;
|
|
1404
|
-
};
|
|
1405
|
-
const se_CheckIfPhoneNumberIsOptedOutInput = (input, context) => {
|
|
1406
|
-
const entries = {};
|
|
1407
|
-
if (input[_pN] != null) {
|
|
1408
|
-
entries[_pN] = input[_pN];
|
|
1409
|
-
}
|
|
1410
|
-
return entries;
|
|
1411
|
-
};
|
|
1412
|
-
const se_ConfirmSubscriptionInput = (input, context) => {
|
|
1413
|
-
const entries = {};
|
|
1414
|
-
if (input[_TA] != null) {
|
|
1415
|
-
entries[_TA] = input[_TA];
|
|
1416
|
-
}
|
|
1417
|
-
if (input[_T] != null) {
|
|
1418
|
-
entries[_T] = input[_T];
|
|
1419
|
-
}
|
|
1420
|
-
if (input[_AOU] != null) {
|
|
1421
|
-
entries[_AOU] = input[_AOU];
|
|
1422
|
-
}
|
|
1423
|
-
return entries;
|
|
1424
|
-
};
|
|
1425
|
-
const se_CreatePlatformApplicationInput = (input, context) => {
|
|
1426
|
-
const entries = {};
|
|
1427
|
-
if (input[_N] != null) {
|
|
1428
|
-
entries[_N] = input[_N];
|
|
1429
|
-
}
|
|
1430
|
-
if (input[_Pl] != null) {
|
|
1431
|
-
entries[_Pl] = input[_Pl];
|
|
1432
|
-
}
|
|
1433
|
-
if (input[_At] != null) {
|
|
1434
|
-
const memberEntries = se_MapStringToString(input[_At], context);
|
|
1435
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1436
|
-
const loc = `Attributes.${key}`;
|
|
1437
|
-
entries[loc] = value;
|
|
1438
|
-
});
|
|
1439
|
-
}
|
|
1440
|
-
return entries;
|
|
1441
|
-
};
|
|
1442
|
-
const se_CreatePlatformEndpointInput = (input, context) => {
|
|
1443
|
-
const entries = {};
|
|
1444
|
-
if (input[_PAA] != null) {
|
|
1445
|
-
entries[_PAA] = input[_PAA];
|
|
1446
|
-
}
|
|
1447
|
-
if (input[_T] != null) {
|
|
1448
|
-
entries[_T] = input[_T];
|
|
1449
|
-
}
|
|
1450
|
-
if (input[_CUD] != null) {
|
|
1451
|
-
entries[_CUD] = input[_CUD];
|
|
1452
|
-
}
|
|
1453
|
-
if (input[_At] != null) {
|
|
1454
|
-
const memberEntries = se_MapStringToString(input[_At], context);
|
|
1455
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1456
|
-
const loc = `Attributes.${key}`;
|
|
1457
|
-
entries[loc] = value;
|
|
1458
|
-
});
|
|
1459
|
-
}
|
|
1460
|
-
return entries;
|
|
1461
|
-
};
|
|
1462
|
-
const se_CreateSMSSandboxPhoneNumberInput = (input, context) => {
|
|
1463
|
-
const entries = {};
|
|
1464
|
-
if (input[_PN] != null) {
|
|
1465
|
-
entries[_PN] = input[_PN];
|
|
1466
|
-
}
|
|
1467
|
-
if (input[_LC] != null) {
|
|
1468
|
-
entries[_LC] = input[_LC];
|
|
1469
|
-
}
|
|
1470
|
-
return entries;
|
|
1471
|
-
};
|
|
1472
|
-
const se_CreateTopicInput = (input, context) => {
|
|
1473
|
-
const entries = {};
|
|
1474
|
-
if (input[_N] != null) {
|
|
1475
|
-
entries[_N] = input[_N];
|
|
1476
|
-
}
|
|
1477
|
-
if (input[_At] != null) {
|
|
1478
|
-
const memberEntries = se_TopicAttributesMap(input[_At], context);
|
|
1479
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1480
|
-
const loc = `Attributes.${key}`;
|
|
1481
|
-
entries[loc] = value;
|
|
1482
|
-
});
|
|
1483
|
-
}
|
|
1484
|
-
if (input[_Ta] != null) {
|
|
1485
|
-
const memberEntries = se_TagList(input[_Ta], context);
|
|
1486
|
-
if (input[_Ta]?.length === 0) {
|
|
1487
|
-
entries.Tags = [];
|
|
1488
|
-
}
|
|
1489
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1490
|
-
const loc = `Tags.${key}`;
|
|
1491
|
-
entries[loc] = value;
|
|
1492
|
-
});
|
|
1493
|
-
}
|
|
1494
|
-
if (input[_DPP] != null) {
|
|
1495
|
-
entries[_DPP] = input[_DPP];
|
|
1496
|
-
}
|
|
1497
|
-
return entries;
|
|
1498
|
-
};
|
|
1499
|
-
const se_DelegatesList = (input, context) => {
|
|
1500
|
-
const entries = {};
|
|
1501
|
-
let counter = 1;
|
|
1502
|
-
for (const entry of input) {
|
|
1503
|
-
if (entry === null) {
|
|
1504
|
-
continue;
|
|
1505
|
-
}
|
|
1506
|
-
entries[`member.${counter}`] = entry;
|
|
1507
|
-
counter++;
|
|
1508
|
-
}
|
|
1509
|
-
return entries;
|
|
1510
|
-
};
|
|
1511
|
-
const se_DeleteEndpointInput = (input, context) => {
|
|
1512
|
-
const entries = {};
|
|
1513
|
-
if (input[_EA] != null) {
|
|
1514
|
-
entries[_EA] = input[_EA];
|
|
1515
|
-
}
|
|
1516
|
-
return entries;
|
|
1517
|
-
};
|
|
1518
|
-
const se_DeletePlatformApplicationInput = (input, context) => {
|
|
1519
|
-
const entries = {};
|
|
1520
|
-
if (input[_PAA] != null) {
|
|
1521
|
-
entries[_PAA] = input[_PAA];
|
|
1522
|
-
}
|
|
1523
|
-
return entries;
|
|
1524
|
-
};
|
|
1525
|
-
const se_DeleteSMSSandboxPhoneNumberInput = (input, context) => {
|
|
1526
|
-
const entries = {};
|
|
1527
|
-
if (input[_PN] != null) {
|
|
1528
|
-
entries[_PN] = input[_PN];
|
|
1529
|
-
}
|
|
1530
|
-
return entries;
|
|
1531
|
-
};
|
|
1532
|
-
const se_DeleteTopicInput = (input, context) => {
|
|
1533
|
-
const entries = {};
|
|
1534
|
-
if (input[_TA] != null) {
|
|
1535
|
-
entries[_TA] = input[_TA];
|
|
1536
|
-
}
|
|
1537
|
-
return entries;
|
|
1538
|
-
};
|
|
1539
|
-
const se_GetDataProtectionPolicyInput = (input, context) => {
|
|
1540
|
-
const entries = {};
|
|
1541
|
-
if (input[_RA] != null) {
|
|
1542
|
-
entries[_RA] = input[_RA];
|
|
1543
|
-
}
|
|
1544
|
-
return entries;
|
|
1545
|
-
};
|
|
1546
|
-
const se_GetEndpointAttributesInput = (input, context) => {
|
|
1547
|
-
const entries = {};
|
|
1548
|
-
if (input[_EA] != null) {
|
|
1549
|
-
entries[_EA] = input[_EA];
|
|
1550
|
-
}
|
|
1551
|
-
return entries;
|
|
1552
|
-
};
|
|
1553
|
-
const se_GetPlatformApplicationAttributesInput = (input, context) => {
|
|
1554
|
-
const entries = {};
|
|
1555
|
-
if (input[_PAA] != null) {
|
|
1556
|
-
entries[_PAA] = input[_PAA];
|
|
1557
|
-
}
|
|
1558
|
-
return entries;
|
|
1559
|
-
};
|
|
1560
|
-
const se_GetSMSAttributesInput = (input, context) => {
|
|
1561
|
-
const entries = {};
|
|
1562
|
-
if (input[_a] != null) {
|
|
1563
|
-
const memberEntries = se_ListString(input[_a], context);
|
|
1564
|
-
if (input[_a]?.length === 0) {
|
|
1565
|
-
entries.attributes = [];
|
|
1566
|
-
}
|
|
1567
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1568
|
-
const loc = `attributes.${key}`;
|
|
1569
|
-
entries[loc] = value;
|
|
1570
|
-
});
|
|
1571
|
-
}
|
|
1572
|
-
return entries;
|
|
1573
|
-
};
|
|
1574
|
-
const se_GetSMSSandboxAccountStatusInput = (input, context) => {
|
|
1575
|
-
const entries = {};
|
|
1576
|
-
return entries;
|
|
1577
|
-
};
|
|
1578
|
-
const se_GetSubscriptionAttributesInput = (input, context) => {
|
|
1579
|
-
const entries = {};
|
|
1580
|
-
if (input[_SA] != null) {
|
|
1581
|
-
entries[_SA] = input[_SA];
|
|
1582
|
-
}
|
|
1583
|
-
return entries;
|
|
1584
|
-
};
|
|
1585
|
-
const se_GetTopicAttributesInput = (input, context) => {
|
|
1586
|
-
const entries = {};
|
|
1587
|
-
if (input[_TA] != null) {
|
|
1588
|
-
entries[_TA] = input[_TA];
|
|
1589
|
-
}
|
|
1590
|
-
return entries;
|
|
1591
|
-
};
|
|
1592
|
-
const se_ListEndpointsByPlatformApplicationInput = (input, context) => {
|
|
1593
|
-
const entries = {};
|
|
1594
|
-
if (input[_PAA] != null) {
|
|
1595
|
-
entries[_PAA] = input[_PAA];
|
|
1596
|
-
}
|
|
1597
|
-
if (input[_NT] != null) {
|
|
1598
|
-
entries[_NT] = input[_NT];
|
|
1599
|
-
}
|
|
1600
|
-
return entries;
|
|
1601
|
-
};
|
|
1602
|
-
const se_ListOriginationNumbersRequest = (input, context) => {
|
|
1603
|
-
const entries = {};
|
|
1604
|
-
if (input[_NT] != null) {
|
|
1605
|
-
entries[_NT] = input[_NT];
|
|
1606
|
-
}
|
|
1607
|
-
if (input[_MR] != null) {
|
|
1608
|
-
entries[_MR] = input[_MR];
|
|
1609
|
-
}
|
|
1610
|
-
return entries;
|
|
1611
|
-
};
|
|
1612
|
-
const se_ListPhoneNumbersOptedOutInput = (input, context) => {
|
|
1613
|
-
const entries = {};
|
|
1614
|
-
if (input[_nT] != null) {
|
|
1615
|
-
entries[_nT] = input[_nT];
|
|
1616
|
-
}
|
|
1617
|
-
return entries;
|
|
1618
|
-
};
|
|
1619
|
-
const se_ListPlatformApplicationsInput = (input, context) => {
|
|
1620
|
-
const entries = {};
|
|
1621
|
-
if (input[_NT] != null) {
|
|
1622
|
-
entries[_NT] = input[_NT];
|
|
1623
|
-
}
|
|
1624
|
-
return entries;
|
|
1625
|
-
};
|
|
1626
|
-
const se_ListSMSSandboxPhoneNumbersInput = (input, context) => {
|
|
1627
|
-
const entries = {};
|
|
1628
|
-
if (input[_NT] != null) {
|
|
1629
|
-
entries[_NT] = input[_NT];
|
|
1630
|
-
}
|
|
1631
|
-
if (input[_MR] != null) {
|
|
1632
|
-
entries[_MR] = input[_MR];
|
|
1633
|
-
}
|
|
1634
|
-
return entries;
|
|
1635
|
-
};
|
|
1636
|
-
const se_ListString = (input, context) => {
|
|
1637
|
-
const entries = {};
|
|
1638
|
-
let counter = 1;
|
|
1639
|
-
for (const entry of input) {
|
|
1640
|
-
if (entry === null) {
|
|
1641
|
-
continue;
|
|
1642
|
-
}
|
|
1643
|
-
entries[`member.${counter}`] = entry;
|
|
1644
|
-
counter++;
|
|
1645
|
-
}
|
|
1646
|
-
return entries;
|
|
1647
|
-
};
|
|
1648
|
-
const se_ListSubscriptionsByTopicInput = (input, context) => {
|
|
1649
|
-
const entries = {};
|
|
1650
|
-
if (input[_TA] != null) {
|
|
1651
|
-
entries[_TA] = input[_TA];
|
|
1652
|
-
}
|
|
1653
|
-
if (input[_NT] != null) {
|
|
1654
|
-
entries[_NT] = input[_NT];
|
|
1655
|
-
}
|
|
1656
|
-
return entries;
|
|
1657
|
-
};
|
|
1658
|
-
const se_ListSubscriptionsInput = (input, context) => {
|
|
1659
|
-
const entries = {};
|
|
1660
|
-
if (input[_NT] != null) {
|
|
1661
|
-
entries[_NT] = input[_NT];
|
|
1662
|
-
}
|
|
1663
|
-
return entries;
|
|
1664
|
-
};
|
|
1665
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
1666
|
-
const entries = {};
|
|
1667
|
-
if (input[_RA] != null) {
|
|
1668
|
-
entries[_RA] = input[_RA];
|
|
1669
|
-
}
|
|
1670
|
-
return entries;
|
|
1671
|
-
};
|
|
1672
|
-
const se_ListTopicsInput = (input, context) => {
|
|
1673
|
-
const entries = {};
|
|
1674
|
-
if (input[_NT] != null) {
|
|
1675
|
-
entries[_NT] = input[_NT];
|
|
1676
|
-
}
|
|
1677
|
-
return entries;
|
|
1678
|
-
};
|
|
1679
|
-
const se_MapStringToString = (input, context) => {
|
|
1680
|
-
const entries = {};
|
|
1681
|
-
let counter = 1;
|
|
1682
|
-
Object.keys(input)
|
|
1683
|
-
.filter((key) => input[key] != null)
|
|
1684
|
-
.forEach((key) => {
|
|
1685
|
-
entries[`entry.${counter}.key`] = key;
|
|
1686
|
-
entries[`entry.${counter}.value`] = input[key];
|
|
1687
|
-
counter++;
|
|
1688
|
-
});
|
|
1689
|
-
return entries;
|
|
1690
|
-
};
|
|
1691
|
-
const se_MessageAttributeMap = (input, context) => {
|
|
1692
|
-
const entries = {};
|
|
1693
|
-
let counter = 1;
|
|
1694
|
-
Object.keys(input)
|
|
1695
|
-
.filter((key) => input[key] != null)
|
|
1696
|
-
.forEach((key) => {
|
|
1697
|
-
entries[`entry.${counter}.Name`] = key;
|
|
1698
|
-
const memberEntries = se_MessageAttributeValue(input[key], context);
|
|
1699
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1700
|
-
entries[`entry.${counter}.Value.${key}`] = value;
|
|
1701
|
-
});
|
|
1702
|
-
counter++;
|
|
1703
|
-
});
|
|
1704
|
-
return entries;
|
|
1705
|
-
};
|
|
1706
|
-
const se_MessageAttributeValue = (input, context) => {
|
|
1707
|
-
const entries = {};
|
|
1708
|
-
if (input[_DTa] != null) {
|
|
1709
|
-
entries[_DTa] = input[_DTa];
|
|
1710
|
-
}
|
|
1711
|
-
if (input[_SV] != null) {
|
|
1712
|
-
entries[_SV] = input[_SV];
|
|
1713
|
-
}
|
|
1714
|
-
if (input[_BV] != null) {
|
|
1715
|
-
entries[_BV] = context.base64Encoder(input[_BV]);
|
|
1716
|
-
}
|
|
1717
|
-
return entries;
|
|
1718
|
-
};
|
|
1719
|
-
const se_OptInPhoneNumberInput = (input, context) => {
|
|
1720
|
-
const entries = {};
|
|
1721
|
-
if (input[_pN] != null) {
|
|
1722
|
-
entries[_pN] = input[_pN];
|
|
1723
|
-
}
|
|
1724
|
-
return entries;
|
|
1725
|
-
};
|
|
1726
|
-
const se_PublishBatchInput = (input, context) => {
|
|
1727
|
-
const entries = {};
|
|
1728
|
-
if (input[_TA] != null) {
|
|
1729
|
-
entries[_TA] = input[_TA];
|
|
1730
|
-
}
|
|
1731
|
-
if (input[_PBRE] != null) {
|
|
1732
|
-
const memberEntries = se_PublishBatchRequestEntryList(input[_PBRE], context);
|
|
1733
|
-
if (input[_PBRE]?.length === 0) {
|
|
1734
|
-
entries.PublishBatchRequestEntries = [];
|
|
1735
|
-
}
|
|
1736
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1737
|
-
const loc = `PublishBatchRequestEntries.${key}`;
|
|
1738
|
-
entries[loc] = value;
|
|
1739
|
-
});
|
|
1740
|
-
}
|
|
1741
|
-
return entries;
|
|
1742
|
-
};
|
|
1743
|
-
const se_PublishBatchRequestEntry = (input, context) => {
|
|
1744
|
-
const entries = {};
|
|
1745
|
-
if (input[_I] != null) {
|
|
1746
|
-
entries[_I] = input[_I];
|
|
1747
|
-
}
|
|
1748
|
-
if (input[_M] != null) {
|
|
1749
|
-
entries[_M] = input[_M];
|
|
1750
|
-
}
|
|
1751
|
-
if (input[_Su] != null) {
|
|
1752
|
-
entries[_Su] = input[_Su];
|
|
1753
|
-
}
|
|
1754
|
-
if (input[_MS] != null) {
|
|
1755
|
-
entries[_MS] = input[_MS];
|
|
1756
|
-
}
|
|
1757
|
-
if (input[_MA] != null) {
|
|
1758
|
-
const memberEntries = se_MessageAttributeMap(input[_MA], context);
|
|
1759
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1760
|
-
const loc = `MessageAttributes.${key}`;
|
|
1761
|
-
entries[loc] = value;
|
|
1762
|
-
});
|
|
1763
|
-
}
|
|
1764
|
-
if (input[_MDI] != null) {
|
|
1765
|
-
entries[_MDI] = input[_MDI];
|
|
1766
|
-
}
|
|
1767
|
-
if (input[_MGI] != null) {
|
|
1768
|
-
entries[_MGI] = input[_MGI];
|
|
1769
|
-
}
|
|
1770
|
-
return entries;
|
|
1771
|
-
};
|
|
1772
|
-
const se_PublishBatchRequestEntryList = (input, context) => {
|
|
1773
|
-
const entries = {};
|
|
1774
|
-
let counter = 1;
|
|
1775
|
-
for (const entry of input) {
|
|
1776
|
-
if (entry === null) {
|
|
1777
|
-
continue;
|
|
1778
|
-
}
|
|
1779
|
-
const memberEntries = se_PublishBatchRequestEntry(entry, context);
|
|
1780
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1781
|
-
entries[`member.${counter}.${key}`] = value;
|
|
1782
|
-
});
|
|
1783
|
-
counter++;
|
|
1784
|
-
}
|
|
1785
|
-
return entries;
|
|
1786
|
-
};
|
|
1787
|
-
const se_PublishInput = (input, context) => {
|
|
1788
|
-
const entries = {};
|
|
1789
|
-
if (input[_TA] != null) {
|
|
1790
|
-
entries[_TA] = input[_TA];
|
|
1791
|
-
}
|
|
1792
|
-
if (input[_TAa] != null) {
|
|
1793
|
-
entries[_TAa] = input[_TAa];
|
|
1794
|
-
}
|
|
1795
|
-
if (input[_PN] != null) {
|
|
1796
|
-
entries[_PN] = input[_PN];
|
|
1797
|
-
}
|
|
1798
|
-
if (input[_M] != null) {
|
|
1799
|
-
entries[_M] = input[_M];
|
|
1800
|
-
}
|
|
1801
|
-
if (input[_Su] != null) {
|
|
1802
|
-
entries[_Su] = input[_Su];
|
|
1803
|
-
}
|
|
1804
|
-
if (input[_MS] != null) {
|
|
1805
|
-
entries[_MS] = input[_MS];
|
|
1806
|
-
}
|
|
1807
|
-
if (input[_MA] != null) {
|
|
1808
|
-
const memberEntries = se_MessageAttributeMap(input[_MA], context);
|
|
1809
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1810
|
-
const loc = `MessageAttributes.${key}`;
|
|
1811
|
-
entries[loc] = value;
|
|
1812
|
-
});
|
|
1813
|
-
}
|
|
1814
|
-
if (input[_MDI] != null) {
|
|
1815
|
-
entries[_MDI] = input[_MDI];
|
|
1816
|
-
}
|
|
1817
|
-
if (input[_MGI] != null) {
|
|
1818
|
-
entries[_MGI] = input[_MGI];
|
|
1819
|
-
}
|
|
1820
|
-
return entries;
|
|
1821
|
-
};
|
|
1822
|
-
const se_PutDataProtectionPolicyInput = (input, context) => {
|
|
1823
|
-
const entries = {};
|
|
1824
|
-
if (input[_RA] != null) {
|
|
1825
|
-
entries[_RA] = input[_RA];
|
|
1826
|
-
}
|
|
1827
|
-
if (input[_DPP] != null) {
|
|
1828
|
-
entries[_DPP] = input[_DPP];
|
|
1829
|
-
}
|
|
1830
|
-
return entries;
|
|
1831
|
-
};
|
|
1832
|
-
const se_RemovePermissionInput = (input, context) => {
|
|
1833
|
-
const entries = {};
|
|
1834
|
-
if (input[_TA] != null) {
|
|
1835
|
-
entries[_TA] = input[_TA];
|
|
1836
|
-
}
|
|
1837
|
-
if (input[_L] != null) {
|
|
1838
|
-
entries[_L] = input[_L];
|
|
1839
|
-
}
|
|
1840
|
-
return entries;
|
|
1841
|
-
};
|
|
1842
|
-
const se_SetEndpointAttributesInput = (input, context) => {
|
|
1843
|
-
const entries = {};
|
|
1844
|
-
if (input[_EA] != null) {
|
|
1845
|
-
entries[_EA] = input[_EA];
|
|
1846
|
-
}
|
|
1847
|
-
if (input[_At] != null) {
|
|
1848
|
-
const memberEntries = se_MapStringToString(input[_At], context);
|
|
1849
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1850
|
-
const loc = `Attributes.${key}`;
|
|
1851
|
-
entries[loc] = value;
|
|
1852
|
-
});
|
|
1853
|
-
}
|
|
1854
|
-
return entries;
|
|
1855
|
-
};
|
|
1856
|
-
const se_SetPlatformApplicationAttributesInput = (input, context) => {
|
|
1857
|
-
const entries = {};
|
|
1858
|
-
if (input[_PAA] != null) {
|
|
1859
|
-
entries[_PAA] = input[_PAA];
|
|
1860
|
-
}
|
|
1861
|
-
if (input[_At] != null) {
|
|
1862
|
-
const memberEntries = se_MapStringToString(input[_At], context);
|
|
1863
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1864
|
-
const loc = `Attributes.${key}`;
|
|
1865
|
-
entries[loc] = value;
|
|
1866
|
-
});
|
|
1867
|
-
}
|
|
1868
|
-
return entries;
|
|
1869
|
-
};
|
|
1870
|
-
const se_SetSMSAttributesInput = (input, context) => {
|
|
1871
|
-
const entries = {};
|
|
1872
|
-
if (input[_a] != null) {
|
|
1873
|
-
const memberEntries = se_MapStringToString(input[_a], context);
|
|
1874
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1875
|
-
const loc = `attributes.${key}`;
|
|
1876
|
-
entries[loc] = value;
|
|
1877
|
-
});
|
|
1878
|
-
}
|
|
1879
|
-
return entries;
|
|
1880
|
-
};
|
|
1881
|
-
const se_SetSubscriptionAttributesInput = (input, context) => {
|
|
1882
|
-
const entries = {};
|
|
1883
|
-
if (input[_SA] != null) {
|
|
1884
|
-
entries[_SA] = input[_SA];
|
|
1885
|
-
}
|
|
1886
|
-
if (input[_ANt] != null) {
|
|
1887
|
-
entries[_ANt] = input[_ANt];
|
|
1888
|
-
}
|
|
1889
|
-
if (input[_AV] != null) {
|
|
1890
|
-
entries[_AV] = input[_AV];
|
|
1891
|
-
}
|
|
1892
|
-
return entries;
|
|
1893
|
-
};
|
|
1894
|
-
const se_SetTopicAttributesInput = (input, context) => {
|
|
1895
|
-
const entries = {};
|
|
1896
|
-
if (input[_TA] != null) {
|
|
1897
|
-
entries[_TA] = input[_TA];
|
|
1898
|
-
}
|
|
1899
|
-
if (input[_ANt] != null) {
|
|
1900
|
-
entries[_ANt] = input[_ANt];
|
|
1901
|
-
}
|
|
1902
|
-
if (input[_AV] != null) {
|
|
1903
|
-
entries[_AV] = input[_AV];
|
|
1904
|
-
}
|
|
1905
|
-
return entries;
|
|
1906
|
-
};
|
|
1907
|
-
const se_SubscribeInput = (input, context) => {
|
|
1908
|
-
const entries = {};
|
|
1909
|
-
if (input[_TA] != null) {
|
|
1910
|
-
entries[_TA] = input[_TA];
|
|
1911
|
-
}
|
|
1912
|
-
if (input[_Pr] != null) {
|
|
1913
|
-
entries[_Pr] = input[_Pr];
|
|
1914
|
-
}
|
|
1915
|
-
if (input[_E] != null) {
|
|
1916
|
-
entries[_E] = input[_E];
|
|
1917
|
-
}
|
|
1918
|
-
if (input[_At] != null) {
|
|
1919
|
-
const memberEntries = se_SubscriptionAttributesMap(input[_At], context);
|
|
1920
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1921
|
-
const loc = `Attributes.${key}`;
|
|
1922
|
-
entries[loc] = value;
|
|
1923
|
-
});
|
|
1924
|
-
}
|
|
1925
|
-
if (input[_RSA] != null) {
|
|
1926
|
-
entries[_RSA] = input[_RSA];
|
|
1927
|
-
}
|
|
1928
|
-
return entries;
|
|
1929
|
-
};
|
|
1930
|
-
const se_SubscriptionAttributesMap = (input, context) => {
|
|
1931
|
-
const entries = {};
|
|
1932
|
-
let counter = 1;
|
|
1933
|
-
Object.keys(input)
|
|
1934
|
-
.filter((key) => input[key] != null)
|
|
1935
|
-
.forEach((key) => {
|
|
1936
|
-
entries[`entry.${counter}.key`] = key;
|
|
1937
|
-
entries[`entry.${counter}.value`] = input[key];
|
|
1938
|
-
counter++;
|
|
1939
|
-
});
|
|
1940
|
-
return entries;
|
|
1941
|
-
};
|
|
1942
|
-
const se_Tag = (input, context) => {
|
|
1943
|
-
const entries = {};
|
|
1944
|
-
if (input[_K] != null) {
|
|
1945
|
-
entries[_K] = input[_K];
|
|
1946
|
-
}
|
|
1947
|
-
if (input[_Va] != null) {
|
|
1948
|
-
entries[_Va] = input[_Va];
|
|
1949
|
-
}
|
|
1950
|
-
return entries;
|
|
1951
|
-
};
|
|
1952
|
-
const se_TagKeyList = (input, context) => {
|
|
1953
|
-
const entries = {};
|
|
1954
|
-
let counter = 1;
|
|
1955
|
-
for (const entry of input) {
|
|
1956
|
-
if (entry === null) {
|
|
1957
|
-
continue;
|
|
1958
|
-
}
|
|
1959
|
-
entries[`member.${counter}`] = entry;
|
|
1960
|
-
counter++;
|
|
1961
|
-
}
|
|
1962
|
-
return entries;
|
|
1963
|
-
};
|
|
1964
|
-
const se_TagList = (input, context) => {
|
|
1965
|
-
const entries = {};
|
|
1966
|
-
let counter = 1;
|
|
1967
|
-
for (const entry of input) {
|
|
1968
|
-
if (entry === null) {
|
|
1969
|
-
continue;
|
|
1970
|
-
}
|
|
1971
|
-
const memberEntries = se_Tag(entry, context);
|
|
1972
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1973
|
-
entries[`member.${counter}.${key}`] = value;
|
|
1974
|
-
});
|
|
1975
|
-
counter++;
|
|
1976
|
-
}
|
|
1977
|
-
return entries;
|
|
1978
|
-
};
|
|
1979
|
-
const se_TagResourceRequest = (input, context) => {
|
|
1980
|
-
const entries = {};
|
|
1981
|
-
if (input[_RA] != null) {
|
|
1982
|
-
entries[_RA] = input[_RA];
|
|
1983
|
-
}
|
|
1984
|
-
if (input[_Ta] != null) {
|
|
1985
|
-
const memberEntries = se_TagList(input[_Ta], context);
|
|
1986
|
-
if (input[_Ta]?.length === 0) {
|
|
1987
|
-
entries.Tags = [];
|
|
1988
|
-
}
|
|
1989
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1990
|
-
const loc = `Tags.${key}`;
|
|
1991
|
-
entries[loc] = value;
|
|
1992
|
-
});
|
|
1993
|
-
}
|
|
1994
|
-
return entries;
|
|
1995
|
-
};
|
|
1996
|
-
const se_TopicAttributesMap = (input, context) => {
|
|
1997
|
-
const entries = {};
|
|
1998
|
-
let counter = 1;
|
|
1999
|
-
Object.keys(input)
|
|
2000
|
-
.filter((key) => input[key] != null)
|
|
2001
|
-
.forEach((key) => {
|
|
2002
|
-
entries[`entry.${counter}.key`] = key;
|
|
2003
|
-
entries[`entry.${counter}.value`] = input[key];
|
|
2004
|
-
counter++;
|
|
2005
|
-
});
|
|
2006
|
-
return entries;
|
|
2007
|
-
};
|
|
2008
|
-
const se_UnsubscribeInput = (input, context) => {
|
|
2009
|
-
const entries = {};
|
|
2010
|
-
if (input[_SA] != null) {
|
|
2011
|
-
entries[_SA] = input[_SA];
|
|
2012
|
-
}
|
|
2013
|
-
return entries;
|
|
2014
|
-
};
|
|
2015
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
2016
|
-
const entries = {};
|
|
2017
|
-
if (input[_RA] != null) {
|
|
2018
|
-
entries[_RA] = input[_RA];
|
|
2019
|
-
}
|
|
2020
|
-
if (input[_TK] != null) {
|
|
2021
|
-
const memberEntries = se_TagKeyList(input[_TK], context);
|
|
2022
|
-
if (input[_TK]?.length === 0) {
|
|
2023
|
-
entries.TagKeys = [];
|
|
2024
|
-
}
|
|
2025
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2026
|
-
const loc = `TagKeys.${key}`;
|
|
2027
|
-
entries[loc] = value;
|
|
2028
|
-
});
|
|
2029
|
-
}
|
|
2030
|
-
return entries;
|
|
2031
|
-
};
|
|
2032
|
-
const se_VerifySMSSandboxPhoneNumberInput = (input, context) => {
|
|
2033
|
-
const entries = {};
|
|
2034
|
-
if (input[_PN] != null) {
|
|
2035
|
-
entries[_PN] = input[_PN];
|
|
2036
|
-
}
|
|
2037
|
-
if (input[_OTP] != null) {
|
|
2038
|
-
entries[_OTP] = input[_OTP];
|
|
2039
|
-
}
|
|
2040
|
-
return entries;
|
|
2041
|
-
};
|
|
2042
|
-
const de_AuthorizationErrorException = (output, context) => {
|
|
2043
|
-
const contents = {};
|
|
2044
|
-
if (output[_m] != null) {
|
|
2045
|
-
contents[_m] = __expectString(output[_m]);
|
|
2046
|
-
}
|
|
2047
|
-
return contents;
|
|
2048
|
-
};
|
|
2049
|
-
const de_BatchEntryIdsNotDistinctException = (output, context) => {
|
|
2050
|
-
const contents = {};
|
|
2051
|
-
if (output[_m] != null) {
|
|
2052
|
-
contents[_m] = __expectString(output[_m]);
|
|
2053
|
-
}
|
|
2054
|
-
return contents;
|
|
2055
|
-
};
|
|
2056
|
-
const de_BatchRequestTooLongException = (output, context) => {
|
|
2057
|
-
const contents = {};
|
|
2058
|
-
if (output[_m] != null) {
|
|
2059
|
-
contents[_m] = __expectString(output[_m]);
|
|
2060
|
-
}
|
|
2061
|
-
return contents;
|
|
2062
|
-
};
|
|
2063
|
-
const de_BatchResultErrorEntry = (output, context) => {
|
|
2064
|
-
const contents = {};
|
|
2065
|
-
if (output[_I] != null) {
|
|
2066
|
-
contents[_I] = __expectString(output[_I]);
|
|
2067
|
-
}
|
|
2068
|
-
if (output[_C] != null) {
|
|
2069
|
-
contents[_C] = __expectString(output[_C]);
|
|
2070
|
-
}
|
|
2071
|
-
if (output[_M] != null) {
|
|
2072
|
-
contents[_M] = __expectString(output[_M]);
|
|
2073
|
-
}
|
|
2074
|
-
if (output[_SF] != null) {
|
|
2075
|
-
contents[_SF] = __parseBoolean(output[_SF]);
|
|
2076
|
-
}
|
|
2077
|
-
return contents;
|
|
2078
|
-
};
|
|
2079
|
-
const de_BatchResultErrorEntryList = (output, context) => {
|
|
2080
|
-
return (output || [])
|
|
2081
|
-
.filter((e) => e != null)
|
|
2082
|
-
.map((entry) => {
|
|
2083
|
-
return de_BatchResultErrorEntry(entry, context);
|
|
2084
|
-
});
|
|
2085
|
-
};
|
|
2086
|
-
const de_CheckIfPhoneNumberIsOptedOutResponse = (output, context) => {
|
|
2087
|
-
const contents = {};
|
|
2088
|
-
if (output[_iOO] != null) {
|
|
2089
|
-
contents[_iOO] = __parseBoolean(output[_iOO]);
|
|
2090
|
-
}
|
|
2091
|
-
return contents;
|
|
2092
|
-
};
|
|
2093
|
-
const de_ConcurrentAccessException = (output, context) => {
|
|
2094
|
-
const contents = {};
|
|
2095
|
-
if (output[_m] != null) {
|
|
2096
|
-
contents[_m] = __expectString(output[_m]);
|
|
2097
|
-
}
|
|
2098
|
-
return contents;
|
|
2099
|
-
};
|
|
2100
|
-
const de_ConfirmSubscriptionResponse = (output, context) => {
|
|
2101
|
-
const contents = {};
|
|
2102
|
-
if (output[_SA] != null) {
|
|
2103
|
-
contents[_SA] = __expectString(output[_SA]);
|
|
2104
|
-
}
|
|
2105
|
-
return contents;
|
|
2106
|
-
};
|
|
2107
|
-
const de_CreateEndpointResponse = (output, context) => {
|
|
2108
|
-
const contents = {};
|
|
2109
|
-
if (output[_EA] != null) {
|
|
2110
|
-
contents[_EA] = __expectString(output[_EA]);
|
|
2111
|
-
}
|
|
2112
|
-
return contents;
|
|
2113
|
-
};
|
|
2114
|
-
const de_CreatePlatformApplicationResponse = (output, context) => {
|
|
2115
|
-
const contents = {};
|
|
2116
|
-
if (output[_PAA] != null) {
|
|
2117
|
-
contents[_PAA] = __expectString(output[_PAA]);
|
|
2118
|
-
}
|
|
2119
|
-
return contents;
|
|
2120
|
-
};
|
|
2121
|
-
const de_CreateSMSSandboxPhoneNumberResult = (output, context) => {
|
|
2122
|
-
const contents = {};
|
|
2123
|
-
return contents;
|
|
2124
|
-
};
|
|
2125
|
-
const de_CreateTopicResponse = (output, context) => {
|
|
2126
|
-
const contents = {};
|
|
2127
|
-
if (output[_TA] != null) {
|
|
2128
|
-
contents[_TA] = __expectString(output[_TA]);
|
|
2129
|
-
}
|
|
2130
|
-
return contents;
|
|
2131
|
-
};
|
|
2132
|
-
const de_DeleteSMSSandboxPhoneNumberResult = (output, context) => {
|
|
2133
|
-
const contents = {};
|
|
2134
|
-
return contents;
|
|
2135
|
-
};
|
|
2136
|
-
const de_EmptyBatchRequestException = (output, context) => {
|
|
2137
|
-
const contents = {};
|
|
2138
|
-
if (output[_m] != null) {
|
|
2139
|
-
contents[_m] = __expectString(output[_m]);
|
|
2140
|
-
}
|
|
2141
|
-
return contents;
|
|
2142
|
-
};
|
|
2143
|
-
const de_Endpoint = (output, context) => {
|
|
2144
|
-
const contents = {};
|
|
2145
|
-
if (output[_EA] != null) {
|
|
2146
|
-
contents[_EA] = __expectString(output[_EA]);
|
|
2147
|
-
}
|
|
2148
|
-
if (String(output.Attributes).trim() === "") {
|
|
2149
|
-
contents[_At] = {};
|
|
2150
|
-
}
|
|
2151
|
-
else if (output[_At] != null && output[_At][_e] != null) {
|
|
2152
|
-
contents[_At] = de_MapStringToString(__getArrayIfSingleItem(output[_At][_e]), context);
|
|
2153
|
-
}
|
|
2154
|
-
return contents;
|
|
2155
|
-
};
|
|
2156
|
-
const de_EndpointDisabledException = (output, context) => {
|
|
2157
|
-
const contents = {};
|
|
2158
|
-
if (output[_m] != null) {
|
|
2159
|
-
contents[_m] = __expectString(output[_m]);
|
|
2160
|
-
}
|
|
2161
|
-
return contents;
|
|
2162
|
-
};
|
|
2163
|
-
const de_FilterPolicyLimitExceededException = (output, context) => {
|
|
2164
|
-
const contents = {};
|
|
2165
|
-
if (output[_m] != null) {
|
|
2166
|
-
contents[_m] = __expectString(output[_m]);
|
|
2167
|
-
}
|
|
2168
|
-
return contents;
|
|
2169
|
-
};
|
|
2170
|
-
const de_GetDataProtectionPolicyResponse = (output, context) => {
|
|
2171
|
-
const contents = {};
|
|
2172
|
-
if (output[_DPP] != null) {
|
|
2173
|
-
contents[_DPP] = __expectString(output[_DPP]);
|
|
2174
|
-
}
|
|
2175
|
-
return contents;
|
|
2176
|
-
};
|
|
2177
|
-
const de_GetEndpointAttributesResponse = (output, context) => {
|
|
2178
|
-
const contents = {};
|
|
2179
|
-
if (String(output.Attributes).trim() === "") {
|
|
2180
|
-
contents[_At] = {};
|
|
2181
|
-
}
|
|
2182
|
-
else if (output[_At] != null && output[_At][_e] != null) {
|
|
2183
|
-
contents[_At] = de_MapStringToString(__getArrayIfSingleItem(output[_At][_e]), context);
|
|
2184
|
-
}
|
|
2185
|
-
return contents;
|
|
2186
|
-
};
|
|
2187
|
-
const de_GetPlatformApplicationAttributesResponse = (output, context) => {
|
|
2188
|
-
const contents = {};
|
|
2189
|
-
if (String(output.Attributes).trim() === "") {
|
|
2190
|
-
contents[_At] = {};
|
|
2191
|
-
}
|
|
2192
|
-
else if (output[_At] != null && output[_At][_e] != null) {
|
|
2193
|
-
contents[_At] = de_MapStringToString(__getArrayIfSingleItem(output[_At][_e]), context);
|
|
2194
|
-
}
|
|
2195
|
-
return contents;
|
|
2196
|
-
};
|
|
2197
|
-
const de_GetSMSAttributesResponse = (output, context) => {
|
|
2198
|
-
const contents = {};
|
|
2199
|
-
if (String(output.attributes).trim() === "") {
|
|
2200
|
-
contents[_a] = {};
|
|
2201
|
-
}
|
|
2202
|
-
else if (output[_a] != null && output[_a][_e] != null) {
|
|
2203
|
-
contents[_a] = de_MapStringToString(__getArrayIfSingleItem(output[_a][_e]), context);
|
|
2204
|
-
}
|
|
2205
|
-
return contents;
|
|
2206
|
-
};
|
|
2207
|
-
const de_GetSMSSandboxAccountStatusResult = (output, context) => {
|
|
2208
|
-
const contents = {};
|
|
2209
|
-
if (output[_IIS] != null) {
|
|
2210
|
-
contents[_IIS] = __parseBoolean(output[_IIS]);
|
|
2211
|
-
}
|
|
2212
|
-
return contents;
|
|
2213
|
-
};
|
|
2214
|
-
const de_GetSubscriptionAttributesResponse = (output, context) => {
|
|
2215
|
-
const contents = {};
|
|
2216
|
-
if (String(output.Attributes).trim() === "") {
|
|
2217
|
-
contents[_At] = {};
|
|
2218
|
-
}
|
|
2219
|
-
else if (output[_At] != null && output[_At][_e] != null) {
|
|
2220
|
-
contents[_At] = de_SubscriptionAttributesMap(__getArrayIfSingleItem(output[_At][_e]), context);
|
|
2221
|
-
}
|
|
2222
|
-
return contents;
|
|
2223
|
-
};
|
|
2224
|
-
const de_GetTopicAttributesResponse = (output, context) => {
|
|
2225
|
-
const contents = {};
|
|
2226
|
-
if (String(output.Attributes).trim() === "") {
|
|
2227
|
-
contents[_At] = {};
|
|
2228
|
-
}
|
|
2229
|
-
else if (output[_At] != null && output[_At][_e] != null) {
|
|
2230
|
-
contents[_At] = de_TopicAttributesMap(__getArrayIfSingleItem(output[_At][_e]), context);
|
|
2231
|
-
}
|
|
2232
|
-
return contents;
|
|
2233
|
-
};
|
|
2234
|
-
const de_InternalErrorException = (output, context) => {
|
|
2235
|
-
const contents = {};
|
|
2236
|
-
if (output[_m] != null) {
|
|
2237
|
-
contents[_m] = __expectString(output[_m]);
|
|
2238
|
-
}
|
|
2239
|
-
return contents;
|
|
2240
|
-
};
|
|
2241
|
-
const de_InvalidBatchEntryIdException = (output, context) => {
|
|
2242
|
-
const contents = {};
|
|
2243
|
-
if (output[_m] != null) {
|
|
2244
|
-
contents[_m] = __expectString(output[_m]);
|
|
2245
|
-
}
|
|
2246
|
-
return contents;
|
|
2247
|
-
};
|
|
2248
|
-
const de_InvalidParameterException = (output, context) => {
|
|
2249
|
-
const contents = {};
|
|
2250
|
-
if (output[_m] != null) {
|
|
2251
|
-
contents[_m] = __expectString(output[_m]);
|
|
2252
|
-
}
|
|
2253
|
-
return contents;
|
|
2254
|
-
};
|
|
2255
|
-
const de_InvalidParameterValueException = (output, context) => {
|
|
2256
|
-
const contents = {};
|
|
2257
|
-
if (output[_m] != null) {
|
|
2258
|
-
contents[_m] = __expectString(output[_m]);
|
|
2259
|
-
}
|
|
2260
|
-
return contents;
|
|
2261
|
-
};
|
|
2262
|
-
const de_InvalidSecurityException = (output, context) => {
|
|
2263
|
-
const contents = {};
|
|
2264
|
-
if (output[_m] != null) {
|
|
2265
|
-
contents[_m] = __expectString(output[_m]);
|
|
2266
|
-
}
|
|
2267
|
-
return contents;
|
|
2268
|
-
};
|
|
2269
|
-
const de_InvalidStateException = (output, context) => {
|
|
2270
|
-
const contents = {};
|
|
2271
|
-
if (output[_m] != null) {
|
|
2272
|
-
contents[_m] = __expectString(output[_m]);
|
|
2273
|
-
}
|
|
2274
|
-
return contents;
|
|
2275
|
-
};
|
|
2276
|
-
const de_KMSAccessDeniedException = (output, context) => {
|
|
2277
|
-
const contents = {};
|
|
2278
|
-
if (output[_m] != null) {
|
|
2279
|
-
contents[_m] = __expectString(output[_m]);
|
|
2280
|
-
}
|
|
2281
|
-
return contents;
|
|
2282
|
-
};
|
|
2283
|
-
const de_KMSDisabledException = (output, context) => {
|
|
2284
|
-
const contents = {};
|
|
2285
|
-
if (output[_m] != null) {
|
|
2286
|
-
contents[_m] = __expectString(output[_m]);
|
|
2287
|
-
}
|
|
2288
|
-
return contents;
|
|
2289
|
-
};
|
|
2290
|
-
const de_KMSInvalidStateException = (output, context) => {
|
|
2291
|
-
const contents = {};
|
|
2292
|
-
if (output[_m] != null) {
|
|
2293
|
-
contents[_m] = __expectString(output[_m]);
|
|
2294
|
-
}
|
|
2295
|
-
return contents;
|
|
2296
|
-
};
|
|
2297
|
-
const de_KMSNotFoundException = (output, context) => {
|
|
2298
|
-
const contents = {};
|
|
2299
|
-
if (output[_m] != null) {
|
|
2300
|
-
contents[_m] = __expectString(output[_m]);
|
|
2301
|
-
}
|
|
2302
|
-
return contents;
|
|
2303
|
-
};
|
|
2304
|
-
const de_KMSOptInRequired = (output, context) => {
|
|
2305
|
-
const contents = {};
|
|
2306
|
-
if (output[_m] != null) {
|
|
2307
|
-
contents[_m] = __expectString(output[_m]);
|
|
2308
|
-
}
|
|
2309
|
-
return contents;
|
|
2310
|
-
};
|
|
2311
|
-
const de_KMSThrottlingException = (output, context) => {
|
|
2312
|
-
const contents = {};
|
|
2313
|
-
if (output[_m] != null) {
|
|
2314
|
-
contents[_m] = __expectString(output[_m]);
|
|
2315
|
-
}
|
|
2316
|
-
return contents;
|
|
2317
|
-
};
|
|
2318
|
-
const de_ListEndpointsByPlatformApplicationResponse = (output, context) => {
|
|
2319
|
-
const contents = {};
|
|
2320
|
-
if (String(output.Endpoints).trim() === "") {
|
|
2321
|
-
contents[_En] = [];
|
|
2322
|
-
}
|
|
2323
|
-
else if (output[_En] != null && output[_En][_me] != null) {
|
|
2324
|
-
contents[_En] = de_ListOfEndpoints(__getArrayIfSingleItem(output[_En][_me]), context);
|
|
2325
|
-
}
|
|
2326
|
-
if (output[_NT] != null) {
|
|
2327
|
-
contents[_NT] = __expectString(output[_NT]);
|
|
2328
|
-
}
|
|
2329
|
-
return contents;
|
|
2330
|
-
};
|
|
2331
|
-
const de_ListOfEndpoints = (output, context) => {
|
|
2332
|
-
return (output || [])
|
|
2333
|
-
.filter((e) => e != null)
|
|
2334
|
-
.map((entry) => {
|
|
2335
|
-
return de_Endpoint(entry, context);
|
|
2336
|
-
});
|
|
2337
|
-
};
|
|
2338
|
-
const de_ListOfPlatformApplications = (output, context) => {
|
|
2339
|
-
return (output || [])
|
|
2340
|
-
.filter((e) => e != null)
|
|
2341
|
-
.map((entry) => {
|
|
2342
|
-
return de_PlatformApplication(entry, context);
|
|
2343
|
-
});
|
|
2344
|
-
};
|
|
2345
|
-
const de_ListOriginationNumbersResult = (output, context) => {
|
|
2346
|
-
const contents = {};
|
|
2347
|
-
if (output[_NT] != null) {
|
|
2348
|
-
contents[_NT] = __expectString(output[_NT]);
|
|
2349
|
-
}
|
|
2350
|
-
if (String(output.PhoneNumbers).trim() === "") {
|
|
2351
|
-
contents[_PNh] = [];
|
|
2352
|
-
}
|
|
2353
|
-
else if (output[_PNh] != null && output[_PNh][_me] != null) {
|
|
2354
|
-
contents[_PNh] = de_PhoneNumberInformationList(__getArrayIfSingleItem(output[_PNh][_me]), context);
|
|
2355
|
-
}
|
|
2356
|
-
return contents;
|
|
2357
|
-
};
|
|
2358
|
-
const de_ListPhoneNumbersOptedOutResponse = (output, context) => {
|
|
2359
|
-
const contents = {};
|
|
2360
|
-
if (String(output.phoneNumbers).trim() === "") {
|
|
2361
|
-
contents[_pNh] = [];
|
|
2362
|
-
}
|
|
2363
|
-
else if (output[_pNh] != null && output[_pNh][_me] != null) {
|
|
2364
|
-
contents[_pNh] = de_PhoneNumberList(__getArrayIfSingleItem(output[_pNh][_me]), context);
|
|
2365
|
-
}
|
|
2366
|
-
if (output[_nT] != null) {
|
|
2367
|
-
contents[_nT] = __expectString(output[_nT]);
|
|
2368
|
-
}
|
|
2369
|
-
return contents;
|
|
2370
|
-
};
|
|
2371
|
-
const de_ListPlatformApplicationsResponse = (output, context) => {
|
|
2372
|
-
const contents = {};
|
|
2373
|
-
if (String(output.PlatformApplications).trim() === "") {
|
|
2374
|
-
contents[_PA] = [];
|
|
2375
|
-
}
|
|
2376
|
-
else if (output[_PA] != null && output[_PA][_me] != null) {
|
|
2377
|
-
contents[_PA] = de_ListOfPlatformApplications(__getArrayIfSingleItem(output[_PA][_me]), context);
|
|
2378
|
-
}
|
|
2379
|
-
if (output[_NT] != null) {
|
|
2380
|
-
contents[_NT] = __expectString(output[_NT]);
|
|
2381
|
-
}
|
|
2382
|
-
return contents;
|
|
2383
|
-
};
|
|
2384
|
-
const de_ListSMSSandboxPhoneNumbersResult = (output, context) => {
|
|
2385
|
-
const contents = {};
|
|
2386
|
-
if (String(output.PhoneNumbers).trim() === "") {
|
|
2387
|
-
contents[_PNh] = [];
|
|
2388
|
-
}
|
|
2389
|
-
else if (output[_PNh] != null && output[_PNh][_me] != null) {
|
|
2390
|
-
contents[_PNh] = de_SMSSandboxPhoneNumberList(__getArrayIfSingleItem(output[_PNh][_me]), context);
|
|
2391
|
-
}
|
|
2392
|
-
if (output[_NT] != null) {
|
|
2393
|
-
contents[_NT] = __expectString(output[_NT]);
|
|
2394
|
-
}
|
|
2395
|
-
return contents;
|
|
2396
|
-
};
|
|
2397
|
-
const de_ListSubscriptionsByTopicResponse = (output, context) => {
|
|
2398
|
-
const contents = {};
|
|
2399
|
-
if (String(output.Subscriptions).trim() === "") {
|
|
2400
|
-
contents[_Sub] = [];
|
|
2401
|
-
}
|
|
2402
|
-
else if (output[_Sub] != null && output[_Sub][_me] != null) {
|
|
2403
|
-
contents[_Sub] = de_SubscriptionsList(__getArrayIfSingleItem(output[_Sub][_me]), context);
|
|
2404
|
-
}
|
|
2405
|
-
if (output[_NT] != null) {
|
|
2406
|
-
contents[_NT] = __expectString(output[_NT]);
|
|
2407
|
-
}
|
|
2408
|
-
return contents;
|
|
2409
|
-
};
|
|
2410
|
-
const de_ListSubscriptionsResponse = (output, context) => {
|
|
2411
|
-
const contents = {};
|
|
2412
|
-
if (String(output.Subscriptions).trim() === "") {
|
|
2413
|
-
contents[_Sub] = [];
|
|
2414
|
-
}
|
|
2415
|
-
else if (output[_Sub] != null && output[_Sub][_me] != null) {
|
|
2416
|
-
contents[_Sub] = de_SubscriptionsList(__getArrayIfSingleItem(output[_Sub][_me]), context);
|
|
2417
|
-
}
|
|
2418
|
-
if (output[_NT] != null) {
|
|
2419
|
-
contents[_NT] = __expectString(output[_NT]);
|
|
2420
|
-
}
|
|
2421
|
-
return contents;
|
|
2422
|
-
};
|
|
2423
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
2424
|
-
const contents = {};
|
|
2425
|
-
if (String(output.Tags).trim() === "") {
|
|
2426
|
-
contents[_Ta] = [];
|
|
2427
|
-
}
|
|
2428
|
-
else if (output[_Ta] != null && output[_Ta][_me] != null) {
|
|
2429
|
-
contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_Ta][_me]), context);
|
|
2430
|
-
}
|
|
2431
|
-
return contents;
|
|
2432
|
-
};
|
|
2433
|
-
const de_ListTopicsResponse = (output, context) => {
|
|
2434
|
-
const contents = {};
|
|
2435
|
-
if (String(output.Topics).trim() === "") {
|
|
2436
|
-
contents[_To] = [];
|
|
2437
|
-
}
|
|
2438
|
-
else if (output[_To] != null && output[_To][_me] != null) {
|
|
2439
|
-
contents[_To] = de_TopicsList(__getArrayIfSingleItem(output[_To][_me]), context);
|
|
2440
|
-
}
|
|
2441
|
-
if (output[_NT] != null) {
|
|
2442
|
-
contents[_NT] = __expectString(output[_NT]);
|
|
2443
|
-
}
|
|
2444
|
-
return contents;
|
|
2445
|
-
};
|
|
2446
|
-
const de_MapStringToString = (output, context) => {
|
|
2447
|
-
return output.reduce((acc, pair) => {
|
|
2448
|
-
if (pair["value"] === null) {
|
|
2449
|
-
return acc;
|
|
2450
|
-
}
|
|
2451
|
-
acc[pair["key"]] = __expectString(pair["value"]);
|
|
2452
|
-
return acc;
|
|
2453
|
-
}, {});
|
|
2454
|
-
};
|
|
2455
|
-
const de_NotFoundException = (output, context) => {
|
|
2456
|
-
const contents = {};
|
|
2457
|
-
if (output[_m] != null) {
|
|
2458
|
-
contents[_m] = __expectString(output[_m]);
|
|
2459
|
-
}
|
|
2460
|
-
return contents;
|
|
2461
|
-
};
|
|
2462
|
-
const de_NumberCapabilityList = (output, context) => {
|
|
2463
|
-
return (output || [])
|
|
2464
|
-
.filter((e) => e != null)
|
|
2465
|
-
.map((entry) => {
|
|
2466
|
-
return __expectString(entry);
|
|
2467
|
-
});
|
|
2468
|
-
};
|
|
2469
|
-
const de_OptedOutException = (output, context) => {
|
|
2470
|
-
const contents = {};
|
|
2471
|
-
if (output[_m] != null) {
|
|
2472
|
-
contents[_m] = __expectString(output[_m]);
|
|
2473
|
-
}
|
|
2474
|
-
return contents;
|
|
2475
|
-
};
|
|
2476
|
-
const de_OptInPhoneNumberResponse = (output, context) => {
|
|
2477
|
-
const contents = {};
|
|
2478
|
-
return contents;
|
|
2479
|
-
};
|
|
2480
|
-
const de_PhoneNumberInformation = (output, context) => {
|
|
2481
|
-
const contents = {};
|
|
2482
|
-
if (output[_CA] != null) {
|
|
2483
|
-
contents[_CA] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CA]));
|
|
2484
|
-
}
|
|
2485
|
-
if (output[_PN] != null) {
|
|
2486
|
-
contents[_PN] = __expectString(output[_PN]);
|
|
2487
|
-
}
|
|
2488
|
-
if (output[_St] != null) {
|
|
2489
|
-
contents[_St] = __expectString(output[_St]);
|
|
2490
|
-
}
|
|
2491
|
-
if (output[_ICC] != null) {
|
|
2492
|
-
contents[_ICC] = __expectString(output[_ICC]);
|
|
2493
|
-
}
|
|
2494
|
-
if (output[_RT] != null) {
|
|
2495
|
-
contents[_RT] = __expectString(output[_RT]);
|
|
2496
|
-
}
|
|
2497
|
-
if (String(output.NumberCapabilities).trim() === "") {
|
|
2498
|
-
contents[_NC] = [];
|
|
2499
|
-
}
|
|
2500
|
-
else if (output[_NC] != null && output[_NC][_me] != null) {
|
|
2501
|
-
contents[_NC] = de_NumberCapabilityList(__getArrayIfSingleItem(output[_NC][_me]), context);
|
|
2502
|
-
}
|
|
2503
|
-
return contents;
|
|
2504
|
-
};
|
|
2505
|
-
const de_PhoneNumberInformationList = (output, context) => {
|
|
2506
|
-
return (output || [])
|
|
2507
|
-
.filter((e) => e != null)
|
|
2508
|
-
.map((entry) => {
|
|
2509
|
-
return de_PhoneNumberInformation(entry, context);
|
|
2510
|
-
});
|
|
2511
|
-
};
|
|
2512
|
-
const de_PhoneNumberList = (output, context) => {
|
|
2513
|
-
return (output || [])
|
|
2514
|
-
.filter((e) => e != null)
|
|
2515
|
-
.map((entry) => {
|
|
2516
|
-
return __expectString(entry);
|
|
2517
|
-
});
|
|
2518
|
-
};
|
|
2519
|
-
const de_PlatformApplication = (output, context) => {
|
|
2520
|
-
const contents = {};
|
|
2521
|
-
if (output[_PAA] != null) {
|
|
2522
|
-
contents[_PAA] = __expectString(output[_PAA]);
|
|
2523
|
-
}
|
|
2524
|
-
if (String(output.Attributes).trim() === "") {
|
|
2525
|
-
contents[_At] = {};
|
|
2526
|
-
}
|
|
2527
|
-
else if (output[_At] != null && output[_At][_e] != null) {
|
|
2528
|
-
contents[_At] = de_MapStringToString(__getArrayIfSingleItem(output[_At][_e]), context);
|
|
2529
|
-
}
|
|
2530
|
-
return contents;
|
|
2531
|
-
};
|
|
2532
|
-
const de_PlatformApplicationDisabledException = (output, context) => {
|
|
2533
|
-
const contents = {};
|
|
2534
|
-
if (output[_m] != null) {
|
|
2535
|
-
contents[_m] = __expectString(output[_m]);
|
|
2536
|
-
}
|
|
2537
|
-
return contents;
|
|
2538
|
-
};
|
|
2539
|
-
const de_PublishBatchResponse = (output, context) => {
|
|
2540
|
-
const contents = {};
|
|
2541
|
-
if (String(output.Successful).trim() === "") {
|
|
2542
|
-
contents[_Suc] = [];
|
|
2543
|
-
}
|
|
2544
|
-
else if (output[_Suc] != null && output[_Suc][_me] != null) {
|
|
2545
|
-
contents[_Suc] = de_PublishBatchResultEntryList(__getArrayIfSingleItem(output[_Suc][_me]), context);
|
|
2546
|
-
}
|
|
2547
|
-
if (String(output.Failed).trim() === "") {
|
|
2548
|
-
contents[_F] = [];
|
|
2549
|
-
}
|
|
2550
|
-
else if (output[_F] != null && output[_F][_me] != null) {
|
|
2551
|
-
contents[_F] = de_BatchResultErrorEntryList(__getArrayIfSingleItem(output[_F][_me]), context);
|
|
2552
|
-
}
|
|
2553
|
-
return contents;
|
|
2554
|
-
};
|
|
2555
|
-
const de_PublishBatchResultEntry = (output, context) => {
|
|
2556
|
-
const contents = {};
|
|
2557
|
-
if (output[_I] != null) {
|
|
2558
|
-
contents[_I] = __expectString(output[_I]);
|
|
2559
|
-
}
|
|
2560
|
-
if (output[_MI] != null) {
|
|
2561
|
-
contents[_MI] = __expectString(output[_MI]);
|
|
2562
|
-
}
|
|
2563
|
-
if (output[_SN] != null) {
|
|
2564
|
-
contents[_SN] = __expectString(output[_SN]);
|
|
2565
|
-
}
|
|
2566
|
-
return contents;
|
|
2567
|
-
};
|
|
2568
|
-
const de_PublishBatchResultEntryList = (output, context) => {
|
|
2569
|
-
return (output || [])
|
|
2570
|
-
.filter((e) => e != null)
|
|
2571
|
-
.map((entry) => {
|
|
2572
|
-
return de_PublishBatchResultEntry(entry, context);
|
|
2573
|
-
});
|
|
2574
|
-
};
|
|
2575
|
-
const de_PublishResponse = (output, context) => {
|
|
2576
|
-
const contents = {};
|
|
2577
|
-
if (output[_MI] != null) {
|
|
2578
|
-
contents[_MI] = __expectString(output[_MI]);
|
|
2579
|
-
}
|
|
2580
|
-
if (output[_SN] != null) {
|
|
2581
|
-
contents[_SN] = __expectString(output[_SN]);
|
|
2582
|
-
}
|
|
2583
|
-
return contents;
|
|
2584
|
-
};
|
|
2585
|
-
const de_ReplayLimitExceededException = (output, context) => {
|
|
2586
|
-
const contents = {};
|
|
2587
|
-
if (output[_m] != null) {
|
|
2588
|
-
contents[_m] = __expectString(output[_m]);
|
|
2589
|
-
}
|
|
2590
|
-
return contents;
|
|
2591
|
-
};
|
|
2592
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
2593
|
-
const contents = {};
|
|
2594
|
-
if (output[_m] != null) {
|
|
2595
|
-
contents[_m] = __expectString(output[_m]);
|
|
2596
|
-
}
|
|
2597
|
-
return contents;
|
|
2598
|
-
};
|
|
2599
|
-
const de_SetSMSAttributesResponse = (output, context) => {
|
|
2600
|
-
const contents = {};
|
|
2601
|
-
return contents;
|
|
2602
|
-
};
|
|
2603
|
-
const de_SMSSandboxPhoneNumber = (output, context) => {
|
|
2604
|
-
const contents = {};
|
|
2605
|
-
if (output[_PN] != null) {
|
|
2606
|
-
contents[_PN] = __expectString(output[_PN]);
|
|
2607
|
-
}
|
|
2608
|
-
if (output[_St] != null) {
|
|
2609
|
-
contents[_St] = __expectString(output[_St]);
|
|
2610
|
-
}
|
|
2611
|
-
return contents;
|
|
2612
|
-
};
|
|
2613
|
-
const de_SMSSandboxPhoneNumberList = (output, context) => {
|
|
2614
|
-
return (output || [])
|
|
2615
|
-
.filter((e) => e != null)
|
|
2616
|
-
.map((entry) => {
|
|
2617
|
-
return de_SMSSandboxPhoneNumber(entry, context);
|
|
2618
|
-
});
|
|
2619
|
-
};
|
|
2620
|
-
const de_StaleTagException = (output, context) => {
|
|
2621
|
-
const contents = {};
|
|
2622
|
-
if (output[_m] != null) {
|
|
2623
|
-
contents[_m] = __expectString(output[_m]);
|
|
2624
|
-
}
|
|
2625
|
-
return contents;
|
|
2626
|
-
};
|
|
2627
|
-
const de_SubscribeResponse = (output, context) => {
|
|
2628
|
-
const contents = {};
|
|
2629
|
-
if (output[_SA] != null) {
|
|
2630
|
-
contents[_SA] = __expectString(output[_SA]);
|
|
2631
|
-
}
|
|
2632
|
-
return contents;
|
|
2633
|
-
};
|
|
2634
|
-
const de_Subscription = (output, context) => {
|
|
2635
|
-
const contents = {};
|
|
2636
|
-
if (output[_SA] != null) {
|
|
2637
|
-
contents[_SA] = __expectString(output[_SA]);
|
|
2638
|
-
}
|
|
2639
|
-
if (output[_O] != null) {
|
|
2640
|
-
contents[_O] = __expectString(output[_O]);
|
|
2641
|
-
}
|
|
2642
|
-
if (output[_Pr] != null) {
|
|
2643
|
-
contents[_Pr] = __expectString(output[_Pr]);
|
|
2644
|
-
}
|
|
2645
|
-
if (output[_E] != null) {
|
|
2646
|
-
contents[_E] = __expectString(output[_E]);
|
|
2647
|
-
}
|
|
2648
|
-
if (output[_TA] != null) {
|
|
2649
|
-
contents[_TA] = __expectString(output[_TA]);
|
|
2650
|
-
}
|
|
2651
|
-
return contents;
|
|
2652
|
-
};
|
|
2653
|
-
const de_SubscriptionAttributesMap = (output, context) => {
|
|
2654
|
-
return output.reduce((acc, pair) => {
|
|
2655
|
-
if (pair["value"] === null) {
|
|
2656
|
-
return acc;
|
|
2657
|
-
}
|
|
2658
|
-
acc[pair["key"]] = __expectString(pair["value"]);
|
|
2659
|
-
return acc;
|
|
2660
|
-
}, {});
|
|
2661
|
-
};
|
|
2662
|
-
const de_SubscriptionLimitExceededException = (output, context) => {
|
|
2663
|
-
const contents = {};
|
|
2664
|
-
if (output[_m] != null) {
|
|
2665
|
-
contents[_m] = __expectString(output[_m]);
|
|
2666
|
-
}
|
|
2667
|
-
return contents;
|
|
2668
|
-
};
|
|
2669
|
-
const de_SubscriptionsList = (output, context) => {
|
|
2670
|
-
return (output || [])
|
|
2671
|
-
.filter((e) => e != null)
|
|
2672
|
-
.map((entry) => {
|
|
2673
|
-
return de_Subscription(entry, context);
|
|
2674
|
-
});
|
|
2675
|
-
};
|
|
2676
|
-
const de_Tag = (output, context) => {
|
|
2677
|
-
const contents = {};
|
|
2678
|
-
if (output[_K] != null) {
|
|
2679
|
-
contents[_K] = __expectString(output[_K]);
|
|
2680
|
-
}
|
|
2681
|
-
if (output[_Va] != null) {
|
|
2682
|
-
contents[_Va] = __expectString(output[_Va]);
|
|
2683
|
-
}
|
|
2684
|
-
return contents;
|
|
2685
|
-
};
|
|
2686
|
-
const de_TagLimitExceededException = (output, context) => {
|
|
2687
|
-
const contents = {};
|
|
2688
|
-
if (output[_m] != null) {
|
|
2689
|
-
contents[_m] = __expectString(output[_m]);
|
|
2690
|
-
}
|
|
2691
|
-
return contents;
|
|
2692
|
-
};
|
|
2693
|
-
const de_TagList = (output, context) => {
|
|
2694
|
-
return (output || [])
|
|
2695
|
-
.filter((e) => e != null)
|
|
2696
|
-
.map((entry) => {
|
|
2697
|
-
return de_Tag(entry, context);
|
|
2698
|
-
});
|
|
2699
|
-
};
|
|
2700
|
-
const de_TagPolicyException = (output, context) => {
|
|
2701
|
-
const contents = {};
|
|
2702
|
-
if (output[_m] != null) {
|
|
2703
|
-
contents[_m] = __expectString(output[_m]);
|
|
2704
|
-
}
|
|
2705
|
-
return contents;
|
|
2706
|
-
};
|
|
2707
|
-
const de_TagResourceResponse = (output, context) => {
|
|
2708
|
-
const contents = {};
|
|
2709
|
-
return contents;
|
|
2710
|
-
};
|
|
2711
|
-
const de_ThrottledException = (output, context) => {
|
|
2712
|
-
const contents = {};
|
|
2713
|
-
if (output[_m] != null) {
|
|
2714
|
-
contents[_m] = __expectString(output[_m]);
|
|
2715
|
-
}
|
|
2716
|
-
return contents;
|
|
2717
|
-
};
|
|
2718
|
-
const de_TooManyEntriesInBatchRequestException = (output, context) => {
|
|
2719
|
-
const contents = {};
|
|
2720
|
-
if (output[_m] != null) {
|
|
2721
|
-
contents[_m] = __expectString(output[_m]);
|
|
2722
|
-
}
|
|
2723
|
-
return contents;
|
|
2724
|
-
};
|
|
2725
|
-
const de_Topic = (output, context) => {
|
|
2726
|
-
const contents = {};
|
|
2727
|
-
if (output[_TA] != null) {
|
|
2728
|
-
contents[_TA] = __expectString(output[_TA]);
|
|
2729
|
-
}
|
|
2730
|
-
return contents;
|
|
2731
|
-
};
|
|
2732
|
-
const de_TopicAttributesMap = (output, context) => {
|
|
2733
|
-
return output.reduce((acc, pair) => {
|
|
2734
|
-
if (pair["value"] === null) {
|
|
2735
|
-
return acc;
|
|
2736
|
-
}
|
|
2737
|
-
acc[pair["key"]] = __expectString(pair["value"]);
|
|
2738
|
-
return acc;
|
|
2739
|
-
}, {});
|
|
2740
|
-
};
|
|
2741
|
-
const de_TopicLimitExceededException = (output, context) => {
|
|
2742
|
-
const contents = {};
|
|
2743
|
-
if (output[_m] != null) {
|
|
2744
|
-
contents[_m] = __expectString(output[_m]);
|
|
2745
|
-
}
|
|
2746
|
-
return contents;
|
|
2747
|
-
};
|
|
2748
|
-
const de_TopicsList = (output, context) => {
|
|
2749
|
-
return (output || [])
|
|
2750
|
-
.filter((e) => e != null)
|
|
2751
|
-
.map((entry) => {
|
|
2752
|
-
return de_Topic(entry, context);
|
|
2753
|
-
});
|
|
2754
|
-
};
|
|
2755
|
-
const de_UntagResourceResponse = (output, context) => {
|
|
2756
|
-
const contents = {};
|
|
2757
|
-
return contents;
|
|
2758
|
-
};
|
|
2759
|
-
const de_UserErrorException = (output, context) => {
|
|
2760
|
-
const contents = {};
|
|
2761
|
-
if (output[_m] != null) {
|
|
2762
|
-
contents[_m] = __expectString(output[_m]);
|
|
2763
|
-
}
|
|
2764
|
-
return contents;
|
|
2765
|
-
};
|
|
2766
|
-
const de_ValidationException = (output, context) => {
|
|
2767
|
-
const contents = {};
|
|
2768
|
-
if (output[_M] != null) {
|
|
2769
|
-
contents[_M] = __expectString(output[_M]);
|
|
2770
|
-
}
|
|
2771
|
-
return contents;
|
|
2772
|
-
};
|
|
2773
|
-
const de_VerificationException = (output, context) => {
|
|
2774
|
-
const contents = {};
|
|
2775
|
-
if (output[_M] != null) {
|
|
2776
|
-
contents[_M] = __expectString(output[_M]);
|
|
2777
|
-
}
|
|
2778
|
-
if (output[_St] != null) {
|
|
2779
|
-
contents[_St] = __expectString(output[_St]);
|
|
2780
|
-
}
|
|
2781
|
-
return contents;
|
|
2782
|
-
};
|
|
2783
|
-
const de_VerifySMSSandboxPhoneNumberResult = (output, context) => {
|
|
2784
|
-
const contents = {};
|
|
2785
|
-
return contents;
|
|
2786
|
-
};
|
|
2787
|
-
const deserializeMetadata = (output) => ({
|
|
2788
|
-
httpStatusCode: output.statusCode,
|
|
2789
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2790
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2791
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
2792
|
-
});
|
|
2793
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2794
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
2795
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2796
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2797
|
-
const contents = {
|
|
2798
|
-
protocol,
|
|
2799
|
-
hostname,
|
|
2800
|
-
port,
|
|
2801
|
-
method: "POST",
|
|
2802
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
2803
|
-
headers,
|
|
2804
|
-
};
|
|
2805
|
-
if (resolvedHostname !== undefined) {
|
|
2806
|
-
contents.hostname = resolvedHostname;
|
|
2807
|
-
}
|
|
2808
|
-
if (body !== undefined) {
|
|
2809
|
-
contents.body = body;
|
|
2810
|
-
}
|
|
2811
|
-
return new __HttpRequest(contents);
|
|
2812
|
-
};
|
|
2813
|
-
const SHARED_HEADERS = {
|
|
2814
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
2815
|
-
};
|
|
2816
|
-
const _ = "2010-03-31";
|
|
2817
|
-
const _A = "Action";
|
|
2818
|
-
const _AN = "ActionName";
|
|
2819
|
-
const _ANt = "AttributeName";
|
|
2820
|
-
const _AOU = "AuthenticateOnUnsubscribe";
|
|
2821
|
-
const _AP = "AddPermission";
|
|
2822
|
-
const _AV = "AttributeValue";
|
|
2823
|
-
const _AWSAI = "AWSAccountId";
|
|
2824
|
-
const _At = "Attributes";
|
|
2825
|
-
const _BV = "BinaryValue";
|
|
2826
|
-
const _C = "Code";
|
|
2827
|
-
const _CA = "CreatedAt";
|
|
2828
|
-
const _CIPNIOO = "CheckIfPhoneNumberIsOptedOut";
|
|
2829
|
-
const _CPA = "CreatePlatformApplication";
|
|
2830
|
-
const _CPE = "CreatePlatformEndpoint";
|
|
2831
|
-
const _CS = "ConfirmSubscription";
|
|
2832
|
-
const _CSMSSPN = "CreateSMSSandboxPhoneNumber";
|
|
2833
|
-
const _CT = "CreateTopic";
|
|
2834
|
-
const _CUD = "CustomUserData";
|
|
2835
|
-
const _DE = "DeleteEndpoint";
|
|
2836
|
-
const _DPA = "DeletePlatformApplication";
|
|
2837
|
-
const _DPP = "DataProtectionPolicy";
|
|
2838
|
-
const _DSMSSPN = "DeleteSMSSandboxPhoneNumber";
|
|
2839
|
-
const _DT = "DeleteTopic";
|
|
2840
|
-
const _DTa = "DataType";
|
|
2841
|
-
const _E = "Endpoint";
|
|
2842
|
-
const _EA = "EndpointArn";
|
|
2843
|
-
const _En = "Endpoints";
|
|
2844
|
-
const _F = "Failed";
|
|
2845
|
-
const _GDPP = "GetDataProtectionPolicy";
|
|
2846
|
-
const _GEA = "GetEndpointAttributes";
|
|
2847
|
-
const _GPAA = "GetPlatformApplicationAttributes";
|
|
2848
|
-
const _GSA = "GetSubscriptionAttributes";
|
|
2849
|
-
const _GSMSA = "GetSMSAttributes";
|
|
2850
|
-
const _GSMSSAS = "GetSMSSandboxAccountStatus";
|
|
2851
|
-
const _GTA = "GetTopicAttributes";
|
|
2852
|
-
const _I = "Id";
|
|
2853
|
-
const _ICC = "Iso2CountryCode";
|
|
2854
|
-
const _IIS = "IsInSandbox";
|
|
2855
|
-
const _K = "Key";
|
|
2856
|
-
const _L = "Label";
|
|
2857
|
-
const _LC = "LanguageCode";
|
|
2858
|
-
const _LEBPA = "ListEndpointsByPlatformApplication";
|
|
2859
|
-
const _LON = "ListOriginationNumbers";
|
|
2860
|
-
const _LPA = "ListPlatformApplications";
|
|
2861
|
-
const _LPNOO = "ListPhoneNumbersOptedOut";
|
|
2862
|
-
const _LS = "ListSubscriptions";
|
|
2863
|
-
const _LSBT = "ListSubscriptionsByTopic";
|
|
2864
|
-
const _LSMSSPN = "ListSMSSandboxPhoneNumbers";
|
|
2865
|
-
const _LT = "ListTopics";
|
|
2866
|
-
const _LTFR = "ListTagsForResource";
|
|
2867
|
-
const _M = "Message";
|
|
2868
|
-
const _MA = "MessageAttributes";
|
|
2869
|
-
const _MDI = "MessageDeduplicationId";
|
|
2870
|
-
const _MGI = "MessageGroupId";
|
|
2871
|
-
const _MI = "MessageId";
|
|
2872
|
-
const _MR = "MaxResults";
|
|
2873
|
-
const _MS = "MessageStructure";
|
|
2874
|
-
const _N = "Name";
|
|
2875
|
-
const _NC = "NumberCapabilities";
|
|
2876
|
-
const _NT = "NextToken";
|
|
2877
|
-
const _O = "Owner";
|
|
2878
|
-
const _OIPN = "OptInPhoneNumber";
|
|
2879
|
-
const _OTP = "OneTimePassword";
|
|
2880
|
-
const _P = "Publish";
|
|
2881
|
-
const _PA = "PlatformApplications";
|
|
2882
|
-
const _PAA = "PlatformApplicationArn";
|
|
2883
|
-
const _PB = "PublishBatch";
|
|
2884
|
-
const _PBRE = "PublishBatchRequestEntries";
|
|
2885
|
-
const _PDPP = "PutDataProtectionPolicy";
|
|
2886
|
-
const _PN = "PhoneNumber";
|
|
2887
|
-
const _PNh = "PhoneNumbers";
|
|
2888
|
-
const _Pl = "Platform";
|
|
2889
|
-
const _Pr = "Protocol";
|
|
2890
|
-
const _RA = "ResourceArn";
|
|
2891
|
-
const _RP = "RemovePermission";
|
|
2892
|
-
const _RSA = "ReturnSubscriptionArn";
|
|
2893
|
-
const _RT = "RouteType";
|
|
2894
|
-
const _S = "Subscribe";
|
|
2895
|
-
const _SA = "SubscriptionArn";
|
|
2896
|
-
const _SEA = "SetEndpointAttributes";
|
|
2897
|
-
const _SF = "SenderFault";
|
|
2898
|
-
const _SN = "SequenceNumber";
|
|
2899
|
-
const _SPAA = "SetPlatformApplicationAttributes";
|
|
2900
|
-
const _SSA = "SetSubscriptionAttributes";
|
|
2901
|
-
const _SSMSA = "SetSMSAttributes";
|
|
2902
|
-
const _STA = "SetTopicAttributes";
|
|
2903
|
-
const _SV = "StringValue";
|
|
2904
|
-
const _St = "Status";
|
|
2905
|
-
const _Su = "Subject";
|
|
2906
|
-
const _Sub = "Subscriptions";
|
|
2907
|
-
const _Suc = "Successful";
|
|
2908
|
-
const _T = "Token";
|
|
2909
|
-
const _TA = "TopicArn";
|
|
2910
|
-
const _TAa = "TargetArn";
|
|
2911
|
-
const _TK = "TagKeys";
|
|
2912
|
-
const _TR = "TagResource";
|
|
2913
|
-
const _Ta = "Tags";
|
|
2914
|
-
const _To = "Topics";
|
|
2915
|
-
const _U = "Unsubscribe";
|
|
2916
|
-
const _UR = "UntagResource";
|
|
2917
|
-
const _V = "Version";
|
|
2918
|
-
const _VSMSSPN = "VerifySMSSandboxPhoneNumber";
|
|
2919
|
-
const _Va = "Value";
|
|
2920
|
-
const _a = "attributes";
|
|
2921
|
-
const _e = "entry";
|
|
2922
|
-
const _iOO = "isOptedOut";
|
|
2923
|
-
const _m = "message";
|
|
2924
|
-
const _me = "member";
|
|
2925
|
-
const _nT = "nextToken";
|
|
2926
|
-
const _pN = "phoneNumber";
|
|
2927
|
-
const _pNh = "phoneNumbers";
|
|
2928
|
-
const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries)
|
|
2929
|
-
.map(([key, value]) => __extendedEncodeURIComponent(key) + "=" + __extendedEncodeURIComponent(value))
|
|
2930
|
-
.join("&");
|
|
2931
|
-
const loadQueryErrorCode = (output, data) => {
|
|
2932
|
-
if (data.Error?.Code !== undefined) {
|
|
2933
|
-
return data.Error.Code;
|
|
2934
|
-
}
|
|
2935
|
-
if (output.statusCode == 404) {
|
|
2936
|
-
return "NotFound";
|
|
2937
|
-
}
|
|
2938
|
-
};
|