ClusterPolicy
laktory.models.resources.databricks.ClusterPolicy
¤
Bases: BaseModel
, PulumiResource
, TerraformResource
Databricks cluster policy
ATTRIBUTE | DESCRIPTION |
---|---|
access_controls |
List of access controls
TYPE:
|
definition |
Policy definition: JSON document expressed in Databricks Policy
Definition Language.
Cannot be used with |
description |
Additional human-readable description of the cluster policy.
TYPE:
|
libraries |
TODO
TYPE:
|
max_clusters_per_user |
Maximum number of clusters allowed per user. When omitted, there is no limit. If specified, value must be greater than zero.
TYPE:
|
name |
Cluster policy name. This must be unique. Length must be between 1 and 100 characters.
TYPE:
|
policy_family_definition_overrides |
Policy definition JSON document expressed in Databricks Policy Definition Language. The JSON document must be passed as a string and cannot be embedded in the requests. You can use this to customize the policy definition inherited from the policy family. Policy rules specified here are merged into the inherited policy definition.
TYPE:
|
policy_family_id |
ID of the policy family. The cluster policy's policy definition
inherits the policy family's policy definition. Cannot be used with
TYPE:
|
Examples:
from laktory import models
cluster = models.resources.databricks.ClusterPolicy(
name="okube",
definition={
"dbus_per_hour": {
"type": "range",
"maxValue": 10,
},
"autotermination_minutes": {"type": "fixed", "value": 30, "hidden": True},
"custom_tags.team": {
"type": "fixed",
"value": "okube",
},
},
libraries=[
{
"pypi": {
"package": "laktory==0.5.0",
}
}
],
access_controls=[
{"permission_level": "CAN_USE", "group_name": "account users"}
],
)
ATTRIBUTE | DESCRIPTION |
---|---|
additional_core_resources |
TYPE:
|
laktory.models.resources.databricks.clusterpolicy.ClusterPolicyLibrary
¤
Bases: BaseModel
Cluster Policy Library
ATTRIBUTE | DESCRIPTION |
---|---|
cran |
Cran library specifications
TYPE:
|
egg |
Egg filepath
TYPE:
|
jar |
Jar filepath
TYPE:
|
maven |
TODO |
pypi |
Pypi library specifications
TYPE:
|
requirements |
TODO
|
whl |
Wheel filepath
TYPE:
|