LambdaFunctionInvocationType
- class aws_cdk.aws_pipes_targets_alpha.LambdaFunctionInvocationType(*values)
Bases:
Enum(experimental) InvocationType for invoking the Lambda Function.
- See:
- Stability:
experimental
- ExampleMetadata:
infused
Example:
# source_queue: sqs.Queue # target_function: lambda.IFunction pipe_target = targets.LambdaFunction(target_function, invocation_type=targets.LambdaFunctionInvocationType.FIRE_AND_FORGET ) pipe = pipes.Pipe(self, "Pipe", source=SqsSource(source_queue), target=pipe_target )
Attributes
- FIRE_AND_FORGET
(experimental) Invoke Lambda Function asynchronously (
Invoke).InvocationTypeis set toEventonInvoke, see https://docs.aws.amazon.com/lambda/latest/api/API_Invoke.html for more details.- Stability:
experimental
- REQUEST_RESPONSE
(experimental) Invoke Lambda Function synchronously (
Invoke) and wait for the response.InvocationTypeis set toRequestResponseonInvoke, see https://docs.aws.amazon.com/lambda/latest/api/API_Invoke.html for more details.- Stability:
experimental