@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:09.631Z") @Stability(value=Experimental) public enum PythonVersion extends 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(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.
|
@Stability(value=Experimental) public static final PythonVersion TWO
@Stability(value=Experimental) public static final PythonVersion THREE
public static PythonVersion[] values()
for (PythonVersion c : PythonVersion.values()) System.out.println(c);
public static PythonVersion valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.