@aws-sdk/client-rds 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 -7
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -76,16 +76,16 @@ using your favorite package manager:
76
76
 
77
77
  The AWS SDK is modulized by clients and commands.
78
78
  To send a request, you only need to import the `RDSClient` and
79
- the commands you need, for example `AddRoleToDBClusterCommand`:
79
+ the commands you need, for example `ListTagsForResourceCommand`:
80
80
 
81
81
  ```js
82
82
  // ES5 example
83
- const { RDSClient, AddRoleToDBClusterCommand } = require("@aws-sdk/client-rds");
83
+ const { RDSClient, ListTagsForResourceCommand } = require("@aws-sdk/client-rds");
84
84
  ```
85
85
 
86
86
  ```ts
87
87
  // ES6+ example
88
- import { RDSClient, AddRoleToDBClusterCommand } from "@aws-sdk/client-rds";
88
+ import { RDSClient, ListTagsForResourceCommand } from "@aws-sdk/client-rds";
89
89
  ```
90
90
 
91
91
  ### Usage
@@ -104,7 +104,7 @@ const client = new RDSClient({ region: "REGION" });
104
104
  const params = {
105
105
  /** input parameters */
106
106
  };
107
- const command = new AddRoleToDBClusterCommand(params);
107
+ const command = new ListTagsForResourceCommand(params);
108
108
  ```
109
109
 
110
110
  #### Async/await
@@ -183,7 +183,7 @@ const client = new AWS.RDS({ region: "REGION" });
183
183
 
184
184
  // async/await.
185
185
  try {
186
- const data = await client.addRoleToDBCluster(params);
186
+ const data = await client.listTagsForResource(params);
187
187
  // process data.
188
188
  } catch (error) {
189
189
  // error handling.
@@ -191,7 +191,7 @@ try {
191
191
 
192
192
  // Promises.
193
193
  client
194
- .addRoleToDBCluster(params)
194
+ .listTagsForResource(params)
195
195
  .then((data) => {
196
196
  // process data.
197
197
  })
@@ -200,7 +200,7 @@ client
200
200
  });
201
201
 
202
202
  // callbacks.
203
- client.addRoleToDBCluster(params, (err, data) => {
203
+ client.listTagsForResource(params, (err, data) => {
204
204
  // process err and data.
205
205
  });
206
206
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-rds",
3
3
  "description": "AWS SDK for JavaScript Rds 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",