Skip to content
v2.276.0

ScalableTargetReference Struct ​

A reference to a ScalableTarget 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 scalableTargetReference: interfaces_applicationautoscaling.ScalableTargetReference = {
  resourceId: 'resourceId',
  scalableDimension: 'scalableDimension',
  serviceNamespace: 'serviceNamespace',
};
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

scalable_target_reference = interfaces_applicationautoscaling.ScalableTargetReference(
    resource_id="resourceId",
    scalable_dimension="scalableDimension",
    service_namespace="serviceNamespace"
)
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.*;

ScalableTargetReference scalableTargetReference = ScalableTargetReference.builder()
        .resourceId("resourceId")
        .scalableDimension("scalableDimension")
        .serviceNamespace("serviceNamespace")
        .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 scalableTargetReference = new ScalableTargetReference {
    ResourceId = "resourceId",
    ScalableDimension = "scalableDimension",
    ServiceNamespace = "serviceNamespace"
};
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"

scalableTargetReference := &ScalableTargetReference{
	ResourceId: jsii.String("resourceId"),
	ScalableDimension: jsii.String("scalableDimension"),
	ServiceNamespace: jsii.String("serviceNamespace"),
}

Properties ​

resourceIdstringresource_idstrresourceIdStringResourceIdstringResourceId*stringrequired#
The ResourceId of the ScalableTarget resource.
scalableDimensionstringscalable_dimensionstrscalableDimensionStringScalableDimensionstringScalableDimension*stringrequired#
The ScalableDimension of the ScalableTarget resource.
serviceNamespacestringservice_namespacestrserviceNamespaceStringServiceNamespacestringServiceNamespace*stringrequired#
The ServiceNamespace of the ScalableTarget resource.