Interface CfnJob.JobCommandProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnJob.JobCommandProperty.Jsii$Proxy
Enclosing class:
CfnJob

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

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.glue.*;
 JobCommandProperty jobCommandProperty = JobCommandProperty.builder()
         .name("name")
         .pythonVersion("pythonVersion")
         .runtime("runtime")
         .scriptLocation("scriptLocation")
         .build();
 
  • 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()
      CfnJob.JobCommandProperty.Runtime.
    • 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()
      Returns:
      a CfnJob.JobCommandProperty.Builder of CfnJob.JobCommandProperty