Interface MemoryUtilizationScalingProps
- All Superinterfaces:
- BaseTargetTrackingProps,- software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
- MemoryUtilizationScalingProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
           date="2023-06-19T16:30:47.420Z")
@Stability(Stable)
public interface MemoryUtilizationScalingProps
extends software.amazon.jsii.JsiiSerializable, BaseTargetTrackingProps
The properties for enabling scaling based on memory utilization.
 
Example:
 Cluster cluster;
 ApplicationLoadBalancedFargateService loadBalancedFargateService = ApplicationLoadBalancedFargateService.Builder.create(this, "Service")
         .cluster(cluster)
         .memoryLimitMiB(1024)
         .desiredCount(1)
         .cpu(512)
         .taskImageOptions(ApplicationLoadBalancedTaskImageOptions.builder()
                 .image(ContainerImage.fromRegistry("amazon/amazon-ecs-sample"))
                 .build())
         .build();
 ScalableTaskCount scalableTarget = loadBalancedFargateService.service.autoScaleTaskCount(EnableScalingProps.builder()
         .minCapacity(1)
         .maxCapacity(20)
         .build());
 scalableTarget.scaleOnCpuUtilization("CpuScaling", CpuUtilizationScalingProps.builder()
         .targetUtilizationPercent(50)
         .build());
 scalableTarget.scaleOnMemoryUtilization("MemoryScaling", MemoryUtilizationScalingProps.builder()
         .targetUtilizationPercent(50)
         .build());
 - 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forMemoryUtilizationScalingPropsstatic final classAn implementation forMemoryUtilizationScalingProps
- 
Method SummaryModifier and TypeMethodDescriptionbuilder()The target value for memory utilization across all tasks in the service.Methods inherited from interface software.amazon.awscdk.services.applicationautoscaling.BaseTargetTrackingPropsgetDisableScaleIn, getPolicyName, getScaleInCooldown, getScaleOutCooldownMethods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Method Details- 
getTargetUtilizationPercentThe target value for memory utilization across all tasks in the service.
- 
builder
 
-