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
show all
Defined in:
(unknown)

Overview

Note:

When passing SubmitJobRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  job_name: "String", # required
  job_queue: "String", # required
  depends_on: [
    {
      job_id: "String",
    },
  ],
  job_definition: "String", # required
  parameters: {
    "String" => "String",
  },
  container_overrides: {
    vcpus: 1,
    memory: 1,
    command: ["String"],
    environment: [
      {
        name: "String",
        value: "String",
      },
    ],
  },
  retry_strategy: {
    attempts: 1,
  },
}

Instance Attribute Summary collapse

Instance Attribute Details

#container_overridesTypes::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.

Returns:

  • (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_onArray<Types::JobDependency>

A list of job IDs on which this job depends. A job can depend upon a maximum of 20 jobs.

Returns:

#job_definitionString

The job definition used by this job. This value can be either a name:revision or the Amazon Resource Name (ARN) for the job definition.

Returns:

  • (String)

    The job definition used by this job.

#job_nameString

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.

Returns:

  • (String)

    The name of the job.

#job_queueString

The job queue into which the job will be submitted. You can specify either the name or the Amazon Resource Name (ARN) of the queue.

Returns:

  • (String)

    The job queue into which the job will be submitted.

#parametersHash<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.

Returns:

  • (Hash<String,String>)

    Additional parameters passed to the job that replace parameter substitution placeholders that are set in the job definition.

#retry_strategyTypes::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.

Returns: