BaseTargetTrackingProps Struct
Base interface for target tracking props.
Contains the attributes that are common to target tracking policies, except the ones relating to the metric and to the scalable target.
This interface is reused by more specific target tracking props objects.
| Source | aws-autoscaling/lib/target-tracking-scaling-policy.ts |
|---|
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
import { aws_autoscaling as autoscaling } from 'aws-cdk-lib';
const baseTargetTrackingProps: autoscaling.BaseTargetTrackingProps = {
cooldown: cdk.Duration.minutes(30),
disableScaleIn: false,
estimatedInstanceWarmup: cdk.Duration.minutes(30),
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
from aws_cdk import aws_autoscaling as autoscaling
base_target_tracking_props = autoscaling.BaseTargetTrackingProps(
cooldown=cdk.Duration.minutes(30),
disable_scale_in=False,
estimated_instance_warmup=cdk.Duration.minutes(30)
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.autoscaling.*;
BaseTargetTrackingProps baseTargetTrackingProps = BaseTargetTrackingProps.builder()
.cooldown(Duration.minutes(30))
.disableScaleIn(false)
.estimatedInstanceWarmup(Duration.minutes(30))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
using Amazon.CDK.AWS.AutoScaling;
var baseTargetTrackingProps = new BaseTargetTrackingProps {
Cooldown = Duration.Minutes(30),
DisableScaleIn = false,
EstimatedInstanceWarmup = Duration.Minutes(30)
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
baseTargetTrackingProps := &BaseTargetTrackingProps{
Cooldown: cdk.Duration_Minutes(jsii.Number(30)),
DisableScaleIn: jsii.Boolean(false),
EstimatedInstanceWarmup: cdk.Duration_*Minutes(jsii.Number(30)),
}
Properties
cooldownoptionalDurationcooldownoptionalDurationcooldownoptionalDurationCooldownoptionalDurationCooldownoptionalDuration #Period after a scaling completes before another scaling activity can start.
Default: The default cooldown configured on the AutoScalingGroup.
disableScaleInoptionalbooleandisable_scale_inoptionalbooldisableScaleInoptionalBooleanDisableScaleInoptionalboolDisableScaleInoptional*bool = false #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 autoscaling group. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the group.
estimatedInstanceWarmupoptionalDurationestimated_instance_warmupoptionalDurationestimatedInstanceWarmupoptionalDurationEstimatedInstanceWarmupoptionalDurationEstimatedInstanceWarmupoptionalDuration #Estimated time until a newly launched instance can send metrics to CloudWatch.
Default: Same as the cooldown.