# CfnBudgetProps

Properties for defining a `CfnBudget`.

Used as props by: [CfnBudget](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_budgets.CfnBudget.html)

- Source: Generated at build time
- Type last changed: v2.275.0 · 26 Oct 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_budgets as budgets } from 'aws-cdk-lib';

declare const costFilters: any;
declare const expressionProperty_: budgets.CfnBudget.ExpressionProperty;
declare const plannedBudgetLimits: any;
const cfnBudgetProps: budgets.CfnBudgetProps = {
  budget: {
    budgetType: 'budgetType',
    timeUnit: 'timeUnit',

    // the properties below are optional
    autoAdjustData: {
      autoAdjustType: 'autoAdjustType',

      // the properties below are optional
      historicalOptions: {
        budgetAdjustmentPeriod: 123,
      },
    },
    billingViewArn: 'billingViewArn',
    budgetLimit: {
      amount: 123,
      unit: 'unit',
    },
    budgetName: 'budgetName',
    costFilters: costFilters,
    costTypes: {
      includeCredit: false,
      includeDiscount: false,
      includeOtherSubscription: false,
      includeRecurring: false,
      includeRefund: false,
      includeSubscription: false,
      includeSupport: false,
      includeTax: false,
      includeUpfront: false,
      useAmortized: false,
      useBlended: false,
    },
    filterExpression: {
      and: [expressionProperty_],
      costCategories: {
        key: 'key',
        matchOptions: ['matchOptions'],
        values: ['values'],
      },
      dimensions: {
        key: 'key',
        matchOptions: ['matchOptions'],
        values: ['values'],
      },
      not: expressionProperty_,
      or: [expressionProperty_],
      tags: {
        key: 'key',
        matchOptions: ['matchOptions'],
        values: ['values'],
      },
    },
    metrics: ['metrics'],
    plannedBudgetLimits: plannedBudgetLimits,
    timePeriod: {
      end: 'end',
      start: 'start',
    },
  },

  // the properties below are optional
  notificationsWithSubscribers: [{
    notification: {
      comparisonOperator: 'comparisonOperator',
      notificationType: 'notificationType',
      threshold: 123,

      // the properties below are optional
      thresholdType: 'thresholdType',
    },
    subscribers: [{
      address: 'address',
      subscriptionType: 'subscriptionType',
    }],
  }],
  resourceTags: [{
    key: 'key',

    // the properties below are optional
    value: 'value',
  }],
};
```

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

# cost_filters: Any
# expression_property_: budgets.CfnBudget.ExpressionProperty
# planned_budget_limits: Any

cfn_budget_props = budgets.CfnBudgetProps(
    budget=budgets.CfnBudget.BudgetDataProperty(
        budget_type="budgetType",
        time_unit="timeUnit",

        # the properties below are optional
        auto_adjust_data=budgets.CfnBudget.AutoAdjustDataProperty(
            auto_adjust_type="autoAdjustType",

            # the properties below are optional
            historical_options=budgets.CfnBudget.HistoricalOptionsProperty(
                budget_adjustment_period=123
            )
        ),
        billing_view_arn="billingViewArn",
        budget_limit=budgets.CfnBudget.SpendProperty(
            amount=123,
            unit="unit"
        ),
        budget_name="budgetName",
        cost_filters=cost_filters,
        cost_types=budgets.CfnBudget.CostTypesProperty(
            include_credit=False,
            include_discount=False,
            include_other_subscription=False,
            include_recurring=False,
            include_refund=False,
            include_subscription=False,
            include_support=False,
            include_tax=False,
            include_upfront=False,
            use_amortized=False,
            use_blended=False
        ),
        filter_expression=budgets.CfnBudget.ExpressionProperty(
            and=[expression_property_],
            cost_categories=budgets.CfnBudget.CostCategoryValuesProperty(
                key="key",
                match_options=["matchOptions"],
                values=["values"]
            ),
            dimensions=budgets.CfnBudget.ExpressionDimensionValuesProperty(
                key="key",
                match_options=["matchOptions"],
                values=["values"]
            ),
            not=expression_property_,
            or=[expression_property_],
            tags=budgets.CfnBudget.TagValuesProperty(
                key="key",
                match_options=["matchOptions"],
                values=["values"]
            )
        ),
        metrics=["metrics"],
        planned_budget_limits=planned_budget_limits,
        time_period=budgets.CfnBudget.TimePeriodProperty(
            end="end",
            start="start"
        )
    ),

    # the properties below are optional
    notifications_with_subscribers=[budgets.CfnBudget.NotificationWithSubscribersProperty(
        notification=budgets.CfnBudget.NotificationProperty(
            comparison_operator="comparisonOperator",
            notification_type="notificationType",
            threshold=123,

            # the properties below are optional
            threshold_type="thresholdType"
        ),
        subscribers=[budgets.CfnBudget.SubscriberProperty(
            address="address",
            subscription_type="subscriptionType"
        )]
    )],
    resource_tags=[budgets.CfnBudget.ResourceTagProperty(
        key="key",

        # the properties below are optional
        value="value"
    )]
)
```

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

