CfnJobProps

class aws_cdk.aws_glue.CfnJobProps(*, allocated_capacity=None, command, connections=None, default_arguments=None, description=None, execution_property=None, glue_version=None, log_uri=None, max_capacity=None, max_retries=None, name=None, notification_property=None, number_of_workers=None, role, security_configuration=None, tags=None, timeout=None, worker_type=None)

Bases: object

Properties for defining a AWS::Glue::Job.

Parameters
  • allocated_capacity (Union[int, float, None]) – AWS::Glue::Job.AllocatedCapacity.

  • command (Union[IResolvable, JobCommandProperty]) – AWS::Glue::Job.Command.

  • connections (Union[IResolvable, ConnectionsListProperty, None]) – AWS::Glue::Job.Connections.

  • default_arguments (Optional[Any]) – AWS::Glue::Job.DefaultArguments.

  • description (Optional[str]) – AWS::Glue::Job.Description.

  • execution_property (Union[IResolvable, ExecutionPropertyProperty, None]) – AWS::Glue::Job.ExecutionProperty.

  • glue_version (Optional[str]) – AWS::Glue::Job.GlueVersion.

  • log_uri (Optional[str]) – AWS::Glue::Job.LogUri.

  • max_capacity (Union[int, float, None]) – AWS::Glue::Job.MaxCapacity.

  • max_retries (Union[int, float, None]) – AWS::Glue::Job.MaxRetries.

  • name (Optional[str]) – AWS::Glue::Job.Name.

  • notification_property (Union[IResolvable, NotificationPropertyProperty, None]) – AWS::Glue::Job.NotificationProperty.

  • number_of_workers (Union[int, float, None]) – AWS::Glue::Job.NumberOfWorkers.

  • role (str) – AWS::Glue::Job.Role.

  • security_configuration (Optional[str]) – AWS::Glue::Job.SecurityConfiguration.

  • tags (Optional[Any]) – AWS::Glue::Job.Tags.

  • timeout (Union[int, float, None]) – AWS::Glue::Job.Timeout.

  • worker_type (Optional[str]) – AWS::Glue::Job.WorkerType.

Link

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

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_glue as glue

# default_arguments is of type object
# tags is of type object

cfn_job_props = glue.CfnJobProps(
    command=glue.CfnJob.JobCommandProperty(
        name="name",
        python_version="pythonVersion",
        script_location="scriptLocation"
    ),
    role="role",

    # the properties below are optional
    allocated_capacity=123,
    connections=glue.CfnJob.ConnectionsListProperty(
        connections=["connections"]
    ),
    default_arguments=default_arguments,
    description="description",
    execution_property=glue.CfnJob.ExecutionPropertyProperty(
        max_concurrent_runs=123
    ),
    glue_version="glueVersion",
    log_uri="logUri",
    max_capacity=123,
    max_retries=123,
    name="name",
    notification_property=glue.CfnJob.NotificationPropertyProperty(
        notify_delay_after=123
    ),
    number_of_workers=123,
    security_configuration="securityConfiguration",
    tags=tags,
    timeout=123,
    worker_type="workerType"
)

Attributes

allocated_capacity

AWS::Glue::Job.AllocatedCapacity.

Link

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

Return type

Union[int, float, None]

command

AWS::Glue::Job.Command.

Link

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

Return type

Union[IResolvable, JobCommandProperty]

connections

AWS::Glue::Job.Connections.

Link

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

Return type

Union[IResolvable, ConnectionsListProperty, None]

default_arguments

AWS::Glue::Job.DefaultArguments.

Link

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

Return type

Any

description

AWS::Glue::Job.Description.

Link

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

Return type

Optional[str]

execution_property

AWS::Glue::Job.ExecutionProperty.

Link

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

Return type

Union[IResolvable, ExecutionPropertyProperty, None]

glue_version

AWS::Glue::Job.GlueVersion.

Link

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

Return type

Optional[str]

log_uri

AWS::Glue::Job.LogUri.

Link

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

Return type

Optional[str]

max_capacity

AWS::Glue::Job.MaxCapacity.

Link

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

Return type

Union[int, float, None]

max_retries

AWS::Glue::Job.MaxRetries.

Link

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

Return type

Union[int, float, None]

name

AWS::Glue::Job.Name.

Link

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

Return type

Optional[str]

notification_property

AWS::Glue::Job.NotificationProperty.

Link

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

Return type

Union[IResolvable, NotificationPropertyProperty, None]

number_of_workers

AWS::Glue::Job.NumberOfWorkers.

Link

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

Return type

Union[int, float, None]

role

AWS::Glue::Job.Role.

Link

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

Return type

str

security_configuration

AWS::Glue::Job.SecurityConfiguration.

Link

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

Return type

Optional[str]

tags

AWS::Glue::Job.Tags.

Link

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

Return type

Any

timeout

AWS::Glue::Job.Timeout.

Link

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

Return type

Union[int, float, None]

worker_type

AWS::Glue::Job.WorkerType.

Link

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

Return type

Optional[str]