Skip to content
v2.277.0

SparkUIProps Struct ​

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

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',
};
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
// 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();
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"
};
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 ​

bucketoptionalIBucketbucketoptionalIBucketbucketoptionalIBucketBucketoptionalIBucketBucketoptionalIBucket#
The bucket where the Glue job stores the logs.

Default: a new bucket will be created.

prefixoptionalstringprefixoptionalstrprefixoptionalStringPrefixoptionalstringPrefixoptional*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'