Interface BaseTargetTrackingProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
BasicTargetTrackingScalingPolicyProps
,CpuUtilizationScalingProps
,MemoryUtilizationScalingProps
,RequestCountScalingProps
,TargetTrackingScalingPolicyProps
,TrackCustomMetricProps
,UtilizationScalingOptions
,UtilizationScalingProps
- All Known Implementing Classes:
BaseTargetTrackingProps.Jsii$Proxy
,BasicTargetTrackingScalingPolicyProps.Jsii$Proxy
,CpuUtilizationScalingProps.Jsii$Proxy
,MemoryUtilizationScalingProps.Jsii$Proxy
,RequestCountScalingProps.Jsii$Proxy
,TargetTrackingScalingPolicyProps.Jsii$Proxy
,TrackCustomMetricProps.Jsii$Proxy
,UtilizationScalingOptions.Jsii$Proxy
,UtilizationScalingProps.Jsii$Proxy
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 software.amazon.awscdk.services.applicationautoscaling.*; import software.amazon.awscdk.core.*; BaseTargetTrackingProps baseTargetTrackingProps = BaseTargetTrackingProps.builder() .disableScaleIn(false) .policyName("policyName") .scaleInCooldown(Duration.minutes(30)) .scaleOutCooldown(Duration.minutes(30)) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forBaseTargetTrackingProps
static final class
An implementation forBaseTargetTrackingProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Boolean
Indicates whether scale in by the target tracking policy is disabled.default String
A name for the scaling policy.default Duration
Period after a scale in activity completes before another scale in activity can start.default Duration
Period after a scale out activity completes before another scale out activity can start.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDisableScaleIn
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 scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource.
Default: false
-
getPolicyName
A name for the scaling policy.Default: - Automatically generated name.
-
getScaleInCooldown
Period after a scale in activity completes before another scale in activity can start.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
-
getScaleOutCooldown
Period after a scale out activity completes before another scale out activity can start.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
-
builder
- Returns:
- a
BaseTargetTrackingProps.Builder
ofBaseTargetTrackingProps
-