是否可以使用boto3资源列出所有S3存储桶,即boto3.resource('s3')?
boto3.resource('s3')
我知道可以使用低级服务客户端来这样做:
import boto3 boto3.client('s3').list_buckets()
但是,在理想的世界中,我们可以在更高级别的资源上运行。有没有一种方法可以使我们做到?如果没有,为什么?
amazon-s3 amazon-web-services python-3.x boto3
amazon-s3 ×1
amazon-web-services ×1
boto3 ×1
python-3.x ×1