class_docstr: `FailStep` for SageMaker Pipelines Workflows.
docstr: Constructs a `FailStep`.
  
  Args:
      name (str): The name of the `FailStep`. A name is required and must be
          unique within a pipeline.
      error_message (str or PipelineVariable):
          An error message defined by the user.
          Once the `FailStep` is reached, the execution fails and the
          error message is set as the failure reason (default: None).
      display_name (str): The display name of the `FailStep`.
          The display name provides better UI readability. (default: None).
      description (str): The description of the `FailStep` (default: None).
      depends_on (List[Union[str, Step, StepCollection]]): A list of `Step`/`StepCollection`
          names or `Step` instances or `StepCollection` instances that this `FailStep`
          depends on.
          If a listed `Step` name does not exist, an error is returned (default: None).
docstr_tok: ["Constructs","a","`","FailStep","`",".","Args",":","name","(","str",")",":","The","name","of","the","`","FailStep","`",".","A","name","is","required","and","must","be","unique","within","a","pipeline",".","error_message","(","str","or","PipelineVariable",")",":","An","error","message","defined","by","the","user",".","Once","the","`","FailStep","`","is","reached",",","the","execution","fails","and","the","error","message","is","set","as","the","failure","reason","(","default",":","None",")",".","display_name","(","str",")",":","The","display","name","of","the","`","FailStep","`",".","The","display","name","provides","better","UI","readability",".","(","default",":","None",")",".","description","(","str",")",":","The","description","of","the","`","FailStep","`","(","default",":","None",")",".","depends_on","(","List","[","Union","[","str",",","Step",",","StepCollection","]","]",")",":","A","list","of","`","Step","`","\/","`","StepCollection","`","names","or","`","Step","`","instances","or","`","StepCollection","`","instances","that","this","`","FailStep","`","depends","on",".","If","a","listed","`","Step","`","name","does","not","exist",",","an","error","is","returned","(","default",":","None",")","."]
code: def __init__(
      self,
      name: str,
      error_message: Union[str, PipelineVariable] = None,
      display_name: str = None,
      description: str = None,
      depends_on: Optional[
          List[Union[str, Step, StepCollection]]
      ] = None,
  ):
      """Constructs a `FailStep`.
  
      Args:
          name (str): The name of the `FailStep`. A name is required and must be
              unique within a pipeline.
          error_message (str or PipelineVariable):
              An error message defined by the user.
              Once the `FailStep` is reached, the execution fails and the
              error message is set as the failure reason (default: None).
          display_name (str): The display name of the `FailStep`.
              The display name provides better UI readability. (default: None).
          description (str): The description of the `FailStep` (default: None).
          depends_on (List[Union[str, Step, StepCollection]]): A list of `Step`/`StepCollection`
              names or `Step` instances or `StepCollection` instances that this `FailStep`
              depends on.
              If a listed `Step` name does not exist, an error is returned (default: None).
      """
      super(FailStep, self).__init__(
          name, display_name, description, StepTypeEnum.FAIL, depends_on
      )
      self.error_message = (
          error_message if error_message is not None else ""
      )
  
file_path: sagemaker-python-sdk/src/sagemaker/workflow/fail_step.py
imports: from __future__ import absolute_import
  from typing import List, Union, Optional
  from sagemaker.workflow.entities import RequestType, PipelineVariable
  from sagemaker.workflow.step_collections import StepCollection
  from sagemaker.workflow.steps import Step, StepTypeEnum
label_desc: Use image node_id 1 to create a new FailStep object from inherited base classes: Step with example: obj = FailStep(name, error_message, display_name, description, depends_on)