SES如何获得ARN的身份?

问题描述 投票:2回答:1

如何获取经过验证的SES电子邮件的身份ARN?我有一个经过验证的SES电子邮件,我想让身份ARN以编程方式将其分配给Cognito。查看Boto3配置我找不到任何方法给我这个信息。我得到的最接近的是list_verified_email_addresses,如果经过验证就给我发电子邮件......没办法如何从中获取ARN。

amazon-web-services boto3 amazon-ses
1个回答
3
投票

从Boto3文档中,不支持获取身份ARN。但你可以轻松地构建它。假设你在us-east-1(或使用Boto3获取该区域):

account_num = '1234567890'
identity = '[email protected]'
print 'arn:aws:ses:us-east-1:'+account_num+':identity/'+identity

ARN

arn:aws:ses:us-east-1:1234567890:identity/[email protected]
© www.soinside.com 2019 - 2024. All rights reserved.