class Aws::IoT::Types::DynamoDBAction
@return [String]
The action payload. This name can be customized.
@!attribute [rw] payload_field
@return [String]
The range key type. Valid values are “STRING” or “NUMBER”
@!attribute [rw] range_key_type
@return [String]
The range key value.
@!attribute [rw] range_key_value
@return [String]
The range key name.
@!attribute [rw] range_key_field
@return [String]
The hash key type. Valid values are “STRING” or “NUMBER”
@!attribute [rw] hash_key_type
@return [String]
The hash key value.
@!attribute [rw] hash_key_value
@return [String]
The hash key name.
@!attribute [rw] hash_key_field
@return [String]
result in one of the following: ‘INSERT`, `UPDATE`, or `DELETE`.
template, so it can be `${operation}`, but the substitution must
The type of operation to be performed. This follows the substitution
@!attribute [rw] operation
@return [String]
The ARN of the IAM role that grants access to the DynamoDB table.
@!attribute [rw] role_arn
@return [String]
The name of the DynamoDB table.
@!attribute [rw] table_name
}
payload_field: “PayloadField”,
range_key_type: “STRING”, # accepts STRING, NUMBER
range_key_value: “RangeKeyValue”,
range_key_field: “RangeKeyField”,
hash_key_type: “STRING”, # accepts STRING, NUMBER
hash_key_value: “HashKeyValue”, # required
hash_key_field: “HashKeyField”, # required
operation: “DynamoOperation”,
role_arn: “AwsArn”, # required
table_name: “TableName”, # required
{
data as a hash:
@note When making an API call, you may pass DynamoDBAction
`“rangeKeyValue”: “${timestamp()}”`
The following field uses the timestamp:
`“hashKeyValue”: “${topic(3)}”`
For example, the following field uses the third level of the topic:
including JSON properties, comparisons, calculations, and functions.
You can specify any valid expression in a WHERE or SELECT clause,
is as follows: $\{sql-expression\}.
template syntax. These templates provide data at runtime. The syntax
The `hashKeyValue` and `rangeKeyvalue` fields use a substitution
the values used when you created the table.
The `tableName`, `hashKeyField`, and `rangeKeyField` values must match
Describes an action to write to a DynamoDB table.