• Creates and attaches a stub of the Client#send() method. Only this single method is mocked. If method is already a stub, it's replaced.

    Returns

    Stub allowing to configure Client's behavior

    Type Parameters

    • TInput extends object

    • TOutput extends MetadataBearer

    • TConfiguration

    Parameters

    • client: InstanceOrClassType<Client<TInput, TOutput, TConfiguration>>

      Client type or instance to replace the method

    • sandbox: {
          sandbox?: SinonSandbox;
      } = {}

      Optional sinon sandbox to use

      • Optional sandbox?: SinonSandbox

    Returns AwsStub<TInput, TOutput, TConfiguration>

Generated using TypeDoc