@@ -41,7 +41,7 @@ An ETL job processes data in batches using Apache Spark.
41
41
declare const bucket: s3 .Bucket ;
42
42
new glue .Job (this , ' ScalaSparkEtlJob' , {
43
43
executable: glue .JobExecutable .scalaEtl ({
44
- glueVersion: glue .GlueVersion .V4_0 ,
44
+ glueVersion: glue .GlueVersion .V5_0 ,
45
45
script: glue .Code .fromBucket (bucket , ' src/com/example/HelloWorld.scala' ),
46
46
className: ' com.example.HelloWorld' ,
47
47
extraJars: [glue .Code .fromBucket (bucket , ' jars/HelloWorld.jar' )],
@@ -58,7 +58,7 @@ A Streaming job is similar to an ETL job, except that it performs ETL on data st
58
58
``` ts
59
59
new glue .Job (this , ' PythonSparkStreamingJob' , {
60
60
executable: glue .JobExecutable .pythonStreaming ({
61
- glueVersion: glue .GlueVersion .V4_0 ,
61
+ glueVersion: glue .GlueVersion .V5_0 ,
62
62
pythonVersion: glue .PythonVersion .THREE ,
63
63
script: glue .Code .fromAsset (path .join (__dirname , ' job-script' , ' hello_world.py' )),
64
64
}),
@@ -94,7 +94,7 @@ These jobs run in a Ray environment managed by AWS Glue.
94
94
``` ts
95
95
new glue .Job (this , ' RayJob' , {
96
96
executable: glue .JobExecutable .pythonRay ({
97
- glueVersion: glue .GlueVersion .V4_0 ,
97
+ glueVersion: glue .GlueVersion .V5_0 ,
98
98
pythonVersion: glue .PythonVersion .THREE_NINE ,
99
99
runtime: glue .Runtime .RAY_TWO_FOUR ,
100
100
script: glue .Code .fromAsset (path .join (__dirname , ' job-script' , ' hello_world.py' )),
@@ -137,7 +137,7 @@ Enable job run queuing by setting the `jobRunQueuingEnabled` property to `true`.
137
137
new glue .Job (this , ' EnableRunQueuing' , {
138
138
jobName: ' EtlJobWithRunQueuing' ,
139
139
executable: glue .JobExecutable .pythonEtl ({
140
- glueVersion: glue .GlueVersion .V4_0 ,
140
+ glueVersion: glue .GlueVersion .V5_0 ,
141
141
pythonVersion: glue .PythonVersion .THREE ,
142
142
script: glue .Code .fromAsset (path .join (__dirname , ' job-script' , ' hello_world.py' )),
143
143
}),
@@ -488,7 +488,7 @@ new glue.S3Table(this, 'MyTable', {
488
488
declare const myDatabase: glue .Database ;
489
489
// KMS key is created automatically
490
490
new glue .S3Table (this , ' MyTable' , {
491
- encryption: glue .TableEncryption .CLIENT_SIDE_KMS ,
491
+ encryption: glue .TableEncryption .CLIENT_SIDE_KMS ,
492
492
// ...
493
493
database: myDatabase ,
494
494
columns: [{
@@ -546,7 +546,7 @@ new glue.S3Table(this, 'MyTable', {
546
546
// ...
547
547
database: myDatabase ,
548
548
dataFormat: glue .DataFormat .JSON ,
549
- });
549
+ });
550
550
```
551
551
552
552
### Primitives
0 commit comments