Class AwsStub<TInput, TOutput, TConfiguration>

Wrapper on the mocked Client#send() method, allowing to configure its behavior.

Without any configuration, Client#send() invocation returns undefined.

To define resulting variable type easily, use AwsClientStub.

Type Parameters

  • TInput extends object
  • TOutput extends MetadataBearer
  • TConfiguration

Implements

Constructors

Properties

send: SinonStub<[AwsCommand<TInput, TOutput, any, any>], Promise<TOutput>>

Underlying Client#send() method Sinon stub.

Install @types/sinon for TypeScript typings.

Methods