@aws-sdk/client-lambda 3.418.0 → 3.423.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
@@ -88,16 +88,16 @@ using your favorite package manager:
88
88
 
89
89
  The AWS SDK is modulized by clients and commands.
90
90
  To send a request, you only need to import the `LambdaClient` and
91
- the commands you need, for example `AddLayerVersionPermissionCommand`:
91
+ the commands you need, for example `ListLayersCommand`:
92
92
 
93
93
  ```js
94
94
  // ES5 example
95
- const { LambdaClient, AddLayerVersionPermissionCommand } = require("@aws-sdk/client-lambda");
95
+ const { LambdaClient, ListLayersCommand } = require("@aws-sdk/client-lambda");
96
96
  ```
97
97
 
98
98
  ```ts
99
99
  // ES6+ example
100
- import { LambdaClient, AddLayerVersionPermissionCommand } from "@aws-sdk/client-lambda";
100
+ import { LambdaClient, ListLayersCommand } from "@aws-sdk/client-lambda";
101
101
  ```
102
102
 
103
103
  ### Usage
@@ -116,7 +116,7 @@ const client = new LambdaClient({ region: "REGION" });
116
116
  const params = {
117
117
  /** input parameters */
118
118
  };
119
- const command = new AddLayerVersionPermissionCommand(params);
119
+ const command = new ListLayersCommand(params);
120
120
  ```
121
121
 
122
122
  #### Async/await
@@ -195,7 +195,7 @@ const client = new AWS.Lambda({ region: "REGION" });
195
195
 
196
196
  // async/await.
197
197
  try {
198
- const data = await client.addLayerVersionPermission(params);
198
+ const data = await client.listLayers(params);
199
199
  // process data.
200
200
  } catch (error) {
201
201
  // error handling.
@@ -203,7 +203,7 @@ try {
203
203
 
204
204
  // Promises.
205
205
  client
206
- .addLayerVersionPermission(params)
206
+ .listLayers(params)
207
207
  .then((data) => {
208
208
  // process data.
209
209
  })
@@ -212,7 +212,7 @@ client
212
212
  });
213
213
 
214
214
  // callbacks.
215
- client.addLayerVersionPermission(params, (err, data) => {
215
+ client.listLayers(params, (err, data) => {
216
216
  // process err and data.
217
217
  });
218
218
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-lambda",
3
3
  "description": "AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native",
4
- "version": "3.418.0",
4
+ "version": "3.423.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.423.0",
25
+ "@aws-sdk/credential-provider-node": "3.423.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",