java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IJobRef, IEnvironmentAware, IResource, IJob, IGrantable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable
Direct Known Subclasses:
PySparkEtlJob, PySparkFlexEtlJob, PySparkStreamingJob, ScalaSparkEtlJob, ScalaSparkFlexEtlJob, ScalaSparkStreamingJob

@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)", date="2026-09-10T17:52:11.338Z") @Stability(Experimental) public abstract class SparkJob extends Job
(experimental) Base class for different types of Spark Jobs.

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.alpha.*;
 import software.amazon.awscdk.services.iam.*;
 Role role;
 IJob sparkJob = SparkJob.fromJobAttributes(this, "MySparkJob", JobAttributes.builder()
         .jobName("jobName")
         // the properties below are optional
         .role(role)
         .build());
 
  • Constructor Details

    • SparkJob

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

      protected SparkJob(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • SparkJob

      @Stability(Experimental) protected SparkJob(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull SparkJobProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details

    • nonExecutableCommonArguments

      @Stability(Experimental) protected void nonExecutableCommonArguments(@NotNull SparkJobProps props)
      (experimental) Register the arguments this construct manages for a Spark job.

      These are owned by the construct (derived from typed props). Each key is declared via Job.setManagedArgument(java.lang.String,java.lang.String) whether or not the current configuration emits a value, so a disabled feature (e.g. `enableMetrics: false`) cannot be silently re-enabled through `defaultArguments`.

      Parameters:
      props - This parameter is required.
    • setupExtraCodeArguments

      @Stability(Experimental) protected void setupExtraCodeArguments(@NotNull SparkExtraCodeProps props)
      (experimental) Register the arguments for extra Code-related properties.

      Parameters:
      props - This parameter is required.
    • getGrantPrincipal

      @Stability(Experimental) @NotNull public IPrincipal getGrantPrincipal()
      (experimental) The principal to grant permissions to.
      Specified by:
      getGrantPrincipal in interface IGrantable
      Specified by:
      getGrantPrincipal in class JobBase
    • getRole

      @Stability(Experimental) @NotNull public IRole getRole()
      (experimental) The IAM role Glue assumes to run this job.
      Specified by:
      getRole in class Job
    • getSparkUILoggingLocation

      @Stability(Experimental) @Nullable public SparkUILoggingLocation getSparkUILoggingLocation()
      (experimental) The Spark UI logs location if Spark UI monitoring and debugging is enabled.

      See Also: