errors.go 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
  2. package lambda
  3. const (
  4. // ErrCodeCodeStorageExceededException for service response error code
  5. // "CodeStorageExceededException".
  6. //
  7. // You have exceeded your maximum total code size per account. Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html)
  8. ErrCodeCodeStorageExceededException = "CodeStorageExceededException"
  9. // ErrCodeEC2AccessDeniedException for service response error code
  10. // "EC2AccessDeniedException".
  11. //
  12. // Need additional permissions to configure VPC settings.
  13. ErrCodeEC2AccessDeniedException = "EC2AccessDeniedException"
  14. // ErrCodeEC2ThrottledException for service response error code
  15. // "EC2ThrottledException".
  16. //
  17. // AWS Lambda was throttled by Amazon EC2 during Lambda function initialization
  18. // using the execution role provided for the Lambda function.
  19. ErrCodeEC2ThrottledException = "EC2ThrottledException"
  20. // ErrCodeEC2UnexpectedException for service response error code
  21. // "EC2UnexpectedException".
  22. //
  23. // AWS Lambda received an unexpected EC2 client exception while setting up for
  24. // the Lambda function.
  25. ErrCodeEC2UnexpectedException = "EC2UnexpectedException"
  26. // ErrCodeENILimitReachedException for service response error code
  27. // "ENILimitReachedException".
  28. //
  29. // AWS Lambda was not able to create an Elastic Network Interface (ENI) in the
  30. // VPC, specified as part of Lambda function configuration, because the limit
  31. // for network interfaces has been reached.
  32. ErrCodeENILimitReachedException = "ENILimitReachedException"
  33. // ErrCodeInvalidParameterValueException for service response error code
  34. // "InvalidParameterValueException".
  35. //
  36. // One of the parameters in the request is invalid. For example, if you provided
  37. // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration
  38. // API, that AWS Lambda is unable to assume you will get this exception.
  39. ErrCodeInvalidParameterValueException = "InvalidParameterValueException"
  40. // ErrCodeInvalidRequestContentException for service response error code
  41. // "InvalidRequestContentException".
  42. //
  43. // The request body could not be parsed as JSON.
  44. ErrCodeInvalidRequestContentException = "InvalidRequestContentException"
  45. // ErrCodeInvalidRuntimeException for service response error code
  46. // "InvalidRuntimeException".
  47. //
  48. // The runtime or runtime version specified is not supported.
  49. ErrCodeInvalidRuntimeException = "InvalidRuntimeException"
  50. // ErrCodeInvalidSecurityGroupIDException for service response error code
  51. // "InvalidSecurityGroupIDException".
  52. //
  53. // The Security Group ID provided in the Lambda function VPC configuration is
  54. // invalid.
  55. ErrCodeInvalidSecurityGroupIDException = "InvalidSecurityGroupIDException"
  56. // ErrCodeInvalidSubnetIDException for service response error code
  57. // "InvalidSubnetIDException".
  58. //
  59. // The Subnet ID provided in the Lambda function VPC configuration is invalid.
  60. ErrCodeInvalidSubnetIDException = "InvalidSubnetIDException"
  61. // ErrCodeInvalidZipFileException for service response error code
  62. // "InvalidZipFileException".
  63. //
  64. // AWS Lambda could not unzip the deployment package.
  65. ErrCodeInvalidZipFileException = "InvalidZipFileException"
  66. // ErrCodeKMSAccessDeniedException for service response error code
  67. // "KMSAccessDeniedException".
  68. //
  69. // Lambda was unable to decrypt the environment variables because KMS access
  70. // was denied. Check the Lambda function's KMS permissions.
  71. ErrCodeKMSAccessDeniedException = "KMSAccessDeniedException"
  72. // ErrCodeKMSDisabledException for service response error code
  73. // "KMSDisabledException".
  74. //
  75. // Lambda was unable to decrypt the environment variables because the KMS key
  76. // used is disabled. Check the Lambda function's KMS key settings.
  77. ErrCodeKMSDisabledException = "KMSDisabledException"
  78. // ErrCodeKMSInvalidStateException for service response error code
  79. // "KMSInvalidStateException".
  80. //
  81. // Lambda was unable to decrypt the environment variables because the KMS key
  82. // used is in an invalid state for Decrypt. Check the function's KMS key settings.
  83. ErrCodeKMSInvalidStateException = "KMSInvalidStateException"
  84. // ErrCodeKMSNotFoundException for service response error code
  85. // "KMSNotFoundException".
  86. //
  87. // Lambda was unable to decrypt the environment variables because the KMS key
  88. // was not found. Check the function's KMS key settings.
  89. ErrCodeKMSNotFoundException = "KMSNotFoundException"
  90. // ErrCodePolicyLengthExceededException for service response error code
  91. // "PolicyLengthExceededException".
  92. //
  93. // Lambda function access policy is limited to 20 KB.
  94. ErrCodePolicyLengthExceededException = "PolicyLengthExceededException"
  95. // ErrCodePreconditionFailedException for service response error code
  96. // "PreconditionFailedException".
  97. //
  98. // The RevisionId provided does not match the latest RevisionId for the Lambda
  99. // function or alias. Call the GetFunction or the GetAlias API to retrieve the
  100. // latest RevisionId for your resource.
  101. ErrCodePreconditionFailedException = "PreconditionFailedException"
  102. // ErrCodeRequestTooLargeException for service response error code
  103. // "RequestTooLargeException".
  104. //
  105. // The request payload exceeded the Invoke request body JSON input limit. For
  106. // more information, see Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html).
  107. ErrCodeRequestTooLargeException = "RequestTooLargeException"
  108. // ErrCodeResourceConflictException for service response error code
  109. // "ResourceConflictException".
  110. //
  111. // The resource already exists.
  112. ErrCodeResourceConflictException = "ResourceConflictException"
  113. // ErrCodeResourceInUseException for service response error code
  114. // "ResourceInUseException".
  115. //
  116. // The operation conflicts with the resource's availability. For example, you
  117. // attempted to update an EventSource Mapping in CREATING, or tried to delete
  118. // a EventSource mapping currently in the UPDATING state.
  119. ErrCodeResourceInUseException = "ResourceInUseException"
  120. // ErrCodeResourceNotFoundException for service response error code
  121. // "ResourceNotFoundException".
  122. //
  123. // The resource (for example, a Lambda function or access policy statement)
  124. // specified in the request does not exist.
  125. ErrCodeResourceNotFoundException = "ResourceNotFoundException"
  126. // ErrCodeServiceException for service response error code
  127. // "ServiceException".
  128. //
  129. // The AWS Lambda service encountered an internal error.
  130. ErrCodeServiceException = "ServiceException"
  131. // ErrCodeSubnetIPAddressLimitReachedException for service response error code
  132. // "SubnetIPAddressLimitReachedException".
  133. //
  134. // AWS Lambda was not able to set up VPC access for the Lambda function because
  135. // one or more configured subnets has no available IP addresses.
  136. ErrCodeSubnetIPAddressLimitReachedException = "SubnetIPAddressLimitReachedException"
  137. // ErrCodeTooManyRequestsException for service response error code
  138. // "TooManyRequestsException".
  139. //
  140. // Request throughput limit exceeded.
  141. ErrCodeTooManyRequestsException = "TooManyRequestsException"
  142. // ErrCodeUnsupportedMediaTypeException for service response error code
  143. // "UnsupportedMediaTypeException".
  144. //
  145. // The content type of the Invoke request body is not JSON.
  146. ErrCodeUnsupportedMediaTypeException = "UnsupportedMediaTypeException"
  147. )