RequestCountScalingProps

class aws_cdk.aws_ecs.RequestCountScalingProps(*, disable_scale_in=None, policy_name=None, scale_in_cooldown=None, scale_out_cooldown=None, requests_per_target, target_group)

Bases: aws_cdk.aws_applicationautoscaling.BaseTargetTrackingProps

__init__(*, disable_scale_in=None, policy_name=None, scale_in_cooldown=None, scale_out_cooldown=None, requests_per_target, target_group)

The properties for enabling scaling based on Application Load Balancer (ALB) request counts.

Parameters
  • disable_scale_in (Optional[bool]) – Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won’t remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. Default: false

  • policy_name (Optional[str]) – A name for the scaling policy. Default: - Automatically generated name.

  • scale_in_cooldown (Optional[Duration]) – Period after a scale in activity completes before another scale in activity can start. Default: - No scale in cooldown.

  • scale_out_cooldown (Optional[Duration]) – Period after a scale out activity completes before another scale out activity can start. Default: - No scale out cooldown.

  • requests_per_target (Union[int, float]) – The number of ALB requests per target.

  • target_group (ApplicationTargetGroup) – The ALB target group name.

Attributes

disable_scale_in

Indicates whether scale in by the target tracking policy is disabled.

If the value is true, scale in is disabled and the target tracking policy won’t remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource.

default :default: false

Return type

Optional[bool]

policy_name

A name for the scaling policy.

default :default: - Automatically generated name.

Return type

Optional[str]

requests_per_target

The number of ALB requests per target.

Return type

Union[int, float]

scale_in_cooldown

Period after a scale in activity completes before another scale in activity can start.

default :default: - No scale in cooldown.

Return type

Optional[Duration]

scale_out_cooldown

Period after a scale out activity completes before another scale out activity can start.

default :default: - No scale out cooldown.

Return type

Optional[Duration]

target_group

The ALB target group name.

Return type

ApplicationTargetGroup