我遵循本教程(https://aws.amazon.com/blogs/machine-learning/analyzing-contact-center-calls-part-1-use-amazon-transcribe-and-amazon-comprehend-to-analyze-customer-sentiment/)来使用AWS中的状态机(步骤功能)创建工作流程,
本教程中的步骤7讨论了“ 调用步骤函数”,它们在此处提到,因为我需要传递我不清楚的lamdba函数的ARN
如何将此资源ARN作为参数传递?
谢谢,
哈里
答案 0 :(得分:1)
您可以从lambda控制台获取lambda ARN,然后按照Step functions documentation中所述的步骤进行操作。根据您的配置更改参数:
在“状态机定义”窗格中,添加以下状态机 您创建的Lambda函数的ARN定义 较早,例如:
{
"Comment": "A Hello World example of the Amazon States Language using an AWS Lambda function",
"StartAt": "HelloWorld",
"States": {
"HelloWorld": {
"Type": "Task",
"Resource": "arn:aws:lambda:us-east-1:123456789012:function:HelloFunction",
"End": true
}
}
}