com.pulumi.aws.pipes.outputs.PipeTargetParametersKinesisStreamParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
The newest version!
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.pipes.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class PipeTargetParametersKinesisStreamParameters {
/**
* @return 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.
*
*/
private String partitionKey;
private PipeTargetParametersKinesisStreamParameters() {}
/**
* @return 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.
*
*/
public String partitionKey() {
return this.partitionKey;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PipeTargetParametersKinesisStreamParameters defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String partitionKey;
public Builder() {}
public Builder(PipeTargetParametersKinesisStreamParameters defaults) {
Objects.requireNonNull(defaults);
this.partitionKey = defaults.partitionKey;
}
@CustomType.Setter
public Builder partitionKey(String partitionKey) {
if (partitionKey == null) {
throw new MissingRequiredPropertyException("PipeTargetParametersKinesisStreamParameters", "partitionKey");
}
this.partitionKey = partitionKey;
return this;
}
public PipeTargetParametersKinesisStreamParameters build() {
final var _resultValue = new PipeTargetParametersKinesisStreamParameters();
_resultValue.partitionKey = partitionKey;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy