createBudget
inline suspend fun BudgetsClient.createBudget(crossinline block: CreateBudgetRequest.Builder.() -> Unit): CreateBudgetResponse
Creates a budget and, if included, notifications and subscribers.
Only one of BudgetLimit
or PlannedBudgetLimits
can be present in the syntax at one time. Use the syntax that matches your use case. The Request Syntax section shows the BudgetLimit
syntax. For PlannedBudgetLimits
, see the Examples section.
Similarly, only one set of filter and metric selections can be present in the syntax at one time. Either FilterExpression
and Metrics
or CostFilters
and CostTypes
, not both or a different combination. We recommend using FilterExpression
and Metrics
as they provide more flexible and powerful filtering capabilities. The Request Syntax section shows the FilterExpression
/Metrics
syntax.