You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::Batch::Types::SubmitJobRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::Batch::Types::SubmitJobRequest
- Defined in:
- (unknown)
Overview
When passing SubmitJobRequest as input to an Aws::Client method, you can use a vanilla Hash:
{
job_name: "String", # required
job_queue: "String", # required
array_properties: {
size: 1,
},
depends_on: [
{
job_id: "String",
type: "N_TO_N", # accepts N_TO_N, SEQUENTIAL
},
],
job_definition: "String", # required
parameters: {
"String" => "String",
},
container_overrides: {
vcpus: 1,
memory: 1,
command: ["String"],
instance_type: "String",
environment: [
{
name: "String",
value: "String",
},
],
resource_requirements: [
{
value: "String", # required
type: "GPU", # required, accepts GPU
},
],
},
node_overrides: {
num_nodes: 1,
node_property_overrides: [
{
target_nodes: "String", # required
container_overrides: {
vcpus: 1,
memory: 1,
command: ["String"],
instance_type: "String",
environment: [
{
name: "String",
value: "String",
},
],
resource_requirements: [
{
value: "String", # required
type: "GPU", # required, accepts GPU
},
],
},
},
],
},
retry_strategy: {
attempts: 1,
evaluate_on_exit: [
{
on_status_reason: "String",
on_reason: "String",
on_exit_code: "String",
action: "RETRY", # required, accepts RETRY, EXIT
},
],
},
timeout: {
attempt_duration_seconds: 1,
},
tags: {
"TagKey" => "TagValue",
},
}
Instance Attribute Summary collapse
-
#array_properties ⇒ Types::ArrayProperties
The array properties for the submitted job, such as the size of the array.
-
#container_overrides ⇒ Types::ContainerOverrides
A list of container overrides in JSON format that specify the name of a container in the specified job definition and the overrides it should receive.
-
#depends_on ⇒ Array<Types::JobDependency>
A list of dependencies for the job.
-
#job_definition ⇒ String
The job definition used by this job.
-
#job_name ⇒ String
The name of the job.
-
#job_queue ⇒ String
The job queue into which the job is submitted.
-
#node_overrides ⇒ Types::NodeOverrides
A list of node overrides in JSON format that specify the node range to target and the container overrides for that node range.
-
#parameters ⇒ Hash<String,String>
Additional parameters passed to the job that replace parameter substitution placeholders that are set in the job definition.
-
#retry_strategy ⇒ Types::RetryStrategy
The retry strategy to use for failed jobs from this SubmitJob operation.
-
#tags ⇒ Hash<String,String>
The tags that you apply to the job request to help you categorize and organize your resources.
-
#timeout ⇒ Types::JobTimeout
The timeout configuration for this SubmitJob operation.
Instance Attribute Details
#array_properties ⇒ Types::ArrayProperties
The array properties for the submitted job, such as the size of the array. The array size can be between 2 and 10,000. 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.
#container_overrides ⇒ Types::ContainerOverrides
A list of container overrides in JSON format that specify the name of a
container in the specified job definition and the overrides it should
receive. You can override the default command for a container (that is
specified in the job definition or the Docker image) with a command
override. You can also override existing environment variables (that are
specified in the job definition or Docker image) on a container or add
new environment variables to it with an environment
override.
#depends_on ⇒ Array<Types::JobDependency>
A list of dependencies for the job. A job can depend upon a maximum of
20 jobs. You can specify a SEQUENTIAL
type dependency without
specifying a job ID for array jobs so that each child array job
completes sequentially, starting at index 0. You can also specify an
N_TO_N
type dependency with a job ID for array jobs. In that case,
each index child of this job must wait for the corresponding index child
of each dependency to complete before it can begin.
#job_definition ⇒ String
The job definition used by this job. This value can be one of name
,
name:revision
, or the Amazon Resource Name (ARN) for the job
definition. If name
is specified without a revision then the latest
active revision is used.
#job_name ⇒ String
The name of the job. The first character must be alphanumeric, and up to 128 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.
#job_queue ⇒ String
The job queue into which the job is submitted. You can specify either the name or the Amazon Resource Name (ARN) of the queue.
#node_overrides ⇒ Types::NodeOverrides
A list of node overrides in JSON format that specify the node range to target and the container overrides for that node range.
#parameters ⇒ Hash<String,String>
Additional parameters passed to the job that replace parameter
substitution placeholders that are set in the job definition. Parameters
are specified as a key and value pair mapping. Parameters in a
SubmitJob
request override any corresponding parameter defaults from
the job definition.
#retry_strategy ⇒ Types::RetryStrategy
The retry strategy to use for failed jobs from this SubmitJob operation. When a retry strategy is specified here, it overrides the retry strategy defined in the job definition.
#tags ⇒ Hash<String,String>
The tags that you apply to the job request to help you categorize and organize your resources. Each tag consists of a key and an optional value. For more information, see Tagging AWS Resources in AWS General Reference.
#timeout ⇒ Types::JobTimeout
The timeout configuration for this SubmitJob operation. You can specify a timeout duration after which AWS Batch terminates your jobs if they have not finished. If a job is terminated due to a timeout, it is not retried. The minimum value for the timeout is 60 seconds. This configuration overrides any timeout configuration specified in the job definition. For array jobs, child jobs have the same timeout configuration as the parent job. For more information, see Job Timeouts in the Amazon Elastic Container Service Developer Guide.