Skip to content

MwsCustomerManagedKeys

laktory.models.resources.databricks.MwsCustomerManagedKeys ¤

Bases: MwsCustomerManagedKeysBase

Databricks Mws Customer Managed Keys

Examples:

import io

from laktory import models

key_yaml = '''
account_id: ${vars.databricks_account_id}
use_cases:
- MANAGED_SERVICES
aws_key_info:
  key_arn: arn:aws:kms:us-east-1:000000000000:key/00000000-0000-0000-0000-000000000000
'''
key = models.resources.databricks.MwsCustomerManagedKeys.model_validate_yaml(
    io.StringIO(key_yaml)
)
References
BASE DESCRIPTION
account_id

Account Id that could be found in the top right corner of Accounts Console

TYPE: str | VariableType

aws_key_info

This field is a block and is documented below. This conflicts with gcp_key_info

TYPE: MwsCustomerManagedKeysAwsKeyInfo | None | VariableType DEFAULT: None

creation_time

(Integer) Time in epoch milliseconds when the customer key was created

TYPE: int | None | VariableType DEFAULT: None

customer_managed_key_id

(String) ID of the encryption key configuration object

TYPE: str | None | VariableType DEFAULT: None

gcp_key_info

This field is a block and is documented below. This conflicts with aws_key_info

TYPE: MwsCustomerManagedKeysGcpKeyInfo | None | VariableType DEFAULT: None

use_cases

(since v0.3.4) List of use cases for which this key will be used. If you've used the resource before, please add use_cases = ['MANAGED_SERVICES'] to keep the previous behaviour. Possible values are:

TYPE: list[str] | VariableType


laktory.models.resources.databricks.mwscustomermanagedkeys.MwsCustomerManagedKeysAwsKeyInfo ¤

Bases: BaseModel

PARAMETER DESCRIPTION
key_alias

The AWS KMS key alias

TYPE: str | None | VariableType DEFAULT: None

key_arn

The AWS KMS key's Amazon Resource Name (ARN)

TYPE: str | VariableType

key_region

(Computed) The AWS region in which KMS key is deployed to. This is not required

TYPE: str | None | VariableType DEFAULT: None


laktory.models.resources.databricks.mwscustomermanagedkeys.MwsCustomerManagedKeysGcpKeyInfo ¤

Bases: BaseModel

PARAMETER DESCRIPTION
kms_key_id

The GCP KMS key's resource name

TYPE: str | VariableType