LambdaFunctionParameters
- class aws_cdk.aws_pipes_targets_alpha.LambdaFunctionParameters(*, input_transformation=None, invocation_type=None)
Bases:
object
(experimental) Parameters for the LambdaFunction target.
- Parameters:
input_transformation (
Optional
[IInputTransformation
]) – (experimental) The input transformation to apply to the message before sending it to the target. Default: - noneinvocation_type (
Optional
[LambdaFunctionInvocationType
]) – (experimental) Specify whether to invoke the Lambda Function synchronously (REQUEST_RESPONSE
) or asynchronously (FIRE_AND_FORGET
). Default: LambdaFunctionInvocationType.REQUEST_RESPONSE
- 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
- input_transformation
(experimental) The input transformation to apply to the message before sending it to the target.
- Default:
none
- See:
- Stability:
experimental
- invocation_type
(experimental) Specify whether to invoke the Lambda Function synchronously (
REQUEST_RESPONSE
) or asynchronously (FIRE_AND_FORGET
).- Default:
LambdaFunctionInvocationType.REQUEST_RESPONSE
- See:
- Stability:
experimental