Class: Aws::ECS::Types::ResourceRequirement

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-ecs/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. The only supported resource is a GPU.

Instance Attribute Summary collapse

Instance Attribute Details

#typeString

The type of resource a container desires. The only supported value is ‘GPU`.

Returns:

  • (String)


5205
5206
5207
5208
5209
# File 'lib/aws-sdk-ecs/types.rb', line 5205

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

#valueString

The number of GPUs to assign to a container.

Returns:

  • (String)


5205
5206
5207
5208
5209
# File 'lib/aws-sdk-ecs/types.rb', line 5205

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