Interface PythonShellJobProps

All Superinterfaces:
JobProps, software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
PythonShellJobProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)", date="2026-09-17T14:54:05.081Z") @Stability(Stable) public interface PythonShellJobProps extends software.amazon.jsii.JsiiSerializable, JobProps
Properties for creating a Python Shell job.

Example:

 import software.amazon.awscdk.*;
 import software.amazon.awscdk.services.iam.*;
 Stack stack;
 IRole role;
 Code script;
 PythonShellJob.Builder.create(stack, "ImportedJob").role(role).script(script).build();
 
  • Method Details

    • getExtraPythonFiles

      @Stability(Stable) @Nullable default List<Code> getExtraPythonFiles()
      Additional Python files that AWS Glue adds to the Python path before executing your script.

      Only individual files are supported, directories are not supported. Equivalent to the --extra-py-files job argument.

      Default: - no extra Python files

      See Also:
    • getJobRunQueuingEnabled

      @Stability(Stable) @Nullable default Boolean getJobRunQueuingEnabled()
      Specifies whether job run queuing is enabled for the job runs for this job.

      A value of true means job run queuing is enabled for the job runs. If false or not populated, the job runs will not be considered for queueing. If this field does not match the value set in the job run, then the value from the job run field will be used. This property must be set to false for flex jobs. If this property is enabled, maxRetries must be set to zero.

      Default: false

    • getLibrarySet

      @Stability(Stable) @Nullable default LibrarySet getLibrarySet()
      The set of pre-installed Python libraries to make available to the job.

      Only applies to jobs running Python 3.9. Set to LibrarySet.NONE when your libraries are custom or conflict with the pre-installed ones.

      Default: LibrarySet.ANALYTICS when running Python 3.9, otherwise no library set is configured

      See Also:
    • getMaxCapacity

      @Stability(Stable) @Nullable default MaxCapacity getMaxCapacity()
      The total number of DPU to assign to the Python Job.

      Default: 0.0625

    • getPythonVersion

      @Stability(Stable) @Nullable default PythonVersion getPythonVersion()
      The version of Python to use to execute this job.

      Python shell jobs only support PythonVersion.THREE_NINE. The older PythonVersion.TWO (Python 2.7) and PythonVersion.THREE (Python 3.6) runtimes have been retired by AWS Glue and are no longer available for Python shell jobs.

      Default: PythonVersion.THREE_NINE

    • builder

      @Stability(Stable) static PythonShellJobProps.Builder builder()
      Returns:
      a PythonShellJobProps.Builder of PythonShellJobProps