python-2.7 - Aws Boto3 客户端(低级)与资源(高级)
问题描述
我正在使用 AWS Boto3 SDK 进行一些自动化。我无法了解客户端(低级)和资源(高级)之间的区别
这里的 Low-Level(Client) 和 High-Level(Resource) 有什么区别?
解决方案
根据我的理解,这里所做的参考是针对 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 一样紧密。这意味着,所有服务操作都将由客户端支持。然而,资源提供了一个高级接口,这与客户端提供的原始低级调用不同。
推荐阅读
- python - 链接:致命错误 LNK1104:无法打开文件“python37_d.lib”
- python - KivyMd 屏幕不变
- java - 如何将 X 和 Y 转换为 lat 和 long
- sql - 实施部分付款表
- node.js - 我无法在 jhipster 中构建 webpack prod
- python - 为什么熊猫散点图方法会引发警告?
- amazon-cloudwatch - 带有字符串的 AWS Log Insights 查询包含
- reactjs - 我如何更新商店页面加载第一次反应挂钩?
- ios - 为 Swift 5 自动定义的 pausesLocationUpdatesAutomatically 在哪里?
- amazon-web-services - 在 Mac 上的适用于 Windows 的 Amazon Web Service 模拟器上添加更多存储空间