sagemaker.core.workflow.conditions#
Conditions for condition steps.
Ideally, some of these comparison conditions would be implemented as “partial classes”, but use of functools.partial doesn’t set correct metadata/type information.
Functions
|
Provide the expression of the value or return value if it is a primitive. |
Classes
|
Abstract Condition entity. |
|
Generic comparison condition that can be used to derive specific condition comparisons. |
|
A condition for equality comparisons. |
|
A condition for greater than comparisons. |
|
A condition for greater than or equal to comparisons. |
|
A condition to check membership. |
|
A condition for less than comparisons. |
|
A condition for less than or equal to comparisons. |
|
A condition for negating another Condition. |
|
A condition for taking the logical OR of a list of Condition instances. |
|
Condition type enum. |
- class sagemaker.core.workflow.conditions.Condition(condition_type: ConditionTypeEnum = NOTHING)[source]#
Bases:
EntityAbstract Condition entity.
- condition_type#
The type of condition.
- Type:
- condition_type: ConditionTypeEnum#
- class sagemaker.core.workflow.conditions.ConditionComparison(condition_type: ConditionTypeEnum = NOTHING, left: ExecutionVariable | Parameter | Properties | StepOutput | str | int | bool | float | None = None, right: ExecutionVariable | Parameter | Properties | StepOutput | str | int | bool | float | None = None)[source]#
Bases:
ConditionGeneric comparison condition that can be used to derive specific condition comparisons.
- left#
The execution variable, parameter, property, step output or Python primitive value to use in the comparison.
- Type:
Union[ConditionValueType, PrimitiveType]
- right#
The execution variable, parameter, property, step output or Python primitive value to compare to.
- Type:
Union[ConditionValueType, PrimitiveType]
- condition_type: ConditionTypeEnum#
- left: ExecutionVariable | Parameter | Properties | StepOutput | str | int | bool | float | None#
- right: ExecutionVariable | Parameter | Properties | StepOutput | str | int | bool | float | None#
- class sagemaker.core.workflow.conditions.ConditionEquals(left: ExecutionVariable | Parameter | Properties | StepOutput | str | int | bool | float | None, right: ExecutionVariable | Parameter | Properties | StepOutput | str | int | bool | float | None)[source]#
Bases:
ConditionComparisonA condition for equality comparisons.
- class sagemaker.core.workflow.conditions.ConditionGreaterThan(left: ExecutionVariable | Parameter | Properties | StepOutput | str | int | bool | float | None, right: ExecutionVariable | Parameter | Properties | StepOutput | str | int | bool | float | None)[source]#
Bases:
ConditionComparisonA condition for greater than comparisons.
- class sagemaker.core.workflow.conditions.ConditionGreaterThanOrEqualTo(left: ExecutionVariable | Parameter | Properties | StepOutput | str | int | bool | float | None, right: ExecutionVariable | Parameter | Properties | StepOutput | str | int | bool | float | None)[source]#
Bases:
ConditionComparisonA condition for greater than or equal to comparisons.
- class sagemaker.core.workflow.conditions.ConditionIn(value: ExecutionVariable | Parameter | Properties | StepOutput | str | int | bool | float | None, in_values: List[ExecutionVariable | Parameter | Properties | StepOutput | str | int | bool | float | None])[source]#
Bases:
ConditionA condition to check membership.
- class sagemaker.core.workflow.conditions.ConditionLessThan(left: ExecutionVariable | Parameter | Properties | StepOutput | str | int | bool | float | None, right: ExecutionVariable | Parameter | Properties | StepOutput | str | int | bool | float | None)[source]#
Bases:
ConditionComparisonA condition for less than comparisons.
- class sagemaker.core.workflow.conditions.ConditionLessThanOrEqualTo(left: ExecutionVariable | Parameter | Properties | StepOutput | str | int | bool | float | None, right: ExecutionVariable | Parameter | Properties | StepOutput | str | int | bool | float | None)[source]#
Bases:
ConditionComparisonA condition for less than or equal to comparisons.
- class sagemaker.core.workflow.conditions.ConditionNot(expression: Condition)[source]#
Bases:
ConditionA condition for negating another Condition.
- class sagemaker.core.workflow.conditions.ConditionOr(conditions: List[Condition] | None = None)[source]#
Bases:
ConditionA condition for taking the logical OR of a list of Condition instances.
- class sagemaker.core.workflow.conditions.ConditionTypeEnum(*args, value=<object object>, **kwargs)[source]#
Bases:
EnumCondition type enum.
- EQ = 'Equals'#
- GT = 'GreaterThan'#
- GTE = 'GreaterThanOrEqualTo'#
- IN = 'In'#
- LT = 'LessThan'#
- LTE = 'LessThanOrEqualTo'#
- NOT = 'Not'#
- OR = 'Or'#
- sagemaker.core.workflow.conditions.primitive_or_expr(value: ExecutionVariable | PipelineVariable | str | int | bool | float | None | Parameter | Properties | StepOutput) Dict[str, str] | str | int | bool | float | None[source]#
Provide the expression of the value or return value if it is a primitive.
- Parameters:
value (Union[ConditionValueType, PrimitiveType]) – The value to evaluate.
- Returns:
Either the expression of the value or the primitive value.