Class CfnJobDefinitionPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobDefinitionPropsMixin>
- Enclosing class:
CfnJobDefinitionPropsMixin
CfnJobDefinitionPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()consumableResourceProperties(CfnJobDefinitionPropsMixin.ConsumableResourcePropertiesProperty consumableResourceProperties) Contains a list of consumable resources required by the job.consumableResourceProperties(IResolvable consumableResourceProperties) Contains a list of consumable resources required by the job.containerProperties(CfnJobDefinitionPropsMixin.ContainerPropertiesProperty containerProperties) An object with properties specific to Amazon ECS-based jobs.containerProperties(IResolvable containerProperties) An object with properties specific to Amazon ECS-based jobs.create()create(CfnPropertyMixinOptions options) ecsProperties(CfnJobDefinitionPropsMixin.EcsPropertiesProperty ecsProperties) An object that contains the properties for the Amazon ECS resources of a job.WhenecsPropertiesis used in the job definition, it can't be used in addition tocontainerProperties,eksProperties, ornodeProperties.ecsProperties(IResolvable ecsProperties) An object that contains the properties for the Amazon ECS resources of a job.WhenecsPropertiesis used in the job definition, it can't be used in addition tocontainerProperties,eksProperties, ornodeProperties.eksProperties(CfnJobDefinitionPropsMixin.EksPropertiesProperty eksProperties) An object with properties that are specific to Amazon EKS-based jobs.eksProperties(IResolvable eksProperties) An object with properties that are specific to Amazon EKS-based jobs.jobDefinitionName(String jobDefinitionName) The name of the job definition.nodeProperties(CfnJobDefinitionPropsMixin.NodePropertiesProperty nodeProperties) An object with properties that are specific to multi-node parallel jobs.nodeProperties(IResolvable 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.resourceRetentionPolicy(CfnJobDefinitionPropsMixin.ResourceRetentionPolicyProperty resourceRetentionPolicy) Specifies the resource retention policy settings for the job definition.resourceRetentionPolicy(IResolvable resourceRetentionPolicy) Specifies the resource retention policy settings for the job definition.retryStrategy(CfnJobDefinitionPropsMixin.RetryStrategyProperty retryStrategy) The retry strategy to use for failed jobs that are submitted with this job definition.retryStrategy(IResolvable 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.The timeout time for jobs that are submitted with this job definition.timeout(IResolvable 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 CfnJobDefinitionPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnJobDefinitionPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnJobDefinitionPropsMixin.Builder.
-
consumableResourceProperties
@Stability(Stable) public CfnJobDefinitionPropsMixin.Builder consumableResourceProperties(IResolvable consumableResourceProperties) Contains a list of consumable resources required by the job.- Parameters:
consumableResourceProperties- Contains a list of consumable resources required by the job. This parameter is required.- Returns:
this- See Also:
-
consumableResourceProperties
@Stability(Stable) public CfnJobDefinitionPropsMixin.Builder consumableResourceProperties(CfnJobDefinitionPropsMixin.ConsumableResourcePropertiesProperty consumableResourceProperties) Contains a list of consumable resources required by the job.- Parameters:
consumableResourceProperties- Contains a list of consumable resources required by the job. This parameter is required.- Returns:
this- See Also:
-
containerProperties
@Stability(Stable) public CfnJobDefinitionPropsMixin.Builder containerProperties(IResolvable containerProperties) An object with properties specific to Amazon ECS-based jobs.When
containerPropertiesis 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 CfnJobDefinitionPropsMixin.Builder containerProperties(CfnJobDefinitionPropsMixin.ContainerPropertiesProperty containerProperties) An object with properties specific to Amazon ECS-based jobs.When
containerPropertiesis 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
@Stability(Stable) public CfnJobDefinitionPropsMixin.Builder ecsProperties(IResolvable ecsProperties) An object that contains the properties for the Amazon ECS resources of a job.WhenecsPropertiesis 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.WhenecsPropertiesis 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 CfnJobDefinitionPropsMixin.Builder ecsProperties(CfnJobDefinitionPropsMixin.EcsPropertiesProperty ecsProperties) An object that contains the properties for the Amazon ECS resources of a job.WhenecsPropertiesis 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.WhenecsPropertiesis used in the job definition, it can't be used in addition tocontainerProperties,eksProperties, ornodeProperties. This parameter is required.- Returns:
this- See Also:
-
eksProperties
@Stability(Stable) public CfnJobDefinitionPropsMixin.Builder eksProperties(IResolvable eksProperties) An object with properties that are specific to Amazon EKS-based jobs.When
eksPropertiesis 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 CfnJobDefinitionPropsMixin.Builder eksProperties(CfnJobDefinitionPropsMixin.EksPropertiesProperty eksProperties) An object with properties that are specific to Amazon EKS-based jobs.When
eksPropertiesis 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
@Stability(Stable) public CfnJobDefinitionPropsMixin.Builder jobDefinitionName(String jobDefinitionName) The name of the job definition.- Parameters:
jobDefinitionName- The name of the job definition. This parameter is required.- Returns:
this- See Also:
-
nodeProperties
@Stability(Stable) public CfnJobDefinitionPropsMixin.Builder nodeProperties(IResolvable nodeProperties) An object with properties that are specific to multi-node parallel jobs.When
nodePropertiesis 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. UsecontainerPropertiesinstead.- 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 CfnJobDefinitionPropsMixin.Builder nodeProperties(CfnJobDefinitionPropsMixin.NodePropertiesProperty nodeProperties) An object with properties that are specific to multi-node parallel jobs.When
nodePropertiesis 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. UsecontainerPropertiesinstead.- 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
SubmitJobrequest 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 CfnJobDefinitionPropsMixin.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
FAILEDstate.- 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
@Stability(Stable) public CfnJobDefinitionPropsMixin.Builder propagateTags(IResolvable 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
FAILEDstate.- 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:
-
resourceRetentionPolicy
@Stability(Stable) public CfnJobDefinitionPropsMixin.Builder resourceRetentionPolicy(IResolvable resourceRetentionPolicy) Specifies the resource retention policy settings for the job definition.- Parameters:
resourceRetentionPolicy- Specifies the resource retention policy settings for the job definition. This parameter is required.- Returns:
this- See Also:
-
resourceRetentionPolicy
@Stability(Stable) public CfnJobDefinitionPropsMixin.Builder resourceRetentionPolicy(CfnJobDefinitionPropsMixin.ResourceRetentionPolicyProperty resourceRetentionPolicy) Specifies the resource retention policy settings for the job definition.- Parameters:
resourceRetentionPolicy- Specifies the resource retention policy settings for the job definition. This parameter is required.- Returns:
this- See Also:
-
retryStrategy
@Stability(Stable) public CfnJobDefinitionPropsMixin.Builder retryStrategy(IResolvable 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 CfnJobDefinitionPropsMixin.Builder retryStrategy(CfnJobDefinitionPropsMixin.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
@Stability(Stable) public CfnJobDefinitionPropsMixin.Builder schedulingPriority(Number 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 CfnJobDefinitionPropsMixin.Builder timeout(CfnJobDefinitionPropsMixin.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:
-
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, thennodePropertiesis required.
If the job is run on Fargate resources, then
multinodeisn't supported.- Parameters:
type- The type of job definition. This parameter is required.- Returns:
this- See Also:
- If the value is
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnJobDefinitionPropsMixin>- Returns:
- a newly built instance of
CfnJobDefinitionPropsMixin.
-