Class Job
(experimental) A Glue Job.
Inherited Members
Namespace: Amazon.CDK.AWS.Glue.Alpha
Assembly: Amazon.CDK.AWS.Glue.Alpha.dll
Syntax (csharp)
public abstract class Job : JobBase, IJob, IResource, IConstruct, IDependable, IGrantable
Syntax (vb)
Public MustInherit Class Job Inherits JobBase Implements IJob, IResource, IConstruct, IDependable, IGrantable
Remarks
Stability: Experimental
Resource: AWS::Glue::Job
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Glue.Alpha;
using Amazon.CDK.AWS.IAM;
Role role;
var job = Job.FromJobAttributes(this, "MyJob", new JobAttributes {
JobName = "jobName",
// the properties below are optional
Role = role
});
Synopsis
Constructors
Job(Construct, string, IResourceProps?) | (experimental) A Glue Job. |
Properties
Role | (experimental) The IAM role Glue assumes to run this job. |
Methods
CheckNoReservedArgs(IDictionary<string, string>?) | (experimental) Check no usage of reserved arguments. |
CodeS3ObjectUrl(Code) | (experimental) A Glue Job. |
FromJobAttributes(Construct, string, IJobAttributes) | (experimental) Identifies an existing Glue Job from a subset of attributes that can be referenced from within another Stack or Construct. |
SetupContinuousLogging(IRole, IContinuousLoggingProps?) | (experimental) Setup Continuous Logging Properties. |
Constructors
Job(Construct, string, IResourceProps?)
(experimental) A Glue Job.
protected Job(Construct scope, string id, IResourceProps? props = null)
Parameters
- scope Construct
- id string
- props IResourceProps
Remarks
Stability: Experimental
Resource: AWS::Glue::Job
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Glue.Alpha;
using Amazon.CDK.AWS.IAM;
Role role;
var job = Job.FromJobAttributes(this, "MyJob", new JobAttributes {
JobName = "jobName",
// the properties below are optional
Role = role
});
Properties
Role
(experimental) The IAM role Glue assumes to run this job.
public abstract IRole Role { get; }
Property Value
Remarks
Stability: Experimental
Methods
CheckNoReservedArgs(IDictionary<string, string>?)
(experimental) Check no usage of reserved arguments.
protected virtual IDictionary<string, string>? CheckNoReservedArgs(IDictionary<string, string>? defaultArguments = null)
Parameters
- defaultArguments IDictionary<string, string>
Returns
Remarks
Stability: Experimental
See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
CodeS3ObjectUrl(Code)
(experimental) A Glue Job.
protected virtual string CodeS3ObjectUrl(Code code)
Parameters
- code Code
Returns
Remarks
Stability: Experimental
FromJobAttributes(Construct, string, IJobAttributes)
(experimental) Identifies an existing Glue Job from a subset of attributes that can be referenced from within another Stack or Construct.
public static IJob FromJobAttributes(Construct scope, string id, IJobAttributes attrs)
Parameters
- scope Construct
The scope creating construct (usually
this
).- id string
The construct's id.
- attrs IJobAttributes
Attributes for the Glue Job we want to import.
Returns
Remarks
Stability: Experimental
SetupContinuousLogging(IRole, IContinuousLoggingProps?)
(experimental) Setup Continuous Logging Properties.
protected virtual object SetupContinuousLogging(IRole role, IContinuousLoggingProps? props = null)
Parameters
- role IRole
The IAM role to use for continuous logging.
- props IContinuousLoggingProps
The properties for continuous logging configuration.
Returns
String containing the args for the continuous logging command
Remarks
Stability: Experimental