The error you are encountering is due to an invalid parameter type for the eventValue in your code. The eventValue parameter should be of type str, but it appears to be a dictionary ({'eventValue': '0.50'}).

To resolve this issue, you can convert the eventValue parameter to a string before passing it to the put_event function. You can do this by modifying the properties dictionary like this:

'properties': {
    'eventValue': str(eventValue)
}

This will ensure that the eventValue parameter is passed as a string and resolve the parameter validation error

botocoreexceptionsParamValidationError Parameter validation failedInvalid type for parameter eventList0properties value eventValue 050 type class dict valid types class strimport boto3import argparsei

原文地址: https://www.cveoy.top/t/topic/iww5 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录