CmdID / aws / aws redshift-data
aws redshift-data list-statements
List of SQL statements. AWS CLI reference
8 options Its page in the AWS CLI reference
Options
--cluster-identifierThe cluster identifier.--databaseThe name of the database when listing statements run against a ClusterIdentifier or WorkgroupName.--max-resultsThe maximum number of SQL statements to return in the response.--next-tokenA value that indicates the starting point for the next set of response records in a subsequent request.--role-levelA value that filters which statements to return in the response.--statement-nameThe name of the SQL statement specified as input to BatchExecuteStatement or ExecuteStatement to identify the query.--statusThe status of the SQL statement to list.--workgroup-nameThe serverless workgroup name or Amazon Resource Name (ARN).