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

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.

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)


2769
2770
2771
2772
2773
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 2769

class ResourceRequirement < Struct.new(
  :value,
  :type)
  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)


2769
2770
2771
2772
2773
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 2769

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