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

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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