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

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

Overview

Note:

When making an API call, you may pass ResourceRequirement data as a 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.

Constant Summary collapse

SENSITIVE =
[]

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.

Returns:

  • (String)


2862
2863
2864
2865
2866
2867
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 2862

class ResourceRequirement < Struct.new(
  :value,
  :type)
  SENSITIVE = []
  include Aws::Structure
end

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


2862
2863
2864
2865
2866
2867
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 2862

class ResourceRequirement < Struct.new(
  :value,
  :type)
  SENSITIVE = []
  include Aws::Structure
end