@aws-sdk/client-redshift-data 3.758.0 → 3.763.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,6 +29,11 @@ declare const ListStatementsCommand_base: {
29
29
  /**
30
30
  * <p>List of SQL statements. By default, only finished statements are shown.
31
31
  * A token is returned to page through the statement list. </p>
32
+ * <p>When you use identity-enhanced role sessions to list statements, you must provide either the
33
+ * <code>cluster-identifier</code> or <code>workgroup-name</code> parameter. This ensures that the IdC user
34
+ * can only access the Amazon Redshift IdC applications they are assigned. For more information, see
35
+ * <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/trustedidentitypropagation-overview.html">
36
+ * Trusted identity propagation overview</a>.</p>
32
37
  * <p>For more information about the Amazon Redshift Data API and CLI usage examples, see
33
38
  * <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
34
39
  * <i>Amazon Redshift Management Guide</i>. </p>
@@ -44,6 +49,9 @@ declare const ListStatementsCommand_base: {
44
49
  * StatementName: "STRING_VALUE",
45
50
  * Status: "STRING_VALUE",
46
51
  * RoleLevel: true || false,
52
+ * Database: "STRING_VALUE",
53
+ * ClusterIdentifier: "STRING_VALUE",
54
+ * WorkgroupName: "STRING_VALUE",
47
55
  * };
48
56
  * const command = new ListStatementsCommand(input);
49
57
  * const response = await client.send(command);
@@ -67,8 +75,8 @@ declare const ListStatementsCommand_base: {
67
75
  * // },
68
76
  * // ],
69
77
  * // IsBatchStatement: true || false,
70
- * // SessionId: "STRING_VALUE",
71
78
  * // ResultFormat: "STRING_VALUE",
79
+ * // SessionId: "STRING_VALUE",
72
80
  * // },
73
81
  * // ],
74
82
  * // NextToken: "STRING_VALUE",
@@ -1255,6 +1255,24 @@ export interface ListStatementsRequest {
1255
1255
  * @public
1256
1256
  */
1257
1257
  RoleLevel?: boolean | undefined;
1258
+ /**
1259
+ * <p>The name of the database when listing statements run against a <code>ClusterIdentifier</code> or <code>WorkgroupName</code>.
1260
+ * </p>
1261
+ * @public
1262
+ */
1263
+ Database?: string | undefined;
1264
+ /**
1265
+ * <p>The cluster identifier. Only statements that ran on this cluster are returned.
1266
+ * When providing <code>ClusterIdentifier</code>, then <code>WorkgroupName</code> can't be specified.</p>
1267
+ * @public
1268
+ */
1269
+ ClusterIdentifier?: string | undefined;
1270
+ /**
1271
+ * <p>The serverless workgroup name or Amazon Resource Name (ARN). Only statements that ran on this workgroup are returned.
1272
+ * When providing <code>WorkgroupName</code>, then <code>ClusterIdentifier</code> can't be specified.</p>
1273
+ * @public
1274
+ */
1275
+ WorkgroupName?: string | undefined;
1258
1276
  }
1259
1277
  /**
1260
1278
  * <p>The SQL statement to run.</p>
@@ -1314,15 +1332,15 @@ export interface StatementData {
1314
1332
  */
1315
1333
  IsBatchStatement?: boolean | undefined;
1316
1334
  /**
1317
- * <p>The session identifier of the query.</p>
1335
+ * <p>The data format of the result of the SQL statement.</p>
1318
1336
  * @public
1319
1337
  */
1320
- SessionId?: string | undefined;
1338
+ ResultFormat?: ResultFormatString | undefined;
1321
1339
  /**
1322
- * <p>The data format of the result of the SQL statement.</p>
1340
+ * <p>The session identifier of the query.</p>
1323
1341
  * @public
1324
1342
  */
1325
- ResultFormat?: ResultFormatString | undefined;
1343
+ SessionId?: string | undefined;
1326
1344
  }
1327
1345
  /**
1328
1346
  * @public
@@ -395,6 +395,9 @@ export interface ListStatementsRequest {
395
395
  StatementName?: string | undefined;
396
396
  Status?: StatusString | undefined;
397
397
  RoleLevel?: boolean | undefined;
398
+ Database?: string | undefined;
399
+ ClusterIdentifier?: string | undefined;
400
+ WorkgroupName?: string | undefined;
398
401
  }
399
402
  export interface StatementData {
400
403
  Id: string | undefined;
@@ -407,8 +410,8 @@ export interface StatementData {
407
410
  UpdatedAt?: Date | undefined;
408
411
  QueryParameters?: SqlParameter[] | undefined;
409
412
  IsBatchStatement?: boolean | undefined;
410
- SessionId?: string | undefined;
411
413
  ResultFormat?: ResultFormatString | undefined;
414
+ SessionId?: string | undefined;
412
415
  }
413
416
  export interface ListStatementsResponse {
414
417
  Statements: StatementData[] | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-redshift-data",
3
3
  "description": "AWS SDK for JavaScript Redshift Data Client for Node.js, Browser and React Native",
4
- "version": "3.758.0",
4
+ "version": "3.763.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-redshift-data",