首页 > 解决方案 > Aws Boto3 客户端(低级)与资源(高级)

问题描述

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

这里的 Low-Level(Client) 和 High-Level(Resource) 有什么区别?

标签: python-2.7amazon-web-servicessdkboto3

解决方案


根据我的理解,这里所做的参考是针对 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 一样紧密。这意味着,所有服务操作都将由客户端支持。然而,资源提供了一个高级接口,这与客户端提供的原始低级调用不同。


推荐阅读