ServicePrincipalSecret
laktory.models.resources.databricks.ServicePrincipalSecret
ยค
Bases: ServicePrincipalSecretBase
Databricks Service Principal Secret
OAuth secret of a service principal, used for machine-to-machine authentication. The
generated secret is available as an output, e.g. ${resources.my-secret.secret}.
Examples:
import io
from laktory import models
secret_yaml = '''
service_principal_id: ${resources.sp-neptune.id}
lifetime: 7776000s
'''
secret = models.resources.databricks.ServicePrincipalSecret.model_validate_yaml(
io.StringIO(secret_yaml)
)
References
| BASE | DESCRIPTION |
|---|---|
api
|
Specifies whether to use account-level or workspace-level API. Valid values are
TYPE:
|
create_time
|
UTC time when the secret was created
TYPE:
|
expire_time
|
UTC time when the secret will expire. If the field is not present, the secret does not expire
TYPE:
|
lifetime
|
The lifetime of the secret in seconds formatted as
TYPE:
|
secret
|
Sensitive Generated secret for the service principal
TYPE:
|
secret_hash
|
Secret Hash
TYPE:
|
service_principal_id
|
SCIM ID of the databricks_service_principal (not application ID). Set automatically when declared in the
TYPE:
|
status
|
Status of the secret (i.e.,
TYPE:
|
time_rotating
|
TYPE:
|
update_time
|
UTC time when the secret was updated
TYPE:
|