简体   繁体   English

@aws-sdk/client-ses 和@aws-sdk/client-sesv2 有什么区别?

[英]What is the difference between @aws-sdk/client-ses and @aws-sdk/client-sesv2?

AWS's SDK for JavaScript version 3 seems to have 2 different clients for Simple Email Service (SES). JavaScript 版本 3 的 AWS SDK 似乎有 2 个不同的简单 Email 服务 (SES) 客户端。

I realized I have been using @aws-sdk/client-sesv2 but:我意识到我一直在使用 @aws-sdk/client-sesv2 但是:

  • The actual doc on their GitHub repos is really hard to understand (see v1 and v2 )他们 GitHub 回购协议上的实际文档真的很难理解(参见v1v2
  • Nowhere in the Github example do they show an example of sending an email or why there are 2 versions在 Github 示例中没有任何地方显示发送 email 的示例或为什么有 2 个版本
  • I found this more useful documentation but they don't even mention v2?我发现这个更有用的文档,但他们甚至没有提到 v2?

Are we supposed to use v1 or v2?我们应该使用 v1 还是 v2? What are the differences between both?两者之间有什么区别?

After poking around, the AWS SDK for JavaScript seems to have two versions:摸索了一下,AWS SDK for JavaScript 好像有两个版本:

Version 2 of the SDK is meant to be entering maintenance mode in 2023. SDK 的第 2 版计划于 2023 年进入维护模式。

Now that this first layer of confusion is cleared out, the AWS SES API also has 2 versions:现在第一层的混淆已经清除,AWS SES API 也有 2 个版本:

So based on this investigation, I presume that the packages points to the different API versions.因此,根据这项调查,我推测这些包指向不同的 API 版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM