@aws-sdk/client-ram 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
@@ -42,16 +42,16 @@ using your favorite package manager:
42
42
 
43
43
  The AWS SDK is modulized by clients and commands.
44
44
  To send a request, you only need to import the `RAMClient` and
45
- the commands you need, for example `AcceptResourceShareInvitationCommand`:
45
+ the commands you need, for example `ListPermissionsCommand`:
46
46
 
47
47
  ```js
48
48
  // ES5 example
49
- const { RAMClient, AcceptResourceShareInvitationCommand } = require("@aws-sdk/client-ram");
49
+ const { RAMClient, ListPermissionsCommand } = require("@aws-sdk/client-ram");
50
50
  ```
51
51
 
52
52
  ```ts
53
53
  // ES6+ example
54
- import { RAMClient, AcceptResourceShareInvitationCommand } from "@aws-sdk/client-ram";
54
+ import { RAMClient, ListPermissionsCommand } from "@aws-sdk/client-ram";
55
55
  ```
56
56
 
57
57
  ### Usage
@@ -70,7 +70,7 @@ const client = new RAMClient({ region: "REGION" });
70
70
  const params = {
71
71
  /** input parameters */
72
72
  };
73
- const command = new AcceptResourceShareInvitationCommand(params);
73
+ const command = new ListPermissionsCommand(params);
74
74
  ```
75
75
 
76
76
  #### Async/await
@@ -149,7 +149,7 @@ const client = new AWS.RAM({ region: "REGION" });
149
149
 
150
150
  // async/await.
151
151
  try {
152
- const data = await client.acceptResourceShareInvitation(params);
152
+ const data = await client.listPermissions(params);
153
153
  // process data.
154
154
  } catch (error) {
155
155
  // error handling.
@@ -157,7 +157,7 @@ try {
157
157
 
158
158
  // Promises.
159
159
  client
160
- .acceptResourceShareInvitation(params)
160
+ .listPermissions(params)
161
161
  .then((data) => {
162
162
  // process data.
163
163
  })
@@ -166,7 +166,7 @@ client
166
166
  });
167
167
 
168
168
  // callbacks.
169
- client.acceptResourceShareInvitation(params, (err, data) => {
169
+ client.listPermissions(params, (err, data) => {
170
170
  // process err and data.
171
171
  });
172
172
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ram",
3
3
  "description": "AWS SDK for JavaScript Ram 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",