Boto3:如何通过名称查找现有的S3 bucket?

2024-09-29 01:29:34 发布

您现在位置:Python中文网/ 问答频道 /正文

我试过这样做:

resource = boto3.resource('s3', endpoint_url=ENDPOINT_URL)
resource.buckets.filter(name='somename')

但它返回所有现有的桶。我尝试使用filter(Filter=<list of dicts for filtering>)得到同样的结果。 我读过文档,试着用谷歌搜索,仍然没有结果


Tags: ofnameurls3filterboto3endpointresource