DestinationOptions Struct
Options when binding a destination to a function.
| Source | aws-lambda/lib/destination.ts |
|---|
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 destinationOptions: lambda.DestinationOptions = {
type: lambda.DestinationType.FAILURE,
};
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_options = lambda.DestinationOptions(
type=lambda_.DestinationType.FAILURE
)
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.*;
DestinationOptions destinationOptions = DestinationOptions.builder()
.type(DestinationType.FAILURE)
.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 destinationOptions = new DestinationOptions {
Type = DestinationType.FAILURE
};
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"
destinationOptions := &DestinationOptions{
Type: awscdk.Aws_lambda.DestinationType_FAILURE,
}
Properties
typeDestinationTypetypeDestinationTypetypeDestinationTypeTypeDestinationTypeTypeDestinationType required #The destination type.