Interface CfnJob.JobCommandProperty

All Superinterfaces:
All Known Implementing Classes:
Enclosing class:

@Stability(Stable) public static interface CfnJob.JobCommandProperty extends
Specifies code executed when a job is run.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 JobCommandProperty jobCommandProperty = JobCommandProperty.builder()
  • Method Details

    • getName

      @Stability(Stable) @Nullable default String getName()
      The name of the job command.

      For an Apache Spark ETL job, this must be glueetl . For a Python shell job, it must be pythonshell . For an Apache Spark streaming ETL job, this must be gluestreaming .

    • getPythonVersion

      @Stability(Stable) @Nullable default String getPythonVersion()
      The Python version being used to execute a Python shell job.

      Allowed values are 3 or 3.9. Version 2 is deprecated.

    • getRuntime

      @Stability(Stable) @Nullable default String getRuntime()
    • getScriptLocation

      @Stability(Stable) @Nullable default String getScriptLocation()
      Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that executes a job (required).
    • builder

      @Stability(Stable) static CfnJob.JobCommandProperty.Builder builder()
      a CfnJob.JobCommandProperty.Builder of CfnJob.JobCommandProperty