Class: Aws::ECS::Types::ExpressGatewayScalingTarget

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

Overview

Defines the auto-scaling configuration for an Express service. This determines how the service automatically adjusts the number of running tasks based on demand metrics such as CPU utilization, memory utilization, or request count per target.

Auto-scaling helps ensure your application can handle varying levels of traffic while optimizing costs by scaling down during low-demand periods. You can specify the minimum and maximum number of tasks, the scaling metric, and the target value for that metric.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#auto_scaling_metricString

The metric used for auto-scaling decisions. The default metric used for an Express service is CPUUtilization.

Returns:

  • (String)


6076
6077
6078
6079
6080
6081
6082
6083
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 6076

class ExpressGatewayScalingTarget < Struct.new(
  :min_task_count,
  :max_task_count,
  :auto_scaling_metric,
  :auto_scaling_target_value)
  SENSITIVE = []
  include Aws::Structure
end

#auto_scaling_target_valueInteger

The target value for the auto-scaling metric. The default value for an Express service is 60.

Returns:

  • (Integer)


6076
6077
6078
6079
6080
6081
6082
6083
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 6076

class ExpressGatewayScalingTarget < Struct.new(
  :min_task_count,
  :max_task_count,
  :auto_scaling_metric,
  :auto_scaling_target_value)
  SENSITIVE = []
  include Aws::Structure
end

#max_task_countInteger

The maximum number of tasks to run in the Express service.

Returns:

  • (Integer)


6076
6077
6078
6079
6080
6081
6082
6083
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 6076

class ExpressGatewayScalingTarget < Struct.new(
  :min_task_count,
  :max_task_count,
  :auto_scaling_metric,
  :auto_scaling_target_value)
  SENSITIVE = []
  include Aws::Structure
end

#min_task_countInteger

The minimum number of tasks to run in the Express service.

Returns:

  • (Integer)


6076
6077
6078
6079
6080
6081
6082
6083
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 6076

class ExpressGatewayScalingTarget < Struct.new(
  :min_task_count,
  :max_task_count,
  :auto_scaling_metric,
  :auto_scaling_target_value)
  SENSITIVE = []
  include Aws::Structure
end