boto3 中 Client,Resource和Session的不同。
boto3 英文官方文档链接 https://boto3.amazonaws.com/v1/documentation/api/latest/guide/resources.html
Resource 是 Amazon Web Services(AWS)的面向对象的接口。 与 Client 进行的原始低级调用相比,它们提供了面向对象的方法。 如果需要定义自己的用户和连接地址,可以通过使用Session 来定义 Resource
Resources represent an object-oriented interface to Amazon Web Services (AWS). They provide a higher-level abstraction than the raw, low-level calls made by service clients. To use resources, you invoke the resource() method of a Session and pass in a service name
Resource 用法
session = Session(aws_access_key_id=&#