sagemaker.mlops.workflow.lambda_step#

The step definitions for workflow.

Classes

LambdaOutput([output_name, output_type])

Output for a lambdaback step.

LambdaOutputTypeEnum(*args[, value])

LambdaOutput type enum.

LambdaStep(name, lambda_func[, ...])

Lambda step for workflow.

class sagemaker.mlops.workflow.lambda_step.LambdaOutput(output_name: str | None = None, output_type: LambdaOutputTypeEnum = LambdaOutputTypeEnum.String)[source]#

Bases: object

Output for a lambdaback step.

output_name#

The output name

Type:

str

output_type#

The output type

Type:

LambdaOutputTypeEnum

expr(step_name) Dict[str, str][source]#

The ‘Get’ expression dict for a LambdaOutput.

output_name: str#
output_type: LambdaOutputTypeEnum#
to_request() Dict[str, Any] | List[Dict[str, Any]][source]#

Get the request structure for workflow service calls.

class sagemaker.mlops.workflow.lambda_step.LambdaOutputTypeEnum(*args, value=<object object>, **kwargs)[source]#

Bases: Enum

LambdaOutput type enum.

Boolean = 'Boolean'#
Float = 'Float'#
Integer = 'Integer'#
String = 'String'#
class sagemaker.mlops.workflow.lambda_step.LambdaStep(name: str, lambda_func: Lambda, display_name: str | None = None, description: str | None = None, inputs: dict | None = None, outputs: List[LambdaOutput] | None = None, cache_config: CacheConfig | None = None, depends_on: List[str | Step | StepCollection] | None = None)[source]#

Bases: Step

Lambda step for workflow.

property arguments: Dict[str, Any] | List[Dict[str, Any]]#

The arguments dict that is used to define the lambda step.

property properties#

A Properties object representing the output parameters of the lambda step.

to_request() Dict[str, Any] | List[Dict[str, Any]][source]#

Updates the dictionary with cache configuration.