This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getBudget.go
48 lines (43 loc) · 2.1 KB
/
getBudget.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package v20180630
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupBudget(ctx *pulumi.Context, args *LookupBudgetArgs, opts ...pulumi.InvokeOption) (*LookupBudgetResult, error) {
var rv LookupBudgetResult
err := ctx.Invoke("azure-nextgen:consumption/v20180630:getBudget", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupBudgetArgs struct {
// Budget Name.
BudgetName string `pulumi:"budgetName"`
}
// A budget resource.
type LookupBudgetResult struct {
// The total amount of cost to track with the budget
Amount float64 `pulumi:"amount"`
// The category of the budget, whether the budget tracks cost or usage.
Category string `pulumi:"category"`
// The current amount of cost which is being tracked for a budget.
CurrentSpend CurrentSpendResponse `pulumi:"currentSpend"`
// eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
ETag *string `pulumi:"eTag"`
// May be used to filter budgets by resource group, resource, or meter.
Filters *FiltersResponse `pulumi:"filters"`
// Resource Id.
Id string `pulumi:"id"`
// Resource name.
Name string `pulumi:"name"`
// Dictionary of notifications associated with the budget. Budget can have up to five notifications.
Notifications map[string]NotificationResponse `pulumi:"notifications"`
// The time covered by a budget. Tracking of the amount will be reset based on the time grain.
TimeGrain string `pulumi:"timeGrain"`
// Has start and end date of the budget. The start date must be first of the month and should be less than the end date. Budget start date must be on or after June 1, 2017. Future start date should not be more than three months. Past start date should be selected within the timegrain period. There are no restrictions on the end date.
TimePeriod BudgetTimePeriodResponse `pulumi:"timePeriod"`
// Resource type.
Type string `pulumi:"type"`
}