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
- Struct
- Aws::Batch::Types::ResourceRequirement
- 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
-
#type ⇒ String
The type of resource to assign to a container.
-
#value ⇒ String
The number of physical GPUs to reserve for the container.
Instance Attribute Details
#type ⇒ String
The type of resource to assign to a container. Currently, the only
supported resource type is GPU
.
Possible values:
- GPU
#value ⇒ String
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.