@Stability(value=Stable) public static final class CfnJobDefinition.Builder extends Object implements software.amazon.jsii.Builder<CfnJobDefinition>
CfnJobDefinition.| Modifier and Type | Method and Description |
|---|---|
CfnJobDefinition |
build() |
CfnJobDefinition.Builder |
containerProperties(CfnJobDefinition.ContainerPropertiesProperty containerProperties)
An object with various properties specific to container-based jobs.
|
CfnJobDefinition.Builder |
containerProperties(IResolvable containerProperties)
An object with various properties specific to container-based jobs.
|
static CfnJobDefinition.Builder |
create(software.constructs.Construct scope,
String id) |
CfnJobDefinition.Builder |
jobDefinitionName(String jobDefinitionName)
The name of the job definition.
|
CfnJobDefinition.Builder |
nodeProperties(CfnJobDefinition.NodePropertiesProperty nodeProperties)
An object with various properties specific to multi-node parallel jobs.
|
CfnJobDefinition.Builder |
nodeProperties(IResolvable nodeProperties)
An object with various properties specific to multi-node parallel jobs.
|
CfnJobDefinition.Builder |
parameters(Object parameters)
Default parameters or parameter substitution placeholders that are set in the job definition.
|
CfnJobDefinition.Builder |
platformCapabilities(List<String> platformCapabilities)
The platform capabilities required by the job definition.
|
CfnJobDefinition.Builder |
propagateTags(Boolean propagateTags)
Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task.
|
CfnJobDefinition.Builder |
propagateTags(IResolvable propagateTags)
Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task.
|
CfnJobDefinition.Builder |
retryStrategy(CfnJobDefinition.RetryStrategyProperty retryStrategy)
The retry strategy to use for failed jobs that are submitted with this job definition.
|
CfnJobDefinition.Builder |
retryStrategy(IResolvable retryStrategy)
The retry strategy to use for failed jobs that are submitted with this job definition.
|
CfnJobDefinition.Builder |
schedulingPriority(Number schedulingPriority)
The scheduling priority of the job definition.
|
CfnJobDefinition.Builder |
tags(Object tags)
The tags applied to the job definition.
|
CfnJobDefinition.Builder |
timeout(CfnJobDefinition.TimeoutProperty timeout)
The timeout configuration for jobs that are submitted with this job definition.
|
CfnJobDefinition.Builder |
timeout(IResolvable timeout)
The timeout configuration for jobs that are submitted with this job definition.
|
CfnJobDefinition.Builder |
type(String type)
The type of job definition.
|
@Stability(value=Stable) public static CfnJobDefinition.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnJobDefinition.AuthorizationConfigProperty.Builder.@Stability(value=Stable) public CfnJobDefinition.Builder type(String type)
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
multinodeisn't supported.
type - The type of job definition. This parameter is required.this@Stability(value=Stable) public CfnJobDefinition.Builder containerProperties(CfnJobDefinition.ContainerPropertiesProperty containerProperties)
containerProperties - An object with various properties specific to container-based jobs. This parameter is required.this@Stability(value=Stable) public CfnJobDefinition.Builder containerProperties(IResolvable containerProperties)
containerProperties - An object with various properties specific to container-based jobs. This parameter is required.this@Stability(value=Stable) public CfnJobDefinition.Builder jobDefinitionName(String jobDefinitionName)
jobDefinitionName - The name of the job definition. This parameter is required.this@Stability(value=Stable) public CfnJobDefinition.Builder nodeProperties(CfnJobDefinition.NodePropertiesProperty nodeProperties)
If the job runs on Fargate resources, then you must not specify
nodeProperties; usecontainerPropertiesinstead.
nodeProperties - An object with various properties specific to multi-node parallel jobs. This parameter is required.this@Stability(value=Stable) public CfnJobDefinition.Builder nodeProperties(IResolvable nodeProperties)
If the job runs on Fargate resources, then you must not specify
nodeProperties; usecontainerPropertiesinstead.
nodeProperties - An object with various properties specific to multi-node parallel jobs. This parameter is required.this@Stability(value=Stable) public CfnJobDefinition.Builder parameters(Object parameters)
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 - Default parameters or parameter substitution placeholders that are set in the job definition. This parameter is required.this@Stability(value=Stable) public CfnJobDefinition.Builder platformCapabilities(List<String> platformCapabilities)
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. This parameter is required.this@Stability(value=Stable) public CfnJobDefinition.Builder propagateTags(Boolean propagateTags)
If no value is specified, the tags aren't propagated. Tags can only be propagated to the tasks during task creation. 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. This parameter is required.this@Stability(value=Stable) public CfnJobDefinition.Builder propagateTags(IResolvable propagateTags)
If no value is specified, the tags aren't propagated. Tags can only be propagated to the tasks during task creation. 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. This parameter is required.this@Stability(value=Stable) public CfnJobDefinition.Builder retryStrategy(CfnJobDefinition.RetryStrategyProperty retryStrategy)
retryStrategy - The retry strategy to use for failed jobs that are submitted with this job definition. This parameter is required.this@Stability(value=Stable) public CfnJobDefinition.Builder retryStrategy(IResolvable retryStrategy)
retryStrategy - The retry strategy to use for failed jobs that are submitted with this job definition. This parameter is required.this@Stability(value=Stable) public CfnJobDefinition.Builder schedulingPriority(Number schedulingPriority)
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 parameter is required.this@Stability(value=Stable) public CfnJobDefinition.Builder tags(Object tags)
tags - The tags applied to the job definition. This parameter is required.this@Stability(value=Stable) public CfnJobDefinition.Builder timeout(CfnJobDefinition.TimeoutProperty timeout)
You can specify a timeout duration after which AWS Batch terminates your jobs if they haven't finished.
timeout - The timeout configuration for jobs that are submitted with this job definition. This parameter is required.this@Stability(value=Stable) public CfnJobDefinition.Builder timeout(IResolvable timeout)
You can specify a timeout duration after which AWS Batch terminates your jobs if they haven't finished.
timeout - The timeout configuration for jobs that are submitted with this job definition. This parameter is required.this@Stability(value=Stable) public CfnJobDefinition build()
build in interface software.amazon.jsii.Builder<CfnJobDefinition>Copyright © 2022. All rights reserved.