LambdaFunctionInvocationType
- class aws_cdk.aws_pipes_targets_alpha.LambdaFunctionInvocationType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
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
).InvocationType
is set toEvent
onInvoke
, 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.InvocationType
is set toRequestResponse
onInvoke
, see https://docs.aws.amazon.com/lambda/latest/api/API_Invoke.html for more details.- Stability:
experimental