Interface CfnExpressGatewayService.ExpressGatewayScalingTargetProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnExpressGatewayService.ExpressGatewayScalingTargetProperty.Jsii$Proxy
Enclosing class:
CfnExpressGatewayService

@Stability(Stable) public static interface CfnExpressGatewayService.ExpressGatewayScalingTargetProperty extends software.amazon.jsii.JsiiSerializable
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.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.ecs.*;
 ExpressGatewayScalingTargetProperty expressGatewayScalingTargetProperty = ExpressGatewayScalingTargetProperty.builder()
         .autoScalingMetric("autoScalingMetric")
         .autoScalingTargetValue(123)
         .maxTaskCount(123)
         .minTaskCount(123)
         .build();
 

See Also: