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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnJob.JobCommandProperty
static final class
An implementation forCfnJob.JobCommandProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
getName()
The name of the job command.default String
The Python version being used to execute a Python shell job.default String
CfnJob.JobCommandProperty.Runtime
.default String
Specifies 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.Builder
ofCfnJob.JobCommandProperty
-