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.



18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 18110

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



18110
18111
18112
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 18110

def unknown
  @unknown
end