@aws-sdk/client-lambda 3.353.0 → 3.356.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,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.KMSAccessDeniedException = exports.LogType = exports.InvocationType = exports.InvalidZipFileException = exports.InvalidSubnetIDException = exports.InvalidSecurityGroupIDException = exports.InvalidRuntimeException = exports.InvalidRequestContentException = exports.ENILimitReachedException = exports.EFSMountTimeoutException = exports.EFSMountFailureException = exports.EFSMountConnectivityException = exports.EFSIOException = exports.EC2UnexpectedException = exports.EC2ThrottledException = exports.EC2AccessDeniedException = exports.UpdateRuntimeOn = exports.ProvisionedConcurrencyConfigNotFoundException = exports.ProvisionedConcurrencyStatusEnum = exports.ResourceInUseException = exports.InvokeMode = exports.InvalidCodeSignatureException = exports.StateReasonCode = exports.State = exports.SnapStartOptimizationStatus = exports.LastUpdateStatusReasonCode = exports.LastUpdateStatus = exports.TracingMode = exports.SnapStartApplyOn = exports.Runtime = exports.PackageType = exports.CodeVerificationFailedException = exports.CodeStorageExceededException = exports.CodeSigningConfigNotFoundException = exports.EventSourcePosition = exports.SourceAccessType = exports.EndPointType = exports.FunctionResponseType = exports.FullDocument = exports.CodeSigningPolicy = exports.Architecture = exports.FunctionUrlAuthType = exports.TooManyRequestsException = exports.ThrottleReason = exports.ServiceException = exports.ResourceNotFoundException = exports.ResourceConflictException = exports.PreconditionFailedException = exports.PolicyLengthExceededException = exports.InvalidParameterValueException = void 0;
4
- exports.UpdateFunctionConfigurationRequestFilterSensitiveLog = exports.UpdateFunctionCodeRequestFilterSensitiveLog = exports.PublishLayerVersionRequestFilterSensitiveLog = exports.LayerVersionContentInputFilterSensitiveLog = exports.ListVersionsByFunctionResponseFilterSensitiveLog = exports.ListFunctionsResponseFilterSensitiveLog = exports.InvokeWithResponseStreamResponseFilterSensitiveLog = exports.InvokeWithResponseStreamResponseEventFilterSensitiveLog = exports.InvokeResponseStreamUpdateFilterSensitiveLog = exports.InvokeWithResponseStreamRequestFilterSensitiveLog = exports.InvokeAsyncRequestFilterSensitiveLog = exports.InvocationResponseFilterSensitiveLog = exports.InvocationRequestFilterSensitiveLog = exports.GetFunctionResponseFilterSensitiveLog = exports.FunctionConfigurationFilterSensitiveLog = exports.RuntimeVersionConfigFilterSensitiveLog = exports.RuntimeVersionErrorFilterSensitiveLog = exports.ImageConfigResponseFilterSensitiveLog = exports.ImageConfigErrorFilterSensitiveLog = exports.EnvironmentResponseFilterSensitiveLog = exports.EnvironmentErrorFilterSensitiveLog = exports.CreateFunctionRequestFilterSensitiveLog = exports.EnvironmentFilterSensitiveLog = exports.FunctionCodeFilterSensitiveLog = exports.FunctionVersion = exports.InvokeWithResponseStreamResponseEvent = exports.ResponseStreamingInvocationType = exports.UnsupportedMediaTypeException = exports.SubnetIPAddressLimitReachedException = exports.SnapStartTimeoutException = exports.SnapStartNotReadyException = exports.SnapStartException = exports.ResourceNotReadyException = exports.RequestTooLargeException = exports.KMSNotFoundException = exports.KMSInvalidStateException = exports.KMSDisabledException = void 0;
4
+ exports.UpdateFunctionConfigurationRequestFilterSensitiveLog = exports.UpdateFunctionCodeRequestFilterSensitiveLog = exports.PublishLayerVersionRequestFilterSensitiveLog = exports.LayerVersionContentInputFilterSensitiveLog = exports.ListVersionsByFunctionResponseFilterSensitiveLog = exports.ListFunctionsResponseFilterSensitiveLog = exports.InvokeWithResponseStreamResponseFilterSensitiveLog = exports.InvokeWithResponseStreamResponseEventFilterSensitiveLog = exports.InvokeResponseStreamUpdateFilterSensitiveLog = exports.InvokeWithResponseStreamRequestFilterSensitiveLog = exports.InvokeAsyncRequestFilterSensitiveLog = exports.InvocationResponseFilterSensitiveLog = exports.InvocationRequestFilterSensitiveLog = exports.GetFunctionResponseFilterSensitiveLog = exports.FunctionConfigurationFilterSensitiveLog = exports.RuntimeVersionConfigFilterSensitiveLog = exports.RuntimeVersionErrorFilterSensitiveLog = exports.ImageConfigResponseFilterSensitiveLog = exports.ImageConfigErrorFilterSensitiveLog = exports.EnvironmentResponseFilterSensitiveLog = exports.EnvironmentErrorFilterSensitiveLog = exports.CreateFunctionRequestFilterSensitiveLog = exports.EnvironmentFilterSensitiveLog = exports.FunctionCodeFilterSensitiveLog = exports.FunctionVersion = exports.InvokeWithResponseStreamResponseEvent = exports.ResponseStreamingInvocationType = exports.UnsupportedMediaTypeException = exports.SubnetIPAddressLimitReachedException = exports.SnapStartTimeoutException = exports.SnapStartNotReadyException = exports.SnapStartException = exports.ResourceNotReadyException = exports.RequestTooLargeException = exports.RecursiveInvocationException = exports.KMSNotFoundException = exports.KMSInvalidStateException = exports.KMSDisabledException = void 0;
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const LambdaServiceException_1 = require("./LambdaServiceException");
7
7
  class InvalidParameterValueException extends LambdaServiceException_1.LambdaServiceException {
@@ -626,6 +626,21 @@ class KMSNotFoundException extends LambdaServiceException_1.LambdaServiceExcepti
626
626
  }
