Class Code
(experimental) Represents a Glue Job's Code assets (an asset can be a scripts, a jar, a python file or any other file).
Namespace: Amazon.CDK.AWS.Glue
Assembly: Amazon.CDK.AWS.Glue.dll
Syntax (csharp)
public abstract class Code : DeputyBase
Syntax (vb)
Public MustInherit Class Code
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
Code() | |
Code(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Code(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bind(Construct, IGrantable) | (experimental) Called when the Job is initialized to allow this object to bind. |
FromAsset(String, IAssetOptions) | (experimental) Job code from a local disk path. |
FromBucket(IBucket, String) | (experimental) Job code as an S3 object. |
Constructors
Code()
protected Code()
Remarks
Stability: Experimental
Code(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Code(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
Code(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Code(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Bind(Construct, IGrantable)
(experimental) Called when the Job is initialized to allow this object to bind.
public abstract ICodeConfig Bind(Construct scope, IGrantable grantable)
Parameters
- scope Constructs.Construct
- grantable IGrantable
Returns
Remarks
Stability: Experimental
FromAsset(String, IAssetOptions)
(experimental) Job code from a local disk path.
public static AssetCode FromAsset(string path, IAssetOptions options = null)
Parameters
- path System.String
code file (not a directory).
- options IAssetOptions
code file (not a directory).
Returns
Remarks
Stability: Experimental