PipeTargetLambdaFunctionParametersProperty Struct
The parameters for using a Lambda function as a target.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_pipes as pipes } from 'aws-cdk-lib';
const pipeTargetLambdaFunctionParametersProperty: pipes.CfnPipe.PipeTargetLambdaFunctionParametersProperty = {
invocationType: 'invocationType',
};
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_pipes as pipes
pipe_target_lambda_function_parameters_property = pipes.CfnPipe.PipeTargetLambdaFunctionParametersProperty(
invocation_type="invocationType"
)
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.pipes.*;
PipeTargetLambdaFunctionParametersProperty pipeTargetLambdaFunctionParametersProperty = PipeTargetLambdaFunctionParametersProperty.builder()
.invocationType("invocationType")
.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.Pipes;
var pipeTargetLambdaFunctionParametersProperty = new PipeTargetLambdaFunctionParametersProperty {
InvocationType = "invocationType"
};
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"
pipeTargetLambdaFunctionParametersProperty := &PipeTargetLambdaFunctionParametersProperty{
InvocationType: jsii.String("invocationType"),
}
Properties
invocationTypeoptionalstringinvocation_typeoptionalstrinvocationTypeoptionalStringInvocationTypeoptionalstringInvocationTypeoptional*string #Specify whether to invoke the function synchronously or asynchronously.
notes
REQUEST_RESPONSE(default) - Invoke synchronously. This corresponds to theRequestResponseoption in theInvocationTypeparameter for the Lambda Invoke API.FIRE_AND_FORGET- Invoke asynchronously. This corresponds to theEventoption in theInvocationTypeparameter for the Lambda Invoke API.
For more information, see Invocation types in the Amazon EventBridge User Guide .