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::Scale

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 Scale data as a hash:

{
  value: 1.0,
  unit: "PERCENT", # accepts PERCENT
}

A floating-point percentage of the desired number of tasks to place and keep running in the task set.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#unitString

The unit of measure for the scale value.

Returns:

  • (String)


8269
8270
8271
8272
8273
8274
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 8269

class Scale < Struct.new(
  :value,
  :unit)
  SENSITIVE = []
  include Aws::Structure
end

#valueFloat

The value, specified as a percent total of a service's desiredCount, to scale the task set. Accepted values are numbers between 0 and 100.

Returns:

  • (Float)


8269
8270
8271
8272
8273
8274
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 8269

class Scale < Struct.new(
  :value,
  :unit)
  SENSITIVE = []
  include Aws::Structure
end