@aws-sdk/client-lambda 3.377.0 → 3.378.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.
@@ -1,25 +1,19 @@
1
- /// <reference types="node" />
2
1
  import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack, StreamingBlobPayloadInputTypes } from "@smithy/types";
5
4
  import { LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LambdaClient";
6
5
  import { InvokeAsyncRequest, InvokeAsyncResponse } from "../models/models_0";
7
6
  /**
8
7
  * @public
9
8
  */
10
9
  export { __MetadataBearer, $Command };
11
- export type InvokeAsyncCommandInputType = Omit<InvokeAsyncRequest, "InvokeArgs"> & {
12
- /**
13
- * For *`InvokeAsyncRequest["InvokeArgs"]`*, see {@link InvokeAsyncRequest.InvokeArgs}.
14
- */
15
- InvokeArgs: InvokeAsyncRequest["InvokeArgs"] | string | Uint8Array | Buffer;
16
- };
17
10
  /**
18
11
  * @public
19
12
  *
20
13
  * The input for {@link InvokeAsyncCommand}.
21
14
  */
22
- export interface InvokeAsyncCommandInput extends InvokeAsyncCommandInputType {
15
+ export interface InvokeAsyncCommandInput extends Omit<InvokeAsyncRequest, "InvokeArgs"> {
16
+ InvokeArgs: StreamingBlobPayloadInputTypes;
23
17
  }
24
18
  /**
25
19
  * @public
@@ -1,7 +1,6 @@
1
- import { BlobTypes } from "@aws-sdk/types";
2
1
  import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
3
+ import { BlobPayloadInputTypes, Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
5
4
  import { Uint8ArrayBlobAdapter } from "@smithy/util-stream";
6
5
  import { LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LambdaClient";
7
6
  import { InvocationRequest, InvocationResponse } from "../models/models_0";
@@ -13,7 +12,7 @@ export { __MetadataBearer, $Command };
13
12
  * @public
14
13
  */
15
14
  export type InvokeCommandInputType = Omit<InvocationRequest, "Payload"> & {
16
- Payload?: BlobTypes;
15
+ Payload?: BlobPayloadInputTypes;
17
16
  };
18
17
  /**
19
18
  * @public
@@ -1,7 +1,6 @@
1
- import { BlobTypes } from "@aws-sdk/types";
2
1
  import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
3
+ import { BlobPayloadInputTypes, Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
5
4
  import { LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LambdaClient";
6
5
  import { InvokeWithResponseStreamRequest, InvokeWithResponseStreamResponse } from "../models/models_0";
7
6
  /**
@@ -12,7 +11,7 @@ export { __MetadataBearer, $Command };
12
11
  * @public
13
12
  */
14
13
  export type InvokeWithResponseStreamCommandInputType = Omit<InvokeWithResponseStreamRequest, "Payload"> & {
15
- Payload?: BlobTypes;
14
+ Payload?: BlobPayloadInputTypes;
16
15
  };
17
16
  /**
18
17
  * @public
@@ -1,6 +1,5 @@
1
- /// <reference types="node" />
2
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
3
- import { Readable } from "stream";
2
+ import { StreamingBlobTypes } from "@smithy/types";
4
3
  import { LambdaServiceException as __BaseException } from "./LambdaServiceException";
5
4
  /**
6
5
  * @public
@@ -3615,7 +3614,7 @@ export interface InvokeAsyncRequest {
3615
3614
  /**
3616
3615
  * <p>The JSON that you want to provide to your Lambda function as input.</p>
3617
3616
  */
3618
- InvokeArgs: Readable | ReadableStream | Blob | undefined;
3617
+ InvokeArgs: StreamingBlobTypes | undefined;
3619
3618
  }
3620
3619
  /**
3621
3620
  * @public
@@ -5,6 +5,7 @@ import {
5
5
  HttpHandlerOptions as __HttpHandlerOptions,
6
6
  MetadataBearer as __MetadataBearer,
7
7
  MiddlewareStack,
8
+ StreamingBlobPayloadInputTypes,
8
9
  } from "@smithy/types";
9
10
  import {
10
11
  LambdaClientResolvedConfig,
@@ -13,13 +14,13 @@ import {
13
14
  } from "../LambdaClient";
14
15
  import { InvokeAsyncRequest, InvokeAsyncResponse } from "../models/models_0";
15
16
  export { __MetadataBearer, $Command };
16
- export type InvokeAsyncCommandInputType = Pick<
17
- InvokeAsyncRequest,
18
- Exclude<keyof InvokeAsyncRequest, "InvokeArgs">
19
- > & {
20
- InvokeArgs: InvokeAsyncRequest["InvokeArgs"] | string | Uint8Array | Buffer;
21
- };
22
- export interface InvokeAsyncCommandInput extends InvokeAsyncCommandInputType {}
17
+ export interface InvokeAsyncCommandInput
18
+ extends Pick<
19
+ InvokeAsyncRequest,
20
+ Exclude<keyof InvokeAsyncRequest, "InvokeArgs">
21
+ > {
22
+ InvokeArgs: StreamingBlobPayloadInputTypes;
23
+ }
23
24
  export interface InvokeAsyncCommandOutput
24
25
  extends InvokeAsyncResponse,
25
26
  __MetadataBearer {}
@@ -1,7 +1,7 @@
1
- import { BlobTypes } from "@aws-sdk/types";
2
1
  import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import {
4
+ BlobPayloadInputTypes,
5
5
  Handler,
6
6
  HttpHandlerOptions as __HttpHandlerOptions,
7
7
  MetadataBearer as __MetadataBearer,
@@ -19,7 +19,7 @@ export type InvokeCommandInputType = Pick<
19
19
  InvocationRequest,
20
20
  Exclude<keyof InvocationRequest, "Payload">
21
21
  > & {
22
- Payload?: BlobTypes;
22
+ Payload?: BlobPayloadInputTypes;
23
23
  };
24
24
  export interface InvokeCommandInput extends InvokeCommandInputType {}
25
25
  export type InvokeCommandOutputType = Pick<
@@ -1,7 +1,7 @@
1
- import { BlobTypes } from "@aws-sdk/types";
2
1
  import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import {
4
+ BlobPayloadInputTypes,
5
5
  Handler,
6
6
  HttpHandlerOptions as __HttpHandlerOptions,
7
7
  MetadataBearer as __MetadataBearer,
@@ -21,7 +21,7 @@ export type InvokeWithResponseStreamCommandInputType = Pick<
21
21
  InvokeWithResponseStreamRequest,
22
22
  Exclude<keyof InvokeWithResponseStreamRequest, "Payload">
23
23
  > & {
24
- Payload?: BlobTypes;
24
+ Payload?: BlobPayloadInputTypes;
25
25
  };
26
26
  export interface InvokeWithResponseStreamCommandInput
27
27
  extends InvokeWithResponseStreamCommandInputType {}
@@ -1,5 +1,5 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { Readable } from "stream";
2
+ import { StreamingBlobTypes } from "@smithy/types";
3
3
  import { LambdaServiceException as __BaseException } from "./LambdaServiceException";
4
4
  export interface AccountLimit {
5
5
  TotalCodeSize?: number;
@@ -1086,7 +1086,7 @@ export declare class UnsupportedMediaTypeException extends __BaseException {
1086
1086
  }
1087
1087
  export interface InvokeAsyncRequest {
1088
1088
  FunctionName: string | undefined;
1089
- InvokeArgs: Readable | ReadableStream | Blob | undefined;
1089
+ InvokeArgs: StreamingBlobTypes | undefined;
1090
1090
  }
1091
1091
  export interface InvokeAsyncResponse {
1092
1092
  Status?: number;
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.377.0",
4
+ "version": "3.378.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,48 +21,48 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.377.0",
25
- "@aws-sdk/credential-provider-node": "3.370.0",
26
- "@aws-sdk/middleware-host-header": "3.370.0",
27
- "@aws-sdk/middleware-logger": "3.370.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.370.0",
29
- "@aws-sdk/middleware-signing": "3.370.0",
30
- "@aws-sdk/middleware-user-agent": "3.370.0",
31
- "@aws-sdk/types": "3.370.0",
32
- "@aws-sdk/util-endpoints": "3.370.0",
33
- "@aws-sdk/util-user-agent-browser": "3.370.0",
34
- "@aws-sdk/util-user-agent-node": "3.370.0",
35
- "@smithy/config-resolver": "^1.0.1",
36
- "@smithy/eventstream-serde-browser": "^1.0.1",
37
- "@smithy/eventstream-serde-config-resolver": "^1.0.1",
38
- "@smithy/eventstream-serde-node": "^1.0.1",
39
- "@smithy/fetch-http-handler": "^1.0.1",
40
- "@smithy/hash-node": "^1.0.1",
41
- "@smithy/invalid-dependency": "^1.0.1",
42
- "@smithy/middleware-content-length": "^1.0.1",
43
- "@smithy/middleware-endpoint": "^1.0.2",
44
- "@smithy/middleware-retry": "^1.0.3",
45
- "@smithy/middleware-serde": "^1.0.1",
46
- "@smithy/middleware-stack": "^1.0.1",
47
- "@smithy/node-config-provider": "^1.0.1",
48
- "@smithy/node-http-handler": "^1.0.2",
49
- "@smithy/protocol-http": "^1.1.0",
50
- "@smithy/smithy-client": "^1.0.3",
51
- "@smithy/types": "^1.1.0",
52
- "@smithy/url-parser": "^1.0.1",
53
- "@smithy/util-base64": "^1.0.1",
54
- "@smithy/util-body-length-browser": "^1.0.1",
55
- "@smithy/util-body-length-node": "^1.0.1",
56
- "@smithy/util-defaults-mode-browser": "^1.0.1",
57
- "@smithy/util-defaults-mode-node": "^1.0.1",
58
- "@smithy/util-retry": "^1.0.3",
59
- "@smithy/util-stream": "^1.0.1",
60
- "@smithy/util-utf8": "^1.0.1",
61
- "@smithy/util-waiter": "^1.0.1",
24
+ "@aws-sdk/client-sts": "3.378.0",
25
+ "@aws-sdk/credential-provider-node": "3.378.0",
26
+ "@aws-sdk/middleware-host-header": "3.378.0",
27
+ "@aws-sdk/middleware-logger": "3.378.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.378.0",
29
+ "@aws-sdk/middleware-signing": "3.378.0",
30
+ "@aws-sdk/middleware-user-agent": "3.378.0",
31
+ "@aws-sdk/types": "3.378.0",
32
+ "@aws-sdk/util-endpoints": "3.378.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.378.0",
34
+ "@aws-sdk/util-user-agent-node": "3.378.0",
35
+ "@smithy/config-resolver": "^2.0.1",
36
+ "@smithy/eventstream-serde-browser": "^2.0.1",
37
+ "@smithy/eventstream-serde-config-resolver": "^2.0.1",
38
+ "@smithy/eventstream-serde-node": "^2.0.1",
39
+ "@smithy/fetch-http-handler": "^2.0.1",
40
+ "@smithy/hash-node": "^2.0.1",
41
+ "@smithy/invalid-dependency": "^2.0.1",
42
+ "@smithy/middleware-content-length": "^2.0.1",
43
+ "@smithy/middleware-endpoint": "^2.0.1",
44
+ "@smithy/middleware-retry": "^2.0.1",
45
+ "@smithy/middleware-serde": "^2.0.1",
46
+ "@smithy/middleware-stack": "^2.0.0",
47
+ "@smithy/node-config-provider": "^2.0.1",
48
+ "@smithy/node-http-handler": "^2.0.1",
49
+ "@smithy/protocol-http": "^2.0.1",
50
+ "@smithy/smithy-client": "^2.0.1",
51
+ "@smithy/types": "^2.0.2",
52
+ "@smithy/url-parser": "^2.0.1",
53
+ "@smithy/util-base64": "^2.0.0",
54
+ "@smithy/util-body-length-browser": "^2.0.0",
55
+ "@smithy/util-body-length-node": "^2.0.0",
56
+ "@smithy/util-defaults-mode-browser": "^2.0.1",
57
+ "@smithy/util-defaults-mode-node": "^2.0.1",
58
+ "@smithy/util-retry": "^2.0.0",
59
+ "@smithy/util-stream": "^2.0.1",
60
+ "@smithy/util-utf8": "^2.0.0",
61
+ "@smithy/util-waiter": "^2.0.1",
62
62
  "tslib": "^2.5.0"
63
63
  },
64
64
  "devDependencies": {
65
- "@smithy/service-client-documentation-generator": "^1.0.1",
65
+ "@smithy/service-client-documentation-generator": "^2.0.0",
66
66
  "@tsconfig/node14": "1.0.3",
67
67
  "@types/node": "^14.14.31",
68
68
  "concurrently": "7.0.0",