1. Packages
  2. Databricks Provider
  3. API Docs
  4. getBudgetPolicy
Databricks v1.64.0 published on Wednesday, Apr 2, 2025 by Pulumi

databricks.getBudgetPolicy

Explore with Pulumi AI

Databricks v1.64.0 published on Wednesday, Apr 2, 2025 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:

Coming soon!
Coming soon!
Coming soon!
Coming soon!
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());

    }
}
Copy
variables:
  this:
    fn::invoke:
      function: databricks:getBudgetPolicy
      arguments:
        policyId: test
Copy

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>
Copy
def get_budget_policy(custom_tags: Optional[Sequence[GetBudgetPolicyCustomTag]] = None,
                      policy_name: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetBudgetPolicyResult
def get_budget_policy_output(custom_tags: Optional[pulumi.Input[Sequence[pulumi.Input[GetBudgetPolicyCustomTagArgs]]]] = None,
                      policy_name: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetBudgetPolicyResult]
Copy
func LookupBudgetPolicy(ctx *Context, args *LookupBudgetPolicyArgs, opts ...InvokeOption) (*LookupBudgetPolicyResult, error)
func LookupBudgetPolicyOutput(ctx *Context, args *LookupBudgetPolicyOutputArgs, opts ...InvokeOption) LookupBudgetPolicyResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetBudgetPolicyResult> getBudgetPolicy(GetBudgetPolicyArgs args, InvokeOptions options)
public static Output<GetBudgetPolicyResult> getBudgetPolicy(GetBudgetPolicyArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: databricks:index/getBudgetPolicy:getBudgetPolicy
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CustomTags List<GetBudgetPolicyCustomTag>
PolicyName string
The name of the budget policy.
CustomTags []GetBudgetPolicyCustomTag
PolicyName string
The name of the budget policy.
customTags List<GetBudgetPolicyCustomTag>
policyName String
The name of the budget policy.
customTags GetBudgetPolicyCustomTag[]
policyName string
The name of the budget policy.
customTags List<Property Map>
policyName String
The name of the budget policy.

getBudgetPolicy Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
PolicyId string
The id of the budget policy.
CustomTags List<GetBudgetPolicyCustomTag>
PolicyName string
The name of the budget policy.
Id string
The provider-assigned unique ID for this managed resource.
PolicyId string
The id of the budget policy.
CustomTags []GetBudgetPolicyCustomTag
PolicyName string
The name of the budget policy.
id String
The provider-assigned unique ID for this managed resource.
policyId String
The id of the budget policy.
customTags List<GetBudgetPolicyCustomTag>
policyName String
The name of the budget policy.
id string
The provider-assigned unique ID for this managed resource.
policyId string
The id of the budget policy.
customTags GetBudgetPolicyCustomTag[]
policyName string
The name of the budget policy.
id str
The provider-assigned unique ID for this managed resource.
policy_id str
The id of the budget policy.
custom_tags Sequence[GetBudgetPolicyCustomTag]
policy_name str
The name of the budget policy.
id String
The provider-assigned unique ID for this managed resource.
policyId String
The id of the budget policy.
customTags List<Property Map>
policyName String
The name of the budget policy.

Supporting Types

GetBudgetPolicyCustomTag

Key This property is required. string
Value string
Key This property is required. string
Value string
key This property is required. String
value String
key This property is required. string
value string
key This property is required. str
value str
key This property is required. 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 v1.64.0 published on Wednesday, Apr 2, 2025 by Pulumi