@aws-sdk/client-redshift-serverless 3.418.0 → 3.421.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.
Files changed (2) hide show
  1. package/README.md +7 -10
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -34,19 +34,16 @@ using your favorite package manager:
34
34
 
35
35
  The AWS SDK is modulized by clients and commands.
36
36
  To send a request, you only need to import the `RedshiftServerlessClient` and
37
- the commands you need, for example `ConvertRecoveryPointToSnapshotCommand`:
37
+ the commands you need, for example `ListNamespacesCommand`:
38
38
 
39
39
  ```js
40
40
  // ES5 example
41
- const {
42
- RedshiftServerlessClient,
43
- ConvertRecoveryPointToSnapshotCommand,
44
- } = require("@aws-sdk/client-redshift-serverless");
41
+ const { RedshiftServerlessClient, ListNamespacesCommand } = require("@aws-sdk/client-redshift-serverless");
45
42
  ```
46
43
 
47
44
  ```ts
48
45
  // ES6+ example
49
- import { RedshiftServerlessClient, ConvertRecoveryPointToSnapshotCommand } from "@aws-sdk/client-redshift-serverless";
46
+ import { RedshiftServerlessClient, ListNamespacesCommand } from "@aws-sdk/client-redshift-serverless";
50
47
  ```
51
48
 
52
49
  ### Usage
@@ -65,7 +62,7 @@ const client = new RedshiftServerlessClient({ region: "REGION" });
65
62
  const params = {
66
63
  /** input parameters */
67
64
  };
68
- const command = new ConvertRecoveryPointToSnapshotCommand(params);
65
+ const command = new ListNamespacesCommand(params);
69
66
  ```
70
67
 
71
68
  #### Async/await
@@ -144,7 +141,7 @@ const client = new AWS.RedshiftServerless({ region: "REGION" });
144
141
 
145
142
  // async/await.
146
143
  try {
147
- const data = await client.convertRecoveryPointToSnapshot(params);
144
+ const data = await client.listNamespaces(params);
148
145
  // process data.
149
146
  } catch (error) {
150
147
  // error handling.
@@ -152,7 +149,7 @@ try {
152
149
 
153
150
  // Promises.
154
151
  client
155
- .convertRecoveryPointToSnapshot(params)
152
+ .listNamespaces(params)
156
153
  .then((data) => {
157
154
  // process data.
158
155
  })
@@ -161,7 +158,7 @@ client
161
158
  });
162
159
 
163
160
  // callbacks.
164
- client.convertRecoveryPointToSnapshot(params, (err, data) => {
161
+ client.listNamespaces(params, (err, data) => {
165
162
  // process err and data.
166
163
  });
167
164
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-redshift-serverless",
3
3
  "description": "AWS SDK for JavaScript Redshift Serverless Client for Node.js, Browser and React Native",
4
- "version": "3.418.0",
4
+ "version": "3.421.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,8 +21,8 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.418.0",
25
- "@aws-sdk/credential-provider-node": "3.418.0",
24
+ "@aws-sdk/client-sts": "3.421.0",
25
+ "@aws-sdk/credential-provider-node": "3.421.0",
26
26
  "@aws-sdk/middleware-host-header": "3.418.0",
27
27
  "@aws-sdk/middleware-logger": "3.418.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.418.0",