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"],
  environment: [
    {
      name: "String",
      value: "String",
    },
  ],
}

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:

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

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