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

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb

Overview

Note:

When making an API call, you may pass ContainerOverrides data as a hash:

{
  vcpus: 1,
  memory: 1,
  command: ["String"],
  environment: [
    {
      name: "String",
      value: "String",
    },
  ],
}

The overrides that should be sent to a container.

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>)


478
479
480
481
482
483
484
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 478

class ContainerOverrides < Struct.new(
  :vcpus,
  :memory,
  :command,
  :environment)
  include Aws::Structure
end

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

Returns:



478
479
480
481
482
483
484
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 478

class ContainerOverrides < Struct.new(
  :vcpus,
  :memory,
  :command,
  :environment)
  include Aws::Structure
end

#memoryInteger

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

Returns:

  • (Integer)


478
479
480
481
482
483
484
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 478

class ContainerOverrides < Struct.new(
  :vcpus,
  :memory,
  :command,
  :environment)
  include Aws::Structure
end

#vcpusInteger

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

Returns:

  • (Integer)


478
479
480
481
482
483
484
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 478

class ContainerOverrides < Struct.new(
  :vcpus,
  :memory,
  :command,
  :environment)
  include Aws::Structure
end