gpt4 book ai didi

ios - 使用 AWS Amplify 从 iOS (Swift) 连接到 Dynamodb

转载 作者:行者123 更新时间:2023-11-28 05:46:42 24 4
gpt4 key购买 nike

我曾经使用 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)

enter image description here

最佳答案

除非我弄错了,因为我是新手,我相信我们必须使用 REST API以便我们在 Amplify 上下文中调用各种 AWS 服务。因此,Lambda 函数将执行您的 DynamoDB 访问。

更新添加 REST API 时,系统会询问您要使用哪种功能模板。第一个选项是:

CRUD function for Amazon DynamoDB table (Integration with Amazon API Gateway and Amazon DynamoDB)

关于ios - 使用 AWS Amplify 从 iOS (Swift) 连接到 Dynamodb,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54410905/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com