You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Batch::Types::ContainerOverrides

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

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

{
  vcpus: 1,
  memory: 1,
  command: ["String"],
  instance_type: "String",
  environment: [
    {
      name: "String",
      value: "String",
    },
  ],
  resource_requirements: [
    {
      value: "String", # required
      type: "GPU", # required, accepts GPU
    },
  ],
}

The overrides that should be sent to a container.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#commandArray<String>

The command to send to the container that overrides the default command from the Docker image or the job definition.

Returns:

  • (Array<String>)

    The command to send to the container that overrides the default command from the Docker image or the job definition.

#environmentArray<Types::KeyValuePair>

The environment variables to send to the container. You can add new environment variables, which are added to the container at launch, or you can override the existing environment variables from the Docker image or the job definition.

Environment variables must not start with AWS_BATCH; this naming convention is reserved for variables that are set by the AWS Batch service.

Returns:

#instance_typeString

The instance type to use for a multi-node parallel job. This parameter is not valid for single-node container jobs.

Returns:

  • (String)

    The instance type to use for a multi-node parallel job.

#memoryInteger

The number of MiB of memory reserved for the job. This value overrides the value set in the job definition.

Returns:

  • (Integer)

    The number of MiB of memory reserved for the job.

#resource_requirementsArray<Types::ResourceRequirement>

The type and amount of a resource to assign to a container. This value overrides the value set in the job definition. Currently, the only supported resource is GPU.

Returns:

#vcpusInteger

The number of vCPUs to reserve for the container. This value overrides the value set in the job definition.

Returns:

  • (Integer)

    The number of vCPUs to reserve for the container.