@Stability(value=Experimental) public static final class SelfManagedKafkaEventSource.Builder extends Object implements software.amazon.jsii.Builder<SelfManagedKafkaEventSource>
SelfManagedKafkaEventSource.| Modifier and Type | Method and Description |
|---|---|
SelfManagedKafkaEventSource.Builder |
authenticationMethod(AuthenticationMethod authenticationMethod)
(experimental) The authentication method for your Kafka cluster.
|
SelfManagedKafkaEventSource.Builder |
batchSize(Number batchSize)
(experimental) The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function.
|
SelfManagedKafkaEventSource.Builder |
bisectBatchOnError(Boolean bisectBatchOnError)
(experimental) If the function returns an error, split the batch in two and retry.
|
SelfManagedKafkaEventSource.Builder |
bootstrapServers(List<String> bootstrapServers)
(experimental) The list of host and port pairs that are the addresses of the Kafka brokers in a "bootstrap" Kafka cluster that a Kafka client connects to initially to bootstrap itself.
|
SelfManagedKafkaEventSource |
build() |
static SelfManagedKafkaEventSource.Builder |
create() |
SelfManagedKafkaEventSource.Builder |
enabled(Boolean enabled)
(experimental) If the stream event source mapping should be enabled.
|
SelfManagedKafkaEventSource.Builder |
maxBatchingWindow(Duration maxBatchingWindow)
(experimental) The maximum amount of time to gather records before invoking the function.
|
SelfManagedKafkaEventSource.Builder |
maxRecordAge(Duration maxRecordAge)
(experimental) The maximum age of a record that Lambda sends to a function for processing.
|
SelfManagedKafkaEventSource.Builder |
onFailure(IEventSourceDlq onFailure)
(experimental) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
|
SelfManagedKafkaEventSource.Builder |
parallelizationFactor(Number parallelizationFactor)
(experimental) The number of batches to process from each shard concurrently.
|
SelfManagedKafkaEventSource.Builder |
retryAttempts(Number retryAttempts)
(experimental) Maximum number of retry attempts Valid Range: * Minimum value of 0 * Maximum value of 10000.
|
SelfManagedKafkaEventSource.Builder |
secret(ISecret secret)
(experimental) the secret with the Kafka credentials, see https://docs.aws.amazon.com/msk/latest/developerguide/msk-password.html for details.
|
SelfManagedKafkaEventSource.Builder |
securityGroup(ISecurityGroup securityGroup)
(experimental) If your Kafka brokers are only reachable via VPC, provide the security group here.
|
SelfManagedKafkaEventSource.Builder |
startingPosition(StartingPosition startingPosition)
(experimental) Where to begin consuming the stream.
|
SelfManagedKafkaEventSource.Builder |
topic(String topic)
(experimental) the Kafka topic to subscribe to.
|
SelfManagedKafkaEventSource.Builder |
tumblingWindow(Duration tumblingWindow)
(experimental) The size of the tumbling windows to group records sent to DynamoDB or Kinesis Valid Range: 0 - 15 minutes.
|
SelfManagedKafkaEventSource.Builder |
vpc(IVpc vpc)
(experimental) If your Kafka brokers are only reachable via VPC provide the VPC here.
|
SelfManagedKafkaEventSource.Builder |
vpcSubnets(SubnetSelection vpcSubnets)
(experimental) If your Kafka brokers are only reachable via VPC, provide the subnets selection here.
|
@Stability(value=Experimental) public static SelfManagedKafkaEventSource.Builder create()
SelfManagedKafkaEventSource.Builder.@Stability(value=Experimental) public SelfManagedKafkaEventSource.Builder startingPosition(StartingPosition startingPosition)
startingPosition - Where to begin consuming the stream. This parameter is required.this@Stability(value=Experimental) public SelfManagedKafkaEventSource.Builder batchSize(Number batchSize)
Your function receives an event with all the retrieved records.
Valid Range:
Default: 100
batchSize - The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function. This parameter is required.this@Stability(value=Experimental) public SelfManagedKafkaEventSource.Builder bisectBatchOnError(Boolean bisectBatchOnError)
Default: false
bisectBatchOnError - If the function returns an error, split the batch in two and retry. This parameter is required.this@Stability(value=Experimental) public SelfManagedKafkaEventSource.Builder enabled(Boolean enabled)
Default: true
enabled - If the stream event source mapping should be enabled. This parameter is required.this@Stability(value=Experimental) public SelfManagedKafkaEventSource.Builder maxBatchingWindow(Duration maxBatchingWindow)
Maximum of Duration.minutes(5)
Default: Duration.seconds(0)
maxBatchingWindow - The maximum amount of time to gather records before invoking the function. This parameter is required.this@Stability(value=Experimental) public SelfManagedKafkaEventSource.Builder maxRecordAge(Duration maxRecordAge)
Valid Range:
Default: - the retention period configured on the stream
maxRecordAge - The maximum age of a record that Lambda sends to a function for processing. This parameter is required.this@Stability(value=Experimental) public SelfManagedKafkaEventSource.Builder onFailure(IEventSourceDlq onFailure)
Default: discarded records are ignored
onFailure - An Amazon SQS queue or Amazon SNS topic destination for discarded records. This parameter is required.this@Stability(value=Experimental) public SelfManagedKafkaEventSource.Builder parallelizationFactor(Number parallelizationFactor)
Valid Range:
Default: 1
parallelizationFactor - The number of batches to process from each shard concurrently. This parameter is required.this@Stability(value=Experimental) public SelfManagedKafkaEventSource.Builder retryAttempts(Number retryAttempts)
Default: - retry until the record expires
retryAttempts - Maximum number of retry attempts Valid Range: * Minimum value of 0 * Maximum value of 10000. This parameter is required.this@Stability(value=Experimental) public SelfManagedKafkaEventSource.Builder tumblingWindow(Duration tumblingWindow)
Default: - None
tumblingWindow - The size of the tumbling windows to group records sent to DynamoDB or Kinesis Valid Range: 0 - 15 minutes. This parameter is required.this@Stability(value=Experimental) public SelfManagedKafkaEventSource.Builder secret(ISecret secret)
secret - the secret with the Kafka credentials, see https://docs.aws.amazon.com/msk/latest/developerguide/msk-password.html for details. This parameter is required.this@Stability(value=Experimental) public SelfManagedKafkaEventSource.Builder topic(String topic)
topic - the Kafka topic to subscribe to. This parameter is required.this@Stability(value=Experimental) public SelfManagedKafkaEventSource.Builder bootstrapServers(List<String> bootstrapServers)
They are in the format abc.xyz.com:xxxx.
bootstrapServers - The list of host and port pairs that are the addresses of the Kafka brokers in a "bootstrap" Kafka cluster that a Kafka client connects to initially to bootstrap itself. This parameter is required.this@Stability(value=Experimental) public SelfManagedKafkaEventSource.Builder authenticationMethod(AuthenticationMethod authenticationMethod)
Default: AuthenticationMethod.SASL_SCRAM_512_AUTH
authenticationMethod - The authentication method for your Kafka cluster. This parameter is required.this@Stability(value=Experimental) public SelfManagedKafkaEventSource.Builder securityGroup(ISecurityGroup securityGroup)
Default: - none, required if setting vpc
securityGroup - If your Kafka brokers are only reachable via VPC, provide the security group here. This parameter is required.this@Stability(value=Experimental) public SelfManagedKafkaEventSource.Builder vpc(IVpc vpc)
Default: none
vpc - If your Kafka brokers are only reachable via VPC provide the VPC here. This parameter is required.this@Stability(value=Experimental) public SelfManagedKafkaEventSource.Builder vpcSubnets(SubnetSelection vpcSubnets)
Default: - none, required if setting vpc
vpcSubnets - If your Kafka brokers are only reachable via VPC, provide the subnets selection here. This parameter is required.this@Stability(value=Experimental) public SelfManagedKafkaEventSource build()
build in interface software.amazon.jsii.Builder<SelfManagedKafkaEventSource>Copyright © 2021. All rights reserved.