Object costFilters;
ExpressionProperty expressionProperty_;
Object plannedBudgetLimits;

CfnBudgetProps cfnBudgetProps = CfnBudgetProps.builder()
        .budget(BudgetDataProperty.builder()
                .budgetType("budgetType")
                .timeUnit("timeUnit")

                // the properties below are optional
                .autoAdjustData(AutoAdjustDataProperty.builder()
                        .autoAdjustType("autoAdjustType")

                        // the properties below are optional
                        .historicalOptions(HistoricalOptionsProperty.builder()
                                .budgetAdjustmentPeriod(123)
                                .build())
                        .build())
                .billingViewArn("billingViewArn")
                .budgetLimit(SpendProperty.builder()
                        .amount(123)
                        .unit("unit")
                        .build())
                .budgetName("budgetName")
                .costFilters(costFilters)
                .costTypes(CostTypesProperty.builder()
                        .includeCredit(false)
                        .includeDiscount(false)
                        .includeOtherSubscription(false)
                        .includeRecurring(false)
                        .includeRefund(false)
                        .includeSubscription(false)
                        .includeSupport(false)
                        .includeTax(false)
                        .includeUpfront(false)
                        .useAmortized(false)
                        .useBlended(false)
                        .build())
                .filterExpression(ExpressionProperty.builder()
                        .and(List.of(expressionProperty_))
                        .costCategories(CostCategoryValuesProperty.builder()
                                .key("key")
                                .matchOptions(List.of("matchOptions"))
                                .values(List.of("values"))
                                .build())
                        .dimensions(ExpressionDimensionValuesProperty.builder()
                                .key("key")
                                .matchOptions(List.of("matchOptions"))
                                .values(List.of("values"))
                                .build())
                        .not(expressionProperty_)
                        .or(List.of(expressionProperty_))
                        .tags(TagValuesProperty.builder()
                                .key("key")
                                .matchOptions(List.of("matchOptions"))
                                .values(List.of("values"))
                                .build())
                        .build())
                .metrics(List.of("metrics"))
                .plannedBudgetLimits(plannedBudgetLimits)
                .timePeriod(TimePeriodProperty.builder()
                        .end("end")
                        .start("start")
                        .build())
                .build())

        // the properties below are optional
        .notificationsWithSubscribers(List.of(NotificationWithSubscribersProperty.builder()
                .notification(NotificationProperty.builder()
                        .comparisonOperator("comparisonOperator")
                        .notificationType("notificationType")
                        .threshold(123)

                        // the properties below are optional
                        .thresholdType("thresholdType")
                        .build())
                .subscribers(List.of(SubscriberProperty.builder()
                        .address("address")
                        .subscriptionType("subscriptionType")
                        .build()))
                .build()))
        .resourceTags(List.of(ResourceTagProperty.builder()
                .key("key")

                // the properties below are optional
                .value("value")
                .build()))
        .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 costFilters;
ExpressionProperty expressionProperty_;
var plannedBudgetLimits;

