Class CfnJobDefinition.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobDefinition>
- Enclosing class:
- CfnJobDefinition
CfnJobDefinition
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
containerProperties
(IResolvable containerProperties) An object with various properties specific to Amazon ECS based jobs.containerProperties
(CfnJobDefinition.ContainerPropertiesProperty containerProperties) An object with various properties specific to Amazon ECS based jobs.static CfnJobDefinition.Builder
eksProperties
(IResolvable eksProperties) An object with various properties that are specific to Amazon EKS based jobs.eksProperties
(CfnJobDefinition.EksPropertiesProperty eksProperties) An object with various properties that are specific to Amazon EKS based jobs.jobDefinitionName
(String jobDefinitionName) The name of the job definition.nodeProperties
(IResolvable nodeProperties) An object with various properties that are specific to multi-node parallel jobs.nodeProperties
(CfnJobDefinition.NodePropertiesProperty nodeProperties) An object with various properties that are specific to multi-node parallel jobs.parameters
(Object parameters) Default parameters or parameter substitution placeholders that are set in the job definition.platformCapabilities
(List<String> platformCapabilities) The platform capabilities required by the job definition.propagateTags
(Boolean propagateTags) Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task.propagateTags
(IResolvable propagateTags) Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task.retryStrategy
(IResolvable retryStrategy) The retry strategy to use for failed jobs that are submitted with this job definition.retryStrategy
(CfnJobDefinition.RetryStrategyProperty retryStrategy) The retry strategy to use for failed jobs that are submitted with this job definition.schedulingPriority
(Number schedulingPriority) The scheduling priority of the job definition.The tags that are applied to the job definition.timeout
(IResolvable timeout) The timeout time for jobs that are submitted with this job definition.timeout
(CfnJobDefinition.TimeoutProperty timeout) The timeout time for jobs that are submitted with this job definition.The type of job definition.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnJobDefinition.Builder
.
-
type
The type of job definition.For more information about multi-node parallel jobs, see Creating a multi-node parallel job definition in the AWS Batch User Guide .
If the job is run on Fargate resources, then
multinode
isn't supported.- Parameters:
type
- The type of job definition. This parameter is required.- Returns:
this
-
containerProperties
@Stability(Stable) public CfnJobDefinition.Builder containerProperties(IResolvable containerProperties) An object with various properties specific to Amazon ECS based jobs.Valid values are
containerProperties
,eksProperties
, andnodeProperties
. Only one can be specified.- Parameters:
containerProperties
- An object with various properties specific to Amazon ECS based jobs. This parameter is required.- Returns:
this
-
containerProperties
@Stability(Stable) public CfnJobDefinition.Builder containerProperties(CfnJobDefinition.ContainerPropertiesProperty containerProperties) An object with various properties specific to Amazon ECS based jobs.Valid values are
containerProperties
,eksProperties
, andnodeProperties
. Only one can be specified.- Parameters:
containerProperties
- An object with various properties specific to Amazon ECS based jobs. This parameter is required.- Returns:
this
-
eksProperties
An object with various properties that are specific to Amazon EKS based jobs.Valid values are
containerProperties
,eksProperties
, andnodeProperties
. Only one can be specified.- Parameters:
eksProperties
- An object with various properties that are specific to Amazon EKS based jobs. This parameter is required.- Returns:
this
-
eksProperties
@Stability(Stable) public CfnJobDefinition.Builder eksProperties(CfnJobDefinition.EksPropertiesProperty eksProperties) An object with various properties that are specific to Amazon EKS based jobs.Valid values are
containerProperties
,eksProperties
, andnodeProperties
. Only one can be specified.- Parameters:
eksProperties
- An object with various properties that are specific to Amazon EKS based jobs. This parameter is required.- Returns:
this
-
jobDefinitionName
The name of the job definition.- Parameters:
jobDefinitionName
- The name of the job definition. This parameter is required.- Returns:
this
-
nodeProperties
An object with various properties that are specific to multi-node parallel jobs.Valid values are
containerProperties
,eksProperties
, andnodeProperties
. Only one can be specified.If the job runs on Fargate resources, don't specify
nodeProperties
. UsecontainerProperties
instead.- Parameters:
nodeProperties
- An object with various properties that are specific to multi-node parallel jobs. This parameter is required.- Returns:
this
-
nodeProperties
@Stability(Stable) public CfnJobDefinition.Builder nodeProperties(CfnJobDefinition.NodePropertiesProperty nodeProperties) An object with various properties that are specific to multi-node parallel jobs.Valid values are
containerProperties
,eksProperties
, andnodeProperties
. Only one can be specified.If the job runs on Fargate resources, don't specify
nodeProperties
. UsecontainerProperties
instead.- Parameters:
nodeProperties
- An object with various properties that are specific to multi-node parallel jobs. This parameter is required.- Returns:
this
-
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 AWS Batch User Guide .- Parameters:
parameters
- Default parameters or parameter substitution placeholders that are set in the job definition. This parameter is required.- Returns:
this
-
platformCapabilities
@Stability(Stable) public CfnJobDefinition.Builder platformCapabilities(List<String> platformCapabilities) The platform capabilities required by the job definition.If no value is specified, it defaults to
EC2
. Jobs run on Fargate resources specifyFARGATE
.- Parameters:
platformCapabilities
- The platform capabilities required by the job definition. This parameter is required.- Returns:
this
-
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.- Parameters:
propagateTags
- Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. This parameter is required.- Returns:
this
-
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.- Parameters:
propagateTags
- Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. This parameter is required.- Returns:
this
-
retryStrategy
The retry strategy to use for failed jobs that are submitted with this job definition.- Parameters:
retryStrategy
- The retry strategy to use for failed jobs that are submitted with this job definition. This parameter is required.- Returns:
this
-
retryStrategy
@Stability(Stable) public CfnJobDefinition.Builder retryStrategy(CfnJobDefinition.RetryStrategyProperty retryStrategy) The retry strategy to use for failed jobs that are submitted with this job definition.- Parameters:
retryStrategy
- The retry strategy to use for failed jobs that are submitted with this job definition. This parameter is required.- Returns:
this
-
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.
- Parameters:
schedulingPriority
- The scheduling priority of the job definition. This parameter is required.- Returns:
this
-
tags
The tags that are applied to the job definition.- Parameters:
tags
- The tags that are applied to the job definition. This parameter is required.- Returns:
this
-
timeout
The timeout time for jobs that are submitted with this job definition.After the amount of time you specify passes, AWS Batch terminates your jobs if they aren't finished.
- Parameters:
timeout
- The timeout time for jobs that are submitted with this job definition. This parameter is required.- Returns:
this
-
timeout
@Stability(Stable) public CfnJobDefinition.Builder timeout(CfnJobDefinition.TimeoutProperty timeout) The timeout time for jobs that are submitted with this job definition.After the amount of time you specify passes, AWS Batch terminates your jobs if they aren't finished.
- Parameters:
timeout
- The timeout time for jobs that are submitted with this job definition. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnJobDefinition>
- Returns:
- a newly built instance of
CfnJobDefinition
.
-