Class CfnEventSourceMappingPropsMixin
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.lambda.CfnEventSourceMappingPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:20:00.900Z")
@Stability(Stable)
public class CfnEventSourceMappingPropsMixin
extends Mixin
implements software.constructs.IMixin
The
AWS::Lambda::EventSourceMapping resource creates a mapping between an event source and an AWS Lambda function.
Lambda reads items from the event source and triggers the function.
For details about each event source type, see the following topics. In particular, each of the topics describes the required and optional parameters for the specific event source.
- Configuring a Dynamo DB stream as an event source
- Configuring a Kinesis stream as an event source
- Configuring an SQS queue as an event source
- Configuring an MQ broker as an event source
- Configuring MSK as an event source
- Configuring Self-Managed Apache Kafka as an event source
- Configuring Amazon DocumentDB as an event source
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.lambda.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnEventSourceMappingPropsMixin cfnEventSourceMappingPropsMixin = CfnEventSourceMappingPropsMixin.Builder.create(CfnEventSourceMappingMixinProps.builder()
.amazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfigProperty.builder()
.consumerGroupId("consumerGroupId")
.schemaRegistryConfig(SchemaRegistryConfigProperty.builder()
.accessConfigs(List.of(SchemaRegistryAccessConfigProperty.builder()
.type("type")
.uri("uri")
.build()))
.eventRecordFormat("eventRecordFormat")
.schemaRegistryUri("schemaRegistryUri")
.schemaValidationConfigs(List.of(SchemaValidationConfigProperty.builder()
.attribute("attribute")
.build()))
.build())
.build())
.batchSize(123)
.bisectBatchOnFunctionError(false)
.destinationConfig(DestinationConfigProperty.builder()
.onFailure(OnFailureProperty.builder()
.destination("destination")
.build())
.build())
.documentDbEventSourceConfig(DocumentDBEventSourceConfigProperty.builder()
.collectionName("collectionName")
.databaseName("databaseName")
.fullDocument("fullDocument")
.build())
.enabled(false)
.eventSourceArn("eventSourceArn")
.filterCriteria(FilterCriteriaProperty.builder()
.filters(List.of(FilterProperty.builder()
.pattern("pattern")
.build()))
.build())
.functionName("functionName")
.functionResponseTypes(List.of("functionResponseTypes"))
.kmsKeyArn("kmsKeyArn")
.loggingConfig(LoggingConfigProperty.builder()
.systemLogLevel("systemLogLevel")
.build())
.maximumBatchingWindowInSeconds(123)
.maximumRecordAgeInSeconds(123)
.maximumRetryAttempts(123)
.metricsConfig(MetricsConfigProperty.builder()
.metrics(List.of("metrics"))
.build())
.parallelizationFactor(123)
.provisionedPollerConfig(ProvisionedPollerConfigProperty.builder()
.maximumPollers(123)
.minimumPollers(123)
.pollerGroupName("pollerGroupName")
.build())
.queues(List.of("queues"))
.scalingConfig(ScalingConfigProperty.builder()
.maximumConcurrency(123)
.build())
.selfManagedEventSource(SelfManagedEventSourceProperty.builder()
.endpoints(EndpointsProperty.builder()
.kafkaBootstrapServers(List.of("kafkaBootstrapServers"))
.build())
.build())
.selfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfigProperty.builder()
.consumerGroupId("consumerGroupId")
.schemaRegistryConfig(SchemaRegistryConfigProperty.builder()
.accessConfigs(List.of(SchemaRegistryAccessConfigProperty.builder()
.type("type")
.uri("uri")
.build()))
.eventRecordFormat("eventRecordFormat")
.schemaRegistryUri("schemaRegistryUri")
.schemaValidationConfigs(List.of(SchemaValidationConfigProperty.builder()
.attribute("attribute")
.build()))
.build())
.build())
.sourceAccessConfigurations(List.of(SourceAccessConfigurationProperty.builder()
.type("type")
.uri("uri")
.build()))
.startingPosition("startingPosition")
.startingPositionTimestamp(123)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.topics(List.of("topics"))
.tumblingWindowInSeconds(123)
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceSpecific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.static final classA fluent builder forCfnEventSourceMappingPropsMixin.static interfaceA configuration object that specifies the destination of an event after Lambda processes it.static interfaceSpecific configuration settings for a DocumentDB event source.static interfaceThe list of bootstrap servers for your Kafka brokers in the following format:"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"].static interfaceAn object that contains the filters for an event source.static interfaceA structure within aFilterCriteriaobject that defines an event filtering pattern.static interfaceThe function's Amazon CloudWatch Logs configuration settings.static interfaceThe metrics configuration for your event source.static interfaceA destination for events that failed processing.static interfaceThe provisioned mode configuration for the event source.static interface(Amazon SQS only) The scaling configuration for the event source.static interfaceSpecific access configuration settings that tell Lambda how to authenticate with your schema registry.static interfaceSpecific configuration settings for a Kafka schema registry.static interfaceSpecific schema validation configuration settings that tell Lambda the message attributes you want to validate and filter using your schema registry.static interfaceThe self-managed Apache Kafka cluster for your event source.static interfaceSpecific configuration settings for a self-managed Apache Kafka event source.static interfaceAn array of the authentication protocol, VPC components, or virtual host to secure and define your event source.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::Lambda::EventSourceMapping.CfnEventSourceMappingPropsMixin(CfnEventSourceMappingMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::Lambda::EventSourceMapping.protectedCfnEventSourceMappingPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnEventSourceMappingPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnEventSourceMappingMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnEventSourceMappingPropsMixin
protected CfnEventSourceMappingPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnEventSourceMappingPropsMixin
protected CfnEventSourceMappingPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnEventSourceMappingPropsMixin
@Stability(Stable) public CfnEventSourceMappingPropsMixin(@NotNull CfnEventSourceMappingMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::Lambda::EventSourceMapping.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnEventSourceMappingPropsMixin
@Stability(Stable) public CfnEventSourceMappingPropsMixin(@NotNull CfnEventSourceMappingMixinProps props) Create a mixin to apply properties toAWS::Lambda::EventSourceMapping.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-