如何通过CloudFormation配置“预令牌生成”触发器?

时间:2018-10-31 22:13:11

标签: amazon-cloudformation amazon-cognito

预令牌生成触发器:此Lambda触发器允许您在生成身份令牌之前自定义身份令牌:https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-token-generation.html

我正在寻找一种通过CloudFormation配置此触发器的方法。像这样:

UserPool:
  Type: AWS::Cognito::UserPool
  Properties:
    LambdaConfig:
      # Next line does not work:
      PreTokenGeneration: [lambda ARN]

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-lambdaconfig.html

我找到了其他触发器的文档,但是缺少此触发器。这是缺少的功能还是只是没有记录?

1 个答案:

答案 0 :(得分:1)

https://forums.aws.amazon.com/thread.jspa?threadID=268907

这是他们的路线图,但是自从cognito推出cloudformation以来就没有消息