@pulumi/databricks
Version:
A Pulumi package for creating and managing databricks cloud resources.
87 lines (86 loc) • 3.54 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* 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!
*/
export declare function getBudgetPolicy(args?: GetBudgetPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetBudgetPolicyResult>;
/**
* A collection of arguments for invoking getBudgetPolicy.
*/
export interface GetBudgetPolicyArgs {
/**
* (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
*/
bindingWorkspaceIds?: number[];
/**
* (list of CustomPolicyTag) - A list of tags defined by the customer. At most 20 entries are allowed per policy
*/
customTags?: inputs.GetBudgetPolicyCustomTag[];
/**
* (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`
*/
policyName?: 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;
}
/**
* 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!
*/
export declare function getBudgetPolicyOutput(args?: GetBudgetPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetBudgetPolicyResult>;
/**
* A collection of arguments for invoking getBudgetPolicy.
*/
export interface GetBudgetPolicyOutputArgs {
/**
* (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
*/
bindingWorkspaceIds?: pulumi.Input<pulumi.Input<number>[]>;
/**
* (list of CustomPolicyTag) - A list of tags defined by the customer. At most 20 entries are allowed per policy
*/
customTags?: pulumi.Input<pulumi.Input<inputs.GetBudgetPolicyCustomTagArgs>[]>;
/**
* (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`
*/
policyName?: pulumi.Input<string>;
}