DeadLetterConfigProperty Struct
The dead-letter queue for failed asynchronous invocations.
Example
ts
// 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 deadLetterConfigProperty: lambda.CfnFunction.DeadLetterConfigProperty = {
targetArn: 'targetArn',
};
python
# 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_
dead_letter_config_property = lambda.CfnFunction.DeadLetterConfigProperty(
target_arn="targetArn"
)
java
// 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.*;
DeadLetterConfigProperty deadLetterConfigProperty = DeadLetterConfigProperty.builder()
.targetArn("targetArn")
.build();
csharp
// 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 deadLetterConfigProperty = new DeadLetterConfigProperty {
TargetArn = "targetArn"
};
go
// 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"
deadLetterConfigProperty := &DeadLetterConfigProperty{
TargetArn: jsii.String("targetArn"),
}
Properties
targetArnoptionalstringtarget_arnoptionalstrtargetArnoptionalStringTargetArnoptionalstringTargetArnoptional*string#The Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic.