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.DynamoDBv2Action

Description

 
Synopsis

Documentation

data DynamoDBv2Action Source #

Describes an action to write to a DynamoDB table.

This DynamoDB action writes each attribute in the message payload into it's own column in the DynamoDB table.

See: newDynamoDBv2Action smart constructor.

Constructors

DynamoDBv2Action' 

Fields

  • roleArn :: Text

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

  • putItem :: PutItemInput

    Specifies the DynamoDB table to which the message data will be written. For example:

    { "dynamoDBv2": { "roleArn": "aws:iam:12341251:my-role" "putItem": { "tableName": "my-table" } } }

    Each attribute in the message payload will be written to a separate column in the DynamoDB database.

Instances

Instances details
Eq DynamoDBv2Action Source # 
Instance details

Defined in Amazonka.IoT.Types.DynamoDBv2Action

Read DynamoDBv2Action Source # 
Instance details

Defined in Amazonka.IoT.Types.DynamoDBv2Action

Show DynamoDBv2Action Source # 
Instance details

Defined in Amazonka.IoT.Types.DynamoDBv2Action

Generic DynamoDBv2Action Source # 
Instance details

Defined in Amazonka.IoT.Types.DynamoDBv2Action

Associated Types

type Rep DynamoDBv2Action :: Type -> Type #

NFData DynamoDBv2Action Source # 
Instance details

Defined in Amazonka.IoT.Types.DynamoDBv2Action

Methods

rnf :: DynamoDBv2Action -> () #

Hashable DynamoDBv2Action Source # 
Instance details

Defined in Amazonka.IoT.Types.DynamoDBv2Action

ToJSON DynamoDBv2Action Source # 
Instance details

Defined in Amazonka.IoT.Types.DynamoDBv2Action

FromJSON DynamoDBv2Action Source # 
Instance details

Defined in Amazonka.IoT.Types.DynamoDBv2Action

type Rep DynamoDBv2Action Source # 
Instance details

Defined in Amazonka.IoT.Types.DynamoDBv2Action

type Rep DynamoDBv2Action = D1 ('MetaData "DynamoDBv2Action" "Amazonka.IoT.Types.DynamoDBv2Action" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "DynamoDBv2Action'" 'PrefixI 'True) (S1 ('MetaSel ('Just "roleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "putItem") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PutItemInput)))

newDynamoDBv2Action Source #

Create a value of DynamoDBv2Action 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:roleArn:DynamoDBv2Action', dynamoDBv2Action_roleArn - The ARN of the IAM role that grants access to the DynamoDB table.

$sel:putItem:DynamoDBv2Action', dynamoDBv2Action_putItem - Specifies the DynamoDB table to which the message data will be written. For example:

{ "dynamoDBv2": { "roleArn": "aws:iam:12341251:my-role" "putItem": { "tableName": "my-table" } } }

Each attribute in the message payload will be written to a separate column in the DynamoDB database.

dynamoDBv2Action_roleArn :: Lens' DynamoDBv2Action Text Source #

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

dynamoDBv2Action_putItem :: Lens' DynamoDBv2Action PutItemInput Source #

Specifies the DynamoDB table to which the message data will be written. For example:

{ "dynamoDBv2": { "roleArn": "aws:iam:12341251:my-role" "putItem": { "tableName": "my-table" } } }

Each attribute in the message payload will be written to a separate column in the DynamoDB database.