MwsLogDelivery
laktory.models.resources.databricks.MwsLogDelivery
ยค
Bases: MwsLogDeliveryBase
Databricks Mws Log Delivery
Examples:
import io
from laktory import models
delivery_yaml = '''
account_id: ${vars.databricks_account_id}
config_name: my-audit-log-delivery
credentials_id: ${resources.mws-credentials-audit-logs.credentials_id}
log_type: AUDIT_LOGS
output_format: JSON
storage_configuration_id: ${resources.mws-storage-configurations-audit-logs.storage_configuration_id}
'''
delivery = models.resources.databricks.MwsLogDelivery.model_validate_yaml(
io.StringIO(delivery_yaml)
)
References
| BASE | DESCRIPTION |
|---|---|
account_id
|
Account Id that could be found in the top right corner of Accounts Console
TYPE:
|
config_id
|
Databricks log delivery configuration ID
TYPE:
|
config_name
|
The optional human-readable name of the log delivery configuration. Defaults to empty
TYPE:
|
credentials_id
|
The ID for a Databricks credential configuration that represents the AWS IAM role with policy and trust relationship as described in the main billable usage documentation page
TYPE:
|
delivery_path_prefix
|
Defaults to empty, which means that logs are delivered to the root of the bucket. The value must be a valid S3 object key. It must not start or end with a slash character
TYPE:
|
delivery_start_time
|
The optional start month and year for delivery, specified in YYYY-MM format. Defaults to current year and month. Usage is not available before 2019-03
TYPE:
|
log_type
|
The type of log delivery.
TYPE:
|
output_format
|
The file type of log delivery. Currently
TYPE:
|
status
|
Status of log delivery configuration. Set to ENABLED or DISABLED. Defaults to ENABLED. This is the only field you can update
TYPE:
|
storage_configuration_id
|
The ID for a Databricks storage configuration that represents the S3 bucket with bucket policy as described in the main billable usage documentation page
TYPE:
|
workspace_ids_filter
|
By default, this log configuration applies to all workspaces associated with your account ID. If your account is on the multitenant version of the platform or on a select custom plan that allows multiple workspaces per account, you may have multiple workspaces associated with your account ID. You can optionally set the field as mentioned earlier to an array of workspace IDs. If you plan to use different log delivery configurations for several workspaces, set this explicitly rather than leaving it blank. If you leave this blank and your account ID gets additional workspaces in the future, this configuration will also apply to the new workspaces
TYPE:
|