Class CfnJob.JobCommandProperty
Specifies code executed when a job is run.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Glue
Assembly: Amazon.CDK.Lib.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 | In Ray jobs, Runtime is used to specify the versions of Ray, Python and additional libraries available in your environment. |
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
. For a Ray job, this must be glueray
.
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
In Ray jobs, Runtime is used to specify the versions of Ray, Python and additional libraries available in your environment.
public string Runtime { get; set; }
Property Value
System.String
Remarks
This field is not used in other job types. For supported runtime environment values, see Working with Ray jobs in the AWS Glue Developer Guide.
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