Class CfnPipe.PipeTargetKinesisStreamParametersProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pipes.CfnPipe.PipeTargetKinesisStreamParametersProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPipe.PipeTargetKinesisStreamParametersProperty>
- Enclosing interface:
CfnPipe.PipeTargetKinesisStreamParametersProperty
@Stability(Stable)
public static final class CfnPipe.PipeTargetKinesisStreamParametersProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPipe.PipeTargetKinesisStreamParametersProperty>
A builder for
CfnPipe.PipeTargetKinesisStreamParametersProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.partitionKey
(String partitionKey) Sets the value ofCfnPipe.PipeTargetKinesisStreamParametersProperty.getPartitionKey()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
partitionKey
@Stability(Stable) public CfnPipe.PipeTargetKinesisStreamParametersProperty.Builder partitionKey(String partitionKey) Sets the value ofCfnPipe.PipeTargetKinesisStreamParametersProperty.getPartitionKey()
- Parameters:
partitionKey
- Determines which shard in the stream the data record is assigned to. This parameter is required. 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:
build
in interfacesoftware.amazon.jsii.Builder<CfnPipe.PipeTargetKinesisStreamParametersProperty>
- Returns:
- a new instance of
CfnPipe.PipeTargetKinesisStreamParametersProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-