OnFailureProperty Struct
A destination for events that failed processing.
For more information, see Adding a destination .
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
const onFailureProperty: lambda.CfnEventSourceMapping.OnFailureProperty = {
destination: 'destination',
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lambda as lambda_
on_failure_property = lambda.CfnEventSourceMapping.OnFailureProperty(
destination="destination"
)
// 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.*;
OnFailureProperty onFailureProperty = OnFailureProperty.builder()
.destination("destination")
.build();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lambda;
var onFailureProperty = new OnFailureProperty {
Destination = "destination"
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
onFailureProperty := &OnFailureProperty{
Destination: jsii.String("destination"),
}
Properties
destinationoptionalstringdestinationoptionalstrdestinationoptionalStringDestinationoptionalstringDestinationoptional*string #notes
To retain records of failed invocations from Kinesis , DynamoDB , self-managed Apache Kafka , or Amazon MSK , you can configure an Amazon SNS topic, Amazon SQS queue, Amazon S3 bucket, or Kafka topic as the destination.
Amazon SNS destinations have a message size limit of 256 KB. If the combined size of the function request and response payload exceeds the limit, Lambda will drop the payload when sending
OnFailureevent to the destination. For details on this behavior, refer to Retaining records of asynchronous invocations .
To retain records of failed invocations from Kinesis , DynamoDB , self-managed Kafka or Amazon MSK , you can configure an Amazon SNS topic, Amazon SQS queue, or Amazon S3 bucket as the destination.