@aws-sdk/client-lambda 3.1037.0 → 3.1039.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.
package/dist-cjs/index.js CHANGED
@@ -1277,7 +1277,7 @@ const checkState$3 = async (client, input) => {
1277
1277
  }
1278
1278
  catch (exception) {
1279
1279
  reason = exception;
1280
- if (exception.name && exception.name == "ResourceNotFoundException") {
1280
+ if (exception.name === "ResourceNotFoundException") {
1281
1281
  return { state: utilWaiter.WaiterState.RETRY, reason };
1282
1282
  }
1283
1283
  }
@@ -1,5 +1,5 @@
1
1
  import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
- import { GetFunctionCommand } from "../commands/GetFunctionCommand";
2
+ import { GetFunctionCommand, } from "../commands/GetFunctionCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
@@ -1,5 +1,5 @@
1
1
  import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
- import { GetFunctionCommand } from "../commands/GetFunctionCommand";
2
+ import { GetFunctionCommand, } from "../commands/GetFunctionCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
@@ -9,7 +9,7 @@ const checkState = async (client, input) => {
9
9
  }
10
10
  catch (exception) {
11
11
  reason = exception;
12
- if (exception.name && exception.name == "ResourceNotFoundException") {
12
+ if (exception.name === "ResourceNotFoundException") {
13
13
  return { state: WaiterState.RETRY, reason };
14
14
  }
15
15
  }
@@ -1,5 +1,5 @@
1
1
  import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
- import { GetFunctionCommand } from "../commands/GetFunctionCommand";
2
+ import { GetFunctionCommand, } from "../commands/GetFunctionCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
@@ -720,37 +720,37 @@ export interface Lambda {
720
720
  * @param args - command input.
721
721
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
722
722
  */
723
- waitUntilFunctionActiveV2(args: GetFunctionCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Lambda>, "client">): Promise<WaiterResult>;
723
+ waitUntilFunctionActiveV2(args: GetFunctionCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Lambda>, "client">): Promise<WaiterResult<GetFunctionCommandOutput>>;
724
724
  /**
725
725
  * @see {@link GetFunctionCommand}
726
726
  * @param args - command input.
727
727
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
728
728
  */
729
- waitUntilFunctionExists(args: GetFunctionCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Lambda>, "client">): Promise<WaiterResult>;
729
+ waitUntilFunctionExists(args: GetFunctionCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Lambda>, "client">): Promise<WaiterResult<GetFunctionCommandOutput>>;
730
730
  /**
731
731
  * @see {@link GetFunctionCommand}
732
732
  * @param args - command input.
733
733
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
734
734
  */
735
- waitUntilFunctionUpdatedV2(args: GetFunctionCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Lambda>, "client">): Promise<WaiterResult>;
735
+ waitUntilFunctionUpdatedV2(args: GetFunctionCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Lambda>, "client">): Promise<WaiterResult<GetFunctionCommandOutput>>;
736
736
  /**
737
737
  * @see {@link GetFunctionConfigurationCommand}
738
738
  * @param args - command input.
739
739
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
740
740
  */
741
- waitUntilFunctionActive(args: GetFunctionConfigurationCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Lambda>, "client">): Promise<WaiterResult>;
741
+ waitUntilFunctionActive(args: GetFunctionConfigurationCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Lambda>, "client">): Promise<WaiterResult<GetFunctionConfigurationCommandOutput>>;
742
742
  /**
743
743
  * @see {@link GetFunctionConfigurationCommand}
744
744
  * @param args - command input.
745
745
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
746
746
  */
747
- waitUntilFunctionUpdated(args: GetFunctionConfigurationCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Lambda>, "client">): Promise<WaiterResult>;
747
+ waitUntilFunctionUpdated(args: GetFunctionConfigurationCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Lambda>, "client">): Promise<WaiterResult<GetFunctionConfigurationCommandOutput>>;
748
748
  /**
749
749
  * @see {@link GetFunctionConfigurationCommand}
750
750
  * @param args - command input.
751
751
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
752
752
  */
753
- waitUntilPublishedVersionActive(args: GetFunctionConfigurationCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Lambda>, "client">): Promise<WaiterResult>;
753
+ waitUntilPublishedVersionActive(args: GetFunctionConfigurationCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Lambda>, "client">): Promise<WaiterResult<GetFunctionConfigurationCommandOutput>>;
754
754
  }
755
755
  /**
756
756
  * <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>
@@ -1614,7 +1614,7 @@ export interface Lambda {
1614
1614
  WaiterConfiguration<Lambda>,
1615
1615
  Exclude<keyof WaiterConfiguration<Lambda>, "client">
1616
1616
  >
1617
- ): Promise<WaiterResult>;
1617
+ ): Promise<WaiterResult<GetFunctionCommandOutput>>;
1618
1618
  waitUntilFunctionExists(
1619
1619
  args: GetFunctionCommandInput,
1620
1620
  waiterConfig:
@@ -1623,7 +1623,7 @@ export interface Lambda {
1623
1623
  WaiterConfiguration<Lambda>,
1624
1624
  Exclude<keyof WaiterConfiguration<Lambda>, "client">
1625
1625
  >
1626
- ): Promise<WaiterResult>;
1626
+ ): Promise<WaiterResult<GetFunctionCommandOutput>>;
1627
1627
  waitUntilFunctionUpdatedV2(
1628
1628
  args: GetFunctionCommandInput,
1629
1629
  waiterConfig:
@@ -1632,7 +1632,7 @@ export interface Lambda {
1632
1632
  WaiterConfiguration<Lambda>,
1633
1633
  Exclude<keyof WaiterConfiguration<Lambda>, "client">
1634
1634
  >
1635
- ): Promise<WaiterResult>;
1635
+ ): Promise<WaiterResult<GetFunctionCommandOutput>>;
1636
1636
  waitUntilFunctionActive(
1637
1637
  args: GetFunctionConfigurationCommandInput,
1638
1638
  waiterConfig:
@@ -1641,7 +1641,7 @@ export interface Lambda {
1641
1641
  WaiterConfiguration<Lambda>,
1642
1642
  Exclude<keyof WaiterConfiguration<Lambda>, "client">
1643
1643
  >
1644
- ): Promise<WaiterResult>;
1644
+ ): Promise<WaiterResult<GetFunctionConfigurationCommandOutput>>;
1645
1645
  waitUntilFunctionUpdated(
1646
1646
  args: GetFunctionConfigurationCommandInput,
1647
1647
  waiterConfig:
@@ -1650,7 +1650,7 @@ export interface Lambda {
1650
1650
  WaiterConfiguration<Lambda>,
1651
1651
  Exclude<keyof WaiterConfiguration<Lambda>, "client">
1652
1652
  >
1653
- ): Promise<WaiterResult>;
1653
+ ): Promise<WaiterResult<GetFunctionConfigurationCommandOutput>>;
1654
1654
  waitUntilPublishedVersionActive(
1655
1655
  args: GetFunctionConfigurationCommandInput,
1656
1656
  waiterConfig:
@@ -1659,6 +1659,6 @@ export interface Lambda {
1659
1659
  WaiterConfiguration<Lambda>,
1660
1660
  Exclude<keyof WaiterConfiguration<Lambda>, "client">
1661
1661
  >
1662
- ): Promise<WaiterResult>;
1662
+ ): Promise<WaiterResult<GetFunctionConfigurationCommandOutput>>;
1663
1663
  }
1664
1664
  export declare class Lambda extends LambdaClient implements Lambda {}
@@ -1,11 +1,17 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { GetFunctionConfigurationCommandInput } from "../commands/GetFunctionConfigurationCommand";
2
+ import {
3
+ GetFunctionConfigurationCommandInput,
4
+ GetFunctionConfigurationCommandOutput,
5
+ } from "../commands/GetFunctionConfigurationCommand";
3
6
  import { LambdaClient } from "../LambdaClient";
7
+ import { LambdaServiceException } from "../models/LambdaServiceException";
4
8
  export declare const waitForFunctionActive: (
5
9
  params: WaiterConfiguration<LambdaClient>,
6
10
  input: GetFunctionConfigurationCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<
12
+ WaiterResult<GetFunctionConfigurationCommandOutput | LambdaServiceException>
13
+ >;
8
14
  export declare const waitUntilFunctionActive: (
9
15
  params: WaiterConfiguration<LambdaClient>,
10
16
  input: GetFunctionConfigurationCommandInput
11
- ) => Promise<WaiterResult>;
17
+ ) => Promise<WaiterResult<GetFunctionConfigurationCommandOutput>>;
@@ -1,11 +1,15 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { GetFunctionCommandInput } from "../commands/GetFunctionCommand";
2
+ import {
3
+ GetFunctionCommandInput,
4
+ GetFunctionCommandOutput,
5
+ } from "../commands/GetFunctionCommand";
3
6
  import { LambdaClient } from "../LambdaClient";
7
+ import { LambdaServiceException } from "../models/LambdaServiceException";
4
8
  export declare const waitForFunctionActiveV2: (
5
9
  params: WaiterConfiguration<LambdaClient>,
6
10
  input: GetFunctionCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<WaiterResult<GetFunctionCommandOutput | LambdaServiceException>>;
8
12
  export declare const waitUntilFunctionActiveV2: (
9
13
  params: WaiterConfiguration<LambdaClient>,
10
14
  input: GetFunctionCommandInput
11
- ) => Promise<WaiterResult>;
15
+ ) => Promise<WaiterResult<GetFunctionCommandOutput>>;
@@ -1,11 +1,15 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { GetFunctionCommandInput } from "../commands/GetFunctionCommand";
2
+ import {
3
+ GetFunctionCommandInput,
4
+ GetFunctionCommandOutput,
5
+ } from "../commands/GetFunctionCommand";
3
6
  import { LambdaClient } from "../LambdaClient";
7
+ import { LambdaServiceException } from "../models/LambdaServiceException";
4
8
  export declare const waitForFunctionExists: (
5
9
  params: WaiterConfiguration<LambdaClient>,
6
10
  input: GetFunctionCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<WaiterResult<GetFunctionCommandOutput | LambdaServiceException>>;
8
12
  export declare const waitUntilFunctionExists: (
9
13
  params: WaiterConfiguration<LambdaClient>,
10
14
  input: GetFunctionCommandInput
11
- ) => Promise<WaiterResult>;
15
+ ) => Promise<WaiterResult<GetFunctionCommandOutput>>;
@@ -1,11 +1,17 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { GetFunctionConfigurationCommandInput } from "../commands/GetFunctionConfigurationCommand";
2
+ import {
3
+ GetFunctionConfigurationCommandInput,
4
+ GetFunctionConfigurationCommandOutput,
5
+ } from "../commands/GetFunctionConfigurationCommand";
3
6
  import { LambdaClient } from "../LambdaClient";
7
+ import { LambdaServiceException } from "../models/LambdaServiceException";
4
8
  export declare const waitForFunctionUpdated: (
5
9
  params: WaiterConfiguration<LambdaClient>,
6
10
  input: GetFunctionConfigurationCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<
12
+ WaiterResult<GetFunctionConfigurationCommandOutput | LambdaServiceException>
13
+ >;
8
14
  export declare const waitUntilFunctionUpdated: (
9
15
  params: WaiterConfiguration<LambdaClient>,
10
16
  input: GetFunctionConfigurationCommandInput
11
- ) => Promise<WaiterResult>;
17
+ ) => Promise<WaiterResult<GetFunctionConfigurationCommandOutput>>;
@@ -1,11 +1,15 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { GetFunctionCommandInput } from "../commands/GetFunctionCommand";
2
+ import {
3
+ GetFunctionCommandInput,
4
+ GetFunctionCommandOutput,
5
+ } from "../commands/GetFunctionCommand";
3
6
  import { LambdaClient } from "../LambdaClient";
7
+ import { LambdaServiceException } from "../models/LambdaServiceException";
4
8
  export declare const waitForFunctionUpdatedV2: (
5
9
  params: WaiterConfiguration<LambdaClient>,
6
10
  input: GetFunctionCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<WaiterResult<GetFunctionCommandOutput | LambdaServiceException>>;
8
12
  export declare const waitUntilFunctionUpdatedV2: (
9
13
  params: WaiterConfiguration<LambdaClient>,
10
14
  input: GetFunctionCommandInput
11
- ) => Promise<WaiterResult>;
15
+ ) => Promise<WaiterResult<GetFunctionCommandOutput>>;
@@ -1,11 +1,17 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { GetFunctionConfigurationCommandInput } from "../commands/GetFunctionConfigurationCommand";
2
+ import {
3
+ GetFunctionConfigurationCommandInput,
4
+ GetFunctionConfigurationCommandOutput,
5
+ } from "../commands/GetFunctionConfigurationCommand";
3
6
  import { LambdaClient } from "../LambdaClient";
7
+ import { LambdaServiceException } from "../models/LambdaServiceException";
4
8
  export declare const waitForPublishedVersionActive: (
5
9
  params: WaiterConfiguration<LambdaClient>,
6
10
  input: GetFunctionConfigurationCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<
12
+ WaiterResult<GetFunctionConfigurationCommandOutput | LambdaServiceException>
13
+ >;
8
14
  export declare const waitUntilPublishedVersionActive: (
9
15
  params: WaiterConfiguration<LambdaClient>,
10
16
  input: GetFunctionConfigurationCommandInput
11
- ) => Promise<WaiterResult>;
17
+ ) => Promise<WaiterResult<GetFunctionConfigurationCommandOutput>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type GetFunctionConfigurationCommandInput } from "../commands/GetFunctionConfigurationCommand";
2
+ import { type GetFunctionConfigurationCommandInput, type GetFunctionConfigurationCommandOutput } from "../commands/GetFunctionConfigurationCommand";
3
3
  import type { LambdaClient } from "../LambdaClient";
4
+ import type { LambdaServiceException } from "../models/LambdaServiceException";
4
5
  /**
5
6
  * Waits for the function's State to be Active. This waiter uses GetFunctionConfiguration API. This should be used after new function creation.
6
7
  * @deprecated Use waitUntilFunctionActive instead. waitForFunctionActive does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForFunctionActive: (params: WaiterConfiguration<LambdaClient>, input: GetFunctionConfigurationCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForFunctionActive: (params: WaiterConfiguration<LambdaClient>, input: GetFunctionConfigurationCommandInput) => Promise<WaiterResult<GetFunctionConfigurationCommandOutput | LambdaServiceException>>;
9
10
  /**
10
11
  * Waits for the function's State to be Active. This waiter uses GetFunctionConfiguration API. This should be used after new function creation.
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to GetFunctionConfigurationCommand for polling.
13
14
  */
14
- export declare const waitUntilFunctionActive: (params: WaiterConfiguration<LambdaClient>, input: GetFunctionConfigurationCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilFunctionActive: (params: WaiterConfiguration<LambdaClient>, input: GetFunctionConfigurationCommandInput) => Promise<WaiterResult<GetFunctionConfigurationCommandOutput>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type GetFunctionCommandInput } from "../commands/GetFunctionCommand";
2
+ import { type GetFunctionCommandInput, type GetFunctionCommandOutput } from "../commands/GetFunctionCommand";
3
3
  import type { LambdaClient } from "../LambdaClient";
4
+ import type { LambdaServiceException } from "../models/LambdaServiceException";
4
5
  /**
5
6
  * Waits for the function's State to be Active. This waiter uses GetFunction API. This should be used after new function creation.
6
7
  * @deprecated Use waitUntilFunctionActiveV2 instead. waitForFunctionActiveV2 does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForFunctionActiveV2: (params: WaiterConfiguration<LambdaClient>, input: GetFunctionCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForFunctionActiveV2: (params: WaiterConfiguration<LambdaClient>, input: GetFunctionCommandInput) => Promise<WaiterResult<GetFunctionCommandOutput | LambdaServiceException>>;
9
10
  /**
10
11
  * Waits for the function's State to be Active. This waiter uses GetFunction API. This should be used after new function creation.
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to GetFunctionCommand for polling.
13
14
  */
14
- export declare const waitUntilFunctionActiveV2: (params: WaiterConfiguration<LambdaClient>, input: GetFunctionCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilFunctionActiveV2: (params: WaiterConfiguration<LambdaClient>, input: GetFunctionCommandInput) => Promise<WaiterResult<GetFunctionCommandOutput>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type GetFunctionCommandInput } from "../commands/GetFunctionCommand";
2
+ import { type GetFunctionCommandInput, type GetFunctionCommandOutput } from "../commands/GetFunctionCommand";
3
3
  import type { LambdaClient } from "../LambdaClient";
4
+ import type { LambdaServiceException } from "../models/LambdaServiceException";
4
5
  /**
5
6
  *
6
7
  * @deprecated Use waitUntilFunctionExists instead. waitForFunctionExists does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForFunctionExists: (params: WaiterConfiguration<LambdaClient>, input: GetFunctionCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForFunctionExists: (params: WaiterConfiguration<LambdaClient>, input: GetFunctionCommandInput) => Promise<WaiterResult<GetFunctionCommandOutput | LambdaServiceException>>;
9
10
  /**
10
11
  *
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to GetFunctionCommand for polling.
13
14
  */
14
- export declare const waitUntilFunctionExists: (params: WaiterConfiguration<LambdaClient>, input: GetFunctionCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilFunctionExists: (params: WaiterConfiguration<LambdaClient>, input: GetFunctionCommandInput) => Promise<WaiterResult<GetFunctionCommandOutput>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type GetFunctionConfigurationCommandInput } from "../commands/GetFunctionConfigurationCommand";
2
+ import { type GetFunctionConfigurationCommandInput, type GetFunctionConfigurationCommandOutput } from "../commands/GetFunctionConfigurationCommand";
3
3
  import type { LambdaClient } from "../LambdaClient";
4
+ import type { LambdaServiceException } from "../models/LambdaServiceException";
4
5
  /**
5
6
  * Waits for the function's LastUpdateStatus to be Successful. This waiter uses GetFunctionConfiguration API. This should be used after function updates.
6
7
  * @deprecated Use waitUntilFunctionUpdated instead. waitForFunctionUpdated does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForFunctionUpdated: (params: WaiterConfiguration<LambdaClient>, input: GetFunctionConfigurationCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForFunctionUpdated: (params: WaiterConfiguration<LambdaClient>, input: GetFunctionConfigurationCommandInput) => Promise<WaiterResult<GetFunctionConfigurationCommandOutput | LambdaServiceException>>;
9
10
  /**
10
11
  * Waits for the function's LastUpdateStatus to be Successful. This waiter uses GetFunctionConfiguration API. This should be used after function updates.
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to GetFunctionConfigurationCommand for polling.
13
14
  */
14
- export declare const waitUntilFunctionUpdated: (params: WaiterConfiguration<LambdaClient>, input: GetFunctionConfigurationCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilFunctionUpdated: (params: WaiterConfiguration<LambdaClient>, input: GetFunctionConfigurationCommandInput) => Promise<WaiterResult<GetFunctionConfigurationCommandOutput>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type GetFunctionCommandInput } from "../commands/GetFunctionCommand";
2
+ import { type GetFunctionCommandInput, type GetFunctionCommandOutput } from "../commands/GetFunctionCommand";
3
3
  import type { LambdaClient } from "../LambdaClient";
4
+ import type { LambdaServiceException } from "../models/LambdaServiceException";
4
5
  /**
5
6
  * Waits for the function's LastUpdateStatus to be Successful. This waiter uses GetFunction API. This should be used after function updates.
6
7
  * @deprecated Use waitUntilFunctionUpdatedV2 instead. waitForFunctionUpdatedV2 does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForFunctionUpdatedV2: (params: WaiterConfiguration<LambdaClient>, input: GetFunctionCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForFunctionUpdatedV2: (params: WaiterConfiguration<LambdaClient>, input: GetFunctionCommandInput) => Promise<WaiterResult<GetFunctionCommandOutput | LambdaServiceException>>;
9
10
  /**
10
11
  * Waits for the function's LastUpdateStatus to be Successful. This waiter uses GetFunction API. This should be used after function updates.
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to GetFunctionCommand for polling.
13
14
  */
14
- export declare const waitUntilFunctionUpdatedV2: (params: WaiterConfiguration<LambdaClient>, input: GetFunctionCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilFunctionUpdatedV2: (params: WaiterConfiguration<LambdaClient>, input: GetFunctionCommandInput) => Promise<WaiterResult<GetFunctionCommandOutput>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type GetFunctionConfigurationCommandInput } from "../commands/GetFunctionConfigurationCommand";
2
+ import { type GetFunctionConfigurationCommandInput, type GetFunctionConfigurationCommandOutput } from "../commands/GetFunctionConfigurationCommand";
3
3
  import type { LambdaClient } from "../LambdaClient";
4
+ import type { LambdaServiceException } from "../models/LambdaServiceException";
4
5
  /**
5
6
  * Waits for the published version's State to be Active. This waiter uses GetFunctionConfiguration API. This should be used after new version is published.
6
7
  * @deprecated Use waitUntilPublishedVersionActive instead. waitForPublishedVersionActive does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForPublishedVersionActive: (params: WaiterConfiguration<LambdaClient>, input: GetFunctionConfigurationCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForPublishedVersionActive: (params: WaiterConfiguration<LambdaClient>, input: GetFunctionConfigurationCommandInput) => Promise<WaiterResult<GetFunctionConfigurationCommandOutput | LambdaServiceException>>;
9
10
  /**
10
11
  * Waits for the published version's State to be Active. This waiter uses GetFunctionConfiguration API. This should be used after new version is published.
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to GetFunctionConfigurationCommand for polling.
13
14
  */
14
- export declare const waitUntilPublishedVersionActive: (params: WaiterConfiguration<LambdaClient>, input: GetFunctionConfigurationCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilPublishedVersionActive: (params: WaiterConfiguration<LambdaClient>, input: GetFunctionConfigurationCommandInput) => Promise<WaiterResult<GetFunctionConfigurationCommandOutput>>;
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.1037.0",
4
+ "version": "3.1039.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-lambda",
@@ -27,17 +27,17 @@
27
27
  "dependencies": {
28
28
  "@aws-crypto/sha256-browser": "5.2.0",
29
29
  "@aws-crypto/sha256-js": "5.2.0",
30
- "@aws-sdk/core": "^3.974.5",
31
- "@aws-sdk/credential-provider-node": "^3.972.36",
30
+ "@aws-sdk/core": "^3.974.7",
31
+ "@aws-sdk/credential-provider-node": "^3.972.38",
32
32
  "@aws-sdk/middleware-host-header": "^3.972.10",
33
33
  "@aws-sdk/middleware-logger": "^3.972.10",
34
34
  "@aws-sdk/middleware-recursion-detection": "^3.972.11",
35
- "@aws-sdk/middleware-user-agent": "^3.972.35",
35
+ "@aws-sdk/middleware-user-agent": "^3.972.37",
36
36
  "@aws-sdk/region-config-resolver": "^3.972.13",
37
37
  "@aws-sdk/types": "^3.973.8",
38
38
  "@aws-sdk/util-endpoints": "^3.996.8",
39
39
  "@aws-sdk/util-user-agent-browser": "^3.972.10",
40
- "@aws-sdk/util-user-agent-node": "^3.973.21",
40
+ "@aws-sdk/util-user-agent-node": "^3.973.23",
41
41
  "@smithy/config-resolver": "^4.4.17",
42
42
  "@smithy/core": "^3.23.17",
43
43
  "@smithy/eventstream-serde-browser": "^4.2.14",
@@ -48,7 +48,7 @@
48
48
  "@smithy/invalid-dependency": "^4.2.14",
49
49
  "@smithy/middleware-content-length": "^4.2.14",
50
50
  "@smithy/middleware-endpoint": "^4.4.32",
51
- "@smithy/middleware-retry": "^4.5.5",
51
+ "@smithy/middleware-retry": "^4.5.7",
52
52
  "@smithy/middleware-serde": "^4.2.20",
53
53
  "@smithy/middleware-stack": "^4.2.14",
54
54
  "@smithy/node-config-provider": "^4.3.14",
@@ -64,10 +64,10 @@
64
64
  "@smithy/util-defaults-mode-node": "^4.2.54",
65
65
  "@smithy/util-endpoints": "^3.4.2",
66
66
  "@smithy/util-middleware": "^4.2.14",
67
- "@smithy/util-retry": "^4.3.4",
67
+ "@smithy/util-retry": "^4.3.6",
68
68
  "@smithy/util-stream": "^4.5.25",
69
69
  "@smithy/util-utf8": "^4.2.2",
70
- "@smithy/util-waiter": "^4.2.16",
70
+ "@smithy/util-waiter": "^4.3.0",
71
71
  "tslib": "^2.6.2"
72
72
  },
73
73
  "devDependencies": {