# HpaScalingPolicyV2 Properties

- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Type: [HpaScalingPolicyV2](/reference/api/csharp/aspire.hosting.kubernetes/hpascalingpolicyv2.md)
- Kind: `Properties`
- Members: `3`

Represents the scaling policy configuration for Kubernetes Horizontal Pod Autoscaler (HPA) in version 2 API.

## PeriodSeconds

- Name: `PeriodSeconds`
- Modifiers: `get; set`
- Returns: `int`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/HPAScalingPolicyV2.cs)

Gets or sets the duration, in seconds, for which the scaling policy is applicable. This value defines the time window during which a HPA scaling action is restricted.

```csharp
public int PeriodSeconds { get; set; }
```

## Type

- Name: `Type`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/HPAScalingPolicyV2.cs)

Represents the scaling policy type for the Horizontal Pod Autoscaler (HPA) in Kubernetes. This property determines the strategy to be used for scaling, such as increasing or decreasing replicas.

```csharp
public string Type { get; set; }
```

## Value

- Name: `Value`
- Modifiers: `get; set`
- Returns: `int`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/HPAScalingPolicyV2.cs)

Gets or sets the scaling value used in the Horizontal Pod Autoscaler (HPA) scaling policy. Specifies the magnitude of scaling changes to be applied by the policy.

```csharp
public int Value { get; set; }
```
