Interface JobProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
PySparkEtlJobProps, PySparkFlexEtlJobProps, PySparkStreamingJobProps, PythonShellJobProps, RayJobProps, ScalaSparkEtlJobProps, ScalaSparkFlexEtlJobProps, ScalaSparkStreamingJobProps, SparkJobProps
All Known Implementing Classes:
JobProps.Jsii$Proxy, PySparkEtlJobProps.Jsii$Proxy, PySparkFlexEtlJobProps.Jsii$Proxy, PySparkStreamingJobProps.Jsii$Proxy, PythonShellJobProps.Jsii$Proxy, RayJobProps.Jsii$Proxy, ScalaSparkEtlJobProps.Jsii$Proxy, ScalaSparkFlexEtlJobProps.Jsii$Proxy, ScalaSparkStreamingJobProps.Jsii$Proxy, SparkJobProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)", date="2026-09-17T14:54:30.087Z") @Stability(Deprecated) @Deprecated public interface JobProps extends software.amazon.jsii.JsiiSerializable
Deprecated.
(deprecated) JobProps will be used to create new Glue Jobs using this L2 Construct.

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.*;
 import software.amazon.awscdk.services.iam.*;
 import software.amazon.awscdk.services.logs.*;
 Code code;
 Connection connection;
 LogGroup logGroup;
 Role role;
 SecurityConfiguration securityConfiguration;
 JobProps jobProps = JobProps.builder()
         .role(role)
         .script(code)
         // the properties below are optional
         .connections(List.of(connection))
         .continuousLogging(ContinuousLoggingProps.builder()
                 .enabled(false)
                 // the properties below are optional
                 .conversionPattern("conversionPattern")
                 .logGroup(logGroup)
                 .logStreamPrefix("logStreamPrefix")
                 .quiet(false)
                 .build())
         .defaultArguments(Map.of(
                 "defaultArgumentsKey", "defaultArguments"))
         .description("description")
         .glueVersion(GlueVersion.V0_9)
         .jobName("jobName")
         .maxConcurrentRuns(123)
         .maxRetries(123)
         .securityConfiguration(securityConfiguration)
         .tags(Map.of(
                 "tagsKey", "tags"))
         .timeout(Duration.minutes(30))
         .build();
 
  • Method Details

    • getRole

      @Stability(Deprecated) @Deprecated @NotNull IRole getRole()
      Deprecated.
      (deprecated) IAM Role (required) IAM Role to use for Glue job execution Must be specified by the developer because the L2 doesn't have visibility into the actions the script(s) takes during the job execution The role must trust the Glue service principal (glue.amazonaws.com) and be granted sufficient permissions.

      See Also:
    • getScript

      @Stability(Deprecated) @Deprecated @NotNull Code getScript()
      Deprecated.
      (deprecated) Script Code Location (required) Script to run when the Glue job executes.

      Can be uploaded from the local directory structure using fromAsset or referenced via S3 location using fromBucket

    • getConnections

      @Stability(Deprecated) @Deprecated @Nullable default List<IConnection> getConnections()
      Deprecated.
      (deprecated) Connections (optional) List of connections to use for this Glue job Connections are used to connect to other AWS Service or resources within a VPC.

      Default: [] - no connections are added to the job

    • getContinuousLogging

      @Stability(Deprecated) @Deprecated @Nullable default ContinuousLoggingProps getContinuousLogging()
      Deprecated.
      (deprecated) Enables continuous logging with the specified props.

      Default: - continuous logging is enabled.

      See Also:
    • getDefaultArguments

      @Stability(Deprecated) @Deprecated @Nullable default Map<String,String> getDefaultArguments()
      Deprecated.
      (deprecated) Default Arguments (optional) The default arguments for every run of this Glue job, specified as name-value pairs.

      This map is the escape hatch for Glue job arguments that this construct does not model. It MUST NOT be used to set arguments that already have a dedicated prop — configure those through the corresponding prop instead (continuousLogging, enableMetrics, enableObservabilityMetrics, sparkUI, className, extraJars, extraJarsFirst, extraPythonFiles, extraFiles). Passing a construct-managed argument (e.g. --enable-continuous-cloudwatch-log, --enable-metrics, --enable-spark-ui, --job-language) or a Glue-reserved argument (--debug, --mode, --JOB_NAME, --endpoint) here throws at synthesis time, so there is exactly one way to express each intent.

      Also note that these are emitted verbatim into the CloudFormation template, so avoid placing secrets here in plaintext. Pass secrets to the job at runtime through AWS Secrets Manager instead. A synthesis-time warning is emitted when an argument key looks like a credential and holds a plaintext literal.

      Default: - no arguments

      See Also:
    • getDescription

      @Stability(Deprecated) @Deprecated @Nullable default String getDescription()
      Deprecated.
      (deprecated) Description (optional) Developer-specified description of the Glue job.

      Default: - no value

    • getGlueVersion

      @Stability(Deprecated) @Deprecated @Nullable default GlueVersion getGlueVersion()
      Deprecated.
      (deprecated) Glue Version The version of Glue to use to execute this job.

      Default: - determined by the job type: 4.0 for ETL and Streaming, 5.0 for Flex, 3.0 for Python Shell

    • getJobName

      @Stability(Deprecated) @Deprecated @Nullable default String getJobName()
      Deprecated.
      (deprecated) Name of the Glue job (optional) Developer-specified name of the Glue job.

      Default: - a name is automatically generated

    • getMaxConcurrentRuns

      @Stability(Deprecated) @Deprecated @Nullable default Number getMaxConcurrentRuns()
      Deprecated.
      (deprecated) Max Concurrent Runs (optional) The maximum number of runs this Glue job can concurrently run.

      An error is returned when this threshold is reached. The maximum value you can specify is controlled by a service limit.

      Default: 1

    • getMaxRetries

      @Stability(Deprecated) @Deprecated @Nullable default Number getMaxRetries()
      Deprecated.
      (deprecated) Max Retries (optional) Maximum number of retry attempts Glue performs if the job fails.

      Default: 0

    • getSecurityConfiguration

      @Stability(Deprecated) @Deprecated @Nullable default ISecurityConfiguration getSecurityConfiguration()
      Deprecated.
      (deprecated) Security Configuration (optional) Defines the encryption options for the Glue job.

      Default: - no security configuration.

    • getTags

      @Stability(Deprecated) @Deprecated @Nullable default Map<String,String> getTags()
      Deprecated.
      (deprecated) Tags (optional) A list of key:value pairs of tags to apply to this Glue job resources.

      Default: {} - no tags

    • getTimeout

      @Stability(Deprecated) @Deprecated @Nullable default Duration getTimeout()
      Deprecated.
      (deprecated) Timeout (optional) The maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status.

      Specified in minutes.

      Default: 2880 (2 days for non-streaming)

    • builder

      @Stability(Deprecated) @Deprecated static JobProps.Builder builder()
      Deprecated.
      Returns:
      a JobProps.Builder of JobProps