class documentation
Step for step function workflows
| Method | __init__ |
Initialize a Step |
| Method | add |
Add Step names or Step instances to the current Step depends on list. |
| Method | depends |
Set the list of steps the current step explicitly depends on. |
| Instance Variable | additional |
Undocumented |
| Instance Variable | args |
Undocumented |
| Instance Variable | description |
Undocumented |
| Instance Variable | env |
Undocumented |
| Instance Variable | func |
Undocumented |
| Instance Variable | layers |
Undocumented |
| Instance Variable | memory |
Undocumented |
| Instance Variable | name |
Undocumented |
| Instance Variable | python |
Undocumented |
| Instance Variable | retry |
Undocumented |
| Property | depends |
The list of steps the current Step depends on. |
| Instance Variable | _depends |
Undocumented |
def __init__(self, name:
str, func: Callable, args: List[ Any], python_runtime: str, memory_size: int = 512, description: Optional[ str] = None, retry_count: int = 0, policies: List[ str] = [], layers: List[ str] = [], env_variables: Dict[ str, str] = {}, depends_on: Optional[ List[ Step]] = None):
(source)
¶
Initialize a Step
- Args:
- name (str): The name of the
Step. func (callable): The function that should be executed as part of this step args (list): The arguments to the function. If not a step, these are considered "static" and are used even in the Step Function execution python_runtime (str): Lambda runtime. memory_size (int): Megabytes of memory for the lambda. Defaults to 512. description (str): The description of theStep. retry_count (int): Number of times to retry a failure policies (List[str]): IAM policies, in JSON, to provide to the Lambda layers (list): the ARNs of layers to add to the lambda function env_variables (dict): environment variables to pass to lambda function depends_on (List[Step]): The list of Steps that the currentStepdepends on.