databricks-cdk
Version:
With this package databricks resources can be deployed with cdk
31 lines (30 loc) • 1.16 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Workspace = void 0;
const aws_cdk_lib_1 = require("aws-cdk-lib");
class Workspace extends aws_cdk_lib_1.CustomResource {
constructor(scope, id, props) {
super(scope, id, {
serviceToken: props.serviceToken,
properties: {
action: "workspaces",
workspace_name: props.workspaceName,
deployment_name: props.deploymentName,
aws_region: props.awsRegion,
credentials_id: props.credentialsId,
storage_configuration_id: props.storageConfigurationId,
network_id: props.networkId,
managed_services_customer_managed_key_id: props.managedServicesCustomerManaged_keyId,
pricing_tier: props.pricingTier,
storage_customer_managed_key_id: props.storageCustomerManagedKeyId,
}
});
}
workspaceId() {
return this.getAttString("workspace_id");
}
workspaceUrl() {
return this.getAttString("workspace_url");
}
}
exports.Workspace = Workspace;