@aws-sdk/client-redshift-data 3.1139.0 → 3.1141.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.
package/README.md CHANGED
@@ -22,16 +22,16 @@ To install this package, use the CLI of your favorite package manager:
22
22
 
23
23
  The AWS SDK is modulized by clients and commands.
24
24
  To send a request, you only need to import the `RedshiftDataClient` and
25
- the commands you need, for example `ListSchemasCommand`:
25
+ the commands you need, for example `ListDatabasesCommand`:
26
26
 
27
27
  ```js
28
28
  // ES5 example
29
- const { RedshiftDataClient, ListSchemasCommand } = require("@aws-sdk/client-redshift-data");
29
+ const { RedshiftDataClient, ListDatabasesCommand } = require("@aws-sdk/client-redshift-data");
30
30
  ```
31
31
 
32
32
  ```ts
33
33
  // ES6+ example
34
- import { RedshiftDataClient, ListSchemasCommand } from "@aws-sdk/client-redshift-data";
34
+ import { RedshiftDataClient, ListDatabasesCommand } from "@aws-sdk/client-redshift-data";
35
35
  ```
36
36
 
37
37
  ### Usage
@@ -48,7 +48,7 @@ To send a request:
48
48
  const client = new RedshiftDataClient({ region: "REGION" });
49
49
 
50
50
  const params = { /** input parameters */ };
51
- const command = new ListSchemasCommand(params);
51
+ const command = new ListDatabasesCommand(params);
52
52
  ```
53
53
 
54
54
  #### Async/await
@@ -104,7 +104,7 @@ const client = new RedshiftData({ region: "REGION" });
104
104
 
105
105
  // async/await.
106
106
  try {
107
- const data = await client.listSchemas(params);
107
+ const data = await client.listDatabases(params);
108
108
  // process data.
109
109
  } catch (error) {
110
110
  // error handling.
@@ -112,7 +112,7 @@ try {
112
112
 
113
113
  // Promises.
114
114
  client
115
- .listSchemas(params)
115
+ .listDatabases(params)
116
116
  .then((data) => {
117
117
  // process data.
118
118
  })
@@ -121,7 +121,7 @@ client
121
121
  });
122
122
 
123
123
  // callbacks (not recommended).
124
- client.listSchemas(params, (err, data) => {
124
+ client.listDatabases(params, (err, data) => {
125
125
  // process err and data.
126
126
  });
127
127
  ```
package/dist-cjs/index.js CHANGED
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1138.0";
72
+ var version = "3.1140.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -578,8 +578,8 @@ var GetStatementResultV2Response$ = [3, n0, _GSRVRe,
578
578
  ];
579
579
  var ListDatabasesRequest$ = [3, n0, _LDR,
580
580
  0,
581
- [_D, _CI, _SA, _DU, _NT, _MR, _WN],
582
- [0, 0, 0, 0, 0, 1, 0], 1
581
+ [_CI, _D, _SA, _DU, _NT, _MR, _WN],
582
+ [0, 0, 0, 0, 0, 1, 0]
583
583
  ];
