reveal-sdk-node
Version:
RevealBI Node.js SDK
93 lines (92 loc) • 2.79 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RVAthenaDataSource = void 0;
const RVDashboardDataSource_1 = require("../AbstractClasses/RVDashboardDataSource");
/**
* Amazon Athena data source
*/
class RVAthenaDataSource extends RVDashboardDataSource_1.RVDashboardDataSource {
/** @hidden */
constructor(json) {
super(json);
this._region = null;
this._dataCatalog = null;
this._database = null;
this._workgroup = null;
this._outputLocation = null;
if (json) {
var props = json.Properties;
this._region = props['region'];
this._dataCatalog = props['dataCatalog'];
this._database = props["Database"];
this._workgroup = props['workgroup'];
this._outputLocation = props['outputLocation'];
}
}
/** @hidden */
toJson() {
var json = super.toJson();
var props = json.Properties;
var props = json.Properties;
props['region'] = this._region;
props['dataCatalog'] = this._dataCatalog;
props["Database"] = this._database;
props['workgroup'] = this._workgroup;
props['outputLocation'] = this._outputLocation;
return json;
}
/** @hidden */
getProviderKey() {
return 'AMAZON_ATHENA';
}
/**
* Region for the service. See the list of supported values in https://docs.aws.amazon.com/general/latest/gr/rande.html.
*/
get region() {
return this._region;
}
set region(value) {
this._region = value;
}
/**
* Athena's data catalog where the database is. If the value is null, "AwsDataCatalog" will be used.
*/
get dataCatalog() {
return this._dataCatalog;
}
set dataCatalog(value) {
this._dataCatalog = value;
}
/**
* Database that will be used
*/
get database() {
return this._database;
}
set database(value) {
this._database = value;
}
/**
* Workgroup used to run queries. It is optional.
*/
get workgroup() {
return this._workgroup;
}
set workgroup(value) {
this._workgroup = value;
}
/**
* s3 path where the results will be stored. It is optional, but if missing and if the chosen workgroup doesn't have a valid s3 path, the queries will fail.
*/
get outputLocation() {
return this._outputLocation;
}
set outputLocation(value) {
this._outputLocation = value;
}
/** @hidden */
getType() {
return "RVAthenaDataSource";
}
}
exports.RVAthenaDataSource = RVAthenaDataSource;