Show / Hide Table of Contents

Class CfnJobProps

Properties for defining a CfnJob.

Inheritance
object
CfnJobProps
Implements
ICfnJobProps
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.Glue
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnJobProps : ICfnJobProps
Syntax (vb)
Public Class CfnJobProps Implements ICfnJobProps
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html

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;

             var defaultArguments;
             var nonOverridableArguments;
             var tags;

             var cfnJobProps = new CfnJobProps {
                 Command = new JobCommandProperty {
                     Name = "name",
                     PythonVersion = "pythonVersion",
                     Runtime = "runtime",
                     ScriptLocation = "scriptLocation"
                 },
                 Role = "role",

                 // the properties below are optional
                 AllocatedCapacity = 123,
                 Connections = new ConnectionsListProperty {
                     Connections = new [] { "connections" }
                 },
                 DefaultArguments = defaultArguments,
                 Description = "description",
                 ExecutionClass = "executionClass",
                 ExecutionProperty = new ExecutionPropertyProperty {
                     MaxConcurrentRuns = 123
                 },
                 GlueVersion = "glueVersion",
                 JobMode = "jobMode",
                 JobRunQueuingEnabled = false,
                 LogUri = "logUri",
                 MaintenanceWindow = "maintenanceWindow",
                 MaxCapacity = 123,
                 MaxRetries = 123,
                 Name = "name",
                 NonOverridableArguments = nonOverridableArguments,
                 NotificationProperty = new NotificationPropertyProperty {
                     NotifyDelayAfter = 123
                 },
                 NumberOfWorkers = 123,
                 SecurityConfiguration = "securityConfiguration",
                 Tags = tags,
                 Timeout = 123,
                 WorkerType = "workerType"
             };

Synopsis

Constructors

CfnJobProps()

Properties for defining a CfnJob.

Properties

AllocatedCapacity

This parameter is no longer supported. Use MaxCapacity instead.

Command

The code that executes a job.

Connections

The connections used for this job.

DefaultArguments

The default arguments for this job, specified as name-value pairs.

Description

A description of the job.

ExecutionClass

Indicates whether the job is run with a standard or flexible execution class.

ExecutionProperty

The maximum number of concurrent runs that are allowed for this job.

GlueVersion

Glue version determines the versions of Apache Spark and Python that AWS Glue supports.

JobMode

A mode that describes how a job was created. Valid values are:.

JobRunQueuingEnabled

Specifies whether job run queuing is enabled for the job runs for this job.

LogUri

This field is reserved for future use.

MaintenanceWindow

This field specifies a day of the week and hour for a maintenance window for streaming jobs.

MaxCapacity

The number of AWS Glue data processing units (DPUs) that can be allocated when this job runs.

MaxRetries

The maximum number of times to retry this job after a JobRun fails.

Name

The name you assign to this job definition.

NonOverridableArguments

Non-overridable arguments for this job, specified as name-value pairs.

NotificationProperty

Specifies configuration properties of a notification.

NumberOfWorkers

The number of workers of a defined workerType that are allocated when a job runs.

Role

The name or Amazon Resource Name (ARN) of the IAM role associated with this job.

SecurityConfiguration

The name of the SecurityConfiguration structure to be used with this job.

Tags

The tags to use with this job.

Timeout

The job timeout in minutes.

WorkerType

The type of predefined worker that is allocated when a job runs.

Constructors

CfnJobProps()

Properties for defining a CfnJob.

public CfnJobProps()
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html

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;

             var defaultArguments;
             var nonOverridableArguments;
             var tags;

             var cfnJobProps = new CfnJobProps {
                 Command = new JobCommandProperty {
                     Name = "name",
                     PythonVersion = "pythonVersion",
                     Runtime = "runtime",
                     ScriptLocation = "scriptLocation"
                 },
                 Role = "role",

                 // the properties below are optional
                 AllocatedCapacity = 123,
                 Connections = new ConnectionsListProperty {
                     Connections = new [] { "connections" }
                 },
                 DefaultArguments = defaultArguments,
                 Description = "description",
                 ExecutionClass = "executionClass",
                 ExecutionProperty = new ExecutionPropertyProperty {
                     MaxConcurrentRuns = 123
                 },
                 GlueVersion = "glueVersion",
                 JobMode = "jobMode",
                 JobRunQueuingEnabled = false,
                 LogUri = "logUri",
                 MaintenanceWindow = "maintenanceWindow",
                 MaxCapacity = 123,
                 MaxRetries = 123,
                 Name = "name",
                 NonOverridableArguments = nonOverridableArguments,
                 NotificationProperty = new NotificationPropertyProperty {
                     NotifyDelayAfter = 123
                 },
                 NumberOfWorkers = 123,
                 SecurityConfiguration = "securityConfiguration",
                 Tags = tags,
                 Timeout = 123,
                 WorkerType = "workerType"
             };

Properties

AllocatedCapacity

This parameter is no longer supported. Use MaxCapacity instead.

public double? AllocatedCapacity { get; set; }
Property Value

double?

Remarks

The number of capacity units that are allocated to this job.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-allocatedcapacity

Command

The code that executes a job.

