Aws lambda 触发放大函数的访问域或域名

Aws lambda 触发放大函数的访问域或域名,aws-lambda,aws-amplify,Aws Lambda,Aws Amplify,我正在尝试访问触发该函数的域名和/或当前域。应用程序的api是graphql,相关函数通过“CustomMessage_SignUp”触发 是否有人知道查找/访问域的方向 exports.handler = (event, context, callback) => { // Define the URL that you want the user to be directed to after verification is complete if ( event.tr

我正在尝试访问触发该函数的域名和/或当前域。应用程序的api是graphql,相关函数通过“CustomMessage_SignUp”触发

是否有人知道查找/访问域的方向

exports.handler = (event, context, callback) => {
  // Define the URL that you want the user to be directed to after verification is complete
  if (
    event.triggerSource === 'CustomMessage_SignUp' ||
    event.triggerSource === 'CustomMessage_ResendCode'
  ) {
    // how do I access the domain for use here
这看起来是一个很有前途的解决方案,但似乎也需要使用api网关:

如往常一样,我们非常感谢任何一个方向,所以请提前感谢