Interface IEventSourceMappingProps
Properties for declaring a new event source mapping.
Inherited Members
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.AWS.Lambda.dll
Syntax (csharp)
public interface IEventSourceMappingProps : IEventSourceMappingOptions
Syntax (vb)
Public Interface IEventSourceMappingProps
Inherits IEventSourceMappingOptions
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lambda;
using Amazon.CDK;
IEventSourceDlq eventSourceDlq;
Function function_;
SourceAccessConfigurationType sourceAccessConfigurationType;
var eventSourceMappingProps = new EventSourceMappingProps {
Target = function_,
// the properties below are optional
BatchSize = 123,
BisectBatchOnError = false,
Enabled = false,
EventSourceArn = "eventSourceArn",
KafkaBootstrapServers = new [] { "kafkaBootstrapServers" },
KafkaTopic = "kafkaTopic",
MaxBatchingWindow = Duration.Minutes(30),
MaxRecordAge = Duration.Minutes(30),
OnFailure = eventSourceDlq,
ParallelizationFactor = 123,
ReportBatchItemFailures = false,
RetryAttempts = 123,
SourceAccessConfigurations = new [] { new SourceAccessConfiguration {
Type = sourceAccessConfigurationType,
Uri = "uri"
} },
StartingPosition = StartingPosition.TRIM_HORIZON,
TumblingWindow = Duration.Minutes(30)
};
Synopsis
Properties
Target | The target AWS Lambda function. |