@aws-sdk/client-lambda 3.306.0 → 3.309.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/README.md +8 -0
- package/dist-cjs/Lambda.js +15 -0
- package/dist-cjs/LambdaClient.js +4 -2
- package/dist-cjs/commands/AddLayerVersionPermissionCommand.js +2 -2
- package/dist-cjs/commands/AddPermissionCommand.js +2 -2
- package/dist-cjs/commands/CreateAliasCommand.js +2 -2
- package/dist-cjs/commands/CreateCodeSigningConfigCommand.js +2 -2
- package/dist-cjs/commands/CreateEventSourceMappingCommand.js +2 -2
- package/dist-cjs/commands/CreateFunctionCommand.js +2 -2
- package/dist-cjs/commands/CreateFunctionUrlConfigCommand.js +2 -2
- package/dist-cjs/commands/DeleteAliasCommand.js +2 -2
- package/dist-cjs/commands/DeleteCodeSigningConfigCommand.js +2 -2
- package/dist-cjs/commands/DeleteEventSourceMappingCommand.js +2 -2
- package/dist-cjs/commands/DeleteFunctionCodeSigningConfigCommand.js +2 -2
- package/dist-cjs/commands/DeleteFunctionCommand.js +2 -2
- package/dist-cjs/commands/DeleteFunctionConcurrencyCommand.js +2 -2
- package/dist-cjs/commands/DeleteFunctionEventInvokeConfigCommand.js +2 -2
- package/dist-cjs/commands/DeleteFunctionUrlConfigCommand.js +2 -2
- package/dist-cjs/commands/DeleteLayerVersionCommand.js +2 -2
- package/dist-cjs/commands/DeleteProvisionedConcurrencyConfigCommand.js +2 -2
- package/dist-cjs/commands/GetAccountSettingsCommand.js +2 -2
- package/dist-cjs/commands/GetAliasCommand.js +2 -2
- package/dist-cjs/commands/GetCodeSigningConfigCommand.js +2 -2
- package/dist-cjs/commands/GetEventSourceMappingCommand.js +2 -2
- package/dist-cjs/commands/GetFunctionCodeSigningConfigCommand.js +2 -2
- package/dist-cjs/commands/GetFunctionCommand.js +2 -2
- package/dist-cjs/commands/GetFunctionConcurrencyCommand.js +2 -2
- package/dist-cjs/commands/GetFunctionConfigurationCommand.js +2 -2
- package/dist-cjs/commands/GetFunctionEventInvokeConfigCommand.js +2 -2
- package/dist-cjs/commands/GetFunctionUrlConfigCommand.js +2 -2
- package/dist-cjs/commands/GetLayerVersionByArnCommand.js +2 -2
- package/dist-cjs/commands/GetLayerVersionCommand.js +2 -2
- package/dist-cjs/commands/GetLayerVersionPolicyCommand.js +2 -2
- package/dist-cjs/commands/GetPolicyCommand.js +2 -2
- package/dist-cjs/commands/GetProvisionedConcurrencyConfigCommand.js +2 -2
- package/dist-cjs/commands/GetRuntimeManagementConfigCommand.js +2 -2
- package/dist-cjs/commands/InvokeAsyncCommand.js +2 -2
- package/dist-cjs/commands/InvokeCommand.js +2 -2
- package/dist-cjs/commands/InvokeWithResponseStreamCommand.js +46 -0
- package/dist-cjs/commands/ListAliasesCommand.js +2 -2
- package/dist-cjs/commands/ListCodeSigningConfigsCommand.js +2 -2
- package/dist-cjs/commands/ListEventSourceMappingsCommand.js +2 -2
- package/dist-cjs/commands/ListFunctionEventInvokeConfigsCommand.js +2 -2
- package/dist-cjs/commands/ListFunctionUrlConfigsCommand.js +2 -2
- package/dist-cjs/commands/ListFunctionsByCodeSigningConfigCommand.js +2 -2
- package/dist-cjs/commands/ListFunctionsCommand.js +2 -2
- package/dist-cjs/commands/ListLayerVersionsCommand.js +2 -2
- package/dist-cjs/commands/ListLayersCommand.js +2 -2
- package/dist-cjs/commands/ListProvisionedConcurrencyConfigsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsCommand.js +2 -2
- package/dist-cjs/commands/ListVersionsByFunctionCommand.js +2 -2
- package/dist-cjs/commands/PublishLayerVersionCommand.js +2 -2
- package/dist-cjs/commands/PublishVersionCommand.js +2 -2
- package/dist-cjs/commands/PutFunctionCodeSigningConfigCommand.js +2 -2
- package/dist-cjs/commands/PutFunctionConcurrencyCommand.js +2 -2
- package/dist-cjs/commands/PutFunctionEventInvokeConfigCommand.js +2 -2
- package/dist-cjs/commands/PutProvisionedConcurrencyConfigCommand.js +2 -2
- package/dist-cjs/commands/PutRuntimeManagementConfigCommand.js +2 -2
- package/dist-cjs/commands/RemoveLayerVersionPermissionCommand.js +2 -2
- package/dist-cjs/commands/RemovePermissionCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateAliasCommand.js +2 -2
- package/dist-cjs/commands/UpdateCodeSigningConfigCommand.js +2 -2
- package/dist-cjs/commands/UpdateEventSourceMappingCommand.js +2 -2
- package/dist-cjs/commands/UpdateFunctionCodeCommand.js +2 -2
- package/dist-cjs/commands/UpdateFunctionConfigurationCommand.js +2 -2
- package/dist-cjs/commands/UpdateFunctionEventInvokeConfigCommand.js +2 -2
- package/dist-cjs/commands/UpdateFunctionUrlConfigCommand.js +2 -2
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +44 -2
- package/dist-cjs/protocols/Aws_restJson1.js +1338 -1217
- package/dist-cjs/runtimeConfig.browser.js +2 -0
- package/dist-cjs/runtimeConfig.js +2 -0
- package/dist-es/Lambda.js +15 -0
- package/dist-es/LambdaClient.js +4 -2
- package/dist-es/commands/AddLayerVersionPermissionCommand.js +3 -3
- package/dist-es/commands/AddPermissionCommand.js +3 -3
- package/dist-es/commands/CreateAliasCommand.js +3 -3
- package/dist-es/commands/CreateCodeSigningConfigCommand.js +3 -3
- package/dist-es/commands/CreateEventSourceMappingCommand.js +3 -3
- package/dist-es/commands/CreateFunctionCommand.js +3 -3
- package/dist-es/commands/CreateFunctionUrlConfigCommand.js +3 -3
- package/dist-es/commands/DeleteAliasCommand.js +3 -3
- package/dist-es/commands/DeleteCodeSigningConfigCommand.js +3 -3
- package/dist-es/commands/DeleteEventSourceMappingCommand.js +3 -3
- package/dist-es/commands/DeleteFunctionCodeSigningConfigCommand.js +3 -3
- package/dist-es/commands/DeleteFunctionCommand.js +3 -3
- package/dist-es/commands/DeleteFunctionConcurrencyCommand.js +3 -3
- package/dist-es/commands/DeleteFunctionEventInvokeConfigCommand.js +3 -3
- package/dist-es/commands/DeleteFunctionUrlConfigCommand.js +3 -3
- package/dist-es/commands/DeleteLayerVersionCommand.js +3 -3
- package/dist-es/commands/DeleteProvisionedConcurrencyConfigCommand.js +3 -3
- package/dist-es/commands/GetAccountSettingsCommand.js +3 -3
- package/dist-es/commands/GetAliasCommand.js +3 -3
- package/dist-es/commands/GetCodeSigningConfigCommand.js +3 -3
- package/dist-es/commands/GetEventSourceMappingCommand.js +3 -3
- package/dist-es/commands/GetFunctionCodeSigningConfigCommand.js +3 -3
- package/dist-es/commands/GetFunctionCommand.js +3 -3
- package/dist-es/commands/GetFunctionConcurrencyCommand.js +3 -3
- package/dist-es/commands/GetFunctionConfigurationCommand.js +3 -3
- package/dist-es/commands/GetFunctionEventInvokeConfigCommand.js +3 -3
- package/dist-es/commands/GetFunctionUrlConfigCommand.js +3 -3
- package/dist-es/commands/GetLayerVersionByArnCommand.js +3 -3
- package/dist-es/commands/GetLayerVersionCommand.js +3 -3
- package/dist-es/commands/GetLayerVersionPolicyCommand.js +3 -3
- package/dist-es/commands/GetPolicyCommand.js +3 -3
- package/dist-es/commands/GetProvisionedConcurrencyConfigCommand.js +3 -3
- package/dist-es/commands/GetRuntimeManagementConfigCommand.js +3 -3
- package/dist-es/commands/InvokeAsyncCommand.js +3 -3
- package/dist-es/commands/InvokeCommand.js +3 -3
- package/dist-es/commands/InvokeWithResponseStreamCommand.js +42 -0
- package/dist-es/commands/ListAliasesCommand.js +3 -3
- package/dist-es/commands/ListCodeSigningConfigsCommand.js +3 -3
- package/dist-es/commands/ListEventSourceMappingsCommand.js +3 -3
- package/dist-es/commands/ListFunctionEventInvokeConfigsCommand.js +3 -3
- package/dist-es/commands/ListFunctionUrlConfigsCommand.js +3 -3
- package/dist-es/commands/ListFunctionsByCodeSigningConfigCommand.js +3 -3
- package/dist-es/commands/ListFunctionsCommand.js +3 -3
- package/dist-es/commands/ListLayerVersionsCommand.js +3 -3
- package/dist-es/commands/ListLayersCommand.js +3 -3
- package/dist-es/commands/ListProvisionedConcurrencyConfigsCommand.js +3 -3
- package/dist-es/commands/ListTagsCommand.js +3 -3
- package/dist-es/commands/ListVersionsByFunctionCommand.js +3 -3
- package/dist-es/commands/PublishLayerVersionCommand.js +3 -3
- package/dist-es/commands/PublishVersionCommand.js +3 -3
- package/dist-es/commands/PutFunctionCodeSigningConfigCommand.js +3 -3
- package/dist-es/commands/PutFunctionConcurrencyCommand.js +3 -3
- package/dist-es/commands/PutFunctionEventInvokeConfigCommand.js +3 -3
- package/dist-es/commands/PutProvisionedConcurrencyConfigCommand.js +3 -3
- package/dist-es/commands/PutRuntimeManagementConfigCommand.js +3 -3
- package/dist-es/commands/RemoveLayerVersionPermissionCommand.js +3 -3
- package/dist-es/commands/RemovePermissionCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateAliasCommand.js +3 -3
- package/dist-es/commands/UpdateCodeSigningConfigCommand.js +3 -3
- package/dist-es/commands/UpdateEventSourceMappingCommand.js +3 -3
- package/dist-es/commands/UpdateFunctionCodeCommand.js +3 -3
- package/dist-es/commands/UpdateFunctionConfigurationCommand.js +3 -3
- package/dist-es/commands/UpdateFunctionEventInvokeConfigCommand.js +3 -3
- package/dist-es/commands/UpdateFunctionUrlConfigCommand.js +3 -3
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +38 -0
- package/dist-es/protocols/Aws_restJson1.js +1203 -1084
- package/dist-es/runtimeConfig.browser.js +2 -0
- package/dist-es/runtimeConfig.js +2 -0
- package/dist-types/Lambda.d.ts +32 -0
- package/dist-types/LambdaClient.d.ts +11 -5
- package/dist-types/commands/CreateEventSourceMappingCommand.d.ts +12 -0
- package/dist-types/commands/CreateFunctionUrlConfigCommand.d.ts +1 -0
- package/dist-types/commands/InvokeWithResponseStreamCommand.d.ts +158 -0
- package/dist-types/commands/UpdateEventSourceMappingCommand.d.ts +12 -0
- package/dist-types/commands/UpdateFunctionUrlConfigCommand.d.ts +1 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +340 -32
- package/dist-types/protocols/Aws_restJson1.d.ts +530 -131
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/Lambda.d.ts +17 -0
- package/dist-types/ts3.4/LambdaClient.d.ts +14 -0
- package/dist-types/ts3.4/commands/InvokeWithResponseStreamCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +81 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +146 -131
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +9 -6
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
2
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
3
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
4
|
+
import { eventStreamSerdeProvider } from "@aws-sdk/eventstream-serde-browser";
|
|
4
5
|
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
6
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
6
7
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
23
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
23
24
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
24
25
|
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
26
|
+
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
|
|
25
27
|
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
26
28
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
27
29
|
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -2,6 +2,7 @@ import packageInfo from "../package.json";
|
|
|
2
2
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
3
3
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
4
4
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
5
|
+
import { eventStreamSerdeProvider } from "@aws-sdk/eventstream-serde-node";
|
|
5
6
|
import { Hash } from "@aws-sdk/hash-node";
|
|
6
7
|
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
7
8
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
@@ -27,6 +28,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
27
28
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
|
|
28
29
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
29
30
|
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
31
|
+
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
|
|
30
32
|
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
31
33
|
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
32
34
|
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
package/dist-types/Lambda.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ import { GetProvisionedConcurrencyConfigCommandInput, GetProvisionedConcurrencyC
|
|
|
34
34
|
import { GetRuntimeManagementConfigCommandInput, GetRuntimeManagementConfigCommandOutput } from "./commands/GetRuntimeManagementConfigCommand";
|
|
35
35
|
import { InvokeAsyncCommandInput, InvokeAsyncCommandOutput } from "./commands/InvokeAsyncCommand";
|
|
36
36
|
import { InvokeCommandInput, InvokeCommandOutput } from "./commands/InvokeCommand";
|
|
37
|
+
import { InvokeWithResponseStreamCommandInput, InvokeWithResponseStreamCommandOutput } from "./commands/InvokeWithResponseStreamCommand";
|
|
37
38
|
import { ListAliasesCommandInput, ListAliasesCommandOutput } from "./commands/ListAliasesCommand";
|
|
38
39
|
import { ListCodeSigningConfigsCommandInput, ListCodeSigningConfigsCommandOutput } from "./commands/ListCodeSigningConfigsCommand";
|
|
39
40
|
import { ListEventSourceMappingsCommandInput, ListEventSourceMappingsCommandOutput } from "./commands/ListEventSourceMappingsCommand";
|
|
@@ -227,6 +228,12 @@ export declare class Lambda extends LambdaClient {
|
|
|
227
228
|
* Apache Kafka</a>
|
|
228
229
|
* </p>
|
|
229
230
|
* </li>
|
|
231
|
+
* <li>
|
|
232
|
+
* <p>
|
|
233
|
+
* <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-documentdb.html">
|
|
234
|
+
* Amazon DocumentDB</a>
|
|
235
|
+
* </p>
|
|
236
|
+
* </li>
|
|
230
237
|
* </ul>
|
|
231
238
|
* <p>The following error handling options are available only for stream sources (DynamoDB and Kinesis):</p>
|
|
232
239
|
* <ul>
|
|
@@ -289,6 +296,12 @@ export declare class Lambda extends LambdaClient {
|
|
|
289
296
|
* Apache Kafka</a>
|
|
290
297
|
* </p>
|
|
291
298
|
* </li>
|
|
299
|
+
* <li>
|
|
300
|
+
* <p>
|
|
301
|
+
* <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-documentdb.html#docdb-configuration">
|
|
302
|
+
* Amazon DocumentDB</a>
|
|
303
|
+
* </p>
|
|
304
|
+
* </li>
|
|
292
305
|
* </ul>
|
|
293
306
|
*/
|
|
294
307
|
createEventSourceMapping(args: CreateEventSourceMappingCommandInput, options?: __HttpHandlerOptions): Promise<CreateEventSourceMappingCommandOutput>;
|
|
@@ -596,6 +609,13 @@ export declare class Lambda extends LambdaClient {
|
|
|
596
609
|
invokeAsync(args: InvokeAsyncCommandInput, options?: __HttpHandlerOptions): Promise<InvokeAsyncCommandOutput>;
|
|
597
610
|
invokeAsync(args: InvokeAsyncCommandInput, cb: (err: any, data?: InvokeAsyncCommandOutput) => void): void;
|
|
598
611
|
invokeAsync(args: InvokeAsyncCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InvokeAsyncCommandOutput) => void): void;
|
|
612
|
+
/**
|
|
613
|
+
* @public
|
|
614
|
+
* <p>Configure your Lambda functions to stream response payloads back to clients. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-response-streaming.html">Configuring a Lambda function to stream responses</a>.</p>
|
|
615
|
+
*/
|
|
616
|
+
invokeWithResponseStream(args: InvokeWithResponseStreamCommandInput, options?: __HttpHandlerOptions): Promise<InvokeWithResponseStreamCommandOutput>;
|
|
617
|
+
invokeWithResponseStream(args: InvokeWithResponseStreamCommandInput, cb: (err: any, data?: InvokeWithResponseStreamCommandOutput) => void): void;
|
|
618
|
+
invokeWithResponseStream(args: InvokeWithResponseStreamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InvokeWithResponseStreamCommandOutput) => void): void;
|
|
599
619
|
/**
|
|
600
620
|
* @public
|
|
601
621
|
* <p>Returns a list of <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html">aliases</a>
|
|
@@ -870,6 +890,12 @@ export declare class Lambda extends LambdaClient {
|
|
|
870
890
|
* Apache Kafka</a>
|
|
871
891
|
* </p>
|
|
872
892
|
* </li>
|
|
893
|
+
* <li>
|
|
894
|
+
* <p>
|
|
895
|
+
* <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-documentdb.html">
|
|
896
|
+
* Amazon DocumentDB</a>
|
|
897
|
+
* </p>
|
|
898
|
+
* </li>
|
|
873
899
|
* </ul>
|
|
874
900
|
* <p>The following error handling options are available only for stream sources (DynamoDB and Kinesis):</p>
|
|
875
901
|
* <ul>
|
|
@@ -932,6 +958,12 @@ export declare class Lambda extends LambdaClient {
|
|
|
932
958
|
* Apache Kafka</a>
|
|
933
959
|
* </p>
|
|
934
960
|
* </li>
|
|
961
|
+
* <li>
|
|
962
|
+
* <p>
|
|
963
|
+
* <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-documentdb.html#docdb-configuration">
|
|
964
|
+
* Amazon DocumentDB</a>
|
|
965
|
+
* </p>
|
|
966
|
+
* </li>
|
|
935
967
|
* </ul>
|
|
936
968
|
*/
|
|
937
969
|
updateEventSourceMapping(args: UpdateEventSourceMappingCommandInput, options?: __HttpHandlerOptions): Promise<UpdateEventSourceMappingCommandOutput>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
|
|
2
|
+
import { EventStreamSerdeInputConfig, EventStreamSerdeResolvedConfig } from "@aws-sdk/eventstream-serde-config-resolver";
|
|
2
3
|
import { EndpointInputConfig, EndpointResolvedConfig } from "@aws-sdk/middleware-endpoint";
|
|
3
4
|
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
4
5
|
import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
@@ -6,7 +7,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
6
7
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
7
8
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
8
9
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
9
|
-
import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
10
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, EventStreamSerdeProvider as __EventStreamSerdeProvider, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
10
11
|
import { AddLayerVersionPermissionCommandInput, AddLayerVersionPermissionCommandOutput } from "./commands/AddLayerVersionPermissionCommand";
|
|
11
12
|
import { AddPermissionCommandInput, AddPermissionCommandOutput } from "./commands/AddPermissionCommand";
|
|
12
13
|
import { CreateAliasCommandInput, CreateAliasCommandOutput } from "./commands/CreateAliasCommand";
|
|
@@ -42,6 +43,7 @@ import { GetProvisionedConcurrencyConfigCommandInput, GetProvisionedConcurrencyC
|
|
|
42
43
|
import { GetRuntimeManagementConfigCommandInput, GetRuntimeManagementConfigCommandOutput } from "./commands/GetRuntimeManagementConfigCommand";
|
|
43
44
|
import { InvokeAsyncCommandInput, InvokeAsyncCommandOutput } from "./commands/InvokeAsyncCommand";
|
|
44
45
|
import { InvokeCommandInput, InvokeCommandOutput } from "./commands/InvokeCommand";
|
|
46
|
+
import { InvokeWithResponseStreamCommandInput, InvokeWithResponseStreamCommandOutput } from "./commands/InvokeWithResponseStreamCommand";
|
|
45
47
|
import { ListAliasesCommandInput, ListAliasesCommandOutput } from "./commands/ListAliasesCommand";
|
|
46
48
|
import { ListCodeSigningConfigsCommandInput, ListCodeSigningConfigsCommandOutput } from "./commands/ListCodeSigningConfigsCommand";
|
|
47
49
|
import { ListEventSourceMappingsCommandInput, ListEventSourceMappingsCommandOutput } from "./commands/ListEventSourceMappingsCommand";
|
|
@@ -76,11 +78,11 @@ import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, Endpoi
|
|
|
76
78
|
/**
|
|
77
79
|
* @public
|
|
78
80
|
*/
|
|
79
|
-
export type ServiceInputTypes = AddLayerVersionPermissionCommandInput | AddPermissionCommandInput | CreateAliasCommandInput | CreateCodeSigningConfigCommandInput | CreateEventSourceMappingCommandInput | CreateFunctionCommandInput | CreateFunctionUrlConfigCommandInput | DeleteAliasCommandInput | DeleteCodeSigningConfigCommandInput | DeleteEventSourceMappingCommandInput | DeleteFunctionCodeSigningConfigCommandInput | DeleteFunctionCommandInput | DeleteFunctionConcurrencyCommandInput | DeleteFunctionEventInvokeConfigCommandInput | DeleteFunctionUrlConfigCommandInput | DeleteLayerVersionCommandInput | DeleteProvisionedConcurrencyConfigCommandInput | GetAccountSettingsCommandInput | GetAliasCommandInput | GetCodeSigningConfigCommandInput | GetEventSourceMappingCommandInput | GetFunctionCodeSigningConfigCommandInput | GetFunctionCommandInput | GetFunctionConcurrencyCommandInput | GetFunctionConfigurationCommandInput | GetFunctionEventInvokeConfigCommandInput | GetFunctionUrlConfigCommandInput | GetLayerVersionByArnCommandInput | GetLayerVersionCommandInput | GetLayerVersionPolicyCommandInput | GetPolicyCommandInput | GetProvisionedConcurrencyConfigCommandInput | GetRuntimeManagementConfigCommandInput | InvokeAsyncCommandInput | InvokeCommandInput | ListAliasesCommandInput | ListCodeSigningConfigsCommandInput | ListEventSourceMappingsCommandInput | ListFunctionEventInvokeConfigsCommandInput | ListFunctionUrlConfigsCommandInput | ListFunctionsByCodeSigningConfigCommandInput | ListFunctionsCommandInput | ListLayerVersionsCommandInput | ListLayersCommandInput | ListProvisionedConcurrencyConfigsCommandInput | ListTagsCommandInput | ListVersionsByFunctionCommandInput | PublishLayerVersionCommandInput | PublishVersionCommandInput | PutFunctionCodeSigningConfigCommandInput | PutFunctionConcurrencyCommandInput | PutFunctionEventInvokeConfigCommandInput | PutProvisionedConcurrencyConfigCommandInput | PutRuntimeManagementConfigCommandInput | RemoveLayerVersionPermissionCommandInput | RemovePermissionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAliasCommandInput | UpdateCodeSigningConfigCommandInput | UpdateEventSourceMappingCommandInput | UpdateFunctionCodeCommandInput | UpdateFunctionConfigurationCommandInput | UpdateFunctionEventInvokeConfigCommandInput | UpdateFunctionUrlConfigCommandInput;
|
|
81
|
+
export type ServiceInputTypes = AddLayerVersionPermissionCommandInput | AddPermissionCommandInput | CreateAliasCommandInput | CreateCodeSigningConfigCommandInput | CreateEventSourceMappingCommandInput | CreateFunctionCommandInput | CreateFunctionUrlConfigCommandInput | DeleteAliasCommandInput | DeleteCodeSigningConfigCommandInput | DeleteEventSourceMappingCommandInput | DeleteFunctionCodeSigningConfigCommandInput | DeleteFunctionCommandInput | DeleteFunctionConcurrencyCommandInput | DeleteFunctionEventInvokeConfigCommandInput | DeleteFunctionUrlConfigCommandInput | DeleteLayerVersionCommandInput | DeleteProvisionedConcurrencyConfigCommandInput | GetAccountSettingsCommandInput | GetAliasCommandInput | GetCodeSigningConfigCommandInput | GetEventSourceMappingCommandInput | GetFunctionCodeSigningConfigCommandInput | GetFunctionCommandInput | GetFunctionConcurrencyCommandInput | GetFunctionConfigurationCommandInput | GetFunctionEventInvokeConfigCommandInput | GetFunctionUrlConfigCommandInput | GetLayerVersionByArnCommandInput | GetLayerVersionCommandInput | GetLayerVersionPolicyCommandInput | GetPolicyCommandInput | GetProvisionedConcurrencyConfigCommandInput | GetRuntimeManagementConfigCommandInput | InvokeAsyncCommandInput | InvokeCommandInput | InvokeWithResponseStreamCommandInput | ListAliasesCommandInput | ListCodeSigningConfigsCommandInput | ListEventSourceMappingsCommandInput | ListFunctionEventInvokeConfigsCommandInput | ListFunctionUrlConfigsCommandInput | ListFunctionsByCodeSigningConfigCommandInput | ListFunctionsCommandInput | ListLayerVersionsCommandInput | ListLayersCommandInput | ListProvisionedConcurrencyConfigsCommandInput | ListTagsCommandInput | ListVersionsByFunctionCommandInput | PublishLayerVersionCommandInput | PublishVersionCommandInput | PutFunctionCodeSigningConfigCommandInput | PutFunctionConcurrencyCommandInput | PutFunctionEventInvokeConfigCommandInput | PutProvisionedConcurrencyConfigCommandInput | PutRuntimeManagementConfigCommandInput | RemoveLayerVersionPermissionCommandInput | RemovePermissionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAliasCommandInput | UpdateCodeSigningConfigCommandInput | UpdateEventSourceMappingCommandInput | UpdateFunctionCodeCommandInput | UpdateFunctionConfigurationCommandInput | UpdateFunctionEventInvokeConfigCommandInput | UpdateFunctionUrlConfigCommandInput;
|
|
80
82
|
/**
|
|
81
83
|
* @public
|
|
82
84
|
*/
|
|
83
|
-
export type ServiceOutputTypes = AddLayerVersionPermissionCommandOutput | AddPermissionCommandOutput | CreateAliasCommandOutput | CreateCodeSigningConfigCommandOutput | CreateEventSourceMappingCommandOutput | CreateFunctionCommandOutput | CreateFunctionUrlConfigCommandOutput | DeleteAliasCommandOutput | DeleteCodeSigningConfigCommandOutput | DeleteEventSourceMappingCommandOutput | DeleteFunctionCodeSigningConfigCommandOutput | DeleteFunctionCommandOutput | DeleteFunctionConcurrencyCommandOutput | DeleteFunctionEventInvokeConfigCommandOutput | DeleteFunctionUrlConfigCommandOutput | DeleteLayerVersionCommandOutput | DeleteProvisionedConcurrencyConfigCommandOutput | GetAccountSettingsCommandOutput | GetAliasCommandOutput | GetCodeSigningConfigCommandOutput | GetEventSourceMappingCommandOutput | GetFunctionCodeSigningConfigCommandOutput | GetFunctionCommandOutput | GetFunctionConcurrencyCommandOutput | GetFunctionConfigurationCommandOutput | GetFunctionEventInvokeConfigCommandOutput | GetFunctionUrlConfigCommandOutput | GetLayerVersionByArnCommandOutput | GetLayerVersionCommandOutput | GetLayerVersionPolicyCommandOutput | GetPolicyCommandOutput | GetProvisionedConcurrencyConfigCommandOutput | GetRuntimeManagementConfigCommandOutput | InvokeAsyncCommandOutput | InvokeCommandOutput | ListAliasesCommandOutput | ListCodeSigningConfigsCommandOutput | ListEventSourceMappingsCommandOutput | ListFunctionEventInvokeConfigsCommandOutput | ListFunctionUrlConfigsCommandOutput | ListFunctionsByCodeSigningConfigCommandOutput | ListFunctionsCommandOutput | ListLayerVersionsCommandOutput | ListLayersCommandOutput | ListProvisionedConcurrencyConfigsCommandOutput | ListTagsCommandOutput | ListVersionsByFunctionCommandOutput | PublishLayerVersionCommandOutput | PublishVersionCommandOutput | PutFunctionCodeSigningConfigCommandOutput | PutFunctionConcurrencyCommandOutput | PutFunctionEventInvokeConfigCommandOutput | PutProvisionedConcurrencyConfigCommandOutput | PutRuntimeManagementConfigCommandOutput | RemoveLayerVersionPermissionCommandOutput | RemovePermissionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAliasCommandOutput | UpdateCodeSigningConfigCommandOutput | UpdateEventSourceMappingCommandOutput | UpdateFunctionCodeCommandOutput | UpdateFunctionConfigurationCommandOutput | UpdateFunctionEventInvokeConfigCommandOutput | UpdateFunctionUrlConfigCommandOutput;
|
|
85
|
+
export type ServiceOutputTypes = AddLayerVersionPermissionCommandOutput | AddPermissionCommandOutput | CreateAliasCommandOutput | CreateCodeSigningConfigCommandOutput | CreateEventSourceMappingCommandOutput | CreateFunctionCommandOutput | CreateFunctionUrlConfigCommandOutput | DeleteAliasCommandOutput | DeleteCodeSigningConfigCommandOutput | DeleteEventSourceMappingCommandOutput | DeleteFunctionCodeSigningConfigCommandOutput | DeleteFunctionCommandOutput | DeleteFunctionConcurrencyCommandOutput | DeleteFunctionEventInvokeConfigCommandOutput | DeleteFunctionUrlConfigCommandOutput | DeleteLayerVersionCommandOutput | DeleteProvisionedConcurrencyConfigCommandOutput | GetAccountSettingsCommandOutput | GetAliasCommandOutput | GetCodeSigningConfigCommandOutput | GetEventSourceMappingCommandOutput | GetFunctionCodeSigningConfigCommandOutput | GetFunctionCommandOutput | GetFunctionConcurrencyCommandOutput | GetFunctionConfigurationCommandOutput | GetFunctionEventInvokeConfigCommandOutput | GetFunctionUrlConfigCommandOutput | GetLayerVersionByArnCommandOutput | GetLayerVersionCommandOutput | GetLayerVersionPolicyCommandOutput | GetPolicyCommandOutput | GetProvisionedConcurrencyConfigCommandOutput | GetRuntimeManagementConfigCommandOutput | InvokeAsyncCommandOutput | InvokeCommandOutput | InvokeWithResponseStreamCommandOutput | ListAliasesCommandOutput | ListCodeSigningConfigsCommandOutput | ListEventSourceMappingsCommandOutput | ListFunctionEventInvokeConfigsCommandOutput | ListFunctionUrlConfigsCommandOutput | ListFunctionsByCodeSigningConfigCommandOutput | ListFunctionsCommandOutput | ListLayerVersionsCommandOutput | ListLayersCommandOutput | ListProvisionedConcurrencyConfigsCommandOutput | ListTagsCommandOutput | ListVersionsByFunctionCommandOutput | PublishLayerVersionCommandOutput | PublishVersionCommandOutput | PutFunctionCodeSigningConfigCommandOutput | PutFunctionConcurrencyCommandOutput | PutFunctionEventInvokeConfigCommandOutput | PutProvisionedConcurrencyConfigCommandOutput | PutRuntimeManagementConfigCommandOutput | RemoveLayerVersionPermissionCommandOutput | RemovePermissionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAliasCommandOutput | UpdateCodeSigningConfigCommandOutput | UpdateEventSourceMappingCommandOutput | UpdateFunctionCodeCommandOutput | UpdateFunctionConfigurationCommandOutput | UpdateFunctionEventInvokeConfigCommandOutput | UpdateFunctionUrlConfigCommandOutput;
|
|
84
86
|
/**
|
|
85
87
|
* @public
|
|
86
88
|
*/
|
|
@@ -179,6 +181,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
179
181
|
* Optional logger for logging debug/info/warn/error.
|
|
180
182
|
*/
|
|
181
183
|
logger?: __Logger;
|
|
184
|
+
/**
|
|
185
|
+
* The function that provides necessary utilities for generating and parsing event stream
|
|
186
|
+
*/
|
|
187
|
+
eventStreamSerdeProvider?: __EventStreamSerdeProvider;
|
|
182
188
|
/**
|
|
183
189
|
* The {@link @aws-sdk/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
184
190
|
*/
|
|
@@ -187,7 +193,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
187
193
|
/**
|
|
188
194
|
* @public
|
|
189
195
|
*/
|
|
190
|
-
type LambdaClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
|
|
196
|
+
type LambdaClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & EventStreamSerdeInputConfig & ClientInputEndpointParameters;
|
|
191
197
|
/**
|
|
192
198
|
* @public
|
|
193
199
|
*
|
|
@@ -198,7 +204,7 @@ export interface LambdaClientConfig extends LambdaClientConfigType {
|
|
|
198
204
|
/**
|
|
199
205
|
* @public
|
|
200
206
|
*/
|
|
201
|
-
type LambdaClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
|
|
207
|
+
type LambdaClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & EventStreamSerdeResolvedConfig & ClientResolvedEndpointParameters;
|
|
202
208
|
/**
|
|
203
209
|
* @public
|
|
204
210
|
*
|
|
@@ -58,6 +58,12 @@ export interface CreateEventSourceMappingCommandOutput extends EventSourceMappin
|
|
|
58
58
|
* Apache Kafka</a>
|
|
59
59
|
* </p>
|
|
60
60
|
* </li>
|
|
61
|
+
* <li>
|
|
62
|
+
* <p>
|
|
63
|
+
* <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-documentdb.html">
|
|
64
|
+
* Amazon DocumentDB</a>
|
|
65
|
+
* </p>
|
|
66
|
+
* </li>
|
|
61
67
|
* </ul>
|
|
62
68
|
* <p>The following error handling options are available only for stream sources (DynamoDB and Kinesis):</p>
|
|
63
69
|
* <ul>
|
|
@@ -120,6 +126,12 @@ export interface CreateEventSourceMappingCommandOutput extends EventSourceMappin
|
|
|
120
126
|
* Apache Kafka</a>
|
|
121
127
|
* </p>
|
|
122
128
|
* </li>
|
|
129
|
+
* <li>
|
|
130
|
+
* <p>
|
|
131
|
+
* <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-documentdb.html#docdb-configuration">
|
|
132
|
+
* Amazon DocumentDB</a>
|
|
133
|
+
* </p>
|
|
134
|
+
* </li>
|
|
123
135
|
* </ul>
|
|
124
136
|
* @example
|
|
125
137
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -47,6 +47,7 @@ export interface CreateFunctionUrlConfigCommandOutput extends CreateFunctionUrlC
|
|
|
47
47
|
* ],
|
|
48
48
|
* MaxAge: Number("int"),
|
|
49
49
|
* },
|
|
50
|
+
* InvokeMode: "BUFFERED" || "RESPONSE_STREAM",
|
|
50
51
|
* };
|
|
51
52
|
* const command = new CreateFunctionUrlConfigCommand(input);
|
|
52
53
|
* const response = await client.send(command);
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LambdaClient";
|
|
5
|
+
import { InvokeWithResponseStreamRequest, InvokeWithResponseStreamResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*
|
|
9
|
+
* The input for {@link InvokeWithResponseStreamCommand}.
|
|
10
|
+
*/
|
|
11
|
+
export interface InvokeWithResponseStreamCommandInput extends InvokeWithResponseStreamRequest {
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
*
|
|
16
|
+
* The output of {@link InvokeWithResponseStreamCommand}.
|
|
17
|
+
*/
|
|
18
|
+
export interface InvokeWithResponseStreamCommandOutput extends InvokeWithResponseStreamResponse, __MetadataBearer {
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @public
|
|
22
|
+
* <p>Configure your Lambda functions to stream response payloads back to clients. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-response-streaming.html">Configuring a Lambda function to stream responses</a>.</p>
|
|
23
|
+
* @example
|
|
24
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
25
|
+
* ```javascript
|
|
26
|
+
* import { LambdaClient, InvokeWithResponseStreamCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
27
|
+
* // const { LambdaClient, InvokeWithResponseStreamCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
|
|
28
|
+
* const client = new LambdaClient(config);
|
|
29
|
+
* const input = { // InvokeWithResponseStreamRequest
|
|
30
|
+
* FunctionName: "STRING_VALUE", // required
|
|
31
|
+
* InvocationType: "RequestResponse" || "DryRun",
|
|
32
|
+
* LogType: "None" || "Tail",
|
|
33
|
+
* ClientContext: "STRING_VALUE",
|
|
34
|
+
* Qualifier: "STRING_VALUE",
|
|
35
|
+
* Payload: "BLOB_VALUE",
|
|
36
|
+
* };
|
|
37
|
+
* const command = new InvokeWithResponseStreamCommand(input);
|
|
38
|
+
* const response = await client.send(command);
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* @param InvokeWithResponseStreamCommandInput - {@link InvokeWithResponseStreamCommandInput}
|
|
42
|
+
* @returns {@link InvokeWithResponseStreamCommandOutput}
|
|
43
|
+
* @see {@link InvokeWithResponseStreamCommandInput} for command's `input` shape.
|
|
44
|
+
* @see {@link InvokeWithResponseStreamCommandOutput} for command's `response` shape.
|
|
45
|
+
* @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape.
|
|
46
|
+
*
|
|
47
|
+
* @throws {@link EC2AccessDeniedException} (server fault)
|
|
48
|
+
* <p>Need additional permissions to configure VPC settings.</p>
|
|
49
|
+
*
|
|
50
|
+
* @throws {@link EC2ThrottledException} (server fault)
|
|
51
|
+
* <p>Amazon EC2 throttled Lambda during Lambda function initialization using
|
|
52
|
+
* the execution role provided for the function.</p>
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link EC2UnexpectedException} (server fault)
|
|
55
|
+
* <p>Lambda received an unexpected Amazon EC2 client exception while setting up for the
|
|
56
|
+
* Lambda function.</p>
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link EFSIOException} (client fault)
|
|
59
|
+
* <p>An error occurred when reading from or writing to a connected file system.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link EFSMountConnectivityException} (client fault)
|
|
62
|
+
* <p>The Lambda function couldn't make a network connection to the configured file system.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link EFSMountFailureException} (client fault)
|
|
65
|
+
* <p>The Lambda function couldn't mount the configured file system due to a permission or configuration
|
|
66
|
+
* issue.</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link EFSMountTimeoutException} (client fault)
|
|
69
|
+
* <p>The Lambda function made a network connection to the configured file system, but the mount
|
|
70
|
+
* operation timed out.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link ENILimitReachedException} (server fault)
|
|
73
|
+
* <p>Lambda couldn't create an elastic network interface in the VPC, specified as part of Lambda function configuration, because the limit for network interfaces has been reached. For more
|
|
74
|
+
* information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html">Lambda
|
|
75
|
+
* quotas</a>.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link InvalidParameterValueException} (client fault)
|
|
78
|
+
* <p>One of the parameters in the request is not valid.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link InvalidRequestContentException} (client fault)
|
|
81
|
+
* <p>The request body could not be parsed as JSON.</p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link InvalidRuntimeException} (server fault)
|
|
84
|
+
* <p>The runtime or runtime version specified is not supported.</p>
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link InvalidSecurityGroupIDException} (server fault)
|
|
87
|
+
* <p>The security group ID provided in the Lambda function VPC configuration is not valid.</p>
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link InvalidSubnetIDException} (server fault)
|
|
90
|
+
* <p>The subnet ID provided in the Lambda function VPC configuration is not valid.</p>
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link InvalidZipFileException} (server fault)
|
|
93
|
+
* <p>Lambda could not unzip the deployment package.</p>
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link KMSAccessDeniedException} (server fault)
|
|
96
|
+
* <p>Lambda couldn't decrypt the environment variables because KMS access was denied.
|
|
97
|
+
* Check the Lambda function's KMS permissions.</p>
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link KMSDisabledException} (server fault)
|
|
100
|
+
* <p>Lambda couldn't decrypt the environment variables because the KMS key used is
|
|
101
|
+
* disabled. Check the Lambda function's KMS key settings.</p>
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link KMSInvalidStateException} (server fault)
|
|
104
|
+
* <p>Lambda couldn't decrypt the environment variables because the state of the KMS key used is not valid for Decrypt. Check the function's KMS key settings.</p>
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link KMSNotFoundException} (server fault)
|
|
107
|
+
* <p>Lambda couldn't decrypt the environment variables because the KMS key was not
|
|
108
|
+
* found. Check the function's KMS key settings.</p>
|
|
109
|
+
*
|
|
110
|
+
* @throws {@link RequestTooLargeException} (client fault)
|
|
111
|
+
* <p>The request payload exceeded the <code>Invoke</code> request body JSON input quota. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html">Lambda
|
|
112
|
+
* quotas</a>.</p>
|
|
113
|
+
*
|
|
114
|
+
* @throws {@link ResourceConflictException} (client fault)
|
|
115
|
+
* <p>The resource already exists, or another operation is in progress.</p>
|
|
116
|
+
*
|
|
117
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
118
|
+
* <p>The resource specified in the request does not exist.</p>
|
|
119
|
+
*
|
|
120
|
+
* @throws {@link ResourceNotReadyException} (server fault)
|
|
121
|
+
* <p>The function is inactive and its VPC connection is no longer available. Wait for the VPC connection to
|
|
122
|
+
* reestablish and try again.</p>
|
|
123
|
+
*
|
|
124
|
+
* @throws {@link ServiceException} (server fault)
|
|
125
|
+
* <p>The Lambda service encountered an internal error.</p>
|
|
126
|
+
*
|
|
127
|
+
* @throws {@link SubnetIPAddressLimitReachedException} (server fault)
|
|
128
|
+
* <p>Lambda couldn't set up VPC access for the Lambda function because one or more
|
|
129
|
+
* configured subnets has no available IP addresses.</p>
|
|
130
|
+
*
|
|
131
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
132
|
+
* <p>The request throughput limit was exceeded. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests">Lambda quotas</a>.</p>
|
|
133
|
+
*
|
|
134
|
+
* @throws {@link UnsupportedMediaTypeException} (client fault)
|
|
135
|
+
* <p>The content type of the <code>Invoke</code> request body is not JSON.</p>
|
|
136
|
+
*
|
|
137
|
+
*
|
|
138
|
+
*/
|
|
139
|
+
export declare class InvokeWithResponseStreamCommand extends $Command<InvokeWithResponseStreamCommandInput, InvokeWithResponseStreamCommandOutput, LambdaClientResolvedConfig> {
|
|
140
|
+
readonly input: InvokeWithResponseStreamCommandInput;
|
|
141
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
142
|
+
/**
|
|
143
|
+
* @public
|
|
144
|
+
*/
|
|
145
|
+
constructor(input: InvokeWithResponseStreamCommandInput);
|
|
146
|
+
/**
|
|
147
|
+
* @internal
|
|
148
|
+
*/
|
|
149
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<InvokeWithResponseStreamCommandInput, InvokeWithResponseStreamCommandOutput>;
|
|
150
|
+
/**
|
|
151
|
+
* @internal
|
|
152
|
+
*/
|
|
153
|
+
private serialize;
|
|
154
|
+
/**
|
|
155
|
+
* @internal
|
|
156
|
+
*/
|
|
157
|
+
private deserialize;
|
|
158
|
+
}
|
|
@@ -59,6 +59,12 @@ export interface UpdateEventSourceMappingCommandOutput extends EventSourceMappin
|
|
|
59
59
|
* Apache Kafka</a>
|
|
60
60
|
* </p>
|
|
61
61
|
* </li>
|
|
62
|
+
* <li>
|
|
63
|
+
* <p>
|
|
64
|
+
* <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-documentdb.html">
|
|
65
|
+
* Amazon DocumentDB</a>
|
|
66
|
+
* </p>
|
|
67
|
+
* </li>
|
|
62
68
|
* </ul>
|
|
63
69
|
* <p>The following error handling options are available only for stream sources (DynamoDB and Kinesis):</p>
|
|
64
70
|
* <ul>
|
|
@@ -121,6 +127,12 @@ export interface UpdateEventSourceMappingCommandOutput extends EventSourceMappin
|
|
|
121
127
|
* Apache Kafka</a>
|
|
122
128
|
* </p>
|
|
123
129
|
* </li>
|
|
130
|
+
* <li>
|
|
131
|
+
* <p>
|
|
132
|
+
* <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-documentdb.html#docdb-configuration">
|
|
133
|
+
* Amazon DocumentDB</a>
|
|
134
|
+
* </p>
|
|
135
|
+
* </li>
|
|
124
136
|
* </ul>
|
|
125
137
|
* @example
|
|
126
138
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -46,6 +46,7 @@ export interface UpdateFunctionUrlConfigCommandOutput extends UpdateFunctionUrlC
|
|
|
46
46
|
* ],
|
|
47
47
|
* MaxAge: Number("int"),
|
|
48
48
|
* },
|
|
49
|
+
* InvokeMode: "BUFFERED" || "RESPONSE_STREAM",
|
|
49
50
|
* };
|
|
50
51
|
* const command = new UpdateFunctionUrlConfigCommand(input);
|
|
51
52
|
* const response = await client.send(command);
|
|
@@ -33,6 +33,7 @@ export * from "./GetProvisionedConcurrencyConfigCommand";
|
|
|
33
33
|
export * from "./GetRuntimeManagementConfigCommand";
|
|
34
34
|
export * from "./InvokeAsyncCommand";
|
|
35
35
|
export * from "./InvokeCommand";
|
|
36
|
+
export * from "./InvokeWithResponseStreamCommand";
|
|
36
37
|
export * from "./ListAliasesCommand";
|
|
37
38
|
export * from "./ListCodeSigningConfigsCommand";
|
|
38
39
|
export * from "./ListEventSourceMappingsCommand";
|