Skip to content

Commit e9f4f4a

Browse files
author
AWS
committed
Redshift Data API Service Update: This release adds support for ListStatements API to filter statements by ClusterIdentifier, WorkgroupName, and Database.
1 parent d9543d2 commit e9f4f4a

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Redshift Data API Service",
4+
"contributor": "",
5+
"description": "This release adds support for ListStatements API to filter statements by ClusterIdentifier, WorkgroupName, and Database."
6+
}

services/redshiftdata/src/main/resources/codegen-resources/service-2.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
{"shape":"ValidationException"},
171171
{"shape":"InternalServerException"}
172172
],
173-
"documentation":"<p>List of SQL statements. By default, only finished statements are shown. A token is returned to page through the statement list. </p> <p>For more information about the Amazon Redshift Data API and CLI usage examples, see <a href=\"https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html\">Using the Amazon Redshift Data API</a> in the <i>Amazon Redshift Management Guide</i>. </p>"
173+
"documentation":"<p>List of SQL statements. By default, only finished statements are shown. A token is returned to page through the statement list. </p> <p>When you use identity-enhanced role sessions to list statements, you must provide either the <code>cluster-identifier</code> or <code>workgroup-name</code> parameter. This ensures that the IdC user can only access the Amazon Redshift IdC applications they are assigned. For more information, see <a href=\"https://docs.aws.amazon.com/singlesignon/latest/userguide/trustedidentitypropagation-overview.html\"> Trusted identity propagation overview</a>.</p> <p>For more information about the Amazon Redshift Data API and CLI usage examples, see <a href=\"https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html\">Using the Amazon Redshift Data API</a> in the <i>Amazon Redshift Management Guide</i>. </p>"
174174
},
175175
"ListTables":{
176176
"name":"ListTables",
@@ -971,6 +971,14 @@
971971
"ListStatementsRequest":{
972972
"type":"structure",
973973
"members":{
974+
"ClusterIdentifier":{
975+
"shape":"ClusterIdentifierString",
976+
"documentation":"<p>The cluster identifier. Only statements that ran on this cluster are returned. When providing <code>ClusterIdentifier</code>, then <code>WorkgroupName</code> can't be specified.</p>"
977+
},
978+
"Database":{
979+
"shape":"String",
980+
"documentation":"<p>The name of the database when listing statements run against a <code>ClusterIdentifier</code> or <code>WorkgroupName</code>. </p>"
981+
},
974982
"MaxResults":{
975983
"shape":"ListStatementsLimit",
976984
"documentation":"<p>The maximum number of SQL statements to return in the response. If more SQL statements exist than fit in one response, then <code>NextToken</code> is returned to page through the results. </p>"
@@ -990,6 +998,10 @@
990998
"Status":{
991999
"shape":"StatusString",
9921000
"documentation":"<p>The status of the SQL statement to list. Status values are defined as follows: </p> <ul> <li> <p>ABORTED - The query run was stopped by the user. </p> </li> <li> <p>ALL - A status value that includes all query statuses. This value can be used to filter results. </p> </li> <li> <p>FAILED - The query run failed. </p> </li> <li> <p>FINISHED - The query has finished running. </p> </li> <li> <p>PICKED - The query has been chosen to be run. </p> </li> <li> <p>STARTED - The query run has started. </p> </li> <li> <p>SUBMITTED - The query was submitted, but not yet processed. </p> </li> </ul>"
1001+
},
1002+
"WorkgroupName":{
1003+
"shape":"WorkgroupNameString",
1004+
"documentation":"<p>The serverless workgroup name or Amazon Resource Name (ARN). Only statements that ran on this workgroup are returned. When providing <code>WorkgroupName</code>, then <code>ClusterIdentifier</code> can't be specified.</p>"
9931005
}
9941006
}
9951007
},
@@ -1359,7 +1371,7 @@
13591371
"type":"string",
13601372
"max":128,
13611373
"min":3,
1362-
"pattern":"^(([a-z0-9-]+)|(arn:(aws(-[a-z]+)*):redshift-serverless:[a-z]{2}(-gov)?-[a-z]+-\\d{1}:\\d{12}:workgroup/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}))$"
1374+
"pattern":"^(([a-z0-9-]+)|(arn:(aws(-[a-z]+)*):redshift-serverless:[a-z]{2}(-gov|(-iso[a-z]?))?-[a-z]+-\\d{1}:\\d{12}:workgroup/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}))$"
13631375
},
13641376
"bool":{"type":"boolean"}
13651377
},

0 commit comments

Comments
 (0)