aws.redshift_data.list_statements
Example SQL Queries
SELECT * FROMaws.redshift_data.list_statements;Description
List of SQL statements. By default, only finished statements are shown. A token is returned to page through the statement list.
For more information about the Amazon Redshift Data API and CLI usage examples, see Using the Amazon Redshift Data API in the Amazon Redshift Management Guide.
Table Definition
| Column Name | Column Data Type |
|---|---|
| role_level Input Column A value that filters which statements to return in the response. If true, all statements run by the caller's IAM role are returned. If false, only statements run by the caller's IAM role in the current IAM session are returned. The default is true. | BOOLEAN |
| statement_name Input Column The name of the SQL statement. | VARCHAR |
| status Input Column The status of the SQL statement. An example is the that the SQL statement finished. | VARCHAR |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| created_at The date and time (UTC) the statement was created. | TIMESTAMP_S |
| id The SQL statement identifier. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. | VARCHAR |
| is_batch_statement A value that indicates whether the statement is a batch query request. | BOOLEAN |
| query_parameters The parameters used in a SQL statement. | STRUCT( |
Show child fields
| |
| query_string The SQL statement. | VARCHAR |
| query_strings One or more SQL statements. Each query string in the array corresponds to one of the queries in a batch query request. | VARCHAR[] |
Show child fields
| |
| secret_arn The name or Amazon Resource Name (ARN) of the secret that enables access to the database. | VARCHAR |
| updated_at The date and time (UTC) that the statement metadata was last updated. | TIMESTAMP_S |