Databricks v1.71.0 published on Monday, Jun 9, 2025 by Pulumi
databricks.getBudgetPolicy
Explore with Pulumi AI
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:
Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
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(binding_workspace_ids: Optional[Sequence[int]] = None,
custom_tags: Optional[Sequence[GetBudgetPolicyCustomTag]] = None,
policy_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBudgetPolicyResult
def get_budget_policy_output(binding_workspace_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
custom_tags: Optional[pulumi.Input[Sequence[pulumi.Input[GetBudgetPolicyCustomTagArgs]]]] = None,
policy_name: 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 dictionary
The following arguments are supported:
- 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
- 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
- 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
- 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
- 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
- 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
- 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
getBudgetPolicy Result
The following output properties are available:
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
databricks
Terraform Provider.