# SparkExtraCodeProps

Code props for different {@link Code} assets used by different types of Spark jobs.

- Source: [`lib/jobs/spark-job.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0-alpha.0/packages/@aws-cdk/aws-glue-alpha/lib/jobs/spark-job.ts#L16)
- Type last changed: v2.270.0-alpha.0 · 18 Sep 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as glue_alpha from '@aws-cdk/aws-glue-alpha';

declare const code: glue_alpha.Code;
const sparkExtraCodeProps: glue_alpha.SparkExtraCodeProps = {
  extraFiles: [code],
  extraJars: [code],
  extraJarsFirst: false,
  extraPythonFiles: [code],
};
```

## Properties

- `extraFiles`: [Code](/cdk/api/v2/docs/@aws-cdk_aws-glue-alpha.Code.html)[] — Additional files, such as configuration files that AWS Glue copies to the working directory of your script before executing it.

  **Default:** no extra files specified.

- `extraJars`: [Code](/cdk/api/v2/docs/@aws-cdk_aws-glue-alpha.Code.html)[] — Extra Jars S3 URL (optional) S3 URL where additional jar dependencies are located.

  **Default:** no extra jar files

- `extraJarsFirst`: boolean — Setting this value to true prioritizes the customer's extra JAR files in the classpath.

  **Default:** false - priority is not given to user-provided jars

- `extraPythonFiles`: [Code](/cdk/api/v2/docs/@aws-cdk_aws-glue-alpha.Code.html)[] — Extra Python Files S3 URL (optional) S3 URL where additional python dependencies are located.

  **Default:** no extra files
