Class JobState.Builder

  • Enclosing class:
    JobState

    public static final class JobState.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
      • Builder

        public Builder​(JobState defaults)
    • Method Detail

      • arn

        public JobState.Builder arn​(@Nullable
                                    com.pulumi.core.Output<java.lang.String> arn)
        Parameters:
        arn - ARN of Glue Job
        Returns:
        builder
      • arn

        public JobState.Builder arn​(java.lang.String arn)
        Parameters:
        arn - ARN of Glue Job
        Returns:
        builder
      • command

        public JobState.Builder command​(@Nullable
                                        com.pulumi.core.Output<JobCommandArgs> command)
        Parameters:
        command - Command of the job. Defined below.
        Returns:
        builder
      • connections

        public JobState.Builder connections​(@Nullable
                                            com.pulumi.core.Output<java.util.List<java.lang.String>> connections)
        Parameters:
        connections - List of connections used for this job.
        Returns:
        builder
      • connections

        public JobState.Builder connections​(java.util.List<java.lang.String> connections)
        Parameters:
        connections - List of connections used for this job.
        Returns:
        builder
      • connections

        public JobState.Builder connections​(java.lang.String... connections)
        Parameters:
        connections - List of connections used for this job.
        Returns:
        builder
      • defaultArguments

        public JobState.Builder defaultArguments​(@Nullable
                                                 com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> defaultArguments)
        Parameters:
        defaultArguments - Map of default arguments for this job. You can specify arguments here that your own job-execution script consumes, as well as arguments that AWS Glue itself consumes. For information about how to specify and consume your own Job arguments, see the [Calling AWS Glue APIs in Python](http://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-python-calling.html) topic in the developer guide. For information about the key-value pairs that AWS Glue consumes to set up your job, see the [Special Parameters Used by AWS Glue](http://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-python-glue-arguments.html) topic in the developer guide.
        Returns:
        builder
      • defaultArguments

        public JobState.Builder defaultArguments​(java.util.Map<java.lang.String,​java.lang.String> defaultArguments)
        Parameters:
        defaultArguments - Map of default arguments for this job. You can specify arguments here that your own job-execution script consumes, as well as arguments that AWS Glue itself consumes. For information about how to specify and consume your own Job arguments, see the [Calling AWS Glue APIs in Python](http://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-python-calling.html) topic in the developer guide. For information about the key-value pairs that AWS Glue consumes to set up your job, see the [Special Parameters Used by AWS Glue](http://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-python-glue-arguments.html) topic in the developer guide.
        Returns:
        builder
      • description

        public JobState.Builder description​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> description)
        Parameters:
        description - Description of the job.
        Returns:
        builder
      • description

        public JobState.Builder description​(java.lang.String description)
        Parameters:
        description - Description of the job.
        Returns:
        builder
      • executionClass

        public JobState.Builder executionClass​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> executionClass)
        Parameters:
        executionClass - Execution class for the job. The standard execution class is ideal for time-sensitive workloads that require fast job startup and dedicated resources. Valid value: `FLEX`, `STANDARD`.
        Returns:
        builder
      • executionClass

        public JobState.Builder executionClass​(java.lang.String executionClass)
        Parameters:
        executionClass - Execution class for the job. The standard execution class is ideal for time-sensitive workloads that require fast job startup and dedicated resources. Valid value: `FLEX`, `STANDARD`.
        Returns:
        builder
      • executionProperty

        public JobState.Builder executionProperty​(@Nullable
                                                  com.pulumi.core.Output<JobExecutionPropertyArgs> executionProperty)
        Parameters:
        executionProperty - Execution property of the job. Defined below.
        Returns:
        builder
      • executionProperty

        public JobState.Builder executionProperty​(JobExecutionPropertyArgs executionProperty)
        Parameters:
        executionProperty - Execution property of the job. Defined below.
        Returns:
        builder
      • glueVersion

        public JobState.Builder glueVersion​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> glueVersion)
        Parameters:
        glueVersion - Version of glue to use, for example "1.0". Ray jobs should set this to 4.0 or greater. For information about available versions, see the [AWS Glue Release Notes](https://docs.aws.amazon.com/glue/latest/dg/release-notes.html).
        Returns:
        builder
      • glueVersion

        public JobState.Builder glueVersion​(java.lang.String glueVersion)
        Parameters:
        glueVersion - Version of glue to use, for example "1.0". Ray jobs should set this to 4.0 or greater. For information about available versions, see the [AWS Glue Release Notes](https://docs.aws.amazon.com/glue/latest/dg/release-notes.html).
        Returns:
        builder
      • jobMode

        public JobState.Builder jobMode​(@Nullable
                                        com.pulumi.core.Output<java.lang.String> jobMode)
        Parameters:
        jobMode - How a job was created. Valid values are `SCRIPT`, `NOTEBOOK` and `VISUAL`.
        Returns:
        builder
      • jobMode

        public JobState.Builder jobMode​(java.lang.String jobMode)
        Parameters:
        jobMode - How a job was created. Valid values are `SCRIPT`, `NOTEBOOK` and `VISUAL`.
        Returns:
        builder
      • jobRunQueuingEnabled

        public JobState.Builder jobRunQueuingEnabled​(@Nullable
                                                     com.pulumi.core.Output<java.lang.Boolean> jobRunQueuingEnabled)
        Parameters:
        jobRunQueuingEnabled - 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.
        Returns:
        builder
      • jobRunQueuingEnabled

        public JobState.Builder jobRunQueuingEnabled​(java.lang.Boolean jobRunQueuingEnabled)
        Parameters:
        jobRunQueuingEnabled - 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.
        Returns:
        builder
      • maintenanceWindow

        public JobState.Builder maintenanceWindow​(@Nullable
                                                  com.pulumi.core.Output<java.lang.String> maintenanceWindow)
        Parameters:
        maintenanceWindow - Day of the week and hour for the maintenance window for streaming jobs.
        Returns:
        builder
      • maintenanceWindow

        public JobState.Builder maintenanceWindow​(java.lang.String maintenanceWindow)
        Parameters:
        maintenanceWindow - Day of the week and hour for the maintenance window for streaming jobs.
        Returns:
        builder
      • maxCapacity

        public JobState.Builder maxCapacity​(@Nullable
                                            com.pulumi.core.Output<java.lang.Double> maxCapacity)
        Parameters:
        maxCapacity - Maximum number of AWS Glue data processing units (DPUs) that can be allocated when this job runs. `Required` when `pythonshell` is set, accept either `0.0625` or `1.0`. Use `numberOfWorkers` and `workerType` arguments instead with `glueVersion` `2.0` and above.
        Returns:
        builder
      • maxCapacity

        public JobState.Builder maxCapacity​(java.lang.Double maxCapacity)
        Parameters:
        maxCapacity - Maximum number of AWS Glue data processing units (DPUs) that can be allocated when this job runs. `Required` when `pythonshell` is set, accept either `0.0625` or `1.0`. Use `numberOfWorkers` and `workerType` arguments instead with `glueVersion` `2.0` and above.
        Returns:
        builder
      • maxRetries

        public JobState.Builder maxRetries​(@Nullable
                                           com.pulumi.core.Output<java.lang.Integer> maxRetries)
        Parameters:
        maxRetries - Maximum number of times to retry this job if it fails.
        Returns:
        builder
      • maxRetries

        public JobState.Builder maxRetries​(java.lang.Integer maxRetries)
        Parameters:
        maxRetries - Maximum number of times to retry this job if it fails.
        Returns:
        builder
      • name

        public JobState.Builder name​(@Nullable
                                     com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - Name you assign to this job. It must be unique in your account.
        Returns:
        builder
      • name

        public JobState.Builder name​(java.lang.String name)
        Parameters:
        name - Name you assign to this job. It must be unique in your account.
        Returns:
        builder
      • nonOverridableArguments

        public JobState.Builder nonOverridableArguments​(@Nullable
                                                        com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> nonOverridableArguments)
        Parameters:
        nonOverridableArguments - Non-overridable arguments for this job, specified as name-value pairs.
        Returns:
        builder
      • nonOverridableArguments

        public JobState.Builder nonOverridableArguments​(java.util.Map<java.lang.String,​java.lang.String> nonOverridableArguments)
        Parameters:
        nonOverridableArguments - Non-overridable arguments for this job, specified as name-value pairs.
        Returns:
        builder
      • notificationProperty

        public JobState.Builder notificationProperty​(@Nullable
                                                     com.pulumi.core.Output<JobNotificationPropertyArgs> notificationProperty)
        Parameters:
        notificationProperty - Notification property of the job. Defined below.
        Returns:
        builder
      • notificationProperty

        public JobState.Builder notificationProperty​(JobNotificationPropertyArgs notificationProperty)
        Parameters:
        notificationProperty - Notification property of the job. Defined below.
        Returns:
        builder
      • numberOfWorkers

        public JobState.Builder numberOfWorkers​(@Nullable
                                                com.pulumi.core.Output<java.lang.Integer> numberOfWorkers)
        Parameters:
        numberOfWorkers - Number of workers of a defined workerType that are allocated when a job runs.
        Returns:
        builder
      • numberOfWorkers

        public JobState.Builder numberOfWorkers​(java.lang.Integer numberOfWorkers)
        Parameters:
        numberOfWorkers - Number of workers of a defined workerType that are allocated when a job runs.
        Returns:
        builder
      • region

        public JobState.Builder region​(@Nullable
                                       com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • region

        public JobState.Builder region​(java.lang.String region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • roleArn

        public JobState.Builder roleArn​(@Nullable
                                        com.pulumi.core.Output<java.lang.String> roleArn)
        Parameters:
        roleArn - ARN of the IAM role associated with this job.
        Returns:
        builder
      • roleArn

        public JobState.Builder roleArn​(java.lang.String roleArn)
        Parameters:
        roleArn - ARN of the IAM role associated with this job.
        Returns:
        builder
      • securityConfiguration

        public JobState.Builder securityConfiguration​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> securityConfiguration)
        Parameters:
        securityConfiguration - Name of the Security Configuration to be associated with the job.
        Returns:
        builder
      • securityConfiguration

        public JobState.Builder securityConfiguration​(java.lang.String securityConfiguration)
        Parameters:
        securityConfiguration - Name of the Security Configuration to be associated with the job.
        Returns:
        builder
      • sourceControlDetails

        public JobState.Builder sourceControlDetails​(@Nullable
                                                     com.pulumi.core.Output<JobSourceControlDetailsArgs> sourceControlDetails)
        Parameters:
        sourceControlDetails - Details for a source control configuration for a job, allowing synchronization of job artifacts to or from a remote repository. Defined below.
        Returns:
        builder
      • sourceControlDetails

        public JobState.Builder sourceControlDetails​(JobSourceControlDetailsArgs sourceControlDetails)
        Parameters:
        sourceControlDetails - Details for a source control configuration for a job, allowing synchronization of job artifacts to or from a remote repository. Defined below.
        Returns:
        builder
      • tags

        public JobState.Builder tags​(@Nullable
                                     com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        tags - Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tags

        public JobState.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        tags - Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tagsAll

        public JobState.Builder tagsAll​(@Nullable
                                        com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll)
        Parameters:
        tagsAll - Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder
      • tagsAll

        public JobState.Builder tagsAll​(java.util.Map<java.lang.String,​java.lang.String> tagsAll)
        Parameters:
        tagsAll - Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder
      • timeout

        public JobState.Builder timeout​(@Nullable
                                        com.pulumi.core.Output<java.lang.Integer> timeout)
        Parameters:
        timeout - Job timeout in minutes. The default is 2880 minutes (48 hours) for `glueetl` and `pythonshell` jobs, and 0 (unlimited) for `gluestreaming` jobs. Leave this attribute argument unconfigured for `glueray` jobs.
        Returns:
        builder
      • timeout

        public JobState.Builder timeout​(java.lang.Integer timeout)
        Parameters:
        timeout - Job timeout in minutes. The default is 2880 minutes (48 hours) for `glueetl` and `pythonshell` jobs, and 0 (unlimited) for `gluestreaming` jobs. Leave this attribute argument unconfigured for `glueray` jobs.
        Returns:
        builder
      • workerType

        public JobState.Builder workerType​(@Nullable
                                           com.pulumi.core.Output<java.lang.String> workerType)
        Parameters:
        workerType - Type of predefined worker that is allocated when a job runs. Valid values: `Standard`, `G.1X`, `G.2X`, `G.025X`, `G.4X`, `G.8X`, `G.12X`, `G.16X`, `R.1X`, `R.2X`, `R.4X`, `R.8X`, `Z.2X` (Ray jobs). See the [AWS documentation](https://docs.aws.amazon.com/glue/latest/dg/worker-types.html) for details.
        Returns:
        builder
      • workerType

        public JobState.Builder workerType​(java.lang.String workerType)
        Parameters:
        workerType - Type of predefined worker that is allocated when a job runs. Valid values: `Standard`, `G.1X`, `G.2X`, `G.025X`, `G.4X`, `G.8X`, `G.12X`, `G.16X`, `R.1X`, `R.2X`, `R.4X`, `R.8X`, `Z.2X` (Ray jobs). See the [AWS documentation](https://docs.aws.amazon.com/glue/latest/dg/worker-types.html) for details.
        Returns:
        builder