@Stability(value=Stable) 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)
The authentication method for your Kafka cluster.
|
SelfManagedKafkaEventSource.Builder |
batchSize(Number batchSize)
The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function.
|
SelfManagedKafkaEventSource.Builder |
bootstrapServers(List<String> 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.
|
SelfManagedKafkaEventSource |
build() |
SelfManagedKafkaEventSource.Builder |
consumerGroupId(String consumerGroupId)
The identifier for the Kafka consumer group to join.
|
static SelfManagedKafkaEventSource.Builder |
create() |
SelfManagedKafkaEventSource.Builder |
enabled(Boolean enabled)
If the stream event source mapping should be enabled.
|
SelfManagedKafkaEventSource.Builder |
maxBatchingWindow(Duration maxBatchingWindow)
The maximum amount of time to gather records before invoking the function.
|
SelfManagedKafkaEventSource.Builder |
rootCaCertificate(ISecret rootCaCertificate)
The secret with the root CA certificate used by your Kafka brokers for TLS encryption This field is required if your Kafka brokers use certificates signed by a private CA.
|
SelfManagedKafkaEventSource.Builder |
secret(ISecret secret)
The secret with the Kafka credentials, see https://docs.aws.amazon.com/msk/latest/developerguide/msk-password.html for details This field is required if your Kafka brokers are accessed over the Internet.
|
SelfManagedKafkaEventSource.Builder |
securityGroup(ISecurityGroup securityGroup)
If your Kafka brokers are only reachable via VPC, provide the security group here.
|
SelfManagedKafkaEventSource.Builder |
startingPosition(StartingPosition startingPosition)
Where to begin consuming the stream.
|
SelfManagedKafkaEventSource.Builder |
topic(String topic)
The Kafka topic to subscribe to.
|
SelfManagedKafkaEventSource.Builder |
vpc(IVpc vpc)
If your Kafka brokers are only reachable via VPC provide the VPC here.
|
SelfManagedKafkaEventSource.Builder |
vpcSubnets(SubnetSelection vpcSubnets)
If your Kafka brokers are only reachable via VPC, provide the subnets selection here.
|
@Stability(value=Stable) public static SelfManagedKafkaEventSource.Builder create()
SelfManagedKafkaEventSource.Builder.@Stability(value=Stable) public SelfManagedKafkaEventSource.Builder startingPosition(StartingPosition startingPosition)
startingPosition - Where to begin consuming the stream. This parameter is required.this@Stability(value=Stable) 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=Stable) 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=Stable) public SelfManagedKafkaEventSource.Builder maxBatchingWindow(Duration maxBatchingWindow)
Maximum of Duration.minutes(5).
Default: - Duration.seconds(0) for Kinesis, DynamoDB, and SQS event sources, Duration.millis(500) for MSK, self-managed Kafka, and Amazon MQ.
maxBatchingWindow - The maximum amount of time to gather records before invoking the function. This parameter is required.this@Stability(value=Stable) public SelfManagedKafkaEventSource.Builder topic(String topic)
topic - The Kafka topic to subscribe to. This parameter is required.this@Stability(value=Stable) public SelfManagedKafkaEventSource.Builder consumerGroupId(String consumerGroupId)
The consumer group ID must be unique among all your Kafka event sources. After creating a Kafka event source mapping with the consumer group ID specified, you cannot update this value. The value must have a lenght between 1 and 200 and full the pattern '[a-zA-Z0-9-/:_+=.@-]'.
Default: - none
consumerGroupId - The identifier for the Kafka consumer group to join. This parameter is required.this@Stability(value=Stable) public SelfManagedKafkaEventSource.Builder secret(ISecret secret)
Default: none
secret - The secret with the Kafka credentials, see https://docs.aws.amazon.com/msk/latest/developerguide/msk-password.html for details This field is required if your Kafka brokers are accessed over the Internet. This parameter is required.this@Stability(value=Stable) 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=Stable) 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=Stable) public SelfManagedKafkaEventSource.Builder rootCaCertificate(ISecret rootCaCertificate)
Default: - none
rootCaCertificate - The secret with the root CA certificate used by your Kafka brokers for TLS encryption This field is required if your Kafka brokers use certificates signed by a private CA. This parameter is required.this@Stability(value=Stable) 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=Stable) 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=Stable) 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=Stable) public SelfManagedKafkaEventSource build()
build in interface software.amazon.jsii.Builder<SelfManagedKafkaEventSource>Copyright © 2022. All rights reserved.