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 Answer
0
Accepted Answer

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
EXPERT
answered 2 years ago

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.

Guidelines for Answering Questions