# HistoricalOptionsProperty

The parameters that define or describe the historical data that your auto-adjusting budget is based on.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_budgets as budgets } from 'aws-cdk-lib';
const historicalOptionsProperty: budgets.CfnBudget.HistoricalOptionsProperty = {
  budgetAdjustmentPeriod: 123,
};
```

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_budgets as budgets

historical_options_property = budgets.CfnBudget.HistoricalOptionsProperty(
    budget_adjustment_period=123
)
```

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.budgets.*;

HistoricalOptionsProperty historicalOptionsProperty = HistoricalOptionsProperty.builder()
        .budgetAdjustmentPeriod(123)
        .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.Budgets;

var historicalOptionsProperty = new HistoricalOptionsProperty {
    BudgetAdjustmentPeriod = 123
};
```

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"

historicalOptionsProperty := &HistoricalOptionsProperty{
	BudgetAdjustmentPeriod: jsii.Number(123),
}
```

## Properties

- `budgetAdjustmentPeriod`: number (required) — The number of budget periods included in the moving-average calculation that determines your auto-adjusted budget amount.

  The maximum value depends on the `TimeUnit` granularity of the budget:

  - For the `DAILY` granularity, the maximum value is `60` .
  - For the `MONTHLY` granularity, the maximum value is `12` .
  - For the `QUARTERLY` granularity, the maximum value is `4` .
  - For the `ANNUALLY` granularity, the maximum value is `1` .
