enum PythonVersion
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Glue.Alpha.PythonVersion |
![]() | github.com/aws/aws-cdk-go/awscdkgluealpha/v2#PythonVersion |
![]() | software.amazon.awscdk.services.glue.alpha.PythonVersion |
![]() | aws_cdk.aws_glue_alpha.PythonVersion |
![]() | @aws-cdk/aws-glue-alpha ยป PythonVersion |
Python version.
Example
import * as cdk from 'aws-cdk-lib';
import * as iam from 'aws-cdk-lib/aws-iam';
declare const stack: cdk.Stack;
declare const role: iam.IRole;
declare const script: glue.Code;
new glue.PythonShellJob(stack, 'PythonShellJob', {
jobName: 'PythonShellJobCustomName',
description: 'This is a description',
pythonVersion: glue.PythonVersion.TWO,
maxCapacity: glue.MaxCapacity.DPU_1,
role,
script,
glueVersion: glue.GlueVersion.V2_0,
continuousLogging: { enabled: false },
workerType: glue.WorkerType.G_2X,
maxConcurrentRuns: 100,
timeout: cdk.Duration.hours(2),
connections: [glue.Connection.fromConnectionName(stack, 'Connection', 'connectionName')],
securityConfiguration: glue.SecurityConfiguration.fromSecurityConfigurationName(stack, 'SecurityConfig', 'securityConfigName'),
tags: {
FirstTagName: 'FirstTagValue',
SecondTagName: 'SecondTagValue',
XTagName: 'XTagValue',
},
numberOfWorkers: 2,
maxRetries: 2,
});
Members
Name | Description |
---|---|
TWO | Python 2 (the exact version depends on GlueVersion and JobCommand used). |
THREE | Python 3 (the exact version depends on GlueVersion and JobCommand used). |
THREE_NINE | Python 3.9 (the exact version depends on GlueVersion and JobCommand used). |
TWO
Python 2 (the exact version depends on GlueVersion and JobCommand used).
THREE
Python 3 (the exact version depends on GlueVersion and JobCommand used).
THREE_NINE
Python 3.9 (the exact version depends on GlueVersion and JobCommand used).