Enum PythonVersion

java.lang.Object
java.lang.Enum<PythonVersion>
software.amazon.awscdk.services.glue.PythonVersion
All Implemented Interfaces:
Serializable, Comparable<PythonVersion>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:42.588Z") @Stability(Experimental) public enum PythonVersion extends Enum<PythonVersion>
(experimental) Python version.

Example:

 Job.Builder.create(this, "PythonSparkStreamingJob")
         .executable(JobExecutable.pythonStreaming(PythonSparkJobExecutableProps.builder()
                 .glueVersion(GlueVersion.V2_0)
                 .pythonVersion(PythonVersion.THREE)
                 .script(Code.fromAsset(join(__dirname, "job-script/hello_world.py")))
                 .build()))
         .description("an example Python Streaming job")
         .build();
 
  • Enum Constant Details

    • TWO

      @Stability(Experimental) public static final PythonVersion TWO
      (experimental) Python 2 (the exact version depends on GlueVersion and JobCommand used).
    • THREE

      @Stability(Experimental) public static final PythonVersion THREE
      (experimental) Python 3 (the exact version depends on GlueVersion and JobCommand used).
  • Method Details

    • values

      public static PythonVersion[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static PythonVersion valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null