var cfnBudgetProps = new CfnBudgetProps {
    Budget = new BudgetDataProperty {
        BudgetType = "budgetType",
        TimeUnit = "timeUnit",

        // the properties below are optional
        AutoAdjustData = new AutoAdjustDataProperty {
            AutoAdjustType = "autoAdjustType",

            // the properties below are optional
            HistoricalOptions = new HistoricalOptionsProperty {
                BudgetAdjustmentPeriod = 123
            }
        },
        BillingViewArn = "billingViewArn",
        BudgetLimit = new SpendProperty {
            Amount = 123,
            Unit = "unit"
        },
        BudgetName = "budgetName",
        CostFilters = costFilters,
        CostTypes = new CostTypesProperty {
            IncludeCredit = false,
            IncludeDiscount = false,
            IncludeOtherSubscription = false,
            IncludeRecurring = false,
            IncludeRefund = false,
            IncludeSubscription = false,
            IncludeSupport = false,
            IncludeTax = false,
            IncludeUpfront = false,
            UseAmortized = false,
            UseBlended = false
        },
        FilterExpression = new ExpressionProperty {
            And = new [] { expressionProperty_ },
            CostCategories = new CostCategoryValuesProperty {
                Key = "key",
                MatchOptions = new [] { "matchOptions" },
                Values = new [] { "values" }
            },
            Dimensions = new ExpressionDimensionValuesProperty {
                Key = "key",
                MatchOptions = new [] { "matchOptions" },
                Values = new [] { "values" }
            },
            Not = expressionProperty_,
            Or = new [] { expressionProperty_ },
            Tags = new TagValuesProperty {
                Key = "key",
                MatchOptions = new [] { "matchOptions" },
                Values = new [] { "values" }
            }
        },
        Metrics = new [] { "metrics" },
        PlannedBudgetLimits = plannedBudgetLimits,
        TimePeriod = new TimePeriodProperty {
            End = "end",
            Start = "start"
        }
    },

    // the properties below are optional
    NotificationsWithSubscribers = new [] { new NotificationWithSubscribersProperty {
        Notification = new NotificationProperty {
            ComparisonOperator = "comparisonOperator",
            NotificationType = "notificationType",
            Threshold = 123,

            // the properties below are optional
            ThresholdType = "thresholdType"
        },
        Subscribers = new [] { new SubscriberProperty {
            Address = "address",
            SubscriptionType = "subscriptionType"
        } }
    } },
    ResourceTags = new [] { new ResourceTagProperty {
        Key = "key",

        // the properties below are optional
        Value = "value"
    } }
};
```

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"

var costFilters interface{}
var expressionProperty_ ExpressionProperty
var plannedBudgetLimits interface{}

cfnBudgetProps := &CfnBudgetProps{
	Budget: &BudgetDataProperty{
		BudgetType: jsii.String("budgetType"),
		TimeUnit: jsii.String("timeUnit"),

		// the properties below are optional
		AutoAdjustData: &AutoAdjustDataProperty{
			AutoAdjustType: jsii.String("autoAdjustType"),

			// the properties below are optional
			HistoricalOptions: &HistoricalOptionsProperty{
				BudgetAdjustmentPeriod: jsii.Number(123),
			},
		},
		BillingViewArn: jsii.String("billingViewArn"),
		BudgetLimit: &SpendProperty{
			Amount: jsii.Number(123),
			Unit: jsii.String("unit"),
		},
		BudgetName: jsii.String("budgetName"),
		CostFilters: costFilters,
		CostTypes: &CostTypesProperty{
			IncludeCredit: jsii.Boolean(false),
			IncludeDiscount: jsii.Boolean(false),
			IncludeOtherSubscription: jsii.Boolean(false),
			IncludeRecurring: jsii.Boolean(false),
			IncludeRefund: jsii.Boolean(false),
			IncludeSubscription: jsii.Boolean(false),
			IncludeSupport: jsii.Boolean(false),
			IncludeTax: jsii.Boolean(false),
			IncludeUpfront: jsii.Boolean(false),
			UseAmortized: jsii.Boolean(false),
			UseBlended: jsii.Boolean(false),
		},
		FilterExpression: &ExpressionProperty{
			And: []interface{}{
				expressionProperty_,
			},
			CostCategories: &CostCategoryValuesProperty{
				Key: jsii.String("key"),
				MatchOptions: []*string{
					jsii.String("matchOptions"),
				},
				Values: []*string{
					jsii.String("values"),
				},
			},
			Dimensions: &ExpressionDimensionValuesProperty{
				Key: jsii.String("key"),
				MatchOptions: []*string{
					jsii.String("matchOptions"),
				},
				Values: []*string{
					jsii.String("values"),
				},
			},
			Not: expressionProperty_,
			Or: []interface{}{
				expressionProperty_,
			},
			Tags: &TagValuesProperty{
				Key: jsii.String("key"),
				MatchOptions: []*string{
					jsii.String("matchOptions"),
				},
				Values: []*string{
					jsii.String("values"),
				},
			},
		},
		Metrics: []*string{
			jsii.String("metrics"),
		},
		PlannedBudgetLimits: plannedBudgetLimits,
		TimePeriod: &TimePeriodProperty{
			End: jsii.String("end"),
			Start: jsii.String("start"),
		},
	},

	// the properties below are optional
	NotificationsWithSubscribers: []interface{}{
		&NotificationWithSubscribersProperty{
			Notification: &NotificationProperty{
				ComparisonOperator: jsii.String("comparisonOperator"),
				NotificationType: jsii.String("notificationType"),
				Threshold: jsii.Number(123),

				// the properties below are optional
				ThresholdType: jsii.String("thresholdType"),
			},
			Subscribers: []interface{}{
				&SubscriberProperty{
					Address: jsii.String("address"),
					SubscriptionType: jsii.String("subscriptionType"),
				},
			},
		},
	},
	ResourceTags: []ResourceTagProperty{
		&ResourceTagProperty{
			Key: jsii.String("key"),

			// the properties below are optional
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `budget`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBudget.BudgetDataProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_budgets.CfnBudget.BudgetDataProperty.html) (required) — The budget object that you want to create.

- `notificationsWithSubscribers`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBudget.NotificationWithSubscribersProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_budgets.CfnBudget.NotificationWithSubscribersProperty.html)[] — A notification that you want to associate with a budget.

  A budget can have up to five notifications, and each notification can have one SNS subscriber and up to 10 email subscribers. If you include notifications and subscribers in your `CreateBudget` call, AWS creates the notifications and subscribers for you.

- `resourceTags`: [CfnBudget.ResourceTagProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_budgets.CfnBudget.ResourceTagProperty.html)[] — An optional list of tags to associate with the specified budget.

  Each tag consists of a key and a value, and each key must be unique for the resource.