public object Command { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-command

Connections

The connections used for this job.

public object? Connections { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-connections

DefaultArguments

The default arguments for this job, specified as name-value pairs.

public object? DefaultArguments { get; set; }
Property Value

object

Remarks

You can specify arguments here that your own job-execution script consumes, in addition to arguments that AWS Glue itself consumes.

For information about how to specify and consume your own job arguments, see Calling AWS Glue APIs in Python in the AWS Glue Developer Guide .

For information about the key-value pairs that AWS Glue consumes to set up your job, see Special Parameters Used by AWS Glue in the AWS Glue Developer Guide .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-defaultarguments

Description

A description of the job.

public string? Description { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-description

ExecutionClass

Indicates whether the job is run with a standard or flexible execution class.

public string? ExecutionClass { get; set; }
Property Value

string

Remarks

The standard execution class is ideal for time-sensitive workloads that require fast job startup and dedicated resources.

The flexible execution class is appropriate for time-insensitive jobs whose start and completion times may vary.

Only jobs with AWS Glue version 3.0 and above and command type glueetl will be allowed to set ExecutionClass to FLEX . The flexible execution class is available for Spark jobs.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-executionclass

ExecutionProperty

The maximum number of concurrent runs that are allowed for this job.

public object? ExecutionProperty { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-executionproperty

GlueVersion

Glue version determines the versions of Apache Spark and Python that AWS Glue supports.

public string? GlueVersion { get; set; }
Property Value

string

Remarks

The Python version indicates the version supported for jobs of type Spark.

For more information about the available AWS Glue versions and corresponding Spark and Python versions, see Glue version in the developer guide.

Jobs that are created without specifying a Glue version default to the latest Glue version available.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-glueversion

JobMode

A mode that describes how a job was created. Valid values are:.

public string? JobMode { get; set; }
Property Value

string

Remarks

    When the JobMode field is missing or null, SCRIPT is assigned as the default value.

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-jobmode

    JobRunQueuingEnabled

    Specifies whether job run queuing is enabled for the job runs for this job.

    public object? JobRunQueuingEnabled { get; set; }
    Property Value

    object

    Remarks

    A value of true means job run queuing is enabled for the job runs. If false or not populated, the job runs will not be considered for queueing.

    If this field does not match the value set in the job run, then the value from the job run field will be used.

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-jobrunqueuingenabled

    LogUri

    This field is reserved for future use.

    public string? LogUri { get; set; }
    Property Value

    string

    Remarks

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-loguri

    MaintenanceWindow

    This field specifies a day of the week and hour for a maintenance window for streaming jobs.

    public string? MaintenanceWindow { get; set; }
    Property Value

    string

    Remarks

    AWS Glue periodically performs maintenance activities. During these maintenance windows, AWS Glue will need to restart your streaming jobs.

    AWS Glue will restart the job within 3 hours of the specified maintenance window. For instance, if you set up the maintenance window for Monday at 10:00AM GMT, your jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-maintenancewindow

    MaxCapacity

    The number of AWS Glue data processing units (DPUs) that can be allocated when this job runs.

    public double? MaxCapacity { get; set; }
    Property Value

    double?

    Remarks

    A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory.

    Do not set Max Capacity if using WorkerType and NumberOfWorkers .

    The value that can be allocated for MaxCapacity depends on whether you are running a Python shell job or an Apache Spark ETL job:

      See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-maxcapacity

      MaxRetries

      The maximum number of times to retry this job after a JobRun fails.

      public double? MaxRetries { get; set; }
      Property Value

      double?

      Remarks

      See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-maxretries

      Name

      The name you assign to this job definition.

      public string? Name { get; set; }
      Property Value

      string

      Remarks

      See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-name

      NonOverridableArguments

      Non-overridable arguments for this job, specified as name-value pairs.

      public object? NonOverridableArguments { get; set; }
      Property Value

      object

      Remarks

      See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-nonoverridablearguments

      NotificationProperty

      Specifies configuration properties of a notification.

      public object? NotificationProperty { get; set; }
      Property Value

      object

      Remarks

      See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-notificationproperty

      NumberOfWorkers

      The number of workers of a defined workerType that are allocated when a job runs.

      public double? NumberOfWorkers { get; set; }
      Property Value

      double?

      Remarks

      The maximum number of workers you can define are 299 for G.1X , and 149 for G.2X .

      See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-numberofworkers

      Role

      The name or Amazon Resource Name (ARN) of the IAM role associated with this job.

      public string Role { get; set; }
      Property Value

      string

      Remarks

      See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-role

      SecurityConfiguration

      The name of the SecurityConfiguration structure to be used with this job.

      public string? SecurityConfiguration { get; set; }
      Property Value

      string

      Remarks

      See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-securityconfiguration

      Tags

      The tags to use with this job.

      public object? Tags { get; set; }
      Property Value

      object

      Remarks

      See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-tags

      Timeout

      The job timeout in minutes.

      public double? Timeout { get; set; }
      Property Value

      double?

      Remarks

      This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. The default is 2,880 minutes (48 hours).

      See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-timeout

      WorkerType

      The type of predefined worker that is allocated when a job runs.

      public string? WorkerType { get; set; }
      Property Value

      string

      Remarks

      Accepts a value of G.1X, G.2X, G.4X, G.8X or G.025X for Spark jobs. Accepts the value Z.2X for Ray jobs.

        See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-workertype

        Implements

        ICfnJobProps
        Back to top Generated by DocFX