【发布时间】:2020-11-12 05:54:48
【问题描述】:
我正在玩 DynamoDb。我不确定 StreamSpecification 的目的是什么,为什么我们应该或不应该使用它?我已经阅读了文档Aws - StreamSpecification,但它并没有解释它的作用。
MovieTable:
Type: AWS::DynamoDB::Table
Properties:
BillingMode: PAY_PER_REQUEST
AttributeDefinitions:
- AttributeName: "Name"
AttributeType: "S"
- AttributeName: "Genre"
AttributeType: "S"
- AttributeName: "Rating"
AttributeType: "N"
- AttributeName: "DateReleased"
AttributeType: "S"
KeySchema:
- AttributeName: "Name"
KeyType: "HASH"
- AttributeName: "Genre"
KeyType: "RANGE"
- AttributeName: "Rating"
KeyType: "RANGE"
- AttributeName: "DateReleased"
KeyType: "RANGE"
TimeToLiveSpecification:
AttributeName: ExpireAfter
Enabled: false
SSESpecification:
SSEEnabled: true
【问题讨论】:
标签: node.js amazon-web-services amazon-dynamodb amazon-cloudformation