Amazon cloudformation 在Cloudformation中将Lambda触发器附加到Cognito用户池
我想定制当您调用Amazon cloudformation 在Cloudformation中将Lambda触发器附加到Cognito用户池,amazon-cloudformation,amazon-cognito,Amazon Cloudformation,Amazon Cognito,我想定制当您调用adminCreateUser() 我可以看到您通过Lambda函数来实现这一点,例如- 我还可以看到,AWS::Cognito::UserPool有一个LambdaConfig对象,带有一个CustomMessage字段 所以看起来这是连接点:) 然而,我看不到的是精确的连接机制:( CustomMessage字段定义不明确- CustomMessage A custom Message AWS Lambda trigger. Required: No Type: St
adminCreateUser()
我可以看到您通过Lambda函数来实现这一点,例如-
我还可以看到,AWS::Cognito::UserPool
有一个LambdaConfig
对象,带有一个CustomMessage
字段
所以看起来这是连接点:)
然而,我看不到的是精确的连接机制:(
CustomMessage
字段定义不明确-
CustomMessage
A custom Message AWS Lambda trigger.
Required: No
Type: String
Minimum: 20
Maximum: 2048
Pattern: arn:[\w+=/,.@-]+:[\w+=/,.@-]+:([\w+=/,.@-]*)?:[0-9]+:[\w+=/,.@-]+(:[\w+=/,.@-]+)?(:[\w+=/,.@-]+)?
Update requires: No interruption
也就是说,它只是一个字符串
——但那是字符串
- 一个
ARN
- a
Ref
- 内联Lambda主体声明
有人知道
LambdaConfig.CustomMessage
绑定支持上述哪种格式吗?根据CustomMessage
字符串值的验证模式,它似乎支持ARN,因为字符串必须包含ARN哈,这是个好地方!错过了:/@Justin无忧:)
CustomMessage
A custom Message AWS Lambda trigger.
Required: No
Type: String
Minimum: 20
Maximum: 2048
Pattern: arn:[\w+=/,.@-]+:[\w+=/,.@-]+:([\w+=/,.@-]*)?:[0-9]+:[\w+=/,.@-]+(:[\w+=/,.@-]+)?(:[\w+=/,.@-]+)?
Update requires: No interruption