# HorizontalPodAutoscalerSpecV2 Constructors

- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Type: [HorizontalPodAutoscalerSpecV2](/reference/api/csharp/aspire.hosting.kubernetes/horizontalpodautoscalerspecv2.md)
- Kind: `Constructors`
- Members: `1`

Represents the specification for a Horizontal Pod Autoscaler (HPA) in version v2 of the Kubernetes Autoscaling API. Provides configuration settings for scaling behavior, target resource, metrics, and replica limits.

## HorizontalPodAutoscalerSpecV2

- Name: `Constructor`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/HorizontalPodAutoscalerSpecV2.cs#L23-L55)

```csharp
public sealed class HorizontalPodAutoscalerSpecV2
{
    public HorizontalPodAutoscalerSpecV2()
    {
        // ...
    }
}
```
