@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:43.428Z") @Stability(value=Experimental) public interface JobDefinitionProps extends software.amazon.jsii.JsiiSerializable
JobDefinition construct.
Example:
import software.amazon.awscdk.core.*;
JobDefinition.Builder.create(this, "job-def")
.container(JobDefinitionContainer.builder()
.image(EcrImage.fromRegistry("docker/whalesay"))
.logConfiguration(LogConfiguration.builder()
.logDriver(LogDriver.AWSLOGS)
.options(Map.of("awslogs-region", "us-east-1"))
.secretOptions(List.of(ExposedSecret.fromParametersStore("xyz", StringParameter.fromStringParameterName(this, "parameter", "xyz"))))
.build())
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
JobDefinitionProps.Builder
A builder for
JobDefinitionProps |
static class |
JobDefinitionProps.Jsii$Proxy
An implementation for
JobDefinitionProps |
| Modifier and Type | Method and Description |
|---|---|
static JobDefinitionProps.Builder |
builder() |
JobDefinitionContainer |
getContainer()
(experimental) An object with various properties specific to container-based jobs.
|
default String |
getJobDefinitionName()
(experimental) The name of the job definition.
|
default IMultiNodeProps |
getNodeProps()
(experimental) An object with various properties specific to multi-node parallel jobs.
|
default Map<String,String> |
getParameters()
(experimental) When you submit a job, you can specify parameters that should replace the placeholders or override the default job definition parameters.
|
default List<PlatformCapabilities> |
getPlatformCapabilities()
(experimental) The platform capabilities required by the job definition.
|
default Number |
getRetryAttempts()
(experimental) The number of times to move a job to the RUNNABLE status.
|
default Duration |
getTimeout()
(experimental) The timeout configuration for jobs that are submitted with this job definition.
|
@Stability(value=Experimental) @NotNull JobDefinitionContainer getContainer()
@Stability(value=Experimental) @Nullable default String getJobDefinitionName()
Up to 128 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.
Default: Cloudformation-generated name
@Stability(value=Experimental) @Nullable default IMultiNodeProps getNodeProps()
Default: - undefined
@Stability(value=Experimental) @Nullable default Map<String,String> getParameters()
Parameters in job submission requests take precedence over the defaults in a job definition. This allows you to use the same job definition for multiple jobs that use the same format, and programmatically change values in the command at submission time.
Default: - undefined
@Stability(value=Experimental) @Nullable default List<PlatformCapabilities> getPlatformCapabilities()
Default: - EC2
@Stability(value=Experimental) @Nullable default Number getRetryAttempts()
You may specify between 1 and 10 attempts. If the value of attempts is greater than one, the job is retried on failure the same number of attempts as the value.
Default: 1
@Stability(value=Experimental) @Nullable default Duration getTimeout()
You can specify a timeout duration after which AWS Batch terminates your jobs if they have not finished.
Default: - undefined
@Stability(value=Experimental) static JobDefinitionProps.Builder builder()
JobDefinitionProps.Builder of JobDefinitionPropsCopyright © 2022. All rights reserved.