@aws-sdk/client-pinpoint-email 3.33.0 → 3.34.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/CHANGELOG.md +11 -0
- package/dist/cjs/package.json +38 -38
- package/dist/es/PinpointEmail.js +1 -32
- package/dist/es/PinpointEmail.js.map +1 -1
- package/dist/es/PinpointEmailClient.js +1 -37
- package/dist/es/PinpointEmailClient.js.map +1 -1
- package/dist/es/commands/CreateConfigurationSetCommand.js +2 -31
- package/dist/es/commands/CreateConfigurationSetCommand.js.map +1 -1
- package/dist/es/commands/CreateConfigurationSetEventDestinationCommand.js +2 -33
- package/dist/es/commands/CreateConfigurationSetEventDestinationCommand.js.map +1 -1
- package/dist/es/commands/CreateDedicatedIpPoolCommand.js +2 -30
- package/dist/es/commands/CreateDedicatedIpPoolCommand.js.map +1 -1
- package/dist/es/commands/CreateDeliverabilityTestReportCommand.js +2 -33
- package/dist/es/commands/CreateDeliverabilityTestReportCommand.js.map +1 -1
- package/dist/es/commands/CreateEmailIdentityCommand.js +2 -40
- package/dist/es/commands/CreateEmailIdentityCommand.js.map +1 -1
- package/dist/es/commands/DeleteConfigurationSetCommand.js +2 -32
- package/dist/es/commands/DeleteConfigurationSetCommand.js.map +1 -1
- package/dist/es/commands/DeleteConfigurationSetEventDestinationCommand.js +2 -32
- package/dist/es/commands/DeleteConfigurationSetEventDestinationCommand.js.map +1 -1
- package/dist/es/commands/DeleteDedicatedIpPoolCommand.js +2 -27
- package/dist/es/commands/DeleteDedicatedIpPoolCommand.js.map +1 -1
- package/dist/es/commands/DeleteEmailIdentityCommand.js +2 -28
- package/dist/es/commands/DeleteEmailIdentityCommand.js.map +1 -1
- package/dist/es/commands/GetAccountCommand.js +2 -28
- package/dist/es/commands/GetAccountCommand.js.map +1 -1
- package/dist/es/commands/GetBlacklistReportsCommand.js +2 -27
- package/dist/es/commands/GetBlacklistReportsCommand.js.map +1 -1
- package/dist/es/commands/GetConfigurationSetCommand.js +2 -34
- package/dist/es/commands/GetConfigurationSetCommand.js.map +1 -1
- package/dist/es/commands/GetConfigurationSetEventDestinationsCommand.js +2 -33
- package/dist/es/commands/GetConfigurationSetEventDestinationsCommand.js.map +1 -1
- package/dist/es/commands/GetDedicatedIpCommand.js +2 -29
- package/dist/es/commands/GetDedicatedIpCommand.js.map +1 -1
- package/dist/es/commands/GetDedicatedIpsCommand.js +2 -28
- package/dist/es/commands/GetDedicatedIpsCommand.js.map +1 -1
- package/dist/es/commands/GetDeliverabilityDashboardOptionsCommand.js +2 -33
- package/dist/es/commands/GetDeliverabilityDashboardOptionsCommand.js.map +1 -1
- package/dist/es/commands/GetDeliverabilityTestReportCommand.js +2 -27
- package/dist/es/commands/GetDeliverabilityTestReportCommand.js.map +1 -1
- package/dist/es/commands/GetDomainDeliverabilityCampaignCommand.js +2 -30
- package/dist/es/commands/GetDomainDeliverabilityCampaignCommand.js.map +1 -1
- package/dist/es/commands/GetDomainStatisticsReportCommand.js +2 -28
- package/dist/es/commands/GetDomainStatisticsReportCommand.js.map +1 -1
- package/dist/es/commands/GetEmailIdentityCommand.js +2 -29
- package/dist/es/commands/GetEmailIdentityCommand.js.map +1 -1
- package/dist/es/commands/ListConfigurationSetsCommand.js +2 -33
- package/dist/es/commands/ListConfigurationSetsCommand.js.map +1 -1
- package/dist/es/commands/ListDedicatedIpPoolsCommand.js +2 -28
- package/dist/es/commands/ListDedicatedIpPoolsCommand.js.map +1 -1
- package/dist/es/commands/ListDeliverabilityTestReportsCommand.js +2 -29
- package/dist/es/commands/ListDeliverabilityTestReportsCommand.js.map +1 -1
- package/dist/es/commands/ListDomainDeliverabilityCampaignsCommand.js +2 -30
- package/dist/es/commands/ListDomainDeliverabilityCampaignsCommand.js.map +1 -1
- package/dist/es/commands/ListEmailIdentitiesCommand.js +2 -29
- package/dist/es/commands/ListEmailIdentitiesCommand.js.map +1 -1
- package/dist/es/commands/ListTagsForResourceCommand.js +2 -32
- package/dist/es/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/es/commands/PutAccountDedicatedIpWarmupAttributesCommand.js +2 -27
- package/dist/es/commands/PutAccountDedicatedIpWarmupAttributesCommand.js.map +1 -1
- package/dist/es/commands/PutAccountSendingAttributesCommand.js +2 -27
- package/dist/es/commands/PutAccountSendingAttributesCommand.js.map +1 -1
- package/dist/es/commands/PutConfigurationSetDeliveryOptionsCommand.js +2 -28
- package/dist/es/commands/PutConfigurationSetDeliveryOptionsCommand.js.map +1 -1
- package/dist/es/commands/PutConfigurationSetReputationOptionsCommand.js +2 -28
- package/dist/es/commands/PutConfigurationSetReputationOptionsCommand.js.map +1 -1
- package/dist/es/commands/PutConfigurationSetSendingOptionsCommand.js +2 -28
- package/dist/es/commands/PutConfigurationSetSendingOptionsCommand.js.map +1 -1
- package/dist/es/commands/PutConfigurationSetTrackingOptionsCommand.js +2 -28
- package/dist/es/commands/PutConfigurationSetTrackingOptionsCommand.js.map +1 -1
- package/dist/es/commands/PutDedicatedIpInPoolCommand.js +2 -36
- package/dist/es/commands/PutDedicatedIpInPoolCommand.js.map +1 -1
- package/dist/es/commands/PutDedicatedIpWarmupAttributesCommand.js +2 -27
- package/dist/es/commands/PutDedicatedIpWarmupAttributesCommand.js.map +1 -1
- package/dist/es/commands/PutDeliverabilityDashboardOptionCommand.js +2 -33
- package/dist/es/commands/PutDeliverabilityDashboardOptionCommand.js.map +1 -1
- package/dist/es/commands/PutEmailIdentityDkimAttributesCommand.js +2 -27
- package/dist/es/commands/PutEmailIdentityDkimAttributesCommand.js.map +1 -1
- package/dist/es/commands/PutEmailIdentityFeedbackAttributesCommand.js +2 -37
- package/dist/es/commands/PutEmailIdentityFeedbackAttributesCommand.js.map +1 -1
- package/dist/es/commands/PutEmailIdentityMailFromAttributesCommand.js +2 -28
- package/dist/es/commands/PutEmailIdentityMailFromAttributesCommand.js.map +1 -1
- package/dist/es/commands/SendEmailCommand.js +2 -44
- package/dist/es/commands/SendEmailCommand.js.map +1 -1
- package/dist/es/commands/TagResourceCommand.js +2 -35
- package/dist/es/commands/TagResourceCommand.js.map +1 -1
- package/dist/es/commands/UntagResourceCommand.js +2 -27
- package/dist/es/commands/UntagResourceCommand.js.map +1 -1
- package/dist/es/commands/UpdateConfigurationSetEventDestinationCommand.js +2 -32
- package/dist/es/commands/UpdateConfigurationSetEventDestinationCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +0 -390
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +38 -38
- package/dist/es/pagination/GetDedicatedIpsPaginator.js +16 -28
- package/dist/es/pagination/GetDedicatedIpsPaginator.js.map +1 -1
- package/dist/es/pagination/ListConfigurationSetsPaginator.js +16 -28
- package/dist/es/pagination/ListConfigurationSetsPaginator.js.map +1 -1
- package/dist/es/pagination/ListDedicatedIpPoolsPaginator.js +16 -28
- package/dist/es/pagination/ListDedicatedIpPoolsPaginator.js.map +1 -1
- package/dist/es/pagination/ListDeliverabilityTestReportsPaginator.js +16 -28
- package/dist/es/pagination/ListDeliverabilityTestReportsPaginator.js.map +1 -1
- package/dist/es/pagination/ListDomainDeliverabilityCampaignsPaginator.js +16 -28
- package/dist/es/pagination/ListDomainDeliverabilityCampaignsPaginator.js.map +1 -1
- package/dist/es/pagination/ListEmailIdentitiesPaginator.js +16 -28
- package/dist/es/pagination/ListEmailIdentitiesPaginator.js.map +1 -1
- package/dist/es/protocols/Aws_restJson1.js +966 -971
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/package.json +38 -38
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +4 -5
- package/tsconfig.types.json +8 -0
|
@@ -5,7 +5,7 @@ export var serializeAws_restJson1CreateConfigurationSetCommand = function (input
|
|
|
5
5
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
6
6
|
return __generator(this, function (_c) {
|
|
7
7
|
switch (_c.label) {
|
|
8
|
-
case 0: return [4
|
|
8
|
+
case 0: return [4, context.endpoint()];
|
|
9
9
|
case 1:
|
|
10
10
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
11
11
|
headers = {
|
|
@@ -27,7 +27,7 @@ export var serializeAws_restJson1CreateConfigurationSetCommand = function (input
|
|
|
27
27
|
input.TrackingOptions !== null && {
|
|
28
28
|
TrackingOptions: serializeAws_restJson1TrackingOptions(input.TrackingOptions, context),
|
|
29
29
|
})));
|
|
30
|
-
return [2
|
|
30
|
+
return [2, new __HttpRequest({
|
|
31
31
|
protocol: protocol,
|
|
32
32
|
hostname: hostname,
|
|
33
33
|
port: port,
|
|
@@ -43,7 +43,7 @@ export var serializeAws_restJson1CreateConfigurationSetEventDestinationCommand =
|
|
|
43
43
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
44
44
|
return __generator(this, function (_c) {
|
|
45
45
|
switch (_c.label) {
|
|
46
|
-
case 0: return [4
|
|
46
|
+
case 0: return [4, context.endpoint()];
|
|
47
47
|
case 1:
|
|
48
48
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
49
49
|
headers = {
|
|
@@ -66,7 +66,7 @@ export var serializeAws_restJson1CreateConfigurationSetEventDestinationCommand =
|
|
|
66
66
|
EventDestination: serializeAws_restJson1EventDestinationDefinition(input.EventDestination, context),
|
|
67
67
|
})), (input.EventDestinationName !== undefined &&
|
|
68
68
|
input.EventDestinationName !== null && { EventDestinationName: input.EventDestinationName })));
|
|
69
|
-
return [2
|
|
69
|
+
return [2, new __HttpRequest({
|
|
70
70
|
protocol: protocol,
|
|
71
71
|
hostname: hostname,
|
|
72
72
|
port: port,
|
|
@@ -82,7 +82,7 @@ export var serializeAws_restJson1CreateDedicatedIpPoolCommand = function (input,
|
|
|
82
82
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
83
83
|
return __generator(this, function (_c) {
|
|
84
84
|
switch (_c.label) {
|
|
85
|
-
case 0: return [4
|
|
85
|
+
case 0: return [4, context.endpoint()];
|
|
86
86
|
case 1:
|
|
87
87
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
88
88
|
headers = {
|
|
@@ -91,7 +91,7 @@ export var serializeAws_restJson1CreateDedicatedIpPoolCommand = function (input,
|
|
|
91
91
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/email/dedicated-ip-pools";
|
|
92
92
|
body = JSON.stringify(__assign(__assign({}, (input.PoolName !== undefined && input.PoolName !== null && { PoolName: input.PoolName })), (input.Tags !== undefined &&
|
|
93
93
|
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
94
|
-
return [2
|
|
94
|
+
return [2, new __HttpRequest({
|
|
95
95
|
protocol: protocol,
|
|
96
96
|
hostname: hostname,
|
|
97
97
|
port: port,
|
|
@@ -107,7 +107,7 @@ export var serializeAws_restJson1CreateDeliverabilityTestReportCommand = functio
|
|
|
107
107
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
108
108
|
return __generator(this, function (_c) {
|
|
109
109
|
switch (_c.label) {
|
|
110
|
-
case 0: return [4
|
|
110
|
+
case 0: return [4, context.endpoint()];
|
|
111
111
|
case 1:
|
|
112
112
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
113
113
|
headers = {
|
|
@@ -118,7 +118,7 @@ export var serializeAws_restJson1CreateDeliverabilityTestReportCommand = functio
|
|
|
118
118
|
input.Content !== null && { Content: serializeAws_restJson1EmailContent(input.Content, context) })), (input.FromEmailAddress !== undefined &&
|
|
119
119
|
input.FromEmailAddress !== null && { FromEmailAddress: input.FromEmailAddress })), (input.ReportName !== undefined && input.ReportName !== null && { ReportName: input.ReportName })), (input.Tags !== undefined &&
|
|
120
120
|
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
121
|
-
return [2
|
|
121
|
+
return [2, new __HttpRequest({
|
|
122
122
|
protocol: protocol,
|
|
123
123
|
hostname: hostname,
|
|
124
124
|
port: port,
|
|
@@ -134,7 +134,7 @@ export var serializeAws_restJson1CreateEmailIdentityCommand = function (input, c
|
|
|
134
134
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
135
135
|
return __generator(this, function (_c) {
|
|
136
136
|
switch (_c.label) {
|
|
137
|
-
case 0: return [4
|
|
137
|
+
case 0: return [4, context.endpoint()];
|
|
138
138
|
case 1:
|
|
139
139
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
140
140
|
headers = {
|
|
@@ -143,7 +143,7 @@ export var serializeAws_restJson1CreateEmailIdentityCommand = function (input, c
|
|
|
143
143
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/email/identities";
|
|
144
144
|
body = JSON.stringify(__assign(__assign({}, (input.EmailIdentity !== undefined && input.EmailIdentity !== null && { EmailIdentity: input.EmailIdentity })), (input.Tags !== undefined &&
|
|
145
145
|
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
146
|
-
return [2
|
|
146
|
+
return [2, new __HttpRequest({
|
|
147
147
|
protocol: protocol,
|
|
148
148
|
hostname: hostname,
|
|
149
149
|
port: port,
|
|
@@ -159,7 +159,7 @@ export var serializeAws_restJson1DeleteConfigurationSetCommand = function (input
|
|
|
159
159
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
160
160
|
return __generator(this, function (_c) {
|
|
161
161
|
switch (_c.label) {
|
|
162
|
-
case 0: return [4
|
|
162
|
+
case 0: return [4, context.endpoint()];
|
|
163
163
|
case 1:
|
|
164
164
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
165
165
|
headers = {};
|
|
@@ -175,7 +175,7 @@ export var serializeAws_restJson1DeleteConfigurationSetCommand = function (input
|
|
|
175
175
|
else {
|
|
176
176
|
throw new Error("No value provided for input HTTP label: ConfigurationSetName.");
|
|
177
177
|
}
|
|
178
|
-
return [2
|
|
178
|
+
return [2, new __HttpRequest({
|
|
179
179
|
protocol: protocol,
|
|
180
180
|
hostname: hostname,
|
|
181
181
|
port: port,
|
|
@@ -191,7 +191,7 @@ export var serializeAws_restJson1DeleteConfigurationSetEventDestinationCommand =
|
|
|
191
191
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
192
192
|
return __generator(this, function (_c) {
|
|
193
193
|
switch (_c.label) {
|
|
194
|
-
case 0: return [4
|
|
194
|
+
case 0: return [4, context.endpoint()];
|
|
195
195
|
case 1:
|
|
196
196
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
197
197
|
headers = {};
|
|
@@ -217,7 +217,7 @@ export var serializeAws_restJson1DeleteConfigurationSetEventDestinationCommand =
|
|
|
217
217
|
else {
|
|
218
218
|
throw new Error("No value provided for input HTTP label: EventDestinationName.");
|
|
219
219
|
}
|
|
220
|
-
return [2
|
|
220
|
+
return [2, new __HttpRequest({
|
|
221
221
|
protocol: protocol,
|
|
222
222
|
hostname: hostname,
|
|
223
223
|
port: port,
|
|
@@ -233,7 +233,7 @@ export var serializeAws_restJson1DeleteDedicatedIpPoolCommand = function (input,
|
|
|
233
233
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
234
234
|
return __generator(this, function (_c) {
|
|
235
235
|
switch (_c.label) {
|
|
236
|
-
case 0: return [4
|
|
236
|
+
case 0: return [4, context.endpoint()];
|
|
237
237
|
case 1:
|
|
238
238
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
239
239
|
headers = {};
|
|
@@ -248,7 +248,7 @@ export var serializeAws_restJson1DeleteDedicatedIpPoolCommand = function (input,
|
|
|
248
248
|
else {
|
|
249
249
|
throw new Error("No value provided for input HTTP label: PoolName.");
|
|
250
250
|
}
|
|
251
|
-
return [2
|
|
251
|
+
return [2, new __HttpRequest({
|
|
252
252
|
protocol: protocol,
|
|
253
253
|
hostname: hostname,
|
|
254
254
|
port: port,
|
|
@@ -264,7 +264,7 @@ export var serializeAws_restJson1DeleteEmailIdentityCommand = function (input, c
|
|
|
264
264
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
265
265
|
return __generator(this, function (_c) {
|
|
266
266
|
switch (_c.label) {
|
|
267
|
-
case 0: return [4
|
|
267
|
+
case 0: return [4, context.endpoint()];
|
|
268
268
|
case 1:
|
|
269
269
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
270
270
|
headers = {};
|
|
@@ -279,7 +279,7 @@ export var serializeAws_restJson1DeleteEmailIdentityCommand = function (input, c
|
|
|
279
279
|
else {
|
|
280
280
|
throw new Error("No value provided for input HTTP label: EmailIdentity.");
|
|
281
281
|
}
|
|
282
|
-
return [2
|
|
282
|
+
return [2, new __HttpRequest({
|
|
283
283
|
protocol: protocol,
|
|
284
284
|
hostname: hostname,
|
|
285
285
|
port: port,
|
|
@@ -295,7 +295,7 @@ export var serializeAws_restJson1GetAccountCommand = function (input, context) {
|
|
|
295
295
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
296
296
|
return __generator(this, function (_c) {
|
|
297
297
|
switch (_c.label) {
|
|
298
|
-
case 0: return [4
|
|
298
|
+
case 0: return [4, context.endpoint()];
|
|
299
299
|
case 1:
|
|
300
300
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
301
301
|
headers = {
|
|
@@ -303,7 +303,7 @@ export var serializeAws_restJson1GetAccountCommand = function (input, context) {
|
|
|
303
303
|
};
|
|
304
304
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/email/account";
|
|
305
305
|
body = "";
|
|
306
|
-
return [2
|
|
306
|
+
return [2, new __HttpRequest({
|
|
307
307
|
protocol: protocol,
|
|
308
308
|
hostname: hostname,
|
|
309
309
|
port: port,
|
|
@@ -319,7 +319,7 @@ export var serializeAws_restJson1GetBlacklistReportsCommand = function (input, c
|
|
|
319
319
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
320
320
|
return __generator(this, function (_c) {
|
|
321
321
|
switch (_c.label) {
|
|
322
|
-
case 0: return [4
|
|
322
|
+
case 0: return [4, context.endpoint()];
|
|
323
323
|
case 1:
|
|
324
324
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
325
325
|
headers = {};
|
|
@@ -328,7 +328,7 @@ export var serializeAws_restJson1GetBlacklistReportsCommand = function (input, c
|
|
|
328
328
|
query = __assign({}, (input.BlacklistItemNames !== undefined && {
|
|
329
329
|
BlacklistItemNames: (input.BlacklistItemNames || []).map(function (_entry) { return _entry; }),
|
|
330
330
|
}));
|
|
331
|
-
return [2
|
|
331
|
+
return [2, new __HttpRequest({
|
|
332
332
|
protocol: protocol,
|
|
333
333
|
hostname: hostname,
|
|
334
334
|
port: port,
|
|
@@ -345,7 +345,7 @@ export var serializeAws_restJson1GetConfigurationSetCommand = function (input, c
|
|
|
345
345
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
346
346
|
return __generator(this, function (_c) {
|
|
347
347
|
switch (_c.label) {
|
|
348
|
-
case 0: return [4
|
|
348
|
+
case 0: return [4, context.endpoint()];
|
|
349
349
|
case 1:
|
|
350
350
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
351
351
|
headers = {};
|
|
@@ -361,7 +361,7 @@ export var serializeAws_restJson1GetConfigurationSetCommand = function (input, c
|
|
|
361
361
|
else {
|
|
362
362
|
throw new Error("No value provided for input HTTP label: ConfigurationSetName.");
|
|
363
363
|
}
|
|
364
|
-
return [2
|
|
364
|
+
return [2, new __HttpRequest({
|
|
365
365
|
protocol: protocol,
|
|
366
366
|
hostname: hostname,
|
|
367
367
|
port: port,
|
|
@@ -377,7 +377,7 @@ export var serializeAws_restJson1GetConfigurationSetEventDestinationsCommand = f
|
|
|
377
377
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
378
378
|
return __generator(this, function (_c) {
|
|
379
379
|
switch (_c.label) {
|
|
380
|
-
case 0: return [4
|
|
380
|
+
case 0: return [4, context.endpoint()];
|
|
381
381
|
case 1:
|
|
382
382
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
383
383
|
headers = {};
|
|
@@ -393,7 +393,7 @@ export var serializeAws_restJson1GetConfigurationSetEventDestinationsCommand = f
|
|
|
393
393
|
else {
|
|
394
394
|
throw new Error("No value provided for input HTTP label: ConfigurationSetName.");
|
|
395
395
|
}
|
|
396
|
-
return [2
|
|
396
|
+
return [2, new __HttpRequest({
|
|
397
397
|
protocol: protocol,
|
|
398
398
|
hostname: hostname,
|
|
399
399
|
port: port,
|
|
@@ -409,7 +409,7 @@ export var serializeAws_restJson1GetDedicatedIpCommand = function (input, contex
|
|
|
409
409
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
410
410
|
return __generator(this, function (_c) {
|
|
411
411
|
switch (_c.label) {
|
|
412
|
-
case 0: return [4
|
|
412
|
+
case 0: return [4, context.endpoint()];
|
|
413
413
|
case 1:
|
|
414
414
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
415
415
|
headers = {};
|
|
@@ -424,7 +424,7 @@ export var serializeAws_restJson1GetDedicatedIpCommand = function (input, contex
|
|
|
424
424
|
else {
|
|
425
425
|
throw new Error("No value provided for input HTTP label: Ip.");
|
|
426
426
|
}
|
|
427
|
-
return [2
|
|
427
|
+
return [2, new __HttpRequest({
|
|
428
428
|
protocol: protocol,
|
|
429
429
|
hostname: hostname,
|
|
430
430
|
port: port,
|
|
@@ -440,13 +440,13 @@ export var serializeAws_restJson1GetDedicatedIpsCommand = function (input, conte
|
|
|
440
440
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
441
441
|
return __generator(this, function (_c) {
|
|
442
442
|
switch (_c.label) {
|
|
443
|
-
case 0: return [4
|
|
443
|
+
case 0: return [4, context.endpoint()];
|
|
444
444
|
case 1:
|
|
445
445
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
446
446
|
headers = {};
|
|
447
447
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/email/dedicated-ips";
|
|
448
448
|
query = __assign(__assign(__assign({}, (input.PoolName !== undefined && { PoolName: input.PoolName })), (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.PageSize !== undefined && { PageSize: input.PageSize.toString() }));
|
|
449
|
-
return [2
|
|
449
|
+
return [2, new __HttpRequest({
|
|
450
450
|
protocol: protocol,
|
|
451
451
|
hostname: hostname,
|
|
452
452
|
port: port,
|
|
@@ -463,7 +463,7 @@ export var serializeAws_restJson1GetDeliverabilityDashboardOptionsCommand = func
|
|
|
463
463
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
464
464
|
return __generator(this, function (_c) {
|
|
465
465
|
switch (_c.label) {
|
|
466
|
-
case 0: return [4
|
|
466
|
+
case 0: return [4, context.endpoint()];
|
|
467
467
|
case 1:
|
|
468
468
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
469
469
|
headers = {
|
|
@@ -471,7 +471,7 @@ export var serializeAws_restJson1GetDeliverabilityDashboardOptionsCommand = func
|
|
|
471
471
|
};
|
|
472
472
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/email/deliverability-dashboard";
|
|
473
473
|
body = "";
|
|
474
|
-
return [2
|
|
474
|
+
return [2, new __HttpRequest({
|
|
475
475
|
protocol: protocol,
|
|
476
476
|
hostname: hostname,
|
|
477
477
|
port: port,
|
|
@@ -487,7 +487,7 @@ export var serializeAws_restJson1GetDeliverabilityTestReportCommand = function (
|
|
|
487
487
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
488
488
|
return __generator(this, function (_c) {
|
|
489
489
|
switch (_c.label) {
|
|
490
|
-
case 0: return [4
|
|
490
|
+
case 0: return [4, context.endpoint()];
|
|
491
491
|
case 1:
|
|
492
492
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
493
493
|
headers = {};
|
|
@@ -503,7 +503,7 @@ export var serializeAws_restJson1GetDeliverabilityTestReportCommand = function (
|
|
|
503
503
|
else {
|
|
504
504
|
throw new Error("No value provided for input HTTP label: ReportId.");
|
|
505
505
|
}
|
|
506
|
-
return [2
|
|
506
|
+
return [2, new __HttpRequest({
|
|
507
507
|
protocol: protocol,
|
|
508
508
|
hostname: hostname,
|
|
509
509
|
port: port,
|
|
@@ -519,7 +519,7 @@ export var serializeAws_restJson1GetDomainDeliverabilityCampaignCommand = functi
|
|
|
519
519
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
520
520
|
return __generator(this, function (_c) {
|
|
521
521
|
switch (_c.label) {
|
|
522
|
-
case 0: return [4
|
|
522
|
+
case 0: return [4, context.endpoint()];
|
|
523
523
|
case 1:
|
|
524
524
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
525
525
|
headers = {};
|
|
@@ -535,7 +535,7 @@ export var serializeAws_restJson1GetDomainDeliverabilityCampaignCommand = functi
|
|
|
535
535
|
else {
|
|
536
536
|
throw new Error("No value provided for input HTTP label: CampaignId.");
|
|
537
537
|
}
|
|
538
|
-
return [2
|
|
538
|
+
return [2, new __HttpRequest({
|
|
539
539
|
protocol: protocol,
|
|
540
540
|
hostname: hostname,
|
|
541
541
|
port: port,
|
|
@@ -551,7 +551,7 @@ export var serializeAws_restJson1GetDomainStatisticsReportCommand = function (in
|
|
|
551
551
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
552
552
|
return __generator(this, function (_c) {
|
|
553
553
|
switch (_c.label) {
|
|
554
|
-
case 0: return [4
|
|
554
|
+
case 0: return [4, context.endpoint()];
|
|
555
555
|
case 1:
|
|
556
556
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
557
557
|
headers = {};
|
|
@@ -568,7 +568,7 @@ export var serializeAws_restJson1GetDomainStatisticsReportCommand = function (in
|
|
|
568
568
|
throw new Error("No value provided for input HTTP label: Domain.");
|
|
569
569
|
}
|
|
570
570
|
query = __assign(__assign({}, (input.StartDate !== undefined && { StartDate: (input.StartDate.toISOString().split(".")[0] + "Z").toString() })), (input.EndDate !== undefined && { EndDate: (input.EndDate.toISOString().split(".")[0] + "Z").toString() }));
|
|
571
|
-
return [2
|
|
571
|
+
return [2, new __HttpRequest({
|
|
572
572
|
protocol: protocol,
|
|
573
573
|
hostname: hostname,
|
|
574
574
|
port: port,
|
|
@@ -585,7 +585,7 @@ export var serializeAws_restJson1GetEmailIdentityCommand = function (input, cont
|
|
|
585
585
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
586
586
|
return __generator(this, function (_c) {
|
|
587
587
|
switch (_c.label) {
|
|
588
|
-
case 0: return [4
|
|
588
|
+
case 0: return [4, context.endpoint()];
|
|
589
589
|
case 1:
|
|
590
590
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
591
591
|
headers = {};
|
|
@@ -600,7 +600,7 @@ export var serializeAws_restJson1GetEmailIdentityCommand = function (input, cont
|
|
|
600
600
|
else {
|
|
601
601
|
throw new Error("No value provided for input HTTP label: EmailIdentity.");
|
|
602
602
|
}
|
|
603
|
-
return [2
|
|
603
|
+
return [2, new __HttpRequest({
|
|
604
604
|
protocol: protocol,
|
|
605
605
|
hostname: hostname,
|
|
606
606
|
port: port,
|
|
@@ -616,13 +616,13 @@ export var serializeAws_restJson1ListConfigurationSetsCommand = function (input,
|
|
|
616
616
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
617
617
|
return __generator(this, function (_c) {
|
|
618
618
|
switch (_c.label) {
|
|
619
|
-
case 0: return [4
|
|
619
|
+
case 0: return [4, context.endpoint()];
|
|
620
620
|
case 1:
|
|
621
621
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
622
622
|
headers = {};
|
|
623
623
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/email/configuration-sets";
|
|
624
624
|
query = __assign(__assign({}, (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.PageSize !== undefined && { PageSize: input.PageSize.toString() }));
|
|
625
|
-
return [2
|
|
625
|
+
return [2, new __HttpRequest({
|
|
626
626
|
protocol: protocol,
|
|
627
627
|
hostname: hostname,
|
|
628
628
|
port: port,
|
|
@@ -639,13 +639,13 @@ export var serializeAws_restJson1ListDedicatedIpPoolsCommand = function (input,
|
|
|
639
639
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
640
640
|
return __generator(this, function (_c) {
|
|
641
641
|
switch (_c.label) {
|
|
642
|
-
case 0: return [4
|
|
642
|
+
case 0: return [4, context.endpoint()];
|
|
643
643
|
case 1:
|
|
644
644
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
645
645
|
headers = {};
|
|
646
646
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/email/dedicated-ip-pools";
|
|
647
647
|
query = __assign(__assign({}, (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.PageSize !== undefined && { PageSize: input.PageSize.toString() }));
|
|
648
|
-
return [2
|
|
648
|
+
return [2, new __HttpRequest({
|
|
649
649
|
protocol: protocol,
|
|
650
650
|
hostname: hostname,
|
|
651
651
|
port: port,
|
|
@@ -662,14 +662,14 @@ export var serializeAws_restJson1ListDeliverabilityTestReportsCommand = function
|
|
|
662
662
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
663
663
|
return __generator(this, function (_c) {
|
|
664
664
|
switch (_c.label) {
|
|
665
|
-
case 0: return [4
|
|
665
|
+
case 0: return [4, context.endpoint()];
|
|
666
666
|
case 1:
|
|
667
667
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
668
668
|
headers = {};
|
|
669
669
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
670
670
|
"/v1/email/deliverability-dashboard/test-reports";
|
|
671
671
|
query = __assign(__assign({}, (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.PageSize !== undefined && { PageSize: input.PageSize.toString() }));
|
|
672
|
-
return [2
|
|
672
|
+
return [2, new __HttpRequest({
|
|
673
673
|
protocol: protocol,
|
|
674
674
|
hostname: hostname,
|
|
675
675
|
port: port,
|
|
@@ -686,7 +686,7 @@ export var serializeAws_restJson1ListDomainDeliverabilityCampaignsCommand = func
|
|
|
686
686
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
687
687
|
return __generator(this, function (_c) {
|
|
688
688
|
switch (_c.label) {
|
|
689
|
-
case 0: return [4
|
|
689
|
+
case 0: return [4, context.endpoint()];
|
|
690
690
|
case 1:
|
|
691
691
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
692
692
|
headers = {};
|
|
@@ -703,7 +703,7 @@ export var serializeAws_restJson1ListDomainDeliverabilityCampaignsCommand = func
|
|
|
703
703
|
throw new Error("No value provided for input HTTP label: SubscribedDomain.");
|
|
704
704
|
}
|
|
705
705
|
query = __assign(__assign(__assign(__assign({}, (input.StartDate !== undefined && { StartDate: (input.StartDate.toISOString().split(".")[0] + "Z").toString() })), (input.EndDate !== undefined && { EndDate: (input.EndDate.toISOString().split(".")[0] + "Z").toString() })), (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.PageSize !== undefined && { PageSize: input.PageSize.toString() }));
|
|
706
|
-
return [2
|
|
706
|
+
return [2, new __HttpRequest({
|
|
707
707
|
protocol: protocol,
|
|
708
708
|
hostname: hostname,
|
|
709
709
|
port: port,
|
|
@@ -720,13 +720,13 @@ export var serializeAws_restJson1ListEmailIdentitiesCommand = function (input, c
|
|
|
720
720
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
721
721
|
return __generator(this, function (_c) {
|
|
722
722
|
switch (_c.label) {
|
|
723
|
-
case 0: return [4
|
|
723
|
+
case 0: return [4, context.endpoint()];
|
|
724
724
|
case 1:
|
|
725
725
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
726
726
|
headers = {};
|
|
727
727
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/email/identities";
|
|
728
728
|
query = __assign(__assign({}, (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.PageSize !== undefined && { PageSize: input.PageSize.toString() }));
|
|
729
|
-
return [2
|
|
729
|
+
return [2, new __HttpRequest({
|
|
730
730
|
protocol: protocol,
|
|
731
731
|
hostname: hostname,
|
|
732
732
|
port: port,
|
|
@@ -743,13 +743,13 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
743
743
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
744
744
|
return __generator(this, function (_c) {
|
|
745
745
|
switch (_c.label) {
|
|
746
|
-
case 0: return [4
|
|
746
|
+
case 0: return [4, context.endpoint()];
|
|
747
747
|
case 1:
|
|
748
748
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
749
749
|
headers = {};
|
|
750
750
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/email/tags";
|
|
751
751
|
query = __assign({}, (input.ResourceArn !== undefined && { ResourceArn: input.ResourceArn }));
|
|
752
|
-
return [2
|
|
752
|
+
return [2, new __HttpRequest({
|
|
753
753
|
protocol: protocol,
|
|
754
754
|
hostname: hostname,
|
|
755
755
|
port: port,
|
|
@@ -766,7 +766,7 @@ export var serializeAws_restJson1PutAccountDedicatedIpWarmupAttributesCommand =
|
|
|
766
766
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
767
767
|
return __generator(this, function (_c) {
|
|
768
768
|
switch (_c.label) {
|
|
769
|
-
case 0: return [4
|
|
769
|
+
case 0: return [4, context.endpoint()];
|
|
770
770
|
case 1:
|
|
771
771
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
772
772
|
headers = {
|
|
@@ -775,7 +775,7 @@ export var serializeAws_restJson1PutAccountDedicatedIpWarmupAttributesCommand =
|
|
|
775
775
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/email/account/dedicated-ips/warmup";
|
|
776
776
|
body = JSON.stringify(__assign({}, (input.AutoWarmupEnabled !== undefined &&
|
|
777
777
|
input.AutoWarmupEnabled !== null && { AutoWarmupEnabled: input.AutoWarmupEnabled })));
|
|
778
|
-
return [2
|
|
778
|
+
return [2, new __HttpRequest({
|
|
779
779
|
protocol: protocol,
|
|
780
780
|
hostname: hostname,
|
|
781
781
|
port: port,
|
|
@@ -791,7 +791,7 @@ export var serializeAws_restJson1PutAccountSendingAttributesCommand = function (
|
|
|
791
791
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
792
792
|
return __generator(this, function (_c) {
|
|
793
793
|
switch (_c.label) {
|
|
794
|
-
case 0: return [4
|
|
794
|
+
case 0: return [4, context.endpoint()];
|
|
795
795
|
case 1:
|
|
796
796
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
797
797
|
headers = {
|
|
@@ -800,7 +800,7 @@ export var serializeAws_restJson1PutAccountSendingAttributesCommand = function (
|
|
|
800
800
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/email/account/sending";
|
|
801
801
|
body = JSON.stringify(__assign({}, (input.SendingEnabled !== undefined &&
|
|
802
802
|
input.SendingEnabled !== null && { SendingEnabled: input.SendingEnabled })));
|
|
803
|
-
return [2
|
|
803
|
+
return [2, new __HttpRequest({
|
|
804
804
|
protocol: protocol,
|
|
805
805
|
hostname: hostname,
|
|
806
806
|
port: port,
|
|
@@ -816,7 +816,7 @@ export var serializeAws_restJson1PutConfigurationSetDeliveryOptionsCommand = fun
|
|
|
816
816
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
817
817
|
return __generator(this, function (_c) {
|
|
818
818
|
switch (_c.label) {
|
|
819
|
-
case 0: return [4
|
|
819
|
+
case 0: return [4, context.endpoint()];
|
|
820
820
|
case 1:
|
|
821
821
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
822
822
|
headers = {
|
|
@@ -836,7 +836,7 @@ export var serializeAws_restJson1PutConfigurationSetDeliveryOptionsCommand = fun
|
|
|
836
836
|
}
|
|
837
837
|
body = JSON.stringify(__assign(__assign({}, (input.SendingPoolName !== undefined &&
|
|
838
838
|
input.SendingPoolName !== null && { SendingPoolName: input.SendingPoolName })), (input.TlsPolicy !== undefined && input.TlsPolicy !== null && { TlsPolicy: input.TlsPolicy })));
|
|
839
|
-
return [2
|
|
839
|
+
return [2, new __HttpRequest({
|
|
840
840
|
protocol: protocol,
|
|
841
841
|
hostname: hostname,
|
|
842
842
|
port: port,
|
|
@@ -852,7 +852,7 @@ export var serializeAws_restJson1PutConfigurationSetReputationOptionsCommand = f
|
|
|
852
852
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
853
853
|
return __generator(this, function (_c) {
|
|
854
854
|
switch (_c.label) {
|
|
855
|
-
case 0: return [4
|
|
855
|
+
case 0: return [4, context.endpoint()];
|
|
856
856
|
case 1:
|
|
857
857
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
858
858
|
headers = {
|
|
@@ -872,7 +872,7 @@ export var serializeAws_restJson1PutConfigurationSetReputationOptionsCommand = f
|
|
|
872
872
|
}
|
|
873
873
|
body = JSON.stringify(__assign({}, (input.ReputationMetricsEnabled !== undefined &&
|
|
874
874
|
input.ReputationMetricsEnabled !== null && { ReputationMetricsEnabled: input.ReputationMetricsEnabled })));
|
|
875
|
-
return [2
|
|
875
|
+
return [2, new __HttpRequest({
|
|
876
876
|
protocol: protocol,
|
|
877
877
|
hostname: hostname,
|
|
878
878
|
port: port,
|
|
@@ -888,7 +888,7 @@ export var serializeAws_restJson1PutConfigurationSetSendingOptionsCommand = func
|
|
|
888
888
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
889
889
|
return __generator(this, function (_c) {
|
|
890
890
|
switch (_c.label) {
|
|
891
|
-
case 0: return [4
|
|
891
|
+
case 0: return [4, context.endpoint()];
|
|
892
892
|
case 1:
|
|
893
893
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
894
894
|
headers = {
|
|
@@ -908,7 +908,7 @@ export var serializeAws_restJson1PutConfigurationSetSendingOptionsCommand = func
|
|
|
908
908
|
}
|
|
909
909
|
body = JSON.stringify(__assign({}, (input.SendingEnabled !== undefined &&
|
|
910
910
|
input.SendingEnabled !== null && { SendingEnabled: input.SendingEnabled })));
|
|
911
|
-
return [2
|
|
911
|
+
return [2, new __HttpRequest({
|
|
912
912
|
protocol: protocol,
|
|
913
913
|
hostname: hostname,
|
|
914
914
|
port: port,
|
|
@@ -924,7 +924,7 @@ export var serializeAws_restJson1PutConfigurationSetTrackingOptionsCommand = fun
|
|
|
924
924
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
925
925
|
return __generator(this, function (_c) {
|
|
926
926
|
switch (_c.label) {
|
|
927
|
-
case 0: return [4
|
|
927
|
+
case 0: return [4, context.endpoint()];
|
|
928
928
|
case 1:
|
|
929
929
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
930
930
|
headers = {
|
|
@@ -944,7 +944,7 @@ export var serializeAws_restJson1PutConfigurationSetTrackingOptionsCommand = fun
|
|
|
944
944
|
}
|
|
945
945
|
body = JSON.stringify(__assign({}, (input.CustomRedirectDomain !== undefined &&
|
|
946
946
|
input.CustomRedirectDomain !== null && { CustomRedirectDomain: input.CustomRedirectDomain })));
|
|
947
|
-
return [2
|
|
947
|
+
return [2, new __HttpRequest({
|
|
948
948
|
protocol: protocol,
|
|
949
949
|
hostname: hostname,
|
|
950
950
|
port: port,
|
|
@@ -960,7 +960,7 @@ export var serializeAws_restJson1PutDedicatedIpInPoolCommand = function (input,
|
|
|
960
960
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
961
961
|
return __generator(this, function (_c) {
|
|
962
962
|
switch (_c.label) {
|
|
963
|
-
case 0: return [4
|
|
963
|
+
case 0: return [4, context.endpoint()];
|
|
964
964
|
case 1:
|
|
965
965
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
966
966
|
headers = {
|
|
@@ -979,7 +979,7 @@ export var serializeAws_restJson1PutDedicatedIpInPoolCommand = function (input,
|
|
|
979
979
|
}
|
|
980
980
|
body = JSON.stringify(__assign({}, (input.DestinationPoolName !== undefined &&
|
|
981
981
|
input.DestinationPoolName !== null && { DestinationPoolName: input.DestinationPoolName })));
|
|
982
|
-
return [2
|
|
982
|
+
return [2, new __HttpRequest({
|
|
983
983
|
protocol: protocol,
|
|
984
984
|
hostname: hostname,
|
|
985
985
|
port: port,
|
|
@@ -995,7 +995,7 @@ export var serializeAws_restJson1PutDedicatedIpWarmupAttributesCommand = functio
|
|
|
995
995
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
996
996
|
return __generator(this, function (_c) {
|
|
997
997
|
switch (_c.label) {
|
|
998
|
-
case 0: return [4
|
|
998
|
+
case 0: return [4, context.endpoint()];
|
|
999
999
|
case 1:
|
|
1000
1000
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1001
1001
|
headers = {
|
|
@@ -1014,7 +1014,7 @@ export var serializeAws_restJson1PutDedicatedIpWarmupAttributesCommand = functio
|
|
|
1014
1014
|
}
|
|
1015
1015
|
body = JSON.stringify(__assign({}, (input.WarmupPercentage !== undefined &&
|
|
1016
1016
|
input.WarmupPercentage !== null && { WarmupPercentage: input.WarmupPercentage })));
|
|
1017
|
-
return [2
|
|
1017
|
+
return [2, new __HttpRequest({
|
|
1018
1018
|
protocol: protocol,
|
|
1019
1019
|
hostname: hostname,
|
|
1020
1020
|
port: port,
|
|
@@ -1030,7 +1030,7 @@ export var serializeAws_restJson1PutDeliverabilityDashboardOptionCommand = funct
|
|
|
1030
1030
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1031
1031
|
return __generator(this, function (_c) {
|
|
1032
1032
|
switch (_c.label) {
|
|
1033
|
-
case 0: return [4
|
|
1033
|
+
case 0: return [4, context.endpoint()];
|
|
1034
1034
|
case 1:
|
|
1035
1035
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1036
1036
|
headers = {
|
|
@@ -1042,7 +1042,7 @@ export var serializeAws_restJson1PutDeliverabilityDashboardOptionCommand = funct
|
|
|
1042
1042
|
input.SubscribedDomains !== null && {
|
|
1043
1043
|
SubscribedDomains: serializeAws_restJson1DomainDeliverabilityTrackingOptions(input.SubscribedDomains, context),
|
|
1044
1044
|
})));
|
|
1045
|
-
return [2
|
|
1045
|
+
return [2, new __HttpRequest({
|
|
1046
1046
|
protocol: protocol,
|
|
1047
1047
|
hostname: hostname,
|
|
1048
1048
|
port: port,
|
|
@@ -1058,7 +1058,7 @@ export var serializeAws_restJson1PutEmailIdentityDkimAttributesCommand = functio
|
|
|
1058
1058
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
1059
1059
|
return __generator(this, function (_c) {
|
|
1060
1060
|
switch (_c.label) {
|
|
1061
|
-
case 0: return [4
|
|
1061
|
+
case 0: return [4, context.endpoint()];
|
|
1062
1062
|
case 1:
|
|
1063
1063
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1064
1064
|
headers = {
|
|
@@ -1077,7 +1077,7 @@ export var serializeAws_restJson1PutEmailIdentityDkimAttributesCommand = functio
|
|
|
1077
1077
|
}
|
|
1078
1078
|
body = JSON.stringify(__assign({}, (input.SigningEnabled !== undefined &&
|
|
1079
1079
|
input.SigningEnabled !== null && { SigningEnabled: input.SigningEnabled })));
|
|
1080
|
-
return [2
|
|
1080
|
+
return [2, new __HttpRequest({
|
|
1081
1081
|
protocol: protocol,
|
|
1082
1082
|
hostname: hostname,
|
|
1083
1083
|
port: port,
|
|
@@ -1093,7 +1093,7 @@ export var serializeAws_restJson1PutEmailIdentityFeedbackAttributesCommand = fun
|
|
|
1093
1093
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
1094
1094
|
return __generator(this, function (_c) {
|
|
1095
1095
|
switch (_c.label) {
|
|
1096
|
-
case 0: return [4
|
|
1096
|
+
case 0: return [4, context.endpoint()];
|
|
1097
1097
|
case 1:
|
|
1098
1098
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1099
1099
|
headers = {
|
|
@@ -1113,7 +1113,7 @@ export var serializeAws_restJson1PutEmailIdentityFeedbackAttributesCommand = fun
|
|
|
1113
1113
|
}
|
|
1114
1114
|
body = JSON.stringify(__assign({}, (input.EmailForwardingEnabled !== undefined &&
|
|
1115
1115
|
input.EmailForwardingEnabled !== null && { EmailForwardingEnabled: input.EmailForwardingEnabled })));
|
|
1116
|
-
return [2
|
|
1116
|
+
return [2, new __HttpRequest({
|
|
1117
1117
|
protocol: protocol,
|
|
1118
1118
|
hostname: hostname,
|
|
1119
1119
|
port: port,
|
|
@@ -1129,7 +1129,7 @@ export var serializeAws_restJson1PutEmailIdentityMailFromAttributesCommand = fun
|
|
|
1129
1129
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
1130
1130
|
return __generator(this, function (_c) {
|
|
1131
1131
|
switch (_c.label) {
|
|
1132
|
-
case 0: return [4
|
|
1132
|
+
case 0: return [4, context.endpoint()];
|
|
1133
1133
|
case 1:
|
|
1134
1134
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1135
1135
|
headers = {
|
|
@@ -1150,7 +1150,7 @@ export var serializeAws_restJson1PutEmailIdentityMailFromAttributesCommand = fun
|
|
|
1150
1150
|
body = JSON.stringify(__assign(__assign({}, (input.BehaviorOnMxFailure !== undefined &&
|
|
1151
1151
|
input.BehaviorOnMxFailure !== null && { BehaviorOnMxFailure: input.BehaviorOnMxFailure })), (input.MailFromDomain !== undefined &&
|
|
1152
1152
|
input.MailFromDomain !== null && { MailFromDomain: input.MailFromDomain })));
|
|
1153
|
-
return [2
|
|
1153
|
+
return [2, new __HttpRequest({
|
|
1154
1154
|
protocol: protocol,
|
|
1155
1155
|
hostname: hostname,
|
|
1156
1156
|
port: port,
|
|
@@ -1166,7 +1166,7 @@ export var serializeAws_restJson1SendEmailCommand = function (input, context) {
|
|
|
1166
1166
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1167
1167
|
return __generator(this, function (_c) {
|
|
1168
1168
|
switch (_c.label) {
|
|
1169
|
-
case 0: return [4
|
|
1169
|
+
case 0: return [4, context.endpoint()];
|
|
1170
1170
|
case 1:
|
|
1171
1171
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1172
1172
|
headers = {
|
|
@@ -1185,7 +1185,7 @@ export var serializeAws_restJson1SendEmailCommand = function (input, context) {
|
|
|
1185
1185
|
input.ReplyToAddresses !== null && {
|
|
1186
1186
|
ReplyToAddresses: serializeAws_restJson1EmailAddressList(input.ReplyToAddresses, context),
|
|
1187
1187
|
})));
|
|
1188
|
-
return [2
|
|
1188
|
+
return [2, new __HttpRequest({
|
|
1189
1189
|
protocol: protocol,
|
|
1190
1190
|
hostname: hostname,
|
|
1191
1191
|
port: port,
|
|
@@ -1201,7 +1201,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
1201
1201
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1202
1202
|
return __generator(this, function (_c) {
|
|
1203
1203
|
switch (_c.label) {
|
|
1204
|
-
case 0: return [4
|
|
1204
|
+
case 0: return [4, context.endpoint()];
|
|
1205
1205
|
case 1:
|
|
1206
1206
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1207
1207
|
headers = {
|
|
@@ -1210,7 +1210,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
1210
1210
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/email/tags";
|
|
1211
1211
|
body = JSON.stringify(__assign(__assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn })), (input.Tags !== undefined &&
|
|
1212
1212
|
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
1213
|
-
return [2
|
|
1213
|
+
return [2, new __HttpRequest({
|
|
1214
1214
|
protocol: protocol,
|
|
1215
1215
|
hostname: hostname,
|
|
1216
1216
|
port: port,
|
|
@@ -1226,13 +1226,13 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
1226
1226
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1227
1227
|
return __generator(this, function (_c) {
|
|
1228
1228
|
switch (_c.label) {
|
|
1229
|
-
case 0: return [4
|
|
1229
|
+
case 0: return [4, context.endpoint()];
|
|
1230
1230
|
case 1:
|
|
1231
1231
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1232
1232
|
headers = {};
|
|
1233
1233
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/email/tags";
|
|
1234
1234
|
query = __assign(__assign({}, (input.ResourceArn !== undefined && { ResourceArn: input.ResourceArn })), (input.TagKeys !== undefined && { TagKeys: (input.TagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
1235
|
-
return [2
|
|
1235
|
+
return [2, new __HttpRequest({
|
|
1236
1236
|
protocol: protocol,
|
|
1237
1237
|
hostname: hostname,
|
|
1238
1238
|
port: port,
|
|
@@ -1249,7 +1249,7 @@ export var serializeAws_restJson1UpdateConfigurationSetEventDestinationCommand =
|
|
|
1249
1249
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
1250
1250
|
return __generator(this, function (_c) {
|
|
1251
1251
|
switch (_c.label) {
|
|
1252
|
-
case 0: return [4
|
|
1252
|
+
case 0: return [4, context.endpoint()];
|
|
1253
1253
|
case 1:
|
|
1254
1254
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1255
1255
|
headers = {
|
|
@@ -1281,7 +1281,7 @@ export var serializeAws_restJson1UpdateConfigurationSetEventDestinationCommand =
|
|
|
1281
1281
|
input.EventDestination !== null && {
|
|
1282
1282
|
EventDestination: serializeAws_restJson1EventDestinationDefinition(input.EventDestination, context),
|
|
1283
1283
|
})));
|
|
1284
|
-
return [2
|
|
1284
|
+
return [2, new __HttpRequest({
|
|
1285
1285
|
protocol: protocol,
|
|
1286
1286
|
hostname: hostname,
|
|
1287
1287
|
port: port,
|
|
@@ -1299,15 +1299,15 @@ export var deserializeAws_restJson1CreateConfigurationSetCommand = function (out
|
|
|
1299
1299
|
switch (_a.label) {
|
|
1300
1300
|
case 0:
|
|
1301
1301
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1302
|
-
return [2
|
|
1302
|
+
return [2, deserializeAws_restJson1CreateConfigurationSetCommandError(output, context)];
|
|
1303
1303
|
}
|
|
1304
1304
|
contents = {
|
|
1305
1305
|
$metadata: deserializeMetadata(output),
|
|
1306
1306
|
};
|
|
1307
|
-
return [4
|
|
1307
|
+
return [4, collectBody(output.body, context)];
|
|
1308
1308
|
case 1:
|
|
1309
1309
|
_a.sent();
|
|
1310
|
-
return [2
|
|
1310
|
+
return [2, Promise.resolve(contents)];
|
|
1311
1311
|
}
|
|
1312
1312
|
});
|
|
1313
1313
|
}); };
|
|
@@ -1319,63 +1319,63 @@ var deserializeAws_restJson1CreateConfigurationSetCommandError = function (outpu
|
|
|
1319
1319
|
case 0:
|
|
1320
1320
|
_a = [__assign({}, output)];
|
|
1321
1321
|
_j = {};
|
|
1322
|
-
return [4
|
|
1322
|
+
return [4, parseBody(output.body, context)];
|
|
1323
1323
|
case 1:
|
|
1324
1324
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1325
1325
|
errorCode = "UnknownError";
|
|
1326
1326
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1327
1327
|
_b = errorCode;
|
|
1328
1328
|
switch (_b) {
|
|
1329
|
-
case "AlreadyExistsException": return [3
|
|
1330
|
-
case "com.amazonaws.pinpointemail#AlreadyExistsException": return [3
|
|
1331
|
-
case "BadRequestException": return [3
|
|
1332
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
1333
|
-
case "ConcurrentModificationException": return [3
|
|
1334
|
-
case "com.amazonaws.pinpointemail#ConcurrentModificationException": return [3
|
|
1335
|
-
case "LimitExceededException": return [3
|
|
1336
|
-
case "com.amazonaws.pinpointemail#LimitExceededException": return [3
|
|
1337
|
-
case "NotFoundException": return [3
|
|
1338
|
-
case "com.amazonaws.pinpointemail#NotFoundException": return [3
|
|
1339
|
-
case "TooManyRequestsException": return [3
|
|
1340
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
1341
|
-
}
|
|
1342
|
-
return [3
|
|
1329
|
+
case "AlreadyExistsException": return [3, 2];
|
|
1330
|
+
case "com.amazonaws.pinpointemail#AlreadyExistsException": return [3, 2];
|
|
1331
|
+
case "BadRequestException": return [3, 4];
|
|
1332
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 4];
|
|
1333
|
+
case "ConcurrentModificationException": return [3, 6];
|
|
1334
|
+
case "com.amazonaws.pinpointemail#ConcurrentModificationException": return [3, 6];
|
|
1335
|
+
case "LimitExceededException": return [3, 8];
|
|
1336
|
+
case "com.amazonaws.pinpointemail#LimitExceededException": return [3, 8];
|
|
1337
|
+
case "NotFoundException": return [3, 10];
|
|
1338
|
+
case "com.amazonaws.pinpointemail#NotFoundException": return [3, 10];
|
|
1339
|
+
case "TooManyRequestsException": return [3, 12];
|
|
1340
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 12];
|
|
1341
|
+
}
|
|
1342
|
+
return [3, 14];
|
|
1343
1343
|
case 2:
|
|
1344
1344
|
_c = [{}];
|
|
1345
|
-
return [4
|
|
1345
|
+
return [4, deserializeAws_restJson1AlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
1346
1346
|
case 3:
|
|
1347
1347
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1348
|
-
return [3
|
|
1348
|
+
return [3, 15];
|
|
1349
1349
|
case 4:
|
|
1350
1350
|
_d = [{}];
|
|
1351
|
-
return [4
|
|
1351
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1352
1352
|
case 5:
|
|
1353
1353
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1354
|
-
return [3
|
|
1354
|
+
return [3, 15];
|
|
1355
1355
|
case 6:
|
|
1356
1356
|
_e = [{}];
|
|
1357
|
-
return [4
|
|
1357
|
+
return [4, deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1358
1358
|
case 7:
|
|
1359
1359
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1360
|
-
return [3
|
|
1360
|
+
return [3, 15];
|
|
1361
1361
|
case 8:
|
|
1362
1362
|
_f = [{}];
|
|
1363
|
-
return [4
|
|
1363
|
+
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1364
1364
|
case 9:
|
|
1365
1365
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1366
|
-
return [3
|
|
1366
|
+
return [3, 15];
|
|
1367
1367
|
case 10:
|
|
1368
1368
|
_g = [{}];
|
|
1369
|
-
return [4
|
|
1369
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1370
1370
|
case 11:
|
|
1371
1371
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1372
|
-
return [3
|
|
1372
|
+
return [3, 15];
|
|
1373
1373
|
case 12:
|
|
1374
1374
|
_h = [{}];
|
|
1375
|
-
return [4
|
|
1375
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1376
1376
|
case 13:
|
|
1377
1377
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1378
|
-
return [3
|
|
1378
|
+
return [3, 15];
|
|
1379
1379
|
case 14:
|
|
1380
1380
|
parsedBody = parsedOutput.body;
|
|
1381
1381
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1385,7 +1385,7 @@ var deserializeAws_restJson1CreateConfigurationSetCommandError = function (outpu
|
|
|
1385
1385
|
message = response.message || response.Message || errorCode;
|
|
1386
1386
|
response.message = message;
|
|
1387
1387
|
delete response.Message;
|
|
1388
|
-
return [2
|
|
1388
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1389
1389
|
}
|
|
1390
1390
|
});
|
|
1391
1391
|
}); };
|
|
@@ -1395,15 +1395,15 @@ export var deserializeAws_restJson1CreateConfigurationSetEventDestinationCommand
|
|
|
1395
1395
|
switch (_a.label) {
|
|
1396
1396
|
case 0:
|
|
1397
1397
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1398
|
-
return [2
|
|
1398
|
+
return [2, deserializeAws_restJson1CreateConfigurationSetEventDestinationCommandError(output, context)];
|
|
1399
1399
|
}
|
|
1400
1400
|
contents = {
|
|
1401
1401
|
$metadata: deserializeMetadata(output),
|
|
1402
1402
|
};
|
|
1403
|
-
return [4
|
|
1403
|
+
return [4, collectBody(output.body, context)];
|
|
1404
1404
|
case 1:
|
|
1405
1405
|
_a.sent();
|
|
1406
|
-
return [2
|
|
1406
|
+
return [2, Promise.resolve(contents)];
|
|
1407
1407
|
}
|
|
1408
1408
|
});
|
|
1409
1409
|
}); };
|
|
@@ -1415,55 +1415,55 @@ var deserializeAws_restJson1CreateConfigurationSetEventDestinationCommandError =
|
|
|
1415
1415
|
case 0:
|
|
1416
1416
|
_a = [__assign({}, output)];
|
|
1417
1417
|
_h = {};
|
|
1418
|
-
return [4
|
|
1418
|
+
return [4, parseBody(output.body, context)];
|
|
1419
1419
|
case 1:
|
|
1420
1420
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1421
1421
|
errorCode = "UnknownError";
|
|
1422
1422
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1423
1423
|
_b = errorCode;
|
|
1424
1424
|
switch (_b) {
|
|
1425
|
-
case "AlreadyExistsException": return [3
|
|
1426
|
-
case "com.amazonaws.pinpointemail#AlreadyExistsException": return [3
|
|
1427
|
-
case "BadRequestException": return [3
|
|
1428
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
1429
|
-
case "LimitExceededException": return [3
|
|
1430
|
-
case "com.amazonaws.pinpointemail#LimitExceededException": return [3
|
|
1431
|
-
case "NotFoundException": return [3
|
|
1432
|
-
case "com.amazonaws.pinpointemail#NotFoundException": return [3
|
|
1433
|
-
case "TooManyRequestsException": return [3
|
|
1434
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
1435
|
-
}
|
|
1436
|
-
return [3
|
|
1425
|
+
case "AlreadyExistsException": return [3, 2];
|
|
1426
|
+
case "com.amazonaws.pinpointemail#AlreadyExistsException": return [3, 2];
|
|
1427
|
+
case "BadRequestException": return [3, 4];
|
|
1428
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 4];
|
|
1429
|
+
case "LimitExceededException": return [3, 6];
|
|
1430
|
+
case "com.amazonaws.pinpointemail#LimitExceededException": return [3, 6];
|
|
1431
|
+
case "NotFoundException": return [3, 8];
|
|
1432
|
+
case "com.amazonaws.pinpointemail#NotFoundException": return [3, 8];
|
|
1433
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1434
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 10];
|
|
1435
|
+
}
|
|
1436
|
+
return [3, 12];
|
|
1437
1437
|
case 2:
|
|
1438
1438
|
_c = [{}];
|
|
1439
|
-
return [4
|
|
1439
|
+
return [4, deserializeAws_restJson1AlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
1440
1440
|
case 3:
|
|
1441
1441
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1442
|
-
return [3
|
|
1442
|
+
return [3, 13];
|
|
1443
1443
|
case 4:
|
|
1444
1444
|
_d = [{}];
|
|
1445
|
-
return [4
|
|
1445
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1446
1446
|
case 5:
|
|
1447
1447
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1448
|
-
return [3
|
|
1448
|
+
return [3, 13];
|
|
1449
1449
|
case 6:
|
|
1450
1450
|
_e = [{}];
|
|
1451
|
-
return [4
|
|
1451
|
+
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1452
1452
|
case 7:
|
|
1453
1453
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1454
|
-
return [3
|
|
1454
|
+
return [3, 13];
|
|
1455
1455
|
case 8:
|
|
1456
1456
|
_f = [{}];
|
|
1457
|
-
return [4
|
|
1457
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1458
1458
|
case 9:
|
|
1459
1459
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1460
|
-
return [3
|
|
1460
|
+
return [3, 13];
|
|
1461
1461
|
case 10:
|
|
1462
1462
|
_g = [{}];
|
|
1463
|
-
return [4
|
|
1463
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1464
1464
|
case 11:
|
|
1465
1465
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1466
|
-
return [3
|
|
1466
|
+
return [3, 13];
|
|
1467
1467
|
case 12:
|
|
1468
1468
|
parsedBody = parsedOutput.body;
|
|
1469
1469
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1473,7 +1473,7 @@ var deserializeAws_restJson1CreateConfigurationSetEventDestinationCommandError =
|
|
|
1473
1473
|
message = response.message || response.Message || errorCode;
|
|
1474
1474
|
response.message = message;
|
|
1475
1475
|
delete response.Message;
|
|
1476
|
-
return [2
|
|
1476
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1477
1477
|
}
|
|
1478
1478
|
});
|
|
1479
1479
|
}); };
|
|
@@ -1483,15 +1483,15 @@ export var deserializeAws_restJson1CreateDedicatedIpPoolCommand = function (outp
|
|
|
1483
1483
|
switch (_a.label) {
|
|
1484
1484
|
case 0:
|
|
1485
1485
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1486
|
-
return [2
|
|
1486
|
+
return [2, deserializeAws_restJson1CreateDedicatedIpPoolCommandError(output, context)];
|
|
1487
1487
|
}
|
|
1488
1488
|
contents = {
|
|
1489
1489
|
$metadata: deserializeMetadata(output),
|
|
1490
1490
|
};
|
|
1491
|
-
return [4
|
|
1491
|
+
return [4, collectBody(output.body, context)];
|
|
1492
1492
|
case 1:
|
|
1493
1493
|
_a.sent();
|
|
1494
|
-
return [2
|
|
1494
|
+
return [2, Promise.resolve(contents)];
|
|
1495
1495
|
}
|
|
1496
1496
|
});
|
|
1497
1497
|
}); };
|
|
@@ -1503,55 +1503,55 @@ var deserializeAws_restJson1CreateDedicatedIpPoolCommandError = function (output
|
|
|
1503
1503
|
case 0:
|
|
1504
1504
|
_a = [__assign({}, output)];
|
|
1505
1505
|
_h = {};
|
|
1506
|
-
return [4
|
|
1506
|
+
return [4, parseBody(output.body, context)];
|
|
1507
1507
|
case 1:
|
|
1508
1508
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1509
1509
|
errorCode = "UnknownError";
|
|
1510
1510
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1511
1511
|
_b = errorCode;
|
|
1512
1512
|
switch (_b) {
|
|
1513
|
-
case "AlreadyExistsException": return [3
|
|
1514
|
-
case "com.amazonaws.pinpointemail#AlreadyExistsException": return [3
|
|
1515
|
-
case "BadRequestException": return [3
|
|
1516
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
1517
|
-
case "ConcurrentModificationException": return [3
|
|
1518
|
-
case "com.amazonaws.pinpointemail#ConcurrentModificationException": return [3
|
|
1519
|
-
case "LimitExceededException": return [3
|
|
1520
|
-
case "com.amazonaws.pinpointemail#LimitExceededException": return [3
|
|
1521
|
-
case "TooManyRequestsException": return [3
|
|
1522
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
1523
|
-
}
|
|
1524
|
-
return [3
|
|
1513
|
+
case "AlreadyExistsException": return [3, 2];
|
|
1514
|
+
case "com.amazonaws.pinpointemail#AlreadyExistsException": return [3, 2];
|
|
1515
|
+
case "BadRequestException": return [3, 4];
|
|
1516
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 4];
|
|
1517
|
+
case "ConcurrentModificationException": return [3, 6];
|
|
1518
|
+
case "com.amazonaws.pinpointemail#ConcurrentModificationException": return [3, 6];
|
|
1519
|
+
case "LimitExceededException": return [3, 8];
|
|
1520
|
+
case "com.amazonaws.pinpointemail#LimitExceededException": return [3, 8];
|
|
1521
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1522
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 10];
|
|
1523
|
+
}
|
|
1524
|
+
return [3, 12];
|
|
1525
1525
|
case 2:
|
|
1526
1526
|
_c = [{}];
|
|
1527
|
-
return [4
|
|
1527
|
+
return [4, deserializeAws_restJson1AlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
1528
1528
|
case 3:
|
|
1529
1529
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1530
|
-
return [3
|
|
1530
|
+
return [3, 13];
|
|
1531
1531
|
case 4:
|
|
1532
1532
|
_d = [{}];
|
|
1533
|
-
return [4
|
|
1533
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1534
1534
|
case 5:
|
|
1535
1535
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1536
|
-
return [3
|
|
1536
|
+
return [3, 13];
|
|
1537
1537
|
case 6:
|
|
1538
1538
|
_e = [{}];
|
|
1539
|
-
return [4
|
|
1539
|
+
return [4, deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1540
1540
|
case 7:
|
|
1541
1541
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1542
|
-
return [3
|
|
1542
|
+
return [3, 13];
|
|
1543
1543
|
case 8:
|
|
1544
1544
|
_f = [{}];
|
|
1545
|
-
return [4
|
|
1545
|
+
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1546
1546
|
case 9:
|
|
1547
1547
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1548
|
-
return [3
|
|
1548
|
+
return [3, 13];
|
|
1549
1549
|
case 10:
|
|
1550
1550
|
_g = [{}];
|
|
1551
|
-
return [4
|
|
1551
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1552
1552
|
case 11:
|
|
1553
1553
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1554
|
-
return [3
|
|
1554
|
+
return [3, 13];
|
|
1555
1555
|
case 12:
|
|
1556
1556
|
parsedBody = parsedOutput.body;
|
|
1557
1557
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1561,7 +1561,7 @@ var deserializeAws_restJson1CreateDedicatedIpPoolCommandError = function (output
|
|
|
1561
1561
|
message = response.message || response.Message || errorCode;
|
|
1562
1562
|
response.message = message;
|
|
1563
1563
|
delete response.Message;
|
|
1564
|
-
return [2
|
|
1564
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1565
1565
|
}
|
|
1566
1566
|
});
|
|
1567
1567
|
}); };
|
|
@@ -1571,7 +1571,7 @@ export var deserializeAws_restJson1CreateDeliverabilityTestReportCommand = funct
|
|
|
1571
1571
|
switch (_c.label) {
|
|
1572
1572
|
case 0:
|
|
1573
1573
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1574
|
-
return [2
|
|
1574
|
+
return [2, deserializeAws_restJson1CreateDeliverabilityTestReportCommandError(output, context)];
|
|
1575
1575
|
}
|
|
1576
1576
|
contents = {
|
|
1577
1577
|
$metadata: deserializeMetadata(output),
|
|
@@ -1580,7 +1580,7 @@ export var deserializeAws_restJson1CreateDeliverabilityTestReportCommand = funct
|
|
|
1580
1580
|
};
|
|
1581
1581
|
_a = __expectNonNull;
|
|
1582
1582
|
_b = __expectObject;
|
|
1583
|
-
return [4
|
|
1583
|
+
return [4, parseBody(output.body, context)];
|
|
1584
1584
|
case 1:
|
|
1585
1585
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1586
1586
|
if (data.DeliverabilityTestStatus !== undefined && data.DeliverabilityTestStatus !== null) {
|
|
@@ -1589,7 +1589,7 @@ export var deserializeAws_restJson1CreateDeliverabilityTestReportCommand = funct
|
|
|
1589
1589
|
if (data.ReportId !== undefined && data.ReportId !== null) {
|
|
1590
1590
|
contents.ReportId = __expectString(data.ReportId);
|
|
1591
1591
|
}
|
|
1592
|
-
return [2
|
|
1592
|
+
return [2, Promise.resolve(contents)];
|
|
1593
1593
|
}
|
|
1594
1594
|
});
|
|
1595
1595
|
}); };
|
|
@@ -1601,87 +1601,87 @@ var deserializeAws_restJson1CreateDeliverabilityTestReportCommandError = functio
|
|
|
1601
1601
|
case 0:
|
|
1602
1602
|
_a = [__assign({}, output)];
|
|
1603
1603
|
_m = {};
|
|
1604
|
-
return [4
|
|
1604
|
+
return [4, parseBody(output.body, context)];
|
|
1605
1605
|
case 1:
|
|
1606
1606
|
parsedOutput = __assign.apply(void 0, _a.concat([(_m.body = _o.sent(), _m)]));
|
|
1607
1607
|
errorCode = "UnknownError";
|
|
1608
1608
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1609
1609
|
_b = errorCode;
|
|
1610
1610
|
switch (_b) {
|
|
1611
|
-
case "AccountSuspendedException": return [3
|
|
1612
|
-
case "com.amazonaws.pinpointemail#AccountSuspendedException": return [3
|
|
1613
|
-
case "BadRequestException": return [3
|
|
1614
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
1615
|
-
case "ConcurrentModificationException": return [3
|
|
1616
|
-
case "com.amazonaws.pinpointemail#ConcurrentModificationException": return [3
|
|
1617
|
-
case "LimitExceededException": return [3
|
|
1618
|
-
case "com.amazonaws.pinpointemail#LimitExceededException": return [3
|
|
1619
|
-
case "MailFromDomainNotVerifiedException": return [3
|
|
1620
|
-
case "com.amazonaws.pinpointemail#MailFromDomainNotVerifiedException": return [3
|
|
1621
|
-
case "MessageRejected": return [3
|
|
1622
|
-
case "com.amazonaws.pinpointemail#MessageRejected": return [3
|
|
1623
|
-
case "NotFoundException": return [3
|
|
1624
|
-
case "com.amazonaws.pinpointemail#NotFoundException": return [3
|
|
1625
|
-
case "SendingPausedException": return [3
|
|
1626
|
-
case "com.amazonaws.pinpointemail#SendingPausedException": return [3
|
|
1627
|
-
case "TooManyRequestsException": return [3
|
|
1628
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
1629
|
-
}
|
|
1630
|
-
return [3
|
|
1611
|
+
case "AccountSuspendedException": return [3, 2];
|
|
1612
|
+
case "com.amazonaws.pinpointemail#AccountSuspendedException": return [3, 2];
|
|
1613
|
+
case "BadRequestException": return [3, 4];
|
|
1614
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 4];
|
|
1615
|
+
case "ConcurrentModificationException": return [3, 6];
|
|
1616
|
+
case "com.amazonaws.pinpointemail#ConcurrentModificationException": return [3, 6];
|
|
1617
|
+
case "LimitExceededException": return [3, 8];
|
|
1618
|
+
case "com.amazonaws.pinpointemail#LimitExceededException": return [3, 8];
|
|
1619
|
+
case "MailFromDomainNotVerifiedException": return [3, 10];
|
|
1620
|
+
case "com.amazonaws.pinpointemail#MailFromDomainNotVerifiedException": return [3, 10];
|
|
1621
|
+
case "MessageRejected": return [3, 12];
|
|
1622
|
+
case "com.amazonaws.pinpointemail#MessageRejected": return [3, 12];
|
|
1623
|
+
case "NotFoundException": return [3, 14];
|
|
1624
|
+
case "com.amazonaws.pinpointemail#NotFoundException": return [3, 14];
|
|
1625
|
+
case "SendingPausedException": return [3, 16];
|
|
1626
|
+
case "com.amazonaws.pinpointemail#SendingPausedException": return [3, 16];
|
|
1627
|
+
case "TooManyRequestsException": return [3, 18];
|
|
1628
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 18];
|
|
1629
|
+
}
|
|
1630
|
+
return [3, 20];
|
|
1631
1631
|
case 2:
|
|
1632
1632
|
_c = [{}];
|
|
1633
|
-
return [4
|
|
1633
|
+
return [4, deserializeAws_restJson1AccountSuspendedExceptionResponse(parsedOutput, context)];
|
|
1634
1634
|
case 3:
|
|
1635
1635
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1636
|
-
return [3
|
|
1636
|
+
return [3, 21];
|
|
1637
1637
|
case 4:
|
|
1638
1638
|
_d = [{}];
|
|
1639
|
-
return [4
|
|
1639
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1640
1640
|
case 5:
|
|
1641
1641
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1642
|
-
return [3
|
|
1642
|
+
return [3, 21];
|
|
1643
1643
|
case 6:
|
|
1644
1644
|
_e = [{}];
|
|
1645
|
-
return [4
|
|
1645
|
+
return [4, deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1646
1646
|
case 7:
|
|
1647
1647
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1648
|
-
return [3
|
|
1648
|
+
return [3, 21];
|
|
1649
1649
|
case 8:
|
|
1650
1650
|
_f = [{}];
|
|
1651
|
-
return [4
|
|
1651
|
+
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1652
1652
|
case 9:
|
|
1653
1653
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1654
|
-
return [3
|
|
1654
|
+
return [3, 21];
|
|
1655
1655
|
case 10:
|
|
1656
1656
|
_g = [{}];
|
|
1657
|
-
return [4
|
|
1657
|
+
return [4, deserializeAws_restJson1MailFromDomainNotVerifiedExceptionResponse(parsedOutput, context)];
|
|
1658
1658
|
case 11:
|
|
1659
1659
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1660
|
-
return [3
|
|
1660
|
+
return [3, 21];
|
|
1661
1661
|
case 12:
|
|
1662
1662
|
_h = [{}];
|
|
1663
|
-
return [4
|
|
1663
|
+
return [4, deserializeAws_restJson1MessageRejectedResponse(parsedOutput, context)];
|
|
1664
1664
|
case 13:
|
|
1665
1665
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1666
|
-
return [3
|
|
1666
|
+
return [3, 21];
|
|
1667
1667
|
case 14:
|
|
1668
1668
|
_j = [{}];
|
|
1669
|
-
return [4
|
|
1669
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1670
1670
|
case 15:
|
|
1671
1671
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1672
|
-
return [3
|
|
1672
|
+
return [3, 21];
|
|
1673
1673
|
case 16:
|
|
1674
1674
|
_k = [{}];
|
|
1675
|
-
return [4
|
|
1675
|
+
return [4, deserializeAws_restJson1SendingPausedExceptionResponse(parsedOutput, context)];
|
|
1676
1676
|
case 17:
|
|
1677
1677
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1678
|
-
return [3
|
|
1678
|
+
return [3, 21];
|
|
1679
1679
|
case 18:
|
|
1680
1680
|
_l = [{}];
|
|
1681
|
-
return [4
|
|
1681
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1682
1682
|
case 19:
|
|
1683
1683
|
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1684
|
-
return [3
|
|
1684
|
+
return [3, 21];
|
|
1685
1685
|
case 20:
|
|
1686
1686
|
parsedBody = parsedOutput.body;
|
|
1687
1687
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1691,7 +1691,7 @@ var deserializeAws_restJson1CreateDeliverabilityTestReportCommandError = functio
|
|
|
1691
1691
|
message = response.message || response.Message || errorCode;
|
|
1692
1692
|
response.message = message;
|
|
1693
1693
|
delete response.Message;
|
|
1694
|
-
return [2
|
|
1694
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1695
1695
|
}
|
|
1696
1696
|
});
|
|
1697
1697
|
}); };
|
|
@@ -1701,7 +1701,7 @@ export var deserializeAws_restJson1CreateEmailIdentityCommand = function (output
|
|
|
1701
1701
|
switch (_c.label) {
|
|
1702
1702
|
case 0:
|
|
1703
1703
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1704
|
-
return [2
|
|
1704
|
+
return [2, deserializeAws_restJson1CreateEmailIdentityCommandError(output, context)];
|
|
1705
1705
|
}
|
|
1706
1706
|
contents = {
|
|
1707
1707
|
$metadata: deserializeMetadata(output),
|
|
@@ -1711,7 +1711,7 @@ export var deserializeAws_restJson1CreateEmailIdentityCommand = function (output
|
|
|
1711
1711
|
};
|
|
1712
1712
|
_a = __expectNonNull;
|
|
1713
1713
|
_b = __expectObject;
|
|
1714
|
-
return [4
|
|
1714
|
+
return [4, parseBody(output.body, context)];
|
|
1715
1715
|
case 1:
|
|
1716
1716
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1717
1717
|
if (data.DkimAttributes !== undefined && data.DkimAttributes !== null) {
|
|
@@ -1723,7 +1723,7 @@ export var deserializeAws_restJson1CreateEmailIdentityCommand = function (output
|
|
|
1723
1723
|
if (data.VerifiedForSendingStatus !== undefined && data.VerifiedForSendingStatus !== null) {
|
|
1724
1724
|
contents.VerifiedForSendingStatus = __expectBoolean(data.VerifiedForSendingStatus);
|
|
1725
1725
|
}
|
|
1726
|
-
return [2
|
|
1726
|
+
return [2, Promise.resolve(contents)];
|
|
1727
1727
|
}
|
|
1728
1728
|
});
|
|
1729
1729
|
}); };
|
|
@@ -1735,47 +1735,47 @@ var deserializeAws_restJson1CreateEmailIdentityCommandError = function (output,
|
|
|
1735
1735
|
case 0:
|
|
1736
1736
|
_a = [__assign({}, output)];
|
|
1737
1737
|
_g = {};
|
|
1738
|
-
return [4
|
|
1738
|
+
return [4, parseBody(output.body, context)];
|
|
1739
1739
|
case 1:
|
|
1740
1740
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1741
1741
|
errorCode = "UnknownError";
|
|
1742
1742
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1743
1743
|
_b = errorCode;
|
|
1744
1744
|
switch (_b) {
|
|
1745
|
-
case "BadRequestException": return [3
|
|
1746
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
1747
|
-
case "ConcurrentModificationException": return [3
|
|
1748
|
-
case "com.amazonaws.pinpointemail#ConcurrentModificationException": return [3
|
|
1749
|
-
case "LimitExceededException": return [3
|
|
1750
|
-
case "com.amazonaws.pinpointemail#LimitExceededException": return [3
|
|
1751
|
-
case "TooManyRequestsException": return [3
|
|
1752
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
1753
|
-
}
|
|
1754
|
-
return [3
|
|
1745
|
+
case "BadRequestException": return [3, 2];
|
|
1746
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
1747
|
+
case "ConcurrentModificationException": return [3, 4];
|
|
1748
|
+
case "com.amazonaws.pinpointemail#ConcurrentModificationException": return [3, 4];
|
|
1749
|
+
case "LimitExceededException": return [3, 6];
|
|
1750
|
+
case "com.amazonaws.pinpointemail#LimitExceededException": return [3, 6];
|
|
1751
|
+
case "TooManyRequestsException": return [3, 8];
|
|
1752
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 8];
|
|
1753
|
+
}
|
|
1754
|
+
return [3, 10];
|
|
1755
1755
|
case 2:
|
|
1756
1756
|
_c = [{}];
|
|
1757
|
-
return [4
|
|
1757
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1758
1758
|
case 3:
|
|
1759
1759
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1760
|
-
return [3
|
|
1760
|
+
return [3, 11];
|
|
1761
1761
|
case 4:
|
|
1762
1762
|
_d = [{}];
|
|
1763
|
-
return [4
|
|
1763
|
+
return [4, deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1764
1764
|
case 5:
|
|
1765
1765
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1766
|
-
return [3
|
|
1766
|
+
return [3, 11];
|
|
1767
1767
|
case 6:
|
|
1768
1768
|
_e = [{}];
|
|
1769
|
-
return [4
|
|
1769
|
+
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1770
1770
|
case 7:
|
|
1771
1771
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1772
|
-
return [3
|
|
1772
|
+
return [3, 11];
|
|
1773
1773
|
case 8:
|
|
1774
1774
|
_f = [{}];
|
|
1775
|
-
return [4
|
|
1775
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1776
1776
|
case 9:
|
|
1777
1777
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1778
|
-
return [3
|
|
1778
|
+
return [3, 11];
|
|
1779
1779
|
case 10:
|
|
1780
1780
|
parsedBody = parsedOutput.body;
|
|
1781
1781
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1785,7 +1785,7 @@ var deserializeAws_restJson1CreateEmailIdentityCommandError = function (output,
|
|
|
1785
1785
|
message = response.message || response.Message || errorCode;
|
|
1786
1786
|
response.message = message;
|
|
1787
1787
|
delete response.Message;
|
|
1788
|
-
return [2
|
|
1788
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1789
1789
|
}
|
|
1790
1790
|
});
|
|
1791
1791
|
}); };
|
|
@@ -1795,15 +1795,15 @@ export var deserializeAws_restJson1DeleteConfigurationSetCommand = function (out
|
|
|
1795
1795
|
switch (_a.label) {
|
|
1796
1796
|
case 0:
|
|
1797
1797
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1798
|
-
return [2
|
|
1798
|
+
return [2, deserializeAws_restJson1DeleteConfigurationSetCommandError(output, context)];
|
|
1799
1799
|
}
|
|
1800
1800
|
contents = {
|
|
1801
1801
|
$metadata: deserializeMetadata(output),
|
|
1802
1802
|
};
|
|
1803
|
-
return [4
|
|
1803
|
+
return [4, collectBody(output.body, context)];
|
|
1804
1804
|
case 1:
|
|
1805
1805
|
_a.sent();
|
|
1806
|
-
return [2
|
|
1806
|
+
return [2, Promise.resolve(contents)];
|
|
1807
1807
|
}
|
|
1808
1808
|
});
|
|
1809
1809
|
}); };
|
|
@@ -1815,47 +1815,47 @@ var deserializeAws_restJson1DeleteConfigurationSetCommandError = function (outpu
|
|
|
1815
1815
|
case 0:
|
|
1816
1816
|
_a = [__assign({}, output)];
|
|
1817
1817
|
_g = {};
|
|
1818
|
-
return [4
|
|
1818
|
+
return [4, parseBody(output.body, context)];
|
|
1819
1819
|
case 1:
|
|
1820
1820
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1821
1821
|
errorCode = "UnknownError";
|
|
1822
1822
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1823
1823
|
_b = errorCode;
|
|
1824
1824
|
switch (_b) {
|
|
1825
|
-
case "BadRequestException": return [3
|
|
1826
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
1827
|
-
case "ConcurrentModificationException": return [3
|
|
1828
|
-
case "com.amazonaws.pinpointemail#ConcurrentModificationException": return [3
|
|
1829
|
-
case "NotFoundException": return [3
|
|
1830
|
-
case "com.amazonaws.pinpointemail#NotFoundException": return [3
|
|
1831
|
-
case "TooManyRequestsException": return [3
|
|
1832
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
1833
|
-
}
|
|
1834
|
-
return [3
|
|
1825
|
+
case "BadRequestException": return [3, 2];
|
|
1826
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
1827
|
+
case "ConcurrentModificationException": return [3, 4];
|
|
1828
|
+
case "com.amazonaws.pinpointemail#ConcurrentModificationException": return [3, 4];
|
|
1829
|
+
case "NotFoundException": return [3, 6];
|
|
1830
|
+
case "com.amazonaws.pinpointemail#NotFoundException": return [3, 6];
|
|
1831
|
+
case "TooManyRequestsException": return [3, 8];
|
|
1832
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 8];
|
|
1833
|
+
}
|
|
1834
|
+
return [3, 10];
|
|
1835
1835
|
case 2:
|
|
1836
1836
|
_c = [{}];
|
|
1837
|
-
return [4
|
|
1837
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1838
1838
|
case 3:
|
|
1839
1839
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1840
|
-
return [3
|
|
1840
|
+
return [3, 11];
|
|
1841
1841
|
case 4:
|
|
1842
1842
|
_d = [{}];
|
|
1843
|
-
return [4
|
|
1843
|
+
return [4, deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1844
1844
|
case 5:
|
|
1845
1845
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1846
|
-
return [3
|
|
1846
|
+
return [3, 11];
|
|
1847
1847
|
case 6:
|
|
1848
1848
|
_e = [{}];
|
|
1849
|
-
return [4
|
|
1849
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1850
1850
|
case 7:
|
|
1851
1851
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1852
|
-
return [3
|
|
1852
|
+
return [3, 11];
|
|
1853
1853
|
case 8:
|
|
1854
1854
|
_f = [{}];
|
|
1855
|
-
return [4
|
|
1855
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1856
1856
|
case 9:
|
|
1857
1857
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1858
|
-
return [3
|
|
1858
|
+
return [3, 11];
|
|
1859
1859
|
case 10:
|
|
1860
1860
|
parsedBody = parsedOutput.body;
|
|
1861
1861
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1865,7 +1865,7 @@ var deserializeAws_restJson1DeleteConfigurationSetCommandError = function (outpu
|
|
|
1865
1865
|
message = response.message || response.Message || errorCode;
|
|
1866
1866
|
response.message = message;
|
|
1867
1867
|
delete response.Message;
|
|
1868
|
-
return [2
|
|
1868
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1869
1869
|
}
|
|
1870
1870
|
});
|
|
1871
1871
|
}); };
|
|
@@ -1875,15 +1875,15 @@ export var deserializeAws_restJson1DeleteConfigurationSetEventDestinationCommand
|
|
|
1875
1875
|
switch (_a.label) {
|
|
1876
1876
|
case 0:
|
|
1877
1877
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1878
|
-
return [2
|
|
1878
|
+
return [2, deserializeAws_restJson1DeleteConfigurationSetEventDestinationCommandError(output, context)];
|
|
1879
1879
|
}
|
|
1880
1880
|
contents = {
|
|
1881
1881
|
$metadata: deserializeMetadata(output),
|
|
1882
1882
|
};
|
|
1883
|
-
return [4
|
|
1883
|
+
return [4, collectBody(output.body, context)];
|
|
1884
1884
|
case 1:
|
|
1885
1885
|
_a.sent();
|
|
1886
|
-
return [2
|
|
1886
|
+
return [2, Promise.resolve(contents)];
|
|
1887
1887
|
}
|
|
1888
1888
|
});
|
|
1889
1889
|
}); };
|
|
@@ -1895,39 +1895,39 @@ var deserializeAws_restJson1DeleteConfigurationSetEventDestinationCommandError =
|
|
|
1895
1895
|
case 0:
|
|
1896
1896
|
_a = [__assign({}, output)];
|
|
1897
1897
|
_f = {};
|
|
1898
|
-
return [4
|
|
1898
|
+
return [4, parseBody(output.body, context)];
|
|
1899
1899
|
case 1:
|
|
1900
1900
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1901
1901
|
errorCode = "UnknownError";
|
|
1902
1902
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1903
1903
|
_b = errorCode;
|
|
1904
1904
|
switch (_b) {
|
|
1905
|
-
case "BadRequestException": return [3
|
|
1906
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
1907
|
-
case "NotFoundException": return [3
|
|
1908
|
-
case "com.amazonaws.pinpointemail#NotFoundException": return [3
|
|
1909
|
-
case "TooManyRequestsException": return [3
|
|
1910
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
1911
|
-
}
|
|
1912
|
-
return [3
|
|
1905
|
+
case "BadRequestException": return [3, 2];
|
|
1906
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
1907
|
+
case "NotFoundException": return [3, 4];
|
|
1908
|
+
case "com.amazonaws.pinpointemail#NotFoundException": return [3, 4];
|
|
1909
|
+
case "TooManyRequestsException": return [3, 6];
|
|
1910
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
1911
|
+
}
|
|
1912
|
+
return [3, 8];
|
|
1913
1913
|
case 2:
|
|
1914
1914
|
_c = [{}];
|
|
1915
|
-
return [4
|
|
1915
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1916
1916
|
case 3:
|
|
1917
1917
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1918
|
-
return [3
|
|
1918
|
+
return [3, 9];
|
|
1919
1919
|
case 4:
|
|
1920
1920
|
_d = [{}];
|
|
1921
|
-
return [4
|
|
1921
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1922
1922
|
case 5:
|
|
1923
1923
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1924
|
-
return [3
|
|
1924
|
+
return [3, 9];
|
|
1925
1925
|
case 6:
|
|
1926
1926
|
_e = [{}];
|
|
1927
|
-
return [4
|
|
1927
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1928
1928
|
case 7:
|
|
1929
1929
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1930
|
-
return [3
|
|
1930
|
+
return [3, 9];
|
|
1931
1931
|
case 8:
|
|
1932
1932
|
parsedBody = parsedOutput.body;
|
|
1933
1933
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1937,7 +1937,7 @@ var deserializeAws_restJson1DeleteConfigurationSetEventDestinationCommandError =
|
|
|
1937
1937
|
message = response.message || response.Message || errorCode;
|
|
1938
1938
|
response.message = message;
|
|
1939
1939
|
delete response.Message;
|
|
1940
|
-
return [2
|
|
1940
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1941
1941
|
}
|
|
1942
1942
|
});
|
|
1943
1943
|
}); };
|
|
@@ -1947,15 +1947,15 @@ export var deserializeAws_restJson1DeleteDedicatedIpPoolCommand = function (outp
|
|
|
1947
1947
|
switch (_a.label) {
|
|
1948
1948
|
case 0:
|
|
1949
1949
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1950
|
-
return [2
|
|
1950
|
+
return [2, deserializeAws_restJson1DeleteDedicatedIpPoolCommandError(output, context)];
|
|
1951
1951
|
}
|
|
1952
1952
|
contents = {
|
|
1953
1953
|
$metadata: deserializeMetadata(output),
|
|
1954
1954
|
};
|
|
1955
|
-
return [4
|
|
1955
|
+
return [4, collectBody(output.body, context)];
|
|
1956
1956
|
case 1:
|
|
1957
1957
|
_a.sent();
|
|
1958
|
-
return [2
|
|
1958
|
+
return [2, Promise.resolve(contents)];
|
|
1959
1959
|
}
|
|
1960
1960
|
});
|
|
1961
1961
|
}); };
|
|
@@ -1967,47 +1967,47 @@ var deserializeAws_restJson1DeleteDedicatedIpPoolCommandError = function (output
|
|
|
1967
1967
|
case 0:
|
|
1968
1968
|
_a = [__assign({}, output)];
|
|
1969
1969
|
_g = {};
|
|
1970
|
-
return [4
|
|
1970
|
+
return [4, parseBody(output.body, context)];
|
|
1971
1971
|
case 1:
|
|
1972
1972
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1973
1973
|
errorCode = "UnknownError";
|
|
1974
1974
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1975
1975
|
_b = errorCode;
|
|
1976
1976
|
switch (_b) {
|
|
1977
|
-
case "BadRequestException": return [3
|
|
1978
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
1979
|
-
case "ConcurrentModificationException": return [3
|
|
1980
|
-
case "com.amazonaws.pinpointemail#ConcurrentModificationException": return [3
|
|
1981
|
-
case "NotFoundException": return [3
|
|
1982
|
-
case "com.amazonaws.pinpointemail#NotFoundException": return [3
|
|
1983
|
-
case "TooManyRequestsException": return [3
|
|
1984
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
1985
|
-
}
|
|
1986
|
-
return [3
|
|
1977
|
+
case "BadRequestException": return [3, 2];
|
|
1978
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
1979
|
+
case "ConcurrentModificationException": return [3, 4];
|
|
1980
|
+
case "com.amazonaws.pinpointemail#ConcurrentModificationException": return [3, 4];
|
|
1981
|
+
case "NotFoundException": return [3, 6];
|
|
1982
|
+
case "com.amazonaws.pinpointemail#NotFoundException": return [3, 6];
|
|
1983
|
+
case "TooManyRequestsException": return [3, 8];
|
|
1984
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 8];
|
|
1985
|
+
}
|
|
1986
|
+
return [3, 10];
|
|
1987
1987
|
case 2:
|
|
1988
1988
|
_c = [{}];
|
|
1989
|
-
return [4
|
|
1989
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1990
1990
|
case 3:
|
|
1991
1991
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1992
|
-
return [3
|
|
1992
|
+
return [3, 11];
|
|
1993
1993
|
case 4:
|
|
1994
1994
|
_d = [{}];
|
|
1995
|
-
return [4
|
|
1995
|
+
return [4, deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1996
1996
|
case 5:
|
|
1997
1997
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1998
|
-
return [3
|
|
1998
|
+
return [3, 11];
|
|
1999
1999
|
case 6:
|
|
2000
2000
|
_e = [{}];
|
|
2001
|
-
return [4
|
|
2001
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2002
2002
|
case 7:
|
|
2003
2003
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2004
|
-
return [3
|
|
2004
|
+
return [3, 11];
|
|
2005
2005
|
case 8:
|
|
2006
2006
|
_f = [{}];
|
|
2007
|
-
return [4
|
|
2007
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2008
2008
|
case 9:
|
|
2009
2009
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2010
|
-
return [3
|
|
2010
|
+
return [3, 11];
|
|
2011
2011
|
case 10:
|
|
2012
2012
|
parsedBody = parsedOutput.body;
|
|
2013
2013
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2017,7 +2017,7 @@ var deserializeAws_restJson1DeleteDedicatedIpPoolCommandError = function (output
|
|
|
2017
2017
|
message = response.message || response.Message || errorCode;
|
|
2018
2018
|
response.message = message;
|
|
2019
2019
|
delete response.Message;
|
|
2020
|
-
return [2
|
|
2020
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2021
2021
|
}
|
|
2022
2022
|
});
|
|
2023
2023
|
}); };
|
|
@@ -2027,15 +2027,15 @@ export var deserializeAws_restJson1DeleteEmailIdentityCommand = function (output
|
|
|
2027
2027
|
switch (_a.label) {
|
|
2028
2028
|
case 0:
|
|
2029
2029
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2030
|
-
return [2
|
|
2030
|
+
return [2, deserializeAws_restJson1DeleteEmailIdentityCommandError(output, context)];
|
|
2031
2031
|
}
|
|
2032
2032
|
contents = {
|
|
2033
2033
|
$metadata: deserializeMetadata(output),
|
|
2034
2034
|
};
|
|
2035
|
-
return [4
|
|
2035
|
+
return [4, collectBody(output.body, context)];
|
|
2036
2036
|
case 1:
|
|
2037
2037
|
_a.sent();
|
|
2038
|
-
return [2
|
|
2038
|
+
return [2, Promise.resolve(contents)];
|
|
2039
2039
|
}
|
|
2040
2040
|
});
|
|
2041
2041
|
}); };
|
|
@@ -2047,47 +2047,47 @@ var deserializeAws_restJson1DeleteEmailIdentityCommandError = function (output,
|
|
|
2047
2047
|
case 0:
|
|
2048
2048
|
_a = [__assign({}, output)];
|
|
2049
2049
|
_g = {};
|
|
2050
|
-
return [4
|
|
2050
|
+
return [4, parseBody(output.body, context)];
|
|
2051
2051
|
case 1:
|
|
2052
2052
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2053
2053
|
errorCode = "UnknownError";
|
|
2054
2054
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2055
2055
|
_b = errorCode;
|
|
2056
2056
|
switch (_b) {
|
|
2057
|
-
case "BadRequestException": return [3
|
|
2058
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
2059
|
-
case "ConcurrentModificationException": return [3
|
|
2060
|
-
case "com.amazonaws.pinpointemail#ConcurrentModificationException": return [3
|
|
2061
|
-
case "NotFoundException": return [3
|
|
2062
|
-
case "com.amazonaws.pinpointemail#NotFoundException": return [3
|
|
2063
|
-
case "TooManyRequestsException": return [3
|
|
2064
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
2065
|
-
}
|
|
2066
|
-
return [3
|
|
2057
|
+
case "BadRequestException": return [3, 2];
|
|
2058
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
2059
|
+
case "ConcurrentModificationException": return [3, 4];
|
|
2060
|
+
case "com.amazonaws.pinpointemail#ConcurrentModificationException": return [3, 4];
|
|
2061
|
+
case "NotFoundException": return [3, 6];
|
|
2062
|
+
case "com.amazonaws.pinpointemail#NotFoundException": return [3, 6];
|
|
2063
|
+
case "TooManyRequestsException": return [3, 8];
|
|
2064
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 8];
|
|
2065
|
+
}
|
|
2066
|
+
return [3, 10];
|
|
2067
2067
|
case 2:
|
|
2068
2068
|
_c = [{}];
|
|
2069
|
-
return [4
|
|
2069
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2070
2070
|
case 3:
|
|
2071
2071
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2072
|
-
return [3
|
|
2072
|
+
return [3, 11];
|
|
2073
2073
|
case 4:
|
|
2074
2074
|
_d = [{}];
|
|
2075
|
-
return [4
|
|
2075
|
+
return [4, deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
2076
2076
|
case 5:
|
|
2077
2077
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2078
|
-
return [3
|
|
2078
|
+
return [3, 11];
|
|
2079
2079
|
case 6:
|
|
2080
2080
|
_e = [{}];
|
|
2081
|
-
return [4
|
|
2081
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2082
2082
|
case 7:
|
|
2083
2083
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2084
|
-
return [3
|
|
2084
|
+
return [3, 11];
|
|
2085
2085
|
case 8:
|
|
2086
2086
|
_f = [{}];
|
|
2087
|
-
return [4
|
|
2087
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2088
2088
|
case 9:
|
|
2089
2089
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2090
|
-
return [3
|
|
2090
|
+
return [3, 11];
|
|
2091
2091
|
case 10:
|
|
2092
2092
|
parsedBody = parsedOutput.body;
|
|
2093
2093
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2097,7 +2097,7 @@ var deserializeAws_restJson1DeleteEmailIdentityCommandError = function (output,
|
|
|
2097
2097
|
message = response.message || response.Message || errorCode;
|
|
2098
2098
|
response.message = message;
|
|
2099
2099
|
delete response.Message;
|
|
2100
|
-
return [2
|
|
2100
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2101
2101
|
}
|
|
2102
2102
|
});
|
|
2103
2103
|
}); };
|
|
@@ -2107,7 +2107,7 @@ export var deserializeAws_restJson1GetAccountCommand = function (output, context
|
|
|
2107
2107
|
switch (_c.label) {
|
|
2108
2108
|
case 0:
|
|
2109
2109
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2110
|
-
return [2
|
|
2110
|
+
return [2, deserializeAws_restJson1GetAccountCommandError(output, context)];
|
|
2111
2111
|
}
|
|
2112
2112
|
contents = {
|
|
2113
2113
|
$metadata: deserializeMetadata(output),
|
|
@@ -2119,7 +2119,7 @@ export var deserializeAws_restJson1GetAccountCommand = function (output, context
|
|
|
2119
2119
|
};
|
|
2120
2120
|
_a = __expectNonNull;
|
|
2121
2121
|
_b = __expectObject;
|
|
2122
|
-
return [4
|
|
2122
|
+
return [4, parseBody(output.body, context)];
|
|
2123
2123
|
case 1:
|
|
2124
2124
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2125
2125
|
if (data.DedicatedIpAutoWarmupEnabled !== undefined && data.DedicatedIpAutoWarmupEnabled !== null) {
|
|
@@ -2137,7 +2137,7 @@ export var deserializeAws_restJson1GetAccountCommand = function (output, context
|
|
|
2137
2137
|
if (data.SendingEnabled !== undefined && data.SendingEnabled !== null) {
|
|
2138
2138
|
contents.SendingEnabled = __expectBoolean(data.SendingEnabled);
|
|
2139
2139
|
}
|
|
2140
|
-
return [2
|
|
2140
|
+
return [2, Promise.resolve(contents)];
|
|
2141
2141
|
}
|
|
2142
2142
|
});
|
|
2143
2143
|
}); };
|
|
@@ -2149,31 +2149,31 @@ var deserializeAws_restJson1GetAccountCommandError = function (output, context)
|
|
|
2149
2149
|
case 0:
|
|
2150
2150
|
_a = [__assign({}, output)];
|
|
2151
2151
|
_e = {};
|
|
2152
|
-
return [4
|
|
2152
|
+
return [4, parseBody(output.body, context)];
|
|
2153
2153
|
case 1:
|
|
2154
2154
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2155
2155
|
errorCode = "UnknownError";
|
|
2156
2156
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2157
2157
|
_b = errorCode;
|
|
2158
2158
|
switch (_b) {
|
|
2159
|
-
case "BadRequestException": return [3
|
|
2160
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
2161
|
-
case "TooManyRequestsException": return [3
|
|
2162
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
2159
|
+
case "BadRequestException": return [3, 2];
|
|
2160
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
2161
|
+
case "TooManyRequestsException": return [3, 4];
|
|
2162
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 4];
|
|
2163
2163
|
}
|
|
2164
|
-
return [3
|
|
2164
|
+
return [3, 6];
|
|
2165
2165
|
case 2:
|
|
2166
2166
|
_c = [{}];
|
|
2167
|
-
return [4
|
|
2167
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2168
2168
|
case 3:
|
|
2169
2169
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2170
|
-
return [3
|
|
2170
|
+
return [3, 7];
|
|
2171
2171
|
case 4:
|
|
2172
2172
|
_d = [{}];
|
|
2173
|
-
return [4
|
|
2173
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2174
2174
|
case 5:
|
|
2175
2175
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2176
|
-
return [3
|
|
2176
|
+
return [3, 7];
|
|
2177
2177
|
case 6:
|
|
2178
2178
|
parsedBody = parsedOutput.body;
|
|
2179
2179
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2183,7 +2183,7 @@ var deserializeAws_restJson1GetAccountCommandError = function (output, context)
|
|
|
2183
2183
|
message = response.message || response.Message || errorCode;
|
|
2184
2184
|
response.message = message;
|
|
2185
2185
|
delete response.Message;
|
|
2186
|
-
return [2
|
|
2186
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2187
2187
|
}
|
|
2188
2188
|
});
|
|
2189
2189
|
}); };
|
|
@@ -2193,7 +2193,7 @@ export var deserializeAws_restJson1GetBlacklistReportsCommand = function (output
|
|
|
2193
2193
|
switch (_c.label) {
|
|
2194
2194
|
case 0:
|
|
2195
2195
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2196
|
-
return [2
|
|
2196
|
+
return [2, deserializeAws_restJson1GetBlacklistReportsCommandError(output, context)];
|
|
2197
2197
|
}
|
|
2198
2198
|
contents = {
|
|
2199
2199
|
$metadata: deserializeMetadata(output),
|
|
@@ -2201,13 +2201,13 @@ export var deserializeAws_restJson1GetBlacklistReportsCommand = function (output
|
|
|
2201
2201
|
};
|
|
2202
2202
|
_a = __expectNonNull;
|
|
2203
2203
|
_b = __expectObject;
|
|
2204
|
-
return [4
|
|
2204
|
+
return [4, parseBody(output.body, context)];
|
|
2205
2205
|
case 1:
|
|
2206
2206
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2207
2207
|
if (data.BlacklistReport !== undefined && data.BlacklistReport !== null) {
|
|
2208
2208
|
contents.BlacklistReport = deserializeAws_restJson1BlacklistReport(data.BlacklistReport, context);
|
|
2209
2209
|
}
|
|
2210
|
-
return [2
|
|
2210
|
+
return [2, Promise.resolve(contents)];
|
|
2211
2211
|
}
|
|
2212
2212
|
});
|
|
2213
2213
|
}); };
|
|
@@ -2219,39 +2219,39 @@ var deserializeAws_restJson1GetBlacklistReportsCommandError = function (output,
|
|
|
2219
2219
|
case 0:
|
|
2220
2220
|
_a = [__assign({}, output)];
|
|
2221
2221
|
_f = {};
|
|
2222
|
-
return [4
|
|
2222
|
+
return [4, parseBody(output.body, context)];
|
|
2223
2223
|
case 1:
|
|
2224
2224
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2225
2225
|
errorCode = "UnknownError";
|
|
2226
2226
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2227
2227
|
_b = errorCode;
|
|
2228
2228
|
switch (_b) {
|
|
2229
|
-
case "BadRequestException": return [3
|
|
2230
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
2231
|
-
case "NotFoundException": return [3
|
|
2232
|
-
case "com.amazonaws.pinpointemail#NotFoundException": return [3
|
|
2233
|
-
case "TooManyRequestsException": return [3
|
|
2234
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
2235
|
-
}
|
|
2236
|
-
return [3
|
|
2229
|
+
case "BadRequestException": return [3, 2];
|
|
2230
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
2231
|
+
case "NotFoundException": return [3, 4];
|
|
2232
|
+
case "com.amazonaws.pinpointemail#NotFoundException": return [3, 4];
|
|
2233
|
+
case "TooManyRequestsException": return [3, 6];
|
|
2234
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
2235
|
+
}
|
|
2236
|
+
return [3, 8];
|
|
2237
2237
|
case 2:
|
|
2238
2238
|
_c = [{}];
|
|
2239
|
-
return [4
|
|
2239
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2240
2240
|
case 3:
|
|
2241
2241
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2242
|
-
return [3
|
|
2242
|
+
return [3, 9];
|
|
2243
2243
|
case 4:
|
|
2244
2244
|
_d = [{}];
|
|
2245
|
-
return [4
|
|
2245
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2246
2246
|
case 5:
|
|
2247
2247
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2248
|
-
return [3
|
|
2248
|
+
return [3, 9];
|
|
2249
2249
|
case 6:
|
|
2250
2250
|
_e = [{}];
|
|
2251
|
-
return [4
|
|
2251
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2252
2252
|
case 7:
|
|
2253
2253
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2254
|
-
return [3
|
|
2254
|
+
return [3, 9];
|
|
2255
2255
|
case 8:
|
|
2256
2256
|
parsedBody = parsedOutput.body;
|
|
2257
2257
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2261,7 +2261,7 @@ var deserializeAws_restJson1GetBlacklistReportsCommandError = function (output,
|
|
|
2261
2261
|
message = response.message || response.Message || errorCode;
|
|
2262
2262
|
response.message = message;
|
|
2263
2263
|
delete response.Message;
|
|
2264
|
-
return [2
|
|
2264
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2265
2265
|
}
|
|
2266
2266
|
});
|
|
2267
2267
|
}); };
|
|
@@ -2271,7 +2271,7 @@ export var deserializeAws_restJson1GetConfigurationSetCommand = function (output
|
|
|
2271
2271
|
switch (_c.label) {
|
|
2272
2272
|
case 0:
|
|
2273
2273
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2274
|
-
return [2
|
|
2274
|
+
return [2, deserializeAws_restJson1GetConfigurationSetCommandError(output, context)];
|
|
2275
2275
|
}
|
|
2276
2276
|
contents = {
|
|
2277
2277
|
$metadata: deserializeMetadata(output),
|
|
@@ -2284,7 +2284,7 @@ export var deserializeAws_restJson1GetConfigurationSetCommand = function (output
|
|
|
2284
2284
|
};
|
|
2285
2285
|
_a = __expectNonNull;
|
|
2286
2286
|
_b = __expectObject;
|
|
2287
|
-
return [4
|
|
2287
|
+
return [4, parseBody(output.body, context)];
|
|
2288
2288
|
case 1:
|
|
2289
2289
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2290
2290
|
if (data.ConfigurationSetName !== undefined && data.ConfigurationSetName !== null) {
|
|
@@ -2305,7 +2305,7 @@ export var deserializeAws_restJson1GetConfigurationSetCommand = function (output
|
|
|
2305
2305
|
if (data.TrackingOptions !== undefined && data.TrackingOptions !== null) {
|
|
2306
2306
|
contents.TrackingOptions = deserializeAws_restJson1TrackingOptions(data.TrackingOptions, context);
|
|
2307
2307
|
}
|
|
2308
|
-
return [2
|
|
2308
|
+
return [2, Promise.resolve(contents)];
|
|
2309
2309
|
}
|
|
2310
2310
|
});
|
|
2311
2311
|
}); };
|
|
@@ -2317,39 +2317,39 @@ var deserializeAws_restJson1GetConfigurationSetCommandError = function (output,
|
|
|
2317
2317
|
case 0:
|
|
2318
2318
|
_a = [__assign({}, output)];
|
|
2319
2319
|
_f = {};
|
|
2320
|
-
return [4
|
|
2320
|
+
return [4, parseBody(output.body, context)];
|
|
2321
2321
|
case 1:
|
|
2322
2322
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2323
2323
|
errorCode = "UnknownError";
|
|
2324
2324
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2325
2325
|
_b = errorCode;
|
|
2326
2326
|
switch (_b) {
|
|
2327
|
-
case "BadRequestException": return [3
|
|
2328
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
2329
|
-
case "NotFoundException": return [3
|
|
2330
|
-
case "com.amazonaws.pinpointemail#NotFoundException": return [3
|
|
2331
|
-
case "TooManyRequestsException": return [3
|
|
2332
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
2333
|
-
}
|
|
2334
|
-
return [3
|
|
2327
|
+
case "BadRequestException": return [3, 2];
|
|
2328
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
2329
|
+
case "NotFoundException": return [3, 4];
|
|
2330
|
+
case "com.amazonaws.pinpointemail#NotFoundException": return [3, 4];
|
|
2331
|
+
case "TooManyRequestsException": return [3, 6];
|
|
2332
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
2333
|
+
}
|
|
2334
|
+
return [3, 8];
|
|
2335
2335
|
case 2:
|
|
2336
2336
|
_c = [{}];
|
|
2337
|
-
return [4
|
|
2337
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2338
2338
|
case 3:
|
|
2339
2339
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2340
|
-
return [3
|
|
2340
|
+
return [3, 9];
|
|
2341
2341
|
case 4:
|
|
2342
2342
|
_d = [{}];
|
|
2343
|
-
return [4
|
|
2343
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2344
2344
|
case 5:
|
|
2345
2345
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2346
|
-
return [3
|
|
2346
|
+
return [3, 9];
|
|
2347
2347
|
case 6:
|
|
2348
2348
|
_e = [{}];
|
|
2349
|
-
return [4
|
|
2349
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2350
2350
|
case 7:
|
|
2351
2351
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2352
|
-
return [3
|
|
2352
|
+
return [3, 9];
|
|
2353
2353
|
case 8:
|
|
2354
2354
|
parsedBody = parsedOutput.body;
|
|
2355
2355
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2359,7 +2359,7 @@ var deserializeAws_restJson1GetConfigurationSetCommandError = function (output,
|
|
|
2359
2359
|
message = response.message || response.Message || errorCode;
|
|
2360
2360
|
response.message = message;
|
|
2361
2361
|
delete response.Message;
|
|
2362
|
-
return [2
|
|
2362
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2363
2363
|
}
|
|
2364
2364
|
});
|
|
2365
2365
|
}); };
|
|
@@ -2369,7 +2369,7 @@ export var deserializeAws_restJson1GetConfigurationSetEventDestinationsCommand =
|
|
|
2369
2369
|
switch (_c.label) {
|
|
2370
2370
|
case 0:
|
|
2371
2371
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2372
|
-
return [2
|
|
2372
|
+
return [2, deserializeAws_restJson1GetConfigurationSetEventDestinationsCommandError(output, context)];
|
|
2373
2373
|
}
|
|
2374
2374
|
contents = {
|
|
2375
2375
|
$metadata: deserializeMetadata(output),
|
|
@@ -2377,13 +2377,13 @@ export var deserializeAws_restJson1GetConfigurationSetEventDestinationsCommand =
|
|
|
2377
2377
|
};
|
|
2378
2378
|
_a = __expectNonNull;
|
|
2379
2379
|
_b = __expectObject;
|
|
2380
|
-
return [4
|
|
2380
|
+
return [4, parseBody(output.body, context)];
|
|
2381
2381
|
case 1:
|
|
2382
2382
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2383
2383
|
if (data.EventDestinations !== undefined && data.EventDestinations !== null) {
|
|
2384
2384
|
contents.EventDestinations = deserializeAws_restJson1EventDestinations(data.EventDestinations, context);
|
|
2385
2385
|
}
|
|
2386
|
-
return [2
|
|
2386
|
+
return [2, Promise.resolve(contents)];
|
|
2387
2387
|
}
|
|
2388
2388
|
});
|
|
2389
2389
|
}); };
|
|
@@ -2395,39 +2395,39 @@ var deserializeAws_restJson1GetConfigurationSetEventDestinationsCommandError = f
|
|
|
2395
2395
|
case 0:
|
|
2396
2396
|
_a = [__assign({}, output)];
|
|
2397
2397
|
_f = {};
|
|
2398
|
-
return [4
|
|
2398
|
+
return [4, parseBody(output.body, context)];
|
|
2399
2399
|
case 1:
|
|
2400
2400
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2401
2401
|
errorCode = "UnknownError";
|
|
2402
2402
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2403
2403
|
_b = errorCode;
|
|
2404
2404
|
switch (_b) {
|
|
2405
|
-
case "BadRequestException": return [3
|
|
2406
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
2407
|
-
case "NotFoundException": return [3
|
|
2408
|
-
case "com.amazonaws.pinpointemail#NotFoundException": return [3
|
|
2409
|
-
case "TooManyRequestsException": return [3
|
|
2410
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
2411
|
-
}
|
|
2412
|
-
return [3
|
|
2405
|
+
case "BadRequestException": return [3, 2];
|
|
2406
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
2407
|
+
case "NotFoundException": return [3, 4];
|
|
2408
|
+
case "com.amazonaws.pinpointemail#NotFoundException": return [3, 4];
|
|
2409
|
+
case "TooManyRequestsException": return [3, 6];
|
|
2410
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
2411
|
+
}
|
|
2412
|
+
return [3, 8];
|
|
2413
2413
|
case 2:
|
|
2414
2414
|
_c = [{}];
|
|
2415
|
-
return [4
|
|
2415
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2416
2416
|
case 3:
|
|
2417
2417
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2418
|
-
return [3
|
|
2418
|
+
return [3, 9];
|
|
2419
2419
|
case 4:
|
|
2420
2420
|
_d = [{}];
|
|
2421
|
-
return [4
|
|
2421
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2422
2422
|
case 5:
|
|
2423
2423
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2424
|
-
return [3
|
|
2424
|
+
return [3, 9];
|
|
2425
2425
|
case 6:
|
|
2426
2426
|
_e = [{}];
|
|
2427
|
-
return [4
|
|
2427
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2428
2428
|
case 7:
|
|
2429
2429
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2430
|
-
return [3
|
|
2430
|
+
return [3, 9];
|
|
2431
2431
|
case 8:
|
|
2432
2432
|
parsedBody = parsedOutput.body;
|
|
2433
2433
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2437,7 +2437,7 @@ var deserializeAws_restJson1GetConfigurationSetEventDestinationsCommandError = f
|
|
|
2437
2437
|
message = response.message || response.Message || errorCode;
|
|
2438
2438
|
response.message = message;
|
|
2439
2439
|
delete response.Message;
|
|
2440
|
-
return [2
|
|
2440
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2441
2441
|
}
|
|
2442
2442
|
});
|
|
2443
2443
|
}); };
|
|
@@ -2447,7 +2447,7 @@ export var deserializeAws_restJson1GetDedicatedIpCommand = function (output, con
|
|
|
2447
2447
|
switch (_c.label) {
|
|
2448
2448
|
case 0:
|
|
2449
2449
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2450
|
-
return [2
|
|
2450
|
+
return [2, deserializeAws_restJson1GetDedicatedIpCommandError(output, context)];
|
|
2451
2451
|
}
|
|
2452
2452
|
contents = {
|
|
2453
2453
|
$metadata: deserializeMetadata(output),
|
|
@@ -2455,13 +2455,13 @@ export var deserializeAws_restJson1GetDedicatedIpCommand = function (output, con
|
|
|
2455
2455
|
};
|
|
2456
2456
|
_a = __expectNonNull;
|
|
2457
2457
|
_b = __expectObject;
|
|
2458
|
-
return [4
|
|
2458
|
+
return [4, parseBody(output.body, context)];
|
|
2459
2459
|
case 1:
|
|
2460
2460
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2461
2461
|
if (data.DedicatedIp !== undefined && data.DedicatedIp !== null) {
|
|
2462
2462
|
contents.DedicatedIp = deserializeAws_restJson1DedicatedIp(data.DedicatedIp, context);
|
|
2463
2463
|
}
|
|
2464
|
-
return [2
|
|
2464
|
+
return [2, Promise.resolve(contents)];
|
|
2465
2465
|
}
|
|
2466
2466
|
});
|
|
2467
2467
|
}); };
|
|
@@ -2473,39 +2473,39 @@ var deserializeAws_restJson1GetDedicatedIpCommandError = function (output, conte
|
|
|
2473
2473
|
case 0:
|
|
2474
2474
|
_a = [__assign({}, output)];
|
|
2475
2475
|
_f = {};
|
|
2476
|
-
return [4
|
|
2476
|
+
return [4, parseBody(output.body, context)];
|
|
2477
2477
|
case 1:
|
|
2478
2478
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2479
2479
|
errorCode = "UnknownError";
|
|
2480
2480
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2481
2481
|
_b = errorCode;
|
|
2482
2482
|
switch (_b) {
|
|
2483
|
-
case "BadRequestException": return [3
|
|
2484
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
2485
|
-
case "NotFoundException": return [3
|
|
2486
|
-
case "com.amazonaws.pinpointemail#NotFoundException": return [3
|
|
2487
|
-
case "TooManyRequestsException": return [3
|
|
2488
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
2489
|
-
}
|
|
2490
|
-
return [3
|
|
2483
|
+
case "BadRequestException": return [3, 2];
|
|
2484
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
2485
|
+
case "NotFoundException": return [3, 4];
|
|
2486
|
+
case "com.amazonaws.pinpointemail#NotFoundException": return [3, 4];
|
|
2487
|
+
case "TooManyRequestsException": return [3, 6];
|
|
2488
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
2489
|
+
}
|
|
2490
|
+
return [3, 8];
|
|
2491
2491
|
case 2:
|
|
2492
2492
|
_c = [{}];
|
|
2493
|
-
return [4
|
|
2493
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2494
2494
|
case 3:
|
|
2495
2495
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2496
|
-
return [3
|
|
2496
|
+
return [3, 9];
|
|
2497
2497
|
case 4:
|
|
2498
2498
|
_d = [{}];
|
|
2499
|
-
return [4
|
|
2499
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2500
2500
|
case 5:
|
|
2501
2501
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2502
|
-
return [3
|
|
2502
|
+
return [3, 9];
|
|
2503
2503
|
case 6:
|
|
2504
2504
|
_e = [{}];
|
|
2505
|
-
return [4
|
|
2505
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2506
2506
|
case 7:
|
|
2507
2507
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2508
|
-
return [3
|
|
2508
|
+
return [3, 9];
|
|
2509
2509
|
case 8:
|
|
2510
2510
|
parsedBody = parsedOutput.body;
|
|
2511
2511
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2515,7 +2515,7 @@ var deserializeAws_restJson1GetDedicatedIpCommandError = function (output, conte
|
|
|
2515
2515
|
message = response.message || response.Message || errorCode;
|
|
2516
2516
|
response.message = message;
|
|
2517
2517
|
delete response.Message;
|
|
2518
|
-
return [2
|
|
2518
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2519
2519
|
}
|
|
2520
2520
|
});
|
|
2521
2521
|
}); };
|
|
@@ -2525,7 +2525,7 @@ export var deserializeAws_restJson1GetDedicatedIpsCommand = function (output, co
|
|
|
2525
2525
|
switch (_c.label) {
|
|
2526
2526
|
case 0:
|
|
2527
2527
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2528
|
-
return [2
|
|
2528
|
+
return [2, deserializeAws_restJson1GetDedicatedIpsCommandError(output, context)];
|
|
2529
2529
|
}
|
|
2530
2530
|
contents = {
|
|
2531
2531
|
$metadata: deserializeMetadata(output),
|
|
@@ -2534,7 +2534,7 @@ export var deserializeAws_restJson1GetDedicatedIpsCommand = function (output, co
|
|
|
2534
2534
|
};
|
|
2535
2535
|
_a = __expectNonNull;
|
|
2536
2536
|
_b = __expectObject;
|
|
2537
|
-
return [4
|
|
2537
|
+
return [4, parseBody(output.body, context)];
|
|
2538
2538
|
case 1:
|
|
2539
2539
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2540
2540
|
if (data.DedicatedIps !== undefined && data.DedicatedIps !== null) {
|
|
@@ -2543,7 +2543,7 @@ export var deserializeAws_restJson1GetDedicatedIpsCommand = function (output, co
|
|
|
2543
2543
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2544
2544
|
contents.NextToken = __expectString(data.NextToken);
|
|
2545
2545
|
}
|
|
2546
|
-
return [2
|
|
2546
|
+
return [2, Promise.resolve(contents)];
|
|
2547
2547
|
}
|
|
2548
2548
|
});
|
|
2549
2549
|
}); };
|
|
@@ -2555,39 +2555,39 @@ var deserializeAws_restJson1GetDedicatedIpsCommandError = function (output, cont
|
|
|
2555
2555
|
case 0:
|
|
2556
2556
|
_a = [__assign({}, output)];
|
|
2557
2557
|
_f = {};
|
|
2558
|
-
return [4
|
|
2558
|
+
return [4, parseBody(output.body, context)];
|
|
2559
2559
|
case 1:
|
|
2560
2560
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2561
2561
|
errorCode = "UnknownError";
|
|
2562
2562
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2563
2563
|
_b = errorCode;
|
|
2564
2564
|
switch (_b) {
|
|
2565
|
-
case "BadRequestException": return [3
|
|
2566
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
2567
|
-
case "NotFoundException": return [3
|
|
2568
|
-
case "com.amazonaws.pinpointemail#NotFoundException": return [3
|
|
2569
|
-
case "TooManyRequestsException": return [3
|
|
2570
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
2571
|
-
}
|
|
2572
|
-
return [3
|
|
2565
|
+
case "BadRequestException": return [3, 2];
|
|
2566
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
2567
|
+
case "NotFoundException": return [3, 4];
|
|
2568
|
+
case "com.amazonaws.pinpointemail#NotFoundException": return [3, 4];
|
|
2569
|
+
case "TooManyRequestsException": return [3, 6];
|
|
2570
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
2571
|
+
}
|
|
2572
|
+
return [3, 8];
|
|
2573
2573
|
case 2:
|
|
2574
2574
|
_c = [{}];
|
|
2575
|
-
return [4
|
|
2575
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2576
2576
|
case 3:
|
|
2577
2577
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2578
|
-
return [3
|
|
2578
|
+
return [3, 9];
|
|
2579
2579
|
case 4:
|
|
2580
2580
|
_d = [{}];
|
|
2581
|
-
return [4
|
|
2581
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2582
2582
|
case 5:
|
|
2583
2583
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2584
|
-
return [3
|
|
2584
|
+
return [3, 9];
|
|
2585
2585
|
case 6:
|
|
2586
2586
|
_e = [{}];
|
|
2587
|
-
return [4
|
|
2587
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2588
2588
|
case 7:
|
|
2589
2589
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2590
|
-
return [3
|
|
2590
|
+
return [3, 9];
|
|
2591
2591
|
case 8:
|
|
2592
2592
|
parsedBody = parsedOutput.body;
|
|
2593
2593
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2597,7 +2597,7 @@ var deserializeAws_restJson1GetDedicatedIpsCommandError = function (output, cont
|
|
|
2597
2597
|
message = response.message || response.Message || errorCode;
|
|
2598
2598
|
response.message = message;
|
|
2599
2599
|
delete response.Message;
|
|
2600
|
-
return [2
|
|
2600
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2601
2601
|
}
|
|
2602
2602
|
});
|
|
2603
2603
|
}); };
|
|
@@ -2607,7 +2607,7 @@ export var deserializeAws_restJson1GetDeliverabilityDashboardOptionsCommand = fu
|
|
|
2607
2607
|
switch (_c.label) {
|
|
2608
2608
|
case 0:
|
|
2609
2609
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2610
|
-
return [2
|
|
2610
|
+
return [2, deserializeAws_restJson1GetDeliverabilityDashboardOptionsCommandError(output, context)];
|
|
2611
2611
|
}
|
|
2612
2612
|
contents = {
|
|
2613
2613
|
$metadata: deserializeMetadata(output),
|
|
@@ -2619,7 +2619,7 @@ export var deserializeAws_restJson1GetDeliverabilityDashboardOptionsCommand = fu
|
|
|
2619
2619
|
};
|
|
2620
2620
|
_a = __expectNonNull;
|
|
2621
2621
|
_b = __expectObject;
|
|
2622
|
-
return [4
|
|
2622
|
+
return [4, parseBody(output.body, context)];
|
|
2623
2623
|
case 1:
|
|
2624
2624
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2625
2625
|
if (data.AccountStatus !== undefined && data.AccountStatus !== null) {
|
|
@@ -2637,7 +2637,7 @@ export var deserializeAws_restJson1GetDeliverabilityDashboardOptionsCommand = fu
|
|
|
2637
2637
|
if (data.SubscriptionExpiryDate !== undefined && data.SubscriptionExpiryDate !== null) {
|
|
2638
2638
|
contents.SubscriptionExpiryDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.SubscriptionExpiryDate)));
|
|
2639
2639
|
}
|
|
2640
|
-
return [2
|
|
2640
|
+
return [2, Promise.resolve(contents)];
|
|
2641
2641
|
}
|
|
2642
2642
|
});
|
|
2643
2643
|
}); };
|
|
@@ -2649,39 +2649,39 @@ var deserializeAws_restJson1GetDeliverabilityDashboardOptionsCommandError = func
|
|
|
2649
2649
|
case 0:
|
|
2650
2650
|
_a = [__assign({}, output)];
|
|
2651
2651
|
_f = {};
|
|
2652
|
-
return [4
|
|
2652
|
+
return [4, parseBody(output.body, context)];
|
|
2653
2653
|
case 1:
|
|
2654
2654
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2655
2655
|
errorCode = "UnknownError";
|
|
2656
2656
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2657
2657
|
_b = errorCode;
|
|
2658
2658
|
switch (_b) {
|
|
2659
|
-
case "BadRequestException": return [3
|
|
2660
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
2661
|
-
case "LimitExceededException": return [3
|
|
2662
|
-
case "com.amazonaws.pinpointemail#LimitExceededException": return [3
|
|
2663
|
-
case "TooManyRequestsException": return [3
|
|
2664
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
2665
|
-
}
|
|
2666
|
-
return [3
|
|
2659
|
+
case "BadRequestException": return [3, 2];
|
|
2660
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
2661
|
+
case "LimitExceededException": return [3, 4];
|
|
2662
|
+
case "com.amazonaws.pinpointemail#LimitExceededException": return [3, 4];
|
|
2663
|
+
case "TooManyRequestsException": return [3, 6];
|
|
2664
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
2665
|
+
}
|
|
2666
|
+
return [3, 8];
|
|
2667
2667
|
case 2:
|
|
2668
2668
|
_c = [{}];
|
|
2669
|
-
return [4
|
|
2669
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2670
2670
|
case 3:
|
|
2671
2671
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2672
|
-
return [3
|
|
2672
|
+
return [3, 9];
|
|
2673
2673
|
case 4:
|
|
2674
2674
|
_d = [{}];
|
|
2675
|
-
return [4
|
|
2675
|
+
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2676
2676
|
case 5:
|
|
2677
2677
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2678
|
-
return [3
|
|
2678
|
+
return [3, 9];
|
|
2679
2679
|
case 6:
|
|
2680
2680
|
_e = [{}];
|
|
2681
|
-
return [4
|
|
2681
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2682
2682
|
case 7:
|
|
2683
2683
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2684
|
-
return [3
|
|
2684
|
+
return [3, 9];
|
|
2685
2685
|
case 8:
|
|
2686
2686
|
parsedBody = parsedOutput.body;
|
|
2687
2687
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2691,7 +2691,7 @@ var deserializeAws_restJson1GetDeliverabilityDashboardOptionsCommandError = func
|
|
|
2691
2691
|
message = response.message || response.Message || errorCode;
|
|
2692
2692
|
response.message = message;
|
|
2693
2693
|
delete response.Message;
|
|
2694
|
-
return [2
|
|
2694
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2695
2695
|
}
|
|
2696
2696
|
});
|
|
2697
2697
|
}); };
|
|
@@ -2701,7 +2701,7 @@ export var deserializeAws_restJson1GetDeliverabilityTestReportCommand = function
|
|
|
2701
2701
|
switch (_c.label) {
|
|
2702
2702
|
case 0:
|
|
2703
2703
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2704
|
-
return [2
|
|
2704
|
+
return [2, deserializeAws_restJson1GetDeliverabilityTestReportCommandError(output, context)];
|
|
2705
2705
|
}
|
|
2706
2706
|
contents = {
|
|
2707
2707
|
$metadata: deserializeMetadata(output),
|
|
@@ -2713,7 +2713,7 @@ export var deserializeAws_restJson1GetDeliverabilityTestReportCommand = function
|
|
|
2713
2713
|
};
|
|
2714
2714
|
_a = __expectNonNull;
|
|
2715
2715
|
_b = __expectObject;
|
|
2716
|
-
return [4
|
|
2716
|
+
return [4, parseBody(output.body, context)];
|
|
2717
2717
|
case 1:
|
|
2718
2718
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2719
2719
|
if (data.DeliverabilityTestReport !== undefined && data.DeliverabilityTestReport !== null) {
|
|
@@ -2731,7 +2731,7 @@ export var deserializeAws_restJson1GetDeliverabilityTestReportCommand = function
|
|
|
2731
2731
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
2732
2732
|
contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
|
|
2733
2733
|
}
|
|
2734
|
-
return [2
|
|
2734
|
+
return [2, Promise.resolve(contents)];
|
|
2735
2735
|
}
|
|
2736
2736
|
});
|
|
2737
2737
|
}); };
|
|
@@ -2743,39 +2743,39 @@ var deserializeAws_restJson1GetDeliverabilityTestReportCommandError = function (
|
|
|
2743
2743
|
case 0:
|
|
2744
2744
|
_a = [__assign({}, output)];
|
|
2745
2745
|
_f = {};
|
|
2746
|
-
return [4
|
|
2746
|
+
return [4, parseBody(output.body, context)];
|
|
2747
2747
|
case 1:
|
|
2748
2748
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2749
2749
|
errorCode = "UnknownError";
|
|
2750
2750
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2751
2751
|
_b = errorCode;
|
|
2752
2752
|
switch (_b) {
|
|
2753
|
-
case "BadRequestException": return [3
|
|
2754
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
2755
|
-
case "NotFoundException": return [3
|
|
2756
|
-
case "com.amazonaws.pinpointemail#NotFoundException": return [3
|
|
2757
|
-
case "TooManyRequestsException": return [3
|
|
2758
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
2759
|
-
}
|
|
2760
|
-
return [3
|
|
2753
|
+
case "BadRequestException": return [3, 2];
|
|
2754
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
2755
|
+
case "NotFoundException": return [3, 4];
|
|
2756
|
+
case "com.amazonaws.pinpointemail#NotFoundException": return [3, 4];
|
|
2757
|
+
case "TooManyRequestsException": return [3, 6];
|
|
2758
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
2759
|
+
}
|
|
2760
|
+
return [3, 8];
|
|
2761
2761
|
case 2:
|
|
2762
2762
|
_c = [{}];
|
|
2763
|
-
return [4
|
|
2763
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2764
2764
|
case 3:
|
|
2765
2765
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2766
|
-
return [3
|
|
2766
|
+
return [3, 9];
|
|
2767
2767
|
case 4:
|
|
2768
2768
|
_d = [{}];
|
|
2769
|
-
return [4
|
|
2769
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2770
2770
|
case 5:
|
|
2771
2771
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2772
|
-
return [3
|
|
2772
|
+
return [3, 9];
|
|
2773
2773
|
case 6:
|
|
2774
2774
|
_e = [{}];
|
|
2775
|
-
return [4
|
|
2775
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2776
2776
|
case 7:
|
|
2777
2777
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2778
|
-
return [3
|
|
2778
|
+
return [3, 9];
|
|
2779
2779
|
case 8:
|
|
2780
2780
|
parsedBody = parsedOutput.body;
|
|
2781
2781
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2785,7 +2785,7 @@ var deserializeAws_restJson1GetDeliverabilityTestReportCommandError = function (
|
|
|
2785
2785
|
message = response.message || response.Message || errorCode;
|
|
2786
2786
|
response.message = message;
|
|
2787
2787
|
delete response.Message;
|
|
2788
|
-
return [2
|
|
2788
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2789
2789
|
}
|
|
2790
2790
|
});
|
|
2791
2791
|
}); };
|
|
@@ -2795,7 +2795,7 @@ export var deserializeAws_restJson1GetDomainDeliverabilityCampaignCommand = func
|
|
|
2795
2795
|
switch (_c.label) {
|
|
2796
2796
|
case 0:
|
|
2797
2797
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2798
|
-
return [2
|
|
2798
|
+
return [2, deserializeAws_restJson1GetDomainDeliverabilityCampaignCommandError(output, context)];
|
|
2799
2799
|
}
|
|
2800
2800
|
contents = {
|
|
2801
2801
|
$metadata: deserializeMetadata(output),
|
|
@@ -2803,13 +2803,13 @@ export var deserializeAws_restJson1GetDomainDeliverabilityCampaignCommand = func
|
|
|
2803
2803
|
};
|
|
2804
2804
|
_a = __expectNonNull;
|
|
2805
2805
|
_b = __expectObject;
|
|
2806
|
-
return [4
|
|
2806
|
+
return [4, parseBody(output.body, context)];
|
|
2807
2807
|
case 1:
|
|
2808
2808
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2809
2809
|
if (data.DomainDeliverabilityCampaign !== undefined && data.DomainDeliverabilityCampaign !== null) {
|
|
2810
2810
|
contents.DomainDeliverabilityCampaign = deserializeAws_restJson1DomainDeliverabilityCampaign(data.DomainDeliverabilityCampaign, context);
|
|
2811
2811
|
}
|
|
2812
|
-
return [2
|
|
2812
|
+
return [2, Promise.resolve(contents)];
|
|
2813
2813
|
}
|
|
2814
2814
|
});
|
|
2815
2815
|
}); };
|
|
@@ -2821,39 +2821,39 @@ var deserializeAws_restJson1GetDomainDeliverabilityCampaignCommandError = functi
|
|
|
2821
2821
|
case 0:
|
|
2822
2822
|
_a = [__assign({}, output)];
|
|
2823
2823
|
_f = {};
|
|
2824
|
-
return [4
|
|
2824
|
+
return [4, parseBody(output.body, context)];
|
|
2825
2825
|
case 1:
|
|
2826
2826
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2827
2827
|
errorCode = "UnknownError";
|
|
2828
2828
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2829
2829
|
_b = errorCode;
|
|
2830
2830
|
switch (_b) {
|
|
2831
|
-
case "BadRequestException": return [3
|
|
2832
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
2833
|
-
case "NotFoundException": return [3
|
|
2834
|
-
case "com.amazonaws.pinpointemail#NotFoundException": return [3
|
|
2835
|
-
case "TooManyRequestsException": return [3
|
|
2836
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
2837
|
-
}
|
|
2838
|
-
return [3
|
|
2831
|
+
case "BadRequestException": return [3, 2];
|
|
2832
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
2833
|
+
case "NotFoundException": return [3, 4];
|
|
2834
|
+
case "com.amazonaws.pinpointemail#NotFoundException": return [3, 4];
|
|
2835
|
+
case "TooManyRequestsException": return [3, 6];
|
|
2836
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
2837
|
+
}
|
|
2838
|
+
return [3, 8];
|
|
2839
2839
|
case 2:
|
|
2840
2840
|
_c = [{}];
|
|
2841
|
-
return [4
|
|
2841
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2842
2842
|
case 3:
|
|
2843
2843
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2844
|
-
return [3
|
|
2844
|
+
return [3, 9];
|
|
2845
2845
|
case 4:
|
|
2846
2846
|
_d = [{}];
|
|
2847
|
-
return [4
|
|
2847
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2848
2848
|
case 5:
|
|
2849
2849
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2850
|
-
return [3
|
|
2850
|
+
return [3, 9];
|
|
2851
2851
|
case 6:
|
|
2852
2852
|
_e = [{}];
|
|
2853
|
-
return [4
|
|
2853
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2854
2854
|
case 7:
|
|
2855
2855
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2856
|
-
return [3
|
|
2856
|
+
return [3, 9];
|
|
2857
2857
|
case 8:
|
|
2858
2858
|
parsedBody = parsedOutput.body;
|
|
2859
2859
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2863,7 +2863,7 @@ var deserializeAws_restJson1GetDomainDeliverabilityCampaignCommandError = functi
|
|
|
2863
2863
|
message = response.message || response.Message || errorCode;
|
|
2864
2864
|
response.message = message;
|
|
2865
2865
|
delete response.Message;
|
|
2866
|
-
return [2
|
|
2866
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2867
2867
|
}
|
|
2868
2868
|
});
|
|
2869
2869
|
}); };
|
|
@@ -2873,7 +2873,7 @@ export var deserializeAws_restJson1GetDomainStatisticsReportCommand = function (
|
|
|
2873
2873
|
switch (_c.label) {
|
|
2874
2874
|
case 0:
|
|
2875
2875
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2876
|
-
return [2
|
|
2876
|
+
return [2, deserializeAws_restJson1GetDomainStatisticsReportCommandError(output, context)];
|
|
2877
2877
|
}
|
|
2878
2878
|
contents = {
|
|
2879
2879
|
$metadata: deserializeMetadata(output),
|
|
@@ -2882,7 +2882,7 @@ export var deserializeAws_restJson1GetDomainStatisticsReportCommand = function (
|
|
|
2882
2882
|
};
|
|
2883
2883
|
_a = __expectNonNull;
|
|
2884
2884
|
_b = __expectObject;
|
|
2885
|
-
return [4
|
|
2885
|
+
return [4, parseBody(output.body, context)];
|
|
2886
2886
|
case 1:
|
|
2887
2887
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2888
2888
|
if (data.DailyVolumes !== undefined && data.DailyVolumes !== null) {
|
|
@@ -2891,7 +2891,7 @@ export var deserializeAws_restJson1GetDomainStatisticsReportCommand = function (
|
|
|
2891
2891
|
if (data.OverallVolume !== undefined && data.OverallVolume !== null) {
|
|
2892
2892
|
contents.OverallVolume = deserializeAws_restJson1OverallVolume(data.OverallVolume, context);
|
|
2893
2893
|
}
|
|
2894
|
-
return [2
|
|
2894
|
+
return [2, Promise.resolve(contents)];
|
|
2895
2895
|
}
|
|
2896
2896
|
});
|
|
2897
2897
|
}); };
|
|
@@ -2903,39 +2903,39 @@ var deserializeAws_restJson1GetDomainStatisticsReportCommandError = function (ou
|
|
|
2903
2903
|
case 0:
|
|
2904
2904
|
_a = [__assign({}, output)];
|
|
2905
2905
|
_f = {};
|
|
2906
|
-
return [4
|
|
2906
|
+
return [4, parseBody(output.body, context)];
|
|
2907
2907
|
case 1:
|
|
2908
2908
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2909
2909
|
errorCode = "UnknownError";
|
|
2910
2910
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2911
2911
|
_b = errorCode;
|
|
2912
2912
|
switch (_b) {
|
|
2913
|
-
case "BadRequestException": return [3
|
|
2914
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
2915
|
-
case "NotFoundException": return [3
|
|
2916
|
-
case "com.amazonaws.pinpointemail#NotFoundException": return [3
|
|
2917
|
-
case "TooManyRequestsException": return [3
|
|
2918
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
2919
|
-
}
|
|
2920
|
-
return [3
|
|
2913
|
+
case "BadRequestException": return [3, 2];
|
|
2914
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
2915
|
+
case "NotFoundException": return [3, 4];
|
|
2916
|
+
case "com.amazonaws.pinpointemail#NotFoundException": return [3, 4];
|
|
2917
|
+
case "TooManyRequestsException": return [3, 6];
|
|
2918
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
2919
|
+
}
|
|
2920
|
+
return [3, 8];
|
|
2921
2921
|
case 2:
|
|
2922
2922
|
_c = [{}];
|
|
2923
|
-
return [4
|
|
2923
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2924
2924
|
case 3:
|
|
2925
2925
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2926
|
-
return [3
|
|
2926
|
+
return [3, 9];
|
|
2927
2927
|
case 4:
|
|
2928
2928
|
_d = [{}];
|
|
2929
|
-
return [4
|
|
2929
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2930
2930
|
case 5:
|
|
2931
2931
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2932
|
-
return [3
|
|
2932
|
+
return [3, 9];
|
|
2933
2933
|
case 6:
|
|
2934
2934
|
_e = [{}];
|
|
2935
|
-
return [4
|
|
2935
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2936
2936
|
case 7:
|
|
2937
2937
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2938
|
-
return [3
|
|
2938
|
+
return [3, 9];
|
|
2939
2939
|
case 8:
|
|
2940
2940
|
parsedBody = parsedOutput.body;
|
|
2941
2941
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2945,7 +2945,7 @@ var deserializeAws_restJson1GetDomainStatisticsReportCommandError = function (ou
|
|
|
2945
2945
|
message = response.message || response.Message || errorCode;
|
|
2946
2946
|
response.message = message;
|
|
2947
2947
|
delete response.Message;
|
|
2948
|
-
return [2
|
|
2948
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2949
2949
|
}
|
|
2950
2950
|
});
|
|
2951
2951
|
}); };
|
|
@@ -2955,7 +2955,7 @@ export var deserializeAws_restJson1GetEmailIdentityCommand = function (output, c
|
|
|
2955
2955
|
switch (_c.label) {
|
|
2956
2956
|
case 0:
|
|
2957
2957
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2958
|
-
return [2
|
|
2958
|
+
return [2, deserializeAws_restJson1GetEmailIdentityCommandError(output, context)];
|
|
2959
2959
|
}
|
|
2960
2960
|
contents = {
|
|
2961
2961
|
$metadata: deserializeMetadata(output),
|
|
@@ -2968,7 +2968,7 @@ export var deserializeAws_restJson1GetEmailIdentityCommand = function (output, c
|
|
|
2968
2968
|
};
|
|
2969
2969
|
_a = __expectNonNull;
|
|
2970
2970
|
_b = __expectObject;
|
|
2971
|
-
return [4
|
|
2971
|
+
return [4, parseBody(output.body, context)];
|
|
2972
2972
|
case 1:
|
|
2973
2973
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2974
2974
|
if (data.DkimAttributes !== undefined && data.DkimAttributes !== null) {
|
|
@@ -2989,7 +2989,7 @@ export var deserializeAws_restJson1GetEmailIdentityCommand = function (output, c
|
|
|
2989
2989
|
if (data.VerifiedForSendingStatus !== undefined && data.VerifiedForSendingStatus !== null) {
|
|
2990
2990
|
contents.VerifiedForSendingStatus = __expectBoolean(data.VerifiedForSendingStatus);
|
|
2991
2991
|
}
|
|
2992
|
-
return [2
|
|
2992
|
+
return [2, Promise.resolve(contents)];
|
|
2993
2993
|
}
|
|
2994
2994
|
});
|
|
2995
2995
|
}); };
|
|
@@ -3001,39 +3001,39 @@ var deserializeAws_restJson1GetEmailIdentityCommandError = function (output, con
|
|
|
3001
3001
|
case 0:
|
|
3002
3002
|
_a = [__assign({}, output)];
|
|
3003
3003
|
_f = {};
|
|
3004
|
-
return [4
|
|
3004
|
+
return [4, parseBody(output.body, context)];
|
|
3005
3005
|
case 1:
|
|
3006
3006
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
3007
3007
|
errorCode = "UnknownError";
|
|
3008
3008
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3009
3009
|
_b = errorCode;
|
|
3010
3010
|
switch (_b) {
|
|
3011
|
-
case "BadRequestException": return [3
|
|
3012
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
3013
|
-
case "NotFoundException": return [3
|
|
3014
|
-
case "com.amazonaws.pinpointemail#NotFoundException": return [3
|
|
3015
|
-
case "TooManyRequestsException": return [3
|
|
3016
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
3017
|
-
}
|
|
3018
|
-
return [3
|
|
3011
|
+
case "BadRequestException": return [3, 2];
|
|
3012
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
3013
|
+
case "NotFoundException": return [3, 4];
|
|
3014
|
+
case "com.amazonaws.pinpointemail#NotFoundException": return [3, 4];
|
|
3015
|
+
case "TooManyRequestsException": return [3, 6];
|
|
3016
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
3017
|
+
}
|
|
3018
|
+
return [3, 8];
|
|
3019
3019
|
case 2:
|
|
3020
3020
|
_c = [{}];
|
|
3021
|
-
return [4
|
|
3021
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3022
3022
|
case 3:
|
|
3023
3023
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3024
|
-
return [3
|
|
3024
|
+
return [3, 9];
|
|
3025
3025
|
case 4:
|
|
3026
3026
|
_d = [{}];
|
|
3027
|
-
return [4
|
|
3027
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3028
3028
|
case 5:
|
|
3029
3029
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3030
|
-
return [3
|
|
3030
|
+
return [3, 9];
|
|
3031
3031
|
case 6:
|
|
3032
3032
|
_e = [{}];
|
|
3033
|
-
return [4
|
|
3033
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3034
3034
|
case 7:
|
|
3035
3035
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3036
|
-
return [3
|
|
3036
|
+
return [3, 9];
|
|
3037
3037
|
case 8:
|
|
3038
3038
|
parsedBody = parsedOutput.body;
|
|
3039
3039
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3043,7 +3043,7 @@ var deserializeAws_restJson1GetEmailIdentityCommandError = function (output, con
|
|
|
3043
3043
|
message = response.message || response.Message || errorCode;
|
|
3044
3044
|
response.message = message;
|
|
3045
3045
|
delete response.Message;
|
|
3046
|
-
return [2
|
|
3046
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3047
3047
|
}
|
|
3048
3048
|
});
|
|
3049
3049
|
}); };
|
|
@@ -3053,7 +3053,7 @@ export var deserializeAws_restJson1ListConfigurationSetsCommand = function (outp
|
|
|
3053
3053
|
switch (_c.label) {
|
|
3054
3054
|
case 0:
|
|
3055
3055
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3056
|
-
return [2
|
|
3056
|
+
return [2, deserializeAws_restJson1ListConfigurationSetsCommandError(output, context)];
|
|
3057
3057
|
}
|
|
3058
3058
|
contents = {
|
|
3059
3059
|
$metadata: deserializeMetadata(output),
|
|
@@ -3062,7 +3062,7 @@ export var deserializeAws_restJson1ListConfigurationSetsCommand = function (outp
|
|
|
3062
3062
|
};
|
|
3063
3063
|
_a = __expectNonNull;
|
|
3064
3064
|
_b = __expectObject;
|
|
3065
|
-
return [4
|
|
3065
|
+
return [4, parseBody(output.body, context)];
|
|
3066
3066
|
case 1:
|
|
3067
3067
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3068
3068
|
if (data.ConfigurationSets !== undefined && data.ConfigurationSets !== null) {
|
|
@@ -3071,7 +3071,7 @@ export var deserializeAws_restJson1ListConfigurationSetsCommand = function (outp
|
|
|
3071
3071
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3072
3072
|
contents.NextToken = __expectString(data.NextToken);
|
|
3073
3073
|
}
|
|
3074
|
-
return [2
|
|
3074
|
+
return [2, Promise.resolve(contents)];
|
|
3075
3075
|
}
|
|
3076
3076
|
});
|
|
3077
3077
|
}); };
|
|
@@ -3083,31 +3083,31 @@ var deserializeAws_restJson1ListConfigurationSetsCommandError = function (output
|
|
|
3083
3083
|
case 0:
|
|
3084
3084
|
_a = [__assign({}, output)];
|
|
3085
3085
|
_e = {};
|
|
3086
|
-
return [4
|
|
3086
|
+
return [4, parseBody(output.body, context)];
|
|
3087
3087
|
case 1:
|
|
3088
3088
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
3089
3089
|
errorCode = "UnknownError";
|
|
3090
3090
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3091
3091
|
_b = errorCode;
|
|
3092
3092
|
switch (_b) {
|
|
3093
|
-
case "BadRequestException": return [3
|
|
3094
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
3095
|
-
case "TooManyRequestsException": return [3
|
|
3096
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
3093
|
+
case "BadRequestException": return [3, 2];
|
|
3094
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
3095
|
+
case "TooManyRequestsException": return [3, 4];
|
|
3096
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 4];
|
|
3097
3097
|
}
|
|
3098
|
-
return [3
|
|
3098
|
+
return [3, 6];
|
|
3099
3099
|
case 2:
|
|
3100
3100
|
_c = [{}];
|
|
3101
|
-
return [4
|
|
3101
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3102
3102
|
case 3:
|
|
3103
3103
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3104
|
-
return [3
|
|
3104
|
+
return [3, 7];
|
|
3105
3105
|
case 4:
|
|
3106
3106
|
_d = [{}];
|
|
3107
|
-
return [4
|
|
3107
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3108
3108
|
case 5:
|
|
3109
3109
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3110
|
-
return [3
|
|
3110
|
+
return [3, 7];
|
|
3111
3111
|
case 6:
|
|
3112
3112
|
parsedBody = parsedOutput.body;
|
|
3113
3113
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3117,7 +3117,7 @@ var deserializeAws_restJson1ListConfigurationSetsCommandError = function (output
|
|
|
3117
3117
|
message = response.message || response.Message || errorCode;
|
|
3118
3118
|
response.message = message;
|
|
3119
3119
|
delete response.Message;
|
|
3120
|
-
return [2
|
|
3120
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3121
3121
|
}
|
|
3122
3122
|
});
|
|
3123
3123
|
}); };
|
|
@@ -3127,7 +3127,7 @@ export var deserializeAws_restJson1ListDedicatedIpPoolsCommand = function (outpu
|
|
|
3127
3127
|
switch (_c.label) {
|
|
3128
3128
|
case 0:
|
|
3129
3129
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3130
|
-
return [2
|
|
3130
|
+
return [2, deserializeAws_restJson1ListDedicatedIpPoolsCommandError(output, context)];
|
|
3131
3131
|
}
|
|
3132
3132
|
contents = {
|
|
3133
3133
|
$metadata: deserializeMetadata(output),
|
|
@@ -3136,7 +3136,7 @@ export var deserializeAws_restJson1ListDedicatedIpPoolsCommand = function (outpu
|
|
|
3136
3136
|
};
|
|
3137
3137
|
_a = __expectNonNull;
|
|
3138
3138
|
_b = __expectObject;
|
|
3139
|
-
return [4
|
|
3139
|
+
return [4, parseBody(output.body, context)];
|
|
3140
3140
|
case 1:
|
|
3141
3141
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3142
3142
|
if (data.DedicatedIpPools !== undefined && data.DedicatedIpPools !== null) {
|
|
@@ -3145,7 +3145,7 @@ export var deserializeAws_restJson1ListDedicatedIpPoolsCommand = function (outpu
|
|
|
3145
3145
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3146
3146
|
contents.NextToken = __expectString(data.NextToken);
|
|
3147
3147
|
}
|
|
3148
|
-
return [2
|
|
3148
|
+
return [2, Promise.resolve(contents)];
|
|
3149
3149
|
}
|
|
3150
3150
|
});
|
|
3151
3151
|
}); };
|
|
@@ -3157,31 +3157,31 @@ var deserializeAws_restJson1ListDedicatedIpPoolsCommandError = function (output,
|
|
|
3157
3157
|
case 0:
|
|
3158
3158
|
_a = [__assign({}, output)];
|
|
3159
3159
|
_e = {};
|
|
3160
|
-
return [4
|
|
3160
|
+
return [4, parseBody(output.body, context)];
|
|
3161
3161
|
case 1:
|
|
3162
3162
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
3163
3163
|
errorCode = "UnknownError";
|
|
3164
3164
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3165
3165
|
_b = errorCode;
|
|
3166
3166
|
switch (_b) {
|
|
3167
|
-
case "BadRequestException": return [3
|
|
3168
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
3169
|
-
case "TooManyRequestsException": return [3
|
|
3170
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
3167
|
+
case "BadRequestException": return [3, 2];
|
|
3168
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
3169
|
+
case "TooManyRequestsException": return [3, 4];
|
|
3170
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 4];
|
|
3171
3171
|
}
|
|
3172
|
-
return [3
|
|
3172
|
+
return [3, 6];
|
|
3173
3173
|
case 2:
|
|
3174
3174
|
_c = [{}];
|
|
3175
|
-
return [4
|
|
3175
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3176
3176
|
case 3:
|
|
3177
3177
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3178
|
-
return [3
|
|
3178
|
+
return [3, 7];
|
|
3179
3179
|
case 4:
|
|
3180
3180
|
_d = [{}];
|
|
3181
|
-
return [4
|
|
3181
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3182
3182
|
case 5:
|
|
3183
3183
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3184
|
-
return [3
|
|
3184
|
+
return [3, 7];
|
|
3185
3185
|
case 6:
|
|
3186
3186
|
parsedBody = parsedOutput.body;
|
|
3187
3187
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3191,7 +3191,7 @@ var deserializeAws_restJson1ListDedicatedIpPoolsCommandError = function (output,
|
|
|
3191
3191
|
message = response.message || response.Message || errorCode;
|
|
3192
3192
|
response.message = message;
|
|
3193
3193
|
delete response.Message;
|
|
3194
|
-
return [2
|
|
3194
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3195
3195
|
}
|
|
3196
3196
|
});
|
|
3197
3197
|
}); };
|
|
@@ -3201,7 +3201,7 @@ export var deserializeAws_restJson1ListDeliverabilityTestReportsCommand = functi
|
|
|
3201
3201
|
switch (_c.label) {
|
|
3202
3202
|
case 0:
|
|
3203
3203
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3204
|
-
return [2
|
|
3204
|
+
return [2, deserializeAws_restJson1ListDeliverabilityTestReportsCommandError(output, context)];
|
|
3205
3205
|
}
|
|
3206
3206
|
contents = {
|
|
3207
3207
|
$metadata: deserializeMetadata(output),
|
|
@@ -3210,7 +3210,7 @@ export var deserializeAws_restJson1ListDeliverabilityTestReportsCommand = functi
|
|
|
3210
3210
|
};
|
|
3211
3211
|
_a = __expectNonNull;
|
|
3212
3212
|
_b = __expectObject;
|
|
3213
|
-
return [4
|
|
3213
|
+
return [4, parseBody(output.body, context)];
|
|
3214
3214
|
case 1:
|
|
3215
3215
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3216
3216
|
if (data.DeliverabilityTestReports !== undefined && data.DeliverabilityTestReports !== null) {
|
|
@@ -3219,7 +3219,7 @@ export var deserializeAws_restJson1ListDeliverabilityTestReportsCommand = functi
|
|
|
3219
3219
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3220
3220
|
contents.NextToken = __expectString(data.NextToken);
|
|
3221
3221
|
}
|
|
3222
|
-
return [2
|
|
3222
|
+
return [2, Promise.resolve(contents)];
|
|
3223
3223
|
}
|
|
3224
3224
|
});
|
|
3225
3225
|
}); };
|
|
@@ -3231,39 +3231,39 @@ var deserializeAws_restJson1ListDeliverabilityTestReportsCommandError = function
|
|
|
3231
3231
|
case 0:
|
|
3232
3232
|
_a = [__assign({}, output)];
|
|
3233
3233
|
_f = {};
|
|
3234
|
-
return [4
|
|
3234
|
+
return [4, parseBody(output.body, context)];
|
|
3235
3235
|
case 1:
|
|
3236
3236
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
3237
3237
|
errorCode = "UnknownError";
|
|
3238
3238
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3239
3239
|
_b = errorCode;
|
|
3240
3240
|
switch (_b) {
|
|
3241
|
-
case "BadRequestException": return [3
|
|
3242
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
3243
|
-
case "NotFoundException": return [3
|
|
3244
|
-
case "com.amazonaws.pinpointemail#NotFoundException": return [3
|
|
3245
|
-
case "TooManyRequestsException": return [3
|
|
3246
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
3247
|
-
}
|
|
3248
|
-
return [3
|
|
3241
|
+
case "BadRequestException": return [3, 2];
|
|
3242
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
3243
|
+
case "NotFoundException": return [3, 4];
|
|
3244
|
+
case "com.amazonaws.pinpointemail#NotFoundException": return [3, 4];
|
|
3245
|
+
case "TooManyRequestsException": return [3, 6];
|
|
3246
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
3247
|
+
}
|
|
3248
|
+
return [3, 8];
|
|
3249
3249
|
case 2:
|
|
3250
3250
|
_c = [{}];
|
|
3251
|
-
return [4
|
|
3251
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3252
3252
|
case 3:
|
|
3253
3253
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3254
|
-
return [3
|
|
3254
|
+
return [3, 9];
|
|
3255
3255
|
case 4:
|
|
3256
3256
|
_d = [{}];
|
|
3257
|
-
return [4
|
|
3257
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3258
3258
|
case 5:
|
|
3259
3259
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3260
|
-
return [3
|
|
3260
|
+
return [3, 9];
|
|
3261
3261
|
case 6:
|
|
3262
3262
|
_e = [{}];
|
|
3263
|
-
return [4
|
|
3263
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3264
3264
|
case 7:
|
|
3265
3265
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3266
|
-
return [3
|
|
3266
|
+
return [3, 9];
|
|
3267
3267
|
case 8:
|
|
3268
3268
|
parsedBody = parsedOutput.body;
|
|
3269
3269
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3273,7 +3273,7 @@ var deserializeAws_restJson1ListDeliverabilityTestReportsCommandError = function
|
|
|
3273
3273
|
message = response.message || response.Message || errorCode;
|
|
3274
3274
|
response.message = message;
|
|
3275
3275
|
delete response.Message;
|
|
3276
|
-
return [2
|
|
3276
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3277
3277
|
}
|
|
3278
3278
|
});
|
|
3279
3279
|
}); };
|
|
@@ -3283,7 +3283,7 @@ export var deserializeAws_restJson1ListDomainDeliverabilityCampaignsCommand = fu
|
|
|
3283
3283
|
switch (_c.label) {
|
|
3284
3284
|
case 0:
|
|
3285
3285
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3286
|
-
return [2
|
|
3286
|
+
return [2, deserializeAws_restJson1ListDomainDeliverabilityCampaignsCommandError(output, context)];
|
|
3287
3287
|
}
|
|
3288
3288
|
contents = {
|
|
3289
3289
|
$metadata: deserializeMetadata(output),
|
|
@@ -3292,7 +3292,7 @@ export var deserializeAws_restJson1ListDomainDeliverabilityCampaignsCommand = fu
|
|
|
3292
3292
|
};
|
|
3293
3293
|
_a = __expectNonNull;
|
|
3294
3294
|
_b = __expectObject;
|
|
3295
|
-
return [4
|
|
3295
|
+
return [4, parseBody(output.body, context)];
|
|
3296
3296
|
case 1:
|
|
3297
3297
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3298
3298
|
if (data.DomainDeliverabilityCampaigns !== undefined && data.DomainDeliverabilityCampaigns !== null) {
|
|
@@ -3301,7 +3301,7 @@ export var deserializeAws_restJson1ListDomainDeliverabilityCampaignsCommand = fu
|
|
|
3301
3301
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3302
3302
|
contents.NextToken = __expectString(data.NextToken);
|
|
3303
3303
|
}
|
|
3304
|
-
return [2
|
|
3304
|
+
return [2, Promise.resolve(contents)];
|
|
3305
3305
|
}
|
|
3306
3306
|
});
|
|
3307
3307
|
}); };
|
|
@@ -3313,39 +3313,39 @@ var deserializeAws_restJson1ListDomainDeliverabilityCampaignsCommandError = func
|
|
|
3313
3313
|
case 0:
|
|
3314
3314
|
_a = [__assign({}, output)];
|
|
3315
3315
|
_f = {};
|
|
3316
|
-
return [4
|
|
3316
|
+
return [4, parseBody(output.body, context)];
|
|
3317
3317
|
case 1:
|
|
3318
3318
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
3319
3319
|
errorCode = "UnknownError";
|
|
3320
3320
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3321
3321
|
_b = errorCode;
|
|
3322
3322
|
switch (_b) {
|
|
3323
|
-
case "BadRequestException": return [3
|
|
3324
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
3325
|
-
case "NotFoundException": return [3
|
|
3326
|
-
case "com.amazonaws.pinpointemail#NotFoundException": return [3
|
|
3327
|
-
case "TooManyRequestsException": return [3
|
|
3328
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
3329
|
-
}
|
|
3330
|
-
return [3
|
|
3323
|
+
case "BadRequestException": return [3, 2];
|
|
3324
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
3325
|
+
case "NotFoundException": return [3, 4];
|
|
3326
|
+
case "com.amazonaws.pinpointemail#NotFoundException": return [3, 4];
|
|
3327
|
+
case "TooManyRequestsException": return [3, 6];
|
|
3328
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
3329
|
+
}
|
|
3330
|
+
return [3, 8];
|
|
3331
3331
|
case 2:
|
|
3332
3332
|
_c = [{}];
|
|
3333
|
-
return [4
|
|
3333
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3334
3334
|
case 3:
|
|
3335
3335
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3336
|
-
return [3
|
|
3336
|
+
return [3, 9];
|
|
3337
3337
|
case 4:
|
|
3338
3338
|
_d = [{}];
|
|
3339
|
-
return [4
|
|
3339
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3340
3340
|
case 5:
|
|
3341
3341
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3342
|
-
return [3
|
|
3342
|
+
return [3, 9];
|
|
3343
3343
|
case 6:
|
|
3344
3344
|
_e = [{}];
|
|
3345
|
-
return [4
|
|
3345
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3346
3346
|
case 7:
|
|
3347
3347
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3348
|
-
return [3
|
|
3348
|
+
return [3, 9];
|
|
3349
3349
|
case 8:
|
|
3350
3350
|
parsedBody = parsedOutput.body;
|
|
3351
3351
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3355,7 +3355,7 @@ var deserializeAws_restJson1ListDomainDeliverabilityCampaignsCommandError = func
|
|
|
3355
3355
|
message = response.message || response.Message || errorCode;
|
|
3356
3356
|
response.message = message;
|
|
3357
3357
|
delete response.Message;
|
|
3358
|
-
return [2
|
|
3358
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3359
3359
|
}
|
|
3360
3360
|
});
|
|
3361
3361
|
}); };
|
|
@@ -3365,7 +3365,7 @@ export var deserializeAws_restJson1ListEmailIdentitiesCommand = function (output
|
|
|
3365
3365
|
switch (_c.label) {
|
|
3366
3366
|
case 0:
|
|
3367
3367
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3368
|
-
return [2
|
|
3368
|
+
return [2, deserializeAws_restJson1ListEmailIdentitiesCommandError(output, context)];
|
|
3369
3369
|
}
|
|
3370
3370
|
contents = {
|
|
3371
3371
|
$metadata: deserializeMetadata(output),
|
|
@@ -3374,7 +3374,7 @@ export var deserializeAws_restJson1ListEmailIdentitiesCommand = function (output
|
|
|
3374
3374
|
};
|
|
3375
3375
|
_a = __expectNonNull;
|
|
3376
3376
|
_b = __expectObject;
|
|
3377
|
-
return [4
|
|
3377
|
+
return [4, parseBody(output.body, context)];
|
|
3378
3378
|
case 1:
|
|
3379
3379
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3380
3380
|
if (data.EmailIdentities !== undefined && data.EmailIdentities !== null) {
|
|
@@ -3383,7 +3383,7 @@ export var deserializeAws_restJson1ListEmailIdentitiesCommand = function (output
|
|
|
3383
3383
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3384
3384
|
contents.NextToken = __expectString(data.NextToken);
|
|
3385
3385
|
}
|
|
3386
|
-
return [2
|
|
3386
|
+
return [2, Promise.resolve(contents)];
|
|
3387
3387
|
}
|
|
3388
3388
|
});
|
|
3389
3389
|
}); };
|
|
@@ -3395,31 +3395,31 @@ var deserializeAws_restJson1ListEmailIdentitiesCommandError = function (output,
|
|
|
3395
3395
|
case 0:
|
|
3396
3396
|
_a = [__assign({}, output)];
|
|
3397
3397
|
_e = {};
|
|
3398
|
-
return [4
|
|
3398
|
+
return [4, parseBody(output.body, context)];
|
|
3399
3399
|
case 1:
|
|
3400
3400
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
3401
3401
|
errorCode = "UnknownError";
|
|
3402
3402
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3403
3403
|
_b = errorCode;
|
|
3404
3404
|
switch (_b) {
|
|
3405
|
-
case "BadRequestException": return [3
|
|
3406
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
3407
|
-
case "TooManyRequestsException": return [3
|
|
3408
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
3405
|
+
case "BadRequestException": return [3, 2];
|
|
3406
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
3407
|
+
case "TooManyRequestsException": return [3, 4];
|
|
3408
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 4];
|
|
3409
3409
|
}
|
|
3410
|
-
return [3
|
|
3410
|
+
return [3, 6];
|
|
3411
3411
|
case 2:
|
|
3412
3412
|
_c = [{}];
|
|
3413
|
-
return [4
|
|
3413
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3414
3414
|
case 3:
|
|
3415
3415
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3416
|
-
return [3
|
|
3416
|
+
return [3, 7];
|
|
3417
3417
|
case 4:
|
|
3418
3418
|
_d = [{}];
|
|
3419
|
-
return [4
|
|
3419
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3420
3420
|
case 5:
|
|
3421
3421
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3422
|
-
return [3
|
|
3422
|
+
return [3, 7];
|
|
3423
3423
|
case 6:
|
|
3424
3424
|
parsedBody = parsedOutput.body;
|
|
3425
3425
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3429,7 +3429,7 @@ var deserializeAws_restJson1ListEmailIdentitiesCommandError = function (output,
|
|
|
3429
3429
|
message = response.message || response.Message || errorCode;
|
|
3430
3430
|
response.message = message;
|
|
3431
3431
|
delete response.Message;
|
|
3432
|
-
return [2
|
|
3432
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3433
3433
|
}
|
|
3434
3434
|
});
|
|
3435
3435
|
}); };
|
|
@@ -3439,7 +3439,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
3439
3439
|
switch (_c.label) {
|
|
3440
3440
|
case 0:
|
|
3441
3441
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3442
|
-
return [2
|
|
3442
|
+
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
3443
3443
|
}
|
|
3444
3444
|
contents = {
|
|
3445
3445
|
$metadata: deserializeMetadata(output),
|
|
@@ -3447,13 +3447,13 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
3447
3447
|
};
|
|
3448
3448
|
_a = __expectNonNull;
|
|
3449
3449
|
_b = __expectObject;
|
|
3450
|
-
return [4
|
|
3450
|
+
return [4, parseBody(output.body, context)];
|
|
3451
3451
|
case 1:
|
|
3452
3452
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3453
3453
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
3454
3454
|
contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
|
|
3455
3455
|
}
|
|
3456
|
-
return [2
|
|
3456
|
+
return [2, Promise.resolve(contents)];
|
|
3457
3457
|
}
|
|
3458
3458
|
});
|
|
3459
3459
|
}); };
|
|
@@ -3465,39 +3465,39 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
3465
3465
|
case 0:
|
|
3466
3466
|
_a = [__assign({}, output)];
|
|
3467
3467
|
_f = {};
|
|
3468
|
-
return [4
|
|
3468
|
+
return [4, parseBody(output.body, context)];
|
|
3469
3469
|
case 1:
|
|
3470
3470
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
3471
3471
|
errorCode = "UnknownError";
|
|
3472
3472
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3473
3473
|
_b = errorCode;
|
|
3474
3474
|
switch (_b) {
|
|
3475
|
-
case "BadRequestException": return [3
|
|
3476
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
3477
|
-
case "NotFoundException": return [3
|
|
3478
|
-
case "com.amazonaws.pinpointemail#NotFoundException": return [3
|
|
3479
|
-
case "TooManyRequestsException": return [3
|
|
3480
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
3481
|
-
}
|
|
3482
|
-
return [3
|
|
3475
|
+
case "BadRequestException": return [3, 2];
|
|
3476
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
3477
|
+
case "NotFoundException": return [3, 4];
|
|
3478
|
+
case "com.amazonaws.pinpointemail#NotFoundException": return [3, 4];
|
|
3479
|
+
case "TooManyRequestsException": return [3, 6];
|
|
3480
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
3481
|
+
}
|
|
3482
|
+
return [3, 8];
|
|
3483
3483
|
case 2:
|
|
3484
3484
|
_c = [{}];
|
|
3485
|
-
return [4
|
|
3485
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3486
3486
|
case 3:
|
|
3487
3487
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3488
|
-
return [3
|
|
3488
|
+
return [3, 9];
|
|
3489
3489
|
case 4:
|
|
3490
3490
|
_d = [{}];
|
|
3491
|
-
return [4
|
|
3491
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3492
3492
|
case 5:
|
|
3493
3493
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3494
|
-
return [3
|
|
3494
|
+
return [3, 9];
|
|
3495
3495
|
case 6:
|
|
3496
3496
|
_e = [{}];
|
|
3497
|
-
return [4
|
|
3497
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3498
3498
|
case 7:
|
|
3499
3499
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3500
|
-
return [3
|
|
3500
|
+
return [3, 9];
|
|
3501
3501
|
case 8:
|
|
3502
3502
|
parsedBody = parsedOutput.body;
|
|
3503
3503
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3507,7 +3507,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
3507
3507
|
message = response.message || response.Message || errorCode;
|
|
3508
3508
|
response.message = message;
|
|
3509
3509
|
delete response.Message;
|
|
3510
|
-
return [2
|
|
3510
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3511
3511
|
}
|
|
3512
3512
|
});
|
|
3513
3513
|
}); };
|
|
@@ -3517,15 +3517,15 @@ export var deserializeAws_restJson1PutAccountDedicatedIpWarmupAttributesCommand
|
|
|
3517
3517
|
switch (_a.label) {
|
|
3518
3518
|
case 0:
|
|
3519
3519
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3520
|
-
return [2
|
|
3520
|
+
return [2, deserializeAws_restJson1PutAccountDedicatedIpWarmupAttributesCommandError(output, context)];
|
|
3521
3521
|
}
|
|
3522
3522
|
contents = {
|
|
3523
3523
|
$metadata: deserializeMetadata(output),
|
|
3524
3524
|
};
|
|
3525
|
-
return [4
|
|
3525
|
+
return [4, collectBody(output.body, context)];
|
|
3526
3526
|
case 1:
|
|
3527
3527
|
_a.sent();
|
|
3528
|
-
return [2
|
|
3528
|
+
return [2, Promise.resolve(contents)];
|
|
3529
3529
|
}
|
|
3530
3530
|
});
|
|
3531
3531
|
}); };
|
|
@@ -3537,31 +3537,31 @@ var deserializeAws_restJson1PutAccountDedicatedIpWarmupAttributesCommandError =
|
|
|
3537
3537
|
case 0:
|
|
3538
3538
|
_a = [__assign({}, output)];
|
|
3539
3539
|
_e = {};
|
|
3540
|
-
return [4
|
|
3540
|
+
return [4, parseBody(output.body, context)];
|
|
3541
3541
|
case 1:
|
|
3542
3542
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
3543
3543
|
errorCode = "UnknownError";
|
|
3544
3544
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3545
3545
|
_b = errorCode;
|
|
3546
3546
|
switch (_b) {
|
|
3547
|
-
case "BadRequestException": return [3
|
|
3548
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
3549
|
-
case "TooManyRequestsException": return [3
|
|
3550
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
3547
|
+
case "BadRequestException": return [3, 2];
|
|
3548
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
3549
|
+
case "TooManyRequestsException": return [3, 4];
|
|
3550
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 4];
|
|
3551
3551
|
}
|
|
3552
|
-
return [3
|
|
3552
|
+
return [3, 6];
|
|
3553
3553
|
case 2:
|
|
3554
3554
|
_c = [{}];
|
|
3555
|
-
return [4
|
|
3555
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3556
3556
|
case 3:
|
|
3557
3557
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3558
|
-
return [3
|
|
3558
|
+
return [3, 7];
|
|
3559
3559
|
case 4:
|
|
3560
3560
|
_d = [{}];
|
|
3561
|
-
return [4
|
|
3561
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3562
3562
|
case 5:
|
|
3563
3563
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3564
|
-
return [3
|
|
3564
|
+
return [3, 7];
|
|
3565
3565
|
case 6:
|
|
3566
3566
|
parsedBody = parsedOutput.body;
|
|
3567
3567
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3571,7 +3571,7 @@ var deserializeAws_restJson1PutAccountDedicatedIpWarmupAttributesCommandError =
|
|
|
3571
3571
|
message = response.message || response.Message || errorCode;
|
|
3572
3572
|
response.message = message;
|
|
3573
3573
|
delete response.Message;
|
|
3574
|
-
return [2
|
|
3574
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3575
3575
|
}
|
|
3576
3576
|
});
|
|
3577
3577
|
}); };
|
|
@@ -3581,15 +3581,15 @@ export var deserializeAws_restJson1PutAccountSendingAttributesCommand = function
|
|
|
3581
3581
|
switch (_a.label) {
|
|
3582
3582
|
case 0:
|
|
3583
3583
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3584
|
-
return [2
|
|
3584
|
+
return [2, deserializeAws_restJson1PutAccountSendingAttributesCommandError(output, context)];
|
|
3585
3585
|
}
|
|
3586
3586
|
contents = {
|
|
3587
3587
|
$metadata: deserializeMetadata(output),
|
|
3588
3588
|
};
|
|
3589
|
-
return [4
|
|
3589
|
+
return [4, collectBody(output.body, context)];
|
|
3590
3590
|
case 1:
|
|
3591
3591
|
_a.sent();
|
|
3592
|
-
return [2
|
|
3592
|
+
return [2, Promise.resolve(contents)];
|
|
3593
3593
|
}
|
|
3594
3594
|
});
|
|
3595
3595
|
}); };
|
|
@@ -3601,31 +3601,31 @@ var deserializeAws_restJson1PutAccountSendingAttributesCommandError = function (
|
|
|
3601
3601
|
case 0:
|
|
3602
3602
|
_a = [__assign({}, output)];
|
|
3603
3603
|
_e = {};
|
|
3604
|
-
return [4
|
|
3604
|
+
return [4, parseBody(output.body, context)];
|
|
3605
3605
|
case 1:
|
|
3606
3606
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
3607
3607
|
errorCode = "UnknownError";
|
|
3608
3608
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3609
3609
|
_b = errorCode;
|
|
3610
3610
|
switch (_b) {
|
|
3611
|
-
case "BadRequestException": return [3
|
|
3612
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
3613
|
-
case "TooManyRequestsException": return [3
|
|
3614
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
3611
|
+
case "BadRequestException": return [3, 2];
|
|
3612
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
3613
|
+
case "TooManyRequestsException": return [3, 4];
|
|
3614
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 4];
|
|
3615
3615
|
}
|
|
3616
|
-
return [3
|
|
3616
|
+
return [3, 6];
|
|
3617
3617
|
case 2:
|
|
3618
3618
|
_c = [{}];
|
|
3619
|
-
return [4
|
|
3619
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3620
3620
|
case 3:
|
|
3621
3621
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3622
|
-
return [3
|
|
3622
|
+
return [3, 7];
|
|
3623
3623
|
case 4:
|
|
3624
3624
|
_d = [{}];
|
|
3625
|
-
return [4
|
|
3625
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3626
3626
|
case 5:
|
|
3627
3627
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3628
|
-
return [3
|
|
3628
|
+
return [3, 7];
|
|
3629
3629
|
case 6:
|
|
3630
3630
|
parsedBody = parsedOutput.body;
|
|
3631
3631
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3635,7 +3635,7 @@ var deserializeAws_restJson1PutAccountSendingAttributesCommandError = function (
|
|
|
3635
3635
|
message = response.message || response.Message || errorCode;
|
|
3636
3636
|
response.message = message;
|
|
3637
3637
|
delete response.Message;
|
|
3638
|
-
return [2
|
|
3638
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3639
3639
|
}
|
|
3640
3640
|
});
|
|
3641
3641
|
}); };
|
|
@@ -3645,15 +3645,15 @@ export var deserializeAws_restJson1PutConfigurationSetDeliveryOptionsCommand = f
|
|
|
3645
3645
|
switch (_a.label) {
|
|
3646
3646
|
case 0:
|
|
3647
3647
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3648
|
-
return [2
|
|
3648
|
+
return [2, deserializeAws_restJson1PutConfigurationSetDeliveryOptionsCommandError(output, context)];
|
|
3649
3649
|
}
|
|
3650
3650
|
contents = {
|
|
3651
3651
|
$metadata: deserializeMetadata(output),
|
|
3652
3652
|
};
|
|
3653
|
-
return [4
|
|
3653
|
+
return [4, collectBody(output.body, context)];
|
|
3654
3654
|
case 1:
|
|
3655
3655
|
_a.sent();
|
|
3656
|
-
return [2
|
|
3656
|
+
return [2, Promise.resolve(contents)];
|
|
3657
3657
|
}
|
|
3658
3658
|
});
|
|
3659
3659
|
}); };
|
|
@@ -3665,39 +3665,39 @@ var deserializeAws_restJson1PutConfigurationSetDeliveryOptionsCommandError = fun
|
|
|
3665
3665
|
case 0:
|
|
3666
3666
|
_a = [__assign({}, output)];
|
|
3667
3667
|
_f = {};
|
|
3668
|
-
return [4
|
|
3668
|
+
return [4, parseBody(output.body, context)];
|
|
3669
3669
|
case 1:
|
|
3670
3670
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
3671
3671
|
errorCode = "UnknownError";
|
|
3672
3672
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3673
3673
|
_b = errorCode;
|
|
3674
3674
|
switch (_b) {
|
|
3675
|
-
case "BadRequestException": return [3
|
|
3676
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
3677
|
-
case "NotFoundException": return [3
|
|
3678
|
-
case "com.amazonaws.pinpointemail#NotFoundException": return [3
|
|
3679
|
-
case "TooManyRequestsException": return [3
|
|
3680
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
3681
|
-
}
|
|
3682
|
-
return [3
|
|
3675
|
+
case "BadRequestException": return [3, 2];
|
|
3676
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
3677
|
+
case "NotFoundException": return [3, 4];
|
|
3678
|
+
case "com.amazonaws.pinpointemail#NotFoundException": return [3, 4];
|
|
3679
|
+
case "TooManyRequestsException": return [3, 6];
|
|
3680
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
3681
|
+
}
|
|
3682
|
+
return [3, 8];
|
|
3683
3683
|
case 2:
|
|
3684
3684
|
_c = [{}];
|
|
3685
|
-
return [4
|
|
3685
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3686
3686
|
case 3:
|
|
3687
3687
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3688
|
-
return [3
|
|
3688
|
+
return [3, 9];
|
|
3689
3689
|
case 4:
|
|
3690
3690
|
_d = [{}];
|
|
3691
|
-
return [4
|
|
3691
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3692
3692
|
case 5:
|
|
3693
3693
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3694
|
-
return [3
|
|
3694
|
+
return [3, 9];
|
|
3695
3695
|
case 6:
|
|
3696
3696
|
_e = [{}];
|
|
3697
|
-
return [4
|
|
3697
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3698
3698
|
case 7:
|
|
3699
3699
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3700
|
-
return [3
|
|
3700
|
+
return [3, 9];
|
|
3701
3701
|
case 8:
|
|
3702
3702
|
parsedBody = parsedOutput.body;
|
|
3703
3703
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3707,7 +3707,7 @@ var deserializeAws_restJson1PutConfigurationSetDeliveryOptionsCommandError = fun
|
|
|
3707
3707
|
message = response.message || response.Message || errorCode;
|
|
3708
3708
|
response.message = message;
|
|
3709
3709
|
delete response.Message;
|
|
3710
|
-
return [2
|
|
3710
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3711
3711
|
}
|
|
3712
3712
|
});
|
|
3713
3713
|
}); };
|
|
@@ -3717,15 +3717,15 @@ export var deserializeAws_restJson1PutConfigurationSetReputationOptionsCommand =
|
|
|
3717
3717
|
switch (_a.label) {
|
|
3718
3718
|
case 0:
|
|
3719
3719
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3720
|
-
return [2
|
|
3720
|
+
return [2, deserializeAws_restJson1PutConfigurationSetReputationOptionsCommandError(output, context)];
|
|
3721
3721
|
}
|
|
3722
3722
|
contents = {
|
|
3723
3723
|
$metadata: deserializeMetadata(output),
|
|
3724
3724
|
};
|
|
3725
|
-
return [4
|
|
3725
|
+
return [4, collectBody(output.body, context)];
|
|
3726
3726
|
case 1:
|
|
3727
3727
|
_a.sent();
|
|
3728
|
-
return [2
|
|
3728
|
+
return [2, Promise.resolve(contents)];
|
|
3729
3729
|
}
|
|
3730
3730
|
});
|
|
3731
3731
|
}); };
|
|
@@ -3737,39 +3737,39 @@ var deserializeAws_restJson1PutConfigurationSetReputationOptionsCommandError = f
|
|
|
3737
3737
|
case 0:
|
|
3738
3738
|
_a = [__assign({}, output)];
|
|
3739
3739
|
_f = {};
|
|
3740
|
-
return [4
|
|
3740
|
+
return [4, parseBody(output.body, context)];
|
|
3741
3741
|
case 1:
|
|
3742
3742
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
3743
3743
|
errorCode = "UnknownError";
|
|
3744
3744
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3745
3745
|
_b = errorCode;
|
|
3746
3746
|
switch (_b) {
|
|
3747
|
-
case "BadRequestException": return [3
|
|
3748
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
3749
|
-
case "NotFoundException": return [3
|
|
3750
|
-
case "com.amazonaws.pinpointemail#NotFoundException": return [3
|
|
3751
|
-
case "TooManyRequestsException": return [3
|
|
3752
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
3753
|
-
}
|
|
3754
|
-
return [3
|
|
3747
|
+
case "BadRequestException": return [3, 2];
|
|
3748
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
3749
|
+
case "NotFoundException": return [3, 4];
|
|
3750
|
+
case "com.amazonaws.pinpointemail#NotFoundException": return [3, 4];
|
|
3751
|
+
case "TooManyRequestsException": return [3, 6];
|
|
3752
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
3753
|
+
}
|
|
3754
|
+
return [3, 8];
|
|
3755
3755
|
case 2:
|
|
3756
3756
|
_c = [{}];
|
|
3757
|
-
return [4
|
|
3757
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3758
3758
|
case 3:
|
|
3759
3759
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3760
|
-
return [3
|
|
3760
|
+
return [3, 9];
|
|
3761
3761
|
case 4:
|
|
3762
3762
|
_d = [{}];
|
|
3763
|
-
return [4
|
|
3763
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3764
3764
|
case 5:
|
|
3765
3765
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3766
|
-
return [3
|
|
3766
|
+
return [3, 9];
|
|
3767
3767
|
case 6:
|
|
3768
3768
|
_e = [{}];
|
|
3769
|
-
return [4
|
|
3769
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3770
3770
|
case 7:
|
|
3771
3771
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3772
|
-
return [3
|
|
3772
|
+
return [3, 9];
|
|
3773
3773
|
case 8:
|
|
3774
3774
|
parsedBody = parsedOutput.body;
|
|
3775
3775
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3779,7 +3779,7 @@ var deserializeAws_restJson1PutConfigurationSetReputationOptionsCommandError = f
|
|
|
3779
3779
|
message = response.message || response.Message || errorCode;
|
|
3780
3780
|
response.message = message;
|
|
3781
3781
|
delete response.Message;
|
|
3782
|
-
return [2
|
|
3782
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3783
3783
|
}
|
|
3784
3784
|
});
|
|
3785
3785
|
}); };
|
|
@@ -3789,15 +3789,15 @@ export var deserializeAws_restJson1PutConfigurationSetSendingOptionsCommand = fu
|
|
|
3789
3789
|
switch (_a.label) {
|
|
3790
3790
|
case 0:
|
|
3791
3791
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3792
|
-
return [2
|
|
3792
|
+
return [2, deserializeAws_restJson1PutConfigurationSetSendingOptionsCommandError(output, context)];
|
|
3793
3793
|
}
|
|
3794
3794
|
contents = {
|
|
3795
3795
|
$metadata: deserializeMetadata(output),
|
|
3796
3796
|
};
|
|
3797
|
-
return [4
|
|
3797
|
+
return [4, collectBody(output.body, context)];
|
|
3798
3798
|
case 1:
|
|
3799
3799
|
_a.sent();
|
|
3800
|
-
return [2
|
|
3800
|
+
return [2, Promise.resolve(contents)];
|
|
3801
3801
|
}
|
|
3802
3802
|
});
|
|
3803
3803
|
}); };
|
|
@@ -3809,39 +3809,39 @@ var deserializeAws_restJson1PutConfigurationSetSendingOptionsCommandError = func
|
|
|
3809
3809
|
case 0:
|
|
3810
3810
|
_a = [__assign({}, output)];
|
|
3811
3811
|
_f = {};
|
|
3812
|
-
return [4
|
|
3812
|
+
return [4, parseBody(output.body, context)];
|
|
3813
3813
|
case 1:
|
|
3814
3814
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
3815
3815
|
errorCode = "UnknownError";
|
|
3816
3816
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3817
3817
|
_b = errorCode;
|
|
3818
3818
|
switch (_b) {
|
|
3819
|
-
case "BadRequestException": return [3
|
|
3820
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
3821
|
-
case "NotFoundException": return [3
|
|
3822
|
-
case "com.amazonaws.pinpointemail#NotFoundException": return [3
|
|
3823
|
-
case "TooManyRequestsException": return [3
|
|
3824
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
3825
|
-
}
|
|
3826
|
-
return [3
|
|
3819
|
+
case "BadRequestException": return [3, 2];
|
|
3820
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
3821
|
+
case "NotFoundException": return [3, 4];
|
|
3822
|
+
case "com.amazonaws.pinpointemail#NotFoundException": return [3, 4];
|
|
3823
|
+
case "TooManyRequestsException": return [3, 6];
|
|
3824
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
3825
|
+
}
|
|
3826
|
+
return [3, 8];
|
|
3827
3827
|
case 2:
|
|
3828
3828
|
_c = [{}];
|
|
3829
|
-
return [4
|
|
3829
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3830
3830
|
case 3:
|
|
3831
3831
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3832
|
-
return [3
|
|
3832
|
+
return [3, 9];
|
|
3833
3833
|
case 4:
|
|
3834
3834
|
_d = [{}];
|
|
3835
|
-
return [4
|
|
3835
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3836
3836
|
case 5:
|
|
3837
3837
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3838
|
-
return [3
|
|
3838
|
+
return [3, 9];
|
|
3839
3839
|
case 6:
|
|
3840
3840
|
_e = [{}];
|
|
3841
|
-
return [4
|
|
3841
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3842
3842
|
case 7:
|
|
3843
3843
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3844
|
-
return [3
|
|
3844
|
+
return [3, 9];
|
|
3845
3845
|
case 8:
|
|
3846
3846
|
parsedBody = parsedOutput.body;
|
|
3847
3847
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3851,7 +3851,7 @@ var deserializeAws_restJson1PutConfigurationSetSendingOptionsCommandError = func
|
|
|
3851
3851
|
message = response.message || response.Message || errorCode;
|
|
3852
3852
|
response.message = message;
|
|
3853
3853
|
delete response.Message;
|
|
3854
|
-
return [2
|
|
3854
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3855
3855
|
}
|
|
3856
3856
|
});
|
|
3857
3857
|
}); };
|
|
@@ -3861,15 +3861,15 @@ export var deserializeAws_restJson1PutConfigurationSetTrackingOptionsCommand = f
|
|
|
3861
3861
|
switch (_a.label) {
|
|
3862
3862
|
case 0:
|
|
3863
3863
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3864
|
-
return [2
|
|
3864
|
+
return [2, deserializeAws_restJson1PutConfigurationSetTrackingOptionsCommandError(output, context)];
|
|
3865
3865
|
}
|
|
3866
3866
|
contents = {
|
|
3867
3867
|
$metadata: deserializeMetadata(output),
|
|
3868
3868
|
};
|
|
3869
|
-
return [4
|
|
3869
|
+
return [4, collectBody(output.body, context)];
|
|
3870
3870
|
case 1:
|
|
3871
3871
|
_a.sent();
|
|
3872
|
-
return [2
|
|
3872
|
+
return [2, Promise.resolve(contents)];
|
|
3873
3873
|
}
|
|
3874
3874
|
});
|
|
3875
3875
|
}); };
|
|
@@ -3881,39 +3881,39 @@ var deserializeAws_restJson1PutConfigurationSetTrackingOptionsCommandError = fun
|
|
|
3881
3881
|
case 0:
|
|
3882
3882
|
_a = [__assign({}, output)];
|
|
3883
3883
|
_f = {};
|
|
3884
|
-
return [4
|
|
3884
|
+
return [4, parseBody(output.body, context)];
|
|
3885
3885
|
case 1:
|
|
3886
3886
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
3887
3887
|
errorCode = "UnknownError";
|
|
3888
3888
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3889
3889
|
_b = errorCode;
|
|
3890
3890
|
switch (_b) {
|
|
3891
|
-
case "BadRequestException": return [3
|
|
3892
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
3893
|
-
case "NotFoundException": return [3
|
|
3894
|
-
case "com.amazonaws.pinpointemail#NotFoundException": return [3
|
|
3895
|
-
case "TooManyRequestsException": return [3
|
|
3896
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
3897
|
-
}
|
|
3898
|
-
return [3
|
|
3891
|
+
case "BadRequestException": return [3, 2];
|
|
3892
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
3893
|
+
case "NotFoundException": return [3, 4];
|
|
3894
|
+
case "com.amazonaws.pinpointemail#NotFoundException": return [3, 4];
|
|
3895
|
+
case "TooManyRequestsException": return [3, 6];
|
|
3896
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
3897
|
+
}
|
|
3898
|
+
return [3, 8];
|
|
3899
3899
|
case 2:
|
|
3900
3900
|
_c = [{}];
|
|
3901
|
-
return [4
|
|
3901
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3902
3902
|
case 3:
|
|
3903
3903
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3904
|
-
return [3
|
|
3904
|
+
return [3, 9];
|
|
3905
3905
|
case 4:
|
|
3906
3906
|
_d = [{}];
|
|
3907
|
-
return [4
|
|
3907
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3908
3908
|
case 5:
|
|
3909
3909
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3910
|
-
return [3
|
|
3910
|
+
return [3, 9];
|
|
3911
3911
|
case 6:
|
|
3912
3912
|
_e = [{}];
|
|
3913
|
-
return [4
|
|
3913
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3914
3914
|
case 7:
|
|
3915
3915
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3916
|
-
return [3
|
|
3916
|
+
return [3, 9];
|
|
3917
3917
|
case 8:
|
|
3918
3918
|
parsedBody = parsedOutput.body;
|
|
3919
3919
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3923,7 +3923,7 @@ var deserializeAws_restJson1PutConfigurationSetTrackingOptionsCommandError = fun
|
|
|
3923
3923
|
message = response.message || response.Message || errorCode;
|
|
3924
3924
|
response.message = message;
|
|
3925
3925
|
delete response.Message;
|
|
3926
|
-
return [2
|
|
3926
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3927
3927
|
}
|
|
3928
3928
|
});
|
|
3929
3929
|
}); };
|
|
@@ -3933,15 +3933,15 @@ export var deserializeAws_restJson1PutDedicatedIpInPoolCommand = function (outpu
|
|
|
3933
3933
|
switch (_a.label) {
|
|
3934
3934
|
case 0:
|
|
3935
3935
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3936
|
-
return [2
|
|
3936
|
+
return [2, deserializeAws_restJson1PutDedicatedIpInPoolCommandError(output, context)];
|
|
3937
3937
|
}
|
|
3938
3938
|
contents = {
|
|
3939
3939
|
$metadata: deserializeMetadata(output),
|
|
3940
3940
|
};
|
|
3941
|
-
return [4
|
|
3941
|
+
return [4, collectBody(output.body, context)];
|
|
3942
3942
|
case 1:
|
|
3943
3943
|
_a.sent();
|
|
3944
|
-
return [2
|
|
3944
|
+
return [2, Promise.resolve(contents)];
|
|
3945
3945
|
}
|
|
3946
3946
|
});
|
|
3947
3947
|
}); };
|
|
@@ -3953,39 +3953,39 @@ var deserializeAws_restJson1PutDedicatedIpInPoolCommandError = function (output,
|
|
|
3953
3953
|
case 0:
|
|
3954
3954
|
_a = [__assign({}, output)];
|
|
3955
3955
|
_f = {};
|
|
3956
|
-
return [4
|
|
3956
|
+
return [4, parseBody(output.body, context)];
|
|
3957
3957
|
case 1:
|
|
3958
3958
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
3959
3959
|
errorCode = "UnknownError";
|
|
3960
3960
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3961
3961
|
_b = errorCode;
|
|
3962
3962
|
switch (_b) {
|
|
3963
|
-
case "BadRequestException": return [3
|
|
3964
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
3965
|
-
case "NotFoundException": return [3
|
|
3966
|
-
case "com.amazonaws.pinpointemail#NotFoundException": return [3
|
|
3967
|
-
case "TooManyRequestsException": return [3
|
|
3968
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
3969
|
-
}
|
|
3970
|
-
return [3
|
|
3963
|
+
case "BadRequestException": return [3, 2];
|
|
3964
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
3965
|
+
case "NotFoundException": return [3, 4];
|
|
3966
|
+
case "com.amazonaws.pinpointemail#NotFoundException": return [3, 4];
|
|
3967
|
+
case "TooManyRequestsException": return [3, 6];
|
|
3968
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
3969
|
+
}
|
|
3970
|
+
return [3, 8];
|
|
3971
3971
|
case 2:
|
|
3972
3972
|
_c = [{}];
|
|
3973
|
-
return [4
|
|
3973
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3974
3974
|
case 3:
|
|
3975
3975
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3976
|
-
return [3
|
|
3976
|
+
return [3, 9];
|
|
3977
3977
|
case 4:
|
|
3978
3978
|
_d = [{}];
|
|
3979
|
-
return [4
|
|
3979
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3980
3980
|
case 5:
|
|
3981
3981
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3982
|
-
return [3
|
|
3982
|
+
return [3, 9];
|
|
3983
3983
|
case 6:
|
|
3984
3984
|
_e = [{}];
|
|
3985
|
-
return [4
|
|
3985
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3986
3986
|
case 7:
|
|
3987
3987
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3988
|
-
return [3
|
|
3988
|
+
return [3, 9];
|
|
3989
3989
|
case 8:
|
|
3990
3990
|
parsedBody = parsedOutput.body;
|
|
3991
3991
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3995,7 +3995,7 @@ var deserializeAws_restJson1PutDedicatedIpInPoolCommandError = function (output,
|
|
|
3995
3995
|
message = response.message || response.Message || errorCode;
|
|
3996
3996
|
response.message = message;
|
|
3997
3997
|
delete response.Message;
|
|
3998
|
-
return [2
|
|
3998
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3999
3999
|
}
|
|
4000
4000
|
});
|
|
4001
4001
|
}); };
|
|
@@ -4005,15 +4005,15 @@ export var deserializeAws_restJson1PutDedicatedIpWarmupAttributesCommand = funct
|
|
|
4005
4005
|
switch (_a.label) {
|
|
4006
4006
|
case 0:
|
|
4007
4007
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4008
|
-
return [2
|
|
4008
|
+
return [2, deserializeAws_restJson1PutDedicatedIpWarmupAttributesCommandError(output, context)];
|
|
4009
4009
|
}
|
|
4010
4010
|
contents = {
|
|
4011
4011
|
$metadata: deserializeMetadata(output),
|
|
4012
4012
|
};
|
|
4013
|
-
return [4
|
|
4013
|
+
return [4, collectBody(output.body, context)];
|
|
4014
4014
|
case 1:
|
|
4015
4015
|
_a.sent();
|
|
4016
|
-
return [2
|
|
4016
|
+
return [2, Promise.resolve(contents)];
|
|
4017
4017
|
}
|
|
4018
4018
|
});
|
|
4019
4019
|
}); };
|
|
@@ -4025,39 +4025,39 @@ var deserializeAws_restJson1PutDedicatedIpWarmupAttributesCommandError = functio
|
|
|
4025
4025
|
case 0:
|
|
4026
4026
|
_a = [__assign({}, output)];
|
|
4027
4027
|
_f = {};
|
|
4028
|
-
return [4
|
|
4028
|
+
return [4, parseBody(output.body, context)];
|
|
4029
4029
|
case 1:
|
|
4030
4030
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
4031
4031
|
errorCode = "UnknownError";
|
|
4032
4032
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4033
4033
|
_b = errorCode;
|
|
4034
4034
|
switch (_b) {
|
|
4035
|
-
case "BadRequestException": return [3
|
|
4036
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
4037
|
-
case "NotFoundException": return [3
|
|
4038
|
-
case "com.amazonaws.pinpointemail#NotFoundException": return [3
|
|
4039
|
-
case "TooManyRequestsException": return [3
|
|
4040
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
4041
|
-
}
|
|
4042
|
-
return [3
|
|
4035
|
+
case "BadRequestException": return [3, 2];
|
|
4036
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
4037
|
+
case "NotFoundException": return [3, 4];
|
|
4038
|
+
case "com.amazonaws.pinpointemail#NotFoundException": return [3, 4];
|
|
4039
|
+
case "TooManyRequestsException": return [3, 6];
|
|
4040
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
4041
|
+
}
|
|
4042
|
+
return [3, 8];
|
|
4043
4043
|
case 2:
|
|
4044
4044
|
_c = [{}];
|
|
4045
|
-
return [4
|
|
4045
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
4046
4046
|
case 3:
|
|
4047
4047
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4048
|
-
return [3
|
|
4048
|
+
return [3, 9];
|
|
4049
4049
|
case 4:
|
|
4050
4050
|
_d = [{}];
|
|
4051
|
-
return [4
|
|
4051
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
4052
4052
|
case 5:
|
|
4053
4053
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4054
|
-
return [3
|
|
4054
|
+
return [3, 9];
|
|
4055
4055
|
case 6:
|
|
4056
4056
|
_e = [{}];
|
|
4057
|
-
return [4
|
|
4057
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
4058
4058
|
case 7:
|
|
4059
4059
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4060
|
-
return [3
|
|
4060
|
+
return [3, 9];
|
|
4061
4061
|
case 8:
|
|
4062
4062
|
parsedBody = parsedOutput.body;
|
|
4063
4063
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -4067,7 +4067,7 @@ var deserializeAws_restJson1PutDedicatedIpWarmupAttributesCommandError = functio
|
|
|
4067
4067
|
message = response.message || response.Message || errorCode;
|
|
4068
4068
|
response.message = message;
|
|
4069
4069
|
delete response.Message;
|
|
4070
|
-
return [2
|
|
4070
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4071
4071
|
}
|
|
4072
4072
|
});
|
|
4073
4073
|
}); };
|
|
@@ -4077,15 +4077,15 @@ export var deserializeAws_restJson1PutDeliverabilityDashboardOptionCommand = fun
|
|
|
4077
4077
|
switch (_a.label) {
|
|
4078
4078
|
case 0:
|
|
4079
4079
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4080
|
-
return [2
|
|
4080
|
+
return [2, deserializeAws_restJson1PutDeliverabilityDashboardOptionCommandError(output, context)];
|
|
4081
4081
|
}
|
|
4082
4082
|
contents = {
|
|
4083
4083
|
$metadata: deserializeMetadata(output),
|
|
4084
4084
|
};
|
|
4085
|
-
return [4
|
|
4085
|
+
return [4, collectBody(output.body, context)];
|
|
4086
4086
|
case 1:
|
|
4087
4087
|
_a.sent();
|
|
4088
|
-
return [2
|
|
4088
|
+
return [2, Promise.resolve(contents)];
|
|
4089
4089
|
}
|
|
4090
4090
|
});
|
|
4091
4091
|
}); };
|
|
@@ -4097,55 +4097,55 @@ var deserializeAws_restJson1PutDeliverabilityDashboardOptionCommandError = funct
|
|
|
4097
4097
|
case 0:
|
|
4098
4098
|
_a = [__assign({}, output)];
|
|
4099
4099
|
_h = {};
|
|
4100
|
-
return [4
|
|
4100
|
+
return [4, parseBody(output.body, context)];
|
|
4101
4101
|
case 1:
|
|
4102
4102
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
4103
4103
|
errorCode = "UnknownError";
|
|
4104
4104
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4105
4105
|
_b = errorCode;
|
|
4106
4106
|
switch (_b) {
|
|
4107
|
-
case "AlreadyExistsException": return [3
|
|
4108
|
-
case "com.amazonaws.pinpointemail#AlreadyExistsException": return [3
|
|
4109
|
-
case "BadRequestException": return [3
|
|
4110
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
4111
|
-
case "LimitExceededException": return [3
|
|
4112
|
-
case "com.amazonaws.pinpointemail#LimitExceededException": return [3
|
|
4113
|
-
case "NotFoundException": return [3
|
|
4114
|
-
case "com.amazonaws.pinpointemail#NotFoundException": return [3
|
|
4115
|
-
case "TooManyRequestsException": return [3
|
|
4116
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
4117
|
-
}
|
|
4118
|
-
return [3
|
|
4107
|
+
case "AlreadyExistsException": return [3, 2];
|
|
4108
|
+
case "com.amazonaws.pinpointemail#AlreadyExistsException": return [3, 2];
|
|
4109
|
+
case "BadRequestException": return [3, 4];
|
|
4110
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 4];
|
|
4111
|
+
case "LimitExceededException": return [3, 6];
|
|
4112
|
+
case "com.amazonaws.pinpointemail#LimitExceededException": return [3, 6];
|
|
4113
|
+
case "NotFoundException": return [3, 8];
|
|
4114
|
+
case "com.amazonaws.pinpointemail#NotFoundException": return [3, 8];
|
|
4115
|
+
case "TooManyRequestsException": return [3, 10];
|
|
4116
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 10];
|
|
4117
|
+
}
|
|
4118
|
+
return [3, 12];
|
|
4119
4119
|
case 2:
|
|
4120
4120
|
_c = [{}];
|
|
4121
|
-
return [4
|
|
4121
|
+
return [4, deserializeAws_restJson1AlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
4122
4122
|
case 3:
|
|
4123
4123
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4124
|
-
return [3
|
|
4124
|
+
return [3, 13];
|
|
4125
4125
|
case 4:
|
|
4126
4126
|
_d = [{}];
|
|
4127
|
-
return [4
|
|
4127
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
4128
4128
|
case 5:
|
|
4129
4129
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4130
|
-
return [3
|
|
4130
|
+
return [3, 13];
|
|
4131
4131
|
case 6:
|
|
4132
4132
|
_e = [{}];
|
|
4133
|
-
return [4
|
|
4133
|
+
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
4134
4134
|
case 7:
|
|
4135
4135
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4136
|
-
return [3
|
|
4136
|
+
return [3, 13];
|
|
4137
4137
|
case 8:
|
|
4138
4138
|
_f = [{}];
|
|
4139
|
-
return [4
|
|
4139
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
4140
4140
|
case 9:
|
|
4141
4141
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4142
|
-
return [3
|
|
4142
|
+
return [3, 13];
|
|
4143
4143
|
case 10:
|
|
4144
4144
|
_g = [{}];
|
|
4145
|
-
return [4
|
|
4145
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
4146
4146
|
case 11:
|
|
4147
4147
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4148
|
-
return [3
|
|
4148
|
+
return [3, 13];
|
|
4149
4149
|
case 12:
|
|
4150
4150
|
parsedBody = parsedOutput.body;
|
|
4151
4151
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -4155,7 +4155,7 @@ var deserializeAws_restJson1PutDeliverabilityDashboardOptionCommandError = funct
|
|
|
4155
4155
|
message = response.message || response.Message || errorCode;
|
|
4156
4156
|
response.message = message;
|
|
4157
4157
|
delete response.Message;
|
|
4158
|
-
return [2
|
|
4158
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4159
4159
|
}
|
|
4160
4160
|
});
|
|
4161
4161
|
}); };
|
|
@@ -4165,15 +4165,15 @@ export var deserializeAws_restJson1PutEmailIdentityDkimAttributesCommand = funct
|
|
|
4165
4165
|
switch (_a.label) {
|
|
4166
4166
|
case 0:
|
|
4167
4167
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4168
|
-
return [2
|
|
4168
|
+
return [2, deserializeAws_restJson1PutEmailIdentityDkimAttributesCommandError(output, context)];
|
|
4169
4169
|
}
|
|
4170
4170
|
contents = {
|
|
4171
4171
|
$metadata: deserializeMetadata(output),
|
|
4172
4172
|
};
|
|
4173
|
-
return [4
|
|
4173
|
+
return [4, collectBody(output.body, context)];
|
|
4174
4174
|
case 1:
|
|
4175
4175
|
_a.sent();
|
|
4176
|
-
return [2
|
|
4176
|
+
return [2, Promise.resolve(contents)];
|
|
4177
4177
|
}
|
|
4178
4178
|
});
|
|
4179
4179
|
}); };
|
|
@@ -4185,39 +4185,39 @@ var deserializeAws_restJson1PutEmailIdentityDkimAttributesCommandError = functio
|
|
|
4185
4185
|
case 0:
|
|
4186
4186
|
_a = [__assign({}, output)];
|
|
4187
4187
|
_f = {};
|
|
4188
|
-
return [4
|
|
4188
|
+
return [4, parseBody(output.body, context)];
|
|
4189
4189
|
case 1:
|
|
4190
4190
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
4191
4191
|
errorCode = "UnknownError";
|
|
4192
4192
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4193
4193
|
_b = errorCode;
|
|
4194
4194
|
switch (_b) {
|
|
4195
|
-
case "BadRequestException": return [3
|
|
4196
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
4197
|
-
case "NotFoundException": return [3
|
|
4198
|
-
case "com.amazonaws.pinpointemail#NotFoundException": return [3
|
|
4199
|
-
case "TooManyRequestsException": return [3
|
|
4200
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
4201
|
-
}
|
|
4202
|
-
return [3
|
|
4195
|
+
case "BadRequestException": return [3, 2];
|
|
4196
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
4197
|
+
case "NotFoundException": return [3, 4];
|
|
4198
|
+
case "com.amazonaws.pinpointemail#NotFoundException": return [3, 4];
|
|
4199
|
+
case "TooManyRequestsException": return [3, 6];
|
|
4200
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
4201
|
+
}
|
|
4202
|
+
return [3, 8];
|
|
4203
4203
|
case 2:
|
|
4204
4204
|
_c = [{}];
|
|
4205
|
-
return [4
|
|
4205
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
4206
4206
|
case 3:
|
|
4207
4207
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4208
|
-
return [3
|
|
4208
|
+
return [3, 9];
|
|
4209
4209
|
case 4:
|
|
4210
4210
|
_d = [{}];
|
|
4211
|
-
return [4
|
|
4211
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
4212
4212
|
case 5:
|
|
4213
4213
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4214
|
-
return [3
|
|
4214
|
+
return [3, 9];
|
|
4215
4215
|
case 6:
|
|
4216
4216
|
_e = [{}];
|
|
4217
|
-
return [4
|
|
4217
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
4218
4218
|
case 7:
|
|
4219
4219
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4220
|
-
return [3
|
|
4220
|
+
return [3, 9];
|
|
4221
4221
|
case 8:
|
|
4222
4222
|
parsedBody = parsedOutput.body;
|
|
4223
4223
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -4227,7 +4227,7 @@ var deserializeAws_restJson1PutEmailIdentityDkimAttributesCommandError = functio
|
|
|
4227
4227
|
message = response.message || response.Message || errorCode;
|
|
4228
4228
|
response.message = message;
|
|
4229
4229
|
delete response.Message;
|
|
4230
|
-
return [2
|
|
4230
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4231
4231
|
}
|
|
4232
4232
|
});
|
|
4233
4233
|
}); };
|
|
@@ -4237,15 +4237,15 @@ export var deserializeAws_restJson1PutEmailIdentityFeedbackAttributesCommand = f
|
|
|
4237
4237
|
switch (_a.label) {
|
|
4238
4238
|
case 0:
|
|
4239
4239
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4240
|
-
return [2
|
|
4240
|
+
return [2, deserializeAws_restJson1PutEmailIdentityFeedbackAttributesCommandError(output, context)];
|
|
4241
4241
|
}
|
|
4242
4242
|
contents = {
|
|
4243
4243
|
$metadata: deserializeMetadata(output),
|
|
4244
4244
|
};
|
|
4245
|
-
return [4
|
|
4245
|
+
return [4, collectBody(output.body, context)];
|
|
4246
4246
|
case 1:
|
|
4247
4247
|
_a.sent();
|
|
4248
|
-
return [2
|
|
4248
|
+
return [2, Promise.resolve(contents)];
|
|
4249
4249
|
}
|
|
4250
4250
|
});
|
|
4251
4251
|
}); };
|
|
@@ -4257,39 +4257,39 @@ var deserializeAws_restJson1PutEmailIdentityFeedbackAttributesCommandError = fun
|
|
|
4257
4257
|
case 0:
|
|
4258
4258
|
_a = [__assign({}, output)];
|
|
4259
4259
|
_f = {};
|
|
4260
|
-
return [4
|
|
4260
|
+
return [4, parseBody(output.body, context)];
|
|
4261
4261
|
case 1:
|
|
4262
4262
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
4263
4263
|
errorCode = "UnknownError";
|
|
4264
4264
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4265
4265
|
_b = errorCode;
|
|
4266
4266
|
switch (_b) {
|
|
4267
|
-
case "BadRequestException": return [3
|
|
4268
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
4269
|
-
case "NotFoundException": return [3
|
|
4270
|
-
case "com.amazonaws.pinpointemail#NotFoundException": return [3
|
|
4271
|
-
case "TooManyRequestsException": return [3
|
|
4272
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
4273
|
-
}
|
|
4274
|
-
return [3
|
|
4267
|
+
case "BadRequestException": return [3, 2];
|
|
4268
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
4269
|
+
case "NotFoundException": return [3, 4];
|
|
4270
|
+
case "com.amazonaws.pinpointemail#NotFoundException": return [3, 4];
|
|
4271
|
+
case "TooManyRequestsException": return [3, 6];
|
|
4272
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
4273
|
+
}
|
|
4274
|
+
return [3, 8];
|
|
4275
4275
|
case 2:
|
|
4276
4276
|
_c = [{}];
|
|
4277
|
-
return [4
|
|
4277
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
4278
4278
|
case 3:
|
|
4279
4279
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4280
|
-
return [3
|
|
4280
|
+
return [3, 9];
|
|
4281
4281
|
case 4:
|
|
4282
4282
|
_d = [{}];
|
|
4283
|
-
return [4
|
|
4283
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
4284
4284
|
case 5:
|
|
4285
4285
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4286
|
-
return [3
|
|
4286
|
+
return [3, 9];
|
|
4287
4287
|
case 6:
|
|
4288
4288
|
_e = [{}];
|
|
4289
|
-
return [4
|
|
4289
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
4290
4290
|
case 7:
|
|
4291
4291
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4292
|
-
return [3
|
|
4292
|
+
return [3, 9];
|
|
4293
4293
|
case 8:
|
|
4294
4294
|
parsedBody = parsedOutput.body;
|
|
4295
4295
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -4299,7 +4299,7 @@ var deserializeAws_restJson1PutEmailIdentityFeedbackAttributesCommandError = fun
|
|
|
4299
4299
|
message = response.message || response.Message || errorCode;
|
|
4300
4300
|
response.message = message;
|
|
4301
4301
|
delete response.Message;
|
|
4302
|
-
return [2
|
|
4302
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4303
4303
|
}
|
|
4304
4304
|
});
|
|
4305
4305
|
}); };
|
|
@@ -4309,15 +4309,15 @@ export var deserializeAws_restJson1PutEmailIdentityMailFromAttributesCommand = f
|
|
|
4309
4309
|
switch (_a.label) {
|
|
4310
4310
|
case 0:
|
|
4311
4311
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4312
|
-
return [2
|
|
4312
|
+
return [2, deserializeAws_restJson1PutEmailIdentityMailFromAttributesCommandError(output, context)];
|
|
4313
4313
|
}
|
|
4314
4314
|
contents = {
|
|
4315
4315
|
$metadata: deserializeMetadata(output),
|
|
4316
4316
|
};
|
|
4317
|
-
return [4
|
|
4317
|
+
return [4, collectBody(output.body, context)];
|
|
4318
4318
|
case 1:
|
|
4319
4319
|
_a.sent();
|
|
4320
|
-
return [2
|
|
4320
|
+
return [2, Promise.resolve(contents)];
|
|
4321
4321
|
}
|
|
4322
4322
|
});
|
|
4323
4323
|
}); };
|
|
@@ -4329,39 +4329,39 @@ var deserializeAws_restJson1PutEmailIdentityMailFromAttributesCommandError = fun
|
|
|
4329
4329
|
case 0:
|
|
4330
4330
|
_a = [__assign({}, output)];
|
|
4331
4331
|
_f = {};
|
|
4332
|
-
return [4
|
|
4332
|
+
return [4, parseBody(output.body, context)];
|
|
4333
4333
|
case 1:
|
|
4334
4334
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
4335
4335
|
errorCode = "UnknownError";
|
|
4336
4336
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4337
4337
|
_b = errorCode;
|
|
4338
4338
|
switch (_b) {
|
|
4339
|
-
case "BadRequestException": return [3
|
|
4340
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
4341
|
-
case "NotFoundException": return [3
|
|
4342
|
-
case "com.amazonaws.pinpointemail#NotFoundException": return [3
|
|
4343
|
-
case "TooManyRequestsException": return [3
|
|
4344
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
4345
|
-
}
|
|
4346
|
-
return [3
|
|
4339
|
+
case "BadRequestException": return [3, 2];
|
|
4340
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
4341
|
+
case "NotFoundException": return [3, 4];
|
|
4342
|
+
case "com.amazonaws.pinpointemail#NotFoundException": return [3, 4];
|
|
4343
|
+
case "TooManyRequestsException": return [3, 6];
|
|
4344
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
4345
|
+
}
|
|
4346
|
+
return [3, 8];
|
|
4347
4347
|
case 2:
|
|
4348
4348
|
_c = [{}];
|
|
4349
|
-
return [4
|
|
4349
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
4350
4350
|
case 3:
|
|
4351
4351
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4352
|
-
return [3
|
|
4352
|
+
return [3, 9];
|
|
4353
4353
|
case 4:
|
|
4354
4354
|
_d = [{}];
|
|
4355
|
-
return [4
|
|
4355
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
4356
4356
|
case 5:
|
|
4357
4357
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4358
|
-
return [3
|
|
4358
|
+
return [3, 9];
|
|
4359
4359
|
case 6:
|
|
4360
4360
|
_e = [{}];
|
|
4361
|
-
return [4
|
|
4361
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
4362
4362
|
case 7:
|
|
4363
4363
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4364
|
-
return [3
|
|
4364
|
+
return [3, 9];
|
|
4365
4365
|
case 8:
|
|
4366
4366
|
parsedBody = parsedOutput.body;
|
|
4367
4367
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -4371,7 +4371,7 @@ var deserializeAws_restJson1PutEmailIdentityMailFromAttributesCommandError = fun
|
|
|
4371
4371
|
message = response.message || response.Message || errorCode;
|
|
4372
4372
|
response.message = message;
|
|
4373
4373
|
delete response.Message;
|
|
4374
|
-
return [2
|
|
4374
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4375
4375
|
}
|
|
4376
4376
|
});
|
|
4377
4377
|
}); };
|
|
@@ -4381,7 +4381,7 @@ export var deserializeAws_restJson1SendEmailCommand = function (output, context)
|
|
|
4381
4381
|
switch (_c.label) {
|
|
4382
4382
|
case 0:
|
|
4383
4383
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4384
|
-
return [2
|
|
4384
|
+
return [2, deserializeAws_restJson1SendEmailCommandError(output, context)];
|
|
4385
4385
|
}
|
|
4386
4386
|
contents = {
|
|
4387
4387
|
$metadata: deserializeMetadata(output),
|
|
@@ -4389,13 +4389,13 @@ export var deserializeAws_restJson1SendEmailCommand = function (output, context)
|
|
|
4389
4389
|
};
|
|
4390
4390
|
_a = __expectNonNull;
|
|
4391
4391
|
_b = __expectObject;
|
|
4392
|
-
return [4
|
|
4392
|
+
return [4, parseBody(output.body, context)];
|
|
4393
4393
|
case 1:
|
|
4394
4394
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4395
4395
|
if (data.MessageId !== undefined && data.MessageId !== null) {
|
|
4396
4396
|
contents.MessageId = __expectString(data.MessageId);
|
|
4397
4397
|
}
|
|
4398
|
-
return [2
|
|
4398
|
+
return [2, Promise.resolve(contents)];
|
|
4399
4399
|
}
|
|
4400
4400
|
});
|
|
4401
4401
|
}); };
|
|
@@ -4407,79 +4407,79 @@ var deserializeAws_restJson1SendEmailCommandError = function (output, context) {
|
|
|
4407
4407
|
case 0:
|
|
4408
4408
|
_a = [__assign({}, output)];
|
|
4409
4409
|
_l = {};
|
|
4410
|
-
return [4
|
|
4410
|
+
return [4, parseBody(output.body, context)];
|
|
4411
4411
|
case 1:
|
|
4412
4412
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
4413
4413
|
errorCode = "UnknownError";
|
|
4414
4414
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4415
4415
|
_b = errorCode;
|
|
4416
4416
|
switch (_b) {
|
|
4417
|
-
case "AccountSuspendedException": return [3
|
|
4418
|
-
case "com.amazonaws.pinpointemail#AccountSuspendedException": return [3
|
|
4419
|
-
case "BadRequestException": return [3
|
|
4420
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
4421
|
-
case "LimitExceededException": return [3
|
|
4422
|
-
case "com.amazonaws.pinpointemail#LimitExceededException": return [3
|
|
4423
|
-
case "MailFromDomainNotVerifiedException": return [3
|
|
4424
|
-
case "com.amazonaws.pinpointemail#MailFromDomainNotVerifiedException": return [3
|
|
4425
|
-
case "MessageRejected": return [3
|
|
4426
|
-
case "com.amazonaws.pinpointemail#MessageRejected": return [3
|
|
4427
|
-
case "NotFoundException": return [3
|
|
4428
|
-
case "com.amazonaws.pinpointemail#NotFoundException": return [3
|
|
4429
|
-
case "SendingPausedException": return [3
|
|
4430
|
-
case "com.amazonaws.pinpointemail#SendingPausedException": return [3
|
|
4431
|
-
case "TooManyRequestsException": return [3
|
|
4432
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
4433
|
-
}
|
|
4434
|
-
return [3
|
|
4417
|
+
case "AccountSuspendedException": return [3, 2];
|
|
4418
|
+
case "com.amazonaws.pinpointemail#AccountSuspendedException": return [3, 2];
|
|
4419
|
+
case "BadRequestException": return [3, 4];
|
|
4420
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 4];
|
|
4421
|
+
case "LimitExceededException": return [3, 6];
|
|
4422
|
+
case "com.amazonaws.pinpointemail#LimitExceededException": return [3, 6];
|
|
4423
|
+
case "MailFromDomainNotVerifiedException": return [3, 8];
|
|
4424
|
+
case "com.amazonaws.pinpointemail#MailFromDomainNotVerifiedException": return [3, 8];
|
|
4425
|
+
case "MessageRejected": return [3, 10];
|
|
4426
|
+
case "com.amazonaws.pinpointemail#MessageRejected": return [3, 10];
|
|
4427
|
+
case "NotFoundException": return [3, 12];
|
|
4428
|
+
case "com.amazonaws.pinpointemail#NotFoundException": return [3, 12];
|
|
4429
|
+
case "SendingPausedException": return [3, 14];
|
|
4430
|
+
case "com.amazonaws.pinpointemail#SendingPausedException": return [3, 14];
|
|
4431
|
+
case "TooManyRequestsException": return [3, 16];
|
|
4432
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 16];
|
|
4433
|
+
}
|
|
4434
|
+
return [3, 18];
|
|
4435
4435
|
case 2:
|
|
4436
4436
|
_c = [{}];
|
|
4437
|
-
return [4
|
|
4437
|
+
return [4, deserializeAws_restJson1AccountSuspendedExceptionResponse(parsedOutput, context)];
|
|
4438
4438
|
case 3:
|
|
4439
4439
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4440
|
-
return [3
|
|
4440
|
+
return [3, 19];
|
|
4441
4441
|
case 4:
|
|
4442
4442
|
_d = [{}];
|
|
4443
|
-
return [4
|
|
4443
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
4444
4444
|
case 5:
|
|
4445
4445
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4446
|
-
return [3
|
|
4446
|
+
return [3, 19];
|
|
4447
4447
|
case 6:
|
|
4448
4448
|
_e = [{}];
|
|
4449
|
-
return [4
|
|
4449
|
+
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
4450
4450
|
case 7:
|
|
4451
4451
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4452
|
-
return [3
|
|
4452
|
+
return [3, 19];
|
|
4453
4453
|
case 8:
|
|
4454
4454
|
_f = [{}];
|
|
4455
|
-
return [4
|
|
4455
|
+
return [4, deserializeAws_restJson1MailFromDomainNotVerifiedExceptionResponse(parsedOutput, context)];
|
|
4456
4456
|
case 9:
|
|
4457
4457
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4458
|
-
return [3
|
|
4458
|
+
return [3, 19];
|
|
4459
4459
|
case 10:
|
|
4460
4460
|
_g = [{}];
|
|
4461
|
-
return [4
|
|
4461
|
+
return [4, deserializeAws_restJson1MessageRejectedResponse(parsedOutput, context)];
|
|
4462
4462
|
case 11:
|
|
4463
4463
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4464
|
-
return [3
|
|
4464
|
+
return [3, 19];
|
|
4465
4465
|
case 12:
|
|
4466
4466
|
_h = [{}];
|
|
4467
|
-
return [4
|
|
4467
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
4468
4468
|
case 13:
|
|
4469
4469
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4470
|
-
return [3
|
|
4470
|
+
return [3, 19];
|
|
4471
4471
|
case 14:
|
|
4472
4472
|
_j = [{}];
|
|
4473
|
-
return [4
|
|
4473
|
+
return [4, deserializeAws_restJson1SendingPausedExceptionResponse(parsedOutput, context)];
|
|
4474
4474
|
case 15:
|
|
4475
4475
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4476
|
-
return [3
|
|
4476
|
+
return [3, 19];
|
|
4477
4477
|
case 16:
|
|
4478
4478
|
_k = [{}];
|
|
4479
|
-
return [4
|
|
4479
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
4480
4480
|
case 17:
|
|
4481
4481
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4482
|
-
return [3
|
|
4482
|
+
return [3, 19];
|
|
4483
4483
|
case 18:
|
|
4484
4484
|
parsedBody = parsedOutput.body;
|
|
4485
4485
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -4489,7 +4489,7 @@ var deserializeAws_restJson1SendEmailCommandError = function (output, context) {
|
|
|
4489
4489
|
message = response.message || response.Message || errorCode;
|
|
4490
4490
|
response.message = message;
|
|
4491
4491
|
delete response.Message;
|
|
4492
|
-
return [2
|
|
4492
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4493
4493
|
}
|
|
4494
4494
|
});
|
|
4495
4495
|
}); };
|
|
@@ -4499,15 +4499,15 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
4499
4499
|
switch (_a.label) {
|
|
4500
4500
|
case 0:
|
|
4501
4501
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4502
|
-
return [2
|
|
4502
|
+
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
4503
4503
|
}
|
|
4504
4504
|
contents = {
|
|
4505
4505
|
$metadata: deserializeMetadata(output),
|
|
4506
4506
|
};
|
|
4507
|
-
return [4
|
|
4507
|
+
return [4, collectBody(output.body, context)];
|
|
4508
4508
|
case 1:
|
|
4509
4509
|
_a.sent();
|
|
4510
|
-
return [2
|
|
4510
|
+
return [2, Promise.resolve(contents)];
|
|
4511
4511
|
}
|
|
4512
4512
|
});
|
|
4513
4513
|
}); };
|
|
@@ -4519,47 +4519,47 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
4519
4519
|
case 0:
|
|
4520
4520
|
_a = [__assign({}, output)];
|
|
4521
4521
|
_g = {};
|
|
4522
|
-
return [4
|
|
4522
|
+
return [4, parseBody(output.body, context)];
|
|
4523
4523
|
case 1:
|
|
4524
4524
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
4525
4525
|
errorCode = "UnknownError";
|
|
4526
4526
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4527
4527
|
_b = errorCode;
|
|
4528
4528
|
switch (_b) {
|
|
4529
|
-
case "BadRequestException": return [3
|
|
4530
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
4531
|
-
case "ConcurrentModificationException": return [3
|
|
4532
|
-
case "com.amazonaws.pinpointemail#ConcurrentModificationException": return [3
|
|
4533
|
-
case "NotFoundException": return [3
|
|
4534
|
-
case "com.amazonaws.pinpointemail#NotFoundException": return [3
|
|
4535
|
-
case "TooManyRequestsException": return [3
|
|
4536
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
4537
|
-
}
|
|
4538
|
-
return [3
|
|
4529
|
+
case "BadRequestException": return [3, 2];
|
|
4530
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
4531
|
+
case "ConcurrentModificationException": return [3, 4];
|
|
4532
|
+
case "com.amazonaws.pinpointemail#ConcurrentModificationException": return [3, 4];
|
|
4533
|
+
case "NotFoundException": return [3, 6];
|
|
4534
|
+
case "com.amazonaws.pinpointemail#NotFoundException": return [3, 6];
|
|
4535
|
+
case "TooManyRequestsException": return [3, 8];
|
|
4536
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 8];
|
|
4537
|
+
}
|
|
4538
|
+
return [3, 10];
|
|
4539
4539
|
case 2:
|
|
4540
4540
|
_c = [{}];
|
|
4541
|
-
return [4
|
|
4541
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
4542
4542
|
case 3:
|
|
4543
4543
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4544
|
-
return [3
|
|
4544
|
+
return [3, 11];
|
|
4545
4545
|
case 4:
|
|
4546
4546
|
_d = [{}];
|
|
4547
|
-
return [4
|
|
4547
|
+
return [4, deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
4548
4548
|
case 5:
|
|
4549
4549
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4550
|
-
return [3
|
|
4550
|
+
return [3, 11];
|
|
4551
4551
|
case 6:
|
|
4552
4552
|
_e = [{}];
|
|
4553
|
-
return [4
|
|
4553
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
4554
4554
|
case 7:
|
|
4555
4555
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4556
|
-
return [3
|
|
4556
|
+
return [3, 11];
|
|
4557
4557
|
case 8:
|
|
4558
4558
|
_f = [{}];
|
|
4559
|
-
return [4
|
|
4559
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
4560
4560
|
case 9:
|
|
4561
4561
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4562
|
-
return [3
|
|
4562
|
+
return [3, 11];
|
|
4563
4563
|
case 10:
|
|
4564
4564
|
parsedBody = parsedOutput.body;
|
|
4565
4565
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -4569,7 +4569,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
4569
4569
|
message = response.message || response.Message || errorCode;
|
|
4570
4570
|
response.message = message;
|
|
4571
4571
|
delete response.Message;
|
|
4572
|
-
return [2
|
|
4572
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4573
4573
|
}
|
|
4574
4574
|
});
|
|
4575
4575
|
}); };
|
|
@@ -4579,15 +4579,15 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
4579
4579
|
switch (_a.label) {
|
|
4580
4580
|
case 0:
|
|
4581
4581
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4582
|
-
return [2
|
|
4582
|
+
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
4583
4583
|
}
|
|
4584
4584
|
contents = {
|
|
4585
4585
|
$metadata: deserializeMetadata(output),
|
|
4586
4586
|
};
|
|
4587
|
-
return [4
|
|
4587
|
+
return [4, collectBody(output.body, context)];
|
|
4588
4588
|
case 1:
|
|
4589
4589
|
_a.sent();
|
|
4590
|
-
return [2
|
|
4590
|
+
return [2, Promise.resolve(contents)];
|
|
4591
4591
|
}
|
|
4592
4592
|
});
|
|
4593
4593
|
}); };
|
|
@@ -4599,47 +4599,47 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
4599
4599
|
case 0:
|
|
4600
4600
|
_a = [__assign({}, output)];
|
|
4601
4601
|
_g = {};
|
|
4602
|
-
return [4
|
|
4602
|
+
return [4, parseBody(output.body, context)];
|
|
4603
4603
|
case 1:
|
|
4604
4604
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
4605
4605
|
errorCode = "UnknownError";
|
|
4606
4606
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4607
4607
|
_b = errorCode;
|
|
4608
4608
|
switch (_b) {
|
|
4609
|
-
case "BadRequestException": return [3
|
|
4610
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
4611
|
-
case "ConcurrentModificationException": return [3
|
|
4612
|
-
case "com.amazonaws.pinpointemail#ConcurrentModificationException": return [3
|
|
4613
|
-
case "NotFoundException": return [3
|
|
4614
|
-
case "com.amazonaws.pinpointemail#NotFoundException": return [3
|
|
4615
|
-
case "TooManyRequestsException": return [3
|
|
4616
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
4617
|
-
}
|
|
4618
|
-
return [3
|
|
4609
|
+
case "BadRequestException": return [3, 2];
|
|
4610
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
4611
|
+
case "ConcurrentModificationException": return [3, 4];
|
|
4612
|
+
case "com.amazonaws.pinpointemail#ConcurrentModificationException": return [3, 4];
|
|
4613
|
+
case "NotFoundException": return [3, 6];
|
|
4614
|
+
case "com.amazonaws.pinpointemail#NotFoundException": return [3, 6];
|
|
4615
|
+
case "TooManyRequestsException": return [3, 8];
|
|
4616
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 8];
|
|
4617
|
+
}
|
|
4618
|
+
return [3, 10];
|
|
4619
4619
|
case 2:
|
|
4620
4620
|
_c = [{}];
|
|
4621
|
-
return [4
|
|
4621
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
4622
4622
|
case 3:
|
|
4623
4623
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4624
|
-
return [3
|
|
4624
|
+
return [3, 11];
|
|
4625
4625
|
case 4:
|
|
4626
4626
|
_d = [{}];
|
|
4627
|
-
return [4
|
|
4627
|
+
return [4, deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
4628
4628
|
case 5:
|
|
4629
4629
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4630
|
-
return [3
|
|
4630
|
+
return [3, 11];
|
|
4631
4631
|
case 6:
|
|
4632
4632
|
_e = [{}];
|
|
4633
|
-
return [4
|
|
4633
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
4634
4634
|
case 7:
|
|
4635
4635
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4636
|
-
return [3
|
|
4636
|
+
return [3, 11];
|
|
4637
4637
|
case 8:
|
|
4638
4638
|
_f = [{}];
|
|
4639
|
-
return [4
|
|
4639
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
4640
4640
|
case 9:
|
|
4641
4641
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4642
|
-
return [3
|
|
4642
|
+
return [3, 11];
|
|
4643
4643
|
case 10:
|
|
4644
4644
|
parsedBody = parsedOutput.body;
|
|
4645
4645
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -4649,7 +4649,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
4649
4649
|
message = response.message || response.Message || errorCode;
|
|
4650
4650
|
response.message = message;
|
|
4651
4651
|
delete response.Message;
|
|
4652
|
-
return [2
|
|
4652
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4653
4653
|
}
|
|
4654
4654
|
});
|
|
4655
4655
|
}); };
|
|
@@ -4659,15 +4659,15 @@ export var deserializeAws_restJson1UpdateConfigurationSetEventDestinationCommand
|
|
|
4659
4659
|
switch (_a.label) {
|
|
4660
4660
|
case 0:
|
|
4661
4661
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4662
|
-
return [2
|
|
4662
|
+
return [2, deserializeAws_restJson1UpdateConfigurationSetEventDestinationCommandError(output, context)];
|
|
4663
4663
|
}
|
|
4664
4664
|
contents = {
|
|
4665
4665
|
$metadata: deserializeMetadata(output),
|
|
4666
4666
|
};
|
|
4667
|
-
return [4
|
|
4667
|
+
return [4, collectBody(output.body, context)];
|
|
4668
4668
|
case 1:
|
|
4669
4669
|
_a.sent();
|
|
4670
|
-
return [2
|
|
4670
|
+
return [2, Promise.resolve(contents)];
|
|
4671
4671
|
}
|
|
4672
4672
|
});
|
|
4673
4673
|
}); };
|
|
@@ -4679,39 +4679,39 @@ var deserializeAws_restJson1UpdateConfigurationSetEventDestinationCommandError =
|
|
|
4679
4679
|
case 0:
|
|
4680
4680
|
_a = [__assign({}, output)];
|
|
4681
4681
|
_f = {};
|
|
4682
|
-
return [4
|
|
4682
|
+
return [4, parseBody(output.body, context)];
|
|
4683
4683
|
case 1:
|
|
4684
4684
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
4685
4685
|
errorCode = "UnknownError";
|
|
4686
4686
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4687
4687
|
_b = errorCode;
|
|
4688
4688
|
switch (_b) {
|
|
4689
|
-
case "BadRequestException": return [3
|
|
4690
|
-
case "com.amazonaws.pinpointemail#BadRequestException": return [3
|
|
4691
|
-
case "NotFoundException": return [3
|
|
4692
|
-
case "com.amazonaws.pinpointemail#NotFoundException": return [3
|
|
4693
|
-
case "TooManyRequestsException": return [3
|
|
4694
|
-
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3
|
|
4695
|
-
}
|
|
4696
|
-
return [3
|
|
4689
|
+
case "BadRequestException": return [3, 2];
|
|
4690
|
+
case "com.amazonaws.pinpointemail#BadRequestException": return [3, 2];
|
|
4691
|
+
case "NotFoundException": return [3, 4];
|
|
4692
|
+
case "com.amazonaws.pinpointemail#NotFoundException": return [3, 4];
|
|
4693
|
+
case "TooManyRequestsException": return [3, 6];
|
|
4694
|
+
case "com.amazonaws.pinpointemail#TooManyRequestsException": return [3, 6];
|
|
4695
|
+
}
|
|
4696
|
+
return [3, 8];
|
|
4697
4697
|
case 2:
|
|
4698
4698
|
_c = [{}];
|
|
4699
|
-
return [4
|
|
4699
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
4700
4700
|
case 3:
|
|
4701
4701
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4702
|
-
return [3
|
|
4702
|
+
return [3, 9];
|
|
4703
4703
|
case 4:
|
|
4704
4704
|
_d = [{}];
|
|
4705
|
-
return [4
|
|
4705
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
4706
4706
|
case 5:
|
|
4707
4707
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4708
|
-
return [3
|
|
4708
|
+
return [3, 9];
|
|
4709
4709
|
case 6:
|
|
4710
4710
|
_e = [{}];
|
|
4711
|
-
return [4
|
|
4711
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
4712
4712
|
case 7:
|
|
4713
4713
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4714
|
-
return [3
|
|
4714
|
+
return [3, 9];
|
|
4715
4715
|
case 8:
|
|
4716
4716
|
parsedBody = parsedOutput.body;
|
|
4717
4717
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -4721,7 +4721,7 @@ var deserializeAws_restJson1UpdateConfigurationSetEventDestinationCommandError =
|
|
|
4721
4721
|
message = response.message || response.Message || errorCode;
|
|
4722
4722
|
response.message = message;
|
|
4723
4723
|
delete response.Message;
|
|
4724
|
-
return [2
|
|
4724
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4725
4725
|
}
|
|
4726
4726
|
});
|
|
4727
4727
|
}); };
|
|
@@ -4738,7 +4738,7 @@ var deserializeAws_restJson1AccountSuspendedExceptionResponse = function (parsed
|
|
|
4738
4738
|
if (data.message !== undefined && data.message !== null) {
|
|
4739
4739
|
contents.message = __expectString(data.message);
|
|
4740
4740
|
}
|
|
4741
|
-
return [2
|
|
4741
|
+
return [2, contents];
|
|
4742
4742
|
});
|
|
4743
4743
|
}); };
|
|
4744
4744
|
var deserializeAws_restJson1AlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -4754,7 +4754,7 @@ var deserializeAws_restJson1AlreadyExistsExceptionResponse = function (parsedOut
|
|
|
4754
4754
|
if (data.message !== undefined && data.message !== null) {
|
|
4755
4755
|
contents.message = __expectString(data.message);
|
|
4756
4756
|
}
|
|
4757
|
-
return [2
|
|
4757
|
+
return [2, contents];
|
|
4758
4758
|
});
|
|
4759
4759
|
}); };
|
|
4760
4760
|
var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -4770,7 +4770,7 @@ var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput
|
|
|
4770
4770
|
if (data.message !== undefined && data.message !== null) {
|
|
4771
4771
|
contents.message = __expectString(data.message);
|
|
4772
4772
|
}
|
|
4773
|
-
return [2
|
|
4773
|
+
return [2, contents];
|
|
4774
4774
|
});
|
|
4775
4775
|
}); };
|
|
4776
4776
|
var deserializeAws_restJson1ConcurrentModificationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -4786,7 +4786,7 @@ var deserializeAws_restJson1ConcurrentModificationExceptionResponse = function (
|
|
|
4786
4786
|
if (data.message !== undefined && data.message !== null) {
|
|
4787
4787
|
contents.message = __expectString(data.message);
|
|
4788
4788
|
}
|
|
4789
|
-
return [2
|
|
4789
|
+
return [2, contents];
|
|
4790
4790
|
});
|
|
4791
4791
|
}); };
|
|
4792
4792
|
var deserializeAws_restJson1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -4802,7 +4802,7 @@ var deserializeAws_restJson1LimitExceededExceptionResponse = function (parsedOut
|
|
|
4802
4802
|
if (data.message !== undefined && data.message !== null) {
|
|
4803
4803
|
contents.message = __expectString(data.message);
|
|
4804
4804
|
}
|
|
4805
|
-
return [2
|
|
4805
|
+
return [2, contents];
|
|
4806
4806
|
});
|
|
4807
4807
|
}); };
|
|
4808
4808
|
var deserializeAws_restJson1MailFromDomainNotVerifiedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -4818,7 +4818,7 @@ var deserializeAws_restJson1MailFromDomainNotVerifiedExceptionResponse = functio
|
|
|
4818
4818
|
if (data.message !== undefined && data.message !== null) {
|
|
4819
4819
|
contents.message = __expectString(data.message);
|
|
4820
4820
|
}
|
|
4821
|
-
return [2
|
|
4821
|
+
return [2, contents];
|
|
4822
4822
|
});
|
|
4823
4823
|
}); };
|
|
4824
4824
|
var deserializeAws_restJson1MessageRejectedResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -4834,7 +4834,7 @@ var deserializeAws_restJson1MessageRejectedResponse = function (parsedOutput, co
|
|
|
4834
4834
|
if (data.message !== undefined && data.message !== null) {
|
|
4835
4835
|
contents.message = __expectString(data.message);
|
|
4836
4836
|
}
|
|
4837
|
-
return [2
|
|
4837
|
+
return [2, contents];
|
|
4838
4838
|
});
|
|
4839
4839
|
}); };
|
|
4840
4840
|
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -4850,7 +4850,7 @@ var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput,
|
|
|
4850
4850
|
if (data.message !== undefined && data.message !== null) {
|
|
4851
4851
|
contents.message = __expectString(data.message);
|
|
4852
4852
|
}
|
|
4853
|
-
return [2
|
|
4853
|
+
return [2, contents];
|
|
4854
4854
|
});
|
|
4855
4855
|
}); };
|
|
4856
4856
|
var deserializeAws_restJson1SendingPausedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -4866,7 +4866,7 @@ var deserializeAws_restJson1SendingPausedExceptionResponse = function (parsedOut
|
|
|
4866
4866
|
if (data.message !== undefined && data.message !== null) {
|
|
4867
4867
|
contents.message = __expectString(data.message);
|
|
4868
4868
|
}
|
|
4869
|
-
return [2
|
|
4869
|
+
return [2, contents];
|
|
4870
4870
|
});
|
|
4871
4871
|
}); };
|
|
4872
4872
|
var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -4882,7 +4882,7 @@ var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedO
|
|
|
4882
4882
|
if (data.message !== undefined && data.message !== null) {
|
|
4883
4883
|
contents.message = __expectString(data.message);
|
|
4884
4884
|
}
|
|
4885
|
-
return [2
|
|
4885
|
+
return [2, contents];
|
|
4886
4886
|
});
|
|
4887
4887
|
}); };
|
|
4888
4888
|
var serializeAws_restJson1Body = function (input, context) {
|
|
@@ -5518,7 +5518,6 @@ var deserializeMetadata = function (output) {
|
|
|
5518
5518
|
cfId: output.headers["x-amz-cf-id"],
|
|
5519
5519
|
});
|
|
5520
5520
|
};
|
|
5521
|
-
// Collect low-level response body stream to Uint8Array.
|
|
5522
5521
|
var collectBody = function (streamBody, context) {
|
|
5523
5522
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
5524
5523
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -5526,7 +5525,6 @@ var collectBody = function (streamBody, context) {
|
|
|
5526
5525
|
}
|
|
5527
5526
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
5528
5527
|
};
|
|
5529
|
-
// Encode Uint8Array data into string with utf-8.
|
|
5530
5528
|
var collectBodyString = function (streamBody, context) {
|
|
5531
5529
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
5532
5530
|
};
|
|
@@ -5545,9 +5543,6 @@ var parseBody = function (streamBody, context) {
|
|
|
5545
5543
|
return {};
|
|
5546
5544
|
});
|
|
5547
5545
|
};
|
|
5548
|
-
/**
|
|
5549
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
5550
|
-
*/
|
|
5551
5546
|
var loadRestJsonErrorCode = function (output, data) {
|
|
5552
5547
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
5553
5548
|
var sanitizeErrorCode = function (rawValue) {
|