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 properties specific to Amazon ECS-based jobs.containerProperties
(CfnJobDefinition.ContainerPropertiesProperty containerProperties) An object with properties specific to Amazon ECS-based jobs.static CfnJobDefinition.Builder
ecsProperties
(IResolvable ecsProperties) An object that contains the properties for the Amazon ECS resources of a job.WhenecsProperties
is used in the job definition, it can't be used in addition tocontainerProperties
,eksProperties
, ornodeProperties
.ecsProperties
(CfnJobDefinition.EcsPropertiesProperty ecsProperties) An object that contains the properties for the Amazon ECS resources of a job.WhenecsProperties
is used in the job definition, it can't be used in addition tocontainerProperties
,eksProperties
, ornodeProperties
.eksProperties
(IResolvable eksProperties) An object with properties that are specific to Amazon EKS-based jobs.eksProperties
(CfnJobDefinition.EksPropertiesProperty eksProperties) An object with properties that are specific to Amazon EKS-based jobs.jobDefinitionName
(String jobDefinitionName) The name of the job definition.nodeProperties
(IResolvable nodeProperties) An object with properties that are specific to multi-node parallel jobs.nodeProperties
(CfnJobDefinition.NodePropertiesProperty nodeProperties) An object with 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
@Stability(Stable) public static CfnJobDefinition.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- 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 value is
container
, then one of the following is required:containerProperties
,ecsProperties
, oreksProperties
. - If the value is
multinode
, thennodeProperties
is required.
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
- See Also:
- If the value is
-
containerProperties
@Stability(Stable) public CfnJobDefinition.Builder containerProperties(IResolvable containerProperties) An object with properties specific to Amazon ECS-based jobs.When
containerProperties
is used in the job definition, it can't be used in addition toeksProperties
,ecsProperties
, ornodeProperties
.- Parameters:
containerProperties
- An object with properties specific to Amazon ECS-based jobs. This parameter is required.- Returns:
this
- See Also:
-
containerProperties
@Stability(Stable) public CfnJobDefinition.Builder containerProperties(CfnJobDefinition.ContainerPropertiesProperty containerProperties) An object with properties specific to Amazon ECS-based jobs.When
containerProperties
is used in the job definition, it can't be used in addition toeksProperties
,ecsProperties
, ornodeProperties
.- Parameters:
containerProperties
- An object with properties specific to Amazon ECS-based jobs. This parameter is required.- Returns:
this
- See Also:
-
ecsProperties
An object that contains the properties for the Amazon ECS resources of a job.WhenecsProperties
is used in the job definition, it can't be used in addition tocontainerProperties
,eksProperties
, ornodeProperties
.- Parameters:
ecsProperties
- An object that contains the properties for the Amazon ECS resources of a job.WhenecsProperties
is used in the job definition, it can't be used in addition tocontainerProperties
,eksProperties
, ornodeProperties
. This parameter is required.- Returns:
this
- See Also:
-
ecsProperties
@Stability(Stable) public CfnJobDefinition.Builder ecsProperties(CfnJobDefinition.EcsPropertiesProperty ecsProperties) An object that contains the properties for the Amazon ECS resources of a job.WhenecsProperties
is used in the job definition, it can't be used in addition tocontainerProperties
,eksProperties
, ornodeProperties
.- Parameters:
ecsProperties
- An object that contains the properties for the Amazon ECS resources of a job.WhenecsProperties
is used in the job definition, it can't be used in addition tocontainerProperties
,eksProperties
, ornodeProperties
. This parameter is required.- Returns:
this
- See Also:
-
eksProperties
An object with properties that are specific to Amazon EKS-based jobs.When
eksProperties
is used in the job definition, it can't be used in addition tocontainerProperties
,ecsProperties
, ornodeProperties
.- Parameters:
eksProperties
- An object with properties that are specific to Amazon EKS-based jobs. This parameter is required.- Returns:
this
- See Also:
-
eksProperties
@Stability(Stable) public CfnJobDefinition.Builder eksProperties(CfnJobDefinition.EksPropertiesProperty eksProperties) An object with properties that are specific to Amazon EKS-based jobs.When
eksProperties
is used in the job definition, it can't be used in addition tocontainerProperties
,ecsProperties
, ornodeProperties
.- Parameters:
eksProperties
- An object with properties that are specific to Amazon EKS-based jobs. This parameter is required.- Returns:
this
- See Also:
-
jobDefinitionName
The name of the job definition.- Parameters:
jobDefinitionName
- The name of the job definition. This parameter is required.- Returns:
this
- See Also:
-
nodeProperties
An object with properties that are specific to multi-node parallel jobs.When
nodeProperties
is used in the job definition, it can't be used in addition tocontainerProperties
,ecsProperties
, oreksProperties
.If the job runs on Fargate resources, don't specify
nodeProperties
. UsecontainerProperties
instead.- Parameters:
nodeProperties
- An object with properties that are specific to multi-node parallel jobs. This parameter is required.- Returns:
this
- See Also:
-
nodeProperties
@Stability(Stable) public CfnJobDefinition.Builder nodeProperties(CfnJobDefinition.NodePropertiesProperty nodeProperties) An object with properties that are specific to multi-node parallel jobs.When
nodeProperties
is used in the job definition, it can't be used in addition tocontainerProperties
,ecsProperties
, oreksProperties
.If the job runs on Fargate resources, don't specify
nodeProperties
. UsecontainerProperties
instead.- Parameters:
nodeProperties
- An object with properties that are specific to multi-node parallel jobs. This parameter is required.- Returns:
this
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnJobDefinition>
- Returns:
- a newly built instance of
CfnJobDefinition
.
-