Class PythonRayExecutableProps.Builder
java.lang.Object
software.amazon.awscdk.services.glue.alpha.PythonRayExecutableProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PythonRayExecutableProps>
- Enclosing interface:
PythonRayExecutableProps
@Stability(Experimental)
public static final class PythonRayExecutableProps.Builder
extends Object
implements software.amazon.jsii.Builder<PythonRayExecutableProps>
A builder for
PythonRayExecutableProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.extraFiles
(List<? extends Code> extraFiles) Sets the value ofPythonRayExecutableProps.getExtraFiles()
glueVersion
(GlueVersion glueVersion) Sets the value ofPythonRayExecutableProps.getGlueVersion()
pythonVersion
(PythonVersion pythonVersion) Sets the value ofPythonRayExecutableProps.getPythonVersion()
Sets the value ofPythonRayExecutableProps.getRuntime()
s3PythonModules
(List<? extends Code> s3PythonModules) Sets the value ofPythonRayExecutableProps.getS3PythonModules()
Sets the value ofPythonRayExecutableProps.getScript()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
glueVersion
@Stability(Experimental) public PythonRayExecutableProps.Builder glueVersion(GlueVersion glueVersion) Sets the value ofPythonRayExecutableProps.getGlueVersion()
- Parameters:
glueVersion
- Glue version. This parameter is required.- Returns:
this
-
pythonVersion
@Stability(Experimental) public PythonRayExecutableProps.Builder pythonVersion(PythonVersion pythonVersion) Sets the value ofPythonRayExecutableProps.getPythonVersion()
- Parameters:
pythonVersion
- The Python version to use. This parameter is required.- Returns:
this
-
script
Sets the value ofPythonRayExecutableProps.getScript()
- Parameters:
script
- The script that executes a job. This parameter is required.- Returns:
this
-
extraFiles
@Stability(Experimental) public PythonRayExecutableProps.Builder extraFiles(List<? extends Code> extraFiles) Sets the value ofPythonRayExecutableProps.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
-
runtime
Sets the value ofPythonRayExecutableProps.getRuntime()
- Parameters:
runtime
- Runtime. It is required for Ray jobs.- Returns:
this
-
s3PythonModules
@Stability(Experimental) public PythonRayExecutableProps.Builder s3PythonModules(List<? extends Code> s3PythonModules) Sets the value ofPythonRayExecutableProps.getS3PythonModules()
- Parameters:
s3PythonModules
- Additional Python modules that AWS Glue adds to the Python path before executing your script. Equivalent to a job parameter--s3-py-modules
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<PythonRayExecutableProps>
- Returns:
- a new instance of
PythonRayExecutableProps
- Throws:
NullPointerException
- if any required attribute was not provided
-