Class JobExecutable
(experimental) The executable properties related to the Glue job's GlueVersion, JobType and code.
Inheritance
Namespace: Amazon.CDK.AWS.Glue
Assembly: Amazon.CDK.AWS.Glue.dll
Syntax (csharp)
public class JobExecutable : DeputyBase
Syntax (vb)
Public Class JobExecutable
Inherits DeputyBase
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
Bucket bucket;
new Job(this, "PythonShellJob", new JobProps {
Executable = JobExecutable.PythonShell(new PythonShellExecutableProps {
GlueVersion = GlueVersion.V1_0,
PythonVersion = PythonVersion.THREE,
Script = Code.FromBucket(bucket, "script.py")
}),
Description = "an example Python Shell job"
});
Synopsis
Constructors
JobExecutable(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
JobExecutable(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bind() | (experimental) Called during Job initialization to get JobExecutableConfig. |
Of(IJobExecutableConfig) | (experimental) Create a custom JobExecutable. |
PythonEtl(IPythonSparkJobExecutableProps) | (experimental) Create Python executable props for Apache Spark ETL job. |
PythonShell(IPythonShellExecutableProps) | (experimental) Create Python executable props for python shell jobs. |
PythonStreaming(IPythonSparkJobExecutableProps) | (experimental) Create Python executable props for Apache Spark Streaming job. |
ScalaEtl(IScalaJobExecutableProps) | (experimental) Create Scala executable props for Apache Spark ETL job. |
ScalaStreaming(IScalaJobExecutableProps) | (experimental) Create Scala executable props for Apache Spark Streaming job. |
Constructors
JobExecutable(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected JobExecutable(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
JobExecutable(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected JobExecutable(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Bind()
(experimental) Called during Job initialization to get JobExecutableConfig.
public virtual IJobExecutableConfig Bind()
Returns
Remarks
Stability: Experimental
Of(IJobExecutableConfig)
(experimental) Create a custom JobExecutable.
public static JobExecutable Of(IJobExecutableConfig config)
Parameters
- config IJobExecutableConfig
custom job executable configuration.
Returns
Remarks
Stability: Experimental
PythonEtl(IPythonSparkJobExecutableProps)
(experimental) Create Python executable props for Apache Spark ETL job.
public static JobExecutable PythonEtl(IPythonSparkJobExecutableProps props)
Parameters
- props IPythonSparkJobExecutableProps
Python Apache Spark Job props.
Returns
Remarks
Stability: Experimental
PythonShell(IPythonShellExecutableProps)
(experimental) Create Python executable props for python shell jobs.
public static JobExecutable PythonShell(IPythonShellExecutableProps props)
Parameters
- props IPythonShellExecutableProps
Python Shell Job props.
Returns
Remarks
Stability: Experimental
PythonStreaming(IPythonSparkJobExecutableProps)
(experimental) Create Python executable props for Apache Spark Streaming job.
public static JobExecutable PythonStreaming(IPythonSparkJobExecutableProps props)
Parameters
- props IPythonSparkJobExecutableProps
Python Apache Spark Job props.
Returns
Remarks
Stability: Experimental
ScalaEtl(IScalaJobExecutableProps)
(experimental) Create Scala executable props for Apache Spark ETL job.
public static JobExecutable ScalaEtl(IScalaJobExecutableProps props)
Parameters
- props IScalaJobExecutableProps
Scala Apache Spark Job props.
Returns
Remarks
Stability: Experimental
ScalaStreaming(IScalaJobExecutableProps)
(experimental) Create Scala executable props for Apache Spark Streaming job.
public static JobExecutable ScalaStreaming(IScalaJobExecutableProps props)
Parameters
- props IScalaJobExecutableProps
Scala Apache Spark Job props.
Returns
Remarks
Stability: Experimental