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
- Struct
- Aws::Batch::Types::ContainerOverrides
- Defined in:
- (unknown)
Overview
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
-
#command ⇒ Array<String>
The command to send to the container that overrides the default command from the Docker image or the job definition.
-
#environment ⇒ Array<Types::KeyValuePair>
The environment variables to send to the container.
-
#instance_type ⇒ String
The instance type to use for a multi-node parallel job.
-
#memory ⇒ Integer
The number of MiB of memory reserved for the job.
-
#resource_requirements ⇒ Array<Types::ResourceRequirement>
The type and amount of a resource to assign to a container.
-
#vcpus ⇒ Integer
The number of vCPUs to reserve for the container.
Instance Attribute Details
#command ⇒ Array<String>
The command to send to the container that overrides the default command from the Docker image or the job definition.
#environment ⇒ Array<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.
AWS_BATCH
; this naming
convention is reserved for variables that are set by the AWS Batch
service.
#instance_type ⇒ String
The instance type to use for a multi-node parallel job. This parameter is not valid for single-node container jobs.
#memory ⇒ Integer
The number of MiB of memory reserved for the job. This value overrides the value set in the job definition.
#resource_requirements ⇒ Array<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
.
#vcpus ⇒ Integer
The number of vCPUs to reserve for the container. This value overrides the value set in the job definition.