Aws Boto3 客户端(低级别)与资源(高级别)

Sha*_*mar 7 sdk amazon-web-services python-2.7 boto3

我正在使用 AWS Boto3 SDK 进行一些自动化工作。我无法知道客户端(低级)和资源(高级)之间有什么区别

这里的低级(客户端)和高级(资源)有什么区别?

Nig*_*l19 4

根据我的理解,这里的参考是针对 API 编程中使用的低级和高级接口。就这样,

high-level interface, are designed to enable the programmer to write code in shorter amount of time and to be less involved with the details of the software module or hardware device that is performing the required services. Which is in direct contrast with the other one.

low-level interface, are more detailed allowing the programmer to manipulate functions within a software module or within hardware at very granular level.
Run Code Online (Sandbox Code Playgroud)

在AWS中,当您使用Boto3进行API编程时,客户端提供与服务API密切相关的低级接口。这意味着,所有服务操作都将由客户端支持。而资源提供了一个高级接口,这意味着与客户端提供的原始低级调用不同。