DynamoDbAction
Describes an action to write to a DynamoDB table.
The tableName
, hashKeyField
, and rangeKeyField
values must match the values used when you created the table.
The hashKeyValue
and rangeKeyvalue
fields use a substitution template syntax. These templates provide data at runtime. The syntax is as follows: ${sql-expression}.
You can specify any valid expression in a WHERE or SELECT clause, including JSON properties, comparisons, calculations, and functions. For example, the following field uses the third level of the topic:
"hashKeyValue": "${topic(3)}"
The following field uses the timestamp:
"rangeKeyValue": "${timestamp()}"
Types
Properties
The hash key name.
The hash key type. Valid values are "STRING" or "NUMBER"
The hash key value.
The action payload. This name can be customized.
The range key name.
The range key type. Valid values are "STRING" or "NUMBER"
The range key value.