UNPKG

databricks-cdk

Version:

With this package databricks resources can be deployed with cdk

27 lines (26 loc) 864 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ServicePrincipal = void 0; const aws_cdk_lib_1 = require("aws-cdk-lib"); class ServicePrincipal extends aws_cdk_lib_1.CustomResource { constructor(scope, id, props) { super(scope, id, { serviceToken: props.serviceToken, properties: { action: "service-principal", workspace_url: props.workspace_url, service_principal: props.service_principal_settings, } }); } servicePrincipalId() { return this.getAttString("physical_resource_id"); } servicePrincipalName() { return this.getAttString("name"); } servicePrincipalApplicationId() { return this.getAttString("application_id"); } } exports.ServicePrincipal = ServicePrincipal;