如何解决如何使用 cloudformation 在 AWS cognito 上设置验证属性?
我正在尝试使用 cloudformation 在 cognito 用户池上设置验证属性,并且我已经来回浏览文档有一段时间了,但我找不到正确的设置。
我当前的 yaml 文件如下所示:
UserPool:
Type: AWS::Cognito::UserPool
Properties:
AdmincreateuserConfig:
AllowAdmincreateuserOnly: false
UserPoolName: !Sub ${AWS::StackName}-UserPool
UsernameAttributes:
- email
AccountRecoverySetting:
RecoveryMechanisms:
- Name: verified_email
Priority: 1
VerificationMessageTemplate:
DefaultEmailOption: CONFIRM_WITH_LINK
Policies:
PasswordPolicy:
MinimumLength: 8
RequireLowercase: true
RequireNumbers: true
RequireSymbols: true
RequireUppercase: true
TemporaryPasswordValidityDays: 7
有没有办法在 cloudformation 中做到这一点?
解决方法
只需将 AutoVerifiedAttributes
属性值设置为 []
- 一个空列表
示例:
Resources:
CUP1FD5E:
Type: AWS::Cognito::UserPool
Properties:
UserPoolName: SIMPLE
UsernameAttributes:
- email
# empty list
AutoVerifiedAttributes: []
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。