Show / Hide Table of Contents

Class PythonShellJob

(experimental) Python Shell Jobs class.

Inheritance
object
Resource
JobBase
Job
PythonShellJob
Implements
IJob
IResource
IConstruct
IDependable
IGrantable
Inherited Members
Job.FromJobAttributes(Construct, string, IJobAttributes)
Job.CheckNoReservedArgs(IDictionary<string, string>)
Job.CodeS3ObjectUrl(Code)
Job.SetupContinuousLogging(IRole, IContinuousLoggingProps)
JobBase.BuildJobArn(Construct, string)
JobBase.Metric(string, MetricType, IMetricOptions)
JobBase.MetricFailure(IMetricOptions)
JobBase.MetricSuccess(IMetricOptions)
JobBase.MetricTimeout(IMetricOptions)
JobBase.OnEvent(string, IOnEventOptions)
JobBase.OnFailure(string, IOnEventOptions)
JobBase.OnStateChange(string, JobState, IOnEventOptions)
JobBase.OnSuccess(string, IOnEventOptions)
JobBase.OnTimeout(string, IOnEventOptions)
Resource.IsOwnedResource(IConstruct)
Resource.IsResource(IConstruct)
Resource.ApplyRemovalPolicy(RemovalPolicy)
Resource.GeneratePhysicalName()
Resource.GetResourceArnAttribute(string, IArnComponents)
Resource.GetResourceNameAttribute(string)
Resource.Env
Resource.PhysicalName
Resource.Stack
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

IPrincipal

Overrides
JobBase.GrantPrincipal
Remarks

Stability: Experimental

JobArn

(experimental) The ARN of the job.

public override string JobArn { get; }
Property Value

string

Overrides
JobBase.JobArn
Remarks

Stability: Experimental

JobName

(experimental) The name of the job.

public override string JobName { get; }
Property Value

string

Overrides
JobBase.JobName
Remarks

Stability: Experimental

PROPERTY_INJECTION_ID

(experimental) Uniquely identifies this class.

public static string PROPERTY_INJECTION_ID { get; }
Property Value

string

Remarks

Stability: Experimental

Role

(experimental) The IAM role Glue assumes to run this job.

public override IRole Role { get; }
Property Value

IRole

Overrides
Job.Role
Remarks

Stability: Experimental

Implements

IJob
IResource
Constructs.IConstruct
Constructs.IDependable
IGrantable
Back to top Generated by DocFX