Interface IBaseTargetTrackingProps
Base interface for target tracking props.
Namespace: Amazon.CDK.AWS.ApplicationAutoScaling
Assembly: Amazon.CDK.AWS.ApplicationAutoScaling.dll
Syntax (csharp)
public interface IBaseTargetTrackingProps
Syntax (vb)
Public Interface IBaseTargetTrackingProps
Remarks
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.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ApplicationAutoScaling;
using Amazon.CDK;
var baseTargetTrackingProps = new BaseTargetTrackingProps {
DisableScaleIn = false,
PolicyName = "policyName",
ScaleInCooldown = Duration.Minutes(30),
ScaleOutCooldown = Duration.Minutes(30)
};
Synopsis
Properties
DisableScaleIn | Indicates whether scale in by the target tracking policy is disabled. |
PolicyName | A name for the scaling policy. |
ScaleInCooldown | Period after a scale in activity completes before another scale in activity can start. |
ScaleOutCooldown | Period after a scale out activity completes before another scale out activity can start. |
Properties
DisableScaleIn
Indicates whether scale in by the target tracking policy is disabled.
virtual Nullable<bool> DisableScaleIn { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
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.
Default: false
PolicyName
A name for the scaling policy.
virtual string PolicyName { get; }
Property Value
System.String
Remarks
Default: - Automatically generated name.
ScaleInCooldown
Period after a scale in activity completes before another scale in activity can start.
virtual Duration ScaleInCooldown { get; }
Property Value
Remarks
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
ScaleOutCooldown
Period after a scale out activity completes before another scale out activity can start.
virtual Duration ScaleOutCooldown { get; }
Property Value
Remarks
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