@Stability(value=Stable) public static final class SelfManagedKafkaEventSourceProps.Builder extends Object implements software.amazon.jsii.Builder<SelfManagedKafkaEventSourceProps>
SelfManagedKafkaEventSourceProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public SelfManagedKafkaEventSourceProps.Builder bootstrapServers(List<String> bootstrapServers)
SelfManagedKafkaEventSourceProps.getBootstrapServers()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.
They are in the format abc.xyz.com:xxxx.this@Stability(value=Stable) public SelfManagedKafkaEventSourceProps.Builder authenticationMethod(AuthenticationMethod authenticationMethod)
SelfManagedKafkaEventSourceProps.getAuthenticationMethod()authenticationMethod - The authentication method for your Kafka cluster.this@Stability(value=Stable) public SelfManagedKafkaEventSourceProps.Builder securityGroup(ISecurityGroup securityGroup)
SelfManagedKafkaEventSourceProps.getSecurityGroup()securityGroup - If your Kafka brokers are only reachable via VPC, provide the security group here.this@Stability(value=Stable) public SelfManagedKafkaEventSourceProps.Builder vpc(IVpc vpc)
SelfManagedKafkaEventSourceProps.getVpc()vpc - If your Kafka brokers are only reachable via VPC provide the VPC here.this@Stability(value=Stable) public SelfManagedKafkaEventSourceProps.Builder vpcSubnets(SubnetSelection vpcSubnets)
SelfManagedKafkaEventSourceProps.getVpcSubnets()vpcSubnets - If your Kafka brokers are only reachable via VPC, provide the subnets selection here.this@Stability(value=Stable) public SelfManagedKafkaEventSourceProps.Builder topic(String topic)
KafkaEventSourceProps.getTopic()topic - The Kafka topic to subscribe to. This parameter is required.this@Stability(value=Stable) public SelfManagedKafkaEventSourceProps.Builder secret(ISecret secret)
KafkaEventSourceProps.getSecret()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@Stability(value=Stable) public SelfManagedKafkaEventSourceProps.Builder startingPosition(StartingPosition startingPosition)
BaseStreamEventSourceProps.getStartingPosition()startingPosition - Where to begin consuming the stream. This parameter is required.this@Stability(value=Stable) public SelfManagedKafkaEventSourceProps.Builder batchSize(Number batchSize)
BaseStreamEventSourceProps.getBatchSize()batchSize - The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function.
Your function receives an
event with all the retrieved records.
Valid Range:
this@Stability(value=Stable) public SelfManagedKafkaEventSourceProps.Builder enabled(Boolean enabled)
BaseStreamEventSourceProps.getEnabled()enabled - If the stream event source mapping should be enabled.this@Stability(value=Stable) public SelfManagedKafkaEventSourceProps.Builder maxBatchingWindow(Duration maxBatchingWindow)
BaseStreamEventSourceProps.getMaxBatchingWindow()maxBatchingWindow - The maximum amount of time to gather records before invoking the function.
Maximum of Duration.minutes(5)this@Stability(value=Stable) public SelfManagedKafkaEventSourceProps build()
build in interface software.amazon.jsii.Builder<SelfManagedKafkaEventSourceProps>SelfManagedKafkaEventSourcePropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.