Class: Aws::GameLift::Types::ContainerMemoryLimits

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

Overview

Specifies how much memory is available to a container. You can't change this value after you create this object.

Part of: ContainerDefinition$MemoryLimits

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#hard_limitInteger

The maximum amount of memory that the container can use. If a container attempts to exceed this limit, the container is stopped. This property is similar to the Amazon ECS container definition parameter memory in the Amazon Elastic Container Service Developer Guide.

Returns:

  • (Integer)


1414
1415
1416
1417
1418
1419
# File 'gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/types.rb', line 1414

class ContainerMemoryLimits < Struct.new(
  :soft_limit,
  :hard_limit)
  SENSITIVE = []
  include Aws::Structure
end

#soft_limitInteger

The amount of memory that is reserved for a container. When the container group's shared memory is under contention, the system attempts to maintain the container memory usage at this soft limit. However, the container can use more memory when needed, if available. This property is similar to the Amazon ECS container definition parameter memoryreservation (Amazon Elastic Container Service Developer Guide).

Returns:

  • (Integer)


1414
1415
1416
1417
1418
1419
# File 'gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/types.rb', line 1414

class ContainerMemoryLimits < Struct.new(
  :soft_limit,
  :hard_limit)
  SENSITIVE = []
  include Aws::Structure
end