Databricks v1.63.0 published on Thursday, Mar 13, 2025 by Pulumi
databricks.getBudgetPolicies
Explore with Pulumi AI
This data source can be used to fetch the list of budget policies.
Note This data source can only be used with an account-level provider!
Example Usage
Getting a list of all budget policies:
import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";
const all = databricks.getBudgetPolicies({});
import pulumi
import pulumi_databricks as databricks
all = databricks.get_budget_policies()
package main
import (
"github.com/pulumi/pulumi-databricks/sdk/go/databricks"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databricks.GetBudgetPolicies(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Databricks = Pulumi.Databricks;
return await Deployment.RunAsync(() =>
{
var all = Databricks.GetBudgetPolicies.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.databricks.DatabricksFunctions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var all = DatabricksFunctions.getBudgetPolicies();
}
}
variables:
all:
fn::invoke:
function: databricks:getBudgetPolicies
arguments: {}
Using getBudgetPolicies
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 getBudgetPolicies(opts?: InvokeOptions): Promise<GetBudgetPoliciesResult>
function getBudgetPoliciesOutput(opts?: InvokeOptions): Output<GetBudgetPoliciesResult>
def get_budget_policies(opts: Optional[InvokeOptions] = None) -> GetBudgetPoliciesResult
def get_budget_policies_output(opts: Optional[InvokeOptions] = None) -> Output[GetBudgetPoliciesResult]
func GetBudgetPolicies(ctx *Context, opts ...InvokeOption) (*GetBudgetPoliciesResult, error)
func GetBudgetPoliciesOutput(ctx *Context, opts ...InvokeOption) GetBudgetPoliciesResultOutput
> Note: This function is named GetBudgetPolicies
in the Go SDK.
public static class GetBudgetPolicies
{
public static Task<GetBudgetPoliciesResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetBudgetPoliciesResult> Invoke(InvokeOptions? opts = null)
}
public static CompletableFuture<GetBudgetPoliciesResult> getBudgetPolicies(InvokeOptions options)
public static Output<GetBudgetPoliciesResult> getBudgetPolicies(InvokeOptions options)
fn::invoke:
function: databricks:index/getBudgetPolicies:getBudgetPolicies
arguments:
# arguments dictionary
getBudgetPolicies Result
The following output properties are available:
- Budget
Policies List<GetBudget Policies Budget Policy> - The list of budget policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Budget
Policies []GetBudget Policies Budget Policy - The list of budget policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- budget
Policies List<GetBudget Policies Budget Policy> - The list of budget policy.
- id String
- The provider-assigned unique ID for this managed resource.
- budget
Policies GetBudget Policies Budget Policy[] - The list of budget policy.
- id string
- The provider-assigned unique ID for this managed resource.
- budget_
policies Sequence[GetBudget Policies Budget Policy] - The list of budget policy.
- id str
- The provider-assigned unique ID for this managed resource.
- budget
Policies List<Property Map> - The list of budget policy.
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
GetBudgetPoliciesBudgetPolicy
- Policy
Id string - List<Get
Budget Policies Budget Policy Custom Tag> - Policy
Name string - The partial name of policies to be filtered on. If unspecified, all policies will be returned.
- Policy
Id string - []Get
Budget Policies Budget Policy Custom Tag - Policy
Name string - The partial name of policies to be filtered on. If unspecified, all policies will be returned.
- policy
Id String - List<Get
Budget Policies Budget Policy Custom Tag> - policy
Name String - The partial name of policies to be filtered on. If unspecified, all policies will be returned.
- policy
Id string - Get
Budget Policies Budget Policy Custom Tag[] - policy
Name string - The partial name of policies to be filtered on. If unspecified, all policies will be returned.
- policy_
id str - Sequence[Get
Budget Policies Budget Policy Custom Tag] - policy_
name str - The partial name of policies to be filtered on. If unspecified, all policies will be returned.
- policy
Id String - List<Property Map>
- policy
Name String - The partial name of policies to be filtered on. If unspecified, all policies will be returned.
GetBudgetPoliciesBudgetPolicyCustomTag
Package Details
- Repository
- databricks pulumi/pulumi-databricks
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
databricks
Terraform Provider.