@aws-lambda-powertools/parameters
Version:
The parameters package for the Powertools for AWS Lambda (TypeScript) library
20 lines (19 loc) • 680 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetMultipleOptions = void 0;
const GetOptions_js_1 = require("./GetOptions.js");
/**
* Options for the `getMultiple` method.
*
* Extends the `GetOptions` class and adds the `throwOnTransformError` option.
*/
class GetMultipleOptions extends GetOptions_js_1.GetOptions {
throwOnTransformError = false;
constructor(envVarsService, options = {}) {
super(envVarsService, options);
if (options.throwOnTransformError !== undefined) {
this.throwOnTransformError = options.throwOnTransformError;
}
}
}
exports.GetMultipleOptions = GetMultipleOptions;
;