sagemaker.core.workflow.parameters#
Pipeline parameters and conditions for workflow.
Classes
|
Pipeline parameter for workflow. |
|
Float parameter for pipelines. |
|
Integer parameter for pipelines. |
|
String parameter for pipelines. |
|
Parameter type enum. |
- class sagemaker.core.workflow.parameters.Parameter(name: str = NOTHING, parameter_type: ParameterTypeEnum = NOTHING, default_value: str | int | bool | float | None = None)[source]#
Bases:
PipelineVariable,EntityPipeline parameter for workflow.
- name#
The name of the parameter.
- Type:
str
- parameter_type#
The type of the parameter.
- Type:
- default_value#
The default value of the parameter.
- Type:
PrimitiveType
- default_value: str | int | bool | float | None#
- property expr: Dict[str, str]#
The ‘Get’ expression dict for a Parameter.
- name: str#
- parameter_type: ParameterTypeEnum#
- class sagemaker.core.workflow.parameters.ParameterFloat(name: str, default_value: float | None = None)[source]#
Bases:
ParameterFloat parameter for pipelines.
- class sagemaker.core.workflow.parameters.ParameterInteger(name: str, default_value: int | None = None)[source]#
Bases:
ParameterInteger parameter for pipelines.
- class sagemaker.core.workflow.parameters.ParameterString(name: str, default_value: str | None = None, enum_values: List[str] | None = None)[source]#
Bases:
ParameterString parameter for pipelines.
- to_request() Dict[str, Any] | List[Dict[str, Any]][source]#
Get the request structure for workflow service calls.
- to_string() PipelineVariable[source]#
Prompt the pipeline to convert the pipeline variable to String in runtime
As ParameterString is treated as String in runtime, no extra actions are needed.