AWS Security ChangesHomeSearch

AWS code-library documentation change

Service: code-library · 2025-06-28 · Documentation low

File: code-library/latest/ug/glue_example_glue_CreateJob_section.md

Summary

Added PowerShell V5 example demonstrating AWS Glue job creation with parameters like script location, default arguments, and role configuration

Security assessment

The change adds a code example for job creation but does not address security vulnerabilities or introduce security-specific configurations. The role reference appears to be standard operational setup.

Diff

diff --git a/code-library/latest/ug/glue_example_glue_CreateJob_section.md b/code-library/latest/ug/glue_example_glue_CreateJob_section.md
index 0ba56a15b..37319309f 100644
--- a//code-library/latest/ug/glue_example_glue_CreateJob_section.md
+++ b//code-library/latest/ug/glue_example_glue_CreateJob_section.md
@@ -395,0 +396,47 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example creates a new job in AWS Glue. The command name value is always`glueetl`. AWS Glue supports running job scripts written in Python or Scala. In this example, the job script (MyTestGlueJob.py) is written in Python. Python parameters are specified in the `$DefArgs` variable, and then passed to the PowerShell command in the `DefaultArguments` parameter, which accepts a hashtable. The parameters in the `$JobParams` variable come from the CreateJob API, documented in the Jobs (https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-jobs-job.html) topic of the AWS Glue API reference.**
+    
+    
+    $Command = New-Object Amazon.Glue.Model.JobCommand
+    $Command.Name = 'glueetl'
+    $Command.ScriptLocation = 's3://amzn-s3-demo-source-bucket/admin/MyTestGlueJob.py'
+    $Command
+    
+    $Source = "source_test_table"
+    $Target = "target_test_table"
+    $Connections = $Source, $Target
+    
+    $DefArgs = @{
+         '--TempDir' = 's3://amzn-s3-demo-bucket/admin'
+         '--job-bookmark-option' = 'job-bookmark-disable'
+         '--job-language' = 'python'
+         }
+    $DefArgs
+    
+    $ExecutionProp = New-Object Amazon.Glue.Model.ExecutionProperty
+    $ExecutionProp.MaxConcurrentRuns = 1
+    $ExecutionProp
+    
+    $JobParams = @{
+        "AllocatedCapacity"    = "5"
+        "Command"              = $Command
+        "Connections_Connection" = $Connections
+        "DefaultArguments"  = $DefArgs
+        "Description"       = "This is a test"
+        "ExecutionProperty" = $ExecutionProp
+        "MaxRetries"        = "1"
+        "Name"              = "MyOregonTestGlueJob"
+        "Role"              = "Amazon-GlueServiceRoleForSSM"
+        "Timeout"           = "20"
+         }
+    
+    New-GlueJob @JobParams
+    
+
+  * For API details, see [CreateJob](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+