# ScalableTargetAttributes

Attributes for importing a scalable target.

Used as argument in: [ScalableTarget.fromScalableTargetAttributes](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_applicationautoscaling.ScalableTarget.html#fromscalabletargetattributes)

- Source: [`aws-applicationautoscaling/lib/scalable-target.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-applicationautoscaling/lib/scalable-target.ts#L85)
- Type last changed: v2.234.0 · 8 Jan 2026

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `scalableDimension`: string (required) — The scalable dimension that's associated with the scalable target.

- `scalableTargetId`: string (required) — The scalable target ID.

- `serviceNamespace`: string (required) — The namespace of the AWS service that provides the resource.
