amazon-web-services - 适用于 DynamoDb bool 和列表数据类型的 AWS CloudFormation AttributeType

标签 amazon-web-services amazon-dynamodb aws-cloudformation

我正在尝试使用 AWS CloudFormation 创建 AWS DynamoDB 表,
我对在表中指定 bool 数据类型的内容感到困惑,
在模板文件中。

我在表格中的数据显示为 bool 类型 -

enter image description here

还得到了一个List类型的数据-
enter image description here

但是在文档上它显示它只有 3 种类型需要指定 -

enter image description here

我正在关注此 CloudFormation 引用文档 -

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html

最佳答案

你打算用它作为索引吗?如果不是,您不需要这些列,即使您的模板也会失败,表明您有一个未在任何索引中使用的列。因为Dynamo是schemaless 。除非你可以使用 BOOL type作为数据类型。

关于amazon-web-services - 适用于 DynamoDb bool 和列表数据类型的 AWS CloudFormation AttributeType,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56831199/

相关文章:

amazon-web-services - CloudWatch 日志数据存储在哪里?

python - AWS Lambda 的 python 请求模块问题

hadoop - AmazonServiceException NoClassDefFoundError异常

amazon-web-services - 解析 CloudFormation StackSet 中的 "shared"Secretsmanager key

amazon-web-services - 在 Glue 作业中创建 Glue 数据目录表

amazon-dynamodb - 返回也具有字段解析器的 Appsync GraphQL 类型

对 AWS DynamoDB 的语言支持

php - 可扩展的网络应用程序

amazon-web-services - 不应用 AWS 堆栈集实例的覆盖参数

yaml - 无服务器部署返回存储桶已存在