redshift-api
In the Amazon Redshift Data API, every call is a POST to https://redshift-data.<region>.amazonaws.com/ with
Content-Type: application/x-amz-json-1.1 and X-Amz-Target: RedshiftData.<Action> — there are no
REST-style paths. The API is fully asynchronous: submit a statement, get back an Id, poll
DescribeStatement until done, then page results with GetStatementResult —
scripts/rs_query.sh (operation 1) drives that loop for you. The same calls work against
provisioned clusters and Serverless; only the connection-target field differs.
Request setup
Authentication is handled by the runtime — requests to this API are signed with credentials
configured for the workspace, so there is nothing to set up. Do not try to obtain AWS keys or sign
requests yourself. A persistent AccessDeniedException means the credential isn't configured for
this workspace — report that instead of debugging auth.
Two pieces of configuration are real and required:
1. Region — it's part of the endpoint hostname: