Skip to content

Lambda function

Lambda ¤

Bases: Strategy

A strategy that applies a function to the resources.

This should be used for simple functions or calling methods from a class. If you find yourself writing a Lambda strategy that is more than a few lines long, consider writing a custom strategy instead.

Methods:

Name Description
__init__

Initialize the lambda strategy.

__init__(lambda_function: Callable) ¤

Initialize the lambda strategy.

Parameters:

Name Type Description Default
lambda_function Callable

A callable that takes a resource and applies the lambda function.

required