@aws-sdk/client-lambda 3.846.0 → 3.851.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 (66) hide show
  1. package/README.md +1 -66
  2. package/dist-cjs/index.js +73 -73
  3. package/dist-es/models/models_0.js +43 -43
  4. package/dist-es/waiters/waitForFunctionActive.js +2 -2
  5. package/dist-es/waiters/waitForFunctionActiveV2.js +2 -2
  6. package/dist-es/waiters/waitForFunctionExists.js +2 -2
  7. package/dist-es/waiters/waitForFunctionUpdated.js +2 -2
  8. package/dist-es/waiters/waitForFunctionUpdatedV2.js +2 -2
  9. package/dist-es/waiters/waitForPublishedVersionActive.js +2 -2
  10. package/dist-types/Lambda.d.ts +1 -65
  11. package/dist-types/LambdaClient.d.ts +1 -65
  12. package/dist-types/commands/AddLayerVersionPermissionCommand.d.ts +2 -17
  13. package/dist-types/commands/AddPermissionCommand.d.ts +2 -24
  14. package/dist-types/commands/CreateAliasCommand.d.ts +1 -6
  15. package/dist-types/commands/CreateCodeSigningConfigCommand.d.ts +1 -3
  16. package/dist-types/commands/CreateEventSourceMappingCommand.d.ts +1 -118
  17. package/dist-types/commands/CreateFunctionCommand.d.ts +3 -42
  18. package/dist-types/commands/CreateFunctionUrlConfigCommand.d.ts +1 -2
  19. package/dist-types/commands/DeleteCodeSigningConfigCommand.d.ts +1 -2
  20. package/dist-types/commands/DeleteEventSourceMappingCommand.d.ts +2 -6
  21. package/dist-types/commands/DeleteFunctionCommand.d.ts +1 -5
  22. package/dist-types/commands/DeleteFunctionEventInvokeConfigCommand.d.ts +1 -2
  23. package/dist-types/commands/DeleteFunctionUrlConfigCommand.d.ts +1 -2
  24. package/dist-types/commands/DeleteLayerVersionCommand.d.ts +1 -3
  25. package/dist-types/commands/GetEventSourceMappingCommand.d.ts +1 -2
  26. package/dist-types/commands/GetFunctionCommand.d.ts +1 -3
  27. package/dist-types/commands/GetFunctionConcurrencyCommand.d.ts +1 -2
  28. package/dist-types/commands/GetFunctionConfigurationCommand.d.ts +1 -3
  29. package/dist-types/commands/GetFunctionEventInvokeConfigCommand.d.ts +1 -2
  30. package/dist-types/commands/GetFunctionRecursionConfigCommand.d.ts +1 -2
  31. package/dist-types/commands/GetLayerVersionByArnCommand.d.ts +1 -3
  32. package/dist-types/commands/GetLayerVersionCommand.d.ts +1 -3
  33. package/dist-types/commands/GetLayerVersionPolicyCommand.d.ts +1 -2
  34. package/dist-types/commands/GetRuntimeManagementConfigCommand.d.ts +1 -3
  35. package/dist-types/commands/InvokeAsyncCommand.d.ts +2 -10
  36. package/dist-types/commands/InvokeCommand.d.ts +14 -55
  37. package/dist-types/commands/InvokeWithResponseStreamCommand.d.ts +14 -31
  38. package/dist-types/commands/ListAliasesCommand.d.ts +1 -2
  39. package/dist-types/commands/ListCodeSigningConfigsCommand.d.ts +1 -3
  40. package/dist-types/commands/ListEventSourceMappingsCommand.d.ts +1 -2
  41. package/dist-types/commands/ListFunctionEventInvokeConfigsCommand.d.ts +1 -2
  42. package/dist-types/commands/ListFunctionsByCodeSigningConfigCommand.d.ts +1 -2
  43. package/dist-types/commands/ListFunctionsCommand.d.ts +1 -9
  44. package/dist-types/commands/ListLayerVersionsCommand.d.ts +1 -4
  45. package/dist-types/commands/ListLayersCommand.d.ts +1 -6
  46. package/dist-types/commands/ListTagsCommand.d.ts +1 -2
  47. package/dist-types/commands/ListVersionsByFunctionCommand.d.ts +1 -2
  48. package/dist-types/commands/PublishLayerVersionCommand.d.ts +1 -4
  49. package/dist-types/commands/PublishVersionCommand.d.ts +2 -18
  50. package/dist-types/commands/PutFunctionCodeSigningConfigCommand.d.ts +1 -2
  51. package/dist-types/commands/PutFunctionConcurrencyCommand.d.ts +1 -9
  52. package/dist-types/commands/PutFunctionEventInvokeConfigCommand.d.ts +1 -14
  53. package/dist-types/commands/PutFunctionRecursionConfigCommand.d.ts +1 -7
  54. package/dist-types/commands/PutRuntimeManagementConfigCommand.d.ts +1 -2
  55. package/dist-types/commands/RemoveLayerVersionPermissionCommand.d.ts +2 -14
  56. package/dist-types/commands/RemovePermissionCommand.d.ts +2 -13
  57. package/dist-types/commands/UpdateAliasCommand.d.ts +1 -11
  58. package/dist-types/commands/UpdateCodeSigningConfigCommand.d.ts +1 -2
  59. package/dist-types/commands/UpdateEventSourceMappingCommand.d.ts +2 -121
  60. package/dist-types/commands/UpdateFunctionCodeCommand.d.ts +4 -31
  61. package/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +4 -27
  62. package/dist-types/commands/UpdateFunctionEventInvokeConfigCommand.d.ts +1 -2
  63. package/dist-types/index.d.ts +1 -65
  64. package/dist-types/models/models_0.d.ts +1328 -3048
  65. package/dist-types/ts3.4/models/models_0.d.ts +319 -319
  66. package/package.json +5 -5
