Skip to content
v2.277.0

ScalingPolicyReference Struct ​

A reference to a ScalingPolicy resource.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_applicationautoscaling as interfaces_applicationautoscaling } from 'aws-cdk-lib/interfaces';
const scalingPolicyReference: interfaces_applicationautoscaling.ScalingPolicyReference = {
  scalableDimension: 'scalableDimension',
  scalingPolicyArn: 'scalingPolicyArn',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.interfaces import aws_applicationautoscaling as interfaces_applicationautoscaling

scaling_policy_reference = interfaces_applicationautoscaling.ScalingPolicyReference(
    scalable_dimension="scalableDimension",
    scaling_policy_arn="scalingPolicyArn"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.interfaces.applicationautoscaling.*;

ScalingPolicyReference scalingPolicyReference = ScalingPolicyReference.builder()
        .scalableDimension("scalableDimension")
        .scalingPolicyArn("scalingPolicyArn")
        .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.Interfaces.ApplicationAutoScaling;

var scalingPolicyReference = new ScalingPolicyReference {
    ScalableDimension = "scalableDimension",
    ScalingPolicyArn = "scalingPolicyArn"
};
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"

scalingPolicyReference := &ScalingPolicyReference{
	ScalableDimension: jsii.String("scalableDimension"),
	ScalingPolicyArn: jsii.String("scalingPolicyArn"),
}

Properties ​

scalableDimensionstringscalable_dimensionstrscalableDimensionStringScalableDimensionstringScalableDimension*stringrequired#
The ScalableDimension of the ScalingPolicy resource.
scalingPolicyArnstringscaling_policy_arnstrscalingPolicyArnStringScalingPolicyArnstringScalingPolicyArn*stringrequired#
The Arn of the ScalingPolicy resource.