# 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.278.0/packages/aws-cdk-lib/aws-glue/lib/jobs/spark-job.ts#L57)
- Type last changed: v2.270.0 · 17 Sep 2026

## Example

TypeScript:

```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',
};
```

Python:

```python
# 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_s3 as s3

# bucket: s3.Bucket

spark_ui_props = glue.SparkUIProps(
    bucket=bucket,
    prefix="prefix"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.glue.*;
import software.amazon.awscdk.services.s3.*;

Bucket bucket;

SparkUIProps sparkUIProps = SparkUIProps.builder()
        .bucket(bucket)
        .prefix("prefix")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Glue;
using Amazon.CDK.AWS.S3;

Bucket bucket;

var sparkUIProps = new SparkUIProps {
    Bucket = bucket,
    Prefix = "prefix"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"

var bucket Bucket

sparkUIProps := &SparkUIProps{
	Bucket: bucket,
	Prefix: jsii.String("prefix"),
}
```

## Properties

- `bucket`: [IBucket](https://docs.aws.amazon.com/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'`
