AWS SDK for PHP 3.x
  • Namespace
  • Class
Did this page help you? SUBMIT FEEDBACK!

Namespaces

  • Aws
    • AccessAnalyzer
      • Exception
    • Account
      • Exception
    • Acm
      • Exception
    • ACMPCA
      • Exception
    • AlexaForBusiness
      • Exception
    • Amplify
      • Exception
    • AmplifyBackend
      • Exception
    • AmplifyUIBuilder
      • Exception
    • Api
      • ErrorParser
      • Parser
        • Exception
      • Serializer
    • ApiGateway
      • Exception
    • ApiGatewayManagementApi
      • Exception
    • ApiGatewayV2
      • Exception
    • AppConfig
      • Exception
    • AppConfigData
      • Exception
    • Appflow
      • Exception
    • AppIntegrationsService
      • Exception
    • ApplicationAutoScaling
      • Exception
    • ApplicationCostProfiler
      • Exception
    • ApplicationDiscoveryService
      • Exception
    • ApplicationInsights
      • Exception
    • AppMesh
      • Exception
    • AppRegistry
      • Exception
    • AppRunner
      • Exception
    • Appstream
      • Exception
    • AppSync
      • Exception
    • Arn
      • Exception
    • Athena
      • Exception
    • AuditManager
      • Exception
    • AugmentedAIRuntime
      • Exception
    • AutoScaling
      • Exception
    • AutoScalingPlans
      • Exception
    • Backup
      • Exception
    • BackupGateway
      • Exception
    • Batch
      • Exception
    • BillingConductor
      • Exception
    • Braket
      • Exception
    • Budgets
      • Exception
    • Chime
      • Exception
    • ChimeSDKIdentity
      • Exception
    • ChimeSDKMediaPipelines
      • Exception
    • ChimeSDKMeetings
      • Exception
    • ChimeSDKMessaging
      • Exception
    • ClientSideMonitoring
      • Exception
    • Cloud9
      • Exception
    • CloudControlApi
      • Exception
    • CloudDirectory
      • Exception
    • CloudFormation
      • Exception
    • CloudFront
      • Exception
    • CloudHsm
      • Exception
    • CloudHSMV2
      • Exception
    • CloudSearch
      • Exception
    • CloudSearchDomain
      • Exception
    • CloudTrail
      • Exception
    • CloudWatch
      • Exception
    • CloudWatchEvents
      • Exception
    • CloudWatchEvidently
      • Exception
    • CloudWatchLogs
      • Exception
    • CloudWatchRUM
      • Exception
    • CodeArtifact
      • Exception
    • CodeBuild
      • Exception
    • CodeCommit
      • Exception
    • CodeDeploy
      • Exception
    • CodeGuruProfiler
      • Exception
    • CodeGuruReviewer
      • Exception
    • CodePipeline
      • Exception
    • CodeStar
      • Exception
    • CodeStarconnections
      • Exception
    • CodeStarNotifications
      • Exception
    • CognitoIdentity
      • Exception
    • CognitoIdentityProvider
      • Exception
    • CognitoSync
      • Exception
    • Comprehend
      • Exception
    • ComprehendMedical
      • Exception
    • ComputeOptimizer
      • Exception
    • ConfigService
      • Exception
    • Connect
      • Exception
    • ConnectContactLens
      • Exception
    • ConnectParticipant
      • Exception
    • ConnectWisdomService
      • Exception
    • CostandUsageReportService
      • Exception
    • CostExplorer
      • Exception
    • Credentials
    • Crypto
      • Cipher
      • Polyfill
    • CustomerProfiles
      • Exception
    • DatabaseMigrationService
      • Exception
    • DataExchange
      • Exception
    • DataPipeline
      • Exception
    • DataSync
      • Exception
    • DAX
      • Exception
    • DefaultsMode
      • Exception
    • Detective
      • Exception
    • DeviceFarm
      • Exception
    • DevOpsGuru
      • Exception
    • DirectConnect
      • Exception
    • DirectoryService
      • Exception
    • DLM
      • Exception
    • DocDB
      • Exception
    • drs
      • Exception
    • DynamoDb
      • Exception
    • DynamoDbStreams
      • Exception
    • EBS
      • Exception
    • Ec2
      • Exception
    • EC2InstanceConnect
      • Exception
    • Ecr
      • Exception
    • ECRPublic
      • Exception
    • Ecs
      • Exception
    • Efs
      • Exception
    • EKS
      • Exception
    • ElastiCache
      • Exception
    • ElasticBeanstalk
      • Exception
    • ElasticInference
      • Exception
    • ElasticLoadBalancing
      • Exception
    • ElasticLoadBalancingV2
      • Exception
    • ElasticsearchService
      • Exception
    • ElasticTranscoder
      • Exception
    • Emr
      • Exception
    • EMRContainers
      • Exception
    • Endpoint
      • UseDualstackEndpoint
        • Exception
      • UseFipsEndpoint
        • Exception
    • EndpointDiscovery
      • Exception
    • EventBridge
      • Exception
    • Exception
    • finspace
      • Exception
    • FinSpaceData
      • Exception
    • Firehose
      • Exception
    • FIS
      • Exception
    • FMS
      • Exception
    • ForecastQueryService
      • Exception
    • ForecastService
      • Exception
    • FraudDetector
      • Exception
    • FSx
      • Exception
    • GameLift
      • Exception
    • GameSparks
      • Exception
    • Glacier
      • Exception
    • GlobalAccelerator
      • Exception
    • Glue
      • Exception
    • GlueDataBrew
      • Exception
    • Greengrass
      • Exception
    • GreengrassV2
      • Exception
    • GroundStation
      • Exception
    • GuardDuty
      • Exception
    • Handler
      • GuzzleV5
      • GuzzleV6
    • Health
      • Exception
    • HealthLake
      • Exception
    • Honeycode
      • Exception
    • Iam
      • Exception
    • IdentityStore
      • Exception
    • imagebuilder
      • Exception
    • ImportExport
      • Exception
    • Inspector
      • Exception
    • Inspector2
      • Exception
    • Iot
      • Exception
    • IoT1ClickDevicesService
      • Exception
    • IoT1ClickProjects
      • Exception
    • IoTAnalytics
      • Exception
    • IotDataPlane
      • Exception
    • IoTDeviceAdvisor
      • Exception
    • IoTEvents
      • Exception
    • IoTEventsData
      • Exception
    • IoTFleetHub
      • Exception
    • IoTJobsDataPlane
      • Exception
    • IoTSecureTunneling
      • Exception
    • IoTSiteWise
      • Exception
    • IoTThingsGraph
      • Exception
    • IoTTwinMaker
      • Exception
    • IoTWireless
      • Exception
    • IVS
      • Exception
    • ivschat
      • Exception
    • Kafka
      • Exception
    • KafkaConnect
      • Exception
    • kendra
      • Exception
    • Keyspaces
      • Exception
    • Kinesis
      • Exception
    • KinesisAnalytics
      • Exception
    • KinesisAnalyticsV2
      • Exception
    • KinesisVideo
      • Exception
    • KinesisVideoArchivedMedia
      • Exception
    • KinesisVideoMedia
      • Exception
    • KinesisVideoSignalingChannels
      • Exception
    • Kms
      • Exception
    • LakeFormation
      • Exception
    • Lambda
      • Exception
    • LexModelBuildingService
      • Exception
    • LexModelsV2
      • Exception
    • LexRuntimeService
      • Exception
    • LexRuntimeV2
      • Exception
    • LicenseManager
      • Exception
    • Lightsail
      • Exception
    • LocationService
      • Exception
    • LookoutEquipment
      • Exception
    • LookoutforVision
      • Exception
    • LookoutMetrics
      • Exception
    • MachineLearning
      • Exception
    • Macie
      • Exception
    • Macie2
      • Exception
    • ManagedBlockchain
      • Exception
    • ManagedGrafana
      • Exception
    • MarketplaceCatalog
      • Exception
    • MarketplaceCommerceAnalytics
      • Exception
    • MarketplaceEntitlementService
      • Exception
    • MarketplaceMetering
      • Exception
    • MediaConnect
      • Exception
    • MediaConvert
      • Exception
    • MediaLive
      • Exception
    • MediaPackage
      • Exception
    • MediaPackageVod
      • Exception
    • MediaStore
      • Exception
    • MediaStoreData
      • Exception
    • MediaTailor
      • Exception
    • MemoryDB
      • Exception
    • mgn
      • Exception
    • MigrationHub
      • Exception
    • MigrationHubConfig
      • Exception
    • MigrationHubRefactorSpaces
      • Exception
    • MigrationHubStrategyRecommendations
      • Exception
    • Mobile
      • Exception
    • MQ
      • Exception
    • MTurk
      • Exception
    • Multipart
    • MWAA
      • Exception
    • Neptune
      • Exception
    • NetworkFirewall
      • Exception
    • NetworkManager
      • Exception
    • NimbleStudio
      • Exception
    • OpenSearchService
      • Exception
    • OpsWorks
      • Exception
    • OpsWorksCM
      • Exception
    • Organizations
      • Exception
    • Outposts
      • Exception
    • Panorama
      • Exception
    • Personalize
      • Exception
    • PersonalizeEvents
      • Exception
    • PersonalizeRuntime
      • Exception
    • PI
      • Exception
    • Pinpoint
      • Exception
    • PinpointEmail
      • Exception
    • PinpointSMSVoice
      • Exception
    • PinpointSMSVoiceV2
      • Exception
    • Polly
      • Exception
    • Pricing
      • Exception
    • PrometheusService
      • Exception
    • Proton
      • Exception
    • QLDB
      • Exception
    • QLDBSession
      • Exception
    • QuickSight
      • Exception
    • RAM
      • Exception
    • Rds
      • Exception
    • RDSDataService
      • Exception
    • RecycleBin
      • Exception
    • Redshift
      • Exception
    • RedshiftDataAPIService
      • Exception
    • Rekognition
      • Exception
    • ResilienceHub
      • Exception
    • ResourceGroups
      • Exception
    • ResourceGroupsTaggingAPI
      • Exception
    • Retry
      • Exception
    • RoboMaker
      • Exception
    • Route53
      • Exception
    • Route53Domains
      • Exception
    • Route53RecoveryCluster
      • Exception
    • Route53RecoveryControlConfig
      • Exception
    • Route53RecoveryReadiness
      • Exception
    • Route53Resolver
      • Exception
    • S3
      • Crypto
      • Exception
      • RegionalEndpoint
        • Exception
      • UseArnRegion
        • Exception
    • S3Control
      • Exception
    • S3Outposts
      • Exception
    • SageMaker
      • Exception
    • SagemakerEdgeManager
      • Exception
    • SageMakerFeatureStoreRuntime
      • Exception
    • SageMakerRuntime
      • Exception
    • SavingsPlans
      • Exception
    • Schemas
      • Exception
    • SecretsManager
      • Exception
    • SecurityHub
      • Exception
    • ServerlessApplicationRepository
      • Exception
    • ServiceCatalog
      • Exception
    • ServiceDiscovery
      • Exception
    • ServiceQuotas
      • Exception
    • Ses
      • Exception
    • SesV2
      • Exception
    • Sfn
      • Exception
    • Shield
      • Exception
    • Signature
    • signer
      • Exception
    • Sms
      • Exception
    • SnowBall
      • Exception
    • SnowDeviceManagement
      • Exception
    • Sns
      • Exception
    • Sqs
      • Exception
    • Ssm
      • Exception
    • SSMContacts
      • Exception
    • SSMIncidents
      • Exception
    • SSO
      • Exception
    • SSOAdmin
      • Exception
    • SSOOIDC
      • Exception
    • StorageGateway
      • Exception
    • Sts
      • Exception
      • RegionalEndpoints
        • Exception
    • Support
      • Exception
    • Swf
      • Exception
    • Synthetics
      • Exception
    • Textract
      • Exception
    • TimestreamQuery
      • Exception
    • TimestreamWrite
      • Exception
    • TranscribeService
      • Exception
    • Transfer
      • Exception
    • Translate
      • Exception
    • VoiceID
      • Exception
    • Waf
      • Exception
    • WafRegional
      • Exception
    • WAFV2
      • Exception
    • WellArchitected
      • Exception
    • WorkDocs
      • Exception
    • WorkLink
      • Exception
    • WorkMail
      • Exception
    • WorkMailMessageFlow
      • Exception
    • WorkSpaces
      • Exception
    • WorkSpacesWeb
      • Exception
    • XRay
      • Exception
  • GuzzleHttp
    • Promise
    • Psr7
  • Psr
    • Http
      • Message

