python-2.7 - Aws Boto3 客户端(低级)与资源(高级)

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

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

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

最佳答案

根据我的理解,这里所做的引用是针对 API 编程中使用的低级和高级接口(interface)。就这样,

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 编程时,客户端提供的低级接口(interface)与服务 API 一样紧密。这意味着,所有服务操作都将由客户端支持。然而,资源提供了一个高级接口(interface),这与客户端提供的原始低级调用不同。

关于python-2.7 - Aws Boto3 客户端(低级)与资源(高级),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50208090/

相关文章:

amazon-web-services - 在 AWS 用户名和非 identity_id 下的 S3 中的 AWS Amplify 存储

amazon-web-services - 如何在 AWS 中设置 SSH 隧道

linux - 安装ridgerun sdk - Leopard board DM

sdk - 将 Doxygen 用于商业闭源产品

python - 脚本在读取文件时跳过第二个 for 循环

Python 同时循环、枚举和添加到字典

python - boto3 资源(如 DynamoDB.Table)的类型注释

django - 如何在保存到数据库之前加密 TextField

python - Flask 蓝图无法导入模块

ios - 使用 Google map iOS sdk 在 swift 中创建自定义信息窗口?