AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Class: Aws::ECS::Types::PlatformDevice

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

Overview

Note:

When making an API call, you may pass PlatformDevice data as a hash:

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

The devices that are available on the container instance. The only supported device type is a GPU.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#idString

The ID for the GPU(s) on the container instance. The available GPU IDs can also be obtained on the container instance in the /var/lib/ecs/gpu/nvidia_gpu_info.json file.

Returns:

  • (String)


6797
6798
6799
6800
6801
6802
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 6797

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

#typeString

The type of device that is available on the container instance. The only supported value is GPU.

Returns:

  • (String)


6797
6798
6799
6800
6801
6802
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 6797

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