【问题标题】:AWS SES Email Verification RequestId statusAWS SES 电子邮件验证请求 ID 状态
【发布时间】:2025-12-04 15:50:01
【问题描述】:

使用 AWS SES 电子邮件验证,验证电子邮件后,我从回复中收到 RequestId。我试图找到一种方法来获取RequestId 的更新表单,我找不到可以为我提供此 RequestId 状态更新的端点或方法。

{
  ResponseMetadata: { RequestId: '1234567890' }
}

这是我用于电子邮件验证的文档https://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-email-addresses-procedure.html

【问题讨论】:

    标签: amazon-web-services amazon-ses email-verification


    【解决方案1】:

    您无法使用从 SES 电子邮件验证响应中收到的 RequestId 跟踪电子邮件验证的状态。粘贴来自 SES 电子邮件验证的示例响应。

    {'ResponseMetadata': {'RetryAttempts': 0, 'HTTPStatusCode': 200, 'RequestId': 'abcd-xyz-123', 'HTTPHeaders': {'date': 'Wed, 26 May 2021 04:44:03 GMT', 'x-amzn-requestid': '98768888-1111-qwaq-2222', 'content-length': '248', 'content-type': 'text/xml', 'connection': 'keep-alive'}}}
    

    要获取邮箱验证的状态,可以尝试list_verified_email_addresses操作。它列出了所有经过验证的电子邮件地址。检查您所需的电子邮件地址是否在VerifiedEmailAddresses 中列出。如果不存在,则尚未验证。

    import boto3
    from botocore.config import Config
    my_config = Config(region_name = 'us-west-2')
    ses = boto3.client('ses', config=my_config)
    response = ses.list_verified_email_addresses()
    print(response)
    

    回复:

    {'ResponseMetadata': {'RetryAttempts': 0, 'HTTPStatusCode': 200, 'RequestId': 'xxxxx', 'HTTPHeaders': {'date': 'Wed, 26 May 2021 05:25:00 GMT', 'x-amzn-requestid': 'xxxxxx', 'content-length': '412', 'content-type': 'text/xml', 'connection': 'keep-alive'}}, u'VerifiedEmailAddresses': ['example@gmail.com']}
    

    【讨论】:

    • 我就是这么想的。谢谢。