627
627
  }
628
628
  exports.KMSNotFoundException = KMSNotFoundException;
629
+ class RecursiveInvocationException extends LambdaServiceException_1.LambdaServiceException {
630
+ constructor(opts) {
631
+ super({
632
+ name: "RecursiveInvocationException",
633
+ $fault: "client",
634
+ ...opts,
635
+ });
636
+ this.name = "RecursiveInvocationException";
637
+ this.$fault = "client";
638
+ Object.setPrototypeOf(this, RecursiveInvocationException.prototype);
639
+ this.Type = opts.Type;
640
+ this.Message = opts.Message;
641
+ }
642
+ }
643
+ exports.RecursiveInvocationException = RecursiveInvocationException;
629
644
  class RequestTooLargeException extends LambdaServiceException_1.LambdaServiceException {
630
645
  constructor(opts) {
631
646
  super({
@@ -3302,6 +3302,9 @@ const de_InvokeCommandError = async (output, context) => {
3302
3302
  case "KMSNotFoundException":
3303
3303
  case "com.amazonaws.lambda#KMSNotFoundException":
3304
3304
  throw await de_KMSNotFoundExceptionRes(parsedOutput, context);
3305
+ case "RecursiveInvocationException":
3306
+ case "com.amazonaws.lambda#RecursiveInvocationException":
3307
+ throw await de_RecursiveInvocationExceptionRes(parsedOutput, context);
3305
3308
  case "RequestTooLargeException":
3306
3309
  case "com.amazonaws.lambda#RequestTooLargeException":
3307
3310
  throw await de_RequestTooLargeExceptionRes(parsedOutput, context);
@@ -3467,6 +3470,9 @@ const de_InvokeWithResponseStreamCommandError = async (output, context) => {
3467
3470
  case "KMSNotFoundException":
3468
3471
  case "com.amazonaws.lambda#KMSNotFoundException":
3469
3472
  throw await de_KMSNotFoundExceptionRes(parsedOutput, context);
3473
+ case "RecursiveInvocationException":
3474
+ case "com.amazonaws.lambda#RecursiveInvocationException":
3475
+ throw await de_RecursiveInvocationExceptionRes(parsedOutput, context);
3470
3476
  case "RequestTooLargeException":
3471
3477
  case "com.amazonaws.lambda#RequestTooLargeException":
3472
3478
  throw await de_RequestTooLargeExceptionRes(parsedOutput, context);
@@ -5384,6 +5390,20 @@ const de_ProvisionedConcurrencyConfigNotFoundExceptionRes = async (parsedOutput,
5384
5390
  });
5385
5391
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
5386
5392
  };
5393
+ const de_RecursiveInvocationExceptionRes = async (parsedOutput, context) => {
5394
+ const contents = (0, smithy_client_1.map)({});
5395
+ const data = parsedOutput.body;
5396
+ const doc = (0, smithy_client_1.take)(data, {
5397
+ Message: smithy_client_1.expectString,
5398
+ Type: smithy_client_1.expectString,
5399
+ });
5400
+ Object.assign(contents, doc);
5401
+ const exception = new models_0_1.RecursiveInvocationException({
5402
+ $metadata: deserializeMetadata(parsedOutput),
5403
+ ...contents,
5404
+ });
5405
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
5406
+ };
5387
5407
  const de_RequestTooLargeExceptionRes = async (parsedOutput, context) => {
5388
5408
  const contents = (0, smithy_client_1.map)({});
5389
5409
  const data = parsedOutput.body;
@@ -592,6 +592,20 @@ export class KMSNotFoundException extends __BaseException {
592
592
  this.Message = opts.Message;
593
593
  }
594
594
  }
595
+ export class RecursiveInvocationException extends __BaseException {
596
+ constructor(opts) {
597
+ super({
598
+ name: "RecursiveInvocationException",
599
+ $fault: "client",
600
+ ...opts,
601
+ });
602
+ this.name = "RecursiveInvocationException";
603
+ this.$fault = "client";
604
+ Object.setPrototypeOf(this, RecursiveInvocationException.prototype);
605
+ this.Type = opts.Type;
606
+ this.Message = opts.Message;
607
+ }
608
+ }
595
609
  export class RequestTooLargeException extends __BaseException {
596
610
  constructor(opts) {
597
611
  super({
@@ -1,7 +1,7 @@
1
1
  import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { LambdaServiceException as __BaseException } from "../models/LambdaServiceException";
4
- 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, RequestTooLargeException, ResourceConflictException, ResourceInUseException, ResourceNotFoundException, ResourceNotReadyException, ServiceException, SnapStartException, SnapStartNotReadyException, SnapStartTimeoutException, SubnetIPAddressLimitReachedException, TooManyRequestsException, UnsupportedMediaTypeException, } from "../models/models_0";
4
+ 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
5
  export const se_AddLayerVersionPermissionCommand = async (input, context) => {
6
6
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
7
  const headers = {
@@ -3197,6 +3197,9 @@ const de_InvokeCommandError = async (output, context) => {
3197
3197
  case "KMSNotFoundException":
3198
3198
  case "com.amazonaws.lambda#KMSNotFoundException":
3199
3199
  throw await de_KMSNotFoundExceptionRes(parsedOutput, context);
3200
+ case "RecursiveInvocationException":
3201
+ case "com.amazonaws.lambda#RecursiveInvocationException":
3202
+ throw await de_RecursiveInvocationExceptionRes(parsedOutput, context);
3200
3203
  case "RequestTooLargeException":
3201
3204
  case "com.amazonaws.lambda#RequestTooLargeException":
3202
3205
  throw await de_RequestTooLargeExceptionRes(parsedOutput, context);
@@ -3360,6 +3363,9 @@ const de_InvokeWithResponseStreamCommandError = async (output, context) => {
3360
3363
  case "KMSNotFoundException":
3361
3364
  case "com.amazonaws.lambda#KMSNotFoundException":
3362
3365
  throw await de_KMSNotFoundExceptionRes(parsedOutput, context);
3366
+ case "RecursiveInvocationException":
3367
+ case "com.amazonaws.lambda#RecursiveInvocationException":
3368
+ throw await de_RecursiveInvocationExceptionRes(parsedOutput, context);
3363
3369
  case "RequestTooLargeException":
3364
3370
  case "com.amazonaws.lambda#RequestTooLargeException":
3365
3371
  throw await de_RequestTooLargeExceptionRes(parsedOutput, context);
@@ -5247,6 +5253,20 @@ const de_ProvisionedConcurrencyConfigNotFoundExceptionRes = async (parsedOutput,
5247
5253
  });
5248
5254
  return __decorateServiceException(exception, parsedOutput.body);
5249
5255
  };
5256
+ const de_RecursiveInvocationExceptionRes = async (parsedOutput, context) => {
5257
+ const contents = map({});
5258
+ const data = parsedOutput.body;
5259
+ const doc = take(data, {
5260
+ Message: __expectString,
5261
+ Type: __expectString,
5262
+ });
5263
+ Object.assign(contents, doc);
5264
+ const exception = new RecursiveInvocationException({
5265
+ $metadata: deserializeMetadata(parsedOutput),
5266
+ ...contents,
5267
+ });
5268
+ return __decorateServiceException(exception, parsedOutput.body);
5269
+ };
5250
5270
  const de_RequestTooLargeExceptionRes = async (parsedOutput, context) => {
5251
5271
  const contents = map({});
5252
5272
  const data = parsedOutput.body;
@@ -143,6 +143,9 @@ export interface InvokeCommandOutput extends InvocationResponse, __MetadataBeare
143
143
  * <p>Lambda couldn't decrypt the environment variables because the KMS key was not
144
144
  * found. Check the function's KMS key settings.</p>
145
145
  *
146
+ * @throws {@link RecursiveInvocationException} (client fault)
147
+ * <p>Lambda has detected your function being invoked in a recursive loop with other Amazon Web Services resources and stopped your function's invocation.</p>
148
+ *
146
149
  * @throws {@link RequestTooLargeException} (client fault)
147
150
  * <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
148
151
  * quotas</a>.</p>
@@ -130,6 +130,9 @@ export interface InvokeWithResponseStreamCommandOutput extends InvokeWithRespons
130
130
  * <p>Lambda couldn't decrypt the environment variables because the KMS key was not
131
131
  * found. Check the function's KMS key settings.</p>
132
132
  *
133
+ * @throws {@link RecursiveInvocationException} (client fault)
134
+ * <p>Lambda has detected your function being invoked in a recursive loop with other Amazon Web Services resources and stopped your function's invocation.</p>
135
+ *
133
136
  * @throws {@link RequestTooLargeException} (client fault)
134
137
  * <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
135
138
  * quotas</a>.</p>
@@ -3464,6 +3464,26 @@ export declare class KMSNotFoundException extends __BaseException {
3464
3464
  */
3465
3465
  constructor(opts: __ExceptionOptionType<KMSNotFoundException, __BaseException>);
3466
3466
  }
3467
+ /**
3468
+ * @public
3469
+ * <p>Lambda has detected your function being invoked in a recursive loop with other Amazon Web Services resources and stopped your function's invocation.</p>
3470
+ */
3471
+ export declare class RecursiveInvocationException extends __BaseException {
3472
+ readonly name: "RecursiveInvocationException";
3473
+ readonly $fault: "client";
3474
+ /**
3475
+ * <p>The exception type.</p>
3476
+ */
3477
+ Type?: string;
3478
+ /**
3479
+ * <p>The exception message.</p>
3480
+ */
3481
+ Message?: string;
3482
+ /**
3483
+ * @internal
3484
+ */
3485
+ constructor(opts: __ExceptionOptionType<RecursiveInvocationException, __BaseException>);
3486
+ }
3467
3487
  /**
3468
3488
  * @public
3469
3489
  * <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
@@ -1013,6 +1013,15 @@ export declare class KMSNotFoundException extends __BaseException {
1013
1013
  opts: __ExceptionOptionType<KMSNotFoundException, __BaseException>
1014
1014
  );
1015
1015
  }
1016
+ export declare class RecursiveInvocationException extends __BaseException {
1017
+ readonly name: "RecursiveInvocationException";
1018
+ readonly $fault: "client";
1019
+ Type?: string;
1020
+ Message?: string;
1021
+ constructor(
1022
+ opts: __ExceptionOptionType<RecursiveInvocationException, __BaseException>
1023
+ );
1024
+ }
1016
1025
  export declare class RequestTooLargeException extends __BaseException {
1017
1026
  readonly name: "RequestTooLargeException";
1018
1027
  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.353.0",
4
+ "version": "3.356.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,9 +21,9 @@
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.353.0",
25
- "@aws-sdk/config-resolver": "3.353.0",
26
- "@aws-sdk/credential-provider-node": "3.353.0",
24
+ "@aws-sdk/client-sts": "3.354.0",
25
+ "@aws-sdk/config-resolver": "3.354.0",
26
+ "@aws-sdk/credential-provider-node": "3.354.0",
27
27
  "@aws-sdk/eventstream-serde-browser": "3.347.0",
28
28
  "@aws-sdk/eventstream-serde-config-resolver": "3.347.0",
29
29
  "@aws-sdk/eventstream-serde-node": "3.347.0",
@@ -35,12 +35,12 @@
35
35
  "@aws-sdk/middleware-host-header": "3.347.0",
36
36
  "@aws-sdk/middleware-logger": "3.347.0",
37
37
  "@aws-sdk/middleware-recursion-detection": "3.347.0",
38
- "@aws-sdk/middleware-retry": "3.353.0",
38
+ "@aws-sdk/middleware-retry": "3.354.0",
39
39
  "@aws-sdk/middleware-serde": "3.347.0",
40
- "@aws-sdk/middleware-signing": "3.353.0",
40
+ "@aws-sdk/middleware-signing": "3.354.0",
41
41
  "@aws-sdk/middleware-stack": "3.347.0",
42
42
  "@aws-sdk/middleware-user-agent": "3.352.0",
43
- "@aws-sdk/node-config-provider": "3.353.0",
43
+ "@aws-sdk/node-config-provider": "3.354.0",
44
44
  "@aws-sdk/node-http-handler": "3.350.0",
45
45
  "@aws-sdk/smithy-client": "3.347.0",
46
46
  "@aws-sdk/types": "3.347.0",
@@ -49,11 +49,11 @@
49
49
  "@aws-sdk/util-body-length-browser": "3.310.0",
50
50
  "@aws-sdk/util-body-length-node": "3.310.0",
51
51
  "@aws-sdk/util-defaults-mode-browser": "3.353.0",
52
- "@aws-sdk/util-defaults-mode-node": "3.353.0",
52
+ "@aws-sdk/util-defaults-mode-node": "3.354.0",
53
53
  "@aws-sdk/util-endpoints": "3.352.0",
54
54
  "@aws-sdk/util-retry": "3.347.0",
55
55
  "@aws-sdk/util-user-agent-browser": "3.347.0",
56
- "@aws-sdk/util-user-agent-node": "3.353.0",
56
+ "@aws-sdk/util-user-agent-node": "3.354.0",
57
57
  "@aws-sdk/util-utf8": "3.310.0",
58
58
  "@aws-sdk/util-waiter": "3.347.0",
59
59
  "@smithy/protocol-http": "^1.0.1",