Interface CfnJob.JobCommandProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnJob.JobCommandProperty.Jsii$Proxy
- Enclosing class:
CfnJob
@Stability(Stable)
public static interface CfnJob.JobCommandProperty
extends software.amazon.jsii.JsiiSerializable
Specifies code executed when a job is run.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.glue.*;
JobCommandProperty jobCommandProperty = JobCommandProperty.builder()
.name("name")
.pythonVersion("pythonVersion")
.runtime("runtime")
.scriptLocation("scriptLocation")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnJob.JobCommandPropertystatic final classAn implementation forCfnJob.JobCommandProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringgetName()The name of the job command.default StringThe Python version being used to execute a Python shell job.default StringIn Ray jobs, Runtime is used to specify the versions of Ray, Python and additional libraries available in your environment.default StringSpecifies the Amazon Simple Storage Service (Amazon S3) path to a script that executes a job (required).Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getName
The name of the job command.For an Apache Spark ETL job, this must be
glueetl. For a Python shell job, it must bepythonshell. For an Apache Spark streaming ETL job, this must begluestreaming. For a Ray job, this must beglueray.- See Also:
-
getPythonVersion
The Python version being used to execute a Python shell job.Allowed values are 3 or 3.9. Version 2 is deprecated.
- See Also:
-
getRuntime
In Ray jobs, Runtime is used to specify the versions of Ray, Python and additional libraries available in your environment.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.
- See Also:
-
getScriptLocation
Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that executes a job (required).- See Also:
-
builder
- Returns:
- a
CfnJob.JobCommandProperty.BuilderofCfnJob.JobCommandProperty
-