我正在尝试使用 AWS SES Query API GET 请求。 AWS SES 的服务名称是什么?

I am trying to use AWS SES Query API GET requests. What is the service name for AWS SES?

我正在尝试生成签名版本 4,用于 AWS-SES 查询 API GET 请求。我试图生成一个 'String to sign',所需的部分变量是我试图访问的服务的名称。我已查看文档,但找不到以下问题的答案:What is the service name of AWS-SES?是 'email', 'SES'?

 StringToSign =
Algorithm + \n +
RequestDateTime + \n +
CredentialScope + \n +
HashedCanonicalRequest

CredentialScope  = 20150830/ue-west-1/ServiceName/aws4_request\n

来自 签名版本 4 签名过程 » 签名版本 4 中的更改 签名版本 4 的变化

Service name information as a lowercase alphanumeric string (for example, iam). Use the service name that is part of the service's endpoint. For example, the IAM endpoint is https://iam.amazonaws.com, so you use the string iam as part of the Credential parameter.

检查Amazon SES Endpoints,我们可以看到SES端点列表:

The following sections list the AWS regions in which Amazon SES is available, and the corresponding endpoints for sending and receiving emails.

使用此处记录的 API (HTTPS) 端点,它将欧盟(爱尔兰)中的端点引用显示为 email.eu-west-1.amazonaws.com。所有区域的端点格式都相同。因此,CredentialScope 的正确 ServiceNameemail

服务名称是ses 这对我有用(全部小写)。 你是对的,他们似乎没有在他们的文档中的任何地方明确说明这一点!