我不知道文档是否缺少但我没有看到如何为GetRecords流项目构建正确的ARN。
好吧,之前我已经检索了描述:结果
{
StreamDescription: {
CreationRequestDateTime: 2017-09-03 13:00:59 +0000 UTC,
KeySchema: [{
AttributeName: "uuid",
KeyType: "HASH"
}],
Shards: [{
SequenceNumberRange: {
StartingSequenceNumber: "000000000000000000001"
},
ShardId: "shardId-00000001504443659977-73044b57"
}],
StreamArn: "arn:aws:dynamodb:ddblocal:000000000000:table/sound/stream/2017-09-03T13:00:59.970",
StreamLabel: "2017-09-03T13:00:59.970",
StreamStatus: "ENABLED",
StreamViewType: "NEW_IMAGE",
TableName: "sound"
}
}
POST / HTTP/1.1
x-amzn-RequestId: <RequestID>
x-amzn-crc32: <CRC32>
Content-Type: application/x-amz-json-1.0
Content-Length: <PayloadSizeBytes>
X-Amz-Date: <Date>
X-Amz-Target: DynamoDBStreams_20120810.GetRecords
{
"ShardIterator": "arn:aws:dynamodb:us-west-2:111122223333:table/Forum/stream/2015-05-20T20:51:10.252|1|AAAAAAAAAAEvJp6D+zaQ... <remaining characters omitted> ..."
}
我尝试用我的描述做到这一点:
arn:aws:dynamodb:ddblocal:000000000000:table/sound/stream/2017-09-03T13:00:59.970/1/00000001504443659977-73044b57
但是响应是错误400 ShardIterator无效。
您对创建正确的ARN有什么想法吗?