AWS Step Functions
AWS 文档中描述的 AWS 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅中国的 AWS 服务入门

使用 Step Functions 调用 DynamoDB API

Step Functions can control some AWS services directly from the Amazon 状态语言. For more information, see:


There is a limit on the maximum input or result data size for a task in Step Functions. This limits you to 32,768 characters of data when you send to, or receive data from, another service. See 与状态机执行相关的限制.

支持的 DynamoDB API 和语法:

下面是从 Amazon DynamoDB 检索消息的 Task 状态。

"Read Next Message from DynamoDB": { "Type": "Task", "Resource": "arn:aws:states:::dynamodb:getItem", "Parameters": { "TableName": "TransferDataRecords-DDBTable-3I41R5L5EAGT", "Key": { "MessageId": {"S.$": "$.List[0]"} } }, "ResultPath": "$.DynamoDB", "Next": "Send Message to SQS" },

要在可正常使用的示例中查看此状态,请参阅传输数据记录(Lambda、DynamoDB、Amazon SQS)示例项目。

For information on how to configure IAM when using Step Functions with other AWS services, see 集成服务的 IAM 策略.