@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-13T01:13:35.186Z") public enum PythonVersion extends java.lang.Enum<PythonVersion>
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 and Description |
---|
THREE
(experimental) Python 3 (the exact version depends on GlueVersion and JobCommand used).
|
TWO
(experimental) Python 2 (the exact version depends on GlueVersion and JobCommand used).
|
Modifier and Type | Method and Description |
---|---|
static PythonVersion |
valueOf(java.lang.String name)
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.
|
public static final PythonVersion TWO
public static final PythonVersion THREE
public static PythonVersion[] values()
for (PythonVersion c : PythonVersion.values()) System.out.println(c);
public static PythonVersion valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null