class_docstr: Config for a Hadoop Jar step.
class_docstr_tok: ["Config","for","a","Hadoop","Jar","step","."]
docstr: Convert EMRStepConfig object to request dict.
docstr_tok: ["Convert","EMRStepConfig","object","to","request","dict","."]
code: def to_request(self) -> RequestType:
      """Convert EMRStepConfig object to request dict."""
      config = {"HadoopJarStep": {"Jar": self.jar}}
      if self.args is not None:
          config["HadoopJarStep"]["Args"] = self.args
      if self.main_class is not None:
          config["HadoopJarStep"]["MainClass"] = self.main_class
      if self.properties is not None:
          config["HadoopJarStep"]["Properties"] = self.properties
  
      return config
  
file_path: sagemaker-python-sdk/src/sagemaker/workflow/emr_step.py
imports: from __future__ import absolute_import
  from typing import Any, Dict, List, Union, Optional
  from sagemaker.workflow.entities import RequestType
  from sagemaker.workflow.properties import Properties
  from sagemaker.workflow.step_collections import StepCollection
  from sagemaker.workflow.steps import Step, StepTypeEnum, CacheConfig
label_desc: Use image node_id 2 for calling the EMRStepConfig obj's underlying member method code with example usage: obj.to_request() and returns: config