You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::ECS::Types::Scale

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing Scale as input to an Aws::Client method, you can use a vanilla 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.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#unitString

The unit of measure for the scale value.

Possible values:

  • PERCENT

Returns:

  • (String)

    The unit of measure for the scale value.

#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)

    The value, specified as a percent total of a service\'s desiredCount, to scale the task set.