Class LambdaException
- Exception
-
RuntimeException
-
Aws\Exception\AwsException implements Aws\MonitoringEventsInterface, Aws\ResponseContainerInterface, ArrayAccess uses Aws\HasDataTrait, Aws\HasMonitoringEventsTrait
-
Aws\Lambda\Exception\LambdaException
- Namespace: Aws\Lambda\Exception
- Located at Lambda/Exception/LambdaException.php
Represents an error interacting with AWS Lambda
Methods Summary
Methods inherited from Aws\Exception\AwsException
__construct()
,
__toString()
,
get()
,
getAwsErrorCode()
,
getAwsErrorMessage()
,
getAwsErrorShape()
,
getAwsErrorType()
,
getAwsRequestId()
,
getCommand()
,
getRequest()
,
getResponse()
,
getResult()
,
getStatusCode()
,
getTransferInfo()
,
hasKey()
,
isConnectionError()
,
isMaxRetriesExceeded()
,
search()
,
setMaxRetriesExceeded()
,
setTransferInfo()
Methods inherited from Exception
__wakeup()
,
getCode()
,
getFile()
,
getLine()
,
getMessage()
,
getPrevious()
,
getTrace()
,
getTraceAsString()
Methods inherited from ArrayAccess
offsetExists()
,
offsetGet()
,
offsetSet()
,
offsetUnset()
Methods inherited from Aws\MonitoringEventsInterface
Methods used from Aws\HasDataTrait
Methods used from Aws\HasMonitoringEventsTrait
Expected Exception Codes
CodeSigningConfigNotFoundException
[ 'Message' => '<string>', 'Type' => '<string>', ]
Description
The specified code signing configuration does not exist.
Members
- Message
-
- Type: string
- Type
-
- Type: string
CodeStorageExceededException
[ 'Type' => '<string>', 'message' => '<string>', ]
Description
Your Amazon Web Services account has exceeded its maximum total code size. For more information, see Lambda quotas.
Members
- Type
-
- Type: string
The exception type.
- message
-
- Type: string
CodeVerificationFailedException
[ 'Message' => '<string>', 'Type' => '<string>', ]
Description
The code signature failed one or more of the validation checks for signature mismatch or expiry, and the code signing policy is set to ENFORCE. Lambda blocks the deployment.
Members
- Message
-
- Type: string
- Type
-
- Type: string
EC2AccessDeniedException
[ 'Message' => '<string>', 'Type' => '<string>', ]
Description
Need additional permissions to configure VPC settings.
Members
- Message
-
- Type: string
- Type
-
- Type: string
EC2ThrottledException
[ 'Message' => '<string>', 'Type' => '<string>', ]
Description
Amazon EC2 throttled Lambda during Lambda function initialization using the execution role provided for the function.
Members
- Message
-
- Type: string
- Type
-
- Type: string
EC2UnexpectedException
[ 'EC2ErrorCode' => '<string>', 'Message' => '<string>', 'Type' => '<string>', ]
Description
Lambda received an unexpected Amazon EC2 client exception while setting up for the Lambda function.
Members
- EC2ErrorCode
-
- Type: string
- Message
-
- Type: string
- Type
-
- Type: string
EFSIOException
[ 'Message' => '<string>', 'Type' => '<string>', ]
Description
An error occurred when reading from or writing to a connected file system.
Members
- Message
-
- Type: string
- Type
-
- Type: string
EFSMountConnectivityException
[ 'Message' => '<string>', 'Type' => '<string>', ]
Description
The Lambda function couldn't make a network connection to the configured file system.
Members
- Message
-
- Type: string
- Type
-
- Type: string
EFSMountFailureException
[ 'Message' => '<string>', 'Type' => '<string>', ]
Description
The Lambda function couldn't mount the configured file system due to a permission or configuration issue.
Members
- Message
-
- Type: string
- Type
-
- Type: string
EFSMountTimeoutException
[ 'Message' => '<string>', 'Type' => '<string>', ]
Description
The Lambda function made a network connection to the configured file system, but the mount operation timed out.
Members
- Message
-
- Type: string
- Type
-
- Type: string
ENILimitReachedException
[ 'Message' => '<string>', 'Type' => '<string>', ]
Description
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 information, see Lambda quotas.
Members
- Message
-
- Type: string
- Type
-
- Type: string
InvalidCodeSignatureException
[ 'Message' => '<string>', 'Type' => '<string>', ]
Description
The code signature failed the integrity check. If the integrity check fails, then Lambda blocks deployment, even if the code signing policy is set to WARN.
Members
- Message
-
- Type: string
- Type
-
- Type: string
InvalidParameterValueException
[ 'Type' => '<string>', 'message' => '<string>', ]
Description
One of the parameters in the request is not valid.
Members
- Type
-
- Type: string
The exception type.
- message
-
- Type: string
The exception message.
InvalidRequestContentException
[ 'Type' => '<string>', 'message' => '<string>', ]
Description
The request body could not be parsed as JSON.
Members
- Type
-
- Type: string
The exception type.
- message
-
- Type: string
The exception message.
InvalidRuntimeException
[ 'Message' => '<string>', 'Type' => '<string>', ]
Description
The runtime or runtime version specified is not supported.
Members
- Message
-
- Type: string
- Type
-
- Type: string
InvalidSecurityGroupIDException
[ 'Message' => '<string>', 'Type' => '<string>', ]
Description
The security group ID provided in the Lambda function VPC configuration is not valid.
Members
- Message
-
- Type: string
- Type
-
- Type: string
InvalidSubnetIDException
[ 'Message' => '<string>', 'Type' => '<string>', ]
Description
The subnet ID provided in the Lambda function VPC configuration is not valid.
Members
- Message
-
- Type: string
- Type
-
- Type: string
InvalidZipFileException
[ 'Message' => '<string>', 'Type' => '<string>', ]
Description
Lambda could not unzip the deployment package.
Members
- Message
-
- Type: string
- Type
-
- Type: string
KMSAccessDeniedException
[ 'Message' => '<string>', 'Type' => '<string>', ]
Description
Lambda couldn't decrypt the environment variables because KMS access was denied. Check the Lambda function's KMS permissions.
Members
- Message
-
- Type: string
- Type
-
- Type: string
KMSDisabledException
[ 'Message' => '<string>', 'Type' => '<string>', ]
Description
Lambda couldn't decrypt the environment variables because the KMS key used is disabled. Check the Lambda function's KMS key settings.
Members
- Message
-
- Type: string
- Type
-
- Type: string
KMSInvalidStateException
[ 'Message' => '<string>', 'Type' => '<string>', ]
Description
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.
Members
- Message
-
- Type: string
- Type
-
- Type: string
KMSNotFoundException
[ 'Message' => '<string>', 'Type' => '<string>', ]
Description
Lambda couldn't decrypt the environment variables because the KMS key was not found. Check the function's KMS key settings.
Members
- Message
-
- Type: string
- Type
-
- Type: string
PolicyLengthExceededException
[ 'Type' => '<string>', 'message' => '<string>', ]
Description
The permissions policy for the resource is too large. For more information, see Lambda quotas.
Members
- Type
-
- Type: string
- message
-
- Type: string
PreconditionFailedException
[ 'Type' => '<string>', 'message' => '<string>', ]
Description
The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the GetFunction
or the GetAlias
API operation to retrieve the latest RevisionId for your resource.
Members
- Type
-
- Type: string
The exception type.
- message
-
- Type: string
The exception message.
ProvisionedConcurrencyConfigNotFoundException
[ 'Type' => '<string>', 'message' => '<string>', ]
Description
The specified configuration does not exist.
Members
- Type
-
- Type: string
- message
-
- Type: string
RecursiveInvocationException
[ 'Message' => '<string>', 'Type' => '<string>', ]
Description
Lambda has detected your function being invoked in a recursive loop with other Amazon Web Services resources and stopped your function's invocation.
Members
- Message
-
- Type: string
The exception message.
- Type
-
- Type: string
The exception type.
RequestTooLargeException
[ 'Type' => '<string>', 'message' => '<string>', ]
Description
The request payload exceeded the Invoke
request body JSON input quota. For more information, see Lambda quotas.
Members
- Type
-
- Type: string
- message
-
- Type: string
ResourceConflictException
[ 'Type' => '<string>', 'message' => '<string>', ]
Description
The resource already exists, or another operation is in progress.
Members
- Type
-
- Type: string
The exception type.
- message
-
- Type: string
The exception message.
ResourceInUseException
[ 'Message' => '<string>', 'Type' => '<string>', ]
Description
The operation conflicts with the resource's availability. For example, you tried to update an event source mapping in the CREATING state, or you tried to delete an event source mapping currently UPDATING.
Members
- Message
-
- Type: string
- Type
-
- Type: string
ResourceNotFoundException
[ 'Message' => '<string>', 'Type' => '<string>', ]
Description
The resource specified in the request does not exist.
Members
- Message
-
- Type: string
- Type
-
- Type: string
ResourceNotReadyException
[ 'Type' => '<string>', 'message' => '<string>', ]
Description
The function is inactive and its VPC connection is no longer available. Wait for the VPC connection to reestablish and try again.
Members
- Type
-
- Type: string
The exception type.
- message
-
- Type: string
The exception message.
ServiceException
[ 'Message' => '<string>', 'Type' => '<string>', ]
Description
The Lambda service encountered an internal error.
Members
- Message
-
- Type: string
- Type
-
- Type: string
SnapStartException
[ 'Message' => '<string>', 'Type' => '<string>', ]
Description
The afterRestore()
runtime hook encountered an error. For more information, check the Amazon CloudWatch logs.
Members
- Message
-
- Type: string
- Type
-
- Type: string
SnapStartNotReadyException
[ 'Message' => '<string>', 'Type' => '<string>', ]
Description
Lambda is initializing your function. You can invoke the function when the function state becomes Active
.
Members
- Message
-
- Type: string
- Type
-
- Type: string
SnapStartTimeoutException
[ 'Message' => '<string>', 'Type' => '<string>', ]
Description
Lambda couldn't restore the snapshot within the timeout limit.
Members
- Message
-
- Type: string
- Type
-
- Type: string
SubnetIPAddressLimitReachedException
[ 'Message' => '<string>', 'Type' => '<string>', ]
Description
Lambda couldn't set up VPC access for the Lambda function because one or more configured subnets has no available IP addresses.
Members
- Message
-
- Type: string
- Type
-
- Type: string
TooManyRequestsException
[ 'Reason' => 'ConcurrentInvocationLimitExceeded|FunctionInvocationRateLimitExceeded|ReservedFunctionConcurrentInvocationLimitExceeded|ReservedFunctionInvocationRateLimitExceeded|CallerRateLimitExceeded|ConcurrentSnapshotCreateLimitExceeded', 'Type' => '<string>', 'message' => '<string>', 'retryAfterSeconds' => '<string>', ]
Description
The request throughput limit was exceeded. For more information, see Lambda quotas.
Members
- Reason
-
- Type: string
- Type
-
- Type: string
- message
-
- Type: string
- retryAfterSeconds
-
- Type: string
The number of seconds the caller should wait before retrying.
UnsupportedMediaTypeException
[ 'Type' => '<string>', 'message' => '<string>', ]
Description
The content type of the Invoke
request body is not JSON.
Members
- Type
-
- Type: string
- message
-
- Type: string