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