@Generated(value="jsii-pacmak/1.72.0 (build 4b8828b)", date="2022-12-27T20:28:49.422Z") @Stability(value=Deprecated) @Deprecated public interface RunBatchJobProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
import software.amazon.awscdk.services.stepfunctions.*;
import software.amazon.awscdk.services.stepfunctions.tasks.*;
import software.amazon.awscdk.core.*;
InstanceType instanceType;
Object payload;
RunBatchJobProps runBatchJobProps = RunBatchJobProps.builder()
.jobDefinitionArn("jobDefinitionArn")
.jobName("jobName")
.jobQueueArn("jobQueueArn")
// the properties below are optional
.arraySize(123)
.attempts(123)
.containerOverrides(ContainerOverrides.builder()
.command(List.of("command"))
.environment(Map.of(
"environmentKey", "environment"))
.gpuCount(123)
.instanceType(instanceType)
.memory(123)
.vcpus(123)
.build())
.dependsOn(List.of(JobDependency.builder()
.jobId("jobId")
.type("type")
.build()))
.integrationPattern(ServiceIntegrationPattern.FIRE_AND_FORGET)
.payload(Map.of(
"payloadKey", payload))
.timeout(Duration.minutes(30))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
RunBatchJobProps.Builder
Deprecated.
|
static class |
RunBatchJobProps.Jsii$Proxy
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static RunBatchJobProps.Builder |
builder()
Deprecated.
|
default Number |
getArraySize()
Deprecated.
|
default Number |
getAttempts()
Deprecated.
|
default ContainerOverrides |
getContainerOverrides()
Deprecated.
|
default List<JobDependency> |
getDependsOn()
Deprecated.
|
default ServiceIntegrationPattern |
getIntegrationPattern()
Deprecated.
|
String |
getJobDefinitionArn()
Deprecated.
|
String |
getJobName()
Deprecated.
|
String |
getJobQueueArn()
Deprecated.
|
default Map<String,Object> |
getPayload()
Deprecated.
|
default Duration |
getTimeout()
Deprecated.
|
@Stability(value=Deprecated) @Deprecated @NotNull String getJobDefinitionArn()
@Stability(value=Deprecated) @Deprecated @NotNull String getJobName()
The first character must be alphanumeric, and up to 128 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.
@Stability(value=Deprecated) @Deprecated @NotNull String getJobQueueArn()
@Stability(value=Deprecated) @Deprecated @Nullable default Number getArraySize()
If you specify array properties for a job, it becomes an array job. For more information, see Array Jobs in the AWS Batch User Guide.
Default: - No array size
@Stability(value=Deprecated) @Deprecated @Nullable default Number getAttempts()
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=Deprecated) @Deprecated @Nullable default ContainerOverrides getContainerOverrides()
Default: - No container overrides
@Stability(value=Deprecated) @Deprecated @Nullable default List<JobDependency> getDependsOn()
A job can depend upon a maximum of 20 jobs.
Default: - No dependencies
@Stability(value=Deprecated) @Deprecated @Nullable default ServiceIntegrationPattern getIntegrationPattern()
The valid value is either FIRE_AND_FORGET or SYNC.
Default: SYNC
@Stability(value=Deprecated) @Deprecated @Nullable default Map<String,Object> getPayload()
Default: - No parameters are passed
@Stability(value=Deprecated) @Deprecated @Nullable default Duration getTimeout()
The minimum value for the timeout is 60 seconds.
Default: - No timeout
@Stability(value=Deprecated) @Deprecated static RunBatchJobProps.Builder builder()
RunBatchJobProps.Builder of RunBatchJobPropsCopyright © 2022. All rights reserved.