Class CfnTopicRule.KinesisActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnTopicRule.KinesisActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopicRule.KinesisActionProperty>
- Enclosing interface:
CfnTopicRule.KinesisActionProperty
@Stability(Stable)
public static final class CfnTopicRule.KinesisActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopicRule.KinesisActionProperty>
A builder for
CfnTopicRule.KinesisActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.partitionKey(String partitionKey) Sets the value ofCfnTopicRule.KinesisActionProperty.getPartitionKey()Sets the value ofCfnTopicRule.KinesisActionProperty.getRoleArn()streamName(String streamName) Sets the value ofCfnTopicRule.KinesisActionProperty.getStreamName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
roleArn
Sets the value ofCfnTopicRule.KinesisActionProperty.getRoleArn()- Parameters:
roleArn- The ARN of the IAM role that grants access to the Amazon Kinesis stream. This parameter is required.- Returns:
this
-
streamName
Sets the value ofCfnTopicRule.KinesisActionProperty.getStreamName()- Parameters:
streamName- The name of the Amazon Kinesis stream. This parameter is required.- Returns:
this
-
partitionKey
@Stability(Stable) public CfnTopicRule.KinesisActionProperty.Builder partitionKey(String partitionKey) Sets the value ofCfnTopicRule.KinesisActionProperty.getPartitionKey()- Parameters:
partitionKey- The partition key.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTopicRule.KinesisActionProperty>- Returns:
- a new instance of
CfnTopicRule.KinesisActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-