libZSservicesZSamazonka-iotZSamazonka-iot
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.IoT.Types.DynamoDBAction

Description

 
Synopsis

Documentation

data DynamoDBAction Source #

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()}"

See: newDynamoDBAction smart constructor.

Constructors

DynamoDBAction' 

Fields

Instances

Instances details
Eq DynamoDBAction Source # 
Instance details

Defined in Amazonka.IoT.Types.DynamoDBAction

Read DynamoDBAction Source # 
Instance details

Defined in Amazonka.IoT.Types.DynamoDBAction

Show DynamoDBAction Source # 
Instance details

Defined in Amazonka.IoT.Types.DynamoDBAction

Generic DynamoDBAction Source # 
Instance details

Defined in Amazonka.IoT.Types.DynamoDBAction

Associated Types

type Rep DynamoDBAction :: Type -> Type #

NFData DynamoDBAction Source # 
Instance details

Defined in Amazonka.IoT.Types.DynamoDBAction

Methods

rnf :: DynamoDBAction -> () #

Hashable DynamoDBAction Source # 
Instance details

Defined in Amazonka.IoT.Types.DynamoDBAction

ToJSON DynamoDBAction Source # 
Instance details

Defined in Amazonka.IoT.Types.DynamoDBAction

FromJSON DynamoDBAction Source # 
Instance details

Defined in Amazonka.IoT.Types.DynamoDBAction

type Rep DynamoDBAction Source # 
Instance details

Defined in Amazonka.IoT.Types.DynamoDBAction

newDynamoDBAction Source #

Create a value of DynamoDBAction with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:hashKeyType:DynamoDBAction', dynamoDBAction_hashKeyType - The hash key type. Valid values are "STRING" or "NUMBER"

$sel:operation:DynamoDBAction', dynamoDBAction_operation - The type of operation to be performed. This follows the substitution template, so it can be ${operation}, but the substitution must result in one of the following: INSERT, UPDATE, or DELETE.

$sel:rangeKeyType:DynamoDBAction', dynamoDBAction_rangeKeyType - The range key type. Valid values are "STRING" or "NUMBER"

$sel:payloadField:DynamoDBAction', dynamoDBAction_payloadField - The action payload. This name can be customized.

$sel:rangeKeyField:DynamoDBAction', dynamoDBAction_rangeKeyField - The range key name.

$sel:rangeKeyValue:DynamoDBAction', dynamoDBAction_rangeKeyValue - The range key value.

$sel:tableName:DynamoDBAction', dynamoDBAction_tableName - The name of the DynamoDB table.

$sel:roleArn:DynamoDBAction', dynamoDBAction_roleArn - The ARN of the IAM role that grants access to the DynamoDB table.

$sel:hashKeyField:DynamoDBAction', dynamoDBAction_hashKeyField - The hash key name.

$sel:hashKeyValue:DynamoDBAction', dynamoDBAction_hashKeyValue - The hash key value.

dynamoDBAction_hashKeyType :: Lens' DynamoDBAction (Maybe DynamoKeyType) Source #

The hash key type. Valid values are "STRING" or "NUMBER"

dynamoDBAction_operation :: Lens' DynamoDBAction (Maybe Text) Source #

The type of operation to be performed. This follows the substitution template, so it can be ${operation}, but the substitution must result in one of the following: INSERT, UPDATE, or DELETE.

dynamoDBAction_rangeKeyType :: Lens' DynamoDBAction (Maybe DynamoKeyType) Source #

The range key type. Valid values are "STRING" or "NUMBER"

dynamoDBAction_payloadField :: Lens' DynamoDBAction (Maybe Text) Source #

The action payload. This name can be customized.

dynamoDBAction_tableName :: Lens' DynamoDBAction Text Source #

The name of the DynamoDB table.

dynamoDBAction_roleArn :: Lens' DynamoDBAction Text Source #

The ARN of the IAM role that grants access to the DynamoDB table.