Enum PythonVersion
- All Implemented Interfaces:
- Serializable,- Comparable<PythonVersion>,- java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
           date="2025-10-29T11:15:51.749Z")
@Stability(Experimental)
public enum PythonVersion
extends Enum<PythonVersion>
(experimental) Python version.
 
Example:
 import software.amazon.awscdk.*;
 import software.amazon.awscdk.services.iam.*;
 Stack stack;
 IRole role;
 Code script;
 PythonShellJob.Builder.create(stack, "PythonShellJob")
         .jobName("PythonShellJobCustomName")
         .description("This is a description")
         .pythonVersion(PythonVersion.TWO)
         .maxCapacity(MaxCapacity.DPU_1)
         .role(role)
         .script(script)
         .glueVersion(GlueVersion.V2_0)
         .continuousLogging(ContinuousLoggingProps.builder().enabled(false).build())
         .workerType(WorkerType.G_2X)
         .maxConcurrentRuns(100)
         .timeout(Duration.hours(2))
         .connections(List.of(Connection.fromConnectionName(stack, "Connection", "connectionName")))
         .securityConfiguration(SecurityConfiguration.fromSecurityConfigurationName(stack, "SecurityConfig", "securityConfigName"))
         .tags(Map.of(
                 "FirstTagName", "FirstTagValue",
                 "SecondTagName", "SecondTagValue",
                 "XTagName", "XTagValue"))
         .numberOfWorkers(2)
         .maxRetries(2)
         .build();
 - 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum 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 SummaryModifier and TypeMethodDescriptionstatic PythonVersionReturns 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- 
valuesReturns 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
 
- 
valueOfReturns 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
 
 
-