Class JobProps.Builder

java.lang.Object
software.amazon.awscdk.services.glue.alpha.JobProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<JobProps>
Enclosing interface:
JobProps

@Stability(Experimental) public static final class JobProps.Builder extends Object implements software.amazon.jsii.Builder<JobProps>
A builder for JobProps
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • executable

      @Stability(Experimental) public JobProps.Builder executable(JobExecutable executable)
      Sets the value of JobProps.getExecutable()
      Parameters:
      executable - The job's executable properties. This parameter is required.
      Returns:
      this
    • connections

      @Stability(Experimental) public JobProps.Builder connections(List<? extends IConnection> connections)
      Sets the value of JobProps.getConnections()
      Parameters:
      connections - The Connections used for this job. Connections are used to connect to other AWS Service or resources within a VPC.
      Returns:
      this
    • continuousLogging

      @Stability(Experimental) public JobProps.Builder continuousLogging(ContinuousLoggingProps continuousLogging)
      Parameters:
      continuousLogging - Enables continuous logging with the specified props.
      Returns:
      this
    • defaultArguments

      @Stability(Experimental) public JobProps.Builder defaultArguments(Map<String,String> defaultArguments)
      Parameters:
      defaultArguments - The default arguments for this job, specified as name-value pairs.
      Returns:
      this
    • description

      @Stability(Experimental) public JobProps.Builder description(String description)
      Sets the value of JobProps.getDescription()
      Parameters:
      description - The description of the job.
      Returns:
      this
    • enableProfilingMetrics

      @Stability(Experimental) public JobProps.Builder enableProfilingMetrics(Boolean enableProfilingMetrics)
      Parameters:
      enableProfilingMetrics - Enables the collection of metrics for job profiling. Equivalent to a job parameter --enable-metrics.
      Returns:
      this
    • executionClass

      @Stability(Experimental) public JobProps.Builder executionClass(ExecutionClass executionClass)
      Parameters:
      executionClass - The ExecutionClass whether the job is run with a standard or flexible execution class.
      Returns:
      this
    • jobName

      @Stability(Experimental) public JobProps.Builder jobName(String jobName)
      Sets the value of JobProps.getJobName()
      Parameters:
      jobName - The name of the job.
      Returns:
      this
    • jobRunQueuingEnabled

      @Stability(Experimental) public JobProps.Builder jobRunQueuingEnabled(Boolean jobRunQueuingEnabled)
      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.
      Returns:
      this
    • maxCapacity

      @Stability(Experimental) public JobProps.Builder maxCapacity(Number maxCapacity)
      Sets the value of JobProps.getMaxCapacity()
      Parameters:
      maxCapacity - The number of AWS Glue data processing units (DPUs) that can be allocated when this job runs. Cannot be used for Glue version 2.0 and later - workerType and workerCount should be used instead.
      Returns:
      this
    • maxConcurrentRuns

      @Stability(Experimental) public JobProps.Builder maxConcurrentRuns(Number maxConcurrentRuns)
      Parameters:
      maxConcurrentRuns - The maximum number of concurrent runs allowed for the job. 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(Experimental) public JobProps.Builder maxRetries(Number maxRetries)
      Sets the value of JobProps.getMaxRetries()
      Parameters:
      maxRetries - The maximum number of times to retry this job after a job run fails.
      Returns:
      this
    • notifyDelayAfter

      @Stability(Experimental) public JobProps.Builder notifyDelayAfter(Duration notifyDelayAfter)
      Parameters:
      notifyDelayAfter - The number of minutes to wait after a job run starts, before sending a job run delay notification.
      Returns:
      this
    • role

      @Stability(Experimental) public JobProps.Builder role(IRole role)
      Sets the value of JobProps.getRole()
      Parameters:
      role - The IAM role assumed by Glue to run this job. If providing a custom role, it needs to trust the Glue service principal (glue.amazonaws.com) and be granted sufficient permissions.
      Returns:
      this
    • securityConfiguration

      @Stability(Experimental) public JobProps.Builder securityConfiguration(ISecurityConfiguration securityConfiguration)
      Parameters:
      securityConfiguration - The SecurityConfiguration to use for this job.
      Returns:
      this
    • sparkUi

      @Stability(Experimental) public JobProps.Builder sparkUi(SparkUIProps sparkUi)
      Sets the value of
      invalid @link
      JobProps#getSparkUi
      Parameters:
      sparkUi - Enables the Spark UI debugging and monitoring with the specified props.
      Returns:
      this
    • tags

      @Stability(Experimental) public JobProps.Builder tags(Map<String,String> tags)
      Sets the value of JobProps.getTags()
      Parameters:
      tags - The tags to add to the resources on which the job runs.
      Returns:
      this
    • timeout

      @Stability(Experimental) public JobProps.Builder timeout(Duration timeout)
      Sets the value of JobProps.getTimeout()
      Parameters:
      timeout - The maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status.
      Returns:
      this
    • workerCount

      @Stability(Experimental) public JobProps.Builder workerCount(Number workerCount)
      Sets the value of JobProps.getWorkerCount()
      Parameters:
      workerCount - The number of workers of a defined WorkerType that are allocated when a job runs.
      Returns:
      this
    • workerType

      @Stability(Experimental) public JobProps.Builder workerType(WorkerType workerType)
      Sets the value of JobProps.getWorkerType()
      Parameters:
      workerType - The type of predefined worker that is allocated when a job runs.
      Returns:
      this
    • build

      @Stability(Experimental) public JobProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<JobProps>
      Returns:
      a new instance of JobProps
      Throws:
      NullPointerException - if any required attribute was not provided