@aws-sdk/client-lambda 3.774.0 → 3.777.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 (76) hide show
  1. package/dist-cjs/auth/httpAuthSchemeProvider.js +1 -3
  2. package/dist-cjs/index.js +17 -18
  3. package/dist-es/LambdaClient.js +2 -1
  4. package/dist-es/auth/httpAuthSchemeProvider.js +1 -3
  5. package/dist-es/endpoint/EndpointParameters.js +2 -3
  6. package/dist-es/runtimeExtensions.js +2 -14
  7. package/dist-types/commands/AddLayerVersionPermissionCommand.d.ts +10 -10
  8. package/dist-types/commands/AddPermissionCommand.d.ts +16 -17
  9. package/dist-types/commands/CreateAliasCommand.d.ts +12 -12
  10. package/dist-types/commands/CreateCodeSigningConfigCommand.d.ts +1 -0
  11. package/dist-types/commands/CreateEventSourceMappingCommand.d.ts +13 -13
  12. package/dist-types/commands/CreateFunctionCommand.d.ts +45 -45
  13. package/dist-types/commands/CreateFunctionUrlConfigCommand.d.ts +1 -0
  14. package/dist-types/commands/DeleteAliasCommand.d.ts +8 -5
  15. package/dist-types/commands/DeleteCodeSigningConfigCommand.d.ts +1 -0
  16. package/dist-types/commands/DeleteEventSourceMappingCommand.d.ts +1 -22
  17. package/dist-types/commands/DeleteFunctionCodeSigningConfigCommand.d.ts +1 -0
  18. package/dist-types/commands/DeleteFunctionCommand.d.ts +8 -5
  19. package/dist-types/commands/DeleteFunctionConcurrencyCommand.d.ts +7 -4
  20. package/dist-types/commands/DeleteFunctionEventInvokeConfigCommand.d.ts +8 -5
  21. package/dist-types/commands/DeleteFunctionUrlConfigCommand.d.ts +1 -0
  22. package/dist-types/commands/DeleteLayerVersionCommand.d.ts +8 -5
  23. package/dist-types/commands/DeleteProvisionedConcurrencyConfigCommand.d.ts +8 -5
  24. package/dist-types/commands/GetAccountSettingsCommand.d.ts +13 -13
  25. package/dist-types/commands/GetAliasCommand.d.ts +10 -10
  26. package/dist-types/commands/GetCodeSigningConfigCommand.d.ts +1 -0
  27. package/dist-types/commands/GetEventSourceMappingCommand.d.ts +1 -27
  28. package/dist-types/commands/GetFunctionCodeSigningConfigCommand.d.ts +1 -0
  29. package/dist-types/commands/GetFunctionCommand.d.ts +33 -33
  30. package/dist-types/commands/GetFunctionConcurrencyCommand.d.ts +5 -5
  31. package/dist-types/commands/GetFunctionConfigurationCommand.d.ts +27 -27
  32. package/dist-types/commands/GetFunctionEventInvokeConfigCommand.d.ts +1 -26
  33. package/dist-types/commands/GetFunctionRecursionConfigCommand.d.ts +1 -0
  34. package/dist-types/commands/GetFunctionUrlConfigCommand.d.ts +1 -0
  35. package/dist-types/commands/GetLayerVersionByArnCommand.d.ts +14 -14
  36. package/dist-types/commands/GetLayerVersionCommand.d.ts +16 -16
  37. package/dist-types/commands/GetLayerVersionPolicyCommand.d.ts +1 -0
  38. package/dist-types/commands/GetPolicyCommand.d.ts +7 -7
  39. package/dist-types/commands/GetProvisionedConcurrencyConfigCommand.d.ts +18 -19
  40. package/dist-types/commands/GetRuntimeManagementConfigCommand.d.ts +1 -0
  41. package/dist-types/commands/InvokeAsyncCommand.d.ts +6 -6
  42. package/dist-types/commands/InvokeCommand.d.ts +15 -16
  43. package/dist-types/commands/InvokeWithResponseStreamCommand.d.ts +1 -0
  44. package/dist-types/commands/ListAliasesCommand.d.ts +18 -18
  45. package/dist-types/commands/ListCodeSigningConfigsCommand.d.ts +1 -0
  46. package/dist-types/commands/ListEventSourceMappingsCommand.d.ts +12 -12
  47. package/dist-types/commands/ListFunctionEventInvokeConfigsCommand.d.ts +13 -13
  48. package/dist-types/commands/ListFunctionUrlConfigsCommand.d.ts +1 -0
  49. package/dist-types/commands/ListFunctionsByCodeSigningConfigCommand.d.ts +1 -0
  50. package/dist-types/commands/ListFunctionsCommand.d.ts +40 -40
  51. package/dist-types/commands/ListLayerVersionsCommand.d.ts +15 -15
  52. package/dist-types/commands/ListLayersCommand.d.ts +13 -13
  53. package/dist-types/commands/ListProvisionedConcurrencyConfigsCommand.d.ts +17 -17
  54. package/dist-types/commands/ListTagsCommand.d.ts +7 -7
  55. package/dist-types/commands/ListVersionsByFunctionCommand.d.ts +45 -45
  56. package/dist-types/commands/PublishLayerVersionCommand.d.ts +21 -21
  57. package/dist-types/commands/PublishVersionCommand.d.ts +28 -28
  58. package/dist-types/commands/PutFunctionCodeSigningConfigCommand.d.ts +1 -0
  59. package/dist-types/commands/PutFunctionConcurrencyCommand.d.ts +6 -6
  60. package/dist-types/commands/PutFunctionEventInvokeConfigCommand.d.ts +1 -25
  61. package/dist-types/commands/PutFunctionRecursionConfigCommand.d.ts +1 -0
  62. package/dist-types/commands/PutProvisionedConcurrencyConfigCommand.d.ts +10 -10
  63. package/dist-types/commands/PutRuntimeManagementConfigCommand.d.ts +1 -0
  64. package/dist-types/commands/RemoveLayerVersionPermissionCommand.d.ts +9 -6
  65. package/dist-types/commands/RemovePermissionCommand.d.ts +9 -6
  66. package/dist-types/commands/TagResourceCommand.d.ts +9 -6
  67. package/dist-types/commands/UntagResourceCommand.d.ts +8 -5
  68. package/dist-types/commands/UpdateAliasCommand.d.ts +17 -17
  69. package/dist-types/commands/UpdateCodeSigningConfigCommand.d.ts +1 -0
  70. package/dist-types/commands/UpdateEventSourceMappingCommand.d.ts +1 -26
  71. package/dist-types/commands/UpdateFunctionCodeCommand.d.ts +21 -21
  72. package/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +20 -20
  73. package/dist-types/commands/UpdateFunctionEventInvokeConfigCommand.d.ts +15 -15
  74. package/dist-types/commands/UpdateFunctionUrlConfigCommand.d.ts +1 -0
  75. package/dist-types/runtimeConfig.browser.d.ts +3 -0
  76. package/package.json +38 -38
@@ -323,33 +323,8 @@ declare const UpdateEventSourceMappingCommand_base: {
323
323
  * @throws {@link LambdaServiceException}
324
324
  * <p>Base exception class for all service exceptions from Lambda service.</p>
325
325
  *
326
- * @public
327
- * @example To update a Lambda function event source mapping
328
- * ```javascript
329
- * // This operation updates a Lambda function event source mapping
330
- * const input = {
331
- * "BatchSize": 123,
332
- * "Enabled": true,
333
- * "FunctionName": "myFunction",
334
- * "UUID": "1234xCy789012"
335
- * };
336
- * const command = new UpdateEventSourceMappingCommand(input);
337
- * const response = await client.send(command);
338
- * /* response ==
339
- * {
340
- * "BatchSize": 123,
341
- * "EventSourceArn": "arn:aws:s3:::examplebucket/*",
342
- * "FunctionArn": "arn:aws:lambda:us-west-2:123456789012:function:myFunction",
343
- * "LastModified": "2016-11-21T19:49:20.006+0000",
344
- * "LastProcessingResult": "",
345
- * "State": "",
346
- * "StateTransitionReason": "",
347
- * "UUID": "1234xCy789012"
348
- * }
349
- * *\/
350
- * // example id: to-update-a-lambda-function-event-source-mapping-1481650907413
351
- * ```
352
326
  *
327
+ * @public
353
328
  */
354
329
  export declare class UpdateEventSourceMappingCommand extends UpdateEventSourceMappingCommand_base {
355
330
  /** @internal type navigation helper, not in runtime. */
@@ -223,40 +223,40 @@ declare const UpdateFunctionCodeCommand_base: {
223
223
  * @throws {@link LambdaServiceException}
224
224
  * <p>Base exception class for all service exceptions from Lambda service.</p>
225
225
  *
226
- * @public
226
+ *
227
227
  * @example To update a Lambda function's code
228
228
  * ```javascript
229
229
  * // The following example replaces the code of the unpublished ($LATEST) version of a function named my-function with the contents of the specified zip file in Amazon S3.
230
230
  * const input = {
231
- * "FunctionName": "my-function",
232
- * "S3Bucket": "my-bucket-1xpuxmplzrlbh",
233
- * "S3Key": "function.zip"
231
+ * FunctionName: "my-function",
232
+ * S3Bucket: "my-bucket-1xpuxmplzrlbh",
233
+ * S3Key: "function.zip"
234
234
  * };
235
235
  * const command = new UpdateFunctionCodeCommand(input);
236
236
  * const response = await client.send(command);
237
- * /* response ==
237
+ * /* response is
238
238
  * {
239
- * "CodeSha256": "PFn4S+er27qk+UuZSTKEQfNKG/XNn7QJs90mJgq6oH8=",
240
- * "CodeSize": 308,
241
- * "Description": "",
242
- * "FunctionArn": "arn:aws:lambda:us-east-2:123456789012:function:my-function",
243
- * "FunctionName": "my-function",
244
- * "Handler": "index.handler",
245
- * "LastModified": "2019-08-14T22:26:11.234+0000",
246
- * "MemorySize": 128,
247
- * "RevisionId": "873282ed-xmpl-4dc8-a069-d0c647e470c6",
248
- * "Role": "arn:aws:iam::123456789012:role/lambda-role",
249
- * "Runtime": "nodejs12.x",
250
- * "Timeout": 3,
251
- * "TracingConfig": {
252
- * "Mode": "PassThrough"
239
+ * CodeSha256: "PFn4S+er27qk+UuZSTKEQfNKG/XNn7QJs90mJgq6oH8=",
240
+ * CodeSize: 308,
241
+ * Description: "",
242
+ * FunctionArn: "arn:aws:lambda:us-east-2:123456789012:function:my-function",
243
+ * FunctionName: "my-function",
244
+ * Handler: "index.handler",
245
+ * LastModified: "2019-08-14T22:26:11.234+0000",
246
+ * MemorySize: 128,
247
+ * RevisionId: "873282ed-xmpl-4dc8-a069-d0c647e470c6",
248
+ * Role: "arn:aws:iam::123456789012:role/lambda-role",
249
+ * Runtime: "nodejs12.x",
250
+ * Timeout: 3,
251
+ * TracingConfig: {
252
+ * Mode: "PassThrough"
253
253
  * },
254
- * "Version": "$LATEST"
254
+ * Version: "$LATEST"
255
255
  * }
256
256
  * *\/
257
- * // example id: to-update-a-lambda-functions-code-1481650992672
258
257
  * ```
259
258
  *
259
+ * @public
260
260
  */
261
261
  export declare class UpdateFunctionCodeCommand extends UpdateFunctionCodeCommand_base {
262
262
  /** @internal type navigation helper, not in runtime. */
@@ -262,39 +262,39 @@ declare const UpdateFunctionConfigurationCommand_base: {
262
262
  * @throws {@link LambdaServiceException}
263
263
  * <p>Base exception class for all service exceptions from Lambda service.</p>
264
264
  *
265
- * @public
265
+ *
266
266
  * @example To update a Lambda function's configuration
267
267
  * ```javascript
268
268
  * // The following example modifies the memory size to be 256 MB for the unpublished ($LATEST) version of a function named my-function.
269
269
  * const input = {
270
- * "FunctionName": "my-function",
271
- * "MemorySize": 256
270
+ * FunctionName: "my-function",
271
+ * MemorySize: 256
272
272
  * };
273
273
  * const command = new UpdateFunctionConfigurationCommand(input);
274
274
  * const response = await client.send(command);
275
- * /* response ==
275
+ * /* response is
276
276
  * {
277
- * "CodeSha256": "PFn4S+er27qk+UuZSTKEQfNKG/XNn7QJs90mJgq6oH8=",
278
- * "CodeSize": 308,
279
- * "Description": "",
280
- * "FunctionArn": "arn:aws:lambda:us-east-2:123456789012:function:my-function",
281
- * "FunctionName": "my-function",
282
- * "Handler": "index.handler",
283
- * "LastModified": "2019-08-14T22:26:11.234+0000",
284
- * "MemorySize": 256,
285
- * "RevisionId": "873282ed-xmpl-4dc8-a069-d0c647e470c6",
286
- * "Role": "arn:aws:iam::123456789012:role/lambda-role",
287
- * "Runtime": "nodejs12.x",
288
- * "Timeout": 3,
289
- * "TracingConfig": {
290
- * "Mode": "PassThrough"
277
+ * CodeSha256: "PFn4S+er27qk+UuZSTKEQfNKG/XNn7QJs90mJgq6oH8=",
278
+ * CodeSize: 308,
279
+ * Description: "",
280
+ * FunctionArn: "arn:aws:lambda:us-east-2:123456789012:function:my-function",
281
+ * FunctionName: "my-function",
282
+ * Handler: "index.handler",
283
+ * LastModified: "2019-08-14T22:26:11.234+0000",
284
+ * MemorySize: 256,
285
+ * RevisionId: "873282ed-xmpl-4dc8-a069-d0c647e470c6",
286
+ * Role: "arn:aws:iam::123456789012:role/lambda-role",
287
+ * Runtime: "nodejs12.x",
288
+ * Timeout: 3,
289
+ * TracingConfig: {
290
+ * Mode: "PassThrough"
291
291
  * },
292
- * "Version": "$LATEST"
292
+ * Version: "$LATEST"
293
293
  * }
294
294
  * *\/
295
- * // example id: to-update-a-lambda-functions-configuration-1481651096447
296
295
  * ```
297
296
  *
297
+ * @public
298
298
  */
299
299
  export declare class UpdateFunctionConfigurationCommand extends UpdateFunctionConfigurationCommand_base {
300
300
  /** @internal type navigation helper, not in runtime. */
@@ -92,37 +92,37 @@ declare const UpdateFunctionEventInvokeConfigCommand_base: {
92
92
  * @throws {@link LambdaServiceException}
93
93
  * <p>Base exception class for all service exceptions from Lambda service.</p>
94
94
  *
95
- * @public
95
+ *
96
96
  * @example To update an asynchronous invocation configuration
97
97
  * ```javascript
98
98
  * // The following example adds an on-failure destination to the existing asynchronous invocation configuration for a function named my-function.
99
99
  * const input = {
100
- * "DestinationConfig": {
101
- * "OnFailure": {
102
- * "Destination": "arn:aws:sqs:us-east-2:123456789012:destination"
100
+ * DestinationConfig: {
101
+ * OnFailure: {
102
+ * Destination: "arn:aws:sqs:us-east-2:123456789012:destination"
103
103
  * }
104
104
  * },
105
- * "FunctionName": "my-function"
105
+ * FunctionName: "my-function"
106
106
  * };
107
107
  * const command = new UpdateFunctionEventInvokeConfigCommand(input);
108
108
  * const response = await client.send(command);
109
- * /* response ==
109
+ * /* response is
110
110
  * {
111
- * "DestinationConfig": {
112
- * "OnFailure": {
113
- * "Destination": "arn:aws:sqs:us-east-2:123456789012:destination"
111
+ * DestinationConfig: {
112
+ * OnFailure: {
113
+ * Destination: "arn:aws:sqs:us-east-2:123456789012:destination"
114
114
  * },
115
- * "OnSuccess": {}
115
+ * OnSuccess: { /* empty *\/ }
116
116
  * },
117
- * "FunctionArn": "arn:aws:lambda:us-east-2:123456789012:function:my-function:$LATEST",
118
- * "LastModified": 1573687896.493,
119
- * "MaximumEventAgeInSeconds": 3600,
120
- * "MaximumRetryAttempts": 0
117
+ * FunctionArn: "arn:aws:lambda:us-east-2:123456789012:function:my-function:$LATEST",
118
+ * LastModified: 1.573687896493E9,
119
+ * MaximumEventAgeInSeconds: 3600,
120
+ * MaximumRetryAttempts: 0
121
121
  * }
122
122
  * *\/
123
- * // example id: to-update-an-asynchronous-invocation-configuration-1586492061186
124
123
  * ```
125
124
  *
125
+ * @public
126
126
  */
127
127
  export declare class UpdateFunctionEventInvokeConfigCommand extends UpdateFunctionEventInvokeConfigCommand_base {
128
128
  /** @internal type navigation helper, not in runtime. */
@@ -109,6 +109,7 @@ declare const UpdateFunctionUrlConfigCommand_base: {
109
109
  * @throws {@link LambdaServiceException}
110
110
  * <p>Base exception class for all service exceptions from Lambda service.</p>
111
111
  *
112
+ *
112
113
  * @public
113
114
  */
114
115
  export declare class UpdateFunctionUrlConfigCommand extends UpdateFunctionUrlConfigCommand_base {
@@ -46,5 +46,8 @@ export declare const getRuntimeConfig: (config: LambdaClientConfig) => {
46
46
  signingEscapePath?: boolean | undefined;
47
47
  systemClockOffset?: number | undefined;
48
48
  signingRegion?: string | undefined;
49
+ /**
50
+ * @internal
51
+ */
49
52
  signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
50
53
  };
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.774.0",
4
+ "version": "3.777.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-lambda",
@@ -20,47 +20,47 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.774.0",
24
- "@aws-sdk/credential-provider-node": "3.774.0",
25
- "@aws-sdk/middleware-host-header": "3.774.0",
26
- "@aws-sdk/middleware-logger": "3.734.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.772.0",
28
- "@aws-sdk/middleware-user-agent": "3.774.0",
29
- "@aws-sdk/region-config-resolver": "3.734.0",
30
- "@aws-sdk/types": "3.734.0",
31
- "@aws-sdk/util-endpoints": "3.743.0",
32
- "@aws-sdk/util-user-agent-browser": "3.734.0",
33
- "@aws-sdk/util-user-agent-node": "3.774.0",
34
- "@smithy/config-resolver": "^4.0.1",
35
- "@smithy/core": "^3.1.5",
36
- "@smithy/eventstream-serde-browser": "^4.0.1",
37
- "@smithy/eventstream-serde-config-resolver": "^4.0.1",
38
- "@smithy/eventstream-serde-node": "^4.0.1",
39
- "@smithy/fetch-http-handler": "^5.0.1",
40
- "@smithy/hash-node": "^4.0.1",
41
- "@smithy/invalid-dependency": "^4.0.1",
42
- "@smithy/middleware-content-length": "^4.0.1",
43
- "@smithy/middleware-endpoint": "^4.0.6",
44
- "@smithy/middleware-retry": "^4.0.7",
45
- "@smithy/middleware-serde": "^4.0.2",
46
- "@smithy/middleware-stack": "^4.0.1",
47
- "@smithy/node-config-provider": "^4.0.1",
48
- "@smithy/node-http-handler": "^4.0.3",
49
- "@smithy/protocol-http": "^5.0.1",
50
- "@smithy/smithy-client": "^4.1.6",
51
- "@smithy/types": "^4.1.0",
52
- "@smithy/url-parser": "^4.0.1",
23
+ "@aws-sdk/core": "3.775.0",
24
+ "@aws-sdk/credential-provider-node": "3.777.0",
25
+ "@aws-sdk/middleware-host-header": "3.775.0",
26
+ "@aws-sdk/middleware-logger": "3.775.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.775.0",
28
+ "@aws-sdk/middleware-user-agent": "3.775.0",
29
+ "@aws-sdk/region-config-resolver": "3.775.0",
30
+ "@aws-sdk/types": "3.775.0",
31
+ "@aws-sdk/util-endpoints": "3.775.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.775.0",
33
+ "@aws-sdk/util-user-agent-node": "3.775.0",
34
+ "@smithy/config-resolver": "^4.1.0",
35
+ "@smithy/core": "^3.2.0",
36
+ "@smithy/eventstream-serde-browser": "^4.0.2",
37
+ "@smithy/eventstream-serde-config-resolver": "^4.1.0",
38
+ "@smithy/eventstream-serde-node": "^4.0.2",
39
+ "@smithy/fetch-http-handler": "^5.0.2",
40
+ "@smithy/hash-node": "^4.0.2",
41
+ "@smithy/invalid-dependency": "^4.0.2",
42
+ "@smithy/middleware-content-length": "^4.0.2",
43
+ "@smithy/middleware-endpoint": "^4.1.0",
44
+ "@smithy/middleware-retry": "^4.1.0",
45
+ "@smithy/middleware-serde": "^4.0.3",
46
+ "@smithy/middleware-stack": "^4.0.2",
47
+ "@smithy/node-config-provider": "^4.0.2",
48
+ "@smithy/node-http-handler": "^4.0.4",
49
+ "@smithy/protocol-http": "^5.1.0",
50
+ "@smithy/smithy-client": "^4.2.0",
51
+ "@smithy/types": "^4.2.0",
52
+ "@smithy/url-parser": "^4.0.2",
53
53
  "@smithy/util-base64": "^4.0.0",
54
54
  "@smithy/util-body-length-browser": "^4.0.0",
55
55
  "@smithy/util-body-length-node": "^4.0.0",
56
- "@smithy/util-defaults-mode-browser": "^4.0.7",
57
- "@smithy/util-defaults-mode-node": "^4.0.7",
58
- "@smithy/util-endpoints": "^3.0.1",
59
- "@smithy/util-middleware": "^4.0.1",
60
- "@smithy/util-retry": "^4.0.1",
61
- "@smithy/util-stream": "^4.1.2",
56
+ "@smithy/util-defaults-mode-browser": "^4.0.8",
57
+ "@smithy/util-defaults-mode-node": "^4.0.8",
58
+ "@smithy/util-endpoints": "^3.0.2",
59
+ "@smithy/util-middleware": "^4.0.2",
60
+ "@smithy/util-retry": "^4.0.2",
61
+ "@smithy/util-stream": "^4.2.0",
62
62
  "@smithy/util-utf8": "^4.0.0",
63
- "@smithy/util-waiter": "^4.0.2",
63
+ "@smithy/util-waiter": "^4.0.3",
64
64
  "tslib": "^2.6.2"
65
65
  },
66
66
  "devDependencies": {