如果您通过 CloudFormation 部署 UserPool,例如:
Resources:
UserPool:
Type: 'AWS::Cognito::UserPool'
Properties:
...
Schema:
- Name: email
AttributeDataType: String
Mutable: true
Required: true
Run Code Online (Sandbox Code Playgroud)
然后更新属性以使其成为name必需的:
Schema:
- Name: email
AttributeDataType: String
Mutable: true
Required: true
- Name: name
AttributeDataType: String
Mutable: true
Required: true
Run Code Online (Sandbox Code Playgroud)
AWS 认为这name是一个自定义属性并失败:
当前不支持必需的自定义属性。(服务:AWSCognitoIdentityProviderService;状态代码:400;错误代码:InvalidParameterException;请求 ID:...)
这只是失败的更新,部署干净的堆栈正确地将属性email和name标准属性都设置为必需。
有没有办法让更新成功?
我有一个 lambda,它通过 AWS SDK 函数启动 CodePipeline 执行startPipelineExecution。是否有任何机制可将参数传递给 CodePipeline 构建,以便它可以使用 CodeBuild 构建中的值作为环境变量?
如何从 AWS API Gateway 资源策略错误更改默认 403 正文?
{"Message":"User: anonymous is not authorized to perform: execute-api:Invoke on resource:... with an explicit deny"}
Run Code Online (Sandbox Code Playgroud) aws-lambda ×1