# ScalableTargetReference

A reference to a ScalableTarget resource.

- Source: Generated at build time
- Type last changed: v2.224.0 · 13 Nov 2025

## 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 interfaces_applicationautoscaling } from 'aws-cdk-lib/interfaces';
const scalableTargetReference: interfaces_applicationautoscaling.ScalableTargetReference = {
  resourceId: 'resourceId',
  scalableDimension: 'scalableDimension',
  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.interfaces import aws_applicationautoscaling as interfaces_applicationautoscaling

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

ScalableTargetReference scalableTargetReference = ScalableTargetReference.builder()
        .resourceId("resourceId")
        .scalableDimension("scalableDimension")
        .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.Interfaces.ApplicationAutoScaling;

var scalableTargetReference = new ScalableTargetReference {
    ResourceId = "resourceId",
    ScalableDimension = "scalableDimension",
    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"

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

## Properties

- `resourceId`: string (required) — The ResourceId of the ScalableTarget resource.

- `scalableDimension`: string (required) — The ScalableDimension of the ScalableTarget resource.

- `serviceNamespace`: string (required) — The ServiceNamespace of the ScalableTarget resource.
