Class: Aws::ECS::Types::SharingStrategy

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

Overview

Note:

SharingStrategy is a union - when making an API calls you must set exactly one of the members.

Note:

SharingStrategy is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of SharingStrategy corresponding to the set member.

The strategy that a container uses to share a GPU with other containers. Specify exactly one member.

Defined Under Namespace

Classes: NvidiaMps, Unknown

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#nvidia_mps ⇒ Types::NvidiaMpsAllocation

Shares a GPU between containers by using NVIDIA Multi-Process Service (MPS). You specify the GPU memory to allocate to the container and, optionally, the maximum percentage of the GPU's compute capacity that the container can use.



18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 18167

class SharingStrategy < Struct.new(
  :nvidia_mps,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class NvidiaMps < SharingStrategy; end
  class Unknown < SharingStrategy; end
end

#unknown ⇒ Object

Returns the value of attribute unknown

Returns:

  • (Object) —

    the current value of unknown



18167
18168
18169
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 18167

def unknown
  @unknown
end