BudgetPolicy
laktory.models.resources.databricks.BudgetPolicy
¤
Bases: BudgetPolicyBase
Databricks budget policy
Examples:
import io
from laktory import models
budget_policy_yaml = '''
policy_name: my-budget-policy
custom_tags:
- key: mykey
value: myvalue
'''
budget_policy = models.resources.databricks.BudgetPolicy.model_validate_yaml(
io.StringIO(budget_policy_yaml)
)
References
| BASE | DESCRIPTION |
|---|---|
binding_workspace_ids
|
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
TYPE:
|
custom_tags
|
A list of tags defined by the customer. At most 20 entries are allowed per policy
TYPE:
|
policy_id
|
The Id of the policy. This field is generated by Databricks and globally unique
TYPE:
|
policy_name
|
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
TYPE:
|
laktory.models.resources.databricks.budgetpolicy.BudgetPolicyCustomTags
¤
Bases: BaseModel
| PARAMETER | DESCRIPTION |
|---|---|
key
|
The key of the tag. - Must be unique among all custom tags of the same policy - Cannot be “budget-policy-name”, “budget-policy-id” or 'budget-policy-resolution-result' - these tags are preserved
TYPE:
|
value
|
The value of the tag
TYPE:
|