UNPKG

databricks-cdk

Version:

With this package databricks resources can be deployed with cdk

25 lines (24 loc) 920 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InstanceProfile = void 0; const aws_cdk_lib_1 = require("aws-cdk-lib"); class InstanceProfile extends aws_cdk_lib_1.CustomResource { constructor(scope, id, props) { let skipValidation = true; // Sometimes the validation randoms fails, this mainly done for the UI if (props.skipValidation) { skipValidation = props.skipValidation; } super(scope, id, { serviceToken: props.serviceToken, properties: { action: "instance-profile", workspace_url: props.workspaceUrl, instance_profile_arn: props.instanceProfileArn, is_meta_instance_profile: props.isMetaInstanceProfile, skip_validation: skipValidation, } }); } } exports.InstanceProfile = InstanceProfile;