@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.402Z") @Stability(value=Stable) public interface CfnEventSourceMappingProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lambda.*;
CfnEventSourceMappingProps cfnEventSourceMappingProps = CfnEventSourceMappingProps.builder()
.functionName("functionName")
// the properties below are optional
.amazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfigProperty.builder()
.consumerGroupId("consumerGroupId")
.build())
.batchSize(123)
.bisectBatchOnFunctionError(false)
.destinationConfig(DestinationConfigProperty.builder()
.onFailure(OnFailureProperty.builder()
.destination("destination")
.build())
.build())
.enabled(false)
.eventSourceArn("eventSourceArn")
.filterCriteria(FilterCriteriaProperty.builder()
.filters(List.of(FilterProperty.builder()
.pattern("pattern")
.build()))
.build())
.functionResponseTypes(List.of("functionResponseTypes"))
.maximumBatchingWindowInSeconds(123)
.maximumRecordAgeInSeconds(123)
.maximumRetryAttempts(123)
.parallelizationFactor(123)
.queues(List.of("queues"))
.selfManagedEventSource(SelfManagedEventSourceProperty.builder()
.endpoints(EndpointsProperty.builder()
.kafkaBootstrapServers(List.of("kafkaBootstrapServers"))
.build())
.build())
.selfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfigProperty.builder()
.consumerGroupId("consumerGroupId")
.build())
.sourceAccessConfigurations(List.of(SourceAccessConfigurationProperty.builder()
.type("type")
.uri("uri")
.build()))
.startingPosition("startingPosition")
.startingPositionTimestamp(123)
.topics(List.of("topics"))
.tumblingWindowInSeconds(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnEventSourceMappingProps.Builder
A builder for
CfnEventSourceMappingProps |
static class |
CfnEventSourceMappingProps.Jsii$Proxy
An implementation for
CfnEventSourceMappingProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnEventSourceMappingProps.Builder |
builder() |
default Object |
getAmazonManagedKafkaEventSourceConfig()
`AWS::Lambda::EventSourceMapping.AmazonManagedKafkaEventSourceConfig`.
|
default Number |
getBatchSize()
The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function.
|
default Object |
getBisectBatchOnFunctionError()
(Streams only) If the function returns an error, split the batch in two and retry.
|
default Object |
getDestinationConfig()
(Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
|
default Object |
getEnabled()
When true, the event source mapping is active.
|
default String |
getEventSourceArn()
The Amazon Resource Name (ARN) of the event source.
|
default Object |
getFilterCriteria()
(Streams and Amazon SQS) An object that defines the filter criteria that determine whether Lambda should process an event.
|
String |
getFunctionName()
The name of the Lambda function.
|
default List<String> |
getFunctionResponseTypes()
(Streams and SQS) A list of current response type enums applied to the event source mapping.
|
default Number |
getMaximumBatchingWindowInSeconds()
The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.
|
default Number |
getMaximumRecordAgeInSeconds()
(Streams only) Discard records older than the specified age.
|
default Number |
getMaximumRetryAttempts()
(Streams only) Discard records after the specified number of retries.
|
default Number |
getParallelizationFactor()
(Streams only) The number of batches to process concurrently from each shard.
|
default List<String> |
getQueues()
(Amazon MQ) The name of the Amazon MQ broker destination queue to consume.
|
default Object |
getSelfManagedEventSource()
The self-managed Apache Kafka cluster for your event source.
|
default Object |
getSelfManagedKafkaEventSourceConfig()
`AWS::Lambda::EventSourceMapping.SelfManagedKafkaEventSourceConfig`.
|
default Object |
getSourceAccessConfigurations()
An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.
|
default String |
getStartingPosition()
The position in a stream from which to start reading.
|
default Number |
getStartingPositionTimestamp()
With `StartingPosition` set to `AT_TIMESTAMP` , the time from which to start reading, in Unix time seconds.
|
default List<String> |
getTopics()
The name of the Kafka topic.
|
default Number |
getTumblingWindowInSeconds()
(Streams only) The duration in seconds of a processing window.
|
@Stability(value=Stable) @NotNull String getFunctionName()
Name formats - Function name - MyFunction .
arn:aws:lambda:us-west-2:123456789012:function:MyFunction .arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD .123456789012:function:MyFunction .The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.
@Stability(value=Stable) @Nullable default Object getAmazonManagedKafkaEventSourceConfig()
@Stability(value=Stable) @Nullable default Number getBatchSize()
Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB).
@Stability(value=Stable) @Nullable default Object getBisectBatchOnFunctionError()
The default value is false.
@Stability(value=Stable) @Nullable default Object getDestinationConfig()
@Stability(value=Stable) @Nullable default Object getEnabled()
Default: True
@Stability(value=Stable) @Nullable default String getEventSourceArn()
@Stability(value=Stable) @Nullable default Object getFilterCriteria()
For more information, see Lambda event filtering .
@Stability(value=Stable) @Nullable default List<String> getFunctionResponseTypes()
Valid Values: ReportBatchItemFailures
@Stability(value=Stable) @Nullable default Number getMaximumBatchingWindowInSeconds()
Default ( Kinesis , DynamoDB , Amazon SQS event sources) : 0
Default ( Amazon MSK , Kafka, Amazon MQ event sources) : 500 ms
@Stability(value=Stable) @Nullable default Number getMaximumRecordAgeInSeconds()
The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, Lambda never discards old records.
@Stability(value=Stable) @Nullable default Number getMaximumRetryAttempts()
The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source.
@Stability(value=Stable) @Nullable default Number getParallelizationFactor()
The default value is 1.
@Stability(value=Stable) @Nullable default List<String> getQueues()
@Stability(value=Stable) @Nullable default Object getSelfManagedEventSource()
@Stability(value=Stable) @Nullable default Object getSelfManagedKafkaEventSourceConfig()
@Stability(value=Stable) @Nullable default Object getSourceAccessConfigurations()
@Stability(value=Stable) @Nullable default String getStartingPosition()
@Stability(value=Stable) @Nullable default Number getStartingPositionTimestamp()
@Stability(value=Stable) @Nullable default List<String> getTopics()
@Stability(value=Stable) @Nullable default Number getTumblingWindowInSeconds()
The range is between 1 second up to 900 seconds.
@Stability(value=Stable) static CfnEventSourceMappingProps.Builder builder()
CfnEventSourceMappingProps.Builder of CfnEventSourceMappingPropsCopyright © 2022. All rights reserved.