有人可以帮我吗?我想使用 Boto3 创建一个 AWS EventBridge 调度程序,但我遇到了这个错误
botocore.exceptions.UnknownServiceError: Unknown service: 'scheduler'
我错过了什么?
import boto3
client = boto3.client('scheduler')
response = client.create_schedule(Name='test',FlexibleTimeWindow=. {'Mode':'OFF'},ScheduleExpression='rate(5 minutes)',)
return response
你必须升级你的boto3。
sheduler
是一个新的 aws 产品,因此需要最新的 boto3
。