reveal-sdk-node
Version:
RevealBI Node.js SDK
46 lines (45 loc) • 1.32 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RVS3DataSource = void 0;
const RVDashboardDataSource_1 = require("../AbstractClasses/RVDashboardDataSource");
/** Amazon S3 data source */
class RVS3DataSource extends RVDashboardDataSource_1.RVDashboardDataSource {
/** @hidden */
constructor(json) {
super(json);
this._region = null;
if (json) {
var props = json.Properties;
this._region = props['region'];
}
}
/** @hidden */
toJson() {
var json = super.toJson();
var props = json.Properties;
props['region'] = this._region;
return json;
}
/** @hidden */
getProviderKey() {
return 'AMAZON_S3';
}
/**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;
}
/** @hidden */
getType() {
return "RVS3DataSource";
}
/** @hidden */
_getWrapper() {
let wrapper = super._getWrapper();
wrapper.region(this.region);
return wrapper;
}
}
exports.RVS3DataSource = RVS3DataSource;