SDK and CLI request format
AWS SDK and AWS CLI versions released on or after December 1, 2026 use the REST-JSON protocol for Athena instead of the AWS JSON 1.1 protocol. Athena API operations, parameters, and IAM permissions don't change, and earlier SDK versions continue to work.
With REST-JSON, each operation uses its own HTTP method and URL path. For example, GetQueryExecution sends GET /query-executions/, query-execution-idUpdateWorkGroup sends PATCH /workgroups/, and workgroup-nameDeleteWorkGroup sends a DELETE request. In these paths, query-execution-id is the query ID and workgroup-name is the workgroup name. Requests no longer include the X-Amz-Target header, and errors report their type in the x-amzn-ErrorType response header.
If you see errors after you upgrade, check whether network proxies or firewalls restrict Athena requests by HTTP method, URL path, URL length, or the X-Amz-Target header. Update them to allow GET, POST, PUT, PATCH, and DELETE requests to the Athena API endpoints. Custom HTTP clients, request signers, and test mocks that depend on the previous request format might also need updates. As a temporary workaround, you can keep using an SDK version released before December 1, 2026.