1. Packages
  2. Databricks Provider
  3. API Docs
  4. getBudgetPolicies
Databricks v1.63.0 published on Thursday, Mar 13, 2025 by Pulumi

databricks.getBudgetPolicies

Explore with Pulumi AI

databricks logo
Databricks v1.63.0 published on Thursday, Mar 13, 2025 by Pulumi

    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:

    BudgetPolicies List<GetBudgetPoliciesBudgetPolicy>
    The list of budget policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    BudgetPolicies []GetBudgetPoliciesBudgetPolicy
    The list of budget policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    budgetPolicies List<GetBudgetPoliciesBudgetPolicy>
    The list of budget policy.
    id String
    The provider-assigned unique ID for this managed resource.
    budgetPolicies GetBudgetPoliciesBudgetPolicy[]
    The list of budget policy.
    id string
    The provider-assigned unique ID for this managed resource.
    budget_policies Sequence[GetBudgetPoliciesBudgetPolicy]
    The list of budget policy.
    id str
    The provider-assigned unique ID for this managed resource.
    budgetPolicies List<Property Map>
    The list of budget policy.
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    GetBudgetPoliciesBudgetPolicy

    PolicyId string
    CustomTags List<GetBudgetPoliciesBudgetPolicyCustomTag>
    PolicyName string
    The partial name of policies to be filtered on. If unspecified, all policies will be returned.
    PolicyId string
    CustomTags []GetBudgetPoliciesBudgetPolicyCustomTag
    PolicyName string
    The partial name of policies to be filtered on. If unspecified, all policies will be returned.
    policyId String
    customTags List<GetBudgetPoliciesBudgetPolicyCustomTag>
    policyName String
    The partial name of policies to be filtered on. If unspecified, all policies will be returned.
    policyId string
    customTags GetBudgetPoliciesBudgetPolicyCustomTag[]
    policyName string
    The partial name of policies to be filtered on. If unspecified, all policies will be returned.
    policy_id str
    custom_tags Sequence[GetBudgetPoliciesBudgetPolicyCustomTag]
    policy_name str
    The partial name of policies to be filtered on. If unspecified, all policies will be returned.
    policyId String
    customTags List<Property Map>
    policyName String
    The partial name of policies to be filtered on. If unspecified, all policies will be returned.

    GetBudgetPoliciesBudgetPolicyCustomTag

    Key string
    Value string
    Key string
    Value string
    key String
    value String
    key string
    value string
    key str
    value str
    key String
    value String

    Package Details

    Repository
    databricks pulumi/pulumi-databricks
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the databricks Terraform Provider.
    databricks logo
    Databricks v1.63.0 published on Thursday, Mar 13, 2025 by Pulumi