You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::IoTEvents::Types::DynamoDBv2Action

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing DynamoDBv2Action as input to an Aws::Client method, you can use a vanilla Hash:

{
  table_name: "DynamoTableName", # required
  payload: {
    content_expression: "ContentExpression", # required
    type: "STRING", # required, accepts STRING, JSON
  },
}

Defines an action to write to the Amazon DynamoDB table that you created. The default 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. A separate column of the DynamoDB table receives one attribute-value pair in the payload that you specify.

The type value for Payload must be JSON.

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

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#payloadTypes::Payload

Information needed to configure the payload.

By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use contentExpression.

Returns:

  • (Types::Payload)

    Information needed to configure the payload.

    By default, AWS IoT Events generates a standard payload in JSON for any action.

#table_nameString

The name of the DynamoDB table.

Returns:

  • (String)

    The name of the DynamoDB table.