584
584
  var ListDatabasesResponse$ = [3, n0, _LDRi,
585
585
  0,
@@ -294,8 +294,8 @@ export var GetStatementResultV2Response$ = [3, n0, _GSRVRe,
294
294
  ];
295
295
  export var ListDatabasesRequest$ = [3, n0, _LDR,
296
296
  0,
297
- [_D, _CI, _SA, _DU, _NT, _MR, _WN],
298
- [0, 0, 0, 0, 0, 1, 0], 1
297
+ [_CI, _D, _SA, _DU, _NT, _MR, _WN],
298
+ [0, 0, 0, 0, 0, 1, 0]
299
299
  ];
300
300
  export var ListDatabasesResponse$ = [3, n0, _LDRi,
301
301
  0,
@@ -64,6 +64,7 @@ export interface RedshiftData {
64
64
  /**
65
65
  * @see {@link ListDatabasesCommand}
66
66
  */
67
+ listDatabases(): Promise<ListDatabasesCommandOutput>;
67
68
  listDatabases(args: ListDatabasesCommandInput, options?: RedshiftDataRequestOptions): Promise<ListDatabasesCommandOutput>;
68
69
  listDatabases(args: ListDatabasesCommandInput, cb: (err: any, data?: ListDatabasesCommandOutput) => void): void;
69
70
  listDatabases(args: ListDatabasesCommandInput, options: RedshiftDataRequestOptions, cb: (err: any, data?: ListDatabasesCommandOutput) => void): void;
@@ -120,7 +121,7 @@ export interface RedshiftData {
120
121
  * @param paginationConfig - optional pagination config.
121
122
  * @returns AsyncIterable of {@link ListDatabasesCommandOutput}.
122
123
  */
123
- paginateListDatabases(args: ListDatabasesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListDatabasesCommandOutput>;
124
+ paginateListDatabases(args?: ListDatabasesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListDatabasesCommandOutput>;
124
125
  /**
125
126
  * @see {@link ListSchemasCommand}
126
127
  * @param args - command input.
@@ -20,7 +20,7 @@ export interface ListDatabasesCommandOutput extends ListDatabasesResponse, __Met
20
20
  }
21
21
  declare const ListDatabasesCommand_base: {
22
22
  new (input: ListDatabasesCommandInput): import("@smithy/core/client").CommandImpl<ListDatabasesCommandInput, ListDatabasesCommandOutput, import("..").RedshiftDataClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
- new (input: ListDatabasesCommandInput): import("@smithy/core/client").CommandImpl<ListDatabasesCommandInput, ListDatabasesCommandOutput, import("..").RedshiftDataClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (...[input]: [] | [ListDatabasesCommandInput]): import("@smithy/core/client").CommandImpl<ListDatabasesCommandInput, ListDatabasesCommandOutput, import("..").RedshiftDataClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
24
  getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
25
  };
26
26
  /**
@@ -35,7 +35,7 @@ declare const ListDatabasesCommand_base: {
35
35
  * const client = new RedshiftDataClient(config);
36
36
  * const input = { // ListDatabasesRequest
37
37
  * ClusterIdentifier: "STRING_VALUE",
38
- * Database: "STRING_VALUE", // required
38
+ * Database: "STRING_VALUE",
39
39
  * SecretArn: "STRING_VALUE",
40
40
  * DbUser: "STRING_VALUE",
41
41
  * NextToken: "STRING_VALUE",
@@ -24,7 +24,7 @@ declare const ListSessionsCommand_base: {
24
24
  getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
25
  };
26
26
  /**
27
- * <p>Lists the sessions that the caller created in the last 24 hours. By default, only sessions with a status of <code>AVAILABLE</code> or <code>BUSY</code> are returned. You can filter the results by session status, compute target (cluster or serverless workgroup), or database. To retrieve the metadata for a single session, provide the <code>SessionId</code> parameter. Use <code>NextToken</code> to page through the session list.</p> <p>Returns only the sessions that the caller created. When identity-enhanced role sessions are used, you must provide either the <code>ClusterIdentifier</code> or <code>WorkgroupName</code> parameter to ensure that the AWS IAM Identity Center user can only access the Amazon Redshift IAM Identity Center 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>
27
+ * <p>Lists the sessions that the caller created in the last 24 hours. By default, only sessions with a status of <code>AVAILABLE</code> or <code>BUSY</code> are returned. You can filter the results by session status, compute target (cluster or serverless workgroup), or database. To retrieve the metadata for a single session, provide the <code>SessionId</code> parameter. Use <code>NextToken</code> to page through the session list.</p> <p>Returns only the sessions that the caller created. When identity-enhanced role sessions are used, you must provide either the <code>ClusterIdentifier</code> or <code>WorkgroupName</code> parameter to ensure that the IAM Identity Center user can only access the Amazon Redshift IAM Identity Center 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>
28
28
  * @example
29
29
  * Use a bare-bones client and the command you need to make an API call.
30
30
  * ```javascript
@@ -911,7 +911,7 @@ export interface ListDatabasesRequest {
911
911
  * <p>The name of the database. This parameter is required when authenticating using either Secrets Manager or temporary credentials. </p>
912
912
  * @public
913
913
  */
914
- Database: string | undefined;
914
+ Database?: string | undefined;
915
915
  /**
916
916
  * <p>The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager. </p>
917
917
  * @public
@@ -142,6 +142,7 @@ export interface RedshiftData {
142
142
  options: RedshiftDataRequestOptions,
143
143
  cb: (err: any, data?: GetStatementResultV2CommandOutput) => void,
144
144
  ): void;
145
+ listDatabases(): Promise<ListDatabasesCommandOutput>;
145
146
  listDatabases(
146
147
  args: ListDatabasesCommandInput,
147
148
  options?: RedshiftDataRequestOptions,
@@ -231,7 +232,7 @@ export interface RedshiftData {
231
232
  >,
232
233
  ): Paginator<GetStatementResultV2CommandOutput>;
233
234
  paginateListDatabases(
234
- args: ListDatabasesCommandInput,
235
+ args?: ListDatabasesCommandInput,
235
236
  paginationConfig?: Pick<
236
237
  PaginationConfiguration,
237
238
  Exclude<keyof PaginationConfiguration, "client">
@@ -14,7 +14,7 @@ declare const ListDatabasesCommand_base: {
14
14
  import("..").ServiceOutputTypes
15
15
  >;
16
16
  new (
17
- input: ListDatabasesCommandInput,
17
+ ...[input]: [] | [ListDatabasesCommandInput]
18
18
  ): import("@smithy/core/client").CommandImpl<
19
19
  ListDatabasesCommandInput,
20
20
  ListDatabasesCommandOutput,
@@ -271,7 +271,7 @@ export interface GetStatementResultV2Response {
271
271
  }
272
272
  export interface ListDatabasesRequest {
273
273
  ClusterIdentifier?: string | undefined;
274
- Database: string | undefined;
274
+ Database?: string | undefined;
275
275
  SecretArn?: string | undefined;
276
276
  DbUser?: string | undefined;
277
277
  NextToken?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-redshift-data",
3
- "version": "3.1139.0",
3
+ "version": "3.1141.0",
4
4
  "description": "AWS SDK for JavaScript Redshift Data Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-redshift-data",
6
6
  "license": "Apache-2.0",