@aws-sdk/client-lambda 3.918.0 → 3.919.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 +32 -0
- package/dist-es/models/models_0.js +14 -0
- package/dist-es/protocols/Aws_restJson1.js +18 -1
- package/dist-types/commands/DeleteFunctionCommand.d.ts +1 -1
- package/dist-types/commands/InvokeAsyncCommand.d.ts +1 -1
- package/dist-types/commands/InvokeCommand.d.ts +4 -1
- package/dist-types/commands/InvokeWithResponseStreamCommand.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +21 -4
- package/dist-types/ts3.4/models/models_0.d.ts +11 -0
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -840,6 +840,20 @@ class ResourceNotReadyException extends LambdaServiceException {
|
|
|
840
840
|
this.Type = opts.Type;
|
|
841
841
|
}
|
|
842
842
|
}
|
|
843
|
+
class SerializedRequestEntityTooLargeException extends LambdaServiceException {
|
|
844
|
+
name = "SerializedRequestEntityTooLargeException";
|
|
845
|
+
$fault = "client";
|
|
846
|
+
Type;
|
|
847
|
+
constructor(opts) {
|
|
848
|
+
super({
|
|
849
|
+
name: "SerializedRequestEntityTooLargeException",
|
|
850
|
+
$fault: "client",
|
|
851
|
+
...opts,
|
|
852
|
+
});
|
|
853
|
+
Object.setPrototypeOf(this, SerializedRequestEntityTooLargeException.prototype);
|
|
854
|
+
this.Type = opts.Type;
|
|
855
|
+
}
|
|
856
|
+
}
|
|
843
857
|
class SnapStartException extends LambdaServiceException {
|
|
844
858
|
name = "SnapStartException";
|
|
845
859
|
$fault = "client";
|
|
@@ -3486,6 +3500,9 @@ const de_CommandError = async (output, context) => {
|
|
|
3486
3500
|
case "ResourceNotReadyException":
|
|
3487
3501
|
case "com.amazonaws.lambda#ResourceNotReadyException":
|
|
3488
3502
|
throw await de_ResourceNotReadyExceptionRes(parsedOutput);
|
|
3503
|
+
case "SerializedRequestEntityTooLargeException":
|
|
3504
|
+
case "com.amazonaws.lambda#SerializedRequestEntityTooLargeException":
|
|
3505
|
+
throw await de_SerializedRequestEntityTooLargeExceptionRes(parsedOutput);
|
|
3489
3506
|
case "SnapStartException":
|
|
3490
3507
|
case "com.amazonaws.lambda#SnapStartException":
|
|
3491
3508
|
throw await de_SnapStartExceptionRes(parsedOutput);
|
|
@@ -3946,6 +3963,20 @@ const de_ResourceNotReadyExceptionRes = async (parsedOutput, context) => {
|
|
|
3946
3963
|
});
|
|
3947
3964
|
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
3948
3965
|
};
|
|
3966
|
+
const de_SerializedRequestEntityTooLargeExceptionRes = async (parsedOutput, context) => {
|
|
3967
|
+
const contents = smithyClient.map({});
|
|
3968
|
+
const data = parsedOutput.body;
|
|
3969
|
+
const doc = smithyClient.take(data, {
|
|
3970
|
+
Type: smithyClient.expectString,
|
|
3971
|
+
message: smithyClient.expectString,
|
|
3972
|
+
});
|
|
3973
|
+
Object.assign(contents, doc);
|
|
3974
|
+
const exception = new SerializedRequestEntityTooLargeException({
|
|
3975
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3976
|
+
...contents,
|
|
3977
|
+
});
|
|
3978
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
3979
|
+
};
|
|
3949
3980
|
const de_ServiceExceptionRes = async (parsedOutput, context) => {
|
|
3950
3981
|
const contents = smithyClient.map({});
|
|
3951
3982
|
const data = parsedOutput.body;
|
|
@@ -5904,6 +5935,7 @@ exports.Runtime = Runtime;
|
|
|
5904
5935
|
exports.RuntimeVersionConfigFilterSensitiveLog = RuntimeVersionConfigFilterSensitiveLog;
|
|
5905
5936
|
exports.RuntimeVersionErrorFilterSensitiveLog = RuntimeVersionErrorFilterSensitiveLog;
|
|
5906
5937
|
exports.SchemaRegistryEventRecordFormat = SchemaRegistryEventRecordFormat;
|
|
5938
|
+
exports.SerializedRequestEntityTooLargeException = SerializedRequestEntityTooLargeException;
|
|
5907
5939
|
exports.ServiceException = ServiceException;
|
|
5908
5940
|
exports.SnapStartApplyOn = SnapStartApplyOn;
|
|
5909
5941
|
exports.SnapStartException = SnapStartException;
|
|
@@ -720,6 +720,20 @@ export class ResourceNotReadyException extends __BaseException {
|
|
|
720
720
|
this.Type = opts.Type;
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
|
+
export class SerializedRequestEntityTooLargeException extends __BaseException {
|
|
724
|
+
name = "SerializedRequestEntityTooLargeException";
|
|
725
|
+
$fault = "client";
|
|
726
|
+
Type;
|
|
727
|
+
constructor(opts) {
|
|
728
|
+
super({
|
|
729
|
+
name: "SerializedRequestEntityTooLargeException",
|
|
730
|
+
$fault: "client",
|
|
731
|
+
...opts,
|
|
732
|
+
});
|
|
733
|
+
Object.setPrototypeOf(this, SerializedRequestEntityTooLargeException.prototype);
|
|
734
|
+
this.Type = opts.Type;
|
|
735
|
+
}
|
|
736
|
+
}
|
|
723
737
|
export class SnapStartException extends __BaseException {
|
|
724
738
|
name = "SnapStartException";
|
|
725
739
|
$fault = "client";
|
|
@@ -2,7 +2,7 @@ import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody a
|
|
|
2
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { LambdaServiceException as __BaseException } from "../models/LambdaServiceException";
|
|
5
|
-
import { CodeSigningConfigNotFoundException, CodeStorageExceededException, CodeVerificationFailedException, EC2AccessDeniedException, EC2ThrottledException, EC2UnexpectedException, EFSIOException, EFSMountConnectivityException, EFSMountFailureException, EFSMountTimeoutException, ENILimitReachedException, InvalidCodeSignatureException, InvalidParameterValueException, InvalidRequestContentException, InvalidRuntimeException, InvalidSecurityGroupIDException, InvalidSubnetIDException, InvalidZipFileException, KMSAccessDeniedException, KMSDisabledException, KMSInvalidStateException, KMSNotFoundException, PolicyLengthExceededException, PreconditionFailedException, ProvisionedConcurrencyConfigNotFoundException, RecursiveInvocationException, RequestTooLargeException, ResourceConflictException, ResourceInUseException, ResourceNotFoundException, ResourceNotReadyException, ServiceException, SnapStartException, SnapStartNotReadyException, SnapStartTimeoutException, SubnetIPAddressLimitReachedException, TooManyRequestsException, UnsupportedMediaTypeException, } from "../models/models_0";
|
|
5
|
+
import { CodeSigningConfigNotFoundException, CodeStorageExceededException, CodeVerificationFailedException, EC2AccessDeniedException, EC2ThrottledException, EC2UnexpectedException, EFSIOException, EFSMountConnectivityException, EFSMountFailureException, EFSMountTimeoutException, ENILimitReachedException, InvalidCodeSignatureException, InvalidParameterValueException, InvalidRequestContentException, InvalidRuntimeException, InvalidSecurityGroupIDException, InvalidSubnetIDException, InvalidZipFileException, KMSAccessDeniedException, KMSDisabledException, KMSInvalidStateException, KMSNotFoundException, PolicyLengthExceededException, PreconditionFailedException, ProvisionedConcurrencyConfigNotFoundException, RecursiveInvocationException, RequestTooLargeException, ResourceConflictException, ResourceInUseException, ResourceNotFoundException, ResourceNotReadyException, SerializedRequestEntityTooLargeException, ServiceException, SnapStartException, SnapStartNotReadyException, SnapStartTimeoutException, SubnetIPAddressLimitReachedException, TooManyRequestsException, UnsupportedMediaTypeException, } from "../models/models_0";
|
|
6
6
|
export const se_AddLayerVersionPermissionCommand = async (input, context) => {
|
|
7
7
|
const b = rb(input, context);
|
|
8
8
|
const headers = {
|
|
@@ -2427,6 +2427,9 @@ const de_CommandError = async (output, context) => {
|
|
|
2427
2427
|
case "ResourceNotReadyException":
|
|
2428
2428
|
case "com.amazonaws.lambda#ResourceNotReadyException":
|
|
2429
2429
|
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
2430
|
+
case "SerializedRequestEntityTooLargeException":
|
|
2431
|
+
case "com.amazonaws.lambda#SerializedRequestEntityTooLargeException":
|
|
2432
|
+
throw await de_SerializedRequestEntityTooLargeExceptionRes(parsedOutput, context);
|
|
2430
2433
|
case "SnapStartException":
|
|
2431
2434
|
case "com.amazonaws.lambda#SnapStartException":
|
|
2432
2435
|
throw await de_SnapStartExceptionRes(parsedOutput, context);
|
|
@@ -2887,6 +2890,20 @@ const de_ResourceNotReadyExceptionRes = async (parsedOutput, context) => {
|
|
|
2887
2890
|
});
|
|
2888
2891
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2889
2892
|
};
|
|
2893
|
+
const de_SerializedRequestEntityTooLargeExceptionRes = async (parsedOutput, context) => {
|
|
2894
|
+
const contents = map({});
|
|
2895
|
+
const data = parsedOutput.body;
|
|
2896
|
+
const doc = take(data, {
|
|
2897
|
+
Type: __expectString,
|
|
2898
|
+
message: __expectString,
|
|
2899
|
+
});
|
|
2900
|
+
Object.assign(contents, doc);
|
|
2901
|
+
const exception = new SerializedRequestEntityTooLargeException({
|
|
2902
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2903
|
+
...contents,
|
|
2904
|
+
});
|
|
2905
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
2906
|
+
};
|
|
2890
2907
|
const de_ServiceExceptionRes = async (parsedOutput, context) => {
|
|
2891
2908
|
const contents = map({});
|
|
2892
2909
|
const data = parsedOutput.body;
|
|
@@ -27,7 +27,7 @@ declare const DeleteFunctionCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Deletes a Lambda function. To delete a specific function version, use the <code>Qualifier</code> parameter. Otherwise, all versions and aliases are deleted. This doesn't require the user to have explicit permissions for <a>DeleteAlias</a>.</p> <p>To delete Lambda event source mappings that invoke a function, use <a>DeleteEventSourceMapping</a>. For Amazon Web Services services and resources that invoke your function directly, delete the trigger in the service where you originally configured it.</p>
|
|
30
|
+
* <p>Deletes a Lambda function. To delete a specific function version, use the <code>Qualifier</code> parameter. Otherwise, all versions and aliases are deleted. This doesn't require the user to have explicit permissions for <a>DeleteAlias</a>.</p> <note> <p>A deleted Lambda function cannot be recovered. Ensure that you specify the correct function name and version before deleting.</p> </note> <p>To delete Lambda event source mappings that invoke a function, use <a>DeleteEventSourceMapping</a>. For Amazon Web Services services and resources that invoke your function directly, delete the trigger in the service where you originally configured it.</p>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -28,7 +28,7 @@ declare const InvokeAsyncCommand_base: {
|
|
|
28
28
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
29
29
|
};
|
|
30
30
|
/**
|
|
31
|
-
* <
|
|
31
|
+
* <note> <p>For asynchronous function invocation, use <a>Invoke</a>.</p> </note> <p>Invokes a function asynchronously.</p> <note> <p>The payload limit is 256KB. For larger payloads, for up to 1MB, use <a>Invoke</a>.</p> </note> <note> <p>If you do use the InvokeAsync action, note that it doesn't support the use of X-Ray active tracing. Trace ID is not propagated to the function, even if X-Ray active tracing is turned on.</p> </note>
|
|
32
32
|
*
|
|
33
33
|
* @deprecated deprecated
|
|
34
34
|
* @example
|
|
@@ -40,7 +40,7 @@ declare const InvokeCommand_base: {
|
|
|
40
40
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
41
41
|
};
|
|
42
42
|
/**
|
|
43
|
-
* <p>Invokes a Lambda function. You can invoke a function synchronously (and wait for the response), or asynchronously. By default, Lambda invokes your function synchronously (i.e. the<code>InvocationType</code> is <code>RequestResponse</code>). To invoke a function asynchronously, set <code>InvocationType</code> to <code>Event</code>. Lambda passes the <code>ClientContext</code> object to your function for synchronous invocations only.</p> <p>For <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-sync.html">synchronous invocation</a>, details about the function response, including errors, are included in the response body and headers. For either invocation type, you can find more information in the <a href="https://docs.aws.amazon.com/lambda/latest/dg/monitoring-functions.html">execution log</a> and <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-x-ray.html">trace</a>.</p> <p>When an error occurs, your function may be invoked multiple times. Retry behavior varies by error type, client, event source, and invocation type. For example, if you invoke a function asynchronously and it returns an error, Lambda executes the function up to two more times. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-retries.html">Error handling and automatic retries in Lambda</a>.</p> <p>For <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html">asynchronous invocation</a>, Lambda adds events to a queue before sending them to your function. If your function does not have enough capacity to keep up with the queue, events may be lost. Occasionally, your function may receive the same event multiple times, even if no error occurs. To retain events that were not processed, configure your function with a <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq">dead-letter queue</a>.</p> <p>The status code in the API response doesn't reflect function errors. Error codes are reserved for errors that prevent your function from executing, such as permissions errors, <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html">quota</a> errors, or issues with your function's code and configuration. For example, Lambda returns <code>TooManyRequestsException</code> if running the function would cause you to exceed a concurrency limit at either the account level (<code>ConcurrentInvocationLimitExceeded</code>) or function level (<code>ReservedFunctionConcurrentInvocationLimitExceeded</code>).</p> <p>For functions with a long timeout, your client might disconnect during synchronous invocation while it waits for a response. Configure your HTTP client, SDK, firewall, proxy, or operating system to allow for long connections with timeout or keep-alive settings.</p> <p>This operation requires permission for the <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/list_awslambda.html">lambda:InvokeFunction</a> action. For details on how to set up permissions for cross-account invocations, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html#permissions-resource-xaccountinvoke">Granting function access to other accounts</a>.</p>
|
|
43
|
+
* <p>Invokes a Lambda function. You can invoke a function synchronously (and wait for the response), or asynchronously. By default, Lambda invokes your function synchronously (i.e. the<code>InvocationType</code> is <code>RequestResponse</code>). To invoke a function asynchronously, set <code>InvocationType</code> to <code>Event</code>. Lambda passes the <code>ClientContext</code> object to your function for synchronous invocations only.</p> <p>For synchronous invocations, the maximum payload size is 6 MB. For asynchronous invocations, the maximum payload size is 1 MB.</p> <p>For <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-sync.html">synchronous invocation</a>, details about the function response, including errors, are included in the response body and headers. For either invocation type, you can find more information in the <a href="https://docs.aws.amazon.com/lambda/latest/dg/monitoring-functions.html">execution log</a> and <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-x-ray.html">trace</a>.</p> <p>When an error occurs, your function may be invoked multiple times. Retry behavior varies by error type, client, event source, and invocation type. For example, if you invoke a function asynchronously and it returns an error, Lambda executes the function up to two more times. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-retries.html">Error handling and automatic retries in Lambda</a>.</p> <p>For <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html">asynchronous invocation</a>, Lambda adds events to a queue before sending them to your function. If your function does not have enough capacity to keep up with the queue, events may be lost. Occasionally, your function may receive the same event multiple times, even if no error occurs. To retain events that were not processed, configure your function with a <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq">dead-letter queue</a>.</p> <p>The status code in the API response doesn't reflect function errors. Error codes are reserved for errors that prevent your function from executing, such as permissions errors, <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html">quota</a> errors, or issues with your function's code and configuration. For example, Lambda returns <code>TooManyRequestsException</code> if running the function would cause you to exceed a concurrency limit at either the account level (<code>ConcurrentInvocationLimitExceeded</code>) or function level (<code>ReservedFunctionConcurrentInvocationLimitExceeded</code>).</p> <p>For functions with a long timeout, your client might disconnect during synchronous invocation while it waits for a response. Configure your HTTP client, SDK, firewall, proxy, or operating system to allow for long connections with timeout or keep-alive settings.</p> <p>This operation requires permission for the <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/list_awslambda.html">lambda:InvokeFunction</a> action. For details on how to set up permissions for cross-account invocations, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html#permissions-resource-xaccountinvoke">Granting function access to other accounts</a>.</p>
|
|
44
44
|
* @example
|
|
45
45
|
* Use a bare-bones client and the command you need to make an API call.
|
|
46
46
|
* ```javascript
|
|
@@ -144,6 +144,9 @@ declare const InvokeCommand_base: {
|
|
|
144
144
|
* @throws {@link ResourceNotReadyException} (server fault)
|
|
145
145
|
* <p>The function is inactive and its VPC connection is no longer available. Wait for the VPC connection to reestablish and try again.</p>
|
|
146
146
|
*
|
|
147
|
+
* @throws {@link SerializedRequestEntityTooLargeException} (client fault)
|
|
148
|
+
* <p>The processed request payload exceeded the <code>Invoke</code> request body size limit for asynchronous invocations. While the event payload may be under 1 MB, the size after internal serialization exceeds the maximum allowed size for asynchronous invocations.</p>
|
|
149
|
+
*
|
|
147
150
|
* @throws {@link ServiceException} (server fault)
|
|
148
151
|
* <p>The Lambda service encountered an internal error.</p>
|
|
149
152
|
*
|
|
@@ -145,6 +145,9 @@ declare const InvokeWithResponseStreamCommand_base: {
|
|
|
145
145
|
* @throws {@link ResourceNotReadyException} (server fault)
|
|
146
146
|
* <p>The function is inactive and its VPC connection is no longer available. Wait for the VPC connection to reestablish and try again.</p>
|
|
147
147
|
*
|
|
148
|
+
* @throws {@link SerializedRequestEntityTooLargeException} (client fault)
|
|
149
|
+
* <p>The processed request payload exceeded the <code>Invoke</code> request body size limit for asynchronous invocations. While the event payload may be under 1 MB, the size after internal serialization exceeds the maximum allowed size for asynchronous invocations.</p>
|
|
150
|
+
*
|
|
148
151
|
* @throws {@link ServiceException} (server fault)
|
|
149
152
|
* <p>The Lambda service encountered an internal error.</p>
|
|
150
153
|
*
|
|
@@ -302,7 +302,7 @@ export interface AddPermissionRequest {
|
|
|
302
302
|
*/
|
|
303
303
|
FunctionUrlAuthType?: FunctionUrlAuthType | undefined;
|
|
304
304
|
/**
|
|
305
|
-
* <p>Restricts the <code>lambda:InvokeFunction</code> action to
|
|
305
|
+
* <p>Restricts the <code>lambda:InvokeFunction</code> action to function URL calls. When set to <code>true</code>, this prevents the principal from invoking the function by any means other than the function URL. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html">Control access to Lambda function URLs</a>.</p>
|
|
306
306
|
* @public
|
|
307
307
|
*/
|
|
308
308
|
InvokedViaFunctionUrl?: boolean | undefined;
|
|
@@ -744,7 +744,7 @@ export interface UpdateCodeSigningConfigResponse {
|
|
|
744
744
|
*/
|
|
745
745
|
export interface OnFailure {
|
|
746
746
|
/**
|
|
747
|
-
* <p>The Amazon Resource Name (ARN) of the destination resource.</p> <p>To retain records of unsuccessful <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations">asynchronous invocations</a>, you can configure an Amazon SNS topic, Amazon SQS queue, Amazon S3 bucket, Lambda function, or Amazon EventBridge event bus as the destination.</p> <p>To retain records of failed invocations from <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html">Kinesis</a>, <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html">DynamoDB</a>, <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-smaa-onfailure-destination">self-managed Kafka</a> or <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-onfailure-destination">Amazon MSK</a>, you can configure an Amazon SNS topic, Amazon SQS queue, or Amazon S3 bucket as the destination.</p>
|
|
747
|
+
* <p>The Amazon Resource Name (ARN) of the destination resource.</p> <p>To retain records of unsuccessful <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations">asynchronous invocations</a>, you can configure an Amazon SNS topic, Amazon SQS queue, Amazon S3 bucket, Lambda function, or Amazon EventBridge event bus as the destination.</p> <note> <p>Amazon SNS destinations have a message size limit of 256 KB. If the combined size of the function request and response payload exceeds the limit, Lambda will drop the payload when sending <code>OnFailure</code> event to the destination. For details on this behavior, refer to <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-retain-records.html">Retaining records of asynchronous invocations</a>.</p> </note> <p>To retain records of failed invocations from <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html">Kinesis</a>, <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html">DynamoDB</a>, <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-smaa-onfailure-destination">self-managed Kafka</a> or <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-onfailure-destination">Amazon MSK</a>, you can configure an Amazon SNS topic, Amazon SQS queue, or Amazon S3 bucket as the destination.</p>
|
|
748
748
|
* @public
|
|
749
749
|
*/
|
|
750
750
|
Destination?: string | undefined;
|
|
@@ -755,7 +755,7 @@ export interface OnFailure {
|
|
|
755
755
|
*/
|
|
756
756
|
export interface OnSuccess {
|
|
757
757
|
/**
|
|
758
|
-
* <p>The Amazon Resource Name (ARN) of the destination resource.</p>
|
|
758
|
+
* <p>The Amazon Resource Name (ARN) of the destination resource.</p> <note> <p>Amazon SNS destinations have a message size limit of 256 KB. If the combined size of the function request and response payload exceeds the limit, Lambda will drop the payload when sending <code>OnFailure</code> event to the destination. For details on this behavior, refer to <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-retain-records.html">Retaining records of asynchronous invocations</a>.</p> </note>
|
|
759
759
|
* @public
|
|
760
760
|
*/
|
|
761
761
|
Destination?: string | undefined;
|
|
@@ -3205,7 +3205,7 @@ export interface InvocationRequest {
|
|
|
3205
3205
|
*/
|
|
3206
3206
|
ClientContext?: string | undefined;
|
|
3207
3207
|
/**
|
|
3208
|
-
* <p>The JSON that you want to provide to your Lambda function as input.</p> <p>You can enter the JSON directly. For example, <code>--payload '\{ "key": "value" \}'</code>. You can also specify a file path. For example, <code>--payload file://payload.json</code>.</p>
|
|
3208
|
+
* <p>The JSON that you want to provide to your Lambda function as input. The maximum payload size is 6 MB for synchronous invocations and 1 MB for asynchronous invocations.</p> <p>You can enter the JSON directly. For example, <code>--payload '\{ "key": "value" \}'</code>. You can also specify a file path. For example, <code>--payload file://payload.json</code>.</p>
|
|
3209
3209
|
* @public
|
|
3210
3210
|
*/
|
|
3211
3211
|
Payload?: Uint8Array | undefined;
|
|
@@ -3353,6 +3353,23 @@ export declare class ResourceNotReadyException extends __BaseException {
|
|
|
3353
3353
|
*/
|
|
3354
3354
|
constructor(opts: __ExceptionOptionType<ResourceNotReadyException, __BaseException>);
|
|
3355
3355
|
}
|
|
3356
|
+
/**
|
|
3357
|
+
* <p>The processed request payload exceeded the <code>Invoke</code> request body size limit for asynchronous invocations. While the event payload may be under 1 MB, the size after internal serialization exceeds the maximum allowed size for asynchronous invocations.</p>
|
|
3358
|
+
* @public
|
|
3359
|
+
*/
|
|
3360
|
+
export declare class SerializedRequestEntityTooLargeException extends __BaseException {
|
|
3361
|
+
readonly name: "SerializedRequestEntityTooLargeException";
|
|
3362
|
+
readonly $fault: "client";
|
|
3363
|
+
/**
|
|
3364
|
+
* <p>The error type.</p>
|
|
3365
|
+
* @public
|
|
3366
|
+
*/
|
|
3367
|
+
Type?: string | undefined;
|
|
3368
|
+
/**
|
|
3369
|
+
* @internal
|
|
3370
|
+
*/
|
|
3371
|
+
constructor(opts: __ExceptionOptionType<SerializedRequestEntityTooLargeException, __BaseException>);
|
|
3372
|
+
}
|
|
3356
3373
|
/**
|
|
3357
3374
|
* <p>The <code>afterRestore()</code> <a href="https://docs.aws.amazon.com/lambda/latest/dg/snapstart-runtime-hooks.html">runtime hook</a> encountered an error. For more information, check the Amazon CloudWatch logs.</p>
|
|
3358
3375
|
* @public
|
|
@@ -1140,6 +1140,17 @@ export declare class ResourceNotReadyException extends __BaseException {
|
|
|
1140
1140
|
opts: __ExceptionOptionType<ResourceNotReadyException, __BaseException>
|
|
1141
1141
|
);
|
|
1142
1142
|
}
|
|
1143
|
+
export declare class SerializedRequestEntityTooLargeException extends __BaseException {
|
|
1144
|
+
readonly name: "SerializedRequestEntityTooLargeException";
|
|
1145
|
+
readonly $fault: "client";
|
|
1146
|
+
Type?: string | undefined;
|
|
1147
|
+
constructor(
|
|
1148
|
+
opts: __ExceptionOptionType<
|
|
1149
|
+
SerializedRequestEntityTooLargeException,
|
|
1150
|
+
__BaseException
|
|
1151
|
+
>
|
|
1152
|
+
);
|
|
1153
|
+
}
|
|
1143
1154
|
export declare class SnapStartException extends __BaseException {
|
|
1144
1155
|
readonly name: "SnapStartException";
|
|
1145
1156
|
readonly $fault: "client";
|
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.
|
|
4
|
+
"version": "3.919.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-lambda",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
23
|
"@aws-sdk/core": "3.916.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.919.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.914.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.914.0",
|
|
27
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
27
|
+
"@aws-sdk/middleware-recursion-detection": "3.919.0",
|
|
28
28
|
"@aws-sdk/middleware-user-agent": "3.916.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.914.0",
|
|
30
30
|
"@aws-sdk/types": "3.914.0",
|