CmdID / aws / aws redshift-data
aws redshift-data get-statement-result-v2
Fetches the temporarily cached result of an SQL statement in CSV format. AWS CLI reference
3 options Its page in the AWS CLI reference
Options
--idThe identifier of the SQL statement whose results are to be fetched.--next-tokenA value that indicates the starting point for the next set of response records in a subsequent request.--wait-time-secondsThe number of seconds to wait for the SQL statement to complete execution before returning the result.