@nodeboot/starter-aws
Version:
Node-Boot starter package for AWS services
28 lines • 954 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.EnableAws = void 0;
const config_1 = require("../config");
/**
* Decorator to enable AWS service configurations.
*
* This decorator automatically initializes configurations for AWS DynamoDB, S3,
* Secrets Manager, and SQS clients.
*
* @returns {ClassDecorator} The decorator function.
*/
const EnableAws = () => {
return () => {
// Autoconfiguration for DynamoDB
new config_1.DynamoDBClientConfiguration();
// Autoconfiguration for S3
new config_1.S3ClientConfiguration();
// Autoconfiguration for Secrets Manager
new config_1.SecretsManagerClientConfiguration();
// Autoconfiguration for SQS
new config_1.SqsClientConfiguration();
// Autoconfiguration for SNS
new config_1.SnsClientConfiguration();
};
};
exports.EnableAws = EnableAws;
//# sourceMappingURL=EnableAws.js.map