Skip to content
v2.278.0

TargetTrackingScalingPolicyConfigurationProperty Struct ​

Defines a target tracking scaling policy.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_dynamodb as dynamodb } from 'aws-cdk-lib';
const targetTrackingScalingPolicyConfigurationProperty: dynamodb.CfnGlobalTable.TargetTrackingScalingPolicyConfigurationProperty = {
  targetValue: 123,

  // the properties below are optional
  disableScaleIn: false,
  scaleInCooldown: 123,
  scaleOutCooldown: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_dynamodb as dynamodb

target_tracking_scaling_policy_configuration_property = dynamodb.CfnGlobalTable.TargetTrackingScalingPolicyConfigurationProperty(
    target_value=123,

    # the properties below are optional
    disable_scale_in=False,
    scale_in_cooldown=123,
    scale_out_cooldown=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.dynamodb.*;

TargetTrackingScalingPolicyConfigurationProperty targetTrackingScalingPolicyConfigurationProperty = TargetTrackingScalingPolicyConfigurationProperty.builder()
        .targetValue(123)

        // the properties below are optional
        .disableScaleIn(false)
        .scaleInCooldown(123)
        .scaleOutCooldown(123)
        .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.AWS.DynamoDB;

var targetTrackingScalingPolicyConfigurationProperty = new TargetTrackingScalingPolicyConfigurationProperty {
    TargetValue = 123,

    // the properties below are optional
    DisableScaleIn = false,
    ScaleInCooldown = 123,
    ScaleOutCooldown = 123
};
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"

targetTrackingScalingPolicyConfigurationProperty := &TargetTrackingScalingPolicyConfigurationProperty{
	TargetValue: jsii.Number(123),

	// the properties below are optional
	DisableScaleIn: jsii.Boolean(false),
	ScaleInCooldown: jsii.Number(123),
	ScaleOutCooldown: jsii.Number(123),
}

Properties ​

disableScaleInoptionalboolean | IResolvabledisable_scale_inoptionaltyping.Union[bool, IResolvable]disableScaleInoptionalBooleanDisableScaleInoptionalboolDisableScaleInoptionalinterface{} #
Indicates whether scale in by the target tracking scaling policy is disabled.

The default value is false .

scaleInCooldownoptionalnumberscale_in_cooldownoptionalint | floatscaleInCooldownoptionalNumberScaleInCooldownoptionaldoubleScaleInCooldownoptional*float64 #
The amount of time, in seconds, after a scale-in activity completes before another scale-in activity can start.
scaleOutCooldownoptionalnumberscale_out_cooldownoptionalint | floatscaleOutCooldownoptionalNumberScaleOutCooldownoptionaldoubleScaleOutCooldownoptional*float64 #
The amount of time, in seconds, after a scale-out activity completes before another scale-out activity can start.
targetValuenumbertarget_valueint | floattargetValueNumberTargetValuedoubleTargetValue*float64 required #
Defines a target value for the scaling policy.