• Builds the SigV4 canonical query string from parsed query parameters: each name and value URI-encoded (RFC 3986, including !'()*), pairs sorted by encoded name then encoded value (code-point order, per the SigV4 spec).

    API Gateway canonicalizes the incoming query string this way before verifying the signature, so signing the raw (unsorted) query string breaks every request whose parameters are not already in sorted order.

    Parameters

    • searchParams: URLSearchParams

    Returns string