JobAttributes

class aws_cdk.aws_glue.JobAttributes(*, job_name, role=None)

Bases: object

A subset of Job attributes are required for importing an existing job into a CDK project.

This is only used when using fromJobAttributes to identify and reference the existing job.

Parameters:
  • job_name (str) – The name of the job.

  • role (Optional[IRole]) – The IAM role assumed by Glue to run this job. Default: - undefined

ExampleMetadata:

fixture=_generated

Example:

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

# role: iam.Role

job_attributes = glue.JobAttributes(
    job_name="jobName",

    # the properties below are optional
    role=role
)

Attributes

job_name

The name of the job.

role

The IAM role assumed by Glue to run this job.

Default:
  • undefined