databricks-cdk
Version:
With this package databricks resources can be deployed with cdk
27 lines (26 loc) • 815 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Token = void 0;
const aws_cdk_lib_1 = require("aws-cdk-lib");
class Token extends aws_cdk_lib_1.CustomResource {
constructor(scope, id, props) {
super(scope, id, {
serviceToken: props.serviceToken,
properties: {
action: "token",
token_name: props.tokenName,
workspace_url: props.workspaceUrl,
comment: props.comment,
lifetime_seconds: props.lifetimeSeconds,
}
});
}
tokenSecretArn() {
/**
* Returns the secrets manager ARN. Can only be returned
* when creating the token
*/
return this.getAttString("token_secrets_arn");
}
}
exports.Token = Token;