Enum aws_sdk_lambda::error::InvokeErrorKind
source · [−]#[non_exhaustive]
pub enum InvokeErrorKind {
Show 27 variants
Ec2AccessDeniedException(Ec2AccessDeniedException),
Ec2ThrottledException(Ec2ThrottledException),
Ec2UnexpectedException(Ec2UnexpectedException),
EfsioException(EfsioException),
EfsMountConnectivityException(EfsMountConnectivityException),
EfsMountFailureException(EfsMountFailureException),
EfsMountTimeoutException(EfsMountTimeoutException),
EniLimitReachedException(EniLimitReachedException),
InvalidParameterValueException(InvalidParameterValueException),
InvalidRequestContentException(InvalidRequestContentException),
InvalidRuntimeException(InvalidRuntimeException),
InvalidSecurityGroupIdException(InvalidSecurityGroupIdException),
InvalidSubnetIdException(InvalidSubnetIdException),
InvalidZipFileException(InvalidZipFileException),
KmsAccessDeniedException(KmsAccessDeniedException),
KmsDisabledException(KmsDisabledException),
KmsInvalidStateException(KmsInvalidStateException),
KmsNotFoundException(KmsNotFoundException),
RequestTooLargeException(RequestTooLargeException),
ResourceConflictException(ResourceConflictException),
ResourceNotFoundException(ResourceNotFoundException),
ResourceNotReadyException(ResourceNotReadyException),
ServiceException(ServiceException),
SubnetIpAddressLimitReachedException(SubnetIpAddressLimitReachedException),
TooManyRequestsException(TooManyRequestsException),
UnsupportedMediaTypeException(UnsupportedMediaTypeException),
Unhandled(Box<dyn Error + Send + Sync + 'static>),
}
Expand description
Types of errors that can occur for the Invoke
operation.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Ec2AccessDeniedException(Ec2AccessDeniedException)
Need additional permissions to configure VPC settings.
Ec2ThrottledException(Ec2ThrottledException)
Lambda was throttled by Amazon EC2 during Lambda function initialization using the execution role provided for the Lambda function.
Ec2UnexpectedException(Ec2UnexpectedException)
Lambda received an unexpected EC2 client exception while setting up for the Lambda function.
EfsioException(EfsioException)
An error occurred when reading from or writing to a connected file system.
EfsMountConnectivityException(EfsMountConnectivityException)
The function couldn't make a network connection to the configured file system.
EfsMountFailureException(EfsMountFailureException)
The function couldn't mount the configured file system due to a permission or configuration issue.
EfsMountTimeoutException(EfsMountTimeoutException)
The function was able to make a network connection to the configured file system, but the mount operation timed out.
EniLimitReachedException(EniLimitReachedException)
Lambda was not able to create an elastic network interface in the VPC, specified as part of Lambda function configuration, because the limit for network interfaces has been reached.
InvalidParameterValueException(InvalidParameterValueException)
One of the parameters in the request is invalid.
InvalidRequestContentException(InvalidRequestContentException)
The request body could not be parsed as JSON.
InvalidRuntimeException(InvalidRuntimeException)
The runtime or runtime version specified is not supported.
InvalidSecurityGroupIdException(InvalidSecurityGroupIdException)
The Security Group ID provided in the Lambda function VPC configuration is invalid.
InvalidSubnetIdException(InvalidSubnetIdException)
The Subnet ID provided in the Lambda function VPC configuration is invalid.
InvalidZipFileException(InvalidZipFileException)
Lambda could not unzip the deployment package.
KmsAccessDeniedException(KmsAccessDeniedException)
Lambda was unable to decrypt the environment variables because KMS access was denied. Check the Lambda function's KMS permissions.
KmsDisabledException(KmsDisabledException)
Lambda was unable to decrypt the environment variables because the KMS key used is disabled. Check the Lambda function's KMS key settings.
KmsInvalidStateException(KmsInvalidStateException)
Lambda was unable to decrypt the environment variables because the KMS key used is in an invalid state for Decrypt. Check the function's KMS key settings.
KmsNotFoundException(KmsNotFoundException)
Lambda was unable to decrypt the environment variables because the KMS key was not found. Check the function's KMS key settings.
RequestTooLargeException(RequestTooLargeException)
The request payload exceeded the Invoke
request body JSON input limit. For more information, see Limits.
ResourceConflictException(ResourceConflictException)
The resource already exists, or another operation is in progress.
ResourceNotFoundException(ResourceNotFoundException)
The resource specified in the request does not exist.
ResourceNotReadyException(ResourceNotReadyException)
The function is inactive and its VPC connection is no longer available. Wait for the VPC connection to reestablish and try again.
ServiceException(ServiceException)
The Lambda service encountered an internal error.
SubnetIpAddressLimitReachedException(SubnetIpAddressLimitReachedException)
Lambda was not able to set up VPC access for the Lambda function because one or more configured subnets has no available IP addresses.
TooManyRequestsException(TooManyRequestsException)
The request throughput limit was exceeded.
UnsupportedMediaTypeException(UnsupportedMediaTypeException)
The content type of the Invoke
request body is not JSON.
Unhandled(Box<dyn Error + Send + Sync + 'static>)
An unexpected error, e.g. invalid JSON returned by the service or an unknown error code
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for InvokeErrorKind
impl Send for InvokeErrorKind
impl Sync for InvokeErrorKind
impl Unpin for InvokeErrorKind
impl !UnwindSafe for InvokeErrorKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more