Class JobExecutable

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.glue.JobExecutable
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:42.578Z") @Stability(Experimental) public class JobExecutable extends software.amazon.jsii.JsiiObject
(experimental) The executable properties related to the Glue job's GlueVersion, JobType and code.

Example:

 Bucket bucket;
 Job.Builder.create(this, "PythonShellJob")
         .executable(JobExecutable.pythonShell(PythonShellExecutableProps.builder()
                 .glueVersion(GlueVersion.V1_0)
                 .pythonVersion(PythonVersion.THREE)
                 .script(Code.fromBucket(bucket, "script.py"))
                 .build()))
         .description("an example Python Shell job")
         .build();
 
  • Constructor Details

    • JobExecutable

      protected JobExecutable(software.amazon.jsii.JsiiObjectRef objRef)
    • JobExecutable

      protected JobExecutable(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
  • Method Details

    • of

      @Stability(Experimental) @NotNull public static JobExecutable of(@NotNull JobExecutableConfig config)
      (experimental) Create a custom JobExecutable.

      Parameters:
      config - custom job executable configuration. This parameter is required.
    • pythonEtl

      @Stability(Experimental) @NotNull public static JobExecutable pythonEtl(@NotNull PythonSparkJobExecutableProps props)
      (experimental) Create Python executable props for Apache Spark ETL job.

      Parameters:
      props - Python Apache Spark Job props. This parameter is required.
    • pythonShell

      @Stability(Experimental) @NotNull public static JobExecutable pythonShell(@NotNull PythonShellExecutableProps props)
      (experimental) Create Python executable props for python shell jobs.

      Parameters:
      props - Python Shell Job props. This parameter is required.
    • pythonStreaming

      @Stability(Experimental) @NotNull public static JobExecutable pythonStreaming(@NotNull PythonSparkJobExecutableProps props)
      (experimental) Create Python executable props for Apache Spark Streaming job.

      Parameters:
      props - Python Apache Spark Job props. This parameter is required.
    • scalaEtl

      @Stability(Experimental) @NotNull public static JobExecutable scalaEtl(@NotNull ScalaJobExecutableProps props)
      (experimental) Create Scala executable props for Apache Spark ETL job.

      Parameters:
      props - Scala Apache Spark Job props. This parameter is required.
    • scalaStreaming

      @Stability(Experimental) @NotNull public static JobExecutable scalaStreaming(@NotNull ScalaJobExecutableProps props)
      (experimental) Create Scala executable props for Apache Spark Streaming job.

      Parameters:
      props - Scala Apache Spark Job props. This parameter is required.
    • bind

      @Stability(Experimental) @NotNull public JobExecutableConfig bind()
      (experimental) Called during Job initialization to get JobExecutableConfig.