gpt4 book ai didi

amazon-web-services - 如何通过 CloudFormation 在 Cognito 中要求电子邮件验证?

转载 作者:行者123 更新时间:2023-12-04 00:25:30 28 4
gpt4 key购买 nike

我想我尝试了这里的所有属性:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html

无法选中此框:

enter image description here

我当前的配置:

    CognitoUserPoolGeneral:
Type: AWS::Cognito::UserPool
Properties:
UserPoolName: general
Policies:
PasswordPolicy:
MinimumLength: 6
RequireLowercase: false
RequireNumbers: false
RequireSymbols: false
RequireUppercase: false
Schema:
- AttributeDataType: String
Name: preferredLocale
DeveloperOnlyAttribute: false
Mutable: true
Required: false
EmailVerificationMessage: "Here's your verification code: {####}. Please provide it inside the application."
EmailVerificationSubject: "subject"

最佳答案

您可以添加

  AutoVerifiedAttributes:
- email

到您的 Properties 键,如下所示:

  UserPool:
Type: "AWS::Cognito::UserPool"
Properties:
UserPoolName: !Sub ${AuthName}-user-pool
AutoVerifiedAttributes:
- email
Policies:.....

有关创建 Cognito 资源的 CloudFormation 模板的优秀示例,请参阅:

https://gist.github.com/singledigit/2c4d7232fa96d9e98a3de89cf6ebe7a5

关于amazon-web-services - 如何通过 CloudFormation 在 Cognito 中要求电子邮件验证?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46973302/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com