class CfnEventSourceMappingPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Lambda.Mixins.CfnEventSourceMappingPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awslambda/mixins#CfnEventSourceMappingPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.lambda.mixins.CfnEventSourceMappingPropsMixin |
Python | aws_cdk.mixins_preview.aws_lambda.mixins.CfnEventSourceMappingPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_lambda » mixins » CfnEventSourceMappingPropsMixin |
Implements
IMixin
Extends
Mixin
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 { mixins } from '@aws-cdk/mixins-preview';
import { mixins as lambda_mixins } from '@aws-cdk/mixins-preview/aws-lambda';
const cfnEventSourceMappingPropsMixin = new lambda_mixins.CfnEventSourceMappingPropsMixin({
amazonManagedKafkaEventSourceConfig: {
consumerGroupId: 'consumerGroupId',
schemaRegistryConfig: {
accessConfigs: [{
type: 'type',
uri: 'uri',
}],
eventRecordFormat: 'eventRecordFormat',
schemaRegistryUri: 'schemaRegistryUri',
schemaValidationConfigs: [{
attribute: 'attribute',
}],
},
},
batchSize: 123,
bisectBatchOnFunctionError: false,
destinationConfig: {
onFailure: {
destination: 'destination',
},
},
documentDbEventSourceConfig: {
collectionName: 'collectionName',
databaseName: 'databaseName',
fullDocument: 'fullDocument',
},
enabled: false,
eventSourceArn: 'eventSourceArn',
filterCriteria: {
filters: [{
pattern: 'pattern',
}],
},
functionName: 'functionName',
functionResponseTypes: ['functionResponseTypes'],
kmsKeyArn: 'kmsKeyArn',
loggingConfig: {
systemLogLevel: 'systemLogLevel',
},
maximumBatchingWindowInSeconds: 123,
maximumRecordAgeInSeconds: 123,
maximumRetryAttempts: 123,
metricsConfig: {
metrics: ['metrics'],
},
parallelizationFactor: 123,
provisionedPollerConfig: {
maximumPollers: 123,
minimumPollers: 123,
pollerGroupName: 'pollerGroupName',
},
queues: ['queues'],
scalingConfig: {
maximumConcurrency: 123,
},
selfManagedEventSource: {
endpoints: {
kafkaBootstrapServers: ['kafkaBootstrapServers'],
},
},
selfManagedKafkaEventSourceConfig: {
consumerGroupId: 'consumerGroupId',
schemaRegistryConfig: {
accessConfigs: [{
type: 'type',
uri: 'uri',
}],
eventRecordFormat: 'eventRecordFormat',
schemaRegistryUri: 'schemaRegistryUri',
schemaValidationConfigs: [{
attribute: 'attribute',
}],
},
},
sourceAccessConfigurations: [{
type: 'type',
uri: 'uri',
}],
startingPosition: 'startingPosition',
startingPositionTimestamp: 123,
tags: [{
key: 'key',
value: 'value',
}],
topics: ['topics'],
tumblingWindowInSeconds: 123,
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnEventSourceMappingPropsMixin(props: CfnEventSourceMappingMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Event Source Mapping Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::Lambda::EventSourceMapping.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): void
Parameters
- construct
IConstruct
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript