@aws-sdk/client-sesv2 3.525.0 → 3.529.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 CHANGED
@@ -353,6 +353,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
353
353
  var import_types = require("@smithy/types");
354
354
 
355
355
  // src/protocols/Aws_restJson1.ts
356
+ var import_core2 = require("@aws-sdk/core");
356
357
 
357
358
 
358
359
 
@@ -2190,7 +2191,7 @@ var de_BatchGetMetricDataCommand = /* @__PURE__ */ __name(async (output, context
2190
2191
  const contents = (0, import_smithy_client.map)({
2191
2192
  $metadata: deserializeMetadata(output)
2192
2193
  });
2193
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2194
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2194
2195
  const doc = (0, import_smithy_client.take)(data, {
2195
2196
  Errors: import_smithy_client._json,
2196
2197
  Results: (_) => de_MetricDataResultList(_, context)
@@ -2275,7 +2276,7 @@ var de_CreateDeliverabilityTestReportCommand = /* @__PURE__ */ __name(async (out
2275
2276
  const contents = (0, import_smithy_client.map)({
2276
2277
  $metadata: deserializeMetadata(output)
2277
2278
  });
2278
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2279
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2279
2280
  const doc = (0, import_smithy_client.take)(data, {
2280
2281
  DeliverabilityTestStatus: import_smithy_client.expectString,
2281
2282
  ReportId: import_smithy_client.expectString
@@ -2290,7 +2291,7 @@ var de_CreateEmailIdentityCommand = /* @__PURE__ */ __name(async (output, contex
2290
2291
  const contents = (0, import_smithy_client.map)({
2291
2292
  $metadata: deserializeMetadata(output)
2292
2293
  });
2293
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2294
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2294
2295
  const doc = (0, import_smithy_client.take)(data, {
2295
2296
  DkimAttributes: (_) => de_DkimAttributes(_, context),
2296
2297
  IdentityType: import_smithy_client.expectString,
@@ -2326,7 +2327,7 @@ var de_CreateExportJobCommand = /* @__PURE__ */ __name(async (output, context) =
2326
2327
  const contents = (0, import_smithy_client.map)({
2327
2328
  $metadata: deserializeMetadata(output)
2328
2329
  });
2329
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2330
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2330
2331
  const doc = (0, import_smithy_client.take)(data, {
2331
2332
  JobId: import_smithy_client.expectString
2332
2333
  });
@@ -2340,7 +2341,7 @@ var de_CreateImportJobCommand = /* @__PURE__ */ __name(async (output, context) =
2340
2341
  const contents = (0, import_smithy_client.map)({
2341
2342
  $metadata: deserializeMetadata(output)
2342
2343
  });
2343
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2344
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2344
2345
  const doc = (0, import_smithy_client.take)(data, {
2345
2346
  JobId: import_smithy_client.expectString
2346
2347
  });
@@ -2454,7 +2455,7 @@ var de_GetAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
2454
2455
  const contents = (0, import_smithy_client.map)({
2455
2456
  $metadata: deserializeMetadata(output)
2456
2457
  });
2457
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2458
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2458
2459
  const doc = (0, import_smithy_client.take)(data, {
2459
2460
  DedicatedIpAutoWarmupEnabled: import_smithy_client.expectBoolean,
2460
2461
  Details: import_smithy_client._json,
@@ -2475,7 +2476,7 @@ var de_GetBlacklistReportsCommand = /* @__PURE__ */ __name(async (output, contex
2475
2476
  const contents = (0, import_smithy_client.map)({
2476
2477
  $metadata: deserializeMetadata(output)
2477
2478
  });
2478
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2479
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2479
2480
  const doc = (0, import_smithy_client.take)(data, {
2480
2481
  BlacklistReport: (_) => de_BlacklistReport(_, context)
2481
2482
  });
@@ -2489,7 +2490,7 @@ var de_GetConfigurationSetCommand = /* @__PURE__ */ __name(async (output, contex
2489
2490
  const contents = (0, import_smithy_client.map)({
2490
2491
  $metadata: deserializeMetadata(output)
2491
2492
  });
2492
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2493
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2493
2494
  const doc = (0, import_smithy_client.take)(data, {
2494
2495
  ConfigurationSetName: import_smithy_client.expectString,
2495
2496
  DeliveryOptions: import_smithy_client._json,
@@ -2510,7 +2511,7 @@ var de_GetConfigurationSetEventDestinationsCommand = /* @__PURE__ */ __name(asyn
2510
2511
  const contents = (0, import_smithy_client.map)({
2511
2512
  $metadata: deserializeMetadata(output)
2512
2513
  });
2513
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2514
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2514
2515
  const doc = (0, import_smithy_client.take)(data, {
2515
2516
  EventDestinations: import_smithy_client._json
2516
2517
  });
@@ -2524,7 +2525,7 @@ var de_GetContactCommand = /* @__PURE__ */ __name(async (output, context) => {
2524
2525
  const contents = (0, import_smithy_client.map)({
2525
2526
  $metadata: deserializeMetadata(output)
2526
2527
  });
2527
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2528
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2528
2529
  const doc = (0, import_smithy_client.take)(data, {
2529
2530
  AttributesData: import_smithy_client.expectString,
2530
2531
  ContactListName: import_smithy_client.expectString,
@@ -2545,7 +2546,7 @@ var de_GetContactListCommand = /* @__PURE__ */ __name(async (output, context) =>
2545
2546
  const contents = (0, import_smithy_client.map)({
2546
2547
  $metadata: deserializeMetadata(output)
2547
2548
  });
2548
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2549
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2549
2550
  const doc = (0, import_smithy_client.take)(data, {
2550
2551
  ContactListName: import_smithy_client.expectString,
2551
2552
  CreatedTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
@@ -2564,7 +2565,7 @@ var de_GetCustomVerificationEmailTemplateCommand = /* @__PURE__ */ __name(async
2564
2565
  const contents = (0, import_smithy_client.map)({
2565
2566
  $metadata: deserializeMetadata(output)
2566
2567
  });
2567
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2568
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2568
2569
  const doc = (0, import_smithy_client.take)(data, {
2569
2570
  FailureRedirectionURL: import_smithy_client.expectString,
2570
2571
  FromEmailAddress: import_smithy_client.expectString,
@@ -2583,7 +2584,7 @@ var de_GetDedicatedIpCommand = /* @__PURE__ */ __name(async (output, context) =>
2583
2584
  const contents = (0, import_smithy_client.map)({
2584
2585
  $metadata: deserializeMetadata(output)
2585
2586
  });
2586
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2587
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2587
2588
  const doc = (0, import_smithy_client.take)(data, {
2588
2589
  DedicatedIp: import_smithy_client._json
2589
2590
  });
@@ -2597,7 +2598,7 @@ var de_GetDedicatedIpPoolCommand = /* @__PURE__ */ __name(async (output, context
2597
2598
  const contents = (0, import_smithy_client.map)({
2598
2599
  $metadata: deserializeMetadata(output)
2599
2600
  });
2600
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2601
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2601
2602
  const doc = (0, import_smithy_client.take)(data, {
2602
2603
  DedicatedIpPool: import_smithy_client._json
2603
2604
  });
@@ -2611,7 +2612,7 @@ var de_GetDedicatedIpsCommand = /* @__PURE__ */ __name(async (output, context) =
2611
2612
  const contents = (0, import_smithy_client.map)({
2612
2613
  $metadata: deserializeMetadata(output)
2613
2614
  });
2614
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2615
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2615
2616
  const doc = (0, import_smithy_client.take)(data, {
2616
2617
  DedicatedIps: import_smithy_client._json,
2617
2618
  NextToken: import_smithy_client.expectString
@@ -2626,7 +2627,7 @@ var de_GetDeliverabilityDashboardOptionsCommand = /* @__PURE__ */ __name(async (
2626
2627
  const contents = (0, import_smithy_client.map)({
2627
2628
  $metadata: deserializeMetadata(output)
2628
2629
  });
2629
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2630
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2630
2631
  const doc = (0, import_smithy_client.take)(data, {
2631
2632
  AccountStatus: import_smithy_client.expectString,
2632
2633
  ActiveSubscribedDomains: (_) => de_DomainDeliverabilityTrackingOptions(_, context),
@@ -2644,7 +2645,7 @@ var de_GetDeliverabilityTestReportCommand = /* @__PURE__ */ __name(async (output
2644
2645
  const contents = (0, import_smithy_client.map)({
2645
2646
  $metadata: deserializeMetadata(output)
2646
2647
  });
2647
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2648
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2648
2649
  const doc = (0, import_smithy_client.take)(data, {
2649
2650
  DeliverabilityTestReport: (_) => de_DeliverabilityTestReport(_, context),
2650
2651
  IspPlacements: (_) => de_IspPlacements(_, context),
@@ -2662,7 +2663,7 @@ var de_GetDomainDeliverabilityCampaignCommand = /* @__PURE__ */ __name(async (ou
2662
2663
  const contents = (0, import_smithy_client.map)({
2663
2664
  $metadata: deserializeMetadata(output)
2664
2665
  });
2665
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2666
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2666
2667
  const doc = (0, import_smithy_client.take)(data, {
2667
2668
  DomainDeliverabilityCampaign: (_) => de_DomainDeliverabilityCampaign(_, context)
2668
2669
  });
@@ -2676,7 +2677,7 @@ var de_GetDomainStatisticsReportCommand = /* @__PURE__ */ __name(async (output,
2676
2677
  const contents = (0, import_smithy_client.map)({
2677
2678
  $metadata: deserializeMetadata(output)
2678
2679
  });
2679
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2680
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2680
2681
  const doc = (0, import_smithy_client.take)(data, {
2681
2682
  DailyVolumes: (_) => de_DailyVolumes(_, context),
2682
2683
  OverallVolume: (_) => de_OverallVolume(_, context)
@@ -2691,7 +2692,7 @@ var de_GetEmailIdentityCommand = /* @__PURE__ */ __name(async (output, context)
2691
2692
  const contents = (0, import_smithy_client.map)({
2692
2693
  $metadata: deserializeMetadata(output)
2693
2694
  });
2694
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2695
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2695
2696
  const doc = (0, import_smithy_client.take)(data, {
2696
2697
  ConfigurationSetName: import_smithy_client.expectString,
2697
2698
  DkimAttributes: (_) => de_DkimAttributes(_, context),
@@ -2714,7 +2715,7 @@ var de_GetEmailIdentityPoliciesCommand = /* @__PURE__ */ __name(async (output, c
2714
2715
  const contents = (0, import_smithy_client.map)({
2715
2716
  $metadata: deserializeMetadata(output)
2716
2717
  });
2717
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2718
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2718
2719
  const doc = (0, import_smithy_client.take)(data, {
2719
2720
  Policies: import_smithy_client._json
2720
2721
  });
@@ -2728,7 +2729,7 @@ var de_GetEmailTemplateCommand = /* @__PURE__ */ __name(async (output, context)
2728
2729
  const contents = (0, import_smithy_client.map)({
2729
2730
  $metadata: deserializeMetadata(output)
2730
2731
  });
2731
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2732
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2732
2733
  const doc = (0, import_smithy_client.take)(data, {
2733
2734
  TemplateContent: import_smithy_client._json,
2734
2735
  TemplateName: import_smithy_client.expectString
@@ -2743,7 +2744,7 @@ var de_GetExportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
2743
2744
  const contents = (0, import_smithy_client.map)({
2744
2745
  $metadata: deserializeMetadata(output)
2745
2746
  });
2746
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2747
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2747
2748
  const doc = (0, import_smithy_client.take)(data, {
2748
2749
  CompletedTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2749
2750
  CreatedTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
@@ -2765,7 +2766,7 @@ var de_GetImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
2765
2766
  const contents = (0, import_smithy_client.map)({
2766
2767
  $metadata: deserializeMetadata(output)
2767
2768
  });
2768
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2769
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2769
2770
  const doc = (0, import_smithy_client.take)(data, {
2770
2771
  CompletedTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2771
2772
  CreatedTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
@@ -2787,7 +2788,7 @@ var de_GetMessageInsightsCommand = /* @__PURE__ */ __name(async (output, context
2787
2788
  const contents = (0, import_smithy_client.map)({
2788
2789
  $metadata: deserializeMetadata(output)
2789
2790
  });
2790
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2791
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2791
2792
  const doc = (0, import_smithy_client.take)(data, {
2792
2793
  EmailTags: import_smithy_client._json,
2793
2794
  FromEmailAddress: import_smithy_client.expectString,
@@ -2805,7 +2806,7 @@ var de_GetSuppressedDestinationCommand = /* @__PURE__ */ __name(async (output, c
2805
2806
  const contents = (0, import_smithy_client.map)({
2806
2807
  $metadata: deserializeMetadata(output)
2807
2808
  });
2808
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2809
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2809
2810
  const doc = (0, import_smithy_client.take)(data, {
2810
2811
  SuppressedDestination: (_) => de_SuppressedDestination(_, context)
2811
2812
  });
@@ -2819,7 +2820,7 @@ var de_ListConfigurationSetsCommand = /* @__PURE__ */ __name(async (output, cont
2819
2820
  const contents = (0, import_smithy_client.map)({
2820
2821
  $metadata: deserializeMetadata(output)
2821
2822
  });
2822
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2823
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2823
2824
  const doc = (0, import_smithy_client.take)(data, {
2824
2825
  ConfigurationSets: import_smithy_client._json,
2825
2826
  NextToken: import_smithy_client.expectString
@@ -2834,7 +2835,7 @@ var de_ListContactListsCommand = /* @__PURE__ */ __name(async (output, context)
2834
2835
  const contents = (0, import_smithy_client.map)({
2835
2836
  $metadata: deserializeMetadata(output)
2836
2837
  });
2837
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2838
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2838
2839
  const doc = (0, import_smithy_client.take)(data, {
2839
2840
  ContactLists: (_) => de_ListOfContactLists(_, context),
2840
2841
  NextToken: import_smithy_client.expectString
@@ -2849,7 +2850,7 @@ var de_ListContactsCommand = /* @__PURE__ */ __name(async (output, context) => {
2849
2850
  const contents = (0, import_smithy_client.map)({
2850
2851
  $metadata: deserializeMetadata(output)
2851
2852
  });
2852
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2853
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2853
2854
  const doc = (0, import_smithy_client.take)(data, {
2854
2855
  Contacts: (_) => de_ListOfContacts(_, context),
2855
2856
  NextToken: import_smithy_client.expectString
@@ -2864,7 +2865,7 @@ var de_ListCustomVerificationEmailTemplatesCommand = /* @__PURE__ */ __name(asyn
2864
2865
  const contents = (0, import_smithy_client.map)({
2865
2866
  $metadata: deserializeMetadata(output)
2866
2867
  });
2867
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2868
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2868
2869
  const doc = (0, import_smithy_client.take)(data, {
2869
2870
  CustomVerificationEmailTemplates: import_smithy_client._json,
2870
2871
  NextToken: import_smithy_client.expectString
@@ -2879,7 +2880,7 @@ var de_ListDedicatedIpPoolsCommand = /* @__PURE__ */ __name(async (output, conte
2879
2880
  const contents = (0, import_smithy_client.map)({
2880
2881
  $metadata: deserializeMetadata(output)
2881
2882
  });
2882
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2883
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2883
2884
  const doc = (0, import_smithy_client.take)(data, {
2884
2885
  DedicatedIpPools: import_smithy_client._json,
2885
2886
  NextToken: import_smithy_client.expectString
@@ -2894,7 +2895,7 @@ var de_ListDeliverabilityTestReportsCommand = /* @__PURE__ */ __name(async (outp
2894
2895
  const contents = (0, import_smithy_client.map)({
2895
2896
  $metadata: deserializeMetadata(output)
2896
2897
  });
2897
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2898
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2898
2899
  const doc = (0, import_smithy_client.take)(data, {
2899
2900
  DeliverabilityTestReports: (_) => de_DeliverabilityTestReports(_, context),
2900
2901
  NextToken: import_smithy_client.expectString
@@ -2909,7 +2910,7 @@ var de_ListDomainDeliverabilityCampaignsCommand = /* @__PURE__ */ __name(async (
2909
2910
  const contents = (0, import_smithy_client.map)({
2910
2911
  $metadata: deserializeMetadata(output)
2911
2912
  });
2912
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2913
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2913
2914
  const doc = (0, import_smithy_client.take)(data, {
2914
2915
  DomainDeliverabilityCampaigns: (_) => de_DomainDeliverabilityCampaignList(_, context),
2915
2916
  NextToken: import_smithy_client.expectString
@@ -2924,7 +2925,7 @@ var de_ListEmailIdentitiesCommand = /* @__PURE__ */ __name(async (output, contex
2924
2925
  const contents = (0, import_smithy_client.map)({
2925
2926
  $metadata: deserializeMetadata(output)
2926
2927
  });
2927
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2928
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2928
2929
  const doc = (0, import_smithy_client.take)(data, {
2929
2930
  EmailIdentities: import_smithy_client._json,
2930
2931
  NextToken: import_smithy_client.expectString
@@ -2939,7 +2940,7 @@ var de_ListEmailTemplatesCommand = /* @__PURE__ */ __name(async (output, context
2939
2940
  const contents = (0, import_smithy_client.map)({
2940
2941
  $metadata: deserializeMetadata(output)
2941
2942
  });
2942
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2943
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2943
2944
  const doc = (0, import_smithy_client.take)(data, {
2944
2945
  NextToken: import_smithy_client.expectString,
2945
2946
  TemplatesMetadata: (_) => de_EmailTemplateMetadataList(_, context)
@@ -2954,7 +2955,7 @@ var de_ListExportJobsCommand = /* @__PURE__ */ __name(async (output, context) =>
2954
2955
  const contents = (0, import_smithy_client.map)({
2955
2956
  $metadata: deserializeMetadata(output)
2956
2957
  });
2957
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2958
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2958
2959
  const doc = (0, import_smithy_client.take)(data, {
2959
2960
  ExportJobs: (_) => de_ExportJobSummaryList(_, context),
2960
2961
  NextToken: import_smithy_client.expectString
@@ -2969,7 +2970,7 @@ var de_ListImportJobsCommand = /* @__PURE__ */ __name(async (output, context) =>
2969
2970
  const contents = (0, import_smithy_client.map)({
2970
2971
  $metadata: deserializeMetadata(output)
2971
2972
  });
2972
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2973
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2973
2974
  const doc = (0, import_smithy_client.take)(data, {
2974
2975
  ImportJobs: (_) => de_ImportJobSummaryList(_, context),
2975
2976
  NextToken: import_smithy_client.expectString
@@ -2984,7 +2985,7 @@ var de_ListRecommendationsCommand = /* @__PURE__ */ __name(async (output, contex
2984
2985
  const contents = (0, import_smithy_client.map)({
2985
2986
  $metadata: deserializeMetadata(output)
2986
2987
  });
2987
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2988
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2988
2989
  const doc = (0, import_smithy_client.take)(data, {
2989
2990
  NextToken: import_smithy_client.expectString,
2990
2991
  Recommendations: (_) => de_RecommendationsList(_, context)
@@ -2999,7 +3000,7 @@ var de_ListSuppressedDestinationsCommand = /* @__PURE__ */ __name(async (output,
2999
3000
  const contents = (0, import_smithy_client.map)({
3000
3001
  $metadata: deserializeMetadata(output)
3001
3002
  });
3002
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
3003
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
3003
3004
  const doc = (0, import_smithy_client.take)(data, {
3004
3005
  NextToken: import_smithy_client.expectString,
3005
3006
  SuppressedDestinationSummaries: (_) => de_SuppressedDestinationSummaries(_, context)
@@ -3014,7 +3015,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
3014
3015
  const contents = (0, import_smithy_client.map)({
3015
3016
  $metadata: deserializeMetadata(output)
3016
3017
  });
3017
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
3018
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
3018
3019
  const doc = (0, import_smithy_client.take)(data, {
3019
3020
  Tags: import_smithy_client._json
3020
3021
  });
@@ -3198,7 +3199,7 @@ var de_PutEmailIdentityDkimSigningAttributesCommand = /* @__PURE__ */ __name(asy
3198
3199
  const contents = (0, import_smithy_client.map)({
3199
3200
  $metadata: deserializeMetadata(output)
3200
3201
  });
3201
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
3202
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
3202
3203
  const doc = (0, import_smithy_client.take)(data, {
3203
3204
  DkimStatus: import_smithy_client.expectString,
3204
3205
  DkimTokens: import_smithy_client._json
@@ -3243,7 +3244,7 @@ var de_SendBulkEmailCommand = /* @__PURE__ */ __name(async (output, context) =>
3243
3244
  const contents = (0, import_smithy_client.map)({
3244
3245
  $metadata: deserializeMetadata(output)
3245
3246
  });
3246
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
3247
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
3247
3248
  const doc = (0, import_smithy_client.take)(data, {
3248
3249
  BulkEmailEntryResults: import_smithy_client._json
3249
3250
  });
@@ -3257,7 +3258,7 @@ var de_SendCustomVerificationEmailCommand = /* @__PURE__ */ __name(async (output
3257
3258
  const contents = (0, import_smithy_client.map)({
3258
3259
  $metadata: deserializeMetadata(output)
3259
3260
  });
3260
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
3261
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
3261
3262
  const doc = (0, import_smithy_client.take)(data, {
3262
3263
  MessageId: import_smithy_client.expectString
3263
3264
  });
@@ -3271,7 +3272,7 @@ var de_SendEmailCommand = /* @__PURE__ */ __name(async (output, context) => {
3271
3272
  const contents = (0, import_smithy_client.map)({
3272
3273
  $metadata: deserializeMetadata(output)
3273
3274
  });
3274
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
3275
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
3275
3276
  const doc = (0, import_smithy_client.take)(data, {
3276
3277
  MessageId: import_smithy_client.expectString
3277
3278
  });
@@ -3295,7 +3296,7 @@ var de_TestRenderEmailTemplateCommand = /* @__PURE__ */ __name(async (output, co
3295
3296
  const contents = (0, import_smithy_client.map)({
3296
3297
  $metadata: deserializeMetadata(output)
3297
3298
  });
3298
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
3299
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
3299
3300
  const doc = (0, import_smithy_client.take)(data, {
3300
3301
  RenderedTemplate: import_smithy_client.expectString
3301
3302
  });
@@ -3375,9 +3376,9 @@ var de_UpdateEmailTemplateCommand = /* @__PURE__ */ __name(async (output, contex
3375
3376
  var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
3376
3377
  const parsedOutput = {
3377
3378
  ...output,
3378
- body: await parseErrorBody(output.body, context)
3379
+ body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
3379
3380
  };
3380
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3381
+ const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
3381
3382
  switch (errorCode) {
3382
3383
  case "BadRequestException":
3383
3384
  case "com.amazonaws.sesv2#BadRequestException":
@@ -4012,7 +4013,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
4012
4013
  extendedRequestId: output.headers["x-amz-id-2"],
4013
4014
  cfId: output.headers["x-amz-cf-id"]
4014
4015
  }), "deserializeMetadata");
4015
- var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
4016
4016
  var _BIN = "BlacklistItemNames";
4017
4017
  var _ED = "EndDate";
4018
4018
  var _NT = "NextToken";
@@ -4023,46 +4023,6 @@ var _RA = "ResourceArn";
4023
4023
  var _Re = "Reason";
4024
4024
  var _SD = "StartDate";
4025
4025
  var _TK = "TagKeys";
4026
- var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
4027
- if (encoded.length) {
4028
- return JSON.parse(encoded);
4029
- }
4030
- return {};
4031
- }), "parseBody");
4032
- var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
4033
- const value = await parseBody(errorBody, context);
4034
- value.message = value.message ?? value.Message;
4035
- return value;
4036
- }, "parseErrorBody");
4037
- var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
4038
- const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
4039
- const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
4040
- let cleanValue = rawValue;
4041
- if (typeof cleanValue === "number") {
4042
- cleanValue = cleanValue.toString();
4043
- }
4044
- if (cleanValue.indexOf(",") >= 0) {
4045
- cleanValue = cleanValue.split(",")[0];
4046
- }
4047
- if (cleanValue.indexOf(":") >= 0) {
4048
- cleanValue = cleanValue.split(":")[0];
4049
- }
4050
- if (cleanValue.indexOf("#") >= 0) {
4051
- cleanValue = cleanValue.split("#")[1];
4052
- }
4053
- return cleanValue;
4054
- }, "sanitizeErrorCode");
4055
- const headerKey = findKey(output.headers, "x-amzn-errortype");
4056
- if (headerKey !== void 0) {
4057
- return sanitizeErrorCode(output.headers[headerKey]);
4058
- }
4059
- if (data.code !== void 0) {
4060
- return sanitizeErrorCode(data.code);
4061
- }
4062
- if (data["__type"] !== void 0) {
4063
- return sanitizeErrorCode(data["__type"]);
4064
- }
4065
- }, "loadRestJsonErrorCode");
4066
4026
 
4067
4027
  // src/commands/BatchGetMetricDataCommand.ts
4068
4028
  var _BatchGetMetricDataCommand = class _BatchGetMetricDataCommand extends import_smithy_client.Command.classBuilder().ep({
@@ -1,3 +1,4 @@
1
+ import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
1
2
  import { requestBuilder as rb } from "@smithy/core";
2
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
3
4
  import { AccountSuspendedException, AlreadyExistsException, BadRequestException, ConcurrentModificationException, ConflictException, InternalServiceErrorException, InvalidNextTokenException, LimitExceededException, MailFromDomainNotVerifiedException, MessageRejected, NotFoundException, SendingPausedException, TooManyRequestsException, } from "../models/models_0";
@@ -3094,43 +3095,3 @@ const _RA = "ResourceArn";
3094
3095
  const _Re = "Reason";
3095
3096
  const _SD = "StartDate";
3096
3097
  const _TK = "TagKeys";
3097
- const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
3098
- if (encoded.length) {
3099
- return JSON.parse(encoded);
3100
- }
3101
- return {};
3102
- });
3103
- const parseErrorBody = async (errorBody, context) => {
3104
- const value = await parseBody(errorBody, context);
3105
- value.message = value.message ?? value.Message;
3106
- return value;
3107
- };
3108
- const loadRestJsonErrorCode = (output, data) => {
3109
- const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
3110
- const sanitizeErrorCode = (rawValue) => {
3111
- let cleanValue = rawValue;
3112
- if (typeof cleanValue === "number") {
3113
- cleanValue = cleanValue.toString();
3114
- }
3115
- if (cleanValue.indexOf(",") >= 0) {
3116
- cleanValue = cleanValue.split(",")[0];
3117
- }
3118
- if (cleanValue.indexOf(":") >= 0) {
3119
- cleanValue = cleanValue.split(":")[0];
3120
- }
3121
- if (cleanValue.indexOf("#") >= 0) {
3122
- cleanValue = cleanValue.split("#")[1];
3123
- }
3124
- return cleanValue;
3125
- };
3126
- const headerKey = findKey(output.headers, "x-amzn-errortype");
3127
- if (headerKey !== undefined) {
3128
- return sanitizeErrorCode(output.headers[headerKey]);
3129
- }
3130
- if (data.code !== undefined) {
3131
- return sanitizeErrorCode(data.code);
3132
- }
3133
- if (data["__type"] !== undefined) {
3134
- return sanitizeErrorCode(data["__type"]);
3135
- }
3136
- };
@@ -58,6 +58,12 @@ declare const CreateDeliverabilityTestReportCommand_base: {
58
58
  * Charset: "STRING_VALUE",
59
59
  * },
60
60
  * },
61
+ * Headers: [ // MessageHeaderList
62
+ * { // MessageHeader
63
+ * Name: "STRING_VALUE", // required
64
+ * Value: "STRING_VALUE", // required
65
+ * },
66
+ * ],
61
67
  * },
62
68
  * Raw: { // RawMessage
63
69
  * Data: "BLOB_VALUE", // required
@@ -66,6 +72,12 @@ declare const CreateDeliverabilityTestReportCommand_base: {
66
72
  * TemplateName: "STRING_VALUE",
67
73
  * TemplateArn: "STRING_VALUE",
68
74
  * TemplateData: "STRING_VALUE",
75
+ * Headers: [
76
+ * {
77
+ * Name: "STRING_VALUE", // required
78
+ * Value: "STRING_VALUE", // required
79
+ * },
80
+ * ],
69
81
  * },
70
82
  * },
71
83
  * Tags: [ // TagList
@@ -1,6 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { PutEmailIdentityFeedbackAttributesRequest, PutEmailIdentityFeedbackAttributesResponse } from "../models/models_0";
3
+ import { PutEmailIdentityFeedbackAttributesRequest } from "../models/models_0";
4
+ import { PutEmailIdentityFeedbackAttributesResponse } from "../models/models_1";
4
5
  import { ServiceInputTypes, ServiceOutputTypes, SESv2ClientResolvedConfig } from "../SESv2Client";
5
6
  /**
6
7
  * @public
@@ -52,6 +52,12 @@ declare const SendBulkEmailCommand_base: {
52
52
  * TemplateName: "STRING_VALUE",
53
53
  * TemplateArn: "STRING_VALUE",
54
54
  * TemplateData: "STRING_VALUE",
55
+ * Headers: [ // MessageHeaderList
56
+ * { // MessageHeader
57
+ * Name: "STRING_VALUE", // required
58
+ * Value: "STRING_VALUE", // required
59
+ * },
60
+ * ],
55
61
  * },
56
62
  * },
57
63
  * BulkEmailEntries: [ // BulkEmailEntryList // required
@@ -91,6 +91,12 @@ declare const SendEmailCommand_base: {
91
91
  * Charset: "STRING_VALUE",
92
92
  * },
93
93
  * },
94
+ * Headers: [ // MessageHeaderList
95
+ * { // MessageHeader
96
+ * Name: "STRING_VALUE", // required
97
+ * Value: "STRING_VALUE", // required
98
+ * },
99
+ * ],
94
100
  * },
95
101
  * Raw: { // RawMessage
96
102
  * Data: "BLOB_VALUE", // required
@@ -99,6 +105,12 @@ declare const SendEmailCommand_base: {
99
105
  * TemplateName: "STRING_VALUE",
100
106
  * TemplateArn: "STRING_VALUE",
101
107
  * TemplateData: "STRING_VALUE",
108
+ * Headers: [
109
+ * {
110
+ * Name: "STRING_VALUE", // required
111
+ * Value: "STRING_VALUE", // required
112
+ * },
113
+ * ],
102
114
  * },
103
115
  * },
104
116
  * EmailTags: [ // MessageTagList
@@ -26,9 +26,12 @@ declare const UpdateContactCommand_base: {
26
26
  };
27
27
  /**
28
28
  * @public
29
- * <p>Updates a contact's preferences for a list. It is not necessary to specify all
30
- * existing topic preferences in the TopicPreferences object, just the ones that need
31
- * updating.</p>
29
+ * <p>Updates a contact's preferences for a list.</p>
30
+ * <note>
31
+ * <p>You must specify all existing topic preferences in the
32
+ * <code>TopicPreferences</code> object, not just the ones that need updating;
33
+ * otherwise, all your existing preferences will be removed.</p>
34
+ * </note>
32
35
  * @example
33
36
  * Use a bare-bones client and the command you need to make an API call.
34
37
  * ```javascript
@@ -553,6 +553,40 @@ export interface Bounce {
553
553
  */
554
554
  DiagnosticCode?: string;
555
555
  }
556
+ /**
557
+ * @public
558
+ * <p>Contains the name and value of a message header that you add to an email.</p>
559
+ */
560
+ export interface MessageHeader {
561
+ /**
562
+ * @public
563
+ * <p>The name of the message header. The message header name has to meet the following
564
+ * criteria:</p>
565
+ * <ul>
566
+ * <li>
567
+ * <p>Can contain any printable ASCII character (33 - 126) except for colon (:).</p>
568
+ * </li>
569
+ * <li>
570
+ * <p>Can contain no more than 126 characters.</p>
571
+ * </li>
572
+ * </ul>
573
+ */
574
+ Name: string | undefined;
575
+ /**
576
+ * @public
577
+ * <p>The value of the message header. The message header value has to meet the following
578
+ * criteria:</p>
579
+ * <ul>
580
+ * <li>
581
+ * <p>Can contain any printable ASCII character.</p>
582
+ * </li>
583
+ * <li>
584
+ * <p>Can contain no more than 870 characters.</p>
585
+ * </li>
586
+ * </ul>
587
+ */
588
+ Value: string | undefined;
589
+ }
556
590
  /**
557
591
  * @public
558
592
  * <p>An object that defines the email template to use for an email message, and the values
@@ -580,6 +614,11 @@ export interface Template {
580
614
  * The corresponding value defines the value to use for that variable.</p>
581
615
  */
582
616
  TemplateData?: string;
617
+ /**
618
+ * @public
619
+ * <p>The list of message headers that will be added to the email message.</p>
620
+ */
621
+ Headers?: MessageHeader[];
583
622
  }
584
623
  /**
585
624
  * @public
@@ -1071,8 +1110,8 @@ export interface ContactListDestination {
1071
1110
  ContactListName: string | undefined;
1072
1111
  /**
1073
1112
  * @public
1074
- * <p>>The type of action to perform on the addresses. The following are the
1075
- * possible values:</p>
1113
+ * <p>>The type of action to perform on the addresses. The following are the possible
1114
+ * values:</p>
1076
1115
  * <ul>
1077
1116
  * <li>
1078
1117
  * <p>PUT: add the addresses to the contact list. If the record already exists, it
@@ -1764,8 +1803,8 @@ export interface RawMessage {
1764
1803
  * <p>Attachments must be in a file format that the Amazon SES supports.</p>
1765
1804
  * </li>
1766
1805
  * <li>
1767
- * <p>The raw data of the message needs to base64-encoded if you are accessing
1768
- * Amazon SES directly through the HTTPS interface. If you are accessing Amazon SES using an Amazon Web Services
1806
+ * <p>The raw data of the message needs to base64-encoded if you are accessing Amazon SES
1807
+ * directly through the HTTPS interface. If you are accessing Amazon SES using an Amazon Web Services
1769
1808
  * SDK, the SDK takes care of the base 64-encoding for you.</p>
1770
1809
  * </li>
1771
1810
  * <li>
@@ -1800,6 +1839,11 @@ export interface Message {
1800
1839
  * version of the message, or both.</p>
1801
1840
  */
1802
1841
  Body: Body | undefined;
1842
+ /**
1843
+ * @public
1844
+ * <p>The list of message headers that will be added to the email message.</p>
1845
+ */
1846
+ Headers?: MessageHeader[];
1803
1847
  }
1804
1848
  /**
1805
1849
  * @public
@@ -1835,8 +1879,8 @@ export interface EmailContent {
1835
1879
  * </p>
1836
1880
  * </li>
1837
1881
  * <li>
1838
- * <p>The raw data of the message needs to base64-encoded if you are accessing
1839
- * Amazon SES directly through the HTTPS interface. If you are accessing Amazon SES using an Amazon Web Services
1882
+ * <p>The raw data of the message needs to base64-encoded if you are accessing Amazon SES
1883
+ * directly through the HTTPS interface. If you are accessing Amazon SES using an Amazon Web Services
1840
1884
  * SDK, the SDK takes care of the base 64-encoding for you.</p>
1841
1885
  * </li>
1842
1886
  * <li>
@@ -2838,20 +2882,24 @@ export interface DailyVolume {
2838
2882
  }
2839
2883
  /**
2840
2884
  * @public
2841
- * <p>An object containing additional settings for your VDM configuration as applicable to the Dashboard.</p>
2885
+ * <p>An object containing additional settings for your VDM configuration as applicable to
2886
+ * the Dashboard.</p>
2842
2887
  */
2843
2888
  export interface DashboardAttributes {
2844
2889
  /**
2845
2890
  * @public
2846
- * <p>Specifies the status of your VDM engagement metrics collection. Can be one of the following:</p>
2891
+ * <p>Specifies the status of your VDM engagement metrics collection. Can be one of the
2892
+ * following:</p>
2847
2893
  * <ul>
2848
2894
  * <li>
2849
2895
  * <p>
2850
- * <code>ENABLED</code> – Amazon SES enables engagement metrics for your account.</p>
2896
+ * <code>ENABLED</code> – Amazon SES enables engagement metrics for your
2897
+ * account.</p>
2851
2898
  * </li>
2852
2899
  * <li>
2853
2900
  * <p>
2854
- * <code>DISABLED</code> – Amazon SES disables engagement metrics for your account.</p>
2901
+ * <code>DISABLED</code> – Amazon SES disables engagement metrics for your
2902
+ * account.</p>
2855
2903
  * </li>
2856
2904
  * </ul>
2857
2905
  */
@@ -3725,20 +3773,24 @@ export interface SuppressionAttributes {
3725
3773
  }
3726
3774
  /**
3727
3775
  * @public
3728
- * <p>An object containing additional settings for your VDM configuration as applicable to the Guardian.</p>
3776
+ * <p>An object containing additional settings for your VDM configuration as applicable to
3777
+ * the Guardian.</p>
3729
3778
  */
3730
3779
  export interface GuardianAttributes {
3731
3780
  /**
3732
3781
  * @public
3733
- * <p>Specifies the status of your VDM optimized shared delivery. Can be one of the following:</p>
3782
+ * <p>Specifies the status of your VDM optimized shared delivery. Can be one of the
3783
+ * following:</p>
3734
3784
  * <ul>
3735
3785
  * <li>
3736
3786
  * <p>
3737
- * <code>ENABLED</code> – Amazon SES enables optimized shared delivery for your account.</p>
3787
+ * <code>ENABLED</code> – Amazon SES enables optimized shared delivery for your
3788
+ * account.</p>
3738
3789
  * </li>
3739
3790
  * <li>
3740
3791
  * <p>
3741
- * <code>DISABLED</code> – Amazon SES disables optimized shared delivery for your account.</p>
3792
+ * <code>DISABLED</code> – Amazon SES disables optimized shared delivery for
3793
+ * your account.</p>
3742
3794
  * </li>
3743
3795
  * </ul>
3744
3796
  */
@@ -3766,12 +3818,14 @@ export interface VdmAttributes {
3766
3818
  VdmEnabled: FeatureStatus | undefined;
3767
3819
  /**
3768
3820
  * @public
3769
- * <p>Specifies additional settings for your VDM configuration as applicable to the Dashboard.</p>
3821
+ * <p>Specifies additional settings for your VDM configuration as applicable to the
3822
+ * Dashboard.</p>
3770
3823
  */
3771
3824
  DashboardAttributes?: DashboardAttributes;
3772
3825
  /**
3773
3826
  * @public
3774
- * <p>Specifies additional settings for your VDM configuration as applicable to the Guardian.</p>
3827
+ * <p>Specifies additional settings for your VDM configuration as applicable to the
3828
+ * Guardian.</p>
3775
3829
  */
3776
3830
  GuardianAttributes?: GuardianAttributes;
3777
3831
  }
@@ -3819,9 +3873,8 @@ export interface GetAccountResponse {
3819
3873
  * Region.</p>
3820
3874
  * <p>If the value is <code>false</code>, then your account is in the
3821
3875
  * <i>sandbox</i>. When your account is in the sandbox, you can only send
3822
- * email to verified identities. Additionally, the maximum number of emails you can send in
3823
- * a 24-hour period (your sending quota) is 200, and the maximum number of emails you can
3824
- * send per second (your maximum sending rate) is 1.</p>
3876
+ * email to verified identities.
3877
+ * </p>
3825
3878
  * <p>If the value is <code>true</code>, then your account has production access. When your
3826
3879
  * account has production access, you can send email to any address. The sending quota and
3827
3880
  * maximum sending rate for your account vary based on your specific use case.</p>
@@ -5314,8 +5367,8 @@ export interface ListContactsRequest {
5314
5367
  /**
5315
5368
  * @public
5316
5369
  * <p>The number of contacts that may be returned at once, which is dependent on if there
5317
- * are more or less contacts than the value of the PageSize. Use this parameter to
5318
- * paginate results. If additional contacts exist beyond the specified limit, the
5370
+ * are more or less contacts than the value of the PageSize. Use this parameter to paginate
5371
+ * results. If additional contacts exist beyond the specified limit, the
5319
5372
  * <code>NextToken</code> element is sent in the response. Use the
5320
5373
  * <code>NextToken</code> value in subsequent requests to retrieve additional
5321
5374
  * contacts.</p>
@@ -6043,9 +6096,8 @@ export interface PutAccountDetailsRequest {
6043
6096
  * Amazon Web Services Region.</p>
6044
6097
  * <p>If the value is <code>false</code>, then your account is in the
6045
6098
  * <i>sandbox</i>. When your account is in the sandbox, you can only send
6046
- * email to verified identities. Additionally, the maximum number of emails you can send in
6047
- * a 24-hour period (your sending quota) is 200, and the maximum number of emails you can
6048
- * send per second (your maximum sending rate) is 1.</p>
6099
+ * email to verified identities.
6100
+ * </p>
6049
6101
  * <p>If the value is <code>true</code>, then your account has production access. When your
6050
6102
  * account has production access, you can send email to any address. The sending quota and
6051
6103
  * maximum sending rate for your account vary based on your specific use case.</p>
@@ -6580,13 +6632,6 @@ export interface PutEmailIdentityFeedbackAttributesRequest {
6580
6632
  */
6581
6633
  EmailForwardingEnabled?: boolean;
6582
6634
  }
6583
- /**
6584
- * @public
6585
- * <p>An HTTP 200 response if the request succeeds, or an error message if the request
6586
- * fails.</p>
6587
- */
6588
- export interface PutEmailIdentityFeedbackAttributesResponse {
6589
- }
6590
6635
  /**
6591
6636
  * @internal
6592
6637
  */
@@ -1,4 +1,11 @@
1
1
  import { BehaviorOnMxFailure, BulkEmailContent, BulkEmailEntry, BulkEmailEntryResult, Destination, EmailContent, EmailTemplateContent, EventDestinationDefinition, ListManagementOptions, MessageTag, SuppressionListReason, Tag, Topic, TopicPreference } from "./models_0";
2
+ /**
3
+ * @public
4
+ * <p>An HTTP 200 response if the request succeeds, or an error message if the request
5
+ * fails.</p>
6
+ */
7
+ export interface PutEmailIdentityFeedbackAttributesResponse {
8
+ }
2
9
  /**
3
10
  * @public
4
11
  * <p>A request to configure the custom MAIL FROM domain for a verified identity.</p>
@@ -82,8 +89,8 @@ export interface PutSuppressedDestinationResponse {
82
89
  export interface SendBulkEmailRequest {
83
90
  /**
84
91
  * @public
85
- * <p>The email address to use as the "From" address for the email. The
86
- * address that you specify has to be verified.</p>
92
+ * <p>The email address to use as the "From" address for the email. The address that you
93
+ * specify has to be verified.</p>
87
94
  */
88
95
  FromEmailAddress?: string;
89
96
  /**
@@ -208,8 +215,8 @@ export interface SendCustomVerificationEmailResponse {
208
215
  export interface SendEmailRequest {
209
216
  /**
210
217
  * @public
211
- * <p>The email address to use as the "From" address for the email. The
212
- * address that you specify has to be verified.
218
+ * <p>The email address to use as the "From" address for the email. The address that you
219
+ * specify has to be verified.
213
220
  * </p>
214
221
  */
215
222
  FromEmailAddress?: string;
@@ -265,8 +272,8 @@ export interface SendEmailRequest {
265
272
  FeedbackForwardingEmailAddressIdentityArn?: string;
266
273
  /**
267
274
  * @public
268
- * <p>An object that contains the body of the message. You can send either a Simple message
269
- * Raw message or a template Message.</p>
275
+ * <p>An object that contains the body of the message. You can send either a Simple message,
276
+ * Raw message, or a Templated message.</p>
270
277
  */
271
278
  Content: EmailContent | undefined;
272
279
  /**
@@ -298,10 +305,10 @@ export interface SendEmailResponse {
298
305
  * <p>A unique identifier for the message that is generated when the message is
299
306
  * accepted.</p>
300
307
  * <note>
301
- * <p>It's possible for Amazon SES to accept a message without sending it. This can happen
302
- * when the message that you're trying to send has an attachment contains a virus, or
303
- * when you send a templated email that contains invalid personalization content, for
304
- * example.</p>
308
+ * <p>It's possible for Amazon SES to accept a message without sending it. For example, this
309
+ * can happen when the message that you're trying to send has an attachment that
310
+ * contains a virus, or when you send a templated email that contains invalid
311
+ * personalization content.</p>
305
312
  * </note>
306
313
  */
307
314
  MessageId?: string;
@@ -1,9 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import {
4
- PutEmailIdentityFeedbackAttributesRequest,
5
- PutEmailIdentityFeedbackAttributesResponse,
6
- } from "../models/models_0";
3
+ import { PutEmailIdentityFeedbackAttributesRequest } from "../models/models_0";
4
+ import { PutEmailIdentityFeedbackAttributesResponse } from "../models/models_1";
7
5
  import {
8
6
  ServiceInputTypes,
9
7
  ServiceOutputTypes,
@@ -156,10 +156,15 @@ export interface Bounce {
156
156
  BounceSubType?: string;
157
157
  DiagnosticCode?: string;
158
158
  }
159
+ export interface MessageHeader {
160
+ Name: string | undefined;
161
+ Value: string | undefined;
162
+ }
159
163
  export interface Template {
160
164
  TemplateName?: string;
161
165
  TemplateArn?: string;
162
166
  TemplateData?: string;
167
+ Headers?: MessageHeader[];
163
168
  }
164
169
  export interface BulkEmailContent {
165
170
  Template?: Template;
@@ -425,6 +430,7 @@ export interface RawMessage {
425
430
  export interface Message {
426
431
  Subject: Content | undefined;
427
432
  Body: Body | undefined;
433
+ Headers?: MessageHeader[];
428
434
  }
429
435
  export interface EmailContent {
430
436
  Simple?: Message;
@@ -1394,7 +1400,6 @@ export interface PutEmailIdentityFeedbackAttributesRequest {
1394
1400
  EmailIdentity: string | undefined;
1395
1401
  EmailForwardingEnabled?: boolean;
1396
1402
  }
1397
- export interface PutEmailIdentityFeedbackAttributesResponse {}
1398
1403
  export declare const AccountDetailsFilterSensitiveLog: (
1399
1404
  obj: AccountDetails
1400
1405
  ) => any;
@@ -14,6 +14,7 @@ import {
14
14
  Topic,
15
15
  TopicPreference,
16
16
  } from "./models_0";
17
+ export interface PutEmailIdentityFeedbackAttributesResponse {}
17
18
  export interface PutEmailIdentityMailFromAttributesRequest {
18
19
  EmailIdentity: string | undefined;
19
20
  MailFromDomain?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sesv2",
3
3
  "description": "AWS SDK for JavaScript Sesv2 Client for Node.js, Browser and React Native",
4
- "version": "3.525.0",
4
+ "version": "3.529.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-sesv2",
@@ -20,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.525.0",
24
- "@aws-sdk/core": "3.525.0",
25
- "@aws-sdk/credential-provider-node": "3.525.0",
23
+ "@aws-sdk/client-sts": "3.529.0",
24
+ "@aws-sdk/core": "3.529.0",
25
+ "@aws-sdk/credential-provider-node": "3.529.0",
26
26
  "@aws-sdk/middleware-host-header": "3.523.0",
27
27
  "@aws-sdk/middleware-logger": "3.523.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.523.0",