Lambda python error

0

Hi, I am trying to invoke lambda with code like response=connect_client.start_task_contact( instanceid =instance id, contactflowid=contact Flowid, Attributes={ "Customer Name ": fullname, "Customer email ": contactemail }

But when we add the below line ScheduledTime=datetime(2015,1,1) as mentioned in boto3 documentation there is an error appears

[Error]ParamaterValidationError: Parameter Validation Failed:

" Unknow Parameter in input : "Scheduled time ", must be one of instanceid,PreviousContactID,ContactFlowId, Attributes.

Doc link below. Please suggest how to resolve the error

https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/connect.html#Connect.Client.start_task_contact

Regards Jo

已提問 2 年前檢視次數 396 次
1 個回答
0
已接受的答案

Boto3 is a rapidly changing library. It's highly possible that the boto3 library packaged with Lambda is not the latest version or a version which contains the support that you need.

We strongly recommend that you package your requirements so that the library support required is available to your function.

profile pictureAWS
專家
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南