Class CfnTopicRule.DynamoDBv2ActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnTopicRule.DynamoDBv2ActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopicRule.DynamoDBv2ActionProperty>
- Enclosing interface:
CfnTopicRule.DynamoDBv2ActionProperty
@Stability(Stable)
public static final class CfnTopicRule.DynamoDBv2ActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopicRule.DynamoDBv2ActionProperty>
A builder for
CfnTopicRule.DynamoDBv2ActionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.putItem
(IResolvable putItem) Sets the value ofCfnTopicRule.DynamoDBv2ActionProperty.getPutItem()
putItem
(CfnTopicRule.PutItemInputProperty putItem) Sets the value ofCfnTopicRule.DynamoDBv2ActionProperty.getPutItem()
Sets the value ofCfnTopicRule.DynamoDBv2ActionProperty.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
putItem
@Stability(Stable) public CfnTopicRule.DynamoDBv2ActionProperty.Builder putItem(IResolvable putItem) Sets the value ofCfnTopicRule.DynamoDBv2ActionProperty.getPutItem()
- Parameters:
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.
- Returns:
this
-
putItem
@Stability(Stable) public CfnTopicRule.DynamoDBv2ActionProperty.Builder putItem(CfnTopicRule.PutItemInputProperty putItem) Sets the value ofCfnTopicRule.DynamoDBv2ActionProperty.getPutItem()
- Parameters:
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.
- Returns:
this
-
roleArn
Sets the value ofCfnTopicRule.DynamoDBv2ActionProperty.getRoleArn()
- Parameters:
roleArn
- The ARN of the IAM role that grants access to the DynamoDB table.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTopicRule.DynamoDBv2ActionProperty>
- Returns:
- a new instance of
CfnTopicRule.DynamoDBv2ActionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-