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