Viewing docs for Datadog v4.68.0
published on Wednesday, Feb 25, 2026 by Pulumi
published on Wednesday, Feb 25, 2026 by Pulumi
Viewing docs for Datadog v4.68.0
published on Wednesday, Feb 25, 2026 by Pulumi
published on Wednesday, Feb 25, 2026 by Pulumi
Use this data source to retrieve information about an existing Datadog cost budget.
Using getCostBudget
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getCostBudget(args: GetCostBudgetArgs, opts?: InvokeOptions): Promise<GetCostBudgetResult>
function getCostBudgetOutput(args: GetCostBudgetOutputArgs, opts?: InvokeOptions): Output<GetCostBudgetResult>def get_cost_budget(budget_lines: Optional[Sequence[GetCostBudgetBudgetLine]] = None,
entries: Optional[Sequence[GetCostBudgetEntry]] = None,
id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCostBudgetResult
def get_cost_budget_output(budget_lines: Optional[pulumi.Input[Sequence[pulumi.Input[GetCostBudgetBudgetLineArgs]]]] = None,
entries: Optional[pulumi.Input[Sequence[pulumi.Input[GetCostBudgetEntryArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCostBudgetResult]func LookupCostBudget(ctx *Context, args *LookupCostBudgetArgs, opts ...InvokeOption) (*LookupCostBudgetResult, error)
func LookupCostBudgetOutput(ctx *Context, args *LookupCostBudgetOutputArgs, opts ...InvokeOption) LookupCostBudgetResultOutput> Note: This function is named LookupCostBudget in the Go SDK.
public static class GetCostBudget
{
public static Task<GetCostBudgetResult> InvokeAsync(GetCostBudgetArgs args, InvokeOptions? opts = null)
public static Output<GetCostBudgetResult> Invoke(GetCostBudgetInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCostBudgetResult> getCostBudget(GetCostBudgetArgs args, InvokeOptions options)
public static Output<GetCostBudgetResult> getCostBudget(GetCostBudgetArgs args, InvokeOptions options)
fn::invoke:
function: datadog:index/getCostBudget:getCostBudget
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- The ID of the budget.
- Budget
Lines List<GetCost Budget Budget Line> - Budget entries grouped by tag combination with amounts map (month > amount).
- Entries
List<Get
Cost Budget Entry> - The flat list of budget entries (deprecated - use budget_line instead).
- Id string
- The ID of the budget.
- Budget
Lines []GetCost Budget Budget Line - Budget entries grouped by tag combination with amounts map (month > amount).
- Entries
[]Get
Cost Budget Entry - The flat list of budget entries (deprecated - use budget_line instead).
- id String
- The ID of the budget.
- budget
Lines List<GetCost Budget Budget Line> - Budget entries grouped by tag combination with amounts map (month > amount).
- entries
List<Get
Cost Budget Entry> - The flat list of budget entries (deprecated - use budget_line instead).
- id string
- The ID of the budget.
- budget
Lines GetCost Budget Budget Line[] - Budget entries grouped by tag combination with amounts map (month > amount).
- entries
Get
Cost Budget Entry[] - The flat list of budget entries (deprecated - use budget_line instead).
- id str
- The ID of the budget.
- budget_
lines Sequence[GetCost Budget Budget Line] - Budget entries grouped by tag combination with amounts map (month > amount).
- entries
Sequence[Get
Cost Budget Entry] - The flat list of budget entries (deprecated - use budget_line instead).
- id String
- The ID of the budget.
- budget
Lines List<Property Map> - Budget entries grouped by tag combination with amounts map (month > amount).
- entries List<Property Map>
- The flat list of budget entries (deprecated - use budget_line instead).
getCostBudget Result
The following output properties are available:
- End
Month int - The month when the budget ends (YYYYMM).
- Id string
- The ID of the budget.
- Metrics
Query string - The cost query used to track against the budget.
- Name string
- The name of the budget.
- Start
Month int - The month when the budget starts (YYYYMM).
- Total
Amount double - The sum of all budget entries' amounts.
- Budget
Lines List<GetCost Budget Budget Line> - Budget entries grouped by tag combination with amounts map (month > amount).
- Entries
List<Get
Cost Budget Entry> - The flat list of budget entries (deprecated - use budget_line instead).
- End
Month int - The month when the budget ends (YYYYMM).
- Id string
- The ID of the budget.
- Metrics
Query string - The cost query used to track against the budget.
- Name string
- The name of the budget.
- Start
Month int - The month when the budget starts (YYYYMM).
- Total
Amount float64 - The sum of all budget entries' amounts.
- Budget
Lines []GetCost Budget Budget Line - Budget entries grouped by tag combination with amounts map (month > amount).
- Entries
[]Get
Cost Budget Entry - The flat list of budget entries (deprecated - use budget_line instead).
- end
Month Integer - The month when the budget ends (YYYYMM).
- id String
- The ID of the budget.
- metrics
Query String - The cost query used to track against the budget.
- name String
- The name of the budget.
- start
Month Integer - The month when the budget starts (YYYYMM).
- total
Amount Double - The sum of all budget entries' amounts.
- budget
Lines List<GetCost Budget Budget Line> - Budget entries grouped by tag combination with amounts map (month > amount).
- entries
List<Get
Cost Budget Entry> - The flat list of budget entries (deprecated - use budget_line instead).
- end
Month number - The month when the budget ends (YYYYMM).
- id string
- The ID of the budget.
- metrics
Query string - The cost query used to track against the budget.
- name string
- The name of the budget.
- start
Month number - The month when the budget starts (YYYYMM).
- total
Amount number - The sum of all budget entries' amounts.
- budget
Lines GetCost Budget Budget Line[] - Budget entries grouped by tag combination with amounts map (month > amount).
- entries
Get
Cost Budget Entry[] - The flat list of budget entries (deprecated - use budget_line instead).
- end_
month int - The month when the budget ends (YYYYMM).
- id str
- The ID of the budget.
- metrics_
query str - The cost query used to track against the budget.
- name str
- The name of the budget.
- start_
month int - The month when the budget starts (YYYYMM).
- total_
amount float - The sum of all budget entries' amounts.
- budget_
lines Sequence[GetCost Budget Budget Line] - Budget entries grouped by tag combination with amounts map (month > amount).
- entries
Sequence[Get
Cost Budget Entry] - The flat list of budget entries (deprecated - use budget_line instead).
- end
Month Number - The month when the budget ends (YYYYMM).
- id String
- The ID of the budget.
- metrics
Query String - The cost query used to track against the budget.
- name String
- The name of the budget.
- start
Month Number - The month when the budget starts (YYYYMM).
- total
Amount Number - The sum of all budget entries' amounts.
- budget
Lines List<Property Map> - Budget entries grouped by tag combination with amounts map (month > amount).
- entries List<Property Map>
- The flat list of budget entries (deprecated - use budget_line instead).
Supporting Types
GetCostBudgetBudgetLine
- Amounts Dictionary<string, double>
- Map of month (YYYYMM as string) to budget amount.
- Child
Tag List<GetFilters Cost Budget Budget Line Child Tag Filter> - Child tag filters for hierarchical budgets (second tag in 'by' clause).
- Parent
Tag List<GetFilters Cost Budget Budget Line Parent Tag Filter> - Parent tag filters for hierarchical budgets (first tag in 'by' clause).
- Tag
Filters List<GetCost Budget Budget Line Tag Filter> - Tag filters for non-hierarchical budgets (single tag or no tags).
- Amounts map[string]float64
- Map of month (YYYYMM as string) to budget amount.
- Child
Tag []GetFilters Cost Budget Budget Line Child Tag Filter - Child tag filters for hierarchical budgets (second tag in 'by' clause).
- Parent
Tag []GetFilters Cost Budget Budget Line Parent Tag Filter - Parent tag filters for hierarchical budgets (first tag in 'by' clause).
- Tag
Filters []GetCost Budget Budget Line Tag Filter - Tag filters for non-hierarchical budgets (single tag or no tags).
- amounts Map<String,Double>
- Map of month (YYYYMM as string) to budget amount.
- child
Tag List<GetFilters Cost Budget Budget Line Child Tag Filter> - Child tag filters for hierarchical budgets (second tag in 'by' clause).
- parent
Tag List<GetFilters Cost Budget Budget Line Parent Tag Filter> - Parent tag filters for hierarchical budgets (first tag in 'by' clause).
- tag
Filters List<GetCost Budget Budget Line Tag Filter> - Tag filters for non-hierarchical budgets (single tag or no tags).
- amounts {[key: string]: number}
- Map of month (YYYYMM as string) to budget amount.
- child
Tag GetFilters Cost Budget Budget Line Child Tag Filter[] - Child tag filters for hierarchical budgets (second tag in 'by' clause).
- parent
Tag GetFilters Cost Budget Budget Line Parent Tag Filter[] - Parent tag filters for hierarchical budgets (first tag in 'by' clause).
- tag
Filters GetCost Budget Budget Line Tag Filter[] - Tag filters for non-hierarchical budgets (single tag or no tags).
- amounts Mapping[str, float]
- Map of month (YYYYMM as string) to budget amount.
- child_
tag_ Sequence[Getfilters Cost Budget Budget Line Child Tag Filter] - Child tag filters for hierarchical budgets (second tag in 'by' clause).
- parent_
tag_ Sequence[Getfilters Cost Budget Budget Line Parent Tag Filter] - Parent tag filters for hierarchical budgets (first tag in 'by' clause).
- tag_
filters Sequence[GetCost Budget Budget Line Tag Filter] - Tag filters for non-hierarchical budgets (single tag or no tags).
- amounts Map<Number>
- Map of month (YYYYMM as string) to budget amount.
- child
Tag List<Property Map>Filters - Child tag filters for hierarchical budgets (second tag in 'by' clause).
- parent
Tag List<Property Map>Filters - Parent tag filters for hierarchical budgets (first tag in 'by' clause).
- tag
Filters List<Property Map> - Tag filters for non-hierarchical budgets (single tag or no tags).
GetCostBudgetBudgetLineChildTagFilter
GetCostBudgetBudgetLineParentTagFilter
GetCostBudgetBudgetLineTagFilter
GetCostBudgetEntry
- Amount float64
- Month int
- Tag
Filters []GetCost Budget Entry Tag Filter
- amount Double
- month Integer
- tag
Filters List<GetCost Budget Entry Tag Filter>
- amount number
- month number
- tag
Filters GetCost Budget Entry Tag Filter[]
- amount Number
- month Number
- tag
Filters List<Property Map>
GetCostBudgetEntryTagFilter
Package Details
- Repository
- Datadog pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datadogTerraform Provider.
Viewing docs for Datadog v4.68.0
published on Wednesday, Feb 25, 2026 by Pulumi
published on Wednesday, Feb 25, 2026 by Pulumi
