Table of Contents

Class RequestCountScalingProps

Namespace
Amazon.CDK.AWS.AutoScaling
Assembly
Amazon.CDK.AWS.AutoScaling.dll

Properties for enabling scaling based on request/second.

public class RequestCountScalingProps : IRequestCountScalingProps, IBaseTargetTrackingProps
Inheritance
RequestCountScalingProps
Implements
Inherited Members

Examples

AutoScalingGroup autoScalingGroup;


            autoScalingGroup.ScaleOnRequestCount("LimitRPS", new RequestCountScalingProps {
                TargetRequestsPerSecond = 1000
            });

Remarks

ExampleMetadata: infused

Constructors

RequestCountScalingProps()

public RequestCountScalingProps()

Properties

Cooldown

Period after a scaling completes before another scaling activity can start.

public Duration? Cooldown { get; set; }

Property Value

Duration

Remarks

Default: - The default cooldown configured on the AutoScalingGroup.

DisableScaleIn

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

public bool? DisableScaleIn { get; set; }

Property Value

bool?

Remarks

If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the autoscaling group. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the group.

Default: false

EstimatedInstanceWarmup

Estimated time until a newly launched instance can send metrics to CloudWatch.

public Duration? EstimatedInstanceWarmup { get; set; }

Property Value

Duration

Remarks

Default: - Same as the cooldown.

TargetRequestsPerMinute

Target average requests/minute on each instance.

public double? TargetRequestsPerMinute { get; set; }

Property Value

double?

Remarks

Default: - Specify exactly one of 'targetRequestsPerMinute' and 'targetRequestsPerSecond'

TargetRequestsPerSecond

(deprecated) Target average requests/seconds on each instance.

[Obsolete("Use 'targetRequestsPerMinute' instead")]
public double? TargetRequestsPerSecond { get; set; }

Property Value

double?

Remarks

Default: - Specify exactly one of 'targetRequestsPerMinute' and 'targetRequestsPerSecond'

Stability: Deprecated