Viewing docs for Databricks v1.90.0
published on Thursday, Mar 19, 2026 by Pulumi
published on Thursday, Mar 19, 2026 by Pulumi
Viewing docs for Databricks v1.90.0
published on Thursday, Mar 19, 2026 by Pulumi
published on Thursday, Mar 19, 2026 by Pulumi
This data source can be used to get a single budget policy.
Note This data source can only be used with an account-level provider!
Example Usage
Referring to a budget policy by id:
import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";
const _this = databricks.getBudgetPolicy({
policyId: "test",
});
import pulumi
import pulumi_databricks as databricks
this = databricks.get_budget_policy(policy_id="test")
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.LookupBudgetPolicy(ctx, &databricks.LookupBudgetPolicyArgs{
PolicyId: "test",
}, 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 @this = Databricks.GetBudgetPolicy.Invoke(new()
{
PolicyId = "test",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.databricks.DatabricksFunctions;
import com.pulumi.databricks.inputs.GetBudgetPolicyArgs;
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 this = DatabricksFunctions.getBudgetPolicy(GetBudgetPolicyArgs.builder()
.policyId("test")
.build());
}
}
variables:
this:
fn::invoke:
function: databricks:getBudgetPolicy
arguments:
policyId: test
Using getBudgetPolicy
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 getBudgetPolicy(args: GetBudgetPolicyArgs, opts?: InvokeOptions): Promise<GetBudgetPolicyResult>
function getBudgetPolicyOutput(args: GetBudgetPolicyOutputArgs, opts?: InvokeOptions): Output<GetBudgetPolicyResult>def get_budget_policy(policy_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBudgetPolicyResult
def get_budget_policy_output(policy_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetBudgetPolicyResult]func LookupBudgetPolicy(ctx *Context, args *LookupBudgetPolicyArgs, opts ...InvokeOption) (*LookupBudgetPolicyResult, error)
func LookupBudgetPolicyOutput(ctx *Context, args *LookupBudgetPolicyOutputArgs, opts ...InvokeOption) LookupBudgetPolicyResultOutput> Note: This function is named LookupBudgetPolicy in the Go SDK.
public static class GetBudgetPolicy
{
public static Task<GetBudgetPolicyResult> InvokeAsync(GetBudgetPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetBudgetPolicyResult> Invoke(GetBudgetPolicyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetBudgetPolicyResult> getBudgetPolicy(GetBudgetPolicyArgs args, InvokeOptions options)
public static Output<GetBudgetPolicyResult> getBudgetPolicy(GetBudgetPolicyArgs args, InvokeOptions options)
fn::invoke:
function: databricks:index/getBudgetPolicy:getBudgetPolicy
arguments:
# arguments dictionaryThe following arguments are supported:
- Policy
Id string - The Id of the policy. This field is generated by Databricks and globally unique
- Policy
Id string - The Id of the policy. This field is generated by Databricks and globally unique
- policy
Id String - The Id of the policy. This field is generated by Databricks and globally unique
- policy
Id string - The Id of the policy. This field is generated by Databricks and globally unique
- policy_
id str - The Id of the policy. This field is generated by Databricks and globally unique
- policy
Id String - The Id of the policy. This field is generated by Databricks and globally unique
getBudgetPolicy Result
The following output properties are available:
- Binding
Workspace List<int>Ids - (list of integer) - List of workspaces that this budget policy will be exclusively bound to. An empty binding implies that this budget policy is open to any workspace in the account
-
List<Get
Budget Policy Custom Tag> - (list of CustomPolicyTag) - A list of tags defined by the customer. At most 20 entries are allowed per policy
- Id string
- The provider-assigned unique ID for this managed resource.
- Policy
Id string - (string) - The Id of the policy. This field is generated by Databricks and globally unique
- Policy
Name string - (string) - The name of the policy.
- Must be unique among active policies.
- Can contain only characters from the ISO 8859-1 (latin1) set.
- Can't start with reserved keywords such as
databricks:default-policy
- Binding
Workspace []intIds - (list of integer) - List of workspaces that this budget policy will be exclusively bound to. An empty binding implies that this budget policy is open to any workspace in the account
-
[]Get
Budget Policy Custom Tag - (list of CustomPolicyTag) - A list of tags defined by the customer. At most 20 entries are allowed per policy
- Id string
- The provider-assigned unique ID for this managed resource.
- Policy
Id string - (string) - The Id of the policy. This field is generated by Databricks and globally unique
- Policy
Name string - (string) - The name of the policy.
- Must be unique among active policies.
- Can contain only characters from the ISO 8859-1 (latin1) set.
- Can't start with reserved keywords such as
databricks:default-policy
- binding
Workspace List<Integer>Ids - (list of integer) - List of workspaces that this budget policy will be exclusively bound to. An empty binding implies that this budget policy is open to any workspace in the account
-
List<Get
Budget Policy Custom Tag> - (list of CustomPolicyTag) - A list of tags defined by the customer. At most 20 entries are allowed per policy
- id String
- The provider-assigned unique ID for this managed resource.
- policy
Id String - (string) - The Id of the policy. This field is generated by Databricks and globally unique
- policy
Name String - (string) - The name of the policy.
- Must be unique among active policies.
- Can contain only characters from the ISO 8859-1 (latin1) set.
- Can't start with reserved keywords such as
databricks:default-policy
- binding
Workspace number[]Ids - (list of integer) - List of workspaces that this budget policy will be exclusively bound to. An empty binding implies that this budget policy is open to any workspace in the account
-
Get
Budget Policy Custom Tag[] - (list of CustomPolicyTag) - A list of tags defined by the customer. At most 20 entries are allowed per policy
- id string
- The provider-assigned unique ID for this managed resource.
- policy
Id string - (string) - The Id of the policy. This field is generated by Databricks and globally unique
- policy
Name string - (string) - The name of the policy.
- Must be unique among active policies.
- Can contain only characters from the ISO 8859-1 (latin1) set.
- Can't start with reserved keywords such as
databricks:default-policy
- binding_
workspace_ Sequence[int]ids - (list of integer) - List of workspaces that this budget policy will be exclusively bound to. An empty binding implies that this budget policy is open to any workspace in the account
-
Sequence[Get
Budget Policy Custom Tag] - (list of CustomPolicyTag) - A list of tags defined by the customer. At most 20 entries are allowed per policy
- id str
- The provider-assigned unique ID for this managed resource.
- policy_
id str - (string) - The Id of the policy. This field is generated by Databricks and globally unique
- policy_
name str - (string) - The name of the policy.
- Must be unique among active policies.
- Can contain only characters from the ISO 8859-1 (latin1) set.
- Can't start with reserved keywords such as
databricks:default-policy
- binding
Workspace List<Number>Ids - (list of integer) - List of workspaces that this budget policy will be exclusively bound to. An empty binding implies that this budget policy is open to any workspace in the account
- List<Property Map>
- (list of CustomPolicyTag) - A list of tags defined by the customer. At most 20 entries are allowed per policy
- id String
- The provider-assigned unique ID for this managed resource.
- policy
Id String - (string) - The Id of the policy. This field is generated by Databricks and globally unique
- policy
Name String - (string) - The name of the policy.
- Must be unique among active policies.
- Can contain only characters from the ISO 8859-1 (latin1) set.
- Can't start with reserved keywords such as
databricks:default-policy
Supporting Types
GetBudgetPolicyCustomTag
Package Details
- Repository
- databricks pulumi/pulumi-databricks
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
databricksTerraform Provider.
Viewing docs for Databricks v1.90.0
published on Thursday, Mar 19, 2026 by Pulumi
published on Thursday, Mar 19, 2026 by Pulumi
