Class CfnPipePropsMixin.PipeTargetKinesisStreamParametersProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.pipes.CfnPipePropsMixin.PipeTargetKinesisStreamParametersProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPipePropsMixin.PipeTargetKinesisStreamParametersProperty>
- Enclosing interface:
CfnPipePropsMixin.PipeTargetKinesisStreamParametersProperty
@Stability(Stable)
public static final class CfnPipePropsMixin.PipeTargetKinesisStreamParametersProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPipePropsMixin.PipeTargetKinesisStreamParametersProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.partitionKey(String partitionKey)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
partitionKey
@Stability(Stable) public CfnPipePropsMixin.PipeTargetKinesisStreamParametersProperty.Builder partitionKey(String partitionKey) - Parameters:
partitionKey- Determines which shard in the stream the data record is assigned to. Partition keys are Unicode strings with a maximum length limit of 256 characters for each key. Amazon Kinesis Data Streams uses the partition key as input to a hash function that maps the partition key and associated data to a specific shard. Specifically, an MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards. As a result of this hashing mechanism, all data records with the same partition key map to the same shard within the stream.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPipePropsMixin.PipeTargetKinesisStreamParametersProperty>- Returns:
- a new instance of
CfnPipePropsMixin.PipeTargetKinesisStreamParametersProperty - Throws:
NullPointerException- if any required attribute was not provided
-