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