class GlueVersion
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Glue.Alpha.GlueVersion |
Go | github.com/aws/aws-cdk-go/awscdkgluealpha/v2#GlueVersion |
Java | software.amazon.awscdk.services.glue.alpha.GlueVersion |
Python | aws_cdk.aws_glue_alpha.GlueVersion |
TypeScript (source) | @aws-cdk/aws-glue-alpha ยป GlueVersion |
AWS Glue version determines the versions of Apache Spark and Python that are available to the job.
See also: [https://docs.aws.amazon.com/glue/latest/dg/add-job.html.
If you need to use a GlueVersion that doesn't exist as a static member, you
can instantiate a GlueVersion
object, e.g: GlueVersion.of('1.5')
.](https://docs.aws.amazon.com/glue/latest/dg/add-job.html.
If you need to use a GlueVersion that doesn't exist as a static member, you
can instantiate a GlueVersion
object, e.g: GlueVersion.of('1.5')
.)
Example
new glue.Job(this, 'EnableRunQueuing', {
jobName: 'EtlJobWithRunQueuing',
executable: glue.JobExecutable.pythonEtl({
glueVersion: glue.GlueVersion.V4_0,
pythonVersion: glue.PythonVersion.THREE,
script: glue.Code.fromAsset(path.join(__dirname, 'job-script', 'hello_world.py')),
}),
jobRunQueuingEnabled: true,
});
Properties
Name | Type | Description |
---|---|---|
name | string | The name of this GlueVersion, as expected by Job resource. |
static V0_9 | Glue | Glue version using Spark 2.2.1 and Python 2.7. |
static V1_0 | Glue | Glue version using Spark 2.4.3, Python 2.7 and Python 3.6. |
static V2_0 | Glue | Glue version using Spark 2.4.3 and Python 3.7. |
static V3_0 | Glue | Glue version using Spark 3.1.1 and Python 3.7. |
static V4_0 | Glue | Glue version using Spark 3.3.0 and Python 3.10. |
name
Type:
string
The name of this GlueVersion, as expected by Job resource.
static V0_9
Type:
Glue
Glue version using Spark 2.2.1 and Python 2.7.
static V1_0
Type:
Glue
Glue version using Spark 2.4.3, Python 2.7 and Python 3.6.
static V2_0
Type:
Glue
Glue version using Spark 2.4.3 and Python 3.7.
static V3_0
Type:
Glue
Glue version using Spark 3.1.1 and Python 3.7.
static V4_0
Type:
Glue
Glue version using Spark 3.3.0 and Python 3.10.
Methods
Name | Description |
---|---|
static of(version) | Custom Glue version. |
static of(version)
public static of(version: string): GlueVersion
Parameters
- version
string
โ custom version.
Returns
Custom Glue version.