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 in other services.
Example
// 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_applicationautoscaling as appscaling } from 'aws-cdk-lib';
const baseTargetTrackingProps: appscaling.BaseTargetTrackingProps = {
disableScaleIn: false,
policyName: 'policyName',
scaleInCooldown: cdk.Duration.minutes(30),
scaleOutCooldown: cdk.Duration.minutes(30),
};
Properties
disableScaleInbooleandisable_scale_inbooldisableScaleInBooleanDisableScaleInboolDisableScaleIn*bool= false#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.
policyNamestringpolicy_namestrpolicyNameStringPolicyNamestringPolicyName*string= Automatically generated name.#scaleInCooldownDurationscale_in_cooldownDurationscaleInCooldownDurationScaleInCooldownDurationScaleInCooldownDuration= Duration.seconds(300) for the fo…#default
Default: Duration.seconds(300) for the following scalable targets: ECS services, Spot Fleet requests, EMR clusters, AppStream 2.0 fleets, Aurora DB clusters, Amazon SageMaker endpoint variants, Custom resources. For all other scalable targets, the default value is Duration.seconds(0): DynamoDB tables, DynamoDB global secondary indexes, Amazon Comprehend document classification endpoints, Lambda provisioned concurrency
scaleOutCooldownDurationscale_out_cooldownDurationscaleOutCooldownDurationScaleOutCooldownDurationScaleOutCooldownDuration= Duration.seconds(300) for the fo…#default
Default: Duration.seconds(300) for the following scalable targets: ECS services, Spot Fleet requests, EMR clusters, AppStream 2.0 fleets, Aurora DB clusters, Amazon SageMaker endpoint variants, Custom resources. For all other scalable targets, the default value is Duration.seconds(0): DynamoDB tables, DynamoDB global secondary indexes, Amazon Comprehend document classification endpoints, Lambda provisioned concurrency