# SparkUIProps

Properties for enabling Spark UI monitoring feature for Spark-based Glue jobs.

- Source: [`aws-glue/lib/jobs/spark-job.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-glue/lib/jobs/spark-job.ts#L57)
- 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_s3 as s3 } from 'aws-cdk-lib';

declare const bucket: s3.Bucket;
const sparkUIProps: glue.SparkUIProps = {
  bucket: bucket,
  prefix: 'prefix',
};
```

## Properties

- `bucket`: [IBucket](/cdk/api/v2/docs/aws-cdk-lib.aws_s3.IBucket.html) — The bucket where the Glue job stores the logs.

  **Default:** a new bucket will be created.

- `prefix`: string — The path inside the bucket (objects prefix) where the Glue job stores the logs.

  **Default:** the logs will be written at the root of the bucket

  Use format `'/foo/bar'`
