# JobAttributes

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.

- Source: [`aws-glue/lib/jobs/job.ts`](https://github.com/aws/aws-cdk/blob/v2.276.0/packages/aws-cdk-lib/aws-glue/lib/jobs/job.ts#L299)
- Type last changed: v2.270.0 · 17 Sep 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_glue as glue } from 'aws-cdk-lib';
import { aws_iam as iam } from 'aws-cdk-lib';

declare const role: iam.Role;
const jobAttributes: glue.JobAttributes = {
  jobName: 'jobName',

  // the properties below are optional
  role: role,
};
```

## Properties

- `jobName`: string (required) — The name of the job.

- `role`: [IRole](/cdk/api/v2/docs/aws-cdk-lib.aws_iam.IRole.html) = undefined — The IAM role assumed by Glue to run this job.
