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

时间:2018-05-07 06:19:06

标签: python-2.7 amazon-web-services sdk boto3

我正在使用AWS Boto3 SDK进行一些自动化。我无法了解客户端(低级别)和资源级别(高级别)

之间的区别

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

1 个答案:

答案 0 :(得分:1)

根据我的理解,这里所做的引用是针对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.

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