Class PythonShellJob
(experimental) Python Shell Jobs class.
Inherited Members
Namespace: Amazon.CDK.AWS.Glue.Alpha
Assembly: Amazon.CDK.AWS.Glue.Alpha.dll
Syntax (csharp)
public class PythonShellJob : Job, IJob, IResource, IConstruct, IDependable, IGrantable
Syntax (vb)
Public Class PythonShellJob Inherits Job Implements IJob, IResource, IConstruct, IDependable, IGrantable
Remarks
A Python shell job runs Python scripts as a shell and supports a Python version that depends on the AWS Glue version you are using. This can be used to schedule and run tasks that don't require an Apache Spark environment.
Stability: Experimental
ExampleMetadata: infused
Examples
using Amazon.CDK;
using Amazon.CDK.AWS.IAM;
Stack stack;
IRole role;
Code script;
new PythonShellJob(stack, "ImportedJob", new PythonShellJobProps { Role = role, Script = script });
Synopsis
Constructors
PythonShellJob(Construct, string, IPythonShellJobProps) | (experimental) PythonShellJob constructor. |
Properties
GrantPrincipal | (experimental) The principal to grant permissions to. |
JobArn | (experimental) The ARN of the job. |
JobName | (experimental) The name of the job. |
PROPERTY_INJECTION_ID | (experimental) Uniquely identifies this class. |
Role | (experimental) The IAM role Glue assumes to run this job. |
Constructors
PythonShellJob(Construct, string, IPythonShellJobProps)
(experimental) PythonShellJob constructor.
public PythonShellJob(Construct scope, string id, IPythonShellJobProps props)
Parameters
- scope Construct
- id string
- props IPythonShellJobProps
Remarks
Stability: Experimental
Properties
GrantPrincipal
(experimental) The principal to grant permissions to.
public override IPrincipal GrantPrincipal { get; }
Property Value
Overrides
Remarks
Stability: Experimental
JobArn
(experimental) The ARN of the job.
public override string JobArn { get; }
Property Value
Overrides
Remarks
Stability: Experimental
JobName
(experimental) The name of the job.
public override string JobName { get; }
Property Value
Overrides
Remarks
Stability: Experimental
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
Stability: Experimental
Role
(experimental) The IAM role Glue assumes to run this job.
public override IRole Role { get; }
Property Value
Overrides
Remarks
Stability: Experimental