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

Class: Aws::Batch::Types::ResourceRequirement

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing ResourceRequirement as input to an Aws::Client method, you can use a vanilla Hash:

{
  value: "String", # required
  type: "GPU", # required, accepts GPU
}

The type and amount of a resource to assign to a container. Currently, the only supported resource type is GPU.

Instance Attribute Summary collapse

Instance Attribute Details

#typeString

The type of resource to assign to a container. Currently, the only supported resource type is GPU.

Possible values:

  • GPU

Returns:

  • (String)

    The type of resource to assign to a container.

#valueString

The number of physical GPUs to reserve for the container. The number of GPUs reserved for all containers in a job should not exceed the number of available GPUs on the compute resource that the job is launched on.

Returns:

  • (String)

    The number of physical GPUs to reserve for the container.