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();
-
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 StringCfnJob.JobCommandProperty.Runtime.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. -
getPythonVersion
The Python version being used to execute a Python shell job.Allowed values are 3 or 3.9. Version 2 is deprecated.
-
getRuntime
CfnJob.JobCommandProperty.Runtime. -
getScriptLocation
Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that executes a job (required). -
builder
- Returns:
- a
CfnJob.JobCommandProperty.BuilderofCfnJob.JobCommandProperty
-