![](/img/trans.png)
[英]boto3.client('stepfunctions').get_activity_task() hangs
[英]getting error for client = boto3.client('eventbridge')
得到错误:
client = boto3.client('eventbridge')
botocore.exceptions.UnknownServiceError: Unknown service: 'eventbridge'. Valid services are xyz
我已经将我的 boto3 和 botocore 升级到最新版本,但这个错误仍然没有消失 go。 boto3 版本 -> 版本:1.26.29 和 botocore 版本 -> 版本:1.29.29
client = boto3.client('events')
boto3 EventBridge 客户端名为events
。
专业提示:使用session.get_available_services()
列出可用的服务客户端
session = boto3.Session(profile_name="my-profile", region_name="us-east-1")
services = [s for s in session.get_available_services() if s.startswith("event")]
print(services) # -> ['events']
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.