1// Code generated by smithy-go-codegen DO NOT EDIT. 2 3package types 4 5import ( 6 "fmt" 7 smithy "github.com/aws/smithy-go" 8) 9 10// The specified code signing configuration does not exist. 11type CodeSigningConfigNotFoundException struct { 12 Message *string 13 14 Type *string 15} 16 17func (e *CodeSigningConfigNotFoundException) Error() string { 18 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 19} 20func (e *CodeSigningConfigNotFoundException) ErrorMessage() string { 21 if e.Message == nil { 22 return "" 23 } 24 return *e.Message 25} 26func (e *CodeSigningConfigNotFoundException) ErrorCode() string { 27 return "CodeSigningConfigNotFoundException" 28} 29func (e *CodeSigningConfigNotFoundException) ErrorFault() smithy.ErrorFault { 30 return smithy.FaultClient 31} 32 33// You have exceeded your maximum total code size per account. Learn more 34// (https://docs.aws.amazon.com/lambda/latest/dg/limits.html) 35type CodeStorageExceededException struct { 36 Message *string 37 38 Type *string 39} 40 41func (e *CodeStorageExceededException) Error() string { 42 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 43} 44func (e *CodeStorageExceededException) ErrorMessage() string { 45 if e.Message == nil { 46 return "" 47 } 48 return *e.Message 49} 50func (e *CodeStorageExceededException) ErrorCode() string { return "CodeStorageExceededException" } 51func (e *CodeStorageExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 52 53// The code signature failed one or more of the validation checks for signature 54// mismatch or expiry, and the code signing policy is set to ENFORCE. Lambda blocks 55// the deployment. 56type CodeVerificationFailedException struct { 57 Message *string 58 59 Type *string 60} 61 62func (e *CodeVerificationFailedException) Error() string { 63 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 64} 65func (e *CodeVerificationFailedException) ErrorMessage() string { 66 if e.Message == nil { 67 return "" 68 } 69 return *e.Message 70} 71func (e *CodeVerificationFailedException) ErrorCode() string { 72 return "CodeVerificationFailedException" 73} 74func (e *CodeVerificationFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 75 76// Need additional permissions to configure VPC settings. 77type EC2AccessDeniedException struct { 78 Message *string 79 80 Type *string 81} 82 83func (e *EC2AccessDeniedException) Error() string { 84 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 85} 86func (e *EC2AccessDeniedException) ErrorMessage() string { 87 if e.Message == nil { 88 return "" 89 } 90 return *e.Message 91} 92func (e *EC2AccessDeniedException) ErrorCode() string { return "EC2AccessDeniedException" } 93func (e *EC2AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } 94 95// AWS Lambda was throttled by Amazon EC2 during Lambda function initialization 96// using the execution role provided for the Lambda function. 97type EC2ThrottledException struct { 98 Message *string 99 100 Type *string 101} 102 103func (e *EC2ThrottledException) Error() string { 104 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 105} 106func (e *EC2ThrottledException) ErrorMessage() string { 107 if e.Message == nil { 108 return "" 109 } 110 return *e.Message 111} 112func (e *EC2ThrottledException) ErrorCode() string { return "EC2ThrottledException" } 113func (e *EC2ThrottledException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } 114 115// AWS Lambda received an unexpected EC2 client exception while setting up for the 116// Lambda function. 117type EC2UnexpectedException struct { 118 Message *string 119 120 Type *string 121 EC2ErrorCode *string 122} 123 124func (e *EC2UnexpectedException) Error() string { 125 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 126} 127func (e *EC2UnexpectedException) ErrorMessage() string { 128 if e.Message == nil { 129 return "" 130 } 131 return *e.Message 132} 133func (e *EC2UnexpectedException) ErrorCode() string { return "EC2UnexpectedException" } 134func (e *EC2UnexpectedException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } 135 136// An error occured when reading from or writing to a connected file system. 137type EFSIOException struct { 138 Message *string 139 140 Type *string 141} 142 143func (e *EFSIOException) Error() string { 144 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 145} 146func (e *EFSIOException) ErrorMessage() string { 147 if e.Message == nil { 148 return "" 149 } 150 return *e.Message 151} 152func (e *EFSIOException) ErrorCode() string { return "EFSIOException" } 153func (e *EFSIOException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 154 155// The function couldn't make a network connection to the configured file system. 156type EFSMountConnectivityException struct { 157 Message *string 158 159 Type *string 160} 161 162func (e *EFSMountConnectivityException) Error() string { 163 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 164} 165func (e *EFSMountConnectivityException) ErrorMessage() string { 166 if e.Message == nil { 167 return "" 168 } 169 return *e.Message 170} 171func (e *EFSMountConnectivityException) ErrorCode() string { return "EFSMountConnectivityException" } 172func (e *EFSMountConnectivityException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 173 174// The function couldn't mount the configured file system due to a permission or 175// configuration issue. 176type EFSMountFailureException struct { 177 Message *string 178 179 Type *string 180} 181 182func (e *EFSMountFailureException) Error() string { 183 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 184} 185func (e *EFSMountFailureException) ErrorMessage() string { 186 if e.Message == nil { 187 return "" 188 } 189 return *e.Message 190} 191func (e *EFSMountFailureException) ErrorCode() string { return "EFSMountFailureException" } 192func (e *EFSMountFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 193 194// The function was able to make a network connection to the configured file 195// system, but the mount operation timed out. 196type EFSMountTimeoutException struct { 197 Message *string 198 199 Type *string 200} 201 202func (e *EFSMountTimeoutException) Error() string { 203 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 204} 205func (e *EFSMountTimeoutException) ErrorMessage() string { 206 if e.Message == nil { 207 return "" 208 } 209 return *e.Message 210} 211func (e *EFSMountTimeoutException) ErrorCode() string { return "EFSMountTimeoutException" } 212func (e *EFSMountTimeoutException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 213 214// AWS Lambda was not able to create an elastic network interface in the VPC, 215// specified as part of Lambda function configuration, because the limit for 216// network interfaces has been reached. 217type ENILimitReachedException struct { 218 Message *string 219 220 Type *string 221} 222 223func (e *ENILimitReachedException) Error() string { 224 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 225} 226func (e *ENILimitReachedException) ErrorMessage() string { 227 if e.Message == nil { 228 return "" 229 } 230 return *e.Message 231} 232func (e *ENILimitReachedException) ErrorCode() string { return "ENILimitReachedException" } 233func (e *ENILimitReachedException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } 234 235// The code signature failed the integrity check. Lambda always blocks deployment 236// if the integrity check fails, even if code signing policy is set to WARN. 237type InvalidCodeSignatureException struct { 238 Message *string 239 240 Type *string 241} 242 243func (e *InvalidCodeSignatureException) Error() string { 244 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 245} 246func (e *InvalidCodeSignatureException) ErrorMessage() string { 247 if e.Message == nil { 248 return "" 249 } 250 return *e.Message 251} 252func (e *InvalidCodeSignatureException) ErrorCode() string { return "InvalidCodeSignatureException" } 253func (e *InvalidCodeSignatureException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 254 255// One of the parameters in the request is invalid. 256type InvalidParameterValueException struct { 257 Message *string 258 259 Type *string 260} 261 262func (e *InvalidParameterValueException) Error() string { 263 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 264} 265func (e *InvalidParameterValueException) ErrorMessage() string { 266 if e.Message == nil { 267 return "" 268 } 269 return *e.Message 270} 271func (e *InvalidParameterValueException) ErrorCode() string { return "InvalidParameterValueException" } 272func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 273 274// The request body could not be parsed as JSON. 275type InvalidRequestContentException struct { 276 Message *string 277 278 Type *string 279} 280 281func (e *InvalidRequestContentException) Error() string { 282 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 283} 284func (e *InvalidRequestContentException) ErrorMessage() string { 285 if e.Message == nil { 286 return "" 287 } 288 return *e.Message 289} 290func (e *InvalidRequestContentException) ErrorCode() string { return "InvalidRequestContentException" } 291func (e *InvalidRequestContentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 292 293// The runtime or runtime version specified is not supported. 294type InvalidRuntimeException struct { 295 Message *string 296 297 Type *string 298} 299 300func (e *InvalidRuntimeException) Error() string { 301 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 302} 303func (e *InvalidRuntimeException) ErrorMessage() string { 304 if e.Message == nil { 305 return "" 306 } 307 return *e.Message 308} 309func (e *InvalidRuntimeException) ErrorCode() string { return "InvalidRuntimeException" } 310func (e *InvalidRuntimeException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } 311 312// The Security Group ID provided in the Lambda function VPC configuration is 313// invalid. 314type InvalidSecurityGroupIDException struct { 315 Message *string 316 317 Type *string 318} 319 320func (e *InvalidSecurityGroupIDException) Error() string { 321 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 322} 323func (e *InvalidSecurityGroupIDException) ErrorMessage() string { 324 if e.Message == nil { 325 return "" 326 } 327 return *e.Message 328} 329func (e *InvalidSecurityGroupIDException) ErrorCode() string { 330 return "InvalidSecurityGroupIDException" 331} 332func (e *InvalidSecurityGroupIDException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } 333 334// The Subnet ID provided in the Lambda function VPC configuration is invalid. 335type InvalidSubnetIDException struct { 336 Message *string 337 338 Type *string 339} 340 341func (e *InvalidSubnetIDException) Error() string { 342 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 343} 344func (e *InvalidSubnetIDException) ErrorMessage() string { 345 if e.Message == nil { 346 return "" 347 } 348 return *e.Message 349} 350func (e *InvalidSubnetIDException) ErrorCode() string { return "InvalidSubnetIDException" } 351func (e *InvalidSubnetIDException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } 352 353// AWS Lambda could not unzip the deployment package. 354type InvalidZipFileException struct { 355 Message *string 356 357 Type *string 358} 359 360func (e *InvalidZipFileException) Error() string { 361 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 362} 363func (e *InvalidZipFileException) ErrorMessage() string { 364 if e.Message == nil { 365 return "" 366 } 367 return *e.Message 368} 369func (e *InvalidZipFileException) ErrorCode() string { return "InvalidZipFileException" } 370func (e *InvalidZipFileException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } 371 372// Lambda was unable to decrypt the environment variables because KMS access was 373// denied. Check the Lambda function's KMS permissions. 374type KMSAccessDeniedException struct { 375 Message *string 376 377 Type *string 378} 379 380func (e *KMSAccessDeniedException) Error() string { 381 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 382} 383func (e *KMSAccessDeniedException) ErrorMessage() string { 384 if e.Message == nil { 385 return "" 386 } 387 return *e.Message 388} 389func (e *KMSAccessDeniedException) ErrorCode() string { return "KMSAccessDeniedException" } 390func (e *KMSAccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } 391 392// Lambda was unable to decrypt the environment variables because the KMS key used 393// is disabled. Check the Lambda function's KMS key settings. 394type KMSDisabledException struct { 395 Message *string 396 397 Type *string 398} 399 400func (e *KMSDisabledException) Error() string { 401 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 402} 403func (e *KMSDisabledException) ErrorMessage() string { 404 if e.Message == nil { 405 return "" 406 } 407 return *e.Message 408} 409func (e *KMSDisabledException) ErrorCode() string { return "KMSDisabledException" } 410func (e *KMSDisabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } 411 412// Lambda was unable to decrypt the environment variables because the KMS key used 413// is in an invalid state for Decrypt. Check the function's KMS key settings. 414type KMSInvalidStateException struct { 415 Message *string 416 417 Type *string 418} 419 420func (e *KMSInvalidStateException) Error() string { 421 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 422} 423func (e *KMSInvalidStateException) ErrorMessage() string { 424 if e.Message == nil { 425 return "" 426 } 427 return *e.Message 428} 429func (e *KMSInvalidStateException) ErrorCode() string { return "KMSInvalidStateException" } 430func (e *KMSInvalidStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } 431 432// Lambda was unable to decrypt the environment variables because the KMS key was 433// not found. Check the function's KMS key settings. 434type KMSNotFoundException struct { 435 Message *string 436 437 Type *string 438} 439 440func (e *KMSNotFoundException) Error() string { 441 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 442} 443func (e *KMSNotFoundException) ErrorMessage() string { 444 if e.Message == nil { 445 return "" 446 } 447 return *e.Message 448} 449func (e *KMSNotFoundException) ErrorCode() string { return "KMSNotFoundException" } 450func (e *KMSNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } 451 452// The permissions policy for the resource is too large. Learn more 453// (https://docs.aws.amazon.com/lambda/latest/dg/limits.html) 454type PolicyLengthExceededException struct { 455 Message *string 456 457 Type *string 458} 459 460func (e *PolicyLengthExceededException) Error() string { 461 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 462} 463func (e *PolicyLengthExceededException) ErrorMessage() string { 464 if e.Message == nil { 465 return "" 466 } 467 return *e.Message 468} 469func (e *PolicyLengthExceededException) ErrorCode() string { return "PolicyLengthExceededException" } 470func (e *PolicyLengthExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 471 472// The RevisionId provided does not match the latest RevisionId for the Lambda 473// function or alias. Call the GetFunction or the GetAlias API to retrieve the 474// latest RevisionId for your resource. 475type PreconditionFailedException struct { 476 Message *string 477 478 Type *string 479} 480 481func (e *PreconditionFailedException) Error() string { 482 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 483} 484func (e *PreconditionFailedException) ErrorMessage() string { 485 if e.Message == nil { 486 return "" 487 } 488 return *e.Message 489} 490func (e *PreconditionFailedException) ErrorCode() string { return "PreconditionFailedException" } 491func (e *PreconditionFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 492 493// The specified configuration does not exist. 494type ProvisionedConcurrencyConfigNotFoundException struct { 495 Message *string 496 497 Type *string 498} 499 500func (e *ProvisionedConcurrencyConfigNotFoundException) Error() string { 501 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 502} 503func (e *ProvisionedConcurrencyConfigNotFoundException) ErrorMessage() string { 504 if e.Message == nil { 505 return "" 506 } 507 return *e.Message 508} 509func (e *ProvisionedConcurrencyConfigNotFoundException) ErrorCode() string { 510 return "ProvisionedConcurrencyConfigNotFoundException" 511} 512func (e *ProvisionedConcurrencyConfigNotFoundException) ErrorFault() smithy.ErrorFault { 513 return smithy.FaultClient 514} 515 516// The request payload exceeded the Invoke request body JSON input limit. For more 517// information, see Limits 518// (https://docs.aws.amazon.com/lambda/latest/dg/limits.html). 519type RequestTooLargeException struct { 520 Message *string 521 522 Type *string 523} 524 525func (e *RequestTooLargeException) Error() string { 526 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 527} 528func (e *RequestTooLargeException) ErrorMessage() string { 529 if e.Message == nil { 530 return "" 531 } 532 return *e.Message 533} 534func (e *RequestTooLargeException) ErrorCode() string { return "RequestTooLargeException" } 535func (e *RequestTooLargeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 536 537// The resource already exists, or another operation is in progress. 538type ResourceConflictException struct { 539 Message *string 540 541 Type *string 542} 543 544func (e *ResourceConflictException) Error() string { 545 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 546} 547func (e *ResourceConflictException) ErrorMessage() string { 548 if e.Message == nil { 549 return "" 550 } 551 return *e.Message 552} 553func (e *ResourceConflictException) ErrorCode() string { return "ResourceConflictException" } 554func (e *ResourceConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 555 556// The operation conflicts with the resource's availability. For example, you 557// attempted to update an EventSource Mapping in CREATING, or tried to delete a 558// EventSource mapping currently in the UPDATING state. 559type ResourceInUseException struct { 560 Message *string 561 562 Type *string 563} 564 565func (e *ResourceInUseException) Error() string { 566 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 567} 568func (e *ResourceInUseException) ErrorMessage() string { 569 if e.Message == nil { 570 return "" 571 } 572 return *e.Message 573} 574func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } 575func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 576 577// The resource specified in the request does not exist. 578type ResourceNotFoundException struct { 579 Message *string 580 581 Type *string 582} 583 584func (e *ResourceNotFoundException) Error() string { 585 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 586} 587func (e *ResourceNotFoundException) ErrorMessage() string { 588 if e.Message == nil { 589 return "" 590 } 591 return *e.Message 592} 593func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } 594func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 595 596// The function is inactive and its VPC connection is no longer available. Wait for 597// the VPC connection to reestablish and try again. 598type ResourceNotReadyException struct { 599 Message *string 600 601 Type *string 602} 603 604func (e *ResourceNotReadyException) Error() string { 605 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 606} 607func (e *ResourceNotReadyException) ErrorMessage() string { 608 if e.Message == nil { 609 return "" 610 } 611 return *e.Message 612} 613func (e *ResourceNotReadyException) ErrorCode() string { return "ResourceNotReadyException" } 614func (e *ResourceNotReadyException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } 615 616// The AWS Lambda service encountered an internal error. 617type ServiceException struct { 618 Message *string 619 620 Type *string 621} 622 623func (e *ServiceException) Error() string { 624 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 625} 626func (e *ServiceException) ErrorMessage() string { 627 if e.Message == nil { 628 return "" 629 } 630 return *e.Message 631} 632func (e *ServiceException) ErrorCode() string { return "ServiceException" } 633func (e *ServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } 634 635// AWS Lambda was not able to set up VPC access for the Lambda function because one 636// or more configured subnets has no available IP addresses. 637type SubnetIPAddressLimitReachedException struct { 638 Message *string 639 640 Type *string 641} 642 643func (e *SubnetIPAddressLimitReachedException) Error() string { 644 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 645} 646func (e *SubnetIPAddressLimitReachedException) ErrorMessage() string { 647 if e.Message == nil { 648 return "" 649 } 650 return *e.Message 651} 652func (e *SubnetIPAddressLimitReachedException) ErrorCode() string { 653 return "SubnetIPAddressLimitReachedException" 654} 655func (e *SubnetIPAddressLimitReachedException) ErrorFault() smithy.ErrorFault { 656 return smithy.FaultServer 657} 658 659// The request throughput limit was exceeded. 660type TooManyRequestsException struct { 661 Message *string 662 663 RetryAfterSeconds *string 664 Type *string 665 Reason ThrottleReason 666} 667 668func (e *TooManyRequestsException) Error() string { 669 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 670} 671func (e *TooManyRequestsException) ErrorMessage() string { 672 if e.Message == nil { 673 return "" 674 } 675 return *e.Message 676} 677func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } 678func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 679 680// The content type of the Invoke request body is not JSON. 681type UnsupportedMediaTypeException struct { 682 Message *string 683 684 Type *string 685} 686 687func (e *UnsupportedMediaTypeException) Error() string { 688 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 689} 690func (e *UnsupportedMediaTypeException) ErrorMessage() string { 691 if e.Message == nil { 692 return "" 693 } 694 return *e.Message 695} 696func (e *UnsupportedMediaTypeException) ErrorCode() string { return "UnsupportedMediaTypeException" } 697func (e *UnsupportedMediaTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 698