package/README.md CHANGED
@@ -6,72 +6,7 @@
6
6
 
7
7
  AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native.
8
8
 
9
- <fullname>Lambda</fullname>
10
-
11
- <p>
12
- <b>Overview</b>
13
- </p>
14
- <p>Lambda is a compute service that lets you run code without provisioning or managing servers.
15
- Lambda runs your code on a high-availability compute infrastructure and performs all of the
16
- administration of the compute resources, including server and operating system maintenance, capacity provisioning
17
- and automatic scaling, code monitoring and logging. With Lambda, you can run code for virtually any
18
- type of application or backend service. For more information about the Lambda service, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/welcome.html">What is Lambda</a> in the <b>Lambda Developer Guide</b>.</p>
19
- <p>The <i>Lambda API Reference</i> provides information about
20
- each of the API methods, including details about the parameters in each API request and
21
- response. </p>
22
- <p></p>
23
- <p>You can use Software Development Kits (SDKs), Integrated Development Environment (IDE) Toolkits, and command
24
- line tools to access the API. For installation instructions, see <a href="http://aws.amazon.com/tools/">Tools for
25
- Amazon Web Services</a>. </p>
26
- <p>For a list of Region-specific endpoints that Lambda supports,
27
- see <a href="https://docs.aws.amazon.com/general/latest/gr/lambda-service.html">Lambda
28
- endpoints and quotas </a> in the <i>Amazon Web Services General Reference.</i>. </p>
29
- <p>When making the API calls, you will need to
30
- authenticate your request by providing a signature. Lambda supports signature version 4. For more information,
31
- see <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature Version 4 signing process</a> in the
32
- <i>Amazon Web Services General Reference.</i>. </p>
33
- <p>
34
- <b>CA certificates</b>
35
- </p>
36
- <p>Because Amazon Web Services SDKs use the CA certificates from your computer, changes to the certificates on the Amazon Web Services servers
37
- can cause connection failures when you attempt to use an SDK. You can prevent these failures by keeping your
38
- computer's CA certificates and operating system up-to-date. If you encounter this issue in a corporate
39
- environment and do not manage your own computer, you might need to ask an administrator to assist with the
40
- update process. The following list shows minimum operating system and Java versions:</p>
41
- <ul>
42
- <li>
43
- <p>Microsoft Windows versions that have updates from January 2005 or later installed contain at least one
44
- of the required CAs in their trust list. </p>
45
- </li>
46
- <li>
47
- <p>Mac OS X 10.4 with Java for Mac OS X 10.4 Release 5 (February 2007), Mac OS X 10.5 (October 2007), and
48
- later versions contain at least one of the required CAs in their trust list. </p>
49
- </li>
50
- <li>
51
- <p>Red Hat Enterprise Linux 5 (March 2007), 6, and 7 and CentOS 5, 6, and 7 all contain at least one of the
52
- required CAs in their default trusted CA list. </p>
53
- </li>
54
- <li>
55
- <p>Java 1.4.2_12 (May 2006), 5 Update 2 (March 2005), and all later versions, including Java 6 (December
56
- 2006), 7, and 8, contain at least one of the required CAs in their default trusted CA list. </p>
57
- </li>
58
- </ul>
59
- <p>When accessing the Lambda management console or Lambda API endpoints, whether through browsers or
60
- programmatically, you will need to ensure your client machines support any of the following CAs: </p>
61
- <ul>
62
- <li>
63
- <p>Amazon Root CA 1</p>
64
- </li>
65
- <li>
66
- <p>Starfield Services Root Certificate Authority - G2</p>
67
- </li>
68
- <li>
69
- <p>Starfield Class 2 Certification Authority</p>
70
- </li>
71
- </ul>
72
- <p>Root certificates from the first two authorities are available from <a href="https://www.amazontrust.com/repository/">Amazon trust services</a>, but keeping your computer
73
- up-to-date is the more straightforward solution. To learn more about ACM-provided certificates, see <a href="http://aws.amazon.com/certificate-manager/faqs/#certificates">Amazon Web Services Certificate Manager FAQs.</a>
74
- </p>
9
+ <fullname>Lambda</fullname> <p> <b>Overview</b> </p> <p>Lambda is a compute service that lets you run code without provisioning or managing servers. Lambda runs your code on a high-availability compute infrastructure and performs all of the administration of the compute resources, including server and operating system maintenance, capacity provisioning and automatic scaling, code monitoring and logging. With Lambda, you can run code for virtually any type of application or backend service. For more information about the Lambda service, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/welcome.html">What is Lambda</a> in the <b>Lambda Developer Guide</b>.</p> <p>The <i>Lambda API Reference</i> provides information about each of the API methods, including details about the parameters in each API request and response. </p> <p/> <p>You can use Software Development Kits (SDKs), Integrated Development Environment (IDE) Toolkits, and command line tools to access the API. For installation instructions, see <a href="http://aws.amazon.com/tools/">Tools for Amazon Web Services</a>. </p> <p>For a list of Region-specific endpoints that Lambda supports, see <a href="https://docs.aws.amazon.com/general/latest/gr/lambda-service.html">Lambda endpoints and quotas </a> in the <i>Amazon Web Services General Reference.</i>. </p> <p>When making the API calls, you will need to authenticate your request by providing a signature. Lambda supports signature version 4. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature Version 4 signing process</a> in the <i>Amazon Web Services General Reference.</i>. </p> <p> <b>CA certificates</b> </p> <p>Because Amazon Web Services SDKs use the CA certificates from your computer, changes to the certificates on the Amazon Web Services servers can cause connection failures when you attempt to use an SDK. You can prevent these failures by keeping your computer's CA certificates and operating system up-to-date. If you encounter this issue in a corporate environment and do not manage your own computer, you might need to ask an administrator to assist with the update process. The following list shows minimum operating system and Java versions:</p> <ul> <li> <p>Microsoft Windows versions that have updates from January 2005 or later installed contain at least one of the required CAs in their trust list. </p> </li> <li> <p>Mac OS X 10.4 with Java for Mac OS X 10.4 Release 5 (February 2007), Mac OS X 10.5 (October 2007), and later versions contain at least one of the required CAs in their trust list. </p> </li> <li> <p>Red Hat Enterprise Linux 5 (March 2007), 6, and 7 and CentOS 5, 6, and 7 all contain at least one of the required CAs in their default trusted CA list. </p> </li> <li> <p>Java 1.4.2_12 (May 2006), 5 Update 2 (March 2005), and all later versions, including Java 6 (December 2006), 7, and 8, contain at least one of the required CAs in their default trusted CA list. </p> </li> </ul> <p>When accessing the Lambda management console or Lambda API endpoints, whether through browsers or programmatically, you will need to ensure your client machines support any of the following CAs: </p> <ul> <li> <p>Amazon Root CA 1</p> </li> <li> <p>Starfield Services Root Certificate Authority - G2</p> </li> <li> <p>Starfield Class 2 Certification Authority</p> </li> </ul> <p>Root certificates from the first two authorities are available from <a href="https://www.amazontrust.com/repository/">Amazon trust services</a>, but keeping your computer up-to-date is the more straightforward solution. To learn more about ACM-provided certificates, see <a href="http://aws.amazon.com/certificate-manager/faqs/#certificates">Amazon Web Services Certificate Manager FAQs.</a> </p>
75
10
 
