UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

92 lines (91 loc) 3.12 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * [![Public Preview](https://img.shields.io/badge/Release_Stage-Public_Preview-yellowgreen)](https://docs.databricks.com/aws/en/release-notes/release-types) * * 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: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const _this = databricks.getBudgetPolicy({ * policyId: "test", * }); * ``` */ export declare function getBudgetPolicy(args: GetBudgetPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetBudgetPolicyResult>; /** * A collection of arguments for invoking getBudgetPolicy. */ export interface GetBudgetPolicyArgs { /** * The Id of the policy. This field is generated by Databricks and globally unique */ policyId: string; } /** * A collection of values returned by getBudgetPolicy. */ export interface GetBudgetPolicyResult { /** * (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 */ readonly bindingWorkspaceIds: number[]; /** * (list of CustomPolicyTag) - A list of tags defined by the customer. At most 20 entries are allowed per policy */ readonly customTags: outputs.GetBudgetPolicyCustomTag[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * (string) - The Id of the policy. This field is generated by Databricks and globally unique */ readonly policyId: 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` */ readonly policyName: string; } /** * [![Public Preview](https://img.shields.io/badge/Release_Stage-Public_Preview-yellowgreen)](https://docs.databricks.com/aws/en/release-notes/release-types) * * 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: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const _this = databricks.getBudgetPolicy({ * policyId: "test", * }); * ``` */ export declare function getBudgetPolicyOutput(args: GetBudgetPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetBudgetPolicyResult>; /** * A collection of arguments for invoking getBudgetPolicy. */ export interface GetBudgetPolicyOutputArgs { /** * The Id of the policy. This field is generated by Databricks and globally unique */ policyId: pulumi.Input<string>; }