@aws-sdk/client-lambda 3.940.0 → 3.942.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 (68) hide show
  1. package/README.md +64 -0
  2. package/dist-cjs/index.js +630 -21
  3. package/dist-es/Lambda.js +16 -0
  4. package/dist-es/commands/CreateCapacityProviderCommand.js +16 -0
  5. package/dist-es/commands/DeleteCapacityProviderCommand.js +16 -0
  6. package/dist-es/commands/GetCapacityProviderCommand.js +16 -0
  7. package/dist-es/commands/GetFunctionScalingConfigCommand.js +16 -0
  8. package/dist-es/commands/ListCapacityProvidersCommand.js +16 -0
  9. package/dist-es/commands/ListFunctionVersionsByCapacityProviderCommand.js +16 -0
  10. package/dist-es/commands/PutFunctionScalingConfigCommand.js +16 -0
  11. package/dist-es/commands/UpdateCapacityProviderCommand.js +16 -0
  12. package/dist-es/commands/index.js +8 -0
  13. package/dist-es/models/enums.js +50 -6
  14. package/dist-es/models/errors.js +44 -0
  15. package/dist-es/pagination/ListCapacityProvidersPaginator.js +4 -0
  16. package/dist-es/pagination/ListFunctionVersionsByCapacityProviderPaginator.js +4 -0
  17. package/dist-es/pagination/index.js +2 -0
  18. package/dist-es/schemas/schemas_0.js +415 -16
  19. package/dist-types/Lambda.d.ts +57 -0
  20. package/dist-types/LambdaClient.d.ts +10 -2
  21. package/dist-types/commands/CreateCapacityProviderCommand.d.ts +162 -0
  22. package/dist-types/commands/CreateFunctionCommand.d.ts +22 -3
  23. package/dist-types/commands/DeleteCapacityProviderCommand.d.ts +126 -0
  24. package/dist-types/commands/DeleteFunctionCommand.d.ts +6 -4
  25. package/dist-types/commands/GetCapacityProviderCommand.d.ts +123 -0
  26. package/dist-types/commands/GetFunctionCommand.d.ts +11 -3
  27. package/dist-types/commands/GetFunctionConfigurationCommand.d.ts +11 -3
  28. package/dist-types/commands/GetFunctionScalingConfigCommand.d.ts +95 -0
  29. package/dist-types/commands/GetProvisionedConcurrencyConfigCommand.d.ts +4 -4
  30. package/dist-types/commands/InvokeCommand.d.ts +4 -1
  31. package/dist-types/commands/InvokeWithResponseStreamCommand.d.ts +4 -1
  32. package/dist-types/commands/ListCapacityProvidersCommand.d.ts +125 -0
  33. package/dist-types/commands/ListFunctionVersionsByCapacityProviderCommand.d.ts +95 -0
  34. package/dist-types/commands/ListFunctionsCommand.d.ts +11 -3
  35. package/dist-types/commands/ListVersionsByFunctionCommand.d.ts +11 -3
  36. package/dist-types/commands/PublishVersionCommand.d.ts +15 -3
  37. package/dist-types/commands/PutFunctionScalingConfigCommand.d.ts +94 -0
  38. package/dist-types/commands/UpdateCapacityProviderCommand.d.ts +136 -0
  39. package/dist-types/commands/UpdateFunctionCodeCommand.d.ts +12 -3
  40. package/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +18 -3
  41. package/dist-types/commands/index.d.ts +8 -0
  42. package/dist-types/models/enums.d.ts +90 -14
  43. package/dist-types/models/errors.d.ts +53 -1
  44. package/dist-types/models/models_0.d.ts +642 -147
  45. package/dist-types/pagination/ListCapacityProvidersPaginator.d.ts +7 -0
  46. package/dist-types/pagination/ListFunctionVersionsByCapacityProviderPaginator.d.ts +7 -0
  47. package/dist-types/pagination/index.d.ts +2 -0
  48. package/dist-types/schemas/schemas_0.d.ts +44 -0
  49. package/dist-types/ts3.4/Lambda.d.ts +143 -0
  50. package/dist-types/ts3.4/LambdaClient.d.ts +48 -0
  51. package/dist-types/ts3.4/commands/CreateCapacityProviderCommand.d.ts +51 -0
  52. package/dist-types/ts3.4/commands/DeleteCapacityProviderCommand.d.ts +51 -0
  53. package/dist-types/ts3.4/commands/DeleteFunctionCommand.d.ts +8 -3
  54. package/dist-types/ts3.4/commands/GetCapacityProviderCommand.d.ts +51 -0
  55. package/dist-types/ts3.4/commands/GetFunctionScalingConfigCommand.d.ts +51 -0
  56. package/dist-types/ts3.4/commands/ListCapacityProvidersCommand.d.ts +51 -0
  57. package/dist-types/ts3.4/commands/ListFunctionVersionsByCapacityProviderCommand.d.ts +51 -0
  58. package/dist-types/ts3.4/commands/PutFunctionScalingConfigCommand.d.ts +51 -0
  59. package/dist-types/ts3.4/commands/UpdateCapacityProviderCommand.d.ts +51 -0
  60. package/dist-types/ts3.4/commands/index.d.ts +8 -0
  61. package/dist-types/ts3.4/models/enums.d.ts +59 -7
  62. package/dist-types/ts3.4/models/errors.d.ts +31 -0
  63. package/dist-types/ts3.4/models/models_0.d.ts +172 -42
  64. package/dist-types/ts3.4/pagination/ListCapacityProvidersPaginator.d.ts +11 -0
  65. package/dist-types/ts3.4/pagination/ListFunctionVersionsByCapacityProviderPaginator.d.ts +11 -0
  66. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  67. package/dist-types/ts3.4/schemas/schemas_0.d.ts +44 -0
  68. package/package.json +1 -1
@@ -91,6 +91,61 @@ export declare const Architecture: {
91
91
  * @public
92
92
  */
93
93
  export type Architecture = (typeof Architecture)[keyof typeof Architecture];
94
+ /**
95
+ * @public
96
+ * @enum
97
+ */
98
+ export declare const CapacityProviderScalingMode: {
99
+ readonly Auto: "Auto";
100
+ readonly Manual: "Manual";
101
+ };
102
+ /**
103
+ * @public
104
+ */
105
+ export type CapacityProviderScalingMode = (typeof CapacityProviderScalingMode)[keyof typeof CapacityProviderScalingMode];
106
+ /**
107
+ * @public
108
+ * @enum
109
+ */
110
+ export declare const CapacityProviderPredefinedMetricType: {
111
+ readonly LambdaCapacityProviderAverageCPUUtilization: "LambdaCapacityProviderAverageCPUUtilization";
112
+ };
113
+ /**
114
+ * @public
115
+ */
116
+ export type CapacityProviderPredefinedMetricType = (typeof CapacityProviderPredefinedMetricType)[keyof typeof CapacityProviderPredefinedMetricType];
117
+ /**
118
+ * @public
119
+ * @enum
120
+ */
121
+ export declare const CapacityProviderState: {
122
+ readonly Active: "Active";
123
+ readonly Deleting: "Deleting";
124
+ readonly Failed: "Failed";
125
+ readonly Pending: "Pending";
126
+ };
127
+ /**
128
+ * @public
129
+ */
130
+ export type CapacityProviderState = (typeof CapacityProviderState)[keyof typeof CapacityProviderState];
131
+ /**
132
+ * @public
133
+ * @enum
134
+ */
135
+ export declare const State: {
136
+ readonly Active: "Active";
137
+ readonly ActiveNonInvocable: "ActiveNonInvocable";
138
+ readonly Deactivated: "Deactivated";
139
+ readonly Deactivating: "Deactivating";
140
+ readonly Deleting: "Deleting";
141
+ readonly Failed: "Failed";
142
+ readonly Inactive: "Inactive";
143
+ readonly Pending: "Pending";
144
+ };
145
+ /**
146
+ * @public
147
+ */
148
+ export type State = (typeof State)[keyof typeof State];
94
149
  /**
95
150
  * @public
96
151
  * @enum
@@ -216,6 +271,17 @@ export declare const PackageType: {
216
271
  * @public
217
272
  */
218
273
  export type PackageType = (typeof PackageType)[keyof typeof PackageType];
274
+ /**
275
+ * @public
276
+ * @enum
277
+ */
278
+ export declare const FunctionVersionLatestPublished: {
279
+ readonly LATEST_PUBLISHED: "LATEST_PUBLISHED";
280
+ };
281
+ /**
282
+ * @public
283
+ */
284
+ export type FunctionVersionLatestPublished = (typeof FunctionVersionLatestPublished)[keyof typeof FunctionVersionLatestPublished];
219
285
  /**
220
286
  * @public
221
287
  * @enum
@@ -323,15 +389,26 @@ export type LastUpdateStatus = (typeof LastUpdateStatus)[keyof typeof LastUpdate
323
389
  * @enum
324
390
  */
325
391
  export declare const LastUpdateStatusReasonCode: {
392
+ readonly CapacityProviderScalingLimitExceeded: "CapacityProviderScalingLimitExceeded";
326
393
  readonly DisabledKMSKey: "DisabledKMSKey";
394
+ readonly EC2RequestLimitExceeded: "EC2RequestLimitExceeded";
327
395
  readonly EFSIOError: "EFSIOError";
328
396
  readonly EFSMountConnectivityError: "EFSMountConnectivityError";
329
397
  readonly EFSMountFailure: "EFSMountFailure";
330
398
  readonly EFSMountTimeout: "EFSMountTimeout";
331
399
  readonly EniLimitExceeded: "EniLimitExceeded";
332
400
  readonly FunctionError: "FunctionError";
401
+ readonly FunctionErrorExtensionInitError: "FunctionError.ExtensionInitError";
402
+ readonly FunctionErrorInitResourceExhausted: "FunctionError.InitResourceExhausted";
403
+ readonly FunctionErrorInitTimeout: "FunctionError.InitTimeout";
404
+ readonly FunctionErrorInvalidEntryPoint: "FunctionError.InvalidEntryPoint";
405
+ readonly FunctionErrorInvalidWorkingDirectory: "FunctionError.InvalidWorkingDirectory";
406
+ readonly FunctionErrorPermissionDenied: "FunctionError.PermissionDenied";
407
+ readonly FunctionErrorRuntimeInitError: "FunctionError.RuntimeInitError";
408
+ readonly FunctionErrorTooManyExtensions: "FunctionError.TooManyExtensions";
333
409
  readonly ImageAccessDenied: "ImageAccessDenied";
334
410
  readonly ImageDeleted: "ImageDeleted";
411
+ readonly InsufficientCapacity: "InsufficientCapacity";
335
412
  readonly InsufficientRolePermissions: "InsufficientRolePermissions";
336
413
  readonly InternalError: "InternalError";
337
414
  readonly InvalidConfiguration: "InvalidConfiguration";
@@ -344,6 +421,7 @@ export declare const LastUpdateStatusReasonCode: {
344
421
  readonly KMSKeyAccessDenied: "KMSKeyAccessDenied";
345
422
  readonly KMSKeyNotFound: "KMSKeyNotFound";
346
423
  readonly SubnetOutOfIPAddresses: "SubnetOutOfIPAddresses";
424
+ readonly VcpuLimitExceeded: "VcpuLimitExceeded";
347
425
  };
348
426
  /**
349
427
  * @public
@@ -361,36 +439,33 @@ export declare const SnapStartOptimizationStatus: {
361
439
  * @public
362
440
  */
363
441
  export type SnapStartOptimizationStatus = (typeof SnapStartOptimizationStatus)[keyof typeof SnapStartOptimizationStatus];
364
- /**
365
- * @public
366
- * @enum
367
- */
368
- export declare const State: {
369
- readonly Active: "Active";
370
- readonly Failed: "Failed";
371
- readonly Inactive: "Inactive";
372
- readonly Pending: "Pending";
373
- };
374
- /**
375
- * @public
376
- */
377
- export type State = (typeof State)[keyof typeof State];
378
442
  /**
379
443
  * @public
380
444
  * @enum
381
445
  */
382
446
  export declare const StateReasonCode: {
447
+ readonly CapacityProviderScalingLimitExceeded: "CapacityProviderScalingLimitExceeded";
383
448
  readonly Creating: "Creating";
384
449
  readonly DisabledKMSKey: "DisabledKMSKey";
450
+ readonly EC2RequestLimitExceeded: "EC2RequestLimitExceeded";
385
451
  readonly EFSIOError: "EFSIOError";
386
452
  readonly EFSMountConnectivityError: "EFSMountConnectivityError";
387
453
  readonly EFSMountFailure: "EFSMountFailure";
388
454
  readonly EFSMountTimeout: "EFSMountTimeout";
389
455
  readonly EniLimitExceeded: "EniLimitExceeded";
390
456
  readonly FunctionError: "FunctionError";
457
+ readonly FunctionErrorExtensionInitError: "FunctionError.ExtensionInitError";
458
+ readonly FunctionErrorInitResourceExhausted: "FunctionError.InitResourceExhausted";
459
+ readonly FunctionErrorInitTimeout: "FunctionError.InitTimeout";
460
+ readonly FunctionErrorInvalidEntryPoint: "FunctionError.InvalidEntryPoint";
461
+ readonly FunctionErrorInvalidWorkingDirectory: "FunctionError.InvalidWorkingDirectory";
462
+ readonly FunctionErrorPermissionDenied: "FunctionError.PermissionDenied";
463
+ readonly FunctionErrorRuntimeInitError: "FunctionError.RuntimeInitError";
464
+ readonly FunctionErrorTooManyExtensions: "FunctionError.TooManyExtensions";
391
465
  readonly Idle: "Idle";
392
466
  readonly ImageAccessDenied: "ImageAccessDenied";
393
467
  readonly ImageDeleted: "ImageDeleted";
468
+ readonly InsufficientCapacity: "InsufficientCapacity";
394
469
  readonly InsufficientRolePermissions: "InsufficientRolePermissions";
395
470
  readonly InternalError: "InternalError";
396
471
  readonly InvalidConfiguration: "InvalidConfiguration";
@@ -404,6 +479,7 @@ export declare const StateReasonCode: {
404
479
  readonly KMSKeyNotFound: "KMSKeyNotFound";
405
480
  readonly Restoring: "Restoring";
406
481
  readonly SubnetOutOfIPAddresses: "SubnetOutOfIPAddresses";
482
+ readonly VcpuLimitExceeded: "VcpuLimitExceeded";
407
483
  };
408
484
  /**
409
485
  * @public
@@ -112,6 +112,23 @@ export declare class TooManyRequestsException extends __BaseException {
112
112
  */
113
113
  constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
114
114
  }
115
+ /**
116
+ * <p>The maximum number of capacity providers for your account has been exceeded. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html">Lambda quotas</a> </p>
117
+ * @public
118
+ */
119
+ export declare class CapacityProviderLimitExceededException extends __BaseException {
120
+ readonly name: "CapacityProviderLimitExceededException";
121
+ readonly $fault: "client";
122
+ /**
123
+ * <p>The exception type.</p>
124
+ * @public
125
+ */
126
+ Type?: string | undefined;
127
+ /**
128
+ * @internal
129
+ */
130
+ constructor(opts: __ExceptionOptionType<CapacityProviderLimitExceededException, __BaseException>);
131
+ }
115
132
  /**
116
133
  * <p>The operation conflicts with the resource's availability. For example, you tried to update an event source mapping in the CREATING state, or you tried to delete an event source mapping currently UPDATING.</p>
117
134
  * @public
@@ -171,6 +188,23 @@ export declare class CodeVerificationFailedException extends __BaseException {
171
188
  */
172
189
  constructor(opts: __ExceptionOptionType<CodeVerificationFailedException, __BaseException>);
173
190
  }
191
+ /**
192
+ * <p>The maximum number of function versions that can be associated with a single capacity provider has been exceeded. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html">Lambda quotas</a>.</p>
193
+ * @public
194
+ */
195
+ export declare class FunctionVersionsPerCapacityProviderLimitExceededException extends __BaseException {
196
+ readonly name: "FunctionVersionsPerCapacityProviderLimitExceededException";
197
+ readonly $fault: "client";
198
+ /**
199
+ * <p>The exception type.</p>
200
+ * @public
201
+ */
202
+ Type?: string | undefined;
203
+ /**
204
+ * @internal
205
+ */
206
+ constructor(opts: __ExceptionOptionType<FunctionVersionsPerCapacityProviderLimitExceededException, __BaseException>);
207
+ }
174
208
  /**
175
209
  * <p>The code signature failed the integrity check. If the integrity check fails, then Lambda blocks deployment, even if the code signing policy is set to WARN.</p>
176
210
  * @public
@@ -427,6 +461,24 @@ export declare class KMSNotFoundException extends __BaseException {
427
461
  */
428
462
  constructor(opts: __ExceptionOptionType<KMSNotFoundException, __BaseException>);
429
463
  }
464
+ /**
465
+ * <p>The function has no published versions available.</p>
466
+ * @public
467
+ */
468
+ export declare class NoPublishedVersionException extends __BaseException {
469
+ readonly name: "NoPublishedVersionException";
470
+ readonly $fault: "client";
471
+ /**
472
+ * <p>The exception type.</p>
473
+ * @public
474
+ */
475
+ Type?: string | undefined;
476
+ Message?: string | undefined;
477
+ /**
478
+ * @internal
479
+ */
480
+ constructor(opts: __ExceptionOptionType<NoPublishedVersionException, __BaseException>);
481
+ }
430
482
  /**
431
483
  * <p>Lambda has detected your function being invoked in a recursive loop with other Amazon Web Services resources and stopped your function's invocation.</p>
432
484
  * @public
@@ -480,7 +532,7 @@ export declare class ResourceNotReadyException extends __BaseException {
480
532
  constructor(opts: __ExceptionOptionType<ResourceNotReadyException, __BaseException>);
481
533
  }
482
534
  /**
483
- * <p>The processed request payload exceeded the <code>Invoke</code> request body size limit for asynchronous invocations. While the event payload may be under 1 MB, the size after internal serialization exceeds the maximum allowed size for asynchronous invocations.</p>
535
+ * <p>The request payload exceeded the maximum allowed size for serialized request entities.</p>
484
536
  * @public
485
537
  */
486
538
  export declare class SerializedRequestEntityTooLargeException extends __BaseException {