Enum PythonVersion
- All Implemented Interfaces:
Serializable
,Comparable<PythonVersion>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-10-31T19:13:07.917Z")
@Stability(Experimental)
public enum PythonVersion
extends Enum<PythonVersion>
(experimental) Python version.
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();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription(experimental) Python 3 (the exact version depends on GlueVersion and JobCommand used).(experimental) Python 3.9 (the exact version depends on GlueVersion and JobCommand used).(experimental) Python 2 (the exact version depends on GlueVersion and JobCommand used). -
Method Summary
Modifier and TypeMethodDescriptionstatic PythonVersion
Returns the enum constant of this type with the specified name.static PythonVersion[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TWO
(experimental) Python 2 (the exact version depends on GlueVersion and JobCommand used). -
THREE
(experimental) Python 3 (the exact version depends on GlueVersion and JobCommand used). -
THREE_NINE
(experimental) Python 3.9 (the exact version depends on GlueVersion and JobCommand used).
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-