interface CfnBudgetProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Budgets.CfnBudgetProps |
![]() | software.amazon.awscdk.services.budgets.CfnBudgetProps |
![]() | aws_cdk.aws_budgets.CfnBudgetProps |
![]() | @aws-cdk/aws-budgets » CfnBudgetProps |
Properties for defining a CfnBudget
.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as budgets from '@aws-cdk/aws-budgets';
declare const costFilters: any;
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,
},
},
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,
},
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',
}],
}],
};
Properties
Name | Type | Description |
---|---|---|
budget | Budget | IResolvable | The budget object that you want to create. |
notifications | IResolvable | IResolvable | Notification [] | A notification that you want to associate with a budget. |
budget
Type:
Budget
|
IResolvable
The budget object that you want to create.
notificationsWithSubscribers?
Type:
IResolvable
|
IResolvable
|
Notification
[]
(optional)
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.