Exceptions

  • LambdaException

Class LambdaException

Exception
Extended by RuntimeException
Extended by Aws\Exception\AwsException implements Aws\MonitoringEventsInterface, Aws\ResponseContainerInterface, ArrayAccess uses Aws\HasDataTrait, Aws\HasMonitoringEventsTrait
Extended by 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

appendMonitoringEvent(), getMonitoringEvents(), prependMonitoringEvent()

Methods used from Aws\HasDataTrait

count(), getIterator(), offsetExists(), offsetGet(), offsetSet(), offsetUnset(), toArray()

Methods used from Aws\HasMonitoringEventsTrait

appendMonitoringEvent(), getMonitoringEvents(), prependMonitoringEvent()

Expected Exception Codes

The following are the known exception codes and corresponding data shapes that this service may return as part of an error response.

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

You have exceeded your maximum total code size per account. Learn more

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

Lambda was throttled by Amazon EC2 during Lambda function initialization using the execution role provided for the Lambda function.

Members
Message
  • Type: string
Type
  • Type: string

EC2UnexpectedException

[
    'EC2ErrorCode' => '<string>',
    'Message' => '<string>',
    'Type' => '<string>',
]
Description

Lambda received an unexpected 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 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 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 function was able to make 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 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.

Members
Message
  • Type: string
