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.



18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 18145

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



18145
18146
18147
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 18145

def unknown
  @unknown
end