ReadonlyclientThe client instance being mocked (undefined for class-level mocks).
Configure mock behavior for a specific command.
The AWS SDK command constructor to mock
Optionalrequest: Partial<CommandInputType<TCtor>>Optional partial input to match against (uses partial matching by default)
Optionaloptions: MockOptionsOptional configuration for strict matching
A command stub for configuring mock responses
Clear mock call history while preserving configured behaviors. Mock configurations remain active after reset, only the call history is cleared. Use this between tests when you want to reuse the same mock setup.
Restore the original client behavior and clear all mocks. After calling restore, the client will no longer be mocked.
Get an array of all commands that were sent to the client.
Array of AWS SDK commands
Enable debug logging to see detailed information about mock configuration and interactions.
Logs both mock setup (when .on(), .resolves(), etc. are called) and command execution details.
Useful for troubleshooting mock configurations and why commands aren't matching expected mocks.
Disable debug logging for mock configuration and interactions.
Client stub for configuring and managing mock behaviors for an AWS SDK client.
Example