Type
  • Type: string

InvalidCodeSignatureException

[
    'Message' => '<string>',
    'Type' => '<string>',
]
Description

The code signature failed the integrity check. Lambda always blocks deployment if the integrity check fails, even if 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 invalid.

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 invalid.

Members
Message
  • Type: string
Type
  • Type: string

InvalidSubnetIDException

[
    'Message' => '<string>',
    'Type' => '<string>',
]
Description

The Subnet ID provided in the Lambda function VPC configuration is invalid.

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 was unable to 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 was unable to 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 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.

Members
Message
  • Type: string
Type
  • Type: string

KMSNotFoundException

[
    'Message' => '<string>',
    'Type' => '<string>',
]
Description

Lambda was unable to 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. Learn more

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 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

RequestTooLargeException

[
    'Type' => '<string>',
    'message' => '<string>',
]
Description

The request payload exceeded the Invoke request body JSON input limit. For more information, see Limits.

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 attempted to update an EventSource Mapping in CREATING, or tried to delete a EventSource mapping currently in the UPDATING state.

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

SubnetIPAddressLimitReachedException

[
    'Message' => '<string>',
    'Type' => '<string>',
]
Description

Lambda was not able to 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',
    'Type' => '<string>',
    'message' => '<string>',
    'retryAfterSeconds' => '<string>',
]
Description

The request throughput limit was exceeded.

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
AWS SDK for PHP 3.x API documentation generated by ApiGen