Class CfnJob.JobCommandProperty
Specifies code executed when a job is run.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Glue
Assembly: Amazon.CDK.AWS.Glue.dll
Syntax (csharp)
public class JobCommandProperty : Object, CfnJob.IJobCommandProperty
Syntax (vb)
Public Class JobCommandProperty
Inherits Object
Implements CfnJob.IJobCommandProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Glue;
var jobCommandProperty = new JobCommandProperty {
Name = "name",
PythonVersion = "pythonVersion",
Runtime = "runtime",
ScriptLocation = "scriptLocation"
};
Synopsis
Constructors
JobCommandProperty() |
Properties
Name | The name of the job command. |
PythonVersion | The Python version being used to execute a Python shell job. |
Runtime |
|
ScriptLocation | Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that executes a job (required). |
Constructors
JobCommandProperty()
public JobCommandProperty()
Properties
Name
The name of the job command.
public string Name { get; set; }
Property Value
System.String
Remarks
For an Apache Spark ETL job, this must be glueetl
. For a Python shell job, it must be pythonshell
. For an Apache Spark streaming ETL job, this must be gluestreaming
.
PythonVersion
The Python version being used to execute a Python shell job.
public string PythonVersion { get; set; }
Property Value
System.String
Remarks
Allowed values are 3 or 3.9. Version 2 is deprecated.
Runtime
CfnJob.JobCommandProperty.Runtime
.
public string Runtime { get; set; }
Property Value
System.String
Remarks
ScriptLocation
Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that executes a job (required).
public string ScriptLocation { get; set; }
Property Value
System.String