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


10990
10991
10992
10993
10994
10995
10996
10997
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 10990

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:



10990
10991
10992
10993
10994
10995
10996
10997
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 10990

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)


10990
10991
10992
10993
10994
10995
10996
10997
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 10990

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:



10990
10991
10992
10993
10994
10995
10996
10997
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 10990

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