Class ScalaSparkStreamingJobProps.Builder
java.lang.Object
software.amazon.awscdk.services.glue.alpha.ScalaSparkStreamingJobProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ScalaSparkStreamingJobProps>
- Enclosing interface:
ScalaSparkStreamingJobProps
@Stability(Deprecated)
@Deprecated
public static final class ScalaSparkStreamingJobProps.Builder
extends Object
implements software.amazon.jsii.Builder<ScalaSparkStreamingJobProps>
Deprecated.
A builder for
ScalaSparkStreamingJobProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Deprecated.Deprecated.connections(List<? extends IConnection> connections) Deprecated.continuousLogging(ContinuousLoggingProps continuousLogging) Deprecated.defaultArguments(Map<String, String> defaultArguments) Deprecated.description(String description) Deprecated.enableMetrics(Boolean enableMetrics) Deprecated.enableObservabilityMetrics(Boolean enableObservabilityMetrics) Deprecated.extraFiles(List<? extends Code> extraFiles) Deprecated.Deprecated.extraJarsFirst(Boolean extraJarsFirst) Deprecated.glueVersion(GlueVersion glueVersion) Deprecated.Deprecated.jobRunQueuingEnabled(Boolean jobRunQueuingEnabled) Deprecated.maxConcurrentRuns(Number maxConcurrentRuns) Deprecated.maxRetries(Number maxRetries) Deprecated.Deprecated.Deprecated.securityConfiguration(ISecurityConfiguration securityConfiguration) Deprecated.sparkUi(SparkUIProps sparkUi) Deprecated.Deprecated.Deprecated.workerConfiguration(WorkerConfiguration workerConfiguration) Deprecated.
-
Constructor Details
-
Builder
public Builder()Deprecated.
-
-
Method Details
-
className
@Stability(Deprecated) @Deprecated public ScalaSparkStreamingJobProps.Builder className(String className) Deprecated.Sets the value ofScalaSparkStreamingJobProps.getClassName()- Parameters:
className- Class name (required for Scala scripts) Package and class name for the entry point of Glue job execution for Java scripts. This parameter is required.- Returns:
this
-
extraFiles
@Stability(Deprecated) @Deprecated public ScalaSparkStreamingJobProps.Builder extraFiles(List<? extends Code> extraFiles) Deprecated.Sets the value ofScalaSparkStreamingJobProps.getExtraFiles()- Parameters:
extraFiles- Additional files, such as configuration files that AWS Glue copies to the working directory of your script before executing it.- Returns:
this
-
extraJars
@Stability(Deprecated) @Deprecated public ScalaSparkStreamingJobProps.Builder extraJars(List<? extends Code> extraJars) Deprecated.Sets the value ofScalaSparkStreamingJobProps.getExtraJars()- Parameters:
extraJars- Extra Jars S3 URL (optional) S3 URL where additional jar dependencies are located.- Returns:
this
-
extraJarsFirst
@Stability(Deprecated) @Deprecated public ScalaSparkStreamingJobProps.Builder extraJarsFirst(Boolean extraJarsFirst) Deprecated.Sets the value ofScalaSparkStreamingJobProps.getExtraJarsFirst()- Parameters:
extraJarsFirst- Setting this value to true prioritizes the customer's extra JAR files in the classpath.- Returns:
this
-
jobRunQueuingEnabled
@Stability(Deprecated) @Deprecated public ScalaSparkStreamingJobProps.Builder jobRunQueuingEnabled(Boolean jobRunQueuingEnabled) Deprecated.Sets the value ofScalaSparkStreamingJobProps.getJobRunQueuingEnabled()- Parameters:
jobRunQueuingEnabled- Specifies whether job run queuing is enabled for the job runs for this job. A value of true means job run queuing is enabled for the job runs. If false or not populated, the job runs will not be considered for queueing. If this field does not match the value set in the job run, then the value from the job run field will be used. This property must be set to false for flex jobs. If this property is enabled, maxRetries must be set to zero.- Returns:
this
-
enableMetrics
@Stability(Deprecated) @Deprecated public ScalaSparkStreamingJobProps.Builder enableMetrics(Boolean enableMetrics) Deprecated.Sets the value ofSparkJobProps.getEnableMetrics()- Parameters:
enableMetrics- Enable profiling metrics for the Glue job. When enabled, adds '--enable-metrics' to job arguments.- Returns:
this
-
enableObservabilityMetrics
@Stability(Deprecated) @Deprecated public ScalaSparkStreamingJobProps.Builder enableObservabilityMetrics(Boolean enableObservabilityMetrics) Deprecated.Sets the value ofSparkJobProps.getEnableObservabilityMetrics()- Parameters:
enableObservabilityMetrics- Enable observability metrics for the Glue job. When enabled, adds '--enable-observability-metrics': 'true' to job arguments.- Returns:
this
-
sparkUi
@Stability(Deprecated) @Deprecated public ScalaSparkStreamingJobProps.Builder sparkUi(SparkUIProps sparkUi) Deprecated.Sets the value ofinvalid reference
ScalaSparkStreamingJobProps#getSparkUi- Parameters:
sparkUi- Enables the Spark UI debugging and monitoring with the specified props.- Returns:
this
-
workerConfiguration
@Stability(Deprecated) @Deprecated public ScalaSparkStreamingJobProps.Builder workerConfiguration(WorkerConfiguration workerConfiguration) Deprecated.Sets the value ofSparkJobProps.getWorkerConfiguration()- Parameters:
workerConfiguration- The worker type and the number of workers allocated when a job runs.- Returns:
this
-
role
Deprecated.Sets the value ofJobProps.getRole()- Parameters:
role- IAM Role (required) IAM Role to use for Glue job execution Must be specified by the developer because the L2 doesn't have visibility into the actions the script(s) takes during the job execution The role must trust the Glue service principal (glue.amazonaws.com) and be granted sufficient permissions. This parameter is required.- Returns:
this
-
script
Deprecated.Sets the value ofJobProps.getScript()- Parameters:
script- Script Code Location (required) Script to run when the Glue job executes. This parameter is required. Can be uploaded from the local directory structure using fromAsset or referenced via S3 location using fromBucket- Returns:
this
-
connections
@Stability(Deprecated) @Deprecated public ScalaSparkStreamingJobProps.Builder connections(List<? extends IConnection> connections) Deprecated.Sets the value ofJobProps.getConnections()- Parameters:
connections- Connections (optional) List of connections to use for this Glue job Connections are used to connect to other AWS Service or resources within a VPC.- Returns:
this
-
continuousLogging
@Stability(Deprecated) @Deprecated public ScalaSparkStreamingJobProps.Builder continuousLogging(ContinuousLoggingProps continuousLogging) Deprecated.Sets the value ofJobProps.getContinuousLogging()- Parameters:
continuousLogging- Enables continuous logging with the specified props.- Returns:
this
-
defaultArguments
@Stability(Deprecated) @Deprecated public ScalaSparkStreamingJobProps.Builder defaultArguments(Map<String, String> defaultArguments) Deprecated.Sets the value ofJobProps.getDefaultArguments()- Parameters:
defaultArguments- Default Arguments (optional) The default arguments for every run of this Glue job, specified as name-value pairs. This map is the escape hatch for Glue job arguments that this construct does not model. It MUST NOT be used to set arguments that already have a dedicated prop — configure those through the corresponding prop instead (continuousLogging,enableMetrics,enableObservabilityMetrics,sparkUI,className,extraJars,extraJarsFirst,extraPythonFiles,extraFiles). Passing a construct-managed argument (e.g.--enable-continuous-cloudwatch-log,--enable-metrics,--enable-spark-ui,--job-language) or a Glue-reserved argument (--debug,--mode,--JOB_NAME,--endpoint) here throws at synthesis time, so there is exactly one way to express each intent.Also note that these are emitted verbatim into the CloudFormation template, so avoid placing secrets here in plaintext. Pass secrets to the job at runtime through AWS Secrets Manager instead. A synthesis-time warning is emitted when an argument key looks like a credential and holds a plaintext literal.
- Returns:
this
-
description
@Stability(Deprecated) @Deprecated public ScalaSparkStreamingJobProps.Builder description(String description) Deprecated.Sets the value ofJobProps.getDescription()- Parameters:
description- Description (optional) Developer-specified description of the Glue job.- Returns:
this
-
glueVersion
@Stability(Deprecated) @Deprecated public ScalaSparkStreamingJobProps.Builder glueVersion(GlueVersion glueVersion) Deprecated.Sets the value ofJobProps.getGlueVersion()- Parameters:
glueVersion- Glue Version The version of Glue to use to execute this job.- Returns:
this
-
jobName
@Stability(Deprecated) @Deprecated public ScalaSparkStreamingJobProps.Builder jobName(String jobName) Deprecated.Sets the value ofJobProps.getJobName()- Parameters:
jobName- Name of the Glue job (optional) Developer-specified name of the Glue job.- Returns:
this
-
maxConcurrentRuns
@Stability(Deprecated) @Deprecated public ScalaSparkStreamingJobProps.Builder maxConcurrentRuns(Number maxConcurrentRuns) Deprecated.Sets the value ofJobProps.getMaxConcurrentRuns()- Parameters:
maxConcurrentRuns- Max Concurrent Runs (optional) The maximum number of runs this Glue job can concurrently run. An error is returned when this threshold is reached. The maximum value you can specify is controlled by a service limit.- Returns:
this
-
maxRetries
@Stability(Deprecated) @Deprecated public ScalaSparkStreamingJobProps.Builder maxRetries(Number maxRetries) Deprecated.Sets the value ofJobProps.getMaxRetries()- Parameters:
maxRetries- Max Retries (optional) Maximum number of retry attempts Glue performs if the job fails.- Returns:
this
-
securityConfiguration
@Stability(Deprecated) @Deprecated public ScalaSparkStreamingJobProps.Builder securityConfiguration(ISecurityConfiguration securityConfiguration) Deprecated.Sets the value ofJobProps.getSecurityConfiguration()- Parameters:
securityConfiguration- Security Configuration (optional) Defines the encryption options for the Glue job.- Returns:
this
-
tags
@Stability(Deprecated) @Deprecated public ScalaSparkStreamingJobProps.Builder tags(Map<String, String> tags) Deprecated.Sets the value ofJobProps.getTags()- Parameters:
tags- Tags (optional) A list of key:value pairs of tags to apply to this Glue job resources.- Returns:
this
-
timeout
@Stability(Deprecated) @Deprecated public ScalaSparkStreamingJobProps.Builder timeout(Duration timeout) Deprecated.Sets the value ofJobProps.getTimeout()- Parameters:
timeout- Timeout (optional) The maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. Specified in minutes.- Returns:
this
-
build
Deprecated.Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ScalaSparkStreamingJobProps>- Returns:
- a new instance of
ScalaSparkStreamingJobProps - Throws:
NullPointerException- if any required attribute was not provided
-