76
11
  ## Installing
77
12
 
package/dist-cjs/index.js CHANGED
@@ -621,6 +621,28 @@ var EventSourcePosition = {
621
621
  LATEST: "LATEST",
622
622
  TRIM_HORIZON: "TRIM_HORIZON"
623
623
  };
624
+ var ResourceInUseException = class _ResourceInUseException extends LambdaServiceException {
625
+ static {
626
+ __name(this, "ResourceInUseException");
627
+ }
628
+ name = "ResourceInUseException";
629
+ $fault = "client";
630
+ Type;
631
+ Message;
632
+ /**
633
+ * @internal
634
+ */
635
+ constructor(opts) {
636
+ super({
637
+ name: "ResourceInUseException",
638
+ $fault: "client",
639
+ ...opts
640
+ });
641
+ Object.setPrototypeOf(this, _ResourceInUseException.prototype);
642
+ this.Type = opts.Type;
643
+ this.Message = opts.Message;
644
+ }
645
+ };
624
646
  var CodeSigningConfigNotFoundException = class _CodeSigningConfigNotFoundException extends LambdaServiceException {
625
647
  static {
626
648
  __name(this, "CodeSigningConfigNotFoundException");
@@ -843,57 +865,10 @@ var InvokeMode = {
843
865
  BUFFERED: "BUFFERED",
844
866
  RESPONSE_STREAM: "RESPONSE_STREAM"
845
867
  };
846
- var ResourceInUseException = class _ResourceInUseException extends LambdaServiceException {
847
- static {
848
- __name(this, "ResourceInUseException");
849
- }
850
- name = "ResourceInUseException";
851
- $fault = "client";
852
- Type;
853
- Message;
854
- /**
855
- * @internal
856
- */
857
- constructor(opts) {
858
- super({
859
- name: "ResourceInUseException",
860
- $fault: "client",
861
- ...opts
862
- });
863
- Object.setPrototypeOf(this, _ResourceInUseException.prototype);
864
- this.Type = opts.Type;
865
- this.Message = opts.Message;
866
- }
867
- };
868
868
  var RecursiveLoop = {
869
869
  Allow: "Allow",
870
870
  Terminate: "Terminate"
871
871
  };
872
- var ProvisionedConcurrencyStatusEnum = {
873
- FAILED: "FAILED",
874
- IN_PROGRESS: "IN_PROGRESS",
875
- READY: "READY"
876
- };
877
- var ProvisionedConcurrencyConfigNotFoundException = class _ProvisionedConcurrencyConfigNotFoundException extends LambdaServiceException {
878
- static {
879
- __name(this, "ProvisionedConcurrencyConfigNotFoundException");
880
- }
881
- name = "ProvisionedConcurrencyConfigNotFoundException";
882
- $fault = "client";
883
- Type;
884
- /**
885
- * @internal
886
- */
887
- constructor(opts) {
888
- super({
889
- name: "ProvisionedConcurrencyConfigNotFoundException",
890
- $fault: "client",
891
- ...opts
892
- });
893
- Object.setPrototypeOf(this, _ProvisionedConcurrencyConfigNotFoundException.prototype);
894
- this.Type = opts.Type;
895
- }
896
- };
897
872
  var UpdateRuntimeOn = {
898
873
  Auto: "Auto",
899
874
  FunctionUpdate: "FunctionUpdate",
@@ -1483,6 +1458,31 @@ var InvokeWithResponseStreamResponseEvent;
1483
1458
  var FunctionVersion = {
1484
1459
  ALL: "ALL"
1485
1460
  };
1461
+ var ProvisionedConcurrencyStatusEnum = {
1462
+ FAILED: "FAILED",
1463
+ IN_PROGRESS: "IN_PROGRESS",
1464
+ READY: "READY"
1465
+ };
1466
+ var ProvisionedConcurrencyConfigNotFoundException = class _ProvisionedConcurrencyConfigNotFoundException extends LambdaServiceException {
1467
+ static {
1468
+ __name(this, "ProvisionedConcurrencyConfigNotFoundException");
1469
+ }
1470
+ name = "ProvisionedConcurrencyConfigNotFoundException";
1471
+ $fault = "client";
1472
+ Type;
1473
+ /**
1474
+ * @internal
1475
+ */
1476
+ constructor(opts) {
1477
+ super({
1478
+ name: "ProvisionedConcurrencyConfigNotFoundException",
1479
+ $fault: "client",
1480
+ ...opts
1481
+ });
1482
+ Object.setPrototypeOf(this, _ProvisionedConcurrencyConfigNotFoundException.prototype);
1483
+ this.Type = opts.Type;
1484
+ }
1485
+ };
1486
1486
  var FunctionCodeFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1487
1487
  ...obj,
1488
1488
  ...obj.ZipFile && { ZipFile: import_smithy_client.SENSITIVE_STRING }
@@ -1568,6 +1568,14 @@ var ListFunctionsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1568
1568
  ...obj,
1569
1569
  ...obj.Functions && { Functions: obj.Functions.map((item) => FunctionConfigurationFilterSensitiveLog(item)) }
1570
1570
  }), "ListFunctionsResponseFilterSensitiveLog");
