Constructs a new instance of the Transaction class.
The event object passed to the Lambda function.
The context object passed to the Lambda function.
Optional
config: TransactionConfigOptional configuration object for the transaction.
None
Readonly
loggerA logger object used for logging messages, errors, and other information.
Readonly
publisherThe publisher of the content.
Readonly
requestThe request object for making a request of type InputType.
A function that acts as a response proxy for a given response object.
Executes a transaction using the provided execution function and returns a promise that resolves to the response or miscellaneous response.
The execution function to be executed.
Retrieves a database instance based on the provided configuration.
A database instance based on the provided configuration.
Retrieves a database transaction based on the provided database configuration.
A promise that resolves to the database transaction.
Protected
getGenerates an error response with the provided error message and code.
The error message to include in the response.
The error code associated with the response.
Represents a transaction object that handles the execution of a request and manages the response.