ios - 使用 AWS Amplify 从 iOS (Swift) 连接到 Dynamodb
问题描述
我曾经使用 AWS 移动 SDK 直接连接到从 iOS 访问 Dynamodb 表。现在 AWS 鼓励迁移到 Amplify。在文档中没有关于 Dynamodb 读/写操作的指南。我们应该使用 API 访问 Dynamodb 还是可以使用 AWSDynamoDBObjectMapper(请参阅https://docs.aws.amazon.com/aws-mobile/latest/developerguide/mobile-hub-add-aws-mobile-nosql-database.html )
解决方案
除非我弄错了,因为我是新手,我相信我们必须使用REST API才能在 Amplify 上下文中调用各种 AWS 服务。因此,Lambda 函数将执行您的 DynamoDB 访问。
更新 当您添加 REST API 时,系统会询问您要使用哪种功能模板。第一个选项是:
Amazon DynamoDB 表的 CRUD 功能(与 Amazon API Gateway 和 Amazon DynamoDB 集成)
推荐阅读
- python - Python用两行而不是一行编写
- ruby-on-rails - 通过 Stripe Checkout 支付后如何更改 Rails 对象字段?
- javascript - Vuejs表单在数组中获取多个值
- laravel - Laravel 策略总是返回 403
- java - 如何从 JavaFX 中的 ComboBox 中获取所选项目的数量?
- amazon-web-services - Terraform,ElasticSearch:错误:InvalidTypeException:错误设置策略
- c++ - 如何在 c++17 中使用嵌套的静态模板结构
- flutter - Flutter iOS 风格的 UIKit 动态视图动画
- android - 我应该按什么顺序调用此注销序列中的事件?
- julia - 在 Julia 中使用 `\` 而不是 `/`