# SparkUILoggingLocation

The Spark UI logging location.

- 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#L80)
- 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 sparkUILoggingLocation: glue.SparkUILoggingLocation = {
  bucket: bucket,

  // the properties below are optional
  prefix: 'prefix',
};
```

## Properties

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

- `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
