@Stability(value=Stable)
public static interface CfnTopicRule.DynamoDBv2ActionProperty
extends software.amazon.jsii.JsiiSerializable
This DynamoDB action writes each attribute in the message payload into it's own column in the DynamoDB table.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iot.*;
DynamoDBv2ActionProperty dynamoDBv2ActionProperty = DynamoDBv2ActionProperty.builder()
.putItem(PutItemInputProperty.builder()
.tableName("tableName")
.build())
.roleArn("roleArn")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnTopicRule.DynamoDBv2ActionProperty.Builder
A builder for
CfnTopicRule.DynamoDBv2ActionProperty |
static class |
CfnTopicRule.DynamoDBv2ActionProperty.Jsii$Proxy
An implementation for
CfnTopicRule.DynamoDBv2ActionProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnTopicRule.DynamoDBv2ActionProperty.Builder |
builder() |
default Object |
getPutItem()
Specifies the DynamoDB table to which the message data will be written.
|
default String |
getRoleArn()
The ARN of the IAM role that grants access to the DynamoDB table.
|
@Stability(value=Stable) @Nullable default Object getPutItem()
{ "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.
@Stability(value=Stable) @Nullable default String getRoleArn()
@Stability(value=Stable) static CfnTopicRule.DynamoDBv2ActionProperty.Builder builder()
Copyright © 2022. All rights reserved.