@aws-sdk/client-sesv2 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +154 -2507
- package/dist-es/protocols/Aws_restJson1.js +177 -2530
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -2127,7 +2127,7 @@ var se_UpdateEmailTemplateCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
2127
2127
|
}, "se_UpdateEmailTemplateCommand");
|
|
2128
2128
|
var de_BatchGetMetricDataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2129
2129
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2130
|
-
return
|
|
2130
|
+
return de_CommandError(output, context);
|
|
2131
2131
|
}
|
|
2132
2132
|
const contents = (0, import_smithy_client.map)({
|
|
2133
2133
|
$metadata: deserializeMetadata(output)
|
|
@@ -2140,37 +2140,9 @@ var de_BatchGetMetricDataCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2140
2140
|
Object.assign(contents, doc);
|
|
2141
2141
|
return contents;
|
|
2142
2142
|
}, "de_BatchGetMetricDataCommand");
|
|
2143
|
-
var de_BatchGetMetricDataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2144
|
-
const parsedOutput = {
|
|
2145
|
-
...output,
|
|
2146
|
-
body: await parseErrorBody(output.body, context)
|
|
2147
|
-
};
|
|
2148
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2149
|
-
switch (errorCode) {
|
|
2150
|
-
case "BadRequestException":
|
|
2151
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
2152
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2153
|
-
case "InternalServiceErrorException":
|
|
2154
|
-
case "com.amazonaws.sesv2#InternalServiceErrorException":
|
|
2155
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2156
|
-
case "NotFoundException":
|
|
2157
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
2158
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2159
|
-
case "TooManyRequestsException":
|
|
2160
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
2161
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2162
|
-
default:
|
|
2163
|
-
const parsedBody = parsedOutput.body;
|
|
2164
|
-
return throwDefaultError({
|
|
2165
|
-
output,
|
|
2166
|
-
parsedBody,
|
|
2167
|
-
errorCode
|
|
2168
|
-
});
|
|
2169
|
-
}
|
|
2170
|
-
}, "de_BatchGetMetricDataCommandError");
|
|
2171
2143
|
var de_CancelExportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2172
2144
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2173
|
-
return
|
|
2145
|
+
return de_CommandError(output, context);
|
|
2174
2146
|
}
|
|
2175
2147
|
const contents = (0, import_smithy_client.map)({
|
|
2176
2148
|
$metadata: deserializeMetadata(output)
|
|
@@ -2178,34 +2150,9 @@ var de_CancelExportJobCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2178
2150
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2179
2151
|
return contents;
|
|
2180
2152
|
}, "de_CancelExportJobCommand");
|
|
2181
|
-
var de_CancelExportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2182
|
-
const parsedOutput = {
|
|
2183
|
-
...output,
|
|
2184
|
-
body: await parseErrorBody(output.body, context)
|
|
2185
|
-
};
|
|
2186
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2187
|
-
switch (errorCode) {
|
|
2188
|
-
case "BadRequestException":
|
|
2189
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
2190
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2191
|
-
case "NotFoundException":
|
|
2192
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
2193
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2194
|
-
case "TooManyRequestsException":
|
|
2195
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
2196
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2197
|
-
default:
|
|
2198
|
-
const parsedBody = parsedOutput.body;
|
|
2199
|
-
return throwDefaultError({
|
|
2200
|
-
output,
|
|
2201
|
-
parsedBody,
|
|
2202
|
-
errorCode
|
|
2203
|
-
});
|
|
2204
|
-
}
|
|
2205
|
-
}, "de_CancelExportJobCommandError");
|
|
2206
2153
|
var de_CreateConfigurationSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2207
2154
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2208
|
-
return
|
|
2155
|
+
return de_CommandError(output, context);
|
|
2209
2156
|
}
|
|
2210
2157
|
const contents = (0, import_smithy_client.map)({
|
|
2211
2158
|
$metadata: deserializeMetadata(output)
|
|
@@ -2213,43 +2160,9 @@ var de_CreateConfigurationSetCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2213
2160
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2214
2161
|
return contents;
|
|
2215
2162
|
}, "de_CreateConfigurationSetCommand");
|
|
2216
|
-
var de_CreateConfigurationSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2217
|
-
const parsedOutput = {
|
|
2218
|
-
...output,
|
|
2219
|
-
body: await parseErrorBody(output.body, context)
|
|
2220
|
-
};
|
|
2221
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2222
|
-
switch (errorCode) {
|
|
2223
|
-
case "AlreadyExistsException":
|
|
2224
|
-
case "com.amazonaws.sesv2#AlreadyExistsException":
|
|
2225
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
2226
|
-
case "BadRequestException":
|
|
2227
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
2228
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2229
|
-
case "ConcurrentModificationException":
|
|
2230
|
-
case "com.amazonaws.sesv2#ConcurrentModificationException":
|
|
2231
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2232
|
-
case "LimitExceededException":
|
|
2233
|
-
case "com.amazonaws.sesv2#LimitExceededException":
|
|
2234
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2235
|
-
case "NotFoundException":
|
|
2236
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
2237
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2238
|
-
case "TooManyRequestsException":
|
|
2239
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
2240
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2241
|
-
default:
|
|
2242
|
-
const parsedBody = parsedOutput.body;
|
|
2243
|
-
return throwDefaultError({
|
|
2244
|
-
output,
|
|
2245
|
-
parsedBody,
|
|
2246
|
-
errorCode
|
|
2247
|
-
});
|
|
2248
|
-
}
|
|
2249
|
-
}, "de_CreateConfigurationSetCommandError");
|
|
2250
2163
|
var de_CreateConfigurationSetEventDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2251
2164
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2252
|
-
return
|
|
2165
|
+
return de_CommandError(output, context);
|
|
2253
2166
|
}
|
|
2254
2167
|
const contents = (0, import_smithy_client.map)({
|
|
2255
2168
|
$metadata: deserializeMetadata(output)
|
|
@@ -2257,40 +2170,9 @@ var de_CreateConfigurationSetEventDestinationCommand = /* @__PURE__ */ __name(as
|
|
|
2257
2170
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2258
2171
|
return contents;
|
|
2259
2172
|
}, "de_CreateConfigurationSetEventDestinationCommand");
|
|
2260
|
-
var de_CreateConfigurationSetEventDestinationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2261
|
-
const parsedOutput = {
|
|
2262
|
-
...output,
|
|
2263
|
-
body: await parseErrorBody(output.body, context)
|
|
2264
|
-
};
|
|
2265
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2266
|
-
switch (errorCode) {
|
|
2267
|
-
case "AlreadyExistsException":
|
|
2268
|
-
case "com.amazonaws.sesv2#AlreadyExistsException":
|
|
2269
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
2270
|
-
case "BadRequestException":
|
|
2271
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
2272
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2273
|
-
case "LimitExceededException":
|
|
2274
|
-
case "com.amazonaws.sesv2#LimitExceededException":
|
|
2275
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2276
|
-
case "NotFoundException":
|
|
2277
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
2278
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2279
|
-
case "TooManyRequestsException":
|
|
2280
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
2281
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2282
|
-
default:
|
|
2283
|
-
const parsedBody = parsedOutput.body;
|
|
2284
|
-
return throwDefaultError({
|
|
2285
|
-
output,
|
|
2286
|
-
parsedBody,
|
|
2287
|
-
errorCode
|
|
2288
|
-
});
|
|
2289
|
-
}
|
|
2290
|
-
}, "de_CreateConfigurationSetEventDestinationCommandError");
|
|
2291
2173
|
var de_CreateContactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2292
2174
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2293
|
-
return
|
|
2175
|
+
return de_CommandError(output, context);
|
|
2294
2176
|
}
|
|
2295
2177
|
const contents = (0, import_smithy_client.map)({
|
|
2296
2178
|
$metadata: deserializeMetadata(output)
|
|
@@ -2298,37 +2180,9 @@ var de_CreateContactCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2298
2180
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2299
2181
|
return contents;
|
|
2300
2182
|
}, "de_CreateContactCommand");
|
|
2301
|
-
var de_CreateContactCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2302
|
-
const parsedOutput = {
|
|
2303
|
-
...output,
|
|
2304
|
-
body: await parseErrorBody(output.body, context)
|
|
2305
|
-
};
|
|
2306
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2307
|
-
switch (errorCode) {
|
|
2308
|
-
case "AlreadyExistsException":
|
|
2309
|
-
case "com.amazonaws.sesv2#AlreadyExistsException":
|
|
2310
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
2311
|
-
case "BadRequestException":
|
|
2312
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
2313
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2314
|
-
case "NotFoundException":
|
|
2315
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
2316
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2317
|
-
case "TooManyRequestsException":
|
|
2318
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
2319
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2320
|
-
default:
|
|
2321
|
-
const parsedBody = parsedOutput.body;
|
|
2322
|
-
return throwDefaultError({
|
|
2323
|
-
output,
|
|
2324
|
-
parsedBody,
|
|
2325
|
-
errorCode
|
|
2326
|
-
});
|
|
2327
|
-
}
|
|
2328
|
-
}, "de_CreateContactCommandError");
|
|
2329
2183
|
var de_CreateContactListCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2330
2184
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2331
|
-
return
|
|
2185
|
+
return de_CommandError(output, context);
|
|
2332
2186
|
}
|
|
2333
2187
|
const contents = (0, import_smithy_client.map)({
|
|
2334
2188
|
$metadata: deserializeMetadata(output)
|
|
@@ -2336,37 +2190,9 @@ var de_CreateContactListCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2336
2190
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2337
2191
|
return contents;
|
|
2338
2192
|
}, "de_CreateContactListCommand");
|
|
2339
|
-
var de_CreateContactListCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2340
|
-
const parsedOutput = {
|
|
2341
|
-
...output,
|
|
2342
|
-
body: await parseErrorBody(output.body, context)
|
|
2343
|
-
};
|
|
2344
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2345
|
-
switch (errorCode) {
|
|
2346
|
-
case "AlreadyExistsException":
|
|
2347
|
-
case "com.amazonaws.sesv2#AlreadyExistsException":
|
|
2348
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
2349
|
-
case "BadRequestException":
|
|
2350
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
2351
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2352
|
-
case "LimitExceededException":
|
|
2353
|
-
case "com.amazonaws.sesv2#LimitExceededException":
|
|
2354
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2355
|
-
case "TooManyRequestsException":
|
|
2356
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
2357
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2358
|
-
default:
|
|
2359
|
-
const parsedBody = parsedOutput.body;
|
|
2360
|
-
return throwDefaultError({
|
|
2361
|
-
output,
|
|
2362
|
-
parsedBody,
|
|
2363
|
-
errorCode
|
|
2364
|
-
});
|
|
2365
|
-
}
|
|
2366
|
-
}, "de_CreateContactListCommandError");
|
|
2367
2193
|
var de_CreateCustomVerificationEmailTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2368
2194
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2369
|
-
return
|
|
2195
|
+
return de_CommandError(output, context);
|
|
2370
2196
|
}
|
|
2371
2197
|
const contents = (0, import_smithy_client.map)({
|
|
2372
2198
|
$metadata: deserializeMetadata(output)
|
|
@@ -2374,40 +2200,9 @@ var de_CreateCustomVerificationEmailTemplateCommand = /* @__PURE__ */ __name(asy
|
|
|
2374
2200
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2375
2201
|
return contents;
|
|
2376
2202
|
}, "de_CreateCustomVerificationEmailTemplateCommand");
|
|
2377
|
-
var de_CreateCustomVerificationEmailTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2378
|
-
const parsedOutput = {
|
|
2379
|
-
...output,
|
|
2380
|
-
body: await parseErrorBody(output.body, context)
|
|
2381
|
-
};
|
|
2382
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2383
|
-
switch (errorCode) {
|
|
2384
|
-
case "AlreadyExistsException":
|
|
2385
|
-
case "com.amazonaws.sesv2#AlreadyExistsException":
|
|
2386
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
2387
|
-
case "BadRequestException":
|
|
2388
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
2389
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2390
|
-
case "LimitExceededException":
|
|
2391
|
-
case "com.amazonaws.sesv2#LimitExceededException":
|
|
2392
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2393
|
-
case "NotFoundException":
|
|
2394
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
2395
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2396
|
-
case "TooManyRequestsException":
|
|
2397
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
2398
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2399
|
-
default:
|
|
2400
|
-
const parsedBody = parsedOutput.body;
|
|
2401
|
-
return throwDefaultError({
|
|
2402
|
-
output,
|
|
2403
|
-
parsedBody,
|
|
2404
|
-
errorCode
|
|
2405
|
-
});
|
|
2406
|
-
}
|
|
2407
|
-
}, "de_CreateCustomVerificationEmailTemplateCommandError");
|
|
2408
2203
|
var de_CreateDedicatedIpPoolCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2409
2204
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2410
|
-
return
|
|
2205
|
+
return de_CommandError(output, context);
|
|
2411
2206
|
}
|
|
2412
2207
|
const contents = (0, import_smithy_client.map)({
|
|
2413
2208
|
$metadata: deserializeMetadata(output)
|
|
@@ -2415,40 +2210,9 @@ var de_CreateDedicatedIpPoolCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2415
2210
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2416
2211
|
return contents;
|
|
2417
2212
|
}, "de_CreateDedicatedIpPoolCommand");
|
|
2418
|
-
var de_CreateDedicatedIpPoolCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2419
|
-
const parsedOutput = {
|
|
2420
|
-
...output,
|
|
2421
|
-
body: await parseErrorBody(output.body, context)
|
|
2422
|
-
};
|
|
2423
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2424
|
-
switch (errorCode) {
|
|
2425
|
-
case "AlreadyExistsException":
|
|
2426
|
-
case "com.amazonaws.sesv2#AlreadyExistsException":
|
|
2427
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
2428
|
-
case "BadRequestException":
|
|
2429
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
2430
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2431
|
-
case "ConcurrentModificationException":
|
|
2432
|
-
case "com.amazonaws.sesv2#ConcurrentModificationException":
|
|
2433
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2434
|
-
case "LimitExceededException":
|
|
2435
|
-
case "com.amazonaws.sesv2#LimitExceededException":
|
|
2436
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2437
|
-
case "TooManyRequestsException":
|
|
2438
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
2439
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2440
|
-
default:
|
|
2441
|
-
const parsedBody = parsedOutput.body;
|
|
2442
|
-
return throwDefaultError({
|
|
2443
|
-
output,
|
|
2444
|
-
parsedBody,
|
|
2445
|
-
errorCode
|
|
2446
|
-
});
|
|
2447
|
-
}
|
|
2448
|
-
}, "de_CreateDedicatedIpPoolCommandError");
|
|
2449
2213
|
var de_CreateDeliverabilityTestReportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2450
2214
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2451
|
-
return
|
|
2215
|
+
return de_CommandError(output, context);
|
|
2452
2216
|
}
|
|
2453
2217
|
const contents = (0, import_smithy_client.map)({
|
|
2454
2218
|
$metadata: deserializeMetadata(output)
|
|
@@ -2461,52 +2225,9 @@ var de_CreateDeliverabilityTestReportCommand = /* @__PURE__ */ __name(async (out
|
|
|
2461
2225
|
Object.assign(contents, doc);
|
|
2462
2226
|
return contents;
|
|
2463
2227
|
}, "de_CreateDeliverabilityTestReportCommand");
|
|
2464
|
-
var de_CreateDeliverabilityTestReportCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2465
|
-
const parsedOutput = {
|
|
2466
|
-
...output,
|
|
2467
|
-
body: await parseErrorBody(output.body, context)
|
|
2468
|
-
};
|
|
2469
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2470
|
-
switch (errorCode) {
|
|
2471
|
-
case "AccountSuspendedException":
|
|
2472
|
-
case "com.amazonaws.sesv2#AccountSuspendedException":
|
|
2473
|
-
throw await de_AccountSuspendedExceptionRes(parsedOutput, context);
|
|
2474
|
-
case "BadRequestException":
|
|
2475
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
2476
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2477
|
-
case "ConcurrentModificationException":
|
|
2478
|
-
case "com.amazonaws.sesv2#ConcurrentModificationException":
|
|
2479
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2480
|
-
case "LimitExceededException":
|
|
2481
|
-
case "com.amazonaws.sesv2#LimitExceededException":
|
|
2482
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2483
|
-
case "MailFromDomainNotVerifiedException":
|
|
2484
|
-
case "com.amazonaws.sesv2#MailFromDomainNotVerifiedException":
|
|
2485
|
-
throw await de_MailFromDomainNotVerifiedExceptionRes(parsedOutput, context);
|
|
2486
|
-
case "MessageRejected":
|
|
2487
|
-
case "com.amazonaws.sesv2#MessageRejected":
|
|
2488
|
-
throw await de_MessageRejectedRes(parsedOutput, context);
|
|
2489
|
-
case "NotFoundException":
|
|
2490
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
2491
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2492
|
-
case "SendingPausedException":
|
|
2493
|
-
case "com.amazonaws.sesv2#SendingPausedException":
|
|
2494
|
-
throw await de_SendingPausedExceptionRes(parsedOutput, context);
|
|
2495
|
-
case "TooManyRequestsException":
|
|
2496
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
2497
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2498
|
-
default:
|
|
2499
|
-
const parsedBody = parsedOutput.body;
|
|
2500
|
-
return throwDefaultError({
|
|
2501
|
-
output,
|
|
2502
|
-
parsedBody,
|
|
2503
|
-
errorCode
|
|
2504
|
-
});
|
|
2505
|
-
}
|
|
2506
|
-
}, "de_CreateDeliverabilityTestReportCommandError");
|
|
2507
2228
|
var de_CreateEmailIdentityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2508
2229
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2509
|
-
return
|
|
2230
|
+
return de_CommandError(output, context);
|
|
2510
2231
|
}
|
|
2511
2232
|
const contents = (0, import_smithy_client.map)({
|
|
2512
2233
|
$metadata: deserializeMetadata(output)
|
|
@@ -2520,43 +2241,9 @@ var de_CreateEmailIdentityCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2520
2241
|
Object.assign(contents, doc);
|
|
2521
2242
|
return contents;
|
|
2522
2243
|
}, "de_CreateEmailIdentityCommand");
|
|
2523
|
-
var de_CreateEmailIdentityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2524
|
-
const parsedOutput = {
|
|
2525
|
-
...output,
|
|
2526
|
-
body: await parseErrorBody(output.body, context)
|
|
2527
|
-
};
|
|
2528
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2529
|
-
switch (errorCode) {
|
|
2530
|
-
case "AlreadyExistsException":
|
|
2531
|
-
case "com.amazonaws.sesv2#AlreadyExistsException":
|
|
2532
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
2533
|
-
case "BadRequestException":
|
|
2534
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
2535
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2536
|
-
case "ConcurrentModificationException":
|
|
2537
|
-
case "com.amazonaws.sesv2#ConcurrentModificationException":
|
|
2538
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2539
|
-
case "LimitExceededException":
|
|
2540
|
-
case "com.amazonaws.sesv2#LimitExceededException":
|
|
2541
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2542
|
-
case "NotFoundException":
|
|
2543
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
2544
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2545
|
-
case "TooManyRequestsException":
|
|
2546
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
2547
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2548
|
-
default:
|
|
2549
|
-
const parsedBody = parsedOutput.body;
|
|
2550
|
-
return throwDefaultError({
|
|
2551
|
-
output,
|
|
2552
|
-
parsedBody,
|
|
2553
|
-
errorCode
|
|
2554
|
-
});
|
|
2555
|
-
}
|
|
2556
|
-
}, "de_CreateEmailIdentityCommandError");
|
|
2557
2244
|
var de_CreateEmailIdentityPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2558
2245
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2559
|
-
return
|
|
2246
|
+
return de_CommandError(output, context);
|
|
2560
2247
|
}
|
|
2561
2248
|
const contents = (0, import_smithy_client.map)({
|
|
2562
2249
|
$metadata: deserializeMetadata(output)
|
|
@@ -2564,40 +2251,9 @@ var de_CreateEmailIdentityPolicyCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2564
2251
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2565
2252
|
return contents;
|
|
2566
2253
|
}, "de_CreateEmailIdentityPolicyCommand");
|
|
2567
|
-
var de_CreateEmailIdentityPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2568
|
-
const parsedOutput = {
|
|
2569
|
-
...output,
|
|
2570
|
-
body: await parseErrorBody(output.body, context)
|
|
2571
|
-
};
|
|
2572
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2573
|
-
switch (errorCode) {
|
|
2574
|
-
case "AlreadyExistsException":
|
|
2575
|
-
case "com.amazonaws.sesv2#AlreadyExistsException":
|
|
2576
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
2577
|
-
case "BadRequestException":
|
|
2578
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
2579
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2580
|
-
case "LimitExceededException":
|
|
2581
|
-
case "com.amazonaws.sesv2#LimitExceededException":
|
|
2582
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2583
|
-
case "NotFoundException":
|
|
2584
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
2585
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2586
|
-
case "TooManyRequestsException":
|
|
2587
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
2588
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2589
|
-
default:
|
|
2590
|
-
const parsedBody = parsedOutput.body;
|
|
2591
|
-
return throwDefaultError({
|
|
2592
|
-
output,
|
|
2593
|
-
parsedBody,
|
|
2594
|
-
errorCode
|
|
2595
|
-
});
|
|
2596
|
-
}
|
|
2597
|
-
}, "de_CreateEmailIdentityPolicyCommandError");
|
|
2598
2254
|
var de_CreateEmailTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2599
2255
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2600
|
-
return
|
|
2256
|
+
return de_CommandError(output, context);
|
|
2601
2257
|
}
|
|
2602
2258
|
const contents = (0, import_smithy_client.map)({
|
|
2603
2259
|
$metadata: deserializeMetadata(output)
|
|
@@ -2605,37 +2261,9 @@ var de_CreateEmailTemplateCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2605
2261
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2606
2262
|
return contents;
|
|
2607
2263
|
}, "de_CreateEmailTemplateCommand");
|
|
2608
|
-
var de_CreateEmailTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2609
|
-
const parsedOutput = {
|
|
2610
|
-
...output,
|
|
2611
|
-
body: await parseErrorBody(output.body, context)
|
|
2612
|
-
};
|
|
2613
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2614
|
-
switch (errorCode) {
|
|
2615
|
-
case "AlreadyExistsException":
|
|
2616
|
-
case "com.amazonaws.sesv2#AlreadyExistsException":
|
|
2617
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
2618
|
-
case "BadRequestException":
|
|
2619
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
2620
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2621
|
-
case "LimitExceededException":
|
|
2622
|
-
case "com.amazonaws.sesv2#LimitExceededException":
|
|
2623
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2624
|
-
case "TooManyRequestsException":
|
|
2625
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
2626
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2627
|
-
default:
|
|
2628
|
-
const parsedBody = parsedOutput.body;
|
|
2629
|
-
return throwDefaultError({
|
|
2630
|
-
output,
|
|
2631
|
-
parsedBody,
|
|
2632
|
-
errorCode
|
|
2633
|
-
});
|
|
2634
|
-
}
|
|
2635
|
-
}, "de_CreateEmailTemplateCommandError");
|
|
2636
2264
|
var de_CreateExportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2637
2265
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2638
|
-
return
|
|
2266
|
+
return de_CommandError(output, context);
|
|
2639
2267
|
}
|
|
2640
2268
|
const contents = (0, import_smithy_client.map)({
|
|
2641
2269
|
$metadata: deserializeMetadata(output)
|
|
@@ -2647,37 +2275,9 @@ var de_CreateExportJobCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2647
2275
|
Object.assign(contents, doc);
|
|
2648
2276
|
return contents;
|
|
2649
2277
|
}, "de_CreateExportJobCommand");
|
|
2650
|
-
var de_CreateExportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2651
|
-
const parsedOutput = {
|
|
2652
|
-
...output,
|
|
2653
|
-
body: await parseErrorBody(output.body, context)
|
|
2654
|
-
};
|
|
2655
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2656
|
-
switch (errorCode) {
|
|
2657
|
-
case "BadRequestException":
|
|
2658
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
2659
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2660
|
-
case "LimitExceededException":
|
|
2661
|
-
case "com.amazonaws.sesv2#LimitExceededException":
|
|
2662
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2663
|
-
case "NotFoundException":
|
|
2664
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
2665
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2666
|
-
case "TooManyRequestsException":
|
|
2667
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
2668
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2669
|
-
default:
|
|
2670
|
-
const parsedBody = parsedOutput.body;
|
|
2671
|
-
return throwDefaultError({
|
|
2672
|
-
output,
|
|
2673
|
-
parsedBody,
|
|
2674
|
-
errorCode
|
|
2675
|
-
});
|
|
2676
|
-
}
|
|
2677
|
-
}, "de_CreateExportJobCommandError");
|
|
2678
2278
|
var de_CreateImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2679
2279
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2680
|
-
return
|
|
2280
|
+
return de_CommandError(output, context);
|
|
2681
2281
|
}
|
|
2682
2282
|
const contents = (0, import_smithy_client.map)({
|
|
2683
2283
|
$metadata: deserializeMetadata(output)
|
|
@@ -2689,34 +2289,9 @@ var de_CreateImportJobCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2689
2289
|
Object.assign(contents, doc);
|
|
2690
2290
|
return contents;
|
|
2691
2291
|
}, "de_CreateImportJobCommand");
|
|
2692
|
-
var de_CreateImportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2693
|
-
const parsedOutput = {
|
|
2694
|
-
...output,
|
|
2695
|
-
body: await parseErrorBody(output.body, context)
|
|
2696
|
-
};
|
|
2697
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2698
|
-
switch (errorCode) {
|
|
2699
|
-
case "BadRequestException":
|
|
2700
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
2701
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2702
|
-
case "LimitExceededException":
|
|
2703
|
-
case "com.amazonaws.sesv2#LimitExceededException":
|
|
2704
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2705
|
-
case "TooManyRequestsException":
|
|
2706
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
2707
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2708
|
-
default:
|
|
2709
|
-
const parsedBody = parsedOutput.body;
|
|
2710
|
-
return throwDefaultError({
|
|
2711
|
-
output,
|
|
2712
|
-
parsedBody,
|
|
2713
|
-
errorCode
|
|
2714
|
-
});
|
|
2715
|
-
}
|
|
2716
|
-
}, "de_CreateImportJobCommandError");
|
|
2717
2292
|
var de_DeleteConfigurationSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2718
2293
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2719
|
-
return
|
|
2294
|
+
return de_CommandError(output, context);
|
|
2720
2295
|
}
|
|
2721
2296
|
const contents = (0, import_smithy_client.map)({
|
|
2722
2297
|
$metadata: deserializeMetadata(output)
|
|
@@ -2724,37 +2299,9 @@ var de_DeleteConfigurationSetCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2724
2299
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2725
2300
|
return contents;
|
|
2726
2301
|
}, "de_DeleteConfigurationSetCommand");
|
|
2727
|
-
var de_DeleteConfigurationSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2728
|
-
const parsedOutput = {
|
|
2729
|
-
...output,
|
|
2730
|
-
body: await parseErrorBody(output.body, context)
|
|
2731
|
-
};
|
|
2732
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2733
|
-
switch (errorCode) {
|
|
2734
|
-
case "BadRequestException":
|
|
2735
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
2736
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2737
|
-
case "ConcurrentModificationException":
|
|
2738
|
-
case "com.amazonaws.sesv2#ConcurrentModificationException":
|
|
2739
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2740
|
-
case "NotFoundException":
|
|
2741
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
2742
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2743
|
-
case "TooManyRequestsException":
|
|
2744
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
2745
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2746
|
-
default:
|
|
2747
|
-
const parsedBody = parsedOutput.body;
|
|
2748
|
-
return throwDefaultError({
|
|
2749
|
-
output,
|
|
2750
|
-
parsedBody,
|
|
2751
|
-
errorCode
|
|
2752
|
-
});
|
|
2753
|
-
}
|
|
2754
|
-
}, "de_DeleteConfigurationSetCommandError");
|
|
2755
2302
|
var de_DeleteConfigurationSetEventDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2756
2303
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2757
|
-
return
|
|
2304
|
+
return de_CommandError(output, context);
|
|
2758
2305
|
}
|
|
2759
2306
|
const contents = (0, import_smithy_client.map)({
|
|
2760
2307
|
$metadata: deserializeMetadata(output)
|
|
@@ -2762,34 +2309,9 @@ var de_DeleteConfigurationSetEventDestinationCommand = /* @__PURE__ */ __name(as
|
|
|
2762
2309
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2763
2310
|
return contents;
|
|
2764
2311
|
}, "de_DeleteConfigurationSetEventDestinationCommand");
|
|
2765
|
-
var de_DeleteConfigurationSetEventDestinationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2766
|
-
const parsedOutput = {
|
|
2767
|
-
...output,
|
|
2768
|
-
body: await parseErrorBody(output.body, context)
|
|
2769
|
-
};
|
|
2770
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2771
|
-
switch (errorCode) {
|
|
2772
|
-
case "BadRequestException":
|
|
2773
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
2774
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2775
|
-
case "NotFoundException":
|
|
2776
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
2777
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2778
|
-
case "TooManyRequestsException":
|
|
2779
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
2780
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2781
|
-
default:
|
|
2782
|
-
const parsedBody = parsedOutput.body;
|
|
2783
|
-
return throwDefaultError({
|
|
2784
|
-
output,
|
|
2785
|
-
parsedBody,
|
|
2786
|
-
errorCode
|
|
2787
|
-
});
|
|
2788
|
-
}
|
|
2789
|
-
}, "de_DeleteConfigurationSetEventDestinationCommandError");
|
|
2790
2312
|
var de_DeleteContactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2791
2313
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2792
|
-
return
|
|
2314
|
+
return de_CommandError(output, context);
|
|
2793
2315
|
}
|
|
2794
2316
|
const contents = (0, import_smithy_client.map)({
|
|
2795
2317
|
$metadata: deserializeMetadata(output)
|
|
@@ -2797,34 +2319,9 @@ var de_DeleteContactCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2797
2319
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2798
2320
|
return contents;
|
|
2799
2321
|
}, "de_DeleteContactCommand");
|
|
2800
|
-
var de_DeleteContactCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2801
|
-
const parsedOutput = {
|
|
2802
|
-
...output,
|
|
2803
|
-
body: await parseErrorBody(output.body, context)
|
|
2804
|
-
};
|
|
2805
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2806
|
-
switch (errorCode) {
|
|
2807
|
-
case "BadRequestException":
|
|
2808
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
2809
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2810
|
-
case "NotFoundException":
|
|
2811
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
2812
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2813
|
-
case "TooManyRequestsException":
|
|
2814
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
2815
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2816
|
-
default:
|
|
2817
|
-
const parsedBody = parsedOutput.body;
|
|
2818
|
-
return throwDefaultError({
|
|
2819
|
-
output,
|
|
2820
|
-
parsedBody,
|
|
2821
|
-
errorCode
|
|
2822
|
-
});
|
|
2823
|
-
}
|
|
2824
|
-
}, "de_DeleteContactCommandError");
|
|
2825
2322
|
var de_DeleteContactListCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2826
2323
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2827
|
-
return
|
|
2324
|
+
return de_CommandError(output, context);
|
|
2828
2325
|
}
|
|
2829
2326
|
const contents = (0, import_smithy_client.map)({
|
|
2830
2327
|
$metadata: deserializeMetadata(output)
|
|
@@ -2832,37 +2329,9 @@ var de_DeleteContactListCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2832
2329
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2833
2330
|
return contents;
|
|
2834
2331
|
}, "de_DeleteContactListCommand");
|
|
2835
|
-
var de_DeleteContactListCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2836
|
-
const parsedOutput = {
|
|
2837
|
-
...output,
|
|
2838
|
-
body: await parseErrorBody(output.body, context)
|
|
2839
|
-
};
|
|
2840
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2841
|
-
switch (errorCode) {
|
|
2842
|
-
case "BadRequestException":
|
|
2843
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
2844
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2845
|
-
case "ConcurrentModificationException":
|
|
2846
|
-
case "com.amazonaws.sesv2#ConcurrentModificationException":
|
|
2847
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2848
|
-
case "NotFoundException":
|
|
2849
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
2850
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2851
|
-
case "TooManyRequestsException":
|
|
2852
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
2853
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2854
|
-
default:
|
|
2855
|
-
const parsedBody = parsedOutput.body;
|
|
2856
|
-
return throwDefaultError({
|
|
2857
|
-
output,
|
|
2858
|
-
parsedBody,
|
|
2859
|
-
errorCode
|
|
2860
|
-
});
|
|
2861
|
-
}
|
|
2862
|
-
}, "de_DeleteContactListCommandError");
|
|
2863
2332
|
var de_DeleteCustomVerificationEmailTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2864
2333
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2865
|
-
return
|
|
2334
|
+
return de_CommandError(output, context);
|
|
2866
2335
|
}
|
|
2867
2336
|
const contents = (0, import_smithy_client.map)({
|
|
2868
2337
|
$metadata: deserializeMetadata(output)
|
|
@@ -2870,34 +2339,9 @@ var de_DeleteCustomVerificationEmailTemplateCommand = /* @__PURE__ */ __name(asy
|
|
|
2870
2339
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2871
2340
|
return contents;
|
|
2872
2341
|
}, "de_DeleteCustomVerificationEmailTemplateCommand");
|
|
2873
|
-
var de_DeleteCustomVerificationEmailTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2874
|
-
const parsedOutput = {
|
|
2875
|
-
...output,
|
|
2876
|
-
body: await parseErrorBody(output.body, context)
|
|
2877
|
-
};
|
|
2878
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2879
|
-
switch (errorCode) {
|
|
2880
|
-
case "BadRequestException":
|
|
2881
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
2882
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2883
|
-
case "NotFoundException":
|
|
2884
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
2885
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2886
|
-
case "TooManyRequestsException":
|
|
2887
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
2888
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2889
|
-
default:
|
|
2890
|
-
const parsedBody = parsedOutput.body;
|
|
2891
|
-
return throwDefaultError({
|
|
2892
|
-
output,
|
|
2893
|
-
parsedBody,
|
|
2894
|
-
errorCode
|
|
2895
|
-
});
|
|
2896
|
-
}
|
|
2897
|
-
}, "de_DeleteCustomVerificationEmailTemplateCommandError");
|
|
2898
2342
|
var de_DeleteDedicatedIpPoolCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2899
2343
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2900
|
-
return
|
|
2344
|
+
return de_CommandError(output, context);
|
|
2901
2345
|
}
|
|
2902
2346
|
const contents = (0, import_smithy_client.map)({
|
|
2903
2347
|
$metadata: deserializeMetadata(output)
|
|
@@ -2905,37 +2349,9 @@ var de_DeleteDedicatedIpPoolCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2905
2349
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2906
2350
|
return contents;
|
|
2907
2351
|
}, "de_DeleteDedicatedIpPoolCommand");
|
|
2908
|
-
var de_DeleteDedicatedIpPoolCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2909
|
-
const parsedOutput = {
|
|
2910
|
-
...output,
|
|
2911
|
-
body: await parseErrorBody(output.body, context)
|
|
2912
|
-
};
|
|
2913
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2914
|
-
switch (errorCode) {
|
|
2915
|
-
case "BadRequestException":
|
|
2916
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
2917
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2918
|
-
case "ConcurrentModificationException":
|
|
2919
|
-
case "com.amazonaws.sesv2#ConcurrentModificationException":
|
|
2920
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2921
|
-
case "NotFoundException":
|
|
2922
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
2923
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2924
|
-
case "TooManyRequestsException":
|
|
2925
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
2926
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2927
|
-
default:
|
|
2928
|
-
const parsedBody = parsedOutput.body;
|
|
2929
|
-
return throwDefaultError({
|
|
2930
|
-
output,
|
|
2931
|
-
parsedBody,
|
|
2932
|
-
errorCode
|
|
2933
|
-
});
|
|
2934
|
-
}
|
|
2935
|
-
}, "de_DeleteDedicatedIpPoolCommandError");
|
|
2936
2352
|
var de_DeleteEmailIdentityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2937
2353
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2938
|
-
return
|
|
2354
|
+
return de_CommandError(output, context);
|
|
2939
2355
|
}
|
|
2940
2356
|
const contents = (0, import_smithy_client.map)({
|
|
2941
2357
|
$metadata: deserializeMetadata(output)
|
|
@@ -2943,37 +2359,9 @@ var de_DeleteEmailIdentityCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2943
2359
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2944
2360
|
return contents;
|
|
2945
2361
|
}, "de_DeleteEmailIdentityCommand");
|
|
2946
|
-
var de_DeleteEmailIdentityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2947
|
-
const parsedOutput = {
|
|
2948
|
-
...output,
|
|
2949
|
-
body: await parseErrorBody(output.body, context)
|
|
2950
|
-
};
|
|
2951
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2952
|
-
switch (errorCode) {
|
|
2953
|
-
case "BadRequestException":
|
|
2954
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
2955
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2956
|
-
case "ConcurrentModificationException":
|
|
2957
|
-
case "com.amazonaws.sesv2#ConcurrentModificationException":
|
|
2958
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2959
|
-
case "NotFoundException":
|
|
2960
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
2961
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2962
|
-
case "TooManyRequestsException":
|
|
2963
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
2964
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2965
|
-
default:
|
|
2966
|
-
const parsedBody = parsedOutput.body;
|
|
2967
|
-
return throwDefaultError({
|
|
2968
|
-
output,
|
|
2969
|
-
parsedBody,
|
|
2970
|
-
errorCode
|
|
2971
|
-
});
|
|
2972
|
-
}
|
|
2973
|
-
}, "de_DeleteEmailIdentityCommandError");
|
|
2974
2362
|
var de_DeleteEmailIdentityPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2975
2363
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2976
|
-
return
|
|
2364
|
+
return de_CommandError(output, context);
|
|
2977
2365
|
}
|
|
2978
2366
|
const contents = (0, import_smithy_client.map)({
|
|
2979
2367
|
$metadata: deserializeMetadata(output)
|
|
@@ -2981,34 +2369,9 @@ var de_DeleteEmailIdentityPolicyCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2981
2369
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2982
2370
|
return contents;
|
|
2983
2371
|
}, "de_DeleteEmailIdentityPolicyCommand");
|
|
2984
|
-
var de_DeleteEmailIdentityPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2985
|
-
const parsedOutput = {
|
|
2986
|
-
...output,
|
|
2987
|
-
body: await parseErrorBody(output.body, context)
|
|
2988
|
-
};
|
|
2989
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2990
|
-
switch (errorCode) {
|
|
2991
|
-
case "BadRequestException":
|
|
2992
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
2993
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2994
|
-
case "NotFoundException":
|
|
2995
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
2996
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2997
|
-
case "TooManyRequestsException":
|
|
2998
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
2999
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3000
|
-
default:
|
|
3001
|
-
const parsedBody = parsedOutput.body;
|
|
3002
|
-
return throwDefaultError({
|
|
3003
|
-
output,
|
|
3004
|
-
parsedBody,
|
|
3005
|
-
errorCode
|
|
3006
|
-
});
|
|
3007
|
-
}
|
|
3008
|
-
}, "de_DeleteEmailIdentityPolicyCommandError");
|
|
3009
2372
|
var de_DeleteEmailTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3010
2373
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3011
|
-
return
|
|
2374
|
+
return de_CommandError(output, context);
|
|
3012
2375
|
}
|
|
3013
2376
|
const contents = (0, import_smithy_client.map)({
|
|
3014
2377
|
$metadata: deserializeMetadata(output)
|
|
@@ -3016,34 +2379,9 @@ var de_DeleteEmailTemplateCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3016
2379
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3017
2380
|
return contents;
|
|
3018
2381
|
}, "de_DeleteEmailTemplateCommand");
|
|
3019
|
-
var de_DeleteEmailTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3020
|
-
const parsedOutput = {
|
|
3021
|
-
...output,
|
|
3022
|
-
body: await parseErrorBody(output.body, context)
|
|
3023
|
-
};
|
|
3024
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3025
|
-
switch (errorCode) {
|
|
3026
|
-
case "BadRequestException":
|
|
3027
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
3028
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3029
|
-
case "NotFoundException":
|
|
3030
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
3031
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3032
|
-
case "TooManyRequestsException":
|
|
3033
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
3034
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3035
|
-
default:
|
|
3036
|
-
const parsedBody = parsedOutput.body;
|
|
3037
|
-
return throwDefaultError({
|
|
3038
|
-
output,
|
|
3039
|
-
parsedBody,
|
|
3040
|
-
errorCode
|
|
3041
|
-
});
|
|
3042
|
-
}
|
|
3043
|
-
}, "de_DeleteEmailTemplateCommandError");
|
|
3044
2382
|
var de_DeleteSuppressedDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3045
2383
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3046
|
-
return
|
|
2384
|
+
return de_CommandError(output, context);
|
|
3047
2385
|
}
|
|
3048
2386
|
const contents = (0, import_smithy_client.map)({
|
|
3049
2387
|
$metadata: deserializeMetadata(output)
|
|
@@ -3051,34 +2389,9 @@ var de_DeleteSuppressedDestinationCommand = /* @__PURE__ */ __name(async (output
|
|
|
3051
2389
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3052
2390
|
return contents;
|
|
3053
2391
|
}, "de_DeleteSuppressedDestinationCommand");
|
|
3054
|
-
var de_DeleteSuppressedDestinationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3055
|
-
const parsedOutput = {
|
|
3056
|
-
...output,
|
|
3057
|
-
body: await parseErrorBody(output.body, context)
|
|
3058
|
-
};
|
|
3059
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3060
|
-
switch (errorCode) {
|
|
3061
|
-
case "BadRequestException":
|
|
3062
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
3063
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3064
|
-
case "NotFoundException":
|
|
3065
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
3066
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3067
|
-
case "TooManyRequestsException":
|
|
3068
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
3069
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3070
|
-
default:
|
|
3071
|
-
const parsedBody = parsedOutput.body;
|
|
3072
|
-
return throwDefaultError({
|
|
3073
|
-
output,
|
|
3074
|
-
parsedBody,
|
|
3075
|
-
errorCode
|
|
3076
|
-
});
|
|
3077
|
-
}
|
|
3078
|
-
}, "de_DeleteSuppressedDestinationCommandError");
|
|
3079
2392
|
var de_GetAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3080
2393
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3081
|
-
return
|
|
2394
|
+
return de_CommandError(output, context);
|
|
3082
2395
|
}
|
|
3083
2396
|
const contents = (0, import_smithy_client.map)({
|
|
3084
2397
|
$metadata: deserializeMetadata(output)
|
|
@@ -3097,31 +2410,9 @@ var de_GetAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3097
2410
|
Object.assign(contents, doc);
|
|
3098
2411
|
return contents;
|
|
3099
2412
|
}, "de_GetAccountCommand");
|
|
3100
|
-
var de_GetAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3101
|
-
const parsedOutput = {
|
|
3102
|
-
...output,
|
|
3103
|
-
body: await parseErrorBody(output.body, context)
|
|
3104
|
-
};
|
|
3105
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3106
|
-
switch (errorCode) {
|
|
3107
|
-
case "BadRequestException":
|
|
3108
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
3109
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3110
|
-
case "TooManyRequestsException":
|
|
3111
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
3112
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3113
|
-
default:
|
|
3114
|
-
const parsedBody = parsedOutput.body;
|
|
3115
|
-
return throwDefaultError({
|
|
3116
|
-
output,
|
|
3117
|
-
parsedBody,
|
|
3118
|
-
errorCode
|
|
3119
|
-
});
|
|
3120
|
-
}
|
|
3121
|
-
}, "de_GetAccountCommandError");
|
|
3122
2413
|
var de_GetBlacklistReportsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3123
2414
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3124
|
-
return
|
|
2415
|
+
return de_CommandError(output, context);
|
|
3125
2416
|
}
|
|
3126
2417
|
const contents = (0, import_smithy_client.map)({
|
|
3127
2418
|
$metadata: deserializeMetadata(output)
|
|
@@ -3133,34 +2424,9 @@ var de_GetBlacklistReportsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3133
2424
|
Object.assign(contents, doc);
|
|
3134
2425
|
return contents;
|
|
3135
2426
|
}, "de_GetBlacklistReportsCommand");
|
|
3136
|
-
var de_GetBlacklistReportsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3137
|
-
const parsedOutput = {
|
|
3138
|
-
...output,
|
|
3139
|
-
body: await parseErrorBody(output.body, context)
|
|
3140
|
-
};
|
|
3141
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3142
|
-
switch (errorCode) {
|
|
3143
|
-
case "BadRequestException":
|
|
3144
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
3145
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3146
|
-
case "NotFoundException":
|
|
3147
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
3148
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3149
|
-
case "TooManyRequestsException":
|
|
3150
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
3151
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3152
|
-
default:
|
|
3153
|
-
const parsedBody = parsedOutput.body;
|
|
3154
|
-
return throwDefaultError({
|
|
3155
|
-
output,
|
|
3156
|
-
parsedBody,
|
|
3157
|
-
errorCode
|
|
3158
|
-
});
|
|
3159
|
-
}
|
|
3160
|
-
}, "de_GetBlacklistReportsCommandError");
|
|
3161
2427
|
var de_GetConfigurationSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3162
2428
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3163
|
-
return
|
|
2429
|
+
return de_CommandError(output, context);
|
|
3164
2430
|
}
|
|
3165
2431
|
const contents = (0, import_smithy_client.map)({
|
|
3166
2432
|
$metadata: deserializeMetadata(output)
|
|
@@ -3179,34 +2445,9 @@ var de_GetConfigurationSetCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3179
2445
|
Object.assign(contents, doc);
|
|
3180
2446
|
return contents;
|
|
3181
2447
|
}, "de_GetConfigurationSetCommand");
|
|
3182
|
-
var de_GetConfigurationSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3183
|
-
const parsedOutput = {
|
|
3184
|
-
...output,
|
|
3185
|
-
body: await parseErrorBody(output.body, context)
|
|
3186
|
-
};
|
|
3187
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3188
|
-
switch (errorCode) {
|
|
3189
|
-
case "BadRequestException":
|
|
3190
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
3191
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3192
|
-
case "NotFoundException":
|
|
3193
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
3194
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3195
|
-
case "TooManyRequestsException":
|
|
3196
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
3197
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3198
|
-
default:
|
|
3199
|
-
const parsedBody = parsedOutput.body;
|
|
3200
|
-
return throwDefaultError({
|
|
3201
|
-
output,
|
|
3202
|
-
parsedBody,
|
|
3203
|
-
errorCode
|
|
3204
|
-
});
|
|
3205
|
-
}
|
|
3206
|
-
}, "de_GetConfigurationSetCommandError");
|
|
3207
2448
|
var de_GetConfigurationSetEventDestinationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3208
2449
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3209
|
-
return
|
|
2450
|
+
return de_CommandError(output, context);
|
|
3210
2451
|
}
|
|
3211
2452
|
const contents = (0, import_smithy_client.map)({
|
|
3212
2453
|
$metadata: deserializeMetadata(output)
|
|
@@ -3218,34 +2459,9 @@ var de_GetConfigurationSetEventDestinationsCommand = /* @__PURE__ */ __name(asyn
|
|
|
3218
2459
|
Object.assign(contents, doc);
|
|
3219
2460
|
return contents;
|
|
3220
2461
|
}, "de_GetConfigurationSetEventDestinationsCommand");
|
|
3221
|
-
var de_GetConfigurationSetEventDestinationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3222
|
-
const parsedOutput = {
|
|
3223
|
-
...output,
|
|
3224
|
-
body: await parseErrorBody(output.body, context)
|
|
3225
|
-
};
|
|
3226
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3227
|
-
switch (errorCode) {
|
|
3228
|
-
case "BadRequestException":
|
|
3229
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
3230
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3231
|
-
case "NotFoundException":
|
|
3232
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
3233
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3234
|
-
case "TooManyRequestsException":
|
|
3235
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
3236
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3237
|
-
default:
|
|
3238
|
-
const parsedBody = parsedOutput.body;
|
|
3239
|
-
return throwDefaultError({
|
|
3240
|
-
output,
|
|
3241
|
-
parsedBody,
|
|
3242
|
-
errorCode
|
|
3243
|
-
});
|
|
3244
|
-
}
|
|
3245
|
-
}, "de_GetConfigurationSetEventDestinationsCommandError");
|
|
3246
2462
|
var de_GetContactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3247
2463
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3248
|
-
return
|
|
2464
|
+
return de_CommandError(output, context);
|
|
3249
2465
|
}
|
|
3250
2466
|
const contents = (0, import_smithy_client.map)({
|
|
3251
2467
|
$metadata: deserializeMetadata(output)
|
|
@@ -3264,34 +2480,9 @@ var de_GetContactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3264
2480
|
Object.assign(contents, doc);
|
|
3265
2481
|
return contents;
|
|
3266
2482
|
}, "de_GetContactCommand");
|
|
3267
|
-
var de_GetContactCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3268
|
-
const parsedOutput = {
|
|
3269
|
-
...output,
|
|
3270
|
-
body: await parseErrorBody(output.body, context)
|
|
3271
|
-
};
|
|
3272
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3273
|
-
switch (errorCode) {
|
|
3274
|
-
case "BadRequestException":
|
|
3275
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
3276
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3277
|
-
case "NotFoundException":
|
|
3278
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
3279
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3280
|
-
case "TooManyRequestsException":
|
|
3281
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
3282
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3283
|
-
default:
|
|
3284
|
-
const parsedBody = parsedOutput.body;
|
|
3285
|
-
return throwDefaultError({
|
|
3286
|
-
output,
|
|
3287
|
-
parsedBody,
|
|
3288
|
-
errorCode
|
|
3289
|
-
});
|
|
3290
|
-
}
|
|
3291
|
-
}, "de_GetContactCommandError");
|
|
3292
2483
|
var de_GetContactListCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3293
2484
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3294
|
-
return
|
|
2485
|
+
return de_CommandError(output, context);
|
|
3295
2486
|
}
|
|
3296
2487
|
const contents = (0, import_smithy_client.map)({
|
|
3297
2488
|
$metadata: deserializeMetadata(output)
|
|
@@ -3308,34 +2499,9 @@ var de_GetContactListCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3308
2499
|
Object.assign(contents, doc);
|
|
3309
2500
|
return contents;
|
|
3310
2501
|
}, "de_GetContactListCommand");
|
|
3311
|
-
var de_GetContactListCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3312
|
-
const parsedOutput = {
|
|
3313
|
-
...output,
|
|
3314
|
-
body: await parseErrorBody(output.body, context)
|
|
3315
|
-
};
|
|
3316
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3317
|
-
switch (errorCode) {
|
|
3318
|
-
case "BadRequestException":
|
|
3319
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
3320
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3321
|
-
case "NotFoundException":
|
|
3322
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
3323
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3324
|
-
case "TooManyRequestsException":
|
|
3325
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
3326
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3327
|
-
default:
|
|
3328
|
-
const parsedBody = parsedOutput.body;
|
|
3329
|
-
return throwDefaultError({
|
|
3330
|
-
output,
|
|
3331
|
-
parsedBody,
|
|
3332
|
-
errorCode
|
|
3333
|
-
});
|
|
3334
|
-
}
|
|
3335
|
-
}, "de_GetContactListCommandError");
|
|
3336
2502
|
var de_GetCustomVerificationEmailTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3337
2503
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3338
|
-
return
|
|
2504
|
+
return de_CommandError(output, context);
|
|
3339
2505
|
}
|
|
3340
2506
|
const contents = (0, import_smithy_client.map)({
|
|
3341
2507
|
$metadata: deserializeMetadata(output)
|
|
@@ -3352,34 +2518,9 @@ var de_GetCustomVerificationEmailTemplateCommand = /* @__PURE__ */ __name(async
|
|
|
3352
2518
|
Object.assign(contents, doc);
|
|
3353
2519
|
return contents;
|
|
3354
2520
|
}, "de_GetCustomVerificationEmailTemplateCommand");
|
|
3355
|
-
var de_GetCustomVerificationEmailTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3356
|
-
const parsedOutput = {
|
|
3357
|
-
...output,
|
|
3358
|
-
body: await parseErrorBody(output.body, context)
|
|
3359
|
-
};
|
|
3360
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3361
|
-
switch (errorCode) {
|
|
3362
|
-
case "BadRequestException":
|
|
3363
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
3364
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3365
|
-
case "NotFoundException":
|
|
3366
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
3367
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3368
|
-
case "TooManyRequestsException":
|
|
3369
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
3370
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3371
|
-
default:
|
|
3372
|
-
const parsedBody = parsedOutput.body;
|
|
3373
|
-
return throwDefaultError({
|
|
3374
|
-
output,
|
|
3375
|
-
parsedBody,
|
|
3376
|
-
errorCode
|
|
3377
|
-
});
|
|
3378
|
-
}
|
|
3379
|
-
}, "de_GetCustomVerificationEmailTemplateCommandError");
|
|
3380
2521
|
var de_GetDedicatedIpCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3381
2522
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3382
|
-
return
|
|
2523
|
+
return de_CommandError(output, context);
|
|
3383
2524
|
}
|
|
3384
2525
|
const contents = (0, import_smithy_client.map)({
|
|
3385
2526
|
$metadata: deserializeMetadata(output)
|
|
@@ -3391,34 +2532,9 @@ var de_GetDedicatedIpCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3391
2532
|
Object.assign(contents, doc);
|
|
3392
2533
|
return contents;
|
|
3393
2534
|
}, "de_GetDedicatedIpCommand");
|
|
3394
|
-
var de_GetDedicatedIpCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3395
|
-
const parsedOutput = {
|
|
3396
|
-
...output,
|
|
3397
|
-
body: await parseErrorBody(output.body, context)
|
|
3398
|
-
};
|
|
3399
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3400
|
-
switch (errorCode) {
|
|
3401
|
-
case "BadRequestException":
|
|
3402
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
3403
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3404
|
-
case "NotFoundException":
|
|
3405
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
3406
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3407
|
-
case "TooManyRequestsException":
|
|
3408
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
3409
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3410
|
-
default:
|
|
3411
|
-
const parsedBody = parsedOutput.body;
|
|
3412
|
-
return throwDefaultError({
|
|
3413
|
-
output,
|
|
3414
|
-
parsedBody,
|
|
3415
|
-
errorCode
|
|
3416
|
-
});
|
|
3417
|
-
}
|
|
3418
|
-
}, "de_GetDedicatedIpCommandError");
|
|
3419
2535
|
var de_GetDedicatedIpPoolCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3420
2536
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3421
|
-
return
|
|
2537
|
+
return de_CommandError(output, context);
|
|
3422
2538
|
}
|
|
3423
2539
|
const contents = (0, import_smithy_client.map)({
|
|
3424
2540
|
$metadata: deserializeMetadata(output)
|
|
@@ -3430,34 +2546,9 @@ var de_GetDedicatedIpPoolCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3430
2546
|
Object.assign(contents, doc);
|
|
3431
2547
|
return contents;
|
|
3432
2548
|
}, "de_GetDedicatedIpPoolCommand");
|
|
3433
|
-
var de_GetDedicatedIpPoolCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3434
|
-
const parsedOutput = {
|
|
3435
|
-
...output,
|
|
3436
|
-
body: await parseErrorBody(output.body, context)
|
|
3437
|
-
};
|
|
3438
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3439
|
-
switch (errorCode) {
|
|
3440
|
-
case "BadRequestException":
|
|
3441
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
3442
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3443
|
-
case "NotFoundException":
|
|
3444
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
3445
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3446
|
-
case "TooManyRequestsException":
|
|
3447
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
3448
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3449
|
-
default:
|
|
3450
|
-
const parsedBody = parsedOutput.body;
|
|
3451
|
-
return throwDefaultError({
|
|
3452
|
-
output,
|
|
3453
|
-
parsedBody,
|
|
3454
|
-
errorCode
|
|
3455
|
-
});
|
|
3456
|
-
}
|
|
3457
|
-
}, "de_GetDedicatedIpPoolCommandError");
|
|
3458
2549
|
var de_GetDedicatedIpsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3459
2550
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3460
|
-
return
|
|
2551
|
+
return de_CommandError(output, context);
|
|
3461
2552
|
}
|
|
3462
2553
|
const contents = (0, import_smithy_client.map)({
|
|
3463
2554
|
$metadata: deserializeMetadata(output)
|
|
@@ -3470,34 +2561,9 @@ var de_GetDedicatedIpsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3470
2561
|
Object.assign(contents, doc);
|
|
3471
2562
|
return contents;
|
|
3472
2563
|
}, "de_GetDedicatedIpsCommand");
|
|
3473
|
-
var de_GetDedicatedIpsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3474
|
-
const parsedOutput = {
|
|
3475
|
-
...output,
|
|
3476
|
-
body: await parseErrorBody(output.body, context)
|
|
3477
|
-
};
|
|
3478
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3479
|
-
switch (errorCode) {
|
|
3480
|
-
case "BadRequestException":
|
|
3481
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
3482
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3483
|
-
case "NotFoundException":
|
|
3484
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
3485
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3486
|
-
case "TooManyRequestsException":
|
|
3487
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
3488
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3489
|
-
default:
|
|
3490
|
-
const parsedBody = parsedOutput.body;
|
|
3491
|
-
return throwDefaultError({
|
|
3492
|
-
output,
|
|
3493
|
-
parsedBody,
|
|
3494
|
-
errorCode
|
|
3495
|
-
});
|
|
3496
|
-
}
|
|
3497
|
-
}, "de_GetDedicatedIpsCommandError");
|
|
3498
2564
|
var de_GetDeliverabilityDashboardOptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3499
2565
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3500
|
-
return
|
|
2566
|
+
return de_CommandError(output, context);
|
|
3501
2567
|
}
|
|
3502
2568
|
const contents = (0, import_smithy_client.map)({
|
|
3503
2569
|
$metadata: deserializeMetadata(output)
|
|
@@ -3513,34 +2579,9 @@ var de_GetDeliverabilityDashboardOptionsCommand = /* @__PURE__ */ __name(async (
|
|
|
3513
2579
|
Object.assign(contents, doc);
|
|
3514
2580
|
return contents;
|
|
3515
2581
|
}, "de_GetDeliverabilityDashboardOptionsCommand");
|
|
3516
|
-
var de_GetDeliverabilityDashboardOptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3517
|
-
const parsedOutput = {
|
|
3518
|
-
...output,
|
|
3519
|
-
body: await parseErrorBody(output.body, context)
|
|
3520
|
-
};
|
|
3521
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3522
|
-
switch (errorCode) {
|
|
3523
|
-
case "BadRequestException":
|
|
3524
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
3525
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3526
|
-
case "LimitExceededException":
|
|
3527
|
-
case "com.amazonaws.sesv2#LimitExceededException":
|
|
3528
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3529
|
-
case "TooManyRequestsException":
|
|
3530
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
3531
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3532
|
-
default:
|
|
3533
|
-
const parsedBody = parsedOutput.body;
|
|
3534
|
-
return throwDefaultError({
|
|
3535
|
-
output,
|
|
3536
|
-
parsedBody,
|
|
3537
|
-
errorCode
|
|
3538
|
-
});
|
|
3539
|
-
}
|
|
3540
|
-
}, "de_GetDeliverabilityDashboardOptionsCommandError");
|
|
3541
2582
|
var de_GetDeliverabilityTestReportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3542
2583
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3543
|
-
return
|
|
2584
|
+
return de_CommandError(output, context);
|
|
3544
2585
|
}
|
|
3545
2586
|
const contents = (0, import_smithy_client.map)({
|
|
3546
2587
|
$metadata: deserializeMetadata(output)
|
|
@@ -3556,34 +2597,9 @@ var de_GetDeliverabilityTestReportCommand = /* @__PURE__ */ __name(async (output
|
|
|
3556
2597
|
Object.assign(contents, doc);
|
|
3557
2598
|
return contents;
|
|
3558
2599
|
}, "de_GetDeliverabilityTestReportCommand");
|
|
3559
|
-
var de_GetDeliverabilityTestReportCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3560
|
-
const parsedOutput = {
|
|
3561
|
-
...output,
|
|
3562
|
-
body: await parseErrorBody(output.body, context)
|
|
3563
|
-
};
|
|
3564
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3565
|
-
switch (errorCode) {
|
|
3566
|
-
case "BadRequestException":
|
|
3567
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
3568
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3569
|
-
case "NotFoundException":
|
|
3570
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
3571
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3572
|
-
case "TooManyRequestsException":
|
|
3573
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
3574
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3575
|
-
default:
|
|
3576
|
-
const parsedBody = parsedOutput.body;
|
|
3577
|
-
return throwDefaultError({
|
|
3578
|
-
output,
|
|
3579
|
-
parsedBody,
|
|
3580
|
-
errorCode
|
|
3581
|
-
});
|
|
3582
|
-
}
|
|
3583
|
-
}, "de_GetDeliverabilityTestReportCommandError");
|
|
3584
2600
|
var de_GetDomainDeliverabilityCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3585
2601
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3586
|
-
return
|
|
2602
|
+
return de_CommandError(output, context);
|
|
3587
2603
|
}
|
|
3588
2604
|
const contents = (0, import_smithy_client.map)({
|
|
3589
2605
|
$metadata: deserializeMetadata(output)
|
|
@@ -3595,34 +2611,9 @@ var de_GetDomainDeliverabilityCampaignCommand = /* @__PURE__ */ __name(async (ou
|
|
|
3595
2611
|
Object.assign(contents, doc);
|
|
3596
2612
|
return contents;
|
|
3597
2613
|
}, "de_GetDomainDeliverabilityCampaignCommand");
|
|
3598
|
-
var de_GetDomainDeliverabilityCampaignCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3599
|
-
const parsedOutput = {
|
|
3600
|
-
...output,
|
|
3601
|
-
body: await parseErrorBody(output.body, context)
|
|
3602
|
-
};
|
|
3603
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3604
|
-
switch (errorCode) {
|
|
3605
|
-
case "BadRequestException":
|
|
3606
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
3607
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3608
|
-
case "NotFoundException":
|
|
3609
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
3610
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3611
|
-
case "TooManyRequestsException":
|
|
3612
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
3613
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3614
|
-
default:
|
|
3615
|
-
const parsedBody = parsedOutput.body;
|
|
3616
|
-
return throwDefaultError({
|
|
3617
|
-
output,
|
|
3618
|
-
parsedBody,
|
|
3619
|
-
errorCode
|
|
3620
|
-
});
|
|
3621
|
-
}
|
|
3622
|
-
}, "de_GetDomainDeliverabilityCampaignCommandError");
|
|
3623
2614
|
var de_GetDomainStatisticsReportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3624
2615
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3625
|
-
return
|
|
2616
|
+
return de_CommandError(output, context);
|
|
3626
2617
|
}
|
|
3627
2618
|
const contents = (0, import_smithy_client.map)({
|
|
3628
2619
|
$metadata: deserializeMetadata(output)
|
|
@@ -3635,34 +2626,9 @@ var de_GetDomainStatisticsReportCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3635
2626
|
Object.assign(contents, doc);
|
|
3636
2627
|
return contents;
|
|
3637
2628
|
}, "de_GetDomainStatisticsReportCommand");
|
|
3638
|
-
var de_GetDomainStatisticsReportCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3639
|
-
const parsedOutput = {
|
|
3640
|
-
...output,
|
|
3641
|
-
body: await parseErrorBody(output.body, context)
|
|
3642
|
-
};
|
|
3643
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3644
|
-
switch (errorCode) {
|
|
3645
|
-
case "BadRequestException":
|
|
3646
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
3647
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3648
|
-
case "NotFoundException":
|
|
3649
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
3650
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3651
|
-
case "TooManyRequestsException":
|
|
3652
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
3653
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3654
|
-
default:
|
|
3655
|
-
const parsedBody = parsedOutput.body;
|
|
3656
|
-
return throwDefaultError({
|
|
3657
|
-
output,
|
|
3658
|
-
parsedBody,
|
|
3659
|
-
errorCode
|
|
3660
|
-
});
|
|
3661
|
-
}
|
|
3662
|
-
}, "de_GetDomainStatisticsReportCommandError");
|
|
3663
2629
|
var de_GetEmailIdentityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3664
2630
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3665
|
-
return
|
|
2631
|
+
return de_CommandError(output, context);
|
|
3666
2632
|
}
|
|
3667
2633
|
const contents = (0, import_smithy_client.map)({
|
|
3668
2634
|
$metadata: deserializeMetadata(output)
|
|
@@ -3683,34 +2649,9 @@ var de_GetEmailIdentityCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3683
2649
|
Object.assign(contents, doc);
|
|
3684
2650
|
return contents;
|
|
3685
2651
|
}, "de_GetEmailIdentityCommand");
|
|
3686
|
-
var de_GetEmailIdentityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3687
|
-
const parsedOutput = {
|
|
3688
|
-
...output,
|
|
3689
|
-
body: await parseErrorBody(output.body, context)
|
|
3690
|
-
};
|
|
3691
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3692
|
-
switch (errorCode) {
|
|
3693
|
-
case "BadRequestException":
|
|
3694
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
3695
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3696
|
-
case "NotFoundException":
|
|
3697
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
3698
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3699
|
-
case "TooManyRequestsException":
|
|
3700
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
3701
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3702
|
-
default:
|
|
3703
|
-
const parsedBody = parsedOutput.body;
|
|
3704
|
-
return throwDefaultError({
|
|
3705
|
-
output,
|
|
3706
|
-
parsedBody,
|
|
3707
|
-
errorCode
|
|
3708
|
-
});
|
|
3709
|
-
}
|
|
3710
|
-
}, "de_GetEmailIdentityCommandError");
|
|
3711
2652
|
var de_GetEmailIdentityPoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3712
2653
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3713
|
-
return
|
|
2654
|
+
return de_CommandError(output, context);
|
|
3714
2655
|
}
|
|
3715
2656
|
const contents = (0, import_smithy_client.map)({
|
|
3716
2657
|
$metadata: deserializeMetadata(output)
|
|
@@ -3722,34 +2663,9 @@ var de_GetEmailIdentityPoliciesCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
3722
2663
|
Object.assign(contents, doc);
|
|
3723
2664
|
return contents;
|
|
3724
2665
|
}, "de_GetEmailIdentityPoliciesCommand");
|
|
3725
|
-
var de_GetEmailIdentityPoliciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3726
|
-
const parsedOutput = {
|
|
3727
|
-
...output,
|
|
3728
|
-
body: await parseErrorBody(output.body, context)
|
|
3729
|
-
};
|
|
3730
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3731
|
-
switch (errorCode) {
|
|
3732
|
-
case "BadRequestException":
|
|
3733
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
3734
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3735
|
-
case "NotFoundException":
|
|
3736
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
3737
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3738
|
-
case "TooManyRequestsException":
|
|
3739
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
3740
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3741
|
-
default:
|
|
3742
|
-
const parsedBody = parsedOutput.body;
|
|
3743
|
-
return throwDefaultError({
|
|
3744
|
-
output,
|
|
3745
|
-
parsedBody,
|
|
3746
|
-
errorCode
|
|
3747
|
-
});
|
|
3748
|
-
}
|
|
3749
|
-
}, "de_GetEmailIdentityPoliciesCommandError");
|
|
3750
2666
|
var de_GetEmailTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3751
2667
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3752
|
-
return
|
|
2668
|
+
return de_CommandError(output, context);
|
|
3753
2669
|
}
|
|
3754
2670
|
const contents = (0, import_smithy_client.map)({
|
|
3755
2671
|
$metadata: deserializeMetadata(output)
|
|
@@ -3762,34 +2678,9 @@ var de_GetEmailTemplateCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3762
2678
|
Object.assign(contents, doc);
|
|
3763
2679
|
return contents;
|
|
3764
2680
|
}, "de_GetEmailTemplateCommand");
|
|
3765
|
-
var de_GetEmailTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3766
|
-
const parsedOutput = {
|
|
3767
|
-
...output,
|
|
3768
|
-
body: await parseErrorBody(output.body, context)
|
|
3769
|
-
};
|
|
3770
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3771
|
-
switch (errorCode) {
|
|
3772
|
-
case "BadRequestException":
|
|
3773
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
3774
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3775
|
-
case "NotFoundException":
|
|
3776
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
3777
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3778
|
-
case "TooManyRequestsException":
|
|
3779
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
3780
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3781
|
-
default:
|
|
3782
|
-
const parsedBody = parsedOutput.body;
|
|
3783
|
-
return throwDefaultError({
|
|
3784
|
-
output,
|
|
3785
|
-
parsedBody,
|
|
3786
|
-
errorCode
|
|
3787
|
-
});
|
|
3788
|
-
}
|
|
3789
|
-
}, "de_GetEmailTemplateCommandError");
|
|
3790
2681
|
var de_GetExportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3791
2682
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3792
|
-
return
|
|
2683
|
+
return de_CommandError(output, context);
|
|
3793
2684
|
}
|
|
3794
2685
|
const contents = (0, import_smithy_client.map)({
|
|
3795
2686
|
$metadata: deserializeMetadata(output)
|
|
@@ -3809,34 +2700,9 @@ var de_GetExportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3809
2700
|
Object.assign(contents, doc);
|
|
3810
2701
|
return contents;
|
|
3811
2702
|
}, "de_GetExportJobCommand");
|
|
3812
|
-
var de_GetExportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3813
|
-
const parsedOutput = {
|
|
3814
|
-
...output,
|
|
3815
|
-
body: await parseErrorBody(output.body, context)
|
|
3816
|
-
};
|
|
3817
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3818
|
-
switch (errorCode) {
|
|
3819
|
-
case "BadRequestException":
|
|
3820
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
3821
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3822
|
-
case "NotFoundException":
|
|
3823
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
3824
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3825
|
-
case "TooManyRequestsException":
|
|
3826
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
3827
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3828
|
-
default:
|
|
3829
|
-
const parsedBody = parsedOutput.body;
|
|
3830
|
-
return throwDefaultError({
|
|
3831
|
-
output,
|
|
3832
|
-
parsedBody,
|
|
3833
|
-
errorCode
|
|
3834
|
-
});
|
|
3835
|
-
}
|
|
3836
|
-
}, "de_GetExportJobCommandError");
|
|
3837
2703
|
var de_GetImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3838
2704
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3839
|
-
return
|
|
2705
|
+
return de_CommandError(output, context);
|
|
3840
2706
|
}
|
|
3841
2707
|
const contents = (0, import_smithy_client.map)({
|
|
3842
2708
|
$metadata: deserializeMetadata(output)
|
|
@@ -3856,34 +2722,9 @@ var de_GetImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3856
2722
|
Object.assign(contents, doc);
|
|
3857
2723
|
return contents;
|
|
3858
2724
|
}, "de_GetImportJobCommand");
|
|
3859
|
-
var de_GetImportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3860
|
-
const parsedOutput = {
|
|
3861
|
-
...output,
|
|
3862
|
-
body: await parseErrorBody(output.body, context)
|
|
3863
|
-
};
|
|
3864
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3865
|
-
switch (errorCode) {
|
|
3866
|
-
case "BadRequestException":
|
|
3867
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
3868
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3869
|
-
case "NotFoundException":
|
|
3870
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
3871
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3872
|
-
case "TooManyRequestsException":
|
|
3873
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
3874
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3875
|
-
default:
|
|
3876
|
-
const parsedBody = parsedOutput.body;
|
|
3877
|
-
return throwDefaultError({
|
|
3878
|
-
output,
|
|
3879
|
-
parsedBody,
|
|
3880
|
-
errorCode
|
|
3881
|
-
});
|
|
3882
|
-
}
|
|
3883
|
-
}, "de_GetImportJobCommandError");
|
|
3884
2725
|
var de_GetMessageInsightsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3885
2726
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3886
|
-
return
|
|
2727
|
+
return de_CommandError(output, context);
|
|
3887
2728
|
}
|
|
3888
2729
|
const contents = (0, import_smithy_client.map)({
|
|
3889
2730
|
$metadata: deserializeMetadata(output)
|
|
@@ -3899,34 +2740,9 @@ var de_GetMessageInsightsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3899
2740
|
Object.assign(contents, doc);
|
|
3900
2741
|
return contents;
|
|
3901
2742
|
}, "de_GetMessageInsightsCommand");
|
|
3902
|
-
var de_GetMessageInsightsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3903
|
-
const parsedOutput = {
|
|
3904
|
-
...output,
|
|
3905
|
-
body: await parseErrorBody(output.body, context)
|
|
3906
|
-
};
|
|
3907
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3908
|
-
switch (errorCode) {
|
|
3909
|
-
case "BadRequestException":
|
|
3910
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
3911
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3912
|
-
case "NotFoundException":
|
|
3913
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
3914
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3915
|
-
case "TooManyRequestsException":
|
|
3916
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
3917
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3918
|
-
default:
|
|
3919
|
-
const parsedBody = parsedOutput.body;
|
|
3920
|
-
return throwDefaultError({
|
|
3921
|
-
output,
|
|
3922
|
-
parsedBody,
|
|
3923
|
-
errorCode
|
|
3924
|
-
});
|
|
3925
|
-
}
|
|
3926
|
-
}, "de_GetMessageInsightsCommandError");
|
|
3927
2743
|
var de_GetSuppressedDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3928
2744
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3929
|
-
return
|
|
2745
|
+
return de_CommandError(output, context);
|
|
3930
2746
|
}
|
|
3931
2747
|
const contents = (0, import_smithy_client.map)({
|
|
3932
2748
|
$metadata: deserializeMetadata(output)
|
|
@@ -3938,34 +2754,9 @@ var de_GetSuppressedDestinationCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
3938
2754
|
Object.assign(contents, doc);
|
|
3939
2755
|
return contents;
|
|
3940
2756
|
}, "de_GetSuppressedDestinationCommand");
|
|
3941
|
-
var de_GetSuppressedDestinationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3942
|
-
const parsedOutput = {
|
|
3943
|
-
...output,
|
|
3944
|
-
body: await parseErrorBody(output.body, context)
|
|
3945
|
-
};
|
|
3946
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3947
|
-
switch (errorCode) {
|
|
3948
|
-
case "BadRequestException":
|
|
3949
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
3950
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3951
|
-
case "NotFoundException":
|
|
3952
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
3953
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3954
|
-
case "TooManyRequestsException":
|
|
3955
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
3956
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3957
|
-
default:
|
|
3958
|
-
const parsedBody = parsedOutput.body;
|
|
3959
|
-
return throwDefaultError({
|
|
3960
|
-
output,
|
|
3961
|
-
parsedBody,
|
|
3962
|
-
errorCode
|
|
3963
|
-
});
|
|
3964
|
-
}
|
|
3965
|
-
}, "de_GetSuppressedDestinationCommandError");
|
|
3966
2757
|
var de_ListConfigurationSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3967
2758
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3968
|
-
return
|
|
2759
|
+
return de_CommandError(output, context);
|
|
3969
2760
|
}
|
|
3970
2761
|
const contents = (0, import_smithy_client.map)({
|
|
3971
2762
|
$metadata: deserializeMetadata(output)
|
|
@@ -3978,31 +2769,9 @@ var de_ListConfigurationSetsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3978
2769
|
Object.assign(contents, doc);
|
|
3979
2770
|
return contents;
|
|
3980
2771
|
}, "de_ListConfigurationSetsCommand");
|
|
3981
|
-
var de_ListConfigurationSetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3982
|
-
const parsedOutput = {
|
|
3983
|
-
...output,
|
|
3984
|
-
body: await parseErrorBody(output.body, context)
|
|
3985
|
-
};
|
|
3986
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3987
|
-
switch (errorCode) {
|
|
3988
|
-
case "BadRequestException":
|
|
3989
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
3990
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3991
|
-
case "TooManyRequestsException":
|
|
3992
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
3993
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3994
|
-
default:
|
|
3995
|
-
const parsedBody = parsedOutput.body;
|
|
3996
|
-
return throwDefaultError({
|
|
3997
|
-
output,
|
|
3998
|
-
parsedBody,
|
|
3999
|
-
errorCode
|
|
4000
|
-
});
|
|
4001
|
-
}
|
|
4002
|
-
}, "de_ListConfigurationSetsCommandError");
|
|
4003
2772
|
var de_ListContactListsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4004
2773
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4005
|
-
return
|
|
2774
|
+
return de_CommandError(output, context);
|
|
4006
2775
|
}
|
|
4007
2776
|
const contents = (0, import_smithy_client.map)({
|
|
4008
2777
|
$metadata: deserializeMetadata(output)
|
|
@@ -4015,31 +2784,9 @@ var de_ListContactListsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4015
2784
|
Object.assign(contents, doc);
|
|
4016
2785
|
return contents;
|
|
4017
2786
|
}, "de_ListContactListsCommand");
|
|
4018
|
-
var de_ListContactListsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4019
|
-
const parsedOutput = {
|
|
4020
|
-
...output,
|
|
4021
|
-
body: await parseErrorBody(output.body, context)
|
|
4022
|
-
};
|
|
4023
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4024
|
-
switch (errorCode) {
|
|
4025
|
-
case "BadRequestException":
|
|
4026
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
4027
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4028
|
-
case "TooManyRequestsException":
|
|
4029
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
4030
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4031
|
-
default:
|
|
4032
|
-
const parsedBody = parsedOutput.body;
|
|
4033
|
-
return throwDefaultError({
|
|
4034
|
-
output,
|
|
4035
|
-
parsedBody,
|
|
4036
|
-
errorCode
|
|
4037
|
-
});
|
|
4038
|
-
}
|
|
4039
|
-
}, "de_ListContactListsCommandError");
|
|
4040
2787
|
var de_ListContactsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4041
2788
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4042
|
-
return
|
|
2789
|
+
return de_CommandError(output, context);
|
|
4043
2790
|
}
|
|
4044
2791
|
const contents = (0, import_smithy_client.map)({
|
|
4045
2792
|
$metadata: deserializeMetadata(output)
|
|
@@ -4052,34 +2799,9 @@ var de_ListContactsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4052
2799
|
Object.assign(contents, doc);
|
|
4053
2800
|
return contents;
|
|
4054
2801
|
}, "de_ListContactsCommand");
|
|
4055
|
-
var de_ListContactsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4056
|
-
const parsedOutput = {
|
|
4057
|
-
...output,
|
|
4058
|
-
body: await parseErrorBody(output.body, context)
|
|
4059
|
-
};
|
|
4060
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4061
|
-
switch (errorCode) {
|
|
4062
|
-
case "BadRequestException":
|
|
4063
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
4064
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4065
|
-
case "NotFoundException":
|
|
4066
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
4067
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4068
|
-
case "TooManyRequestsException":
|
|
4069
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
4070
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4071
|
-
default:
|
|
4072
|
-
const parsedBody = parsedOutput.body;
|
|
4073
|
-
return throwDefaultError({
|
|
4074
|
-
output,
|
|
4075
|
-
parsedBody,
|
|
4076
|
-
errorCode
|
|
4077
|
-
});
|
|
4078
|
-
}
|
|
4079
|
-
}, "de_ListContactsCommandError");
|
|
4080
2802
|
var de_ListCustomVerificationEmailTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4081
2803
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4082
|
-
return
|
|
2804
|
+
return de_CommandError(output, context);
|
|
4083
2805
|
}
|
|
4084
2806
|
const contents = (0, import_smithy_client.map)({
|
|
4085
2807
|
$metadata: deserializeMetadata(output)
|
|
@@ -4092,31 +2814,9 @@ var de_ListCustomVerificationEmailTemplatesCommand = /* @__PURE__ */ __name(asyn
|
|
|
4092
2814
|
Object.assign(contents, doc);
|
|
4093
2815
|
return contents;
|
|
4094
2816
|
}, "de_ListCustomVerificationEmailTemplatesCommand");
|
|
4095
|
-
var de_ListCustomVerificationEmailTemplatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4096
|
-
const parsedOutput = {
|
|
4097
|
-
...output,
|
|
4098
|
-
body: await parseErrorBody(output.body, context)
|
|
4099
|
-
};
|
|
4100
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4101
|
-
switch (errorCode) {
|
|
4102
|
-
case "BadRequestException":
|
|
4103
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
4104
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4105
|
-
case "TooManyRequestsException":
|
|
4106
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
4107
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4108
|
-
default:
|
|
4109
|
-
const parsedBody = parsedOutput.body;
|
|
4110
|
-
return throwDefaultError({
|
|
4111
|
-
output,
|
|
4112
|
-
parsedBody,
|
|
4113
|
-
errorCode
|
|
4114
|
-
});
|
|
4115
|
-
}
|
|
4116
|
-
}, "de_ListCustomVerificationEmailTemplatesCommandError");
|
|
4117
2817
|
var de_ListDedicatedIpPoolsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4118
2818
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4119
|
-
return
|
|
2819
|
+
return de_CommandError(output, context);
|
|
4120
2820
|
}
|
|
4121
2821
|
const contents = (0, import_smithy_client.map)({
|
|
4122
2822
|
$metadata: deserializeMetadata(output)
|
|
@@ -4129,31 +2829,9 @@ var de_ListDedicatedIpPoolsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
4129
2829
|
Object.assign(contents, doc);
|
|
4130
2830
|
return contents;
|
|
4131
2831
|
}, "de_ListDedicatedIpPoolsCommand");
|
|
4132
|
-
var de_ListDedicatedIpPoolsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4133
|
-
const parsedOutput = {
|
|
4134
|
-
...output,
|
|
4135
|
-
body: await parseErrorBody(output.body, context)
|
|
4136
|
-
};
|
|
4137
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4138
|
-
switch (errorCode) {
|
|
4139
|
-
case "BadRequestException":
|
|
4140
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
4141
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4142
|
-
case "TooManyRequestsException":
|
|
4143
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
4144
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4145
|
-
default:
|
|
4146
|
-
const parsedBody = parsedOutput.body;
|
|
4147
|
-
return throwDefaultError({
|
|
4148
|
-
output,
|
|
4149
|
-
parsedBody,
|
|
4150
|
-
errorCode
|
|
4151
|
-
});
|
|
4152
|
-
}
|
|
4153
|
-
}, "de_ListDedicatedIpPoolsCommandError");
|
|
4154
2832
|
var de_ListDeliverabilityTestReportsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4155
2833
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4156
|
-
return
|
|
2834
|
+
return de_CommandError(output, context);
|
|
4157
2835
|
}
|
|
4158
2836
|
const contents = (0, import_smithy_client.map)({
|
|
4159
2837
|
$metadata: deserializeMetadata(output)
|
|
@@ -4166,34 +2844,9 @@ var de_ListDeliverabilityTestReportsCommand = /* @__PURE__ */ __name(async (outp
|
|
|
4166
2844
|
Object.assign(contents, doc);
|
|
4167
2845
|
return contents;
|
|
4168
2846
|
}, "de_ListDeliverabilityTestReportsCommand");
|
|
4169
|
-
var de_ListDeliverabilityTestReportsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4170
|
-
const parsedOutput = {
|
|
4171
|
-
...output,
|
|
4172
|
-
body: await parseErrorBody(output.body, context)
|
|
4173
|
-
};
|
|
4174
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4175
|
-
switch (errorCode) {
|
|
4176
|
-
case "BadRequestException":
|
|
4177
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
4178
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4179
|
-
case "NotFoundException":
|
|
4180
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
4181
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4182
|
-
case "TooManyRequestsException":
|
|
4183
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
4184
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4185
|
-
default:
|
|
4186
|
-
const parsedBody = parsedOutput.body;
|
|
4187
|
-
return throwDefaultError({
|
|
4188
|
-
output,
|
|
4189
|
-
parsedBody,
|
|
4190
|
-
errorCode
|
|
4191
|
-
});
|
|
4192
|
-
}
|
|
4193
|
-
}, "de_ListDeliverabilityTestReportsCommandError");
|
|
4194
2847
|
var de_ListDomainDeliverabilityCampaignsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4195
2848
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4196
|
-
return
|
|
2849
|
+
return de_CommandError(output, context);
|
|
4197
2850
|
}
|
|
4198
2851
|
const contents = (0, import_smithy_client.map)({
|
|
4199
2852
|
$metadata: deserializeMetadata(output)
|
|
@@ -4206,34 +2859,9 @@ var de_ListDomainDeliverabilityCampaignsCommand = /* @__PURE__ */ __name(async (
|
|
|
4206
2859
|
Object.assign(contents, doc);
|
|
4207
2860
|
return contents;
|
|
4208
2861
|
}, "de_ListDomainDeliverabilityCampaignsCommand");
|
|
4209
|
-
var de_ListDomainDeliverabilityCampaignsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4210
|
-
const parsedOutput = {
|
|
4211
|
-
...output,
|
|
4212
|
-
body: await parseErrorBody(output.body, context)
|
|
4213
|
-
};
|
|
4214
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4215
|
-
switch (errorCode) {
|
|
4216
|
-
case "BadRequestException":
|
|
4217
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
4218
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4219
|
-
case "NotFoundException":
|
|
4220
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
4221
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4222
|
-
case "TooManyRequestsException":
|
|
4223
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
4224
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4225
|
-
default:
|
|
4226
|
-
const parsedBody = parsedOutput.body;
|
|
4227
|
-
return throwDefaultError({
|
|
4228
|
-
output,
|
|
4229
|
-
parsedBody,
|
|
4230
|
-
errorCode
|
|
4231
|
-
});
|
|
4232
|
-
}
|
|
4233
|
-
}, "de_ListDomainDeliverabilityCampaignsCommandError");
|
|
4234
2862
|
var de_ListEmailIdentitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4235
2863
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4236
|
-
return
|
|
2864
|
+
return de_CommandError(output, context);
|
|
4237
2865
|
}
|
|
4238
2866
|
const contents = (0, import_smithy_client.map)({
|
|
4239
2867
|
$metadata: deserializeMetadata(output)
|
|
@@ -4246,31 +2874,9 @@ var de_ListEmailIdentitiesCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
4246
2874
|
Object.assign(contents, doc);
|
|
4247
2875
|
return contents;
|
|
4248
2876
|
}, "de_ListEmailIdentitiesCommand");
|
|
4249
|
-
var de_ListEmailIdentitiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4250
|
-
const parsedOutput = {
|
|
4251
|
-
...output,
|
|
4252
|
-
body: await parseErrorBody(output.body, context)
|
|
4253
|
-
};
|
|
4254
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4255
|
-
switch (errorCode) {
|
|
4256
|
-
case "BadRequestException":
|
|
4257
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
4258
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4259
|
-
case "TooManyRequestsException":
|
|
4260
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
4261
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4262
|
-
default:
|
|
4263
|
-
const parsedBody = parsedOutput.body;
|
|
4264
|
-
return throwDefaultError({
|
|
4265
|
-
output,
|
|
4266
|
-
parsedBody,
|
|
4267
|
-
errorCode
|
|
4268
|
-
});
|
|
4269
|
-
}
|
|
4270
|
-
}, "de_ListEmailIdentitiesCommandError");
|
|
4271
2877
|
var de_ListEmailTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4272
2878
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4273
|
-
return
|
|
2879
|
+
return de_CommandError(output, context);
|
|
4274
2880
|
}
|
|
4275
2881
|
const contents = (0, import_smithy_client.map)({
|
|
4276
2882
|
$metadata: deserializeMetadata(output)
|
|
@@ -4283,31 +2889,9 @@ var de_ListEmailTemplatesCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
4283
2889
|
Object.assign(contents, doc);
|
|
4284
2890
|
return contents;
|
|
4285
2891
|
}, "de_ListEmailTemplatesCommand");
|
|
4286
|
-
var de_ListEmailTemplatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4287
|
-
const parsedOutput = {
|
|
4288
|
-
...output,
|
|
4289
|
-
body: await parseErrorBody(output.body, context)
|
|
4290
|
-
};
|
|
4291
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4292
|
-
switch (errorCode) {
|
|
4293
|
-
case "BadRequestException":
|
|
4294
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
4295
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4296
|
-
case "TooManyRequestsException":
|
|
4297
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
4298
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4299
|
-
default:
|
|
4300
|
-
const parsedBody = parsedOutput.body;
|
|
4301
|
-
return throwDefaultError({
|
|
4302
|
-
output,
|
|
4303
|
-
parsedBody,
|
|
4304
|
-
errorCode
|
|
4305
|
-
});
|
|
4306
|
-
}
|
|
4307
|
-
}, "de_ListEmailTemplatesCommandError");
|
|
4308
2892
|
var de_ListExportJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4309
2893
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4310
|
-
return
|
|
2894
|
+
return de_CommandError(output, context);
|
|
4311
2895
|
}
|
|
4312
2896
|
const contents = (0, import_smithy_client.map)({
|
|
4313
2897
|
$metadata: deserializeMetadata(output)
|
|
@@ -4320,31 +2904,9 @@ var de_ListExportJobsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4320
2904
|
Object.assign(contents, doc);
|
|
4321
2905
|
return contents;
|
|
4322
2906
|
}, "de_ListExportJobsCommand");
|
|
4323
|
-
var de_ListExportJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4324
|
-
const parsedOutput = {
|
|
4325
|
-
...output,
|
|
4326
|
-
body: await parseErrorBody(output.body, context)
|
|
4327
|
-
};
|
|
4328
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4329
|
-
switch (errorCode) {
|
|
4330
|
-
case "BadRequestException":
|
|
4331
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
4332
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4333
|
-
case "TooManyRequestsException":
|
|
4334
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
4335
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4336
|
-
default:
|
|
4337
|
-
const parsedBody = parsedOutput.body;
|
|
4338
|
-
return throwDefaultError({
|
|
4339
|
-
output,
|
|
4340
|
-
parsedBody,
|
|
4341
|
-
errorCode
|
|
4342
|
-
});
|
|
4343
|
-
}
|
|
4344
|
-
}, "de_ListExportJobsCommandError");
|
|
4345
2907
|
var de_ListImportJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4346
2908
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4347
|
-
return
|
|
2909
|
+
return de_CommandError(output, context);
|
|
4348
2910
|
}
|
|
4349
2911
|
const contents = (0, import_smithy_client.map)({
|
|
4350
2912
|
$metadata: deserializeMetadata(output)
|
|
@@ -4357,31 +2919,9 @@ var de_ListImportJobsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4357
2919
|
Object.assign(contents, doc);
|
|
4358
2920
|
return contents;
|
|
4359
2921
|
}, "de_ListImportJobsCommand");
|
|
4360
|
-
var de_ListImportJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4361
|
-
const parsedOutput = {
|
|
4362
|
-
...output,
|
|
4363
|
-
body: await parseErrorBody(output.body, context)
|
|
4364
|
-
};
|
|
4365
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4366
|
-
switch (errorCode) {
|
|
4367
|
-
case "BadRequestException":
|
|
4368
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
4369
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4370
|
-
case "TooManyRequestsException":
|
|
4371
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
4372
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4373
|
-
default:
|
|
4374
|
-
const parsedBody = parsedOutput.body;
|
|
4375
|
-
return throwDefaultError({
|
|
4376
|
-
output,
|
|
4377
|
-
parsedBody,
|
|
4378
|
-
errorCode
|
|
4379
|
-
});
|
|
4380
|
-
}
|
|
4381
|
-
}, "de_ListImportJobsCommandError");
|
|
4382
2922
|
var de_ListRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4383
2923
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4384
|
-
return
|
|
2924
|
+
return de_CommandError(output, context);
|
|
4385
2925
|
}
|
|
4386
2926
|
const contents = (0, import_smithy_client.map)({
|
|
4387
2927
|
$metadata: deserializeMetadata(output)
|
|
@@ -4394,34 +2934,9 @@ var de_ListRecommendationsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
4394
2934
|
Object.assign(contents, doc);
|
|
4395
2935
|
return contents;
|
|
4396
2936
|
}, "de_ListRecommendationsCommand");
|
|
4397
|
-
var de_ListRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4398
|
-
const parsedOutput = {
|
|
4399
|
-
...output,
|
|
4400
|
-
body: await parseErrorBody(output.body, context)
|
|
4401
|
-
};
|
|
4402
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4403
|
-
switch (errorCode) {
|
|
4404
|
-
case "BadRequestException":
|
|
4405
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
4406
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4407
|
-
case "NotFoundException":
|
|
4408
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
4409
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4410
|
-
case "TooManyRequestsException":
|
|
4411
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
4412
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4413
|
-
default:
|
|
4414
|
-
const parsedBody = parsedOutput.body;
|
|
4415
|
-
return throwDefaultError({
|
|
4416
|
-
output,
|
|
4417
|
-
parsedBody,
|
|
4418
|
-
errorCode
|
|
4419
|
-
});
|
|
4420
|
-
}
|
|
4421
|
-
}, "de_ListRecommendationsCommandError");
|
|
4422
2937
|
var de_ListSuppressedDestinationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4423
2938
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4424
|
-
return
|
|
2939
|
+
return de_CommandError(output, context);
|
|
4425
2940
|
}
|
|
4426
2941
|
const contents = (0, import_smithy_client.map)({
|
|
4427
2942
|
$metadata: deserializeMetadata(output)
|
|
@@ -4434,34 +2949,9 @@ var de_ListSuppressedDestinationsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
4434
2949
|
Object.assign(contents, doc);
|
|
4435
2950
|
return contents;
|
|
4436
2951
|
}, "de_ListSuppressedDestinationsCommand");
|
|
4437
|
-
var de_ListSuppressedDestinationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4438
|
-
const parsedOutput = {
|
|
4439
|
-
...output,
|
|
4440
|
-
body: await parseErrorBody(output.body, context)
|
|
4441
|
-
};
|
|
4442
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4443
|
-
switch (errorCode) {
|
|
4444
|
-
case "BadRequestException":
|
|
4445
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
4446
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4447
|
-
case "InvalidNextTokenException":
|
|
4448
|
-
case "com.amazonaws.sesv2#InvalidNextTokenException":
|
|
4449
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
4450
|
-
case "TooManyRequestsException":
|
|
4451
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
4452
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4453
|
-
default:
|
|
4454
|
-
const parsedBody = parsedOutput.body;
|
|
4455
|
-
return throwDefaultError({
|
|
4456
|
-
output,
|
|
4457
|
-
parsedBody,
|
|
4458
|
-
errorCode
|
|
4459
|
-
});
|
|
4460
|
-
}
|
|
4461
|
-
}, "de_ListSuppressedDestinationsCommandError");
|
|
4462
2952
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4463
2953
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4464
|
-
return
|
|
2954
|
+
return de_CommandError(output, context);
|
|
4465
2955
|
}
|
|
4466
2956
|
const contents = (0, import_smithy_client.map)({
|
|
4467
2957
|
$metadata: deserializeMetadata(output)
|
|
@@ -4473,34 +2963,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
4473
2963
|
Object.assign(contents, doc);
|
|
4474
2964
|
return contents;
|
|
4475
2965
|
}, "de_ListTagsForResourceCommand");
|
|
4476
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4477
|
-
const parsedOutput = {
|
|
4478
|
-
...output,
|
|
4479
|
-
body: await parseErrorBody(output.body, context)
|
|
4480
|
-
};
|
|
4481
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4482
|
-
switch (errorCode) {
|
|
4483
|
-
case "BadRequestException":
|
|
4484
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
4485
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4486
|
-
case "NotFoundException":
|
|
4487
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
4488
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4489
|
-
case "TooManyRequestsException":
|
|
4490
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
4491
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4492
|
-
default:
|
|
4493
|
-
const parsedBody = parsedOutput.body;
|
|
4494
|
-
return throwDefaultError({
|
|
4495
|
-
output,
|
|
4496
|
-
parsedBody,
|
|
4497
|
-
errorCode
|
|
4498
|
-
});
|
|
4499
|
-
}
|
|
4500
|
-
}, "de_ListTagsForResourceCommandError");
|
|
4501
2966
|
var de_PutAccountDedicatedIpWarmupAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4502
2967
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4503
|
-
return
|
|
2968
|
+
return de_CommandError(output, context);
|
|
4504
2969
|
}
|
|
4505
2970
|
const contents = (0, import_smithy_client.map)({
|
|
4506
2971
|
$metadata: deserializeMetadata(output)
|
|
@@ -4508,31 +2973,9 @@ var de_PutAccountDedicatedIpWarmupAttributesCommand = /* @__PURE__ */ __name(asy
|
|
|
4508
2973
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4509
2974
|
return contents;
|
|
4510
2975
|
}, "de_PutAccountDedicatedIpWarmupAttributesCommand");
|
|
4511
|
-
var de_PutAccountDedicatedIpWarmupAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4512
|
-
const parsedOutput = {
|
|
4513
|
-
...output,
|
|
4514
|
-
body: await parseErrorBody(output.body, context)
|
|
4515
|
-
};
|
|
4516
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4517
|
-
switch (errorCode) {
|
|
4518
|
-
case "BadRequestException":
|
|
4519
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
4520
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4521
|
-
case "TooManyRequestsException":
|
|
4522
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
4523
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4524
|
-
default:
|
|
4525
|
-
const parsedBody = parsedOutput.body;
|
|
4526
|
-
return throwDefaultError({
|
|
4527
|
-
output,
|
|
4528
|
-
parsedBody,
|
|
4529
|
-
errorCode
|
|
4530
|
-
});
|
|
4531
|
-
}
|
|
4532
|
-
}, "de_PutAccountDedicatedIpWarmupAttributesCommandError");
|
|
4533
2976
|
var de_PutAccountDetailsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4534
2977
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4535
|
-
return
|
|
2978
|
+
return de_CommandError(output, context);
|
|
4536
2979
|
}
|
|
4537
2980
|
const contents = (0, import_smithy_client.map)({
|
|
4538
2981
|
$metadata: deserializeMetadata(output)
|
|
@@ -4540,34 +2983,9 @@ var de_PutAccountDetailsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4540
2983
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4541
2984
|
return contents;
|
|
4542
2985
|
}, "de_PutAccountDetailsCommand");
|
|
4543
|
-
var de_PutAccountDetailsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4544
|
-
const parsedOutput = {
|
|
4545
|
-
...output,
|
|
4546
|
-
body: await parseErrorBody(output.body, context)
|
|
4547
|
-
};
|
|
4548
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4549
|
-
switch (errorCode) {
|
|
4550
|
-
case "BadRequestException":
|
|
4551
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
4552
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4553
|
-
case "ConflictException":
|
|
4554
|
-
case "com.amazonaws.sesv2#ConflictException":
|
|
4555
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4556
|
-
case "TooManyRequestsException":
|
|
4557
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
4558
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4559
|
-
default:
|
|
4560
|
-
const parsedBody = parsedOutput.body;
|
|
4561
|
-
return throwDefaultError({
|
|
4562
|
-
output,
|
|
4563
|
-
parsedBody,
|
|
4564
|
-
errorCode
|
|
4565
|
-
});
|
|
4566
|
-
}
|
|
4567
|
-
}, "de_PutAccountDetailsCommandError");
|
|
4568
2986
|
var de_PutAccountSendingAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4569
2987
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4570
|
-
return
|
|
2988
|
+
return de_CommandError(output, context);
|
|
4571
2989
|
}
|
|
4572
2990
|
const contents = (0, import_smithy_client.map)({
|
|
4573
2991
|
$metadata: deserializeMetadata(output)
|
|
@@ -4575,31 +2993,9 @@ var de_PutAccountSendingAttributesCommand = /* @__PURE__ */ __name(async (output
|
|
|
4575
2993
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4576
2994
|
return contents;
|
|
4577
2995
|
}, "de_PutAccountSendingAttributesCommand");
|
|
4578
|
-
var de_PutAccountSendingAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4579
|
-
const parsedOutput = {
|
|
4580
|
-
...output,
|
|
4581
|
-
body: await parseErrorBody(output.body, context)
|
|
4582
|
-
};
|
|
4583
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4584
|
-
switch (errorCode) {
|
|
4585
|
-
case "BadRequestException":
|
|
4586
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
4587
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4588
|
-
case "TooManyRequestsException":
|
|
4589
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
4590
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4591
|
-
default:
|
|
4592
|
-
const parsedBody = parsedOutput.body;
|
|
4593
|
-
return throwDefaultError({
|
|
4594
|
-
output,
|
|
4595
|
-
parsedBody,
|
|
4596
|
-
errorCode
|
|
4597
|
-
});
|
|
4598
|
-
}
|
|
4599
|
-
}, "de_PutAccountSendingAttributesCommandError");
|
|
4600
2996
|
var de_PutAccountSuppressionAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4601
2997
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4602
|
-
return
|
|
2998
|
+
return de_CommandError(output, context);
|
|
4603
2999
|
}
|
|
4604
3000
|
const contents = (0, import_smithy_client.map)({
|
|
4605
3001
|
$metadata: deserializeMetadata(output)
|
|
@@ -4607,31 +3003,9 @@ var de_PutAccountSuppressionAttributesCommand = /* @__PURE__ */ __name(async (ou
|
|
|
4607
3003
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4608
3004
|
return contents;
|
|
4609
3005
|
}, "de_PutAccountSuppressionAttributesCommand");
|
|
4610
|
-
var de_PutAccountSuppressionAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4611
|
-
const parsedOutput = {
|
|
4612
|
-
...output,
|
|
4613
|
-
body: await parseErrorBody(output.body, context)
|
|
4614
|
-
};
|
|
4615
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4616
|
-
switch (errorCode) {
|
|
4617
|
-
case "BadRequestException":
|
|
4618
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
4619
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4620
|
-
case "TooManyRequestsException":
|
|
4621
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
4622
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4623
|
-
default:
|
|
4624
|
-
const parsedBody = parsedOutput.body;
|
|
4625
|
-
return throwDefaultError({
|
|
4626
|
-
output,
|
|
4627
|
-
parsedBody,
|
|
4628
|
-
errorCode
|
|
4629
|
-
});
|
|
4630
|
-
}
|
|
4631
|
-
}, "de_PutAccountSuppressionAttributesCommandError");
|
|
4632
3006
|
var de_PutAccountVdmAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4633
3007
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4634
|
-
return
|
|
3008
|
+
return de_CommandError(output, context);
|
|
4635
3009
|
}
|
|
4636
3010
|
const contents = (0, import_smithy_client.map)({
|
|
4637
3011
|
$metadata: deserializeMetadata(output)
|
|
@@ -4639,31 +3013,9 @@ var de_PutAccountVdmAttributesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
4639
3013
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4640
3014
|
return contents;
|
|
4641
3015
|
}, "de_PutAccountVdmAttributesCommand");
|
|
4642
|
-
var de_PutAccountVdmAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4643
|
-
const parsedOutput = {
|
|
4644
|
-
...output,
|
|
4645
|
-
body: await parseErrorBody(output.body, context)
|
|
4646
|
-
};
|
|
4647
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4648
|
-
switch (errorCode) {
|
|
4649
|
-
case "BadRequestException":
|
|
4650
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
4651
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4652
|
-
case "TooManyRequestsException":
|
|
4653
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
4654
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4655
|
-
default:
|
|
4656
|
-
const parsedBody = parsedOutput.body;
|
|
4657
|
-
return throwDefaultError({
|
|
4658
|
-
output,
|
|
4659
|
-
parsedBody,
|
|
4660
|
-
errorCode
|
|
4661
|
-
});
|
|
4662
|
-
}
|
|
4663
|
-
}, "de_PutAccountVdmAttributesCommandError");
|
|
4664
3016
|
var de_PutConfigurationSetDeliveryOptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4665
3017
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4666
|
-
return
|
|
3018
|
+
return de_CommandError(output, context);
|
|
4667
3019
|
}
|
|
4668
3020
|
const contents = (0, import_smithy_client.map)({
|
|
4669
3021
|
$metadata: deserializeMetadata(output)
|
|
@@ -4671,34 +3023,9 @@ var de_PutConfigurationSetDeliveryOptionsCommand = /* @__PURE__ */ __name(async
|
|
|
4671
3023
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4672
3024
|
return contents;
|
|
4673
3025
|
}, "de_PutConfigurationSetDeliveryOptionsCommand");
|
|
4674
|
-
var de_PutConfigurationSetDeliveryOptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4675
|
-
const parsedOutput = {
|
|
4676
|
-
...output,
|
|
4677
|
-
body: await parseErrorBody(output.body, context)
|
|
4678
|
-
};
|
|
4679
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4680
|
-
switch (errorCode) {
|
|
4681
|
-
case "BadRequestException":
|
|
4682
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
4683
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4684
|
-
case "NotFoundException":
|
|
4685
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
4686
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4687
|
-
case "TooManyRequestsException":
|
|
4688
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
4689
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4690
|
-
default:
|
|
4691
|
-
const parsedBody = parsedOutput.body;
|
|
4692
|
-
return throwDefaultError({
|
|
4693
|
-
output,
|
|
4694
|
-
parsedBody,
|
|
4695
|
-
errorCode
|
|
4696
|
-
});
|
|
4697
|
-
}
|
|
4698
|
-
}, "de_PutConfigurationSetDeliveryOptionsCommandError");
|
|
4699
3026
|
var de_PutConfigurationSetReputationOptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4700
3027
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4701
|
-
return
|
|
3028
|
+
return de_CommandError(output, context);
|
|
4702
3029
|
}
|
|
4703
3030
|
const contents = (0, import_smithy_client.map)({
|
|
4704
3031
|
$metadata: deserializeMetadata(output)
|
|
@@ -4706,34 +3033,9 @@ var de_PutConfigurationSetReputationOptionsCommand = /* @__PURE__ */ __name(asyn
|
|
|
4706
3033
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4707
3034
|
return contents;
|
|
4708
3035
|
}, "de_PutConfigurationSetReputationOptionsCommand");
|
|
4709
|
-
var de_PutConfigurationSetReputationOptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4710
|
-
const parsedOutput = {
|
|
4711
|
-
...output,
|
|
4712
|
-
body: await parseErrorBody(output.body, context)
|
|
4713
|
-
};
|
|
4714
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4715
|
-
switch (errorCode) {
|
|
4716
|
-
case "BadRequestException":
|
|
4717
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
4718
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4719
|
-
case "NotFoundException":
|
|
4720
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
4721
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4722
|
-
case "TooManyRequestsException":
|
|
4723
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
4724
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4725
|
-
default:
|
|
4726
|
-
const parsedBody = parsedOutput.body;
|
|
4727
|
-
return throwDefaultError({
|
|
4728
|
-
output,
|
|
4729
|
-
parsedBody,
|
|
4730
|
-
errorCode
|
|
4731
|
-
});
|
|
4732
|
-
}
|
|
4733
|
-
}, "de_PutConfigurationSetReputationOptionsCommandError");
|
|
4734
3036
|
var de_PutConfigurationSetSendingOptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4735
3037
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4736
|
-
return
|
|
3038
|
+
return de_CommandError(output, context);
|
|
4737
3039
|
}
|
|
4738
3040
|
const contents = (0, import_smithy_client.map)({
|
|
4739
3041
|
$metadata: deserializeMetadata(output)
|
|
@@ -4741,34 +3043,9 @@ var de_PutConfigurationSetSendingOptionsCommand = /* @__PURE__ */ __name(async (
|
|
|
4741
3043
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4742
3044
|
return contents;
|
|
4743
3045
|
}, "de_PutConfigurationSetSendingOptionsCommand");
|
|
4744
|
-
var de_PutConfigurationSetSendingOptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4745
|
-
const parsedOutput = {
|
|
4746
|
-
...output,
|
|
4747
|
-
body: await parseErrorBody(output.body, context)
|
|
4748
|
-
};
|
|
4749
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4750
|
-
switch (errorCode) {
|
|
4751
|
-
case "BadRequestException":
|
|
4752
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
4753
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4754
|
-
case "NotFoundException":
|
|
4755
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
4756
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4757
|
-
case "TooManyRequestsException":
|
|
4758
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
4759
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4760
|
-
default:
|
|
4761
|
-
const parsedBody = parsedOutput.body;
|
|
4762
|
-
return throwDefaultError({
|
|
4763
|
-
output,
|
|
4764
|
-
parsedBody,
|
|
4765
|
-
errorCode
|
|
4766
|
-
});
|
|
4767
|
-
}
|
|
4768
|
-
}, "de_PutConfigurationSetSendingOptionsCommandError");
|
|
4769
3046
|
var de_PutConfigurationSetSuppressionOptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4770
3047
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4771
|
-
return
|
|
3048
|
+
return de_CommandError(output, context);
|
|
4772
3049
|
}
|
|
4773
3050
|
const contents = (0, import_smithy_client.map)({
|
|
4774
3051
|
$metadata: deserializeMetadata(output)
|
|
@@ -4776,34 +3053,9 @@ var de_PutConfigurationSetSuppressionOptionsCommand = /* @__PURE__ */ __name(asy
|
|
|
4776
3053
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4777
3054
|
return contents;
|
|
4778
3055
|
}, "de_PutConfigurationSetSuppressionOptionsCommand");
|
|
4779
|
-
var de_PutConfigurationSetSuppressionOptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4780
|
-
const parsedOutput = {
|
|
4781
|
-
...output,
|
|
4782
|
-
body: await parseErrorBody(output.body, context)
|
|
4783
|
-
};
|
|
4784
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4785
|
-
switch (errorCode) {
|
|
4786
|
-
case "BadRequestException":
|
|
4787
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
4788
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4789
|
-
case "NotFoundException":
|
|
4790
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
4791
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4792
|
-
case "TooManyRequestsException":
|
|
4793
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
4794
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4795
|
-
default:
|
|
4796
|
-
const parsedBody = parsedOutput.body;
|
|
4797
|
-
return throwDefaultError({
|
|
4798
|
-
output,
|
|
4799
|
-
parsedBody,
|
|
4800
|
-
errorCode
|
|
4801
|
-
});
|
|
4802
|
-
}
|
|
4803
|
-
}, "de_PutConfigurationSetSuppressionOptionsCommandError");
|
|
4804
3056
|
var de_PutConfigurationSetTrackingOptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4805
3057
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4806
|
-
return
|
|
3058
|
+
return de_CommandError(output, context);
|
|
4807
3059
|
}
|
|
4808
3060
|
const contents = (0, import_smithy_client.map)({
|
|
4809
3061
|
$metadata: deserializeMetadata(output)
|
|
@@ -4811,34 +3063,9 @@ var de_PutConfigurationSetTrackingOptionsCommand = /* @__PURE__ */ __name(async
|
|
|
4811
3063
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4812
3064
|
return contents;
|
|
4813
3065
|
}, "de_PutConfigurationSetTrackingOptionsCommand");
|
|
4814
|
-
var de_PutConfigurationSetTrackingOptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4815
|
-
const parsedOutput = {
|
|
4816
|
-
...output,
|
|
4817
|
-
body: await parseErrorBody(output.body, context)
|
|
4818
|
-
};
|
|
4819
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4820
|
-
switch (errorCode) {
|
|
4821
|
-
case "BadRequestException":
|
|
4822
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
4823
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4824
|
-
case "NotFoundException":
|
|
4825
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
4826
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4827
|
-
case "TooManyRequestsException":
|
|
4828
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
4829
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4830
|
-
default:
|
|
4831
|
-
const parsedBody = parsedOutput.body;
|
|
4832
|
-
return throwDefaultError({
|
|
4833
|
-
output,
|
|
4834
|
-
parsedBody,
|
|
4835
|
-
errorCode
|
|
4836
|
-
});
|
|
4837
|
-
}
|
|
4838
|
-
}, "de_PutConfigurationSetTrackingOptionsCommandError");
|
|
4839
3066
|
var de_PutConfigurationSetVdmOptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4840
3067
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4841
|
-
return
|
|
3068
|
+
return de_CommandError(output, context);
|
|
4842
3069
|
}
|
|
4843
3070
|
const contents = (0, import_smithy_client.map)({
|
|
4844
3071
|
$metadata: deserializeMetadata(output)
|
|
@@ -4846,34 +3073,9 @@ var de_PutConfigurationSetVdmOptionsCommand = /* @__PURE__ */ __name(async (outp
|
|
|
4846
3073
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4847
3074
|
return contents;
|
|
4848
3075
|
}, "de_PutConfigurationSetVdmOptionsCommand");
|
|
4849
|
-
var de_PutConfigurationSetVdmOptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4850
|
-
const parsedOutput = {
|
|
4851
|
-
...output,
|
|
4852
|
-
body: await parseErrorBody(output.body, context)
|
|
4853
|
-
};
|
|
4854
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4855
|
-
switch (errorCode) {
|
|
4856
|
-
case "BadRequestException":
|
|
4857
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
4858
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4859
|
-
case "NotFoundException":
|
|
4860
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
4861
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4862
|
-
case "TooManyRequestsException":
|
|
4863
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
4864
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4865
|
-
default:
|
|
4866
|
-
const parsedBody = parsedOutput.body;
|
|
4867
|
-
return throwDefaultError({
|
|
4868
|
-
output,
|
|
4869
|
-
parsedBody,
|
|
4870
|
-
errorCode
|
|
4871
|
-
});
|
|
4872
|
-
}
|
|
4873
|
-
}, "de_PutConfigurationSetVdmOptionsCommandError");
|
|
4874
3076
|
var de_PutDedicatedIpInPoolCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4875
3077
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4876
|
-
return
|
|
3078
|
+
return de_CommandError(output, context);
|
|
4877
3079
|
}
|
|
4878
3080
|
const contents = (0, import_smithy_client.map)({
|
|
4879
3081
|
$metadata: deserializeMetadata(output)
|
|
@@ -4881,34 +3083,9 @@ var de_PutDedicatedIpInPoolCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
4881
3083
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4882
3084
|
return contents;
|
|
4883
3085
|
}, "de_PutDedicatedIpInPoolCommand");
|
|
4884
|
-
var de_PutDedicatedIpInPoolCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4885
|
-
const parsedOutput = {
|
|
4886
|
-
...output,
|
|
4887
|
-
body: await parseErrorBody(output.body, context)
|
|
4888
|
-
};
|
|
4889
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4890
|
-
switch (errorCode) {
|
|
4891
|
-
case "BadRequestException":
|
|
4892
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
4893
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4894
|
-
case "NotFoundException":
|
|
4895
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
4896
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4897
|
-
case "TooManyRequestsException":
|
|
4898
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
4899
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4900
|
-
default:
|
|
4901
|
-
const parsedBody = parsedOutput.body;
|
|
4902
|
-
return throwDefaultError({
|
|
4903
|
-
output,
|
|
4904
|
-
parsedBody,
|
|
4905
|
-
errorCode
|
|
4906
|
-
});
|
|
4907
|
-
}
|
|
4908
|
-
}, "de_PutDedicatedIpInPoolCommandError");
|
|
4909
3086
|
var de_PutDedicatedIpPoolScalingAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4910
3087
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4911
|
-
return
|
|
3088
|
+
return de_CommandError(output, context);
|
|
4912
3089
|
}
|
|
4913
3090
|
const contents = (0, import_smithy_client.map)({
|
|
4914
3091
|
$metadata: deserializeMetadata(output)
|
|
@@ -4916,37 +3093,9 @@ var de_PutDedicatedIpPoolScalingAttributesCommand = /* @__PURE__ */ __name(async
|
|
|
4916
3093
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4917
3094
|
return contents;
|
|
4918
3095
|
}, "de_PutDedicatedIpPoolScalingAttributesCommand");
|
|
4919
|
-
var de_PutDedicatedIpPoolScalingAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4920
|
-
const parsedOutput = {
|
|
4921
|
-
...output,
|
|
4922
|
-
body: await parseErrorBody(output.body, context)
|
|
4923
|
-
};
|
|
4924
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4925
|
-
switch (errorCode) {
|
|
4926
|
-
case "BadRequestException":
|
|
4927
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
4928
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4929
|
-
case "ConcurrentModificationException":
|
|
4930
|
-
case "com.amazonaws.sesv2#ConcurrentModificationException":
|
|
4931
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
4932
|
-
case "NotFoundException":
|
|
4933
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
4934
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4935
|
-
case "TooManyRequestsException":
|
|
4936
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
4937
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4938
|
-
default:
|
|
4939
|
-
const parsedBody = parsedOutput.body;
|
|
4940
|
-
return throwDefaultError({
|
|
4941
|
-
output,
|
|
4942
|
-
parsedBody,
|
|
4943
|
-
errorCode
|
|
4944
|
-
});
|
|
4945
|
-
}
|
|
4946
|
-
}, "de_PutDedicatedIpPoolScalingAttributesCommandError");
|
|
4947
3096
|
var de_PutDedicatedIpWarmupAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4948
3097
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4949
|
-
return
|
|
3098
|
+
return de_CommandError(output, context);
|
|
4950
3099
|
}
|
|
4951
3100
|
const contents = (0, import_smithy_client.map)({
|
|
4952
3101
|
$metadata: deserializeMetadata(output)
|
|
@@ -4954,34 +3103,9 @@ var de_PutDedicatedIpWarmupAttributesCommand = /* @__PURE__ */ __name(async (out
|
|
|
4954
3103
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4955
3104
|
return contents;
|
|
4956
3105
|
}, "de_PutDedicatedIpWarmupAttributesCommand");
|
|
4957
|
-
var de_PutDedicatedIpWarmupAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4958
|
-
const parsedOutput = {
|
|
4959
|
-
...output,
|
|
4960
|
-
body: await parseErrorBody(output.body, context)
|
|
4961
|
-
};
|
|
4962
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4963
|
-
switch (errorCode) {
|
|
4964
|
-
case "BadRequestException":
|
|
4965
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
4966
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4967
|
-
case "NotFoundException":
|
|
4968
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
4969
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4970
|
-
case "TooManyRequestsException":
|
|
4971
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
4972
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4973
|
-
default:
|
|
4974
|
-
const parsedBody = parsedOutput.body;
|
|
4975
|
-
return throwDefaultError({
|
|
4976
|
-
output,
|
|
4977
|
-
parsedBody,
|
|
4978
|
-
errorCode
|
|
4979
|
-
});
|
|
4980
|
-
}
|
|
4981
|
-
}, "de_PutDedicatedIpWarmupAttributesCommandError");
|
|
4982
3106
|
var de_PutDeliverabilityDashboardOptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4983
3107
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4984
|
-
return
|
|
3108
|
+
return de_CommandError(output, context);
|
|
4985
3109
|
}
|
|
4986
3110
|
const contents = (0, import_smithy_client.map)({
|
|
4987
3111
|
$metadata: deserializeMetadata(output)
|
|
@@ -4989,40 +3113,9 @@ var de_PutDeliverabilityDashboardOptionCommand = /* @__PURE__ */ __name(async (o
|
|
|
4989
3113
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4990
3114
|
return contents;
|
|
4991
3115
|
}, "de_PutDeliverabilityDashboardOptionCommand");
|
|
4992
|
-
var de_PutDeliverabilityDashboardOptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4993
|
-
const parsedOutput = {
|
|
4994
|
-
...output,
|
|
4995
|
-
body: await parseErrorBody(output.body, context)
|
|
4996
|
-
};
|
|
4997
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4998
|
-
switch (errorCode) {
|
|
4999
|
-
case "AlreadyExistsException":
|
|
5000
|
-
case "com.amazonaws.sesv2#AlreadyExistsException":
|
|
5001
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
5002
|
-
case "BadRequestException":
|
|
5003
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
5004
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5005
|
-
case "LimitExceededException":
|
|
5006
|
-
case "com.amazonaws.sesv2#LimitExceededException":
|
|
5007
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
5008
|
-
case "NotFoundException":
|
|
5009
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
5010
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
5011
|
-
case "TooManyRequestsException":
|
|
5012
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
5013
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
5014
|
-
default:
|
|
5015
|
-
const parsedBody = parsedOutput.body;
|
|
5016
|
-
return throwDefaultError({
|
|
5017
|
-
output,
|
|
5018
|
-
parsedBody,
|
|
5019
|
-
errorCode
|
|
5020
|
-
});
|
|
5021
|
-
}
|
|
5022
|
-
}, "de_PutDeliverabilityDashboardOptionCommandError");
|
|
5023
3116
|
var de_PutEmailIdentityConfigurationSetAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5024
3117
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5025
|
-
return
|
|
3118
|
+
return de_CommandError(output, context);
|
|
5026
3119
|
}
|
|
5027
3120
|
const contents = (0, import_smithy_client.map)({
|
|
5028
3121
|
$metadata: deserializeMetadata(output)
|
|
@@ -5030,34 +3123,9 @@ var de_PutEmailIdentityConfigurationSetAttributesCommand = /* @__PURE__ */ __nam
|
|
|
5030
3123
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5031
3124
|
return contents;
|
|
5032
3125
|
}, "de_PutEmailIdentityConfigurationSetAttributesCommand");
|
|
5033
|
-
var de_PutEmailIdentityConfigurationSetAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5034
|
-
const parsedOutput = {
|
|
5035
|
-
...output,
|
|
5036
|
-
body: await parseErrorBody(output.body, context)
|
|
5037
|
-
};
|
|
5038
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5039
|
-
switch (errorCode) {
|
|
5040
|
-
case "BadRequestException":
|
|
5041
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
5042
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5043
|
-
case "NotFoundException":
|
|
5044
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
5045
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
5046
|
-
case "TooManyRequestsException":
|
|
5047
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
5048
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
5049
|
-
default:
|
|
5050
|
-
const parsedBody = parsedOutput.body;
|
|
5051
|
-
return throwDefaultError({
|
|
5052
|
-
output,
|
|
5053
|
-
parsedBody,
|
|
5054
|
-
errorCode
|
|
5055
|
-
});
|
|
5056
|
-
}
|
|
5057
|
-
}, "de_PutEmailIdentityConfigurationSetAttributesCommandError");
|
|
5058
3126
|
var de_PutEmailIdentityDkimAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5059
3127
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5060
|
-
return
|
|
3128
|
+
return de_CommandError(output, context);
|
|
5061
3129
|
}
|
|
5062
3130
|
const contents = (0, import_smithy_client.map)({
|
|
5063
3131
|
$metadata: deserializeMetadata(output)
|
|
@@ -5065,34 +3133,9 @@ var de_PutEmailIdentityDkimAttributesCommand = /* @__PURE__ */ __name(async (out
|
|
|
5065
3133
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5066
3134
|
return contents;
|
|
5067
3135
|
}, "de_PutEmailIdentityDkimAttributesCommand");
|
|
5068
|
-
var de_PutEmailIdentityDkimAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5069
|
-
const parsedOutput = {
|
|
5070
|
-
...output,
|
|
5071
|
-
body: await parseErrorBody(output.body, context)
|
|
5072
|
-
};
|
|
5073
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5074
|
-
switch (errorCode) {
|
|
5075
|
-
case "BadRequestException":
|
|
5076
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
5077
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5078
|
-
case "NotFoundException":
|
|
5079
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
5080
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
5081
|
-
case "TooManyRequestsException":
|
|
5082
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
5083
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
5084
|
-
default:
|
|
5085
|
-
const parsedBody = parsedOutput.body;
|
|
5086
|
-
return throwDefaultError({
|
|
5087
|
-
output,
|
|
5088
|
-
parsedBody,
|
|
5089
|
-
errorCode
|
|
5090
|
-
});
|
|
5091
|
-
}
|
|
5092
|
-
}, "de_PutEmailIdentityDkimAttributesCommandError");
|
|
5093
3136
|
var de_PutEmailIdentityDkimSigningAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5094
3137
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5095
|
-
return
|
|
3138
|
+
return de_CommandError(output, context);
|
|
5096
3139
|
}
|
|
5097
3140
|
const contents = (0, import_smithy_client.map)({
|
|
5098
3141
|
$metadata: deserializeMetadata(output)
|
|
@@ -5105,34 +3148,9 @@ var de_PutEmailIdentityDkimSigningAttributesCommand = /* @__PURE__ */ __name(asy
|
|
|
5105
3148
|
Object.assign(contents, doc);
|
|
5106
3149
|
return contents;
|
|
5107
3150
|
}, "de_PutEmailIdentityDkimSigningAttributesCommand");
|
|
5108
|
-
var de_PutEmailIdentityDkimSigningAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5109
|
-
const parsedOutput = {
|
|
5110
|
-
...output,
|
|
5111
|
-
body: await parseErrorBody(output.body, context)
|
|
5112
|
-
};
|
|
5113
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5114
|
-
switch (errorCode) {
|
|
5115
|
-
case "BadRequestException":
|
|
5116
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
5117
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5118
|
-
case "NotFoundException":
|
|
5119
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
5120
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
5121
|
-
case "TooManyRequestsException":
|
|
5122
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
5123
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
5124
|
-
default:
|
|
5125
|
-
const parsedBody = parsedOutput.body;
|
|
5126
|
-
return throwDefaultError({
|
|
5127
|
-
output,
|
|
5128
|
-
parsedBody,
|
|
5129
|
-
errorCode
|
|
5130
|
-
});
|
|
5131
|
-
}
|
|
5132
|
-
}, "de_PutEmailIdentityDkimSigningAttributesCommandError");
|
|
5133
3151
|
var de_PutEmailIdentityFeedbackAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5134
3152
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5135
|
-
return
|
|
3153
|
+
return de_CommandError(output, context);
|
|
5136
3154
|
}
|
|
5137
3155
|
const contents = (0, import_smithy_client.map)({
|
|
5138
3156
|
$metadata: deserializeMetadata(output)
|
|
@@ -5140,34 +3158,9 @@ var de_PutEmailIdentityFeedbackAttributesCommand = /* @__PURE__ */ __name(async
|
|
|
5140
3158
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5141
3159
|
return contents;
|
|
5142
3160
|
}, "de_PutEmailIdentityFeedbackAttributesCommand");
|
|
5143
|
-
var de_PutEmailIdentityFeedbackAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5144
|
-
const parsedOutput = {
|
|
5145
|
-
...output,
|
|
5146
|
-
body: await parseErrorBody(output.body, context)
|
|
5147
|
-
};
|
|
5148
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5149
|
-
switch (errorCode) {
|
|
5150
|
-
case "BadRequestException":
|
|
5151
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
5152
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5153
|
-
case "NotFoundException":
|
|
5154
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
5155
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
5156
|
-
case "TooManyRequestsException":
|
|
5157
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
5158
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
5159
|
-
default:
|
|
5160
|
-
const parsedBody = parsedOutput.body;
|
|
5161
|
-
return throwDefaultError({
|
|
5162
|
-
output,
|
|
5163
|
-
parsedBody,
|
|
5164
|
-
errorCode
|
|
5165
|
-
});
|
|
5166
|
-
}
|
|
5167
|
-
}, "de_PutEmailIdentityFeedbackAttributesCommandError");
|
|
5168
3161
|
var de_PutEmailIdentityMailFromAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5169
3162
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5170
|
-
return
|
|
3163
|
+
return de_CommandError(output, context);
|
|
5171
3164
|
}
|
|
5172
3165
|
const contents = (0, import_smithy_client.map)({
|
|
5173
3166
|
$metadata: deserializeMetadata(output)
|
|
@@ -5175,34 +3168,9 @@ var de_PutEmailIdentityMailFromAttributesCommand = /* @__PURE__ */ __name(async
|
|
|
5175
3168
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5176
3169
|
return contents;
|
|
5177
3170
|
}, "de_PutEmailIdentityMailFromAttributesCommand");
|
|
5178
|
-
var de_PutEmailIdentityMailFromAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5179
|
-
const parsedOutput = {
|
|
5180
|
-
...output,
|
|
5181
|
-
body: await parseErrorBody(output.body, context)
|
|
5182
|
-
};
|
|
5183
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5184
|
-
switch (errorCode) {
|
|
5185
|
-
case "BadRequestException":
|
|
5186
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
5187
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5188
|
-
case "NotFoundException":
|
|
5189
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
5190
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
5191
|
-
case "TooManyRequestsException":
|
|
5192
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
5193
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
5194
|
-
default:
|
|
5195
|
-
const parsedBody = parsedOutput.body;
|
|
5196
|
-
return throwDefaultError({
|
|
5197
|
-
output,
|
|
5198
|
-
parsedBody,
|
|
5199
|
-
errorCode
|
|
5200
|
-
});
|
|
5201
|
-
}
|
|
5202
|
-
}, "de_PutEmailIdentityMailFromAttributesCommandError");
|
|
5203
3171
|
var de_PutSuppressedDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5204
3172
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5205
|
-
return
|
|
3173
|
+
return de_CommandError(output, context);
|
|
5206
3174
|
}
|
|
5207
3175
|
const contents = (0, import_smithy_client.map)({
|
|
5208
3176
|
$metadata: deserializeMetadata(output)
|
|
@@ -5210,190 +3178,51 @@ var de_PutSuppressedDestinationCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
5210
3178
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5211
3179
|
return contents;
|
|
5212
3180
|
}, "de_PutSuppressedDestinationCommand");
|
|
5213
|
-
var de_PutSuppressedDestinationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5214
|
-
const parsedOutput = {
|
|
5215
|
-
...output,
|
|
5216
|
-
body: await parseErrorBody(output.body, context)
|
|
5217
|
-
};
|
|
5218
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5219
|
-
switch (errorCode) {
|
|
5220
|
-
case "BadRequestException":
|
|
5221
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
5222
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5223
|
-
case "TooManyRequestsException":
|
|
5224
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
5225
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
5226
|
-
default:
|
|
5227
|
-
const parsedBody = parsedOutput.body;
|
|
5228
|
-
return throwDefaultError({
|
|
5229
|
-
output,
|
|
5230
|
-
parsedBody,
|
|
5231
|
-
errorCode
|
|
5232
|
-
});
|
|
5233
|
-
}
|
|
5234
|
-
}, "de_PutSuppressedDestinationCommandError");
|
|
5235
3181
|
var de_SendBulkEmailCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5236
3182
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5237
|
-
return
|
|
3183
|
+
return de_CommandError(output, context);
|
|
5238
3184
|
}
|
|
5239
3185
|
const contents = (0, import_smithy_client.map)({
|
|
5240
3186
|
$metadata: deserializeMetadata(output)
|
|
5241
3187
|
});
|
|
5242
3188
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
5243
3189
|
const doc = (0, import_smithy_client.take)(data, {
|
|
5244
|
-
BulkEmailEntryResults: import_smithy_client._json
|
|
5245
|
-
});
|
|
5246
|
-
Object.assign(contents, doc);
|
|
5247
|
-
return contents;
|
|
5248
|
-
}, "de_SendBulkEmailCommand");
|
|
5249
|
-
var
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
case "com.amazonaws.sesv2#MailFromDomainNotVerifiedException":
|
|
5267
|
-
throw await de_MailFromDomainNotVerifiedExceptionRes(parsedOutput, context);
|
|
5268
|
-
case "MessageRejected":
|
|
5269
|
-
case "com.amazonaws.sesv2#MessageRejected":
|
|
5270
|
-
throw await de_MessageRejectedRes(parsedOutput, context);
|
|
5271
|
-
case "NotFoundException":
|
|
5272
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
5273
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
5274
|
-
case "SendingPausedException":
|
|
5275
|
-
case "com.amazonaws.sesv2#SendingPausedException":
|
|
5276
|
-
throw await de_SendingPausedExceptionRes(parsedOutput, context);
|
|
5277
|
-
case "TooManyRequestsException":
|
|
5278
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
5279
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
5280
|
-
default:
|
|
5281
|
-
const parsedBody = parsedOutput.body;
|
|
5282
|
-
return throwDefaultError({
|
|
5283
|
-
output,
|
|
5284
|
-
parsedBody,
|
|
5285
|
-
errorCode
|
|
5286
|
-
});
|
|
5287
|
-
}
|
|
5288
|
-
}, "de_SendBulkEmailCommandError");
|
|
5289
|
-
var de_SendCustomVerificationEmailCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5290
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5291
|
-
return de_SendCustomVerificationEmailCommandError(output, context);
|
|
5292
|
-
}
|
|
5293
|
-
const contents = (0, import_smithy_client.map)({
|
|
5294
|
-
$metadata: deserializeMetadata(output)
|
|
5295
|
-
});
|
|
5296
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
5297
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
5298
|
-
MessageId: import_smithy_client.expectString
|
|
5299
|
-
});
|
|
5300
|
-
Object.assign(contents, doc);
|
|
5301
|
-
return contents;
|
|
5302
|
-
}, "de_SendCustomVerificationEmailCommand");
|
|
5303
|
-
var de_SendCustomVerificationEmailCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5304
|
-
const parsedOutput = {
|
|
5305
|
-
...output,
|
|
5306
|
-
body: await parseErrorBody(output.body, context)
|
|
5307
|
-
};
|
|
5308
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5309
|
-
switch (errorCode) {
|
|
5310
|
-
case "BadRequestException":
|
|
5311
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
5312
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5313
|
-
case "LimitExceededException":
|
|
5314
|
-
case "com.amazonaws.sesv2#LimitExceededException":
|
|
5315
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
5316
|
-
case "MailFromDomainNotVerifiedException":
|
|
5317
|
-
case "com.amazonaws.sesv2#MailFromDomainNotVerifiedException":
|
|
5318
|
-
throw await de_MailFromDomainNotVerifiedExceptionRes(parsedOutput, context);
|
|
5319
|
-
case "MessageRejected":
|
|
5320
|
-
case "com.amazonaws.sesv2#MessageRejected":
|
|
5321
|
-
throw await de_MessageRejectedRes(parsedOutput, context);
|
|
5322
|
-
case "NotFoundException":
|
|
5323
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
5324
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
5325
|
-
case "SendingPausedException":
|
|
5326
|
-
case "com.amazonaws.sesv2#SendingPausedException":
|
|
5327
|
-
throw await de_SendingPausedExceptionRes(parsedOutput, context);
|
|
5328
|
-
case "TooManyRequestsException":
|
|
5329
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
5330
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
5331
|
-
default:
|
|
5332
|
-
const parsedBody = parsedOutput.body;
|
|
5333
|
-
return throwDefaultError({
|
|
5334
|
-
output,
|
|
5335
|
-
parsedBody,
|
|
5336
|
-
errorCode
|
|
5337
|
-
});
|
|
5338
|
-
}
|
|
5339
|
-
}, "de_SendCustomVerificationEmailCommandError");
|
|
5340
|
-
var de_SendEmailCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5341
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5342
|
-
return de_SendEmailCommandError(output, context);
|
|
5343
|
-
}
|
|
5344
|
-
const contents = (0, import_smithy_client.map)({
|
|
5345
|
-
$metadata: deserializeMetadata(output)
|
|
5346
|
-
});
|
|
5347
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
5348
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
5349
|
-
MessageId: import_smithy_client.expectString
|
|
5350
|
-
});
|
|
5351
|
-
Object.assign(contents, doc);
|
|
5352
|
-
return contents;
|
|
5353
|
-
}, "de_SendEmailCommand");
|
|
5354
|
-
var de_SendEmailCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5355
|
-
const parsedOutput = {
|
|
5356
|
-
...output,
|
|
5357
|
-
body: await parseErrorBody(output.body, context)
|
|
5358
|
-
};
|
|
5359
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5360
|
-
switch (errorCode) {
|
|
5361
|
-
case "AccountSuspendedException":
|
|
5362
|
-
case "com.amazonaws.sesv2#AccountSuspendedException":
|
|
5363
|
-
throw await de_AccountSuspendedExceptionRes(parsedOutput, context);
|
|
5364
|
-
case "BadRequestException":
|
|
5365
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
5366
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5367
|
-
case "LimitExceededException":
|
|
5368
|
-
case "com.amazonaws.sesv2#LimitExceededException":
|
|
5369
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
5370
|
-
case "MailFromDomainNotVerifiedException":
|
|
5371
|
-
case "com.amazonaws.sesv2#MailFromDomainNotVerifiedException":
|
|
5372
|
-
throw await de_MailFromDomainNotVerifiedExceptionRes(parsedOutput, context);
|
|
5373
|
-
case "MessageRejected":
|
|
5374
|
-
case "com.amazonaws.sesv2#MessageRejected":
|
|
5375
|
-
throw await de_MessageRejectedRes(parsedOutput, context);
|
|
5376
|
-
case "NotFoundException":
|
|
5377
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
5378
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
5379
|
-
case "SendingPausedException":
|
|
5380
|
-
case "com.amazonaws.sesv2#SendingPausedException":
|
|
5381
|
-
throw await de_SendingPausedExceptionRes(parsedOutput, context);
|
|
5382
|
-
case "TooManyRequestsException":
|
|
5383
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
5384
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
5385
|
-
default:
|
|
5386
|
-
const parsedBody = parsedOutput.body;
|
|
5387
|
-
return throwDefaultError({
|
|
5388
|
-
output,
|
|
5389
|
-
parsedBody,
|
|
5390
|
-
errorCode
|
|
5391
|
-
});
|
|
3190
|
+
BulkEmailEntryResults: import_smithy_client._json
|
|
3191
|
+
});
|
|
3192
|
+
Object.assign(contents, doc);
|
|
3193
|
+
return contents;
|
|
3194
|
+
}, "de_SendBulkEmailCommand");
|
|
3195
|
+
var de_SendCustomVerificationEmailCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3196
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3197
|
+
return de_CommandError(output, context);
|
|
3198
|
+
}
|
|
3199
|
+
const contents = (0, import_smithy_client.map)({
|
|
3200
|
+
$metadata: deserializeMetadata(output)
|
|
3201
|
+
});
|
|
3202
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
3203
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
3204
|
+
MessageId: import_smithy_client.expectString
|
|
3205
|
+
});
|
|
3206
|
+
Object.assign(contents, doc);
|
|
3207
|
+
return contents;
|
|
3208
|
+
}, "de_SendCustomVerificationEmailCommand");
|
|
3209
|
+
var de_SendEmailCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3210
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3211
|
+
return de_CommandError(output, context);
|
|
5392
3212
|
}
|
|
5393
|
-
|
|
3213
|
+
const contents = (0, import_smithy_client.map)({
|
|
3214
|
+
$metadata: deserializeMetadata(output)
|
|
3215
|
+
});
|
|
3216
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
3217
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
3218
|
+
MessageId: import_smithy_client.expectString
|
|
3219
|
+
});
|
|
3220
|
+
Object.assign(contents, doc);
|
|
3221
|
+
return contents;
|
|
3222
|
+
}, "de_SendEmailCommand");
|
|
5394
3223
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5395
3224
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5396
|
-
return
|
|
3225
|
+
return de_CommandError(output, context);
|
|
5397
3226
|
}
|
|
5398
3227
|
const contents = (0, import_smithy_client.map)({
|
|
5399
3228
|
$metadata: deserializeMetadata(output)
|
|
@@ -5401,37 +3230,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
5401
3230
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5402
3231
|
return contents;
|
|
5403
3232
|
}, "de_TagResourceCommand");
|
|
5404
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5405
|
-
const parsedOutput = {
|
|
5406
|
-
...output,
|
|
5407
|
-
body: await parseErrorBody(output.body, context)
|
|
5408
|
-
};
|
|
5409
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5410
|
-
switch (errorCode) {
|
|
5411
|
-
case "BadRequestException":
|
|
5412
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
5413
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5414
|
-
case "ConcurrentModificationException":
|
|
5415
|
-
case "com.amazonaws.sesv2#ConcurrentModificationException":
|
|
5416
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
5417
|
-
case "NotFoundException":
|
|
5418
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
5419
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
5420
|
-
case "TooManyRequestsException":
|
|
5421
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
5422
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
5423
|
-
default:
|
|
5424
|
-
const parsedBody = parsedOutput.body;
|
|
5425
|
-
return throwDefaultError({
|
|
5426
|
-
output,
|
|
5427
|
-
parsedBody,
|
|
5428
|
-
errorCode
|
|
5429
|
-
});
|
|
5430
|
-
}
|
|
5431
|
-
}, "de_TagResourceCommandError");
|
|
5432
3233
|
var de_TestRenderEmailTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5433
3234
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5434
|
-
return
|
|
3235
|
+
return de_CommandError(output, context);
|
|
5435
3236
|
}
|
|
5436
3237
|
const contents = (0, import_smithy_client.map)({
|
|
5437
3238
|
$metadata: deserializeMetadata(output)
|
|
@@ -5443,34 +3244,9 @@ var de_TestRenderEmailTemplateCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
5443
3244
|
Object.assign(contents, doc);
|
|
5444
3245
|
return contents;
|
|
5445
3246
|
}, "de_TestRenderEmailTemplateCommand");
|
|
5446
|
-
var de_TestRenderEmailTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5447
|
-
const parsedOutput = {
|
|
5448
|
-
...output,
|
|
5449
|
-
body: await parseErrorBody(output.body, context)
|
|
5450
|
-
};
|
|
5451
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5452
|
-
switch (errorCode) {
|
|
5453
|
-
case "BadRequestException":
|
|
5454
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
5455
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5456
|
-
case "NotFoundException":
|
|
5457
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
5458
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
5459
|
-
case "TooManyRequestsException":
|
|
5460
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
5461
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
5462
|
-
default:
|
|
5463
|
-
const parsedBody = parsedOutput.body;
|
|
5464
|
-
return throwDefaultError({
|
|
5465
|
-
output,
|
|
5466
|
-
parsedBody,
|
|
5467
|
-
errorCode
|
|
5468
|
-
});
|
|
5469
|
-
}
|
|
5470
|
-
}, "de_TestRenderEmailTemplateCommandError");
|
|
5471
3247
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5472
3248
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5473
|
-
return
|
|
3249
|
+
return de_CommandError(output, context);
|
|
5474
3250
|
}
|
|
5475
3251
|
const contents = (0, import_smithy_client.map)({
|
|
5476
3252
|
$metadata: deserializeMetadata(output)
|
|
@@ -5478,37 +3254,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
5478
3254
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5479
3255
|
return contents;
|
|
5480
3256
|
}, "de_UntagResourceCommand");
|
|
5481
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5482
|
-
const parsedOutput = {
|
|
5483
|
-
...output,
|
|
5484
|
-
body: await parseErrorBody(output.body, context)
|
|
5485
|
-
};
|
|
5486
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5487
|
-
switch (errorCode) {
|
|
5488
|
-
case "BadRequestException":
|
|
5489
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
5490
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5491
|
-
case "ConcurrentModificationException":
|
|
5492
|
-
case "com.amazonaws.sesv2#ConcurrentModificationException":
|
|
5493
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
5494
|
-
case "NotFoundException":
|
|
5495
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
5496
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
5497
|
-
case "TooManyRequestsException":
|
|
5498
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
5499
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
5500
|
-
default:
|
|
5501
|
-
const parsedBody = parsedOutput.body;
|
|
5502
|
-
return throwDefaultError({
|
|
5503
|
-
output,
|
|
5504
|
-
parsedBody,
|
|
5505
|
-
errorCode
|
|
5506
|
-
});
|
|
5507
|
-
}
|
|
5508
|
-
}, "de_UntagResourceCommandError");
|
|
5509
3257
|
var de_UpdateConfigurationSetEventDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5510
3258
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5511
|
-
return
|
|
3259
|
+
return de_CommandError(output, context);
|
|
5512
3260
|
}
|
|
5513
3261
|
const contents = (0, import_smithy_client.map)({
|
|
5514
3262
|
$metadata: deserializeMetadata(output)
|
|
@@ -5516,34 +3264,9 @@ var de_UpdateConfigurationSetEventDestinationCommand = /* @__PURE__ */ __name(as
|
|
|
5516
3264
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5517
3265
|
return contents;
|
|
5518
3266
|
}, "de_UpdateConfigurationSetEventDestinationCommand");
|
|
5519
|
-
var de_UpdateConfigurationSetEventDestinationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5520
|
-
const parsedOutput = {
|
|
5521
|
-
...output,
|
|
5522
|
-
body: await parseErrorBody(output.body, context)
|
|
5523
|
-
};
|
|
5524
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5525
|
-
switch (errorCode) {
|
|
5526
|
-
case "BadRequestException":
|
|
5527
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
5528
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5529
|
-
case "NotFoundException":
|
|
5530
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
5531
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
5532
|
-
case "TooManyRequestsException":
|
|
5533
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
5534
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
5535
|
-
default:
|
|
5536
|
-
const parsedBody = parsedOutput.body;
|
|
5537
|
-
return throwDefaultError({
|
|
5538
|
-
output,
|
|
5539
|
-
parsedBody,
|
|
5540
|
-
errorCode
|
|
5541
|
-
});
|
|
5542
|
-
}
|
|
5543
|
-
}, "de_UpdateConfigurationSetEventDestinationCommandError");
|
|
5544
3267
|
var de_UpdateContactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5545
3268
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5546
|
-
return
|
|
3269
|
+
return de_CommandError(output, context);
|
|
5547
3270
|
}
|
|
5548
3271
|
const contents = (0, import_smithy_client.map)({
|
|
5549
3272
|
$metadata: deserializeMetadata(output)
|
|
@@ -5551,37 +3274,9 @@ var de_UpdateContactCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
5551
3274
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5552
3275
|
return contents;
|
|
5553
3276
|
}, "de_UpdateContactCommand");
|
|
5554
|
-
var de_UpdateContactCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5555
|
-
const parsedOutput = {
|
|
5556
|
-
...output,
|
|
5557
|
-
body: await parseErrorBody(output.body, context)
|
|
5558
|
-
};
|
|
5559
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5560
|
-
switch (errorCode) {
|
|
5561
|
-
case "BadRequestException":
|
|
5562
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
5563
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5564
|
-
case "ConcurrentModificationException":
|
|
5565
|
-
case "com.amazonaws.sesv2#ConcurrentModificationException":
|
|
5566
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
5567
|
-
case "NotFoundException":
|
|
5568
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
5569
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
5570
|
-
case "TooManyRequestsException":
|
|
5571
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
5572
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
5573
|
-
default:
|
|
5574
|
-
const parsedBody = parsedOutput.body;
|
|
5575
|
-
return throwDefaultError({
|
|
5576
|
-
output,
|
|
5577
|
-
parsedBody,
|
|
5578
|
-
errorCode
|
|
5579
|
-
});
|
|
5580
|
-
}
|
|
5581
|
-
}, "de_UpdateContactCommandError");
|
|
5582
3277
|
var de_UpdateContactListCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5583
3278
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5584
|
-
return
|
|
3279
|
+
return de_CommandError(output, context);
|
|
5585
3280
|
}
|
|
5586
3281
|
const contents = (0, import_smithy_client.map)({
|
|
5587
3282
|
$metadata: deserializeMetadata(output)
|
|
@@ -5589,37 +3284,9 @@ var de_UpdateContactListCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
5589
3284
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5590
3285
|
return contents;
|
|
5591
3286
|
}, "de_UpdateContactListCommand");
|
|
5592
|
-
var de_UpdateContactListCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5593
|
-
const parsedOutput = {
|
|
5594
|
-
...output,
|
|
5595
|
-
body: await parseErrorBody(output.body, context)
|
|
5596
|
-
};
|
|
5597
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5598
|
-
switch (errorCode) {
|
|
5599
|
-
case "BadRequestException":
|
|
5600
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
5601
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5602
|
-
case "ConcurrentModificationException":
|
|
5603
|
-
case "com.amazonaws.sesv2#ConcurrentModificationException":
|
|
5604
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
5605
|
-
case "NotFoundException":
|
|
5606
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
5607
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
5608
|
-
case "TooManyRequestsException":
|
|
5609
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
5610
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
5611
|
-
default:
|
|
5612
|
-
const parsedBody = parsedOutput.body;
|
|
5613
|
-
return throwDefaultError({
|
|
5614
|
-
output,
|
|
5615
|
-
parsedBody,
|
|
5616
|
-
errorCode
|
|
5617
|
-
});
|
|
5618
|
-
}
|
|
5619
|
-
}, "de_UpdateContactListCommandError");
|
|
5620
3287
|
var de_UpdateCustomVerificationEmailTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5621
3288
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5622
|
-
return
|
|
3289
|
+
return de_CommandError(output, context);
|
|
5623
3290
|
}
|
|
5624
3291
|
const contents = (0, import_smithy_client.map)({
|
|
5625
3292
|
$metadata: deserializeMetadata(output)
|
|
@@ -5627,34 +3294,9 @@ var de_UpdateCustomVerificationEmailTemplateCommand = /* @__PURE__ */ __name(asy
|
|
|
5627
3294
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5628
3295
|
return contents;
|
|
5629
3296
|
}, "de_UpdateCustomVerificationEmailTemplateCommand");
|
|
5630
|
-
var de_UpdateCustomVerificationEmailTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5631
|
-
const parsedOutput = {
|
|
5632
|
-
...output,
|
|
5633
|
-
body: await parseErrorBody(output.body, context)
|
|
5634
|
-
};
|
|
5635
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5636
|
-
switch (errorCode) {
|
|
5637
|
-
case "BadRequestException":
|
|
5638
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
5639
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5640
|
-
case "NotFoundException":
|
|
5641
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
5642
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
5643
|
-
case "TooManyRequestsException":
|
|
5644
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
5645
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
5646
|
-
default:
|
|
5647
|
-
const parsedBody = parsedOutput.body;
|
|
5648
|
-
return throwDefaultError({
|
|
5649
|
-
output,
|
|
5650
|
-
parsedBody,
|
|
5651
|
-
errorCode
|
|
5652
|
-
});
|
|
5653
|
-
}
|
|
5654
|
-
}, "de_UpdateCustomVerificationEmailTemplateCommandError");
|
|
5655
3297
|
var de_UpdateEmailIdentityPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5656
3298
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5657
|
-
return
|
|
3299
|
+
return de_CommandError(output, context);
|
|
5658
3300
|
}
|
|
5659
3301
|
const contents = (0, import_smithy_client.map)({
|
|
5660
3302
|
$metadata: deserializeMetadata(output)
|
|
@@ -5662,34 +3304,9 @@ var de_UpdateEmailIdentityPolicyCommand = /* @__PURE__ */ __name(async (output,
|
|
|
5662
3304
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5663
3305
|
return contents;
|
|
5664
3306
|
}, "de_UpdateEmailIdentityPolicyCommand");
|
|
5665
|
-
var de_UpdateEmailIdentityPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5666
|
-
const parsedOutput = {
|
|
5667
|
-
...output,
|
|
5668
|
-
body: await parseErrorBody(output.body, context)
|
|
5669
|
-
};
|
|
5670
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5671
|
-
switch (errorCode) {
|
|
5672
|
-
case "BadRequestException":
|
|
5673
|
-
case "com.amazonaws.sesv2#BadRequestException":
|
|
5674
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
5675
|
-
case "NotFoundException":
|
|
5676
|
-
case "com.amazonaws.sesv2#NotFoundException":
|
|
5677
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
5678
|
-
case "TooManyRequestsException":
|
|
5679
|
-
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
5680
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
5681
|
-
default:
|
|
5682
|
-
const parsedBody = parsedOutput.body;
|
|
5683
|
-
return throwDefaultError({
|
|
5684
|
-
output,
|
|
5685
|
-
parsedBody,
|
|
5686
|
-
errorCode
|
|
5687
|
-
});
|
|
5688
|
-
}
|
|
5689
|
-
}, "de_UpdateEmailIdentityPolicyCommandError");
|
|
5690
3307
|
var de_UpdateEmailTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5691
3308
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5692
|
-
return
|
|
3309
|
+
return de_CommandError(output, context);
|
|
5693
3310
|
}
|
|
5694
3311
|
const contents = (0, import_smithy_client.map)({
|
|
5695
3312
|
$metadata: deserializeMetadata(output)
|
|
@@ -5697,7 +3314,7 @@ var de_UpdateEmailTemplateCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
5697
3314
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5698
3315
|
return contents;
|
|
5699
3316
|
}, "de_UpdateEmailTemplateCommand");
|
|
5700
|
-
var
|
|
3317
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5701
3318
|
const parsedOutput = {
|
|
5702
3319
|
...output,
|
|
5703
3320
|
body: await parseErrorBody(output.body, context)
|
|
@@ -5707,12 +3324,42 @@ var de_UpdateEmailTemplateCommandError = /* @__PURE__ */ __name(async (output, c
|
|
|
5707
3324
|
case "BadRequestException":
|
|
5708
3325
|
case "com.amazonaws.sesv2#BadRequestException":
|
|
5709
3326
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3327
|
+
case "InternalServiceErrorException":
|
|
3328
|
+
case "com.amazonaws.sesv2#InternalServiceErrorException":
|
|
3329
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
5710
3330
|
case "NotFoundException":
|
|
5711
3331
|
case "com.amazonaws.sesv2#NotFoundException":
|
|
5712
3332
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
5713
3333
|
case "TooManyRequestsException":
|
|
5714
3334
|
case "com.amazonaws.sesv2#TooManyRequestsException":
|
|
5715
3335
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3336
|
+
case "AlreadyExistsException":
|
|
3337
|
+
case "com.amazonaws.sesv2#AlreadyExistsException":
|
|
3338
|
+
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
3339
|
+
case "ConcurrentModificationException":
|
|
3340
|
+
case "com.amazonaws.sesv2#ConcurrentModificationException":
|
|
3341
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3342
|
+
case "LimitExceededException":
|
|
3343
|
+
case "com.amazonaws.sesv2#LimitExceededException":
|
|
3344
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3345
|
+
case "AccountSuspendedException":
|
|
3346
|
+
case "com.amazonaws.sesv2#AccountSuspendedException":
|
|
3347
|
+
throw await de_AccountSuspendedExceptionRes(parsedOutput, context);
|
|
3348
|
+
case "MailFromDomainNotVerifiedException":
|
|
3349
|
+
case "com.amazonaws.sesv2#MailFromDomainNotVerifiedException":
|
|
3350
|
+
throw await de_MailFromDomainNotVerifiedExceptionRes(parsedOutput, context);
|
|
3351
|
+
case "MessageRejected":
|
|
3352
|
+
case "com.amazonaws.sesv2#MessageRejected":
|
|
3353
|
+
throw await de_MessageRejectedRes(parsedOutput, context);
|
|
3354
|
+
case "SendingPausedException":
|
|
3355
|
+
case "com.amazonaws.sesv2#SendingPausedException":
|
|
3356
|
+
throw await de_SendingPausedExceptionRes(parsedOutput, context);
|
|
3357
|
+
case "InvalidNextTokenException":
|
|
3358
|
+
case "com.amazonaws.sesv2#InvalidNextTokenException":
|
|
3359
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3360
|
+
case "ConflictException":
|
|
3361
|
+
case "com.amazonaws.sesv2#ConflictException":
|
|
3362
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5716
3363
|
default:
|
|
5717
3364
|
const parsedBody = parsedOutput.body;
|
|
5718
3365
|
return throwDefaultError({
|
|
@@ -5721,7 +3368,7 @@ var de_UpdateEmailTemplateCommandError = /* @__PURE__ */ __name(async (output, c
|
|
|
5721
3368
|
errorCode
|
|
5722
3369
|
});
|
|
5723
3370
|
}
|
|
5724
|
-
}, "
|
|
3371
|
+
}, "de_CommandError");
|
|
5725
3372
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(SESv2ServiceException);
|
|
5726
3373
|
var de_AccountSuspendedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
5727
3374
|
const contents = (0, import_smithy_client.map)({});
|