1571
+ var UpdateFunctionCodeRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1572
+ ...obj,
1573
+ ...obj.ZipFile && { ZipFile: import_smithy_client.SENSITIVE_STRING }
1574
+ }), "UpdateFunctionCodeRequestFilterSensitiveLog");
1575
+ var UpdateFunctionConfigurationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1576
+ ...obj,
1577
+ ...obj.Environment && { Environment: EnvironmentFilterSensitiveLog(obj.Environment) }
1578
+ }), "UpdateFunctionConfigurationRequestFilterSensitiveLog");
1571
1579
  var ListVersionsByFunctionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1572
1580
  ...obj,
1573
1581
  ...obj.Versions && { Versions: obj.Versions.map((item) => FunctionConfigurationFilterSensitiveLog(item)) }
@@ -1580,14 +1588,6 @@ var PublishLayerVersionRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj)
1580
1588
  ...obj,
1581
1589
  ...obj.Content && { Content: LayerVersionContentInputFilterSensitiveLog(obj.Content) }
1582
1590
  }), "PublishLayerVersionRequestFilterSensitiveLog");
1583
- var UpdateFunctionCodeRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1584
- ...obj,
1585
- ...obj.ZipFile && { ZipFile: import_smithy_client.SENSITIVE_STRING }
1586
- }), "UpdateFunctionCodeRequestFilterSensitiveLog");
1587
- var UpdateFunctionConfigurationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1588
- ...obj,
1589
- ...obj.Environment && { Environment: EnvironmentFilterSensitiveLog(obj.Environment) }
1590
- }), "UpdateFunctionConfigurationRequestFilterSensitiveLog");
1591
1591
 
1592
1592
  // src/protocols/Aws_restJson1.ts
1593
1593
  var se_AddLayerVersionPermissionCommand = /* @__PURE__ */ __name(async (input, context) => {
@@ -5989,11 +5989,11 @@ var checkState = /* @__PURE__ */ __name(async (client, input) => {
5989
5989
  return { state: import_util_waiter.WaiterState.RETRY, reason };
5990
5990
  }, "checkState");
5991
5991
  var waitForFunctionActive = /* @__PURE__ */ __name(async (params, input) => {
5992
- const serviceDefaults = { minDelay: 5, maxDelay: 120 };
5992
+ const serviceDefaults = { minDelay: 5, maxDelay: 300 };
5993
5993
  return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
5994
5994
  }, "waitForFunctionActive");
5995
5995
  var waitUntilFunctionActive = /* @__PURE__ */ __name(async (params, input) => {
5996
- const serviceDefaults = { minDelay: 5, maxDelay: 120 };
5996
+ const serviceDefaults = { minDelay: 5, maxDelay: 300 };
5997
5997
  const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
5998
5998
  return (0, import_util_waiter.checkExceptions)(result);
5999
5999
  }, "waitUntilFunctionActive");
@@ -6038,11 +6038,11 @@ var checkState2 = /* @__PURE__ */ __name(async (client, input) => {
6038
6038
  return { state: import_util_waiter.WaiterState.RETRY, reason };
6039
6039
  }, "checkState");
6040
6040
  var waitForFunctionActiveV2 = /* @__PURE__ */ __name(async (params, input) => {
6041
- const serviceDefaults = { minDelay: 1, maxDelay: 120 };
6041
+ const serviceDefaults = { minDelay: 1, maxDelay: 300 };
6042
6042
  return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
6043
6043
  }, "waitForFunctionActiveV2");
6044
6044
  var waitUntilFunctionActiveV2 = /* @__PURE__ */ __name(async (params, input) => {
6045
- const serviceDefaults = { minDelay: 1, maxDelay: 120 };
6045
+ const serviceDefaults = { minDelay: 1, maxDelay: 300 };
6046
6046
  const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
6047
6047
  return (0, import_util_waiter.checkExceptions)(result);
6048
6048
  }, "waitUntilFunctionActiveV2");
@@ -6064,11 +6064,11 @@ var checkState3 = /* @__PURE__ */ __name(async (client, input) => {
6064
6064
  return { state: import_util_waiter.WaiterState.RETRY, reason };
6065
6065
  }, "checkState");
6066
6066
  var waitForFunctionExists = /* @__PURE__ */ __name(async (params, input) => {
6067
- const serviceDefaults = { minDelay: 1, maxDelay: 120 };
6067
+ const serviceDefaults = { minDelay: 1, maxDelay: 20 };
6068
6068
  return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
6069
6069
  }, "waitForFunctionExists");
6070
6070
  var waitUntilFunctionExists = /* @__PURE__ */ __name(async (params, input) => {
6071
- const serviceDefaults = { minDelay: 1, maxDelay: 120 };
6071
+ const serviceDefaults = { minDelay: 1, maxDelay: 20 };
6072
6072
  const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
6073
6073
  return (0, import_util_waiter.checkExceptions)(result);
6074
6074
  }, "waitUntilFunctionExists");
@@ -6113,11 +6113,11 @@ var checkState4 = /* @__PURE__ */ __name(async (client, input) => {
6113
6113
  return { state: import_util_waiter.WaiterState.RETRY, reason };
6114
6114
  }, "checkState");
6115
6115
  var waitForFunctionUpdated = /* @__PURE__ */ __name(async (params, input) => {
6116
- const serviceDefaults = { minDelay: 5, maxDelay: 120 };
6116
+ const serviceDefaults = { minDelay: 5, maxDelay: 300 };
6117
6117
  return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState4);
6118
6118
  }, "waitForFunctionUpdated");
6119
6119
  var waitUntilFunctionUpdated = /* @__PURE__ */ __name(async (params, input) => {
6120
- const serviceDefaults = { minDelay: 5, maxDelay: 120 };
6120
+ const serviceDefaults = { minDelay: 5, maxDelay: 300 };
6121
6121
  const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState4);
6122
6122
  return (0, import_util_waiter.checkExceptions)(result);
6123
6123
  }, "waitUntilFunctionUpdated");
@@ -6162,11 +6162,11 @@ var checkState5 = /* @__PURE__ */ __name(async (client, input) => {
6162
6162
  return { state: import_util_waiter.WaiterState.RETRY, reason };
6163
6163
  }, "checkState");
6164
6164
  var waitForFunctionUpdatedV2 = /* @__PURE__ */ __name(async (params, input) => {
6165
- const serviceDefaults = { minDelay: 1, maxDelay: 120 };
6165
+ const serviceDefaults = { minDelay: 1, maxDelay: 300 };
6166
6166
  return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState5);
6167
6167
  }, "waitForFunctionUpdatedV2");
6168
6168
  var waitUntilFunctionUpdatedV2 = /* @__PURE__ */ __name(async (params, input) => {
6169
- const serviceDefaults = { minDelay: 1, maxDelay: 120 };
6169
+ const serviceDefaults = { minDelay: 1, maxDelay: 300 };
6170
6170
  const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState5);
6171
6171
  return (0, import_util_waiter.checkExceptions)(result);
6172
6172
  }, "waitUntilFunctionUpdatedV2");
@@ -6211,11 +6211,11 @@ var checkState6 = /* @__PURE__ */ __name(async (client, input) => {
6211
6211
  return { state: import_util_waiter.WaiterState.RETRY, reason };
6212
6212
  }, "checkState");
6213
6213
  var waitForPublishedVersionActive = /* @__PURE__ */ __name(async (params, input) => {
6214
- const serviceDefaults = { minDelay: 5, maxDelay: 120 };
6214
+ const serviceDefaults = { minDelay: 5, maxDelay: 1560 };
6215
6215
  return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState6);
6216
6216
  }, "waitForPublishedVersionActive");
6217
6217
  var waitUntilPublishedVersionActive = /* @__PURE__ */ __name(async (params, input) => {
6218
- const serviceDefaults = { minDelay: 5, maxDelay: 120 };
6218
+ const serviceDefaults = { minDelay: 5, maxDelay: 1560 };
6219
6219
  const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState6);
6220
6220
  return (0, import_util_waiter.checkExceptions)(result);
6221
6221
  }, "waitUntilPublishedVersionActive");
@@ -6339,6 +6339,7 @@ var waitUntilPublishedVersionActive = /* @__PURE__ */ __name(async (params, inpu
6339
6339
  EndPointType,
6340
6340
  SourceAccessType,
6341
6341
  EventSourcePosition,
6342
+ ResourceInUseException,
6342
6343
  CodeSigningConfigNotFoundException,
6343
6344
  CodeStorageExceededException,
6344
6345
  CodeVerificationFailedException,
@@ -6355,10 +6356,7 @@ var waitUntilPublishedVersionActive = /* @__PURE__ */ __name(async (params, inpu
6355
6356
  StateReasonCode,
6356
6357
  InvalidCodeSignatureException,
6357
6358
  InvokeMode,
6358
- ResourceInUseException,
6359
6359
  RecursiveLoop,
6360
- ProvisionedConcurrencyStatusEnum,
6361
- ProvisionedConcurrencyConfigNotFoundException,
6362
6360
  UpdateRuntimeOn,
6363
6361
  EC2AccessDeniedException,
6364
6362
  EC2ThrottledException,
@@ -6390,6 +6388,8 @@ var waitUntilPublishedVersionActive = /* @__PURE__ */ __name(async (params, inpu
6390
6388
  ResponseStreamingInvocationType,
6391
6389
  InvokeWithResponseStreamResponseEvent,
6392
6390
  FunctionVersion,
6391
+ ProvisionedConcurrencyStatusEnum,
6392
+ ProvisionedConcurrencyConfigNotFoundException,
6393
6393
  FunctionCodeFilterSensitiveLog,
6394
6394
  EnvironmentFilterSensitiveLog,
6395
6395
  CreateFunctionRequestFilterSensitiveLog,
@@ -6409,10 +6409,10 @@ var waitUntilPublishedVersionActive = /* @__PURE__ */ __name(async (params, inpu
6409
6409
  InvokeWithResponseStreamResponseEventFilterSensitiveLog,
6410
6410
  InvokeWithResponseStreamResponseFilterSensitiveLog,
6411
6411
  ListFunctionsResponseFilterSensitiveLog,
6412
+ UpdateFunctionCodeRequestFilterSensitiveLog,
6413
+ UpdateFunctionConfigurationRequestFilterSensitiveLog,
6412
6414
  ListVersionsByFunctionResponseFilterSensitiveLog,
6413
6415
  LayerVersionContentInputFilterSensitiveLog,
6414
- PublishLayerVersionRequestFilterSensitiveLog,
6415
- UpdateFunctionCodeRequestFilterSensitiveLog,
6416
- UpdateFunctionConfigurationRequestFilterSensitiveLog
6416
+ PublishLayerVersionRequestFilterSensitiveLog
6417
6417
  });
6418
6418
 
@@ -175,6 +175,22 @@ export const EventSourcePosition = {
175
175
  LATEST: "LATEST",
176
176
  TRIM_HORIZON: "TRIM_HORIZON",
177
177
  };
178
+ export class ResourceInUseException extends __BaseException {
179
+ name = "ResourceInUseException";
180
+ $fault = "client";
181
+ Type;
182
+ Message;
183
+ constructor(opts) {
184
+ super({
185
+ name: "ResourceInUseException",
186
+ $fault: "client",
187
+ ...opts,
188
+ });
189
+ Object.setPrototypeOf(this, ResourceInUseException.prototype);
190
+ this.Type = opts.Type;
191
+ this.Message = opts.Message;
192
+ }
193
+ }
178
194
  export class CodeSigningConfigNotFoundException extends __BaseException {
179
195
  name = "CodeSigningConfigNotFoundException";
180
196
  $fault = "client";
@@ -369,45 +385,10 @@ export const InvokeMode = {
369
385
  BUFFERED: "BUFFERED",
370
386
  RESPONSE_STREAM: "RESPONSE_STREAM",
371
387
  };
372
- export class ResourceInUseException extends __BaseException {
373
- name = "ResourceInUseException";
374
- $fault = "client";
375
- Type;
376
- Message;
377
- constructor(opts) {
378
- super({
379
- name: "ResourceInUseException",
380
- $fault: "client",
381
- ...opts,
382
- });
383
- Object.setPrototypeOf(this, ResourceInUseException.prototype);
384
- this.Type = opts.Type;
385
- this.Message = opts.Message;
386
- }
387
- }
388
388
  export const RecursiveLoop = {
389
389
  Allow: "Allow",
390
390
  Terminate: "Terminate",
391
391
  };
392
- export const ProvisionedConcurrencyStatusEnum = {
393
- FAILED: "FAILED",
394
- IN_PROGRESS: "IN_PROGRESS",
395
- READY: "READY",
396
- };
397
- export class ProvisionedConcurrencyConfigNotFoundException extends __BaseException {
398
- name = "ProvisionedConcurrencyConfigNotFoundException";
399
- $fault = "client";
400
- Type;
401
- constructor(opts) {
402
- super({
403
- name: "ProvisionedConcurrencyConfigNotFoundException",
404
- $fault: "client",
405
- ...opts,
406
- });
407
- Object.setPrototypeOf(this, ProvisionedConcurrencyConfigNotFoundException.prototype);
408
- this.Type = opts.Type;
409
- }
410
- }
411
392
  export const UpdateRuntimeOn = {
412
393
  Auto: "Auto",
413
394
  FunctionUpdate: "FunctionUpdate",
@@ -833,6 +814,25 @@ export var InvokeWithResponseStreamResponseEvent;
833
814
  export const FunctionVersion = {
834
815
  ALL: "ALL",
835
816
  };
817
+ export const ProvisionedConcurrencyStatusEnum = {
818
+ FAILED: "FAILED",
819
+ IN_PROGRESS: "IN_PROGRESS",
820
+ READY: "READY",
821
+ };
822
+ export class ProvisionedConcurrencyConfigNotFoundException extends __BaseException {
823
+ name = "ProvisionedConcurrencyConfigNotFoundException";
824
+ $fault = "client";
825
+ Type;
826
+ constructor(opts) {
827
+ super({
828
+ name: "ProvisionedConcurrencyConfigNotFoundException",
829
+ $fault: "client",
830
+ ...opts,
831
+ });
832
+ Object.setPrototypeOf(this, ProvisionedConcurrencyConfigNotFoundException.prototype);
833
+ this.Type = opts.Type;
834
+ }
835
+ }
836
836
  export const FunctionCodeFilterSensitiveLog = (obj) => ({
837
837
  ...obj,
838
838
  ...(obj.ZipFile && { ZipFile: SENSITIVE_STRING }),
@@ -920,6 +920,14 @@ export const ListFunctionsResponseFilterSensitiveLog = (obj) => ({
920
920
  ...obj,
921
921
  ...(obj.Functions && { Functions: obj.Functions.map((item) => FunctionConfigurationFilterSensitiveLog(item)) }),
922
922
  });
923
+ export const UpdateFunctionCodeRequestFilterSensitiveLog = (obj) => ({
924
+ ...obj,
925
+ ...(obj.ZipFile && { ZipFile: SENSITIVE_STRING }),
926
+ });
927
+ export const UpdateFunctionConfigurationRequestFilterSensitiveLog = (obj) => ({
928
+ ...obj,
929
+ ...(obj.Environment && { Environment: EnvironmentFilterSensitiveLog(obj.Environment) }),
930
+ });
923
931
  export const ListVersionsByFunctionResponseFilterSensitiveLog = (obj) => ({
924
932
  ...obj,
925
933
  ...(obj.Versions && { Versions: obj.Versions.map((item) => FunctionConfigurationFilterSensitiveLog(item)) }),
@@ -932,11 +940,3 @@ export const PublishLayerVersionRequestFilterSensitiveLog = (obj) => ({
932
940
  ...obj,
933
941
  ...(obj.Content && { Content: LayerVersionContentInputFilterSensitiveLog(obj.Content) }),
934
942
  });
935
- export const UpdateFunctionCodeRequestFilterSensitiveLog = (obj) => ({
936
- ...obj,
937
- ...(obj.ZipFile && { ZipFile: SENSITIVE_STRING }),
938
- });
939
- export const UpdateFunctionConfigurationRequestFilterSensitiveLog = (obj) => ({
940
- ...obj,
941
- ...(obj.Environment && { Environment: EnvironmentFilterSensitiveLog(obj.Environment) }),
942
- });
@@ -39,11 +39,11 @@ const checkState = async (client, input) => {
39
39
  return { state: WaiterState.RETRY, reason };
40
40
  };
41
41
  export const waitForFunctionActive = async (params, input) => {
42
- const serviceDefaults = { minDelay: 5, maxDelay: 120 };
42
+ const serviceDefaults = { minDelay: 5, maxDelay: 300 };
43
43
  return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
44
44
  };
45
45
  export const waitUntilFunctionActive = async (params, input) => {
46
- const serviceDefaults = { minDelay: 5, maxDelay: 120 };
46
+ const serviceDefaults = { minDelay: 5, maxDelay: 300 };
47
47
  const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
48
48
  return checkExceptions(result);
49
49
  };
@@ -39,11 +39,11 @@ const checkState = async (client, input) => {
39
39
  return { state: WaiterState.RETRY, reason };
40
40
  };
41
41
  export const waitForFunctionActiveV2 = async (params, input) => {
42
- const serviceDefaults = { minDelay: 1, maxDelay: 120 };
42
+ const serviceDefaults = { minDelay: 1, maxDelay: 300 };
43
43
  return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
44
44
  };
45
45
  export const waitUntilFunctionActiveV2 = async (params, input) => {
46
- const serviceDefaults = { minDelay: 1, maxDelay: 120 };
46
+ const serviceDefaults = { minDelay: 1, maxDelay: 300 };
47
47
  const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
48
48
  return checkExceptions(result);
49
49
  };
@@ -16,11 +16,11 @@ const checkState = async (client, input) => {
16
16
  return { state: WaiterState.RETRY, reason };
17
17
  };
18
18
  export const waitForFunctionExists = async (params, input) => {
19
- const serviceDefaults = { minDelay: 1, maxDelay: 120 };
19
+ const serviceDefaults = { minDelay: 1, maxDelay: 20 };
20
20
  return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
21
21
  };
22
22
  export const waitUntilFunctionExists = async (params, input) => {
23
- const serviceDefaults = { minDelay: 1, maxDelay: 120 };
23
+ const serviceDefaults = { minDelay: 1, maxDelay: 20 };
24
24
  const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
25
25
  return checkExceptions(result);
26
26
  };
@@ -39,11 +39,11 @@ const checkState = async (client, input) => {
39
39
  return { state: WaiterState.RETRY, reason };
40
40
  };
41
41
  export const waitForFunctionUpdated = async (params, input) => {
42
- const serviceDefaults = { minDelay: 5, maxDelay: 120 };
42
+ const serviceDefaults = { minDelay: 5, maxDelay: 300 };
43
43
  return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
44
44
  };
45
45
  export const waitUntilFunctionUpdated = async (params, input) => {
46
- const serviceDefaults = { minDelay: 5, maxDelay: 120 };
46
+ const serviceDefaults = { minDelay: 5, maxDelay: 300 };
47
47
  const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
48
48
  return checkExceptions(result);
49
49
  };
@@ -39,11 +39,11 @@ const checkState = async (client, input) => {
39
39
  return { state: WaiterState.RETRY, reason };
40
40
  };
41
41
  export const waitForFunctionUpdatedV2 = async (params, input) => {
42
- const serviceDefaults = { minDelay: 1, maxDelay: 120 };
42
+ const serviceDefaults = { minDelay: 1, maxDelay: 300 };
43
43
  return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
44
44
  };
45
45
  export const waitUntilFunctionUpdatedV2 = async (params, input) => {
46
- const serviceDefaults = { minDelay: 1, maxDelay: 120 };
46
+ const serviceDefaults = { minDelay: 1, maxDelay: 300 };
47
47
  const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
48
48
  return checkExceptions(result);
49
49
  };
@@ -39,11 +39,11 @@ const checkState = async (client, input) => {
39
39
  return { state: WaiterState.RETRY, reason };
40
40
  };
41
41
  export const waitForPublishedVersionActive = async (params, input) => {
42
- const serviceDefaults = { minDelay: 5, maxDelay: 120 };
42
+ const serviceDefaults = { minDelay: 5, maxDelay: 1560 };
43
43
  return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
44
44
  };
45
45
  export const waitUntilPublishedVersionActive = async (params, input) => {
46
- const serviceDefaults = { minDelay: 5, maxDelay: 120 };
46
+ const serviceDefaults = { minDelay: 5, maxDelay: 1560 };
47
47
  const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
48
48
  return checkExceptions(result);
49
49
  };
@@ -484,71 +484,7 @@ export interface Lambda {
484
484
  updateFunctionUrlConfig(args: UpdateFunctionUrlConfigCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateFunctionUrlConfigCommandOutput) => void): void;
485
485
  }
486
486
  /**
487
- * <fullname>Lambda</fullname>
488
- * <p>
489
- * <b>Overview</b>
490
- * </p>
491
- * <p>Lambda is a compute service that lets you run code without provisioning or managing servers.
492
- * Lambda runs your code on a high-availability compute infrastructure and performs all of the
493
- * administration of the compute resources, including server and operating system maintenance, capacity provisioning
494
- * and automatic scaling, code monitoring and logging. With Lambda, you can run code for virtually any
495
- * type of application or backend service. For more information about the Lambda service, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/welcome.html">What is Lambda</a> in the <b>Lambda Developer Guide</b>.</p>
496
- * <p>The <i>Lambda API Reference</i> provides information about
497
- * each of the API methods, including details about the parameters in each API request and
498
- * response. </p>
499
- * <p></p>
500
- * <p>You can use Software Development Kits (SDKs), Integrated Development Environment (IDE) Toolkits, and command
501
- * line tools to access the API. For installation instructions, see <a href="http://aws.amazon.com/tools/">Tools for
502
- * Amazon Web Services</a>. </p>
503
- * <p>For a list of Region-specific endpoints that Lambda supports,
504
- * see <a href="https://docs.aws.amazon.com/general/latest/gr/lambda-service.html">Lambda
505
- * endpoints and quotas </a> in the <i>Amazon Web Services General Reference.</i>. </p>
506
- * <p>When making the API calls, you will need to
507
- * authenticate your request by providing a signature. Lambda supports signature version 4. For more information,
508
- * see <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature Version 4 signing process</a> in the
509
- * <i>Amazon Web Services General Reference.</i>. </p>
510
- * <p>
511
- * <b>CA certificates</b>
512
- * </p>
513
- * <p>Because Amazon Web Services SDKs use the CA certificates from your computer, changes to the certificates on the Amazon Web Services servers
514
- * can cause connection failures when you attempt to use an SDK. You can prevent these failures by keeping your
515
- * computer's CA certificates and operating system up-to-date. If you encounter this issue in a corporate
516
- * environment and do not manage your own computer, you might need to ask an administrator to assist with the
517
- * update process. The following list shows minimum operating system and Java versions:</p>
518
- * <ul>
519
- * <li>
520
- * <p>Microsoft Windows versions that have updates from January 2005 or later installed contain at least one
521
- * of the required CAs in their trust list. </p>
522
- * </li>
523
- * <li>
524
- * <p>Mac OS X 10.4 with Java for Mac OS X 10.4 Release 5 (February 2007), Mac OS X 10.5 (October 2007), and
525
- * later versions contain at least one of the required CAs in their trust list. </p>
526
- * </li>
527
- * <li>
528
- * <p>Red Hat Enterprise Linux 5 (March 2007), 6, and 7 and CentOS 5, 6, and 7 all contain at least one of the
529
- * required CAs in their default trusted CA list. </p>
530
- * </li>
531
- * <li>
532
- * <p>Java 1.4.2_12 (May 2006), 5 Update 2 (March 2005), and all later versions, including Java 6 (December
533
- * 2006), 7, and 8, contain at least one of the required CAs in their default trusted CA list. </p>
534
- * </li>
535
- * </ul>
536
- * <p>When accessing the Lambda management console or Lambda API endpoints, whether through browsers or
537
- * programmatically, you will need to ensure your client machines support any of the following CAs: </p>
538
- * <ul>
539
- * <li>
540
- * <p>Amazon Root CA 1</p>
541
- * </li>
542
- * <li>
543
- * <p>Starfield Services Root Certificate Authority - G2</p>
544
- * </li>
545
- * <li>
546
- * <p>Starfield Class 2 Certification Authority</p>
547
- * </li>
548
- * </ul>
549
- * <p>Root certificates from the first two authorities are available from <a href="https://www.amazontrust.com/repository/">Amazon trust services</a>, but keeping your computer
550
- * up-to-date is the more straightforward solution. To learn more about ACM-provided certificates, see <a href="http://aws.amazon.com/certificate-manager/faqs/#certificates">Amazon Web Services Certificate Manager FAQs.</a>
551
- * </p>
487
+ * <fullname>Lambda</fullname> <p> <b>Overview</b> </p> <p>Lambda is a compute service that lets you run code without provisioning or managing servers. Lambda runs your code on a high-availability compute infrastructure and performs all of the administration of the compute resources, including server and operating system maintenance, capacity provisioning and automatic scaling, code monitoring and logging. With Lambda, you can run code for virtually any type of application or backend service. For more information about the Lambda service, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/welcome.html">What is Lambda</a> in the <b>Lambda Developer Guide</b>.</p> <p>The <i>Lambda API Reference</i> provides information about each of the API methods, including details about the parameters in each API request and response. </p> <p/> <p>You can use Software Development Kits (SDKs), Integrated Development Environment (IDE) Toolkits, and command line tools to access the API. For installation instructions, see <a href="http://aws.amazon.com/tools/">Tools for Amazon Web Services</a>. </p> <p>For a list of Region-specific endpoints that Lambda supports, see <a href="https://docs.aws.amazon.com/general/latest/gr/lambda-service.html">Lambda endpoints and quotas </a> in the <i>Amazon Web Services General Reference.</i>. </p> <p>When making the API calls, you will need to authenticate your request by providing a signature. Lambda supports signature version 4. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature Version 4 signing process</a> in the <i>Amazon Web Services General Reference.</i>. </p> <p> <b>CA certificates</b> </p> <p>Because Amazon Web Services SDKs use the CA certificates from your computer, changes to the certificates on the Amazon Web Services servers can cause connection failures when you attempt to use an SDK. You can prevent these failures by keeping your computer's CA certificates and operating system up-to-date. If you encounter this issue in a corporate environment and do not manage your own computer, you might need to ask an administrator to assist with the update process. The following list shows minimum operating system and Java versions:</p> <ul> <li> <p>Microsoft Windows versions that have updates from January 2005 or later installed contain at least one of the required CAs in their trust list. </p> </li> <li> <p>Mac OS X 10.4 with Java for Mac OS X 10.4 Release 5 (February 2007), Mac OS X 10.5 (October 2007), and later versions contain at least one of the required CAs in their trust list. </p> </li> <li> <p>Red Hat Enterprise Linux 5 (March 2007), 6, and 7 and CentOS 5, 6, and 7 all contain at least one of the required CAs in their default trusted CA list. </p> </li> <li> <p>Java 1.4.2_12 (May 2006), 5 Update 2 (March 2005), and all later versions, including Java 6 (December 2006), 7, and 8, contain at least one of the required CAs in their default trusted CA list. </p> </li> </ul> <p>When accessing the Lambda management console or Lambda API endpoints, whether through browsers or programmatically, you will need to ensure your client machines support any of the following CAs: </p> <ul> <li> <p>Amazon Root CA 1</p> </li> <li> <p>Starfield Services Root Certificate Authority - G2</p> </li> <li> <p>Starfield Class 2 Certification Authority</p> </li> </ul> <p>Root certificates from the first two authorities are available from <a href="https://www.amazontrust.com/repository/">Amazon trust services</a>, but keeping your computer up-to-date is the more straightforward solution. To learn more about ACM-provided certificates, see <a href="http://aws.amazon.com/certificate-manager/faqs/#certificates">Amazon Web Services Certificate Manager FAQs.</a> </p>
552
488
  * @public
553
489
  */
554
490
  export declare class Lambda extends LambdaClient implements Lambda {