Class JobExecutable

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

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-10-31T19:13:07.910Z") @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:

 Job.Builder.create(this, "EnableSparkUI")
         .jobName("EtlJobWithSparkUIPrefix")
         .sparkUI(SparkUIProps.builder()
                 .enabled(true)
                 .build())
         .executable(JobExecutable.pythonEtl(PythonSparkJobExecutableProps.builder()
                 .glueVersion(GlueVersion.V3_0)
                 .pythonVersion(PythonVersion.THREE)
                 .script(Code.fromAsset(join(__dirname, "job-script", "hello_world.py")))
                 .build()))
         .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.
    • pythonRay

      @Stability(Experimental) @NotNull public static JobExecutable pythonRay(@NotNull PythonRayExecutableProps props)
      (experimental) Create Python executable props for Ray jobs.

      Parameters:
      props - Ray 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.