github.com/aavshr/aws-sdk-go@v1.41.3/service/lambda/errors.go (about)

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package lambda
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeCodeSigningConfigNotFoundException for service response error code
    12  	// "CodeSigningConfigNotFoundException".
    13  	//
    14  	// The specified code signing configuration does not exist.
    15  	ErrCodeCodeSigningConfigNotFoundException = "CodeSigningConfigNotFoundException"
    16  
    17  	// ErrCodeCodeStorageExceededException for service response error code
    18  	// "CodeStorageExceededException".
    19  	//
    20  	// You have exceeded your maximum total code size per account. Learn more (https://docs.aws.amazon.com/lambda/latest/dg/limits.html)
    21  	ErrCodeCodeStorageExceededException = "CodeStorageExceededException"
    22  
    23  	// ErrCodeCodeVerificationFailedException for service response error code
    24  	// "CodeVerificationFailedException".
    25  	//
    26  	// The code signature failed one or more of the validation checks for signature
    27  	// mismatch or expiry, and the code signing policy is set to ENFORCE. Lambda
    28  	// blocks the deployment.
    29  	ErrCodeCodeVerificationFailedException = "CodeVerificationFailedException"
    30  
    31  	// ErrCodeEC2AccessDeniedException for service response error code
    32  	// "EC2AccessDeniedException".
    33  	//
    34  	// Need additional permissions to configure VPC settings.
    35  	ErrCodeEC2AccessDeniedException = "EC2AccessDeniedException"
    36  
    37  	// ErrCodeEC2ThrottledException for service response error code
    38  	// "EC2ThrottledException".
    39  	//
    40  	// Lambda was throttled by Amazon EC2 during Lambda function initialization
    41  	// using the execution role provided for the Lambda function.
    42  	ErrCodeEC2ThrottledException = "EC2ThrottledException"
    43  
    44  	// ErrCodeEC2UnexpectedException for service response error code
    45  	// "EC2UnexpectedException".
    46  	//
    47  	// Lambda received an unexpected EC2 client exception while setting up for the
    48  	// Lambda function.
    49  	ErrCodeEC2UnexpectedException = "EC2UnexpectedException"
    50  
    51  	// ErrCodeEFSIOException for service response error code
    52  	// "EFSIOException".
    53  	//
    54  	// An error occurred when reading from or writing to a connected file system.
    55  	ErrCodeEFSIOException = "EFSIOException"
    56  
    57  	// ErrCodeEFSMountConnectivityException for service response error code
    58  	// "EFSMountConnectivityException".
    59  	//
    60  	// The function couldn't make a network connection to the configured file system.
    61  	ErrCodeEFSMountConnectivityException = "EFSMountConnectivityException"
    62  
    63  	// ErrCodeEFSMountFailureException for service response error code
    64  	// "EFSMountFailureException".
    65  	//
    66  	// The function couldn't mount the configured file system due to a permission
    67  	// or configuration issue.
    68  	ErrCodeEFSMountFailureException = "EFSMountFailureException"
    69  
    70  	// ErrCodeEFSMountTimeoutException for service response error code
    71  	// "EFSMountTimeoutException".
    72  	//
    73  	// The function was able to make a network connection to the configured file
    74  	// system, but the mount operation timed out.
    75  	ErrCodeEFSMountTimeoutException = "EFSMountTimeoutException"
    76  
    77  	// ErrCodeENILimitReachedException for service response error code
    78  	// "ENILimitReachedException".
    79  	//
    80  	// Lambda was not able to create an elastic network interface in the VPC, specified
    81  	// as part of Lambda function configuration, because the limit for network interfaces
    82  	// has been reached.
    83  	ErrCodeENILimitReachedException = "ENILimitReachedException"
    84  
    85  	// ErrCodeInvalidCodeSignatureException for service response error code
    86  	// "InvalidCodeSignatureException".
    87  	//
    88  	// The code signature failed the integrity check. Lambda always blocks deployment
    89  	// if the integrity check fails, even if code signing policy is set to WARN.
    90  	ErrCodeInvalidCodeSignatureException = "InvalidCodeSignatureException"
    91  
    92  	// ErrCodeInvalidParameterValueException for service response error code
    93  	// "InvalidParameterValueException".
    94  	//
    95  	// One of the parameters in the request is invalid.
    96  	ErrCodeInvalidParameterValueException = "InvalidParameterValueException"
    97  
    98  	// ErrCodeInvalidRequestContentException for service response error code
    99  	// "InvalidRequestContentException".
   100  	//
   101  	// The request body could not be parsed as JSON.
   102  	ErrCodeInvalidRequestContentException = "InvalidRequestContentException"
   103  
   104  	// ErrCodeInvalidRuntimeException for service response error code
   105  	// "InvalidRuntimeException".
   106  	//
   107  	// The runtime or runtime version specified is not supported.
   108  	ErrCodeInvalidRuntimeException = "InvalidRuntimeException"
   109  
   110  	// ErrCodeInvalidSecurityGroupIDException for service response error code
   111  	// "InvalidSecurityGroupIDException".
   112  	//
   113  	// The Security Group ID provided in the Lambda function VPC configuration is
   114  	// invalid.
   115  	ErrCodeInvalidSecurityGroupIDException = "InvalidSecurityGroupIDException"
   116  
   117  	// ErrCodeInvalidSubnetIDException for service response error code
   118  	// "InvalidSubnetIDException".
   119  	//
   120  	// The Subnet ID provided in the Lambda function VPC configuration is invalid.
   121  	ErrCodeInvalidSubnetIDException = "InvalidSubnetIDException"
   122  
   123  	// ErrCodeInvalidZipFileException for service response error code
   124  	// "InvalidZipFileException".
   125  	//
   126  	// Lambda could not unzip the deployment package.
   127  	ErrCodeInvalidZipFileException = "InvalidZipFileException"
   128  
   129  	// ErrCodeKMSAccessDeniedException for service response error code
   130  	// "KMSAccessDeniedException".
   131  	//
   132  	// Lambda was unable to decrypt the environment variables because KMS access
   133  	// was denied. Check the Lambda function's KMS permissions.
   134  	ErrCodeKMSAccessDeniedException = "KMSAccessDeniedException"
   135  
   136  	// ErrCodeKMSDisabledException for service response error code
   137  	// "KMSDisabledException".
   138  	//
   139  	// Lambda was unable to decrypt the environment variables because the KMS key
   140  	// used is disabled. Check the Lambda function's KMS key settings.
   141  	ErrCodeKMSDisabledException = "KMSDisabledException"
   142  
   143  	// ErrCodeKMSInvalidStateException for service response error code
   144  	// "KMSInvalidStateException".
   145  	//
   146  	// Lambda was unable to decrypt the environment variables because the KMS key
   147  	// used is in an invalid state for Decrypt. Check the function's KMS key settings.
   148  	ErrCodeKMSInvalidStateException = "KMSInvalidStateException"
   149  
   150  	// ErrCodeKMSNotFoundException for service response error code
   151  	// "KMSNotFoundException".
   152  	//
   153  	// Lambda was unable to decrypt the environment variables because the KMS key
   154  	// was not found. Check the function's KMS key settings.
   155  	ErrCodeKMSNotFoundException = "KMSNotFoundException"
   156  
   157  	// ErrCodePolicyLengthExceededException for service response error code
   158  	// "PolicyLengthExceededException".
   159  	//
   160  	// The permissions policy for the resource is too large. Learn more (https://docs.aws.amazon.com/lambda/latest/dg/limits.html)
   161  	ErrCodePolicyLengthExceededException = "PolicyLengthExceededException"
   162  
   163  	// ErrCodePreconditionFailedException for service response error code
   164  	// "PreconditionFailedException".
   165  	//
   166  	// The RevisionId provided does not match the latest RevisionId for the Lambda
   167  	// function or alias. Call the GetFunction or the GetAlias API to retrieve the
   168  	// latest RevisionId for your resource.
   169  	ErrCodePreconditionFailedException = "PreconditionFailedException"
   170  
   171  	// ErrCodeProvisionedConcurrencyConfigNotFoundException for service response error code
   172  	// "ProvisionedConcurrencyConfigNotFoundException".
   173  	//
   174  	// The specified configuration does not exist.
   175  	ErrCodeProvisionedConcurrencyConfigNotFoundException = "ProvisionedConcurrencyConfigNotFoundException"
   176  
   177  	// ErrCodeRequestTooLargeException for service response error code
   178  	// "RequestTooLargeException".
   179  	//
   180  	// The request payload exceeded the Invoke request body JSON input limit. For
   181  	// more information, see Limits (https://docs.aws.amazon.com/lambda/latest/dg/limits.html).
   182  	ErrCodeRequestTooLargeException = "RequestTooLargeException"
   183  
   184  	// ErrCodeResourceConflictException for service response error code
   185  	// "ResourceConflictException".
   186  	//
   187  	// The resource already exists, or another operation is in progress.
   188  	ErrCodeResourceConflictException = "ResourceConflictException"
   189  
   190  	// ErrCodeResourceInUseException for service response error code
   191  	// "ResourceInUseException".
   192  	//
   193  	// The operation conflicts with the resource's availability. For example, you
   194  	// attempted to update an EventSource Mapping in CREATING, or tried to delete
   195  	// a EventSource mapping currently in the UPDATING state.
   196  	ErrCodeResourceInUseException = "ResourceInUseException"
   197  
   198  	// ErrCodeResourceNotFoundException for service response error code
   199  	// "ResourceNotFoundException".
   200  	//
   201  	// The resource specified in the request does not exist.
   202  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
   203  
   204  	// ErrCodeResourceNotReadyException for service response error code
   205  	// "ResourceNotReadyException".
   206  	//
   207  	// The function is inactive and its VPC connection is no longer available. Wait
   208  	// for the VPC connection to reestablish and try again.
   209  	ErrCodeResourceNotReadyException = "ResourceNotReadyException"
   210  
   211  	// ErrCodeServiceException for service response error code
   212  	// "ServiceException".
   213  	//
   214  	// The Lambda service encountered an internal error.
   215  	ErrCodeServiceException = "ServiceException"
   216  
   217  	// ErrCodeSubnetIPAddressLimitReachedException for service response error code
   218  	// "SubnetIPAddressLimitReachedException".
   219  	//
   220  	// Lambda was not able to set up VPC access for the Lambda function because
   221  	// one or more configured subnets has no available IP addresses.
   222  	ErrCodeSubnetIPAddressLimitReachedException = "SubnetIPAddressLimitReachedException"
   223  
   224  	// ErrCodeTooManyRequestsException for service response error code
   225  	// "TooManyRequestsException".
   226  	//
   227  	// The request throughput limit was exceeded.
   228  	ErrCodeTooManyRequestsException = "TooManyRequestsException"
   229  
   230  	// ErrCodeUnsupportedMediaTypeException for service response error code
   231  	// "UnsupportedMediaTypeException".
   232  	//
   233  	// The content type of the Invoke request body is not JSON.
   234  	ErrCodeUnsupportedMediaTypeException = "UnsupportedMediaTypeException"
   235  )
   236  
   237  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
   238  	"CodeSigningConfigNotFoundException":            newErrorCodeSigningConfigNotFoundException,
   239  	"CodeStorageExceededException":                  newErrorCodeStorageExceededException,
   240  	"CodeVerificationFailedException":               newErrorCodeVerificationFailedException,
   241  	"EC2AccessDeniedException":                      newErrorEC2AccessDeniedException,
   242  	"EC2ThrottledException":                         newErrorEC2ThrottledException,
   243  	"EC2UnexpectedException":                        newErrorEC2UnexpectedException,
   244  	"EFSIOException":                                newErrorEFSIOException,
   245  	"EFSMountConnectivityException":                 newErrorEFSMountConnectivityException,
   246  	"EFSMountFailureException":                      newErrorEFSMountFailureException,
   247  	"EFSMountTimeoutException":                      newErrorEFSMountTimeoutException,
   248  	"ENILimitReachedException":                      newErrorENILimitReachedException,
   249  	"InvalidCodeSignatureException":                 newErrorInvalidCodeSignatureException,
   250  	"InvalidParameterValueException":                newErrorInvalidParameterValueException,
   251  	"InvalidRequestContentException":                newErrorInvalidRequestContentException,
   252  	"InvalidRuntimeException":                       newErrorInvalidRuntimeException,
   253  	"InvalidSecurityGroupIDException":               newErrorInvalidSecurityGroupIDException,
   254  	"InvalidSubnetIDException":                      newErrorInvalidSubnetIDException,
   255  	"InvalidZipFileException":                       newErrorInvalidZipFileException,
   256  	"KMSAccessDeniedException":                      newErrorKMSAccessDeniedException,
   257  	"KMSDisabledException":                          newErrorKMSDisabledException,
   258  	"KMSInvalidStateException":                      newErrorKMSInvalidStateException,
   259  	"KMSNotFoundException":                          newErrorKMSNotFoundException,
   260  	"PolicyLengthExceededException":                 newErrorPolicyLengthExceededException,
   261  	"PreconditionFailedException":                   newErrorPreconditionFailedException,
   262  	"ProvisionedConcurrencyConfigNotFoundException": newErrorProvisionedConcurrencyConfigNotFoundException,
   263  	"RequestTooLargeException":                      newErrorRequestTooLargeException,
   264  	"ResourceConflictException":                     newErrorResourceConflictException,
   265  	"ResourceInUseException":                        newErrorResourceInUseException,
   266  	"ResourceNotFoundException":                     newErrorResourceNotFoundException,
   267  	"ResourceNotReadyException":                     newErrorResourceNotReadyException,
   268  	"ServiceException":                              newErrorServiceException,
   269  	"SubnetIPAddressLimitReachedException":          newErrorSubnetIPAddressLimitReachedException,
   270  	"TooManyRequestsException":                      newErrorTooManyRequestsException,
   271  	"UnsupportedMediaTypeException":                 newErrorUnsupportedMediaTypeException,
   272  }