public static interface JobDefinition.Builder extends SdkPojo, CopyableBuilder<JobDefinition.Builder,JobDefinition>
| Modifier and Type | Method and Description |
|---|---|
JobDefinition.Builder |
containerOrchestrationType(OrchestrationType containerOrchestrationType)
The orchestration type of the compute environment.
|
JobDefinition.Builder |
containerOrchestrationType(String containerOrchestrationType)
The orchestration type of the compute environment.
|
default JobDefinition.Builder |
containerProperties(Consumer<ContainerProperties.Builder> containerProperties)
An object with various properties specific to Amazon ECS based jobs.
|
JobDefinition.Builder |
containerProperties(ContainerProperties containerProperties)
An object with various properties specific to Amazon ECS based jobs.
|
default JobDefinition.Builder |
eksProperties(Consumer<EksProperties.Builder> eksProperties)
An object with various properties that are specific to Amazon EKS based jobs.
|
JobDefinition.Builder |
eksProperties(EksProperties eksProperties)
An object with various properties that are specific to Amazon EKS based jobs.
|
JobDefinition.Builder |
jobDefinitionArn(String jobDefinitionArn)
The Amazon Resource Name (ARN) for the job definition.
|
JobDefinition.Builder |
jobDefinitionName(String jobDefinitionName)
The name of the job definition.
|
default JobDefinition.Builder |
nodeProperties(Consumer<NodeProperties.Builder> nodeProperties)
An object with various properties that are specific to multi-node parallel jobs.
|
JobDefinition.Builder |
nodeProperties(NodeProperties nodeProperties)
An object with various properties that are specific to multi-node parallel jobs.
|
JobDefinition.Builder |
parameters(Map<String,String> parameters)
Default parameters or parameter substitution placeholders that are set in the job definition.
|
JobDefinition.Builder |
platformCapabilities(Collection<PlatformCapability> platformCapabilities)
The platform capabilities required by the job definition.
|
JobDefinition.Builder |
platformCapabilities(PlatformCapability... platformCapabilities)
The platform capabilities required by the job definition.
|
JobDefinition.Builder |
platformCapabilitiesWithStrings(Collection<String> platformCapabilities)
The platform capabilities required by the job definition.
|
JobDefinition.Builder |
platformCapabilitiesWithStrings(String... platformCapabilities)
The platform capabilities required by the job definition.
|
JobDefinition.Builder |
propagateTags(Boolean propagateTags)
Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task.
|
default JobDefinition.Builder |
retryStrategy(Consumer<RetryStrategy.Builder> retryStrategy)
The retry strategy to use for failed jobs that are submitted with this job definition.
|
JobDefinition.Builder |
retryStrategy(RetryStrategy retryStrategy)
The retry strategy to use for failed jobs that are submitted with this job definition.
|
JobDefinition.Builder |
revision(Integer revision)
The revision of the job definition.
|
JobDefinition.Builder |
schedulingPriority(Integer schedulingPriority)
The scheduling priority of the job definition.
|
JobDefinition.Builder |
status(String status)
The status of the job definition.
|
JobDefinition.Builder |
tags(Map<String,String> tags)
The tags that are applied to the job definition.
|
default JobDefinition.Builder |
timeout(Consumer<JobTimeout.Builder> timeout)
The timeout time for jobs that are submitted with this job definition.
|
JobDefinition.Builder |
timeout(JobTimeout timeout)
The timeout time for jobs that are submitted with this job definition.
|
JobDefinition.Builder |
type(String type)
The type of job definition.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildJobDefinition.Builder jobDefinitionName(String jobDefinitionName)
The name of the job definition.
jobDefinitionName - The name of the job definition.JobDefinition.Builder jobDefinitionArn(String jobDefinitionArn)
The Amazon Resource Name (ARN) for the job definition.
jobDefinitionArn - The Amazon Resource Name (ARN) for the job definition.JobDefinition.Builder revision(Integer revision)
The revision of the job definition.
revision - The revision of the job definition.JobDefinition.Builder status(String status)
The status of the job definition.
status - The status of the job definition.JobDefinition.Builder type(String type)
The type of job definition. It's either container or multinode. If the job is run
on Fargate resources, then multinode isn't supported. For more information about multi-node
parallel jobs, see Creating a multi-node
parallel job definition in the Batch User Guide.
type - The type of job definition. It's either container or multinode. If the job
is run on Fargate resources, then multinode isn't supported. For more information about
multi-node parallel jobs, see Creating a
multi-node parallel job definition in the Batch User Guide.JobDefinition.Builder schedulingPriority(Integer schedulingPriority)
The scheduling priority of the job definition. This only affects jobs in job queues with a fair share policy. Jobs with a higher scheduling priority are scheduled before jobs with a lower scheduling priority.
schedulingPriority - The scheduling priority of the job definition. This only affects jobs in job queues with a fair share
policy. Jobs with a higher scheduling priority are scheduled before jobs with a lower scheduling
priority.JobDefinition.Builder parameters(Map<String,String> parameters)
Default parameters or parameter substitution placeholders that are set in the job definition. Parameters are
specified as a key-value pair mapping. Parameters in a SubmitJob request override any
corresponding parameter defaults from the job definition. For more information about specifying parameters,
see Job
definition parameters in the Batch User Guide.
parameters - Default parameters or parameter substitution placeholders that are set in the job definition.
Parameters are specified as a key-value pair mapping. Parameters in a SubmitJob request
override any corresponding parameter defaults from the job definition. For more information about
specifying parameters, see Job
definition parameters in the Batch User Guide.JobDefinition.Builder retryStrategy(RetryStrategy retryStrategy)
The retry strategy to use for failed jobs that are submitted with this job definition.
retryStrategy - The retry strategy to use for failed jobs that are submitted with this job definition.default JobDefinition.Builder retryStrategy(Consumer<RetryStrategy.Builder> retryStrategy)
The retry strategy to use for failed jobs that are submitted with this job definition.
This is a convenience method that creates an instance of theRetryStrategy.Builder avoiding the need
to create one manually via RetryStrategy.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to retryStrategy(RetryStrategy).
retryStrategy - a consumer that will call methods on RetryStrategy.BuilderretryStrategy(RetryStrategy)JobDefinition.Builder containerProperties(ContainerProperties containerProperties)
An object with various properties specific to Amazon ECS based jobs. Valid values are
containerProperties, eksProperties, and nodeProperties. Only one can
be specified.
containerProperties - An object with various properties specific to Amazon ECS based jobs. Valid values are
containerProperties, eksProperties, and nodeProperties. Only
one can be specified.default JobDefinition.Builder containerProperties(Consumer<ContainerProperties.Builder> containerProperties)
An object with various properties specific to Amazon ECS based jobs. Valid values are
containerProperties, eksProperties, and nodeProperties. Only one can
be specified.
ContainerProperties.Builder avoiding the
need to create one manually via ContainerProperties.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to containerProperties(ContainerProperties).
containerProperties - a consumer that will call methods on ContainerProperties.BuildercontainerProperties(ContainerProperties)JobDefinition.Builder timeout(JobTimeout timeout)
The timeout time for jobs that are submitted with this job definition. After the amount of time you specify passes, Batch terminates your jobs if they aren't finished.
timeout - The timeout time for jobs that are submitted with this job definition. After the amount of time you
specify passes, Batch terminates your jobs if they aren't finished.default JobDefinition.Builder timeout(Consumer<JobTimeout.Builder> timeout)
The timeout time for jobs that are submitted with this job definition. After the amount of time you specify passes, Batch terminates your jobs if they aren't finished.
This is a convenience method that creates an instance of theJobTimeout.Builder avoiding the need to
create one manually via JobTimeout.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to timeout(JobTimeout).
timeout - a consumer that will call methods on JobTimeout.Buildertimeout(JobTimeout)JobDefinition.Builder nodeProperties(NodeProperties nodeProperties)
An object with various properties that are specific to multi-node parallel jobs. Valid values are
containerProperties, eksProperties, and nodeProperties. Only one can
be specified.
If the job runs on Fargate resources, don't specify nodeProperties. Use
containerProperties instead.
nodeProperties - An object with various properties that are specific to multi-node parallel jobs. Valid values are
containerProperties, eksProperties, and nodeProperties. Only
one can be specified.
If the job runs on Fargate resources, don't specify nodeProperties. Use
containerProperties instead.
default JobDefinition.Builder nodeProperties(Consumer<NodeProperties.Builder> nodeProperties)
An object with various properties that are specific to multi-node parallel jobs. Valid values are
containerProperties, eksProperties, and nodeProperties. Only one can
be specified.
If the job runs on Fargate resources, don't specify nodeProperties. Use
containerProperties instead.
NodeProperties.Builder avoiding
the need to create one manually via NodeProperties.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to nodeProperties(NodeProperties).
nodeProperties - a consumer that will call methods on NodeProperties.BuildernodeProperties(NodeProperties)JobDefinition.Builder tags(Map<String,String> tags)
The tags that are applied to the job definition.
tags - The tags that are applied to the job definition.JobDefinition.Builder propagateTags(Boolean propagateTags)
Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task.
If no value is specified, the tags aren't propagated. Tags can only be propagated to the tasks when the tasks
are created. For tags with the same name, job tags are given priority over job definitions tags. If the total
number of combined tags from the job and job definition is over 50, the job is moved to the
FAILED state.
propagateTags - Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS
task. If no value is specified, the tags aren't propagated. Tags can only be propagated to the tasks
when the tasks are created. For tags with the same name, job tags are given priority over job
definitions tags. If the total number of combined tags from the job and job definition is over 50, the
job is moved to the FAILED state.JobDefinition.Builder platformCapabilitiesWithStrings(Collection<String> platformCapabilities)
The platform capabilities required by the job definition. If no value is specified, it defaults to
EC2. Jobs run on Fargate resources specify FARGATE.
platformCapabilities - The platform capabilities required by the job definition. If no value is specified, it defaults to
EC2. Jobs run on Fargate resources specify FARGATE.JobDefinition.Builder platformCapabilitiesWithStrings(String... platformCapabilities)
The platform capabilities required by the job definition. If no value is specified, it defaults to
EC2. Jobs run on Fargate resources specify FARGATE.
platformCapabilities - The platform capabilities required by the job definition. If no value is specified, it defaults to
EC2. Jobs run on Fargate resources specify FARGATE.JobDefinition.Builder platformCapabilities(Collection<PlatformCapability> platformCapabilities)
The platform capabilities required by the job definition. If no value is specified, it defaults to
EC2. Jobs run on Fargate resources specify FARGATE.
platformCapabilities - The platform capabilities required by the job definition. If no value is specified, it defaults to
EC2. Jobs run on Fargate resources specify FARGATE.JobDefinition.Builder platformCapabilities(PlatformCapability... platformCapabilities)
The platform capabilities required by the job definition. If no value is specified, it defaults to
EC2. Jobs run on Fargate resources specify FARGATE.
platformCapabilities - The platform capabilities required by the job definition. If no value is specified, it defaults to
EC2. Jobs run on Fargate resources specify FARGATE.JobDefinition.Builder eksProperties(EksProperties eksProperties)
An object with various properties that are specific to Amazon EKS based jobs. Valid values are
containerProperties, eksProperties, and nodeProperties. Only one can
be specified.
eksProperties - An object with various properties that are specific to Amazon EKS based jobs. Valid values are
containerProperties, eksProperties, and nodeProperties. Only
one can be specified.default JobDefinition.Builder eksProperties(Consumer<EksProperties.Builder> eksProperties)
An object with various properties that are specific to Amazon EKS based jobs. Valid values are
containerProperties, eksProperties, and nodeProperties. Only one can
be specified.
EksProperties.Builder avoiding the need
to create one manually via EksProperties.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to eksProperties(EksProperties).
eksProperties - a consumer that will call methods on EksProperties.BuildereksProperties(EksProperties)JobDefinition.Builder containerOrchestrationType(String containerOrchestrationType)
The orchestration type of the compute environment. The valid values are ECS (default) or
EKS.
containerOrchestrationType - The orchestration type of the compute environment. The valid values are ECS (default) or
EKS.OrchestrationType,
OrchestrationTypeJobDefinition.Builder containerOrchestrationType(OrchestrationType containerOrchestrationType)
The orchestration type of the compute environment. The valid values are ECS (default) or
EKS.
containerOrchestrationType - The orchestration type of the compute environment. The valid values are ECS (default) or
EKS.OrchestrationType,
OrchestrationTypeCopyright © 2023. All rights reserved.