适用于AWS Cognito用户池的EmailConfiguration

时间:2020-03-02 07:18:45

标签: amazon-web-services amazon-cognito

我正在使用Cognito来管理用户。按照AWS的指南,我必须像这样配置EmailConfiguration.SourceArn:

arn:aws:ses:{region}:{account_id}:identity/noreply@example-domain.com

有关更多详细信息,请参见https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-emailconfiguration.html#cfn-cognito-userpool-emailconfiguration-sourcearn

我可以将电子邮件地址设置为SomeApp <noreply@example-domain.com>吗?它将在用户的收件箱中显示“ SomeApp”标签,而不是“ noreply”标签,这更加用户友好。

1 个答案:

答案 0 :(得分:1)

在这种情况下,您必须为SourceArnFrom这两个属性设置值。

详细了解MongoDB Performance Testing with JMeter

EmailConfiguration块将类似于(yml语法):

EmailConfiguration:
  ...
  SourceArn: "arn:aws:ses:{region}:{account_id}:identity/noreply@example-domain.com"
  From: "SomeApp <noreply@example-domain.com>"
  ...