Class PythonSparkJobExecutableProps.Builder
java.lang.Object
software.amazon.awscdk.services.glue.alpha.PythonSparkJobExecutableProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PythonSparkJobExecutableProps>
- Enclosing interface:
PythonSparkJobExecutableProps
@Stability(Experimental)
public static final class PythonSparkJobExecutableProps.Builder
extends Object
implements software.amazon.jsii.Builder<PythonSparkJobExecutableProps>
A builder for
PythonSparkJobExecutableProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.extraFiles
(List<? extends Code> extraFiles) Sets the value ofPythonSparkJobExecutableProps.getExtraFiles()
Sets the value ofPythonSparkJobExecutableProps.getExtraJars()
extraJarsFirst
(Boolean extraJarsFirst) Sets the value ofPythonSparkJobExecutableProps.getExtraJarsFirst()
extraPythonFiles
(List<? extends Code> extraPythonFiles) Sets the value ofPythonSparkJobExecutableProps.getExtraPythonFiles()
glueVersion
(GlueVersion glueVersion) Sets the value ofPythonSparkJobExecutableProps.getGlueVersion()
pythonVersion
(PythonVersion pythonVersion) Sets the value ofPythonSparkJobExecutableProps.getPythonVersion()
Sets the value ofPythonSparkJobExecutableProps.getRuntime()
Sets the value ofPythonSparkJobExecutableProps.getScript()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
glueVersion
@Stability(Experimental) public PythonSparkJobExecutableProps.Builder glueVersion(GlueVersion glueVersion) Sets the value ofPythonSparkJobExecutableProps.getGlueVersion()
- Parameters:
glueVersion
- Glue version. This parameter is required.- Returns:
this
-
pythonVersion
@Stability(Experimental) public PythonSparkJobExecutableProps.Builder pythonVersion(PythonVersion pythonVersion) Sets the value ofPythonSparkJobExecutableProps.getPythonVersion()
- Parameters:
pythonVersion
- The Python version to use. This parameter is required.- Returns:
this
-
script
Sets the value ofPythonSparkJobExecutableProps.getScript()
- Parameters:
script
- The script that executes a job. This parameter is required.- Returns:
this
-
extraFiles
@Stability(Experimental) public PythonSparkJobExecutableProps.Builder extraFiles(List<? extends Code> extraFiles) Sets the value ofPythonSparkJobExecutableProps.getExtraFiles()
- Parameters:
extraFiles
- Additional files, such as configuration files that AWS Glue copies to the working directory of your script before executing it. Only individual files are supported, directories are not supported. Equivalent to a job parameter--extra-files
.- Returns:
this
-
extraJars
@Stability(Experimental) public PythonSparkJobExecutableProps.Builder extraJars(List<? extends Code> extraJars) Sets the value ofPythonSparkJobExecutableProps.getExtraJars()
- Parameters:
extraJars
- Additional Java .jar files that AWS Glue adds to the Java classpath before executing your script. Only individual files are supported, directories are not supported. Equivalent to a job parameter--extra-jars
.- Returns:
this
-
extraJarsFirst
@Stability(Experimental) public PythonSparkJobExecutableProps.Builder extraJarsFirst(Boolean extraJarsFirst) Sets the value ofPythonSparkJobExecutableProps.getExtraJarsFirst()
- Parameters:
extraJarsFirst
- Setting this value to true prioritizes the customer's extra JAR files in the classpath. Equivalent to a job parameter--user-jars-first
.- Returns:
this
-
extraPythonFiles
@Stability(Experimental) public PythonSparkJobExecutableProps.Builder extraPythonFiles(List<? extends Code> extraPythonFiles) Sets the value ofPythonSparkJobExecutableProps.getExtraPythonFiles()
- Parameters:
extraPythonFiles
- Additional Python files that AWS Glue adds to the Python path before executing your script. Only individual files are supported, directories are not supported. Equivalent to a job parameter--extra-py-files
.- Returns:
this
-
runtime
Sets the value ofPythonSparkJobExecutableProps.getRuntime()
- Parameters:
runtime
- Runtime. It is required for Ray jobs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<PythonSparkJobExecutableProps>
- Returns:
- a new instance of
PythonSparkJobExecutableProps
- Throws:
NullPointerException
- if any required attribute was not provided
-