class_docstr: Conditional step for pipelines to support conditional branching in the execution of steps.
class_docstr_tok: ["Conditional","step","for","pipelines","to","support","conditional","branching","in","the","execution","of","steps","."]
docstr: Construct a ConditionStep for pipelines to support conditional branching.
  
  If all the conditions in the condition list evaluate to True, the `if_steps` are
  marked as ready for execution. Otherwise, the `else_steps` are marked as ready for
  execution.
  
  Args:
      name (str): The name of the condition step.
      depends_on (List[Union[str, Step, StepCollection]]): The list of `Step`/StepCollection`
          names or `Step` instances or `StepCollection` instances that the current `Step`
          depends on.
      display_name (str): The display name of the condition step.
      description (str): The description of the condition step.
      conditions (List[Condition]): A list of `sagemaker.workflow.conditions.Condition`
          instances.
      if_steps (List[Union[Step, StepCollection]]): A list of `sagemaker.workflow.steps.Step`
          or `sagemaker.workflow.step_collections.StepCollection` instances that are
          marked as ready for execution if the list of conditions evaluates to True.
      else_steps (List[Union[Step, StepCollection]]): A list of `sagemaker.workflow.steps.Step`
          or `sagemaker.workflow.step_collections.StepCollection` instances that are
          marked as ready for execution if the list of conditions evaluates to False.
docstr_tok: ["Construct","a","ConditionStep","for","pipelines","to","support","conditional","branching",".","If","all","the","conditions","in","the","condition","list","evaluate","to","True",",","the","`","if_steps","`","are","marked","as","ready","for","execution",".","Otherwise",",","the","`","else_steps","`","are","marked","as","ready","for","execution",".","Args",":","name","(","str",")",":","The","name","of","the","condition","step",".","depends_on","(","List","[","Union","[","str",",","Step",",","StepCollection","]","]",")",":","The","list","of","`","Step","`","\/StepCollection","`","names","or","`","Step","`","instances","or","`","StepCollection","`","instances","that","the","current","`","Step","`","depends","on",".","display_name","(","str",")",":","The","display","name","of","the","condition","step",".","description","(","str",")",":","The","description","of","the","condition","step",".","conditions","(","List","[","Condition","]",")",":","A","list","of","`","sagemaker.workflow.conditions.Condition","`","instances",".","if_steps","(","List","[","Union","[","Step",",","StepCollection","]","]",")",":","A","list","of","`","sagemaker.workflow.steps.Step","`","or","`","sagemaker.workflow.step_collections.StepCollection","`","instances","that","are","marked","as","ready","for","execution","if","the","list","of","conditions","evaluates","to","True",".","else_steps","(","List","[","Union","[","Step",",","StepCollection","]","]",")",":","A","list","of","`","sagemaker.workflow.steps.Step","`","or","`","sagemaker.workflow.step_collections.StepCollection","`","instances","that","are","marked","as","ready","for","execution","if","the","list","of","conditions","evaluates","to","False","."]
code: def __init__(
      self,
      name: str,
      depends_on: Optional[
          List[Union[str, Step, StepCollection]]
      ] = None,
      display_name: str = None,
      description: str = None,
      conditions: List[Condition] = None,
      if_steps: List[Union[Step, StepCollection, StepOutput]] = None,
      else_steps: List[Union[Step, StepCollection, StepOutput]] = None,
  ):
      """Construct a ConditionStep for pipelines to support conditional branching.
  
      If all the conditions in the condition list evaluate to True, the `if_steps` are
      marked as ready for execution. Otherwise, the `else_steps` are marked as ready for
      execution.
  
      Args:
          name (str): The name of the condition step.
          depends_on (List[Union[str, Step, StepCollection]]): The list of `Step`/StepCollection`
              names or `Step` instances or `StepCollection` instances that the current `Step`
              depends on.
          display_name (str): The display name of the condition step.
          description (str): The description of the condition step.
          conditions (List[Condition]): A list of `sagemaker.workflow.conditions.Condition`
              instances.
          if_steps (List[Union[Step, StepCollection]]): A list of `sagemaker.workflow.steps.Step`
              or `sagemaker.workflow.step_collections.StepCollection` instances that are
              marked as ready for execution if the list of conditions evaluates to True.
          else_steps (List[Union[Step, StepCollection]]): A list of `sagemaker.workflow.steps.Step`
              or `sagemaker.workflow.step_collections.StepCollection` instances that are
              marked as ready for execution if the list of conditions evaluates to False.
      """
      super(ConditionStep, self).__init__(
          name,
          display_name,
          description,
          StepTypeEnum.CONDITION,
          depends_on,
      )
      self.conditions = conditions or []
      self.if_steps = if_steps or []
      self.else_steps = else_steps or []
  
      root_prop = Properties(step_name=name)
      root_prop.__dict__["Outcome"] = Properties(
          step_name=name, path="Outcome"
      )
      self._properties = root_prop
  
file_path: sagemaker-python-sdk/src/sagemaker/workflow/condition_step.py
imports: from __future__ import absolute_import
  from typing import List, Union, Optional
  from sagemaker.deprecations import deprecated_class
  from sagemaker.workflow.conditions import Condition
  from sagemaker.workflow.step_collections import StepCollection
  from sagemaker.workflow.functions import JsonGet
  from sagemaker.workflow.step_outputs import StepOutput
  from sagemaker.workflow.steps import Step, StepTypeEnum
  from sagemaker.workflow.utilities import list_to_request
  from sagemaker.workflow.entities import RequestType
  from sagemaker.workflow.properties import Properties, PropertyFile
label_desc: Use image node_id 1 to create a new ConditionStep object from inherited base classes: Step with example: obj = ConditionStep(name, depends_on, display_name, description, conditions, if_steps, else_steps)