DestinationConfigProperty Struct
A configuration object that specifies the destination of an event after Lambda processes it.
For more information, see Adding a destination .
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 destinationConfigProperty: lambda.CfnEventInvokeConfig.DestinationConfigProperty = {
onFailure: {
destination: 'destination',
},
onSuccess: {
destination: 'destination',
},
};
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_
destination_config_property = lambda.CfnEventInvokeConfig.DestinationConfigProperty(
on_failure=lambda.CfnEventInvokeConfig.OnFailureProperty(
destination="destination"
),
on_success=lambda.CfnEventInvokeConfig.OnSuccessProperty(
destination="destination"
)
)
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.*;
DestinationConfigProperty destinationConfigProperty = DestinationConfigProperty.builder()
.onFailure(OnFailureProperty.builder()
.destination("destination")
.build())
.onSuccess(OnSuccessProperty.builder()
.destination("destination")
.build())
.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 destinationConfigProperty = new DestinationConfigProperty {
OnFailure = new OnFailureProperty {
Destination = "destination"
},
OnSuccess = new OnSuccessProperty {
Destination = "destination"
}
};
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"
destinationConfigProperty := &DestinationConfigProperty{
OnFailure: &OnFailureProperty{
Destination: jsii.String("destination"),
},
OnSuccess: &OnSuccessProperty{
Destination: jsii.String("destination"),
},
}
Properties
onFailureoptionalIResolvable | CfnEventInvokeConfig.OnFailurePropertyon_failureoptionaltyping.Union[IResolvable, OnFailureProperty]onFailureoptionalIResolvableOnFailureoptionalIResolvableOnFailureoptionalinterface{}#The destination configuration for failed invocations.
When using an Amazon SQS queue as a destination, FIFO queues cannot be used.
onSuccessoptionalIResolvable | CfnEventInvokeConfig.OnSuccessPropertyon_successoptionaltyping.Union[IResolvable, OnSuccessProperty]onSuccessoptionalIResolvableOnSuccessoptionalIResolvableOnSuccessoptionalinterface{}#The destination configuration for successful invocations.
When using an Amazon SQS queue as a destination, FIFO queues cannot be used.