【以下的问题经过翻译处理】 你好, 我正在尝试使用以下代码调用Lambda: response=connect_client.start_task_contact( instanceid =instance id, contactflowid=contact Flowid, Attributes={ "Customer Name ": fullname, "Customer email ": contactemail }
但是,当我们加入以下代码 ScheduledTime=datetime(2015,1,1),如boto3文档所述,就会出现错误。
[错误]ParamaterValidationError:参数验证失败: “输入中未知参数:“Scheduled time”,必须是instanceid、PreviousContactID、ContactFlowId、Attributes之一。 请参见以下文档链接。请建议如何解决错误。
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/connect.html#Connect.Client.start_task_contact
谢谢 Jo
【以下的回答经过翻译处理】 Boto3是一个快速变化的库。Lambda打包的boto3库很有可能不是最新版本,也不包含你需要的支持版本。强烈建议你打包你的依赖,以便你的函数能够使用所需的库支持。
You are not logged in. Log in to post an answer.
A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.