Skip to content
v2.276.0

ScalableTargetAttributes Struct ​

Attributes for importing a scalable target.

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 appscaling } from 'aws-cdk-lib';
const scalableTargetAttributes: appscaling.ScalableTargetAttributes = {
  scalableDimension: 'scalableDimension',
  scalableTargetId: 'scalableTargetId',
  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 import aws_applicationautoscaling as appscaling

scalable_target_attributes = appscaling.ScalableTargetAttributes(
    scalable_dimension="scalableDimension",
    scalable_target_id="scalableTargetId",
    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.services.applicationautoscaling.*;

ScalableTargetAttributes scalableTargetAttributes = ScalableTargetAttributes.builder()
        .scalableDimension("scalableDimension")
        .scalableTargetId("scalableTargetId")
        .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.AWS.ApplicationAutoScaling;

var scalableTargetAttributes = new ScalableTargetAttributes {
    ScalableDimension = "scalableDimension",
    ScalableTargetId = "scalableTargetId",
    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"

scalableTargetAttributes := &ScalableTargetAttributes{
	ScalableDimension: jsii.String("scalableDimension"),
	ScalableTargetId: jsii.String("scalableTargetId"),
	ServiceNamespace: jsii.String("serviceNamespace"),
}

Properties ​

scalableDimensionstringscalable_dimensionstrscalableDimensionStringScalableDimensionstringScalableDimension*stringrequired#
The scalable dimension that's associated with the scalable target.
scalableTargetIdstringscalable_target_idstrscalableTargetIdStringScalableTargetIdstringScalableTargetId*stringrequired#
The scalable target ID.
serviceNamespacestringservice_namespacestrserviceNamespaceStringServiceNamespacestringServiceNamespace*stringrequired#
The namespace of the AWS service that provides the resource.