DynamoDBAction class

Defines an action to write to the Amazon DynamoDB table that you created. The standard action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can also customize the payload. One column of the DynamoDB table receives all attribute-value pairs in the payload that you specify.

The tableName and hashKeyField values must match the table name and the partition key of the DynamoDB table.

The hashKeyValue and rangeKeyValue use substitution templates. These templates provide data at runtime. The syntax is ${sql-expression}.

You can use expressions for parameters that are string data type. For more information, see Expressions in the AWS IoT Events Developer Guide.

Constructors

DynamoDBAction({required String hashKeyField, required String hashKeyValue, required String tableName, String? hashKeyType, String? operation, Payload? payload, String? payloadField, String? rangeKeyField, String? rangeKeyType, String? rangeKeyValue})
DynamoDBAction.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
hashKeyField String
The name of the hash key (also called the partition key).
final
hashKeyType String?
The data type for the hash key (also called the partition key). You can specify the following values:
final
hashKeyValue String
The value of the hash key (also called the partition key).
final
operation String?
The type of operation to perform. You can specify the following values:
final
payload Payload?
final
payloadField String?
The name of the DynamoDB column that receives the action payload.
final
rangeKeyField String?
The name of the range key (also called the sort key).
final
rangeKeyType String?
The data type for the range key (also called the sort key), You can specify the following values:
final
rangeKeyValue String?
The value of the range key (also called the sort key).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tableName String
The name of the DynamoDB table.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited