Class: Aws::Batch::Types::TaskContainerOverrides

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

Overview

The overrides that should be sent to a container.

For information about using Batch overrides when you connect event sources to targets, see BatchContainerOverrides.

Constant Summary collapse

SENSITIVE =
[]

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.

This parameter can't contain an empty string.

Returns:

  • (Array<String>)


7498
7499
7500
7501
7502
7503
7504
7505
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 7498

class TaskContainerOverrides < Struct.new(
  :command,
  :environment,
  :name,
  :resource_requirements)
  SENSITIVE = []
  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.

Environment variables cannot start with AWS_BATCH. This naming convention is reserved for variables that Batch sets.

Returns:



7498
7499
7500
7501
7502
7503
7504
7505
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 7498

class TaskContainerOverrides < Struct.new(
  :command,
  :environment,
  :name,
  :resource_requirements)
  SENSITIVE = []
  include Aws::Structure
end

#nameString

A pointer to the container that you want to override. The container's name provides a unique identifier for the container being used.

Returns:

  • (String)


7498
7499
7500
7501
7502
7503
7504
7505
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 7498

class TaskContainerOverrides < Struct.new(
  :command,
  :environment,
  :name,
  :resource_requirements)
  SENSITIVE = []
  include Aws::Structure
end

#resource_requirementsArray<Types::ResourceRequirement>

The type and amount of resources to assign to a container. This overrides the settings in the job definition. The supported resources include GPU, MEMORY, and VCPU.

Returns:



7498
7499
7500
7501
7502
7503
7504
7505
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 7498

class TaskContainerOverrides < Struct.new(
  :command,
  :environment,
  :name,
  :resource_requirements)
  SENSITIVE = []
  include Aws::Structure
end