Skip to content

ServicePrincipal

laktory.models.resources.databricks.ServicePrincipal ¤

Bases: BaseModel, PulumiResource, TerraformResource

Databricks account service principal

ATTRIBUTE DESCRIPTION
allow_cluster_create

When True, the group is allowed to have cluster create permissions

TYPE: bool

application_id

This is the Azure Application ID of the given Azure service principal and will be their form of access and identity. On other clouds than Azure this value is auto-generated.

TYPE: str

disable_as_user_deletion

If True user is disabled instead of delete when the resource is deleted

TYPE: bool

display_name

Display name for the service principal

TYPE: str

group_ids

List of the group ids that the user should be member of.

TYPE: list[str]

lookup_existing

Specifications for looking up existing resource. Other attributes will be ignored.

TYPE: ServicePrincipalLookup

roles

List of roles assigned to the user e.g. ("account_admin")

TYPE: list[str]

Examples:

from laktory import models

sp = models.resources.databricks.ServicePrincipal(
    display_name="neptune",
    application_id="baf147d1-a856-4de0-a570-8a56dbd7e234",
    group_ids=[
        "${resources.group-role-engineer.id}",
        "${resources.group-role-analyst.id}",
        "${resources.group-domain-finance.id}",
        "${resources.group-domain-engineering.id}",
    ],
    roles=["account_admin"],
)

Attributes¤

additional_core_resources property ¤

additional_core_resources
  • service principal roles
  • service principal group members

--

laktory.models.resources.databricks.serviceprincipal.ServicePrincipalLookup ¤

Bases: ResourceLookup

ATTRIBUTE DESCRIPTION
application_id

ID of the service principal. The service principal must exist before this resource can be retrieved.

TYPE: str