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
    • BackupStorage
      • 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
    • ConnectCampaignService
      • 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
    • EMRServerless
      • 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
    • LicenseManagerUserSubscriptions
      • Exception
    • Lightsail
      • Exception
    • LocationService
      • Exception
    • LookoutEquipment
      • Exception
    • LookoutforVision
      • Exception
    • LookoutMetrics
      • Exception
    • MachineLearning
      • Exception
    • Macie
      • Exception
    • Macie2
      • Exception
    • MainframeModernization
      • 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
    • PrivateNetworks
      • Exception
    • PrometheusService
      • Exception
    • Proton
      • Exception
    • QLDB
      • Exception
    • QLDBSession
      • Exception
    • QuickSight
      • Exception
    • RAM
      • Exception
    • Rds
      • Exception
    • RDSDataService
      • Exception
    • RecycleBin
      • Exception
    • Redshift
      • Exception
    • RedshiftDataAPIService
      • Exception
    • RedshiftServerless
      • Exception
    • Rekognition
      • Exception
    • ResilienceHub
      • Exception
    • ResourceGroups
      • Exception
    • ResourceGroupsTaggingAPI
      • Exception
    • Retry
      • Exception
    • RoboMaker
      • Exception
    • RolesAnywhere
      • 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
    • Script
      • Composer
    • 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

Classes

  • Aws\AbstractConfigurationProvider
  • Aws\AccessAnalyzer\AccessAnalyzerClient
  • Aws\Account\AccountClient
  • Aws\Acm\AcmClient
  • Aws\ACMPCA\ACMPCAClient
  • Aws\AlexaForBusiness\AlexaForBusinessClient
  • Aws\Amplify\AmplifyClient
  • Aws\AmplifyBackend\AmplifyBackendClient
  • Aws\AmplifyUIBuilder\AmplifyUIBuilderClient
  • Aws\Api\AbstractModel
  • Aws\Api\ApiProvider
  • Aws\Api\DateTimeResult
  • Aws\Api\DocModel
  • Aws\Api\ErrorParser\AbstractErrorParser
  • Aws\Api\ErrorParser\JsonRpcErrorParser
  • Aws\Api\ErrorParser\RestJsonErrorParser
  • Aws\Api\ErrorParser\XmlErrorParser
  • Aws\Api\ListShape
  • Aws\Api\MapShape
  • Aws\Api\Operation
  • Aws\Api\Parser\Crc32ValidatingParser
  • Aws\Api\Parser\DecodingEventStreamIterator
  • Aws\Api\Parser\EventParsingIterator
  • Aws\Api\Parser\JsonParser
  • Aws\Api\Parser\JsonRpcParser
  • Aws\Api\Parser\QueryParser
  • Aws\Api\Parser\RestJsonParser
  • Aws\Api\Parser\RestXmlParser
  • Aws\Api\Parser\XmlParser
  • Aws\Api\Serializer\XmlBody
  • Aws\Api\Service
  • Aws\Api\Shape
  • Aws\Api\ShapeMap
  • Aws\Api\StructureShape
  • Aws\Api\TimestampShape
  • Aws\Api\Validator
  • Aws\ApiGateway\ApiGatewayClient
  • Aws\ApiGatewayManagementApi\ApiGatewayManagementApiClient
  • Aws\ApiGatewayV2\ApiGatewayV2Client
  • Aws\AppConfig\AppConfigClient
  • Aws\AppConfigData\AppConfigDataClient
  • Aws\Appflow\AppflowClient
  • Aws\AppIntegrationsService\AppIntegrationsServiceClient
  • Aws\ApplicationAutoScaling\ApplicationAutoScalingClient
  • Aws\ApplicationCostProfiler\ApplicationCostProfilerClient
  • Aws\ApplicationDiscoveryService\ApplicationDiscoveryServiceClient
  • Aws\ApplicationInsights\ApplicationInsightsClient
  • Aws\AppMesh\AppMeshClient
  • Aws\AppRegistry\AppRegistryClient
  • Aws\AppRunner\AppRunnerClient
  • Aws\Appstream\AppstreamClient
  • Aws\AppSync\AppSyncClient
  • Aws\Athena\AthenaClient
  • Aws\AuditManager\AuditManagerClient
  • Aws\AugmentedAIRuntime\AugmentedAIRuntimeClient
  • Aws\AutoScaling\AutoScalingClient
  • Aws\AutoScalingPlans\AutoScalingPlansClient
  • Aws\AwsClient
  • Aws\Backup\BackupClient
  • Aws\BackupGateway\BackupGatewayClient
  • Aws\BackupStorage\BackupStorageClient
  • Aws\Batch\BatchClient
  • Aws\BillingConductor\BillingConductorClient
  • Aws\Braket\BraketClient
  • Aws\Budgets\BudgetsClient
  • Aws\Chime\ChimeClient
  • Aws\ChimeSDKIdentity\ChimeSDKIdentityClient
  • Aws\ChimeSDKMediaPipelines\ChimeSDKMediaPipelinesClient
  • Aws\ChimeSDKMeetings\ChimeSDKMeetingsClient
  • Aws\ChimeSDKMessaging\ChimeSDKMessagingClient
  • Aws\ClientResolver
  • Aws\ClientSideMonitoring\Configuration
  • Aws\ClientSideMonitoring\ConfigurationProvider
  • Aws\Cloud9\Cloud9Client
  • Aws\CloudControlApi\CloudControlApiClient
  • Aws\CloudDirectory\CloudDirectoryClient
  • Aws\CloudFormation\CloudFormationClient
  • Aws\CloudFront\CloudFrontClient
  • Aws\CloudFront\CookieSigner
  • Aws\CloudFront\UrlSigner
  • Aws\CloudHsm\CloudHsmClient
  • Aws\CloudHSMV2\CloudHSMV2Client
  • Aws\CloudSearch\CloudSearchClient
  • Aws\CloudSearchDomain\CloudSearchDomainClient
  • Aws\CloudTrail\CloudTrailClient
  • Aws\CloudTrail\LogFileIterator
  • Aws\CloudTrail\LogFileReader
  • Aws\CloudTrail\LogRecordIterator
  • Aws\CloudWatch\CloudWatchClient
  • Aws\CloudWatchEvents\CloudWatchEventsClient
  • Aws\CloudWatchEvidently\CloudWatchEvidentlyClient
  • Aws\CloudWatchLogs\CloudWatchLogsClient
  • Aws\CloudWatchRUM\CloudWatchRUMClient
  • Aws\CodeArtifact\CodeArtifactClient
  • Aws\CodeBuild\CodeBuildClient
  • Aws\CodeCommit\CodeCommitClient
  • Aws\CodeDeploy\CodeDeployClient
  • Aws\CodeGuruProfiler\CodeGuruProfilerClient
  • Aws\CodeGuruReviewer\CodeGuruReviewerClient
  • Aws\CodePipeline\CodePipelineClient
  • Aws\CodeStar\CodeStarClient
  • Aws\CodeStarconnections\CodeStarconnectionsClient
  • Aws\CodeStarNotifications\CodeStarNotificationsClient
  • Aws\CognitoIdentity\CognitoIdentityClient
  • Aws\CognitoIdentity\CognitoIdentityProvider
  • Aws\CognitoIdentityProvider\CognitoIdentityProviderClient
  • Aws\CognitoSync\CognitoSyncClient
  • Aws\Command
  • Aws\CommandPool
  • Aws\Comprehend\ComprehendClient
  • Aws\ComprehendMedical\ComprehendMedicalClient
  • Aws\ComputeOptimizer\ComputeOptimizerClient
  • Aws\ConfigService\ConfigServiceClient
  • Aws\Connect\ConnectClient
  • Aws\ConnectCampaignService\ConnectCampaignServiceClient
  • Aws\ConnectContactLens\ConnectContactLensClient
  • Aws\ConnectParticipant\ConnectParticipantClient
  • Aws\ConnectWisdomService\ConnectWisdomServiceClient
  • Aws\CostandUsageReportService\CostandUsageReportServiceClient
  • Aws\CostExplorer\CostExplorerClient
  • Aws\Credentials\AssumeRoleCredentialProvider
  • Aws\Credentials\AssumeRoleWithWebIdentityCredentialProvider
  • Aws\Credentials\CredentialProvider
  • Aws\Credentials\Credentials
  • Aws\Credentials\EcsCredentialProvider
  • Aws\Credentials\InstanceProfileProvider
  • Aws\Crypto\AesDecryptingStream
  • Aws\Crypto\AesEncryptingStream
  • Aws\Crypto\AesGcmDecryptingStream
  • Aws\Crypto\AesGcmEncryptingStream
  • Aws\Crypto\Cipher\Cbc
  • Aws\Crypto\KmsMaterialsProvider
  • Aws\Crypto\KmsMaterialsProviderV2
  • Aws\Crypto\MaterialsProvider
  • Aws\Crypto\MaterialsProviderV2
  • Aws\Crypto\Polyfill\AesGcm
  • Aws\Crypto\Polyfill\ByteArray
  • Aws\Crypto\Polyfill\Gmac
  • Aws\Crypto\Polyfill\Key
  • Aws\CustomerProfiles\CustomerProfilesClient
  • Aws\DatabaseMigrationService\DatabaseMigrationServiceClient
  • Aws\DataExchange\DataExchangeClient
  • Aws\DataPipeline\DataPipelineClient
  • Aws\DataSync\DataSyncClient
  • Aws\DAX\DAXClient
  • Aws\DefaultsMode\Configuration
  • Aws\DefaultsMode\ConfigurationProvider
  • Aws\Detective\DetectiveClient
  • Aws\DeviceFarm\DeviceFarmClient
  • Aws\DevOpsGuru\DevOpsGuruClient
  • Aws\DirectConnect\DirectConnectClient
  • Aws\DirectoryService\DirectoryServiceClient
  • Aws\DLM\DLMClient
  • Aws\DocDB\DocDBClient
  • Aws\DoctrineCacheAdapter
  • Aws\drs\drsClient
  • Aws\DynamoDb\BinaryValue
  • Aws\DynamoDb\DynamoDbClient
  • Aws\DynamoDb\LockingSessionConnection
  • Aws\DynamoDb\Marshaler
  • Aws\DynamoDb\NumberValue
  • Aws\DynamoDb\SessionHandler
  • Aws\DynamoDb\SetValue
  • Aws\DynamoDb\StandardSessionConnection
  • Aws\DynamoDb\WriteRequestBatch
  • Aws\DynamoDbStreams\DynamoDbStreamsClient
  • Aws\EBS\EBSClient
  • Aws\Ec2\Ec2Client
  • Aws\EC2InstanceConnect\EC2InstanceConnectClient
  • Aws\Ecr\EcrClient
  • Aws\ECRPublic\ECRPublicClient
  • Aws\Ecs\EcsClient
  • Aws\Efs\EfsClient
  • Aws\EKS\EKSClient
  • Aws\ElastiCache\ElastiCacheClient
  • Aws\ElasticBeanstalk\ElasticBeanstalkClient
  • Aws\ElasticInference\ElasticInferenceClient
  • Aws\ElasticLoadBalancing\ElasticLoadBalancingClient
  • Aws\ElasticLoadBalancingV2\ElasticLoadBalancingV2Client
  • Aws\ElasticsearchService\ElasticsearchServiceClient
  • Aws\ElasticTranscoder\ElasticTranscoderClient
  • Aws\Emr\EmrClient
  • Aws\EMRContainers\EMRContainersClient
  • Aws\EMRServerless\EMRServerlessClient
  • Aws\Endpoint\EndpointProvider
  • Aws\Endpoint\Partition
  • Aws\Endpoint\PartitionEndpointProvider
  • Aws\Endpoint\PatternEndpointProvider
  • Aws\Endpoint\UseDualstackEndpoint\Configuration
  • Aws\Endpoint\UseDualstackEndpoint\ConfigurationProvider
  • Aws\Endpoint\UseFipsEndpoint\Configuration
  • Aws\Endpoint\UseFipsEndpoint\ConfigurationProvider
  • Aws\EndpointDiscovery\Configuration
  • Aws\EndpointDiscovery\ConfigurationProvider
  • Aws\EndpointDiscovery\EndpointDiscoveryMiddleware
  • Aws\EndpointDiscovery\EndpointList
  • Aws\EventBridge\EventBridgeClient
  • Aws\finspace\finspaceClient
  • Aws\FinSpaceData\FinSpaceDataClient
  • Aws\Firehose\FirehoseClient
  • Aws\FIS\FISClient
  • Aws\FMS\FMSClient
  • Aws\ForecastQueryService\ForecastQueryServiceClient
  • Aws\ForecastService\ForecastServiceClient
  • Aws\FraudDetector\FraudDetectorClient
  • Aws\FSx\FSxClient
  • Aws\GameLift\GameLiftClient
  • Aws\GameSparks\GameSparksClient
  • Aws\Glacier\GlacierClient
  • Aws\Glacier\MultipartUploader
  • Aws\Glacier\TreeHash
  • Aws\GlobalAccelerator\GlobalAcceleratorClient
  • Aws\Glue\GlueClient
  • Aws\GlueDataBrew\GlueDataBrewClient
  • Aws\Greengrass\GreengrassClient
  • Aws\GreengrassV2\GreengrassV2Client
  • Aws\GroundStation\GroundStationClient
  • Aws\GuardDuty\GuardDutyClient
  • Aws\Handler\GuzzleV5\GuzzleHandler
  • Aws\Handler\GuzzleV5\GuzzleStream
  • Aws\Handler\GuzzleV5\PsrStream
  • Aws\Handler\GuzzleV6\GuzzleHandler
  • Aws\HandlerList
  • Aws\HashingStream
  • Aws\Health\HealthClient
  • Aws\HealthLake\HealthLakeClient
  • Aws\History
  • Aws\Honeycode\HoneycodeClient
  • Aws\Iam\IamClient
  • Aws\IdempotencyTokenMiddleware
  • Aws\IdentityStore\IdentityStoreClient
  • Aws\imagebuilder\imagebuilderClient
  • Aws\ImportExport\ImportExportClient
  • Aws\Inspector2\Inspector2Client
  • Aws\Inspector\InspectorClient
  • Aws\IoT1ClickDevicesService\IoT1ClickDevicesServiceClient
  • Aws\IoT1ClickProjects\IoT1ClickProjectsClient
  • Aws\Iot\IotClient
  • Aws\IoTAnalytics\IoTAnalyticsClient
  • Aws\IotDataPlane\IotDataPlaneClient
  • Aws\IoTDeviceAdvisor\IoTDeviceAdvisorClient
  • Aws\IoTEvents\IoTEventsClient
  • Aws\IoTEventsData\IoTEventsDataClient
  • Aws\IoTFleetHub\IoTFleetHubClient
  • Aws\IoTJobsDataPlane\IoTJobsDataPlaneClient
  • Aws\IoTSecureTunneling\IoTSecureTunnelingClient
  • Aws\IoTSiteWise\IoTSiteWiseClient
  • Aws\IoTThingsGraph\IoTThingsGraphClient
  • Aws\IoTTwinMaker\IoTTwinMakerClient
  • Aws\IoTWireless\IoTWirelessClient
  • Aws\IVS\IVSClient
  • Aws\ivschat\ivschatClient
  • Aws\JsonCompiler
  • Aws\Kafka\KafkaClient
  • Aws\KafkaConnect\KafkaConnectClient
  • Aws\kendra\kendraClient
  • Aws\Keyspaces\KeyspacesClient
  • Aws\Kinesis\KinesisClient
  • Aws\KinesisAnalytics\KinesisAnalyticsClient
  • Aws\KinesisAnalyticsV2\KinesisAnalyticsV2Client
  • Aws\KinesisVideo\KinesisVideoClient
  • Aws\KinesisVideoArchivedMedia\KinesisVideoArchivedMediaClient
  • Aws\KinesisVideoMedia\KinesisVideoMediaClient
  • Aws\KinesisVideoSignalingChannels\KinesisVideoSignalingChannelsClient
  • Aws\Kms\KmsClient
  • Aws\LakeFormation\LakeFormationClient
  • Aws\Lambda\LambdaClient
  • Aws\LexModelBuildingService\LexModelBuildingServiceClient
  • Aws\LexModelsV2\LexModelsV2Client
  • Aws\LexRuntimeService\LexRuntimeServiceClient
  • Aws\LexRuntimeV2\LexRuntimeV2Client
  • Aws\LicenseManager\LicenseManagerClient
  • Aws\LicenseManagerUserSubscriptions\LicenseManagerUserSubscriptionsClient
  • Aws\Lightsail\LightsailClient
  • Aws\LocationService\LocationServiceClient
  • Aws\LookoutEquipment\LookoutEquipmentClient
  • Aws\LookoutforVision\LookoutforVisionClient
  • Aws\LookoutMetrics\LookoutMetricsClient
  • Aws\LruArrayCache
  • Aws\MachineLearning\MachineLearningClient
  • Aws\Macie2\Macie2Client
  • Aws\Macie\MacieClient
  • Aws\MainframeModernization\MainframeModernizationClient
  • Aws\ManagedBlockchain\ManagedBlockchainClient
  • Aws\ManagedGrafana\ManagedGrafanaClient
  • Aws\MarketplaceCatalog\MarketplaceCatalogClient
  • Aws\MarketplaceCommerceAnalytics\MarketplaceCommerceAnalyticsClient
  • Aws\MarketplaceEntitlementService\MarketplaceEntitlementServiceClient
  • Aws\MarketplaceMetering\MarketplaceMeteringClient
  • Aws\MediaConnect\MediaConnectClient
  • Aws\MediaConvert\MediaConvertClient
  • Aws\MediaLive\MediaLiveClient
  • Aws\MediaPackage\MediaPackageClient
  • Aws\MediaPackageVod\MediaPackageVodClient
  • Aws\MediaStore\MediaStoreClient
  • Aws\MediaStoreData\MediaStoreDataClient
  • Aws\MediaTailor\MediaTailorClient
  • Aws\MemoryDB\MemoryDBClient
  • Aws\mgn\mgnClient
  • Aws\Middleware
  • Aws\MigrationHub\MigrationHubClient
  • Aws\MigrationHubConfig\MigrationHubConfigClient
  • Aws\MigrationHubRefactorSpaces\MigrationHubRefactorSpacesClient
  • Aws\MigrationHubStrategyRecommendations\MigrationHubStrategyRecommendationsClient
  • Aws\Mobile\MobileClient
  • Aws\MockHandler
  • Aws\MQ\MQClient
  • Aws\MTurk\MTurkClient
  • Aws\Multipart\UploadState
  • Aws\MultiRegionClient
  • Aws\MWAA\MWAAClient
  • Aws\Neptune\NeptuneClient
  • Aws\NetworkFirewall\NetworkFirewallClient
  • Aws\NetworkManager\NetworkManagerClient
  • Aws\NimbleStudio\NimbleStudioClient
  • Aws\OpenSearchService\OpenSearchServiceClient
  • Aws\OpsWorks\OpsWorksClient
  • Aws\OpsWorksCM\OpsWorksCMClient
  • Aws\Organizations\OrganizationsClient
  • Aws\Outposts\OutpostsClient
  • Aws\Panorama\PanoramaClient
  • Aws\Personalize\PersonalizeClient
  • Aws\PersonalizeEvents\PersonalizeEventsClient
  • Aws\PersonalizeRuntime\PersonalizeRuntimeClient
  • Aws\PhpHash
  • Aws\PI\PIClient
  • Aws\Pinpoint\PinpointClient
  • Aws\PinpointEmail\PinpointEmailClient
  • Aws\PinpointSMSVoice\PinpointSMSVoiceClient
  • Aws\PinpointSMSVoiceV2\PinpointSMSVoiceV2Client
  • Aws\Polly\PollyClient
  • Aws\PresignUrlMiddleware
  • Aws\Pricing\PricingClient
  • Aws\PrivateNetworks\PrivateNetworksClient
  • Aws\PrometheusService\PrometheusServiceClient
  • Aws\Proton\ProtonClient
  • Aws\Psr16CacheAdapter
  • Aws\PsrCacheAdapter
  • Aws\QLDB\QLDBClient
  • Aws\QLDBSession\QLDBSessionClient
  • Aws\QuickSight\QuickSightClient
  • Aws\RAM\RAMClient
  • Aws\Rds\AuthTokenGenerator
  • Aws\Rds\RdsClient
  • Aws\RDSDataService\RDSDataServiceClient
  • Aws\RecycleBin\RecycleBinClient
  • Aws\Redshift\RedshiftClient
  • Aws\RedshiftDataAPIService\RedshiftDataAPIServiceClient
  • Aws\RedshiftServerless\RedshiftServerlessClient
  • Aws\Rekognition\RekognitionClient
  • Aws\ResilienceHub\ResilienceHubClient
  • Aws\ResourceGroups\ResourceGroupsClient
  • Aws\ResourceGroupsTaggingAPI\ResourceGroupsTaggingAPIClient
  • Aws\Result
  • Aws\ResultPaginator
  • Aws\Retry\Configuration
  • Aws\Retry\ConfigurationProvider
  • Aws\RoboMaker\RoboMakerClient
  • Aws\RolesAnywhere\RolesAnywhereClient
  • Aws\Route53\Route53Client
  • Aws\Route53Domains\Route53DomainsClient
  • Aws\Route53RecoveryCluster\Route53RecoveryClusterClient
  • Aws\Route53RecoveryControlConfig\Route53RecoveryControlConfigClient
  • Aws\Route53RecoveryReadiness\Route53RecoveryReadinessClient
  • Aws\Route53Resolver\Route53ResolverClient
  • Aws\S3\BatchDelete
  • Aws\S3\Crypto\HeadersMetadataStrategy
  • Aws\S3\Crypto\InstructionFileMetadataStrategy
  • Aws\S3\Crypto\S3EncryptionClient
  • Aws\S3\Crypto\S3EncryptionClientV2
  • Aws\S3\Crypto\S3EncryptionMultipartUploader
  • Aws\S3\Crypto\S3EncryptionMultipartUploaderV2
  • Aws\S3\GetBucketLocationParser
  • Aws\S3\MultipartUploader
  • Aws\S3\ObjectCopier
  • Aws\S3\ObjectUploader
  • Aws\S3\PostObject
  • Aws\S3\PostObjectV4
  • Aws\S3\RegionalEndpoint\Configuration
  • Aws\S3\RegionalEndpoint\ConfigurationProvider
  • Aws\S3\S3Client
  • Aws\S3\S3MultiRegionClient
  • Aws\S3\S3UriParser
  • Aws\S3\StreamWrapper
  • Aws\S3\Transfer
  • Aws\S3\UseArnRegion\Configuration
  • Aws\S3\UseArnRegion\ConfigurationProvider
  • Aws\S3\ValidateResponseChecksumParser
  • Aws\S3Control\S3ControlClient
  • Aws\S3Outposts\S3OutpostsClient
  • Aws\SageMaker\SageMakerClient
  • Aws\SagemakerEdgeManager\SagemakerEdgeManagerClient
  • Aws\SageMakerFeatureStoreRuntime\SageMakerFeatureStoreRuntimeClient
  • Aws\SageMakerRuntime\SageMakerRuntimeClient
  • Aws\SavingsPlans\SavingsPlansClient
  • Aws\Schemas\SchemasClient
  • Aws\Script\Composer\Composer
  • Aws\Sdk
  • Aws\SecretsManager\SecretsManagerClient
  • Aws\SecurityHub\SecurityHubClient
  • Aws\ServerlessApplicationRepository\ServerlessApplicationRepositoryClient
  • Aws\ServiceCatalog\ServiceCatalogClient
  • Aws\ServiceDiscovery\ServiceDiscoveryClient
  • Aws\ServiceQuotas\ServiceQuotasClient
  • Aws\Ses\SesClient
  • Aws\SesV2\SesV2Client
  • Aws\Sfn\SfnClient
  • Aws\Shield\ShieldClient
  • Aws\Signature\AnonymousSignature
  • Aws\Signature\S3SignatureV4
  • Aws\Signature\SignatureProvider
  • Aws\Signature\SignatureV4
  • Aws\signer\signerClient
  • Aws\Sms\SmsClient
  • Aws\SnowBall\SnowBallClient
  • Aws\SnowDeviceManagement\SnowDeviceManagementClient
  • Aws\Sns\Message
  • Aws\Sns\MessageValidator
  • Aws\Sns\SnsClient
  • Aws\Sqs\SqsClient
  • Aws\Ssm\SsmClient
  • Aws\SSMContacts\SSMContactsClient
  • Aws\SSMIncidents\SSMIncidentsClient
  • Aws\SSO\SSOClient
  • Aws\SSOAdmin\SSOAdminClient
  • Aws\SSOOIDC\SSOOIDCClient
  • Aws\StorageGateway\StorageGatewayClient
  • Aws\Sts\RegionalEndpoints\Configuration
  • Aws\Sts\RegionalEndpoints\ConfigurationProvider
  • Aws\Sts\StsClient
  • Aws\Support\SupportClient
  • Aws\Swf\SwfClient
  • Aws\Synthetics\SyntheticsClient
  • Aws\Textract\TextractClient
  • Aws\TimestreamQuery\TimestreamQueryClient
  • Aws\TimestreamWrite\TimestreamWriteClient
  • Aws\TraceMiddleware
  • Aws\TranscribeService\TranscribeServiceClient
  • Aws\Transfer\TransferClient
  • Aws\Translate\TranslateClient
  • Aws\VoiceID\VoiceIDClient
  • Aws\Waf\WafClient
  • Aws\WafRegional\WafRegionalClient
  • Aws\WAFV2\WAFV2Client
  • Aws\Waiter
  • Aws\WellArchitected\WellArchitectedClient
  • Aws\WorkDocs\WorkDocsClient
  • Aws\WorkLink\WorkLinkClient
  • Aws\WorkMail\WorkMailClient
  • Aws\WorkMailMessageFlow\WorkMailMessageFlowClient
  • Aws\WorkSpaces\WorkSpacesClient
  • Aws\WorkSpacesWeb\WorkSpacesWebClient
  • Aws\WrappedHttpHandler
  • Aws\XRay\XRayClient

Interfaces

  • Aws\AwsClientInterface
  • Aws\CacheInterface
  • Aws\ClientSideMonitoring\ConfigurationInterface
  • Aws\CommandInterface
  • Aws\ConfigurationProviderInterface
  • Aws\Credentials\CredentialsInterface
  • Aws\Crypto\AesStreamInterface
  • Aws\Crypto\AesStreamInterfaceV2
  • Aws\Crypto\Cipher\CipherMethod
  • Aws\Crypto\MaterialsProviderInterface
  • Aws\Crypto\MaterialsProviderInterfaceV2
  • Aws\Crypto\MetadataStrategyInterface
  • Aws\DefaultsMode\ConfigurationInterface
  • Aws\DynamoDb\SessionConnectionInterface
  • Aws\Endpoint\PartitionInterface
  • Aws\Endpoint\UseDualstackEndpoint\ConfigurationInterface
  • Aws\Endpoint\UseFipsEndpoint\ConfigurationInterface
  • Aws\EndpointDiscovery\ConfigurationInterface
  • Aws\HashInterface
  • Aws\MonitoringEventsInterface
  • Aws\ResponseContainerInterface
  • Aws\ResultInterface
  • Aws\Retry\ConfigurationInterface
  • Aws\S3\RegionalEndpoint\ConfigurationInterface
  • Aws\S3\S3ClientInterface
  • Aws\S3\UseArnRegion\ConfigurationInterface
  • Aws\Signature\SignatureInterface
  • Aws\Sts\RegionalEndpoints\ConfigurationInterface

Traits

  • Aws\Api\ErrorParser\JsonParserTrait
  • Aws\Api\Parser\MetadataParserTrait
  • Aws\Api\Parser\PayloadParserTrait
  • Aws\AwsClientTrait
  • Aws\Crypto\Cipher\CipherBuilderTrait
  • Aws\Crypto\DecryptionTrait
  • Aws\Crypto\DecryptionTraitV2
  • Aws\Crypto\EncryptionTrait
  • Aws\Crypto\EncryptionTraitV2
  • Aws\Crypto\Polyfill\NeedsTrait
  • Aws\DynamoDb\SessionConnectionConfigTrait
  • Aws\HasDataTrait
  • Aws\HasMonitoringEventsTrait
  • Aws\Retry\RetryHelperTrait
  • Aws\S3\CalculatesChecksumTrait
  • Aws\S3\Crypto\CryptoParamsTrait
  • Aws\S3\Crypto\CryptoParamsTraitV2
  • Aws\S3\Crypto\UserAgentTrait
  • Aws\S3\MultipartUploadingTrait
  • Aws\S3\S3ClientTrait
  • Aws\Signature\SignatureTrait

Exceptions

  • Aws\AccessAnalyzer\Exception\AccessAnalyzerException
  • Aws\Account\Exception\AccountException
  • Aws\Acm\Exception\AcmException
  • Aws\ACMPCA\Exception\ACMPCAException
  • Aws\AlexaForBusiness\Exception\AlexaForBusinessException
  • Aws\Amplify\Exception\AmplifyException
  • Aws\AmplifyBackend\Exception\AmplifyBackendException
  • Aws\AmplifyUIBuilder\Exception\AmplifyUIBuilderException
  • Aws\Api\Parser\Exception\ParserException
  • Aws\ApiGateway\Exception\ApiGatewayException
  • Aws\ApiGatewayManagementApi\Exception\ApiGatewayManagementApiException
  • Aws\ApiGatewayV2\Exception\ApiGatewayV2Exception
  • Aws\AppConfig\Exception\AppConfigException
  • Aws\AppConfigData\Exception\AppConfigDataException
  • Aws\Appflow\Exception\AppflowException
  • Aws\AppIntegrationsService\Exception\AppIntegrationsServiceException
  • Aws\ApplicationAutoScaling\Exception\ApplicationAutoScalingException
  • Aws\ApplicationCostProfiler\Exception\ApplicationCostProfilerException
  • Aws\ApplicationDiscoveryService\Exception\ApplicationDiscoveryServiceException
  • Aws\ApplicationInsights\Exception\ApplicationInsightsException
  • Aws\AppMesh\Exception\AppMeshException
  • Aws\AppRegistry\Exception\AppRegistryException
  • Aws\AppRunner\Exception\AppRunnerException
  • Aws\Appstream\Exception\AppstreamException
  • Aws\AppSync\Exception\AppSyncException
  • Aws\Arn\Exception\InvalidArnException
  • Aws\Athena\Exception\AthenaException
  • Aws\AuditManager\Exception\AuditManagerException
  • Aws\AugmentedAIRuntime\Exception\AugmentedAIRuntimeException
  • Aws\AutoScaling\Exception\AutoScalingException
  • Aws\AutoScalingPlans\Exception\AutoScalingPlansException
  • Aws\Backup\Exception\BackupException
  • Aws\BackupGateway\Exception\BackupGatewayException
  • Aws\BackupStorage\Exception\BackupStorageException
  • Aws\Batch\Exception\BatchException
  • Aws\BillingConductor\Exception\BillingConductorException
  • Aws\Braket\Exception\BraketException
  • Aws\Budgets\Exception\BudgetsException
  • Aws\Chime\Exception\ChimeException
  • Aws\ChimeSDKIdentity\Exception\ChimeSDKIdentityException
  • Aws\ChimeSDKMediaPipelines\Exception\ChimeSDKMediaPipelinesException
  • Aws\ChimeSDKMeetings\Exception\ChimeSDKMeetingsException
  • Aws\ChimeSDKMessaging\Exception\ChimeSDKMessagingException
  • Aws\ClientSideMonitoring\Exception\ConfigurationException
  • Aws\Cloud9\Exception\Cloud9Exception
  • Aws\CloudControlApi\Exception\CloudControlApiException
  • Aws\CloudDirectory\Exception\CloudDirectoryException
  • Aws\CloudFormation\Exception\CloudFormationException
  • Aws\CloudFront\Exception\CloudFrontException
  • Aws\CloudHsm\Exception\CloudHsmException
  • Aws\CloudHSMV2\Exception\CloudHSMV2Exception
  • Aws\CloudSearch\Exception\CloudSearchException
  • Aws\CloudSearchDomain\Exception\CloudSearchDomainException
  • Aws\CloudTrail\Exception\CloudTrailException
  • Aws\CloudWatch\Exception\CloudWatchException
  • Aws\CloudWatchEvents\Exception\CloudWatchEventsException
  • Aws\CloudWatchEvidently\Exception\CloudWatchEvidentlyException
  • Aws\CloudWatchLogs\Exception\CloudWatchLogsException
  • Aws\CloudWatchRUM\Exception\CloudWatchRUMException
  • Aws\CodeArtifact\Exception\CodeArtifactException
  • Aws\CodeBuild\Exception\CodeBuildException
  • Aws\CodeCommit\Exception\CodeCommitException
  • Aws\CodeDeploy\Exception\CodeDeployException
  • Aws\CodeGuruProfiler\Exception\CodeGuruProfilerException
  • Aws\CodeGuruReviewer\Exception\CodeGuruReviewerException
  • Aws\CodePipeline\Exception\CodePipelineException
  • Aws\CodeStar\Exception\CodeStarException
  • Aws\CodeStarconnections\Exception\CodeStarconnectionsException
  • Aws\CodeStarNotifications\Exception\CodeStarNotificationsException
  • Aws\CognitoIdentity\Exception\CognitoIdentityException
  • Aws\CognitoIdentityProvider\Exception\CognitoIdentityProviderException
  • Aws\CognitoSync\Exception\CognitoSyncException
  • Aws\Comprehend\Exception\ComprehendException
  • Aws\ComprehendMedical\Exception\ComprehendMedicalException
  • Aws\ComputeOptimizer\Exception\ComputeOptimizerException
  • Aws\ConfigService\Exception\ConfigServiceException
  • Aws\Connect\Exception\ConnectException
  • Aws\ConnectCampaignService\Exception\ConnectCampaignServiceException
  • Aws\ConnectContactLens\Exception\ConnectContactLensException
  • Aws\ConnectParticipant\Exception\ConnectParticipantException
  • Aws\ConnectWisdomService\Exception\ConnectWisdomServiceException
  • Aws\CostandUsageReportService\Exception\CostandUsageReportServiceException
  • Aws\CostExplorer\Exception\CostExplorerException
  • Aws\CustomerProfiles\Exception\CustomerProfilesException
  • Aws\DatabaseMigrationService\Exception\DatabaseMigrationServiceException
  • Aws\DataExchange\Exception\DataExchangeException
  • Aws\DataPipeline\Exception\DataPipelineException
  • Aws\DataSync\Exception\DataSyncException
  • Aws\DAX\Exception\DAXException
  • Aws\DefaultsMode\Exception\ConfigurationException
  • Aws\Detective\Exception\DetectiveException
  • Aws\DeviceFarm\Exception\DeviceFarmException
  • Aws\DevOpsGuru\Exception\DevOpsGuruException
  • Aws\DirectConnect\Exception\DirectConnectException
  • Aws\DirectoryService\Exception\DirectoryServiceException
  • Aws\DLM\Exception\DLMException
  • Aws\DocDB\Exception\DocDBException
  • Aws\drs\Exception\drsException
  • Aws\DynamoDb\Exception\DynamoDbException
  • Aws\DynamoDbStreams\Exception\DynamoDbStreamsException
  • Aws\EBS\Exception\EBSException
  • Aws\Ec2\Exception\Ec2Exception
  • Aws\EC2InstanceConnect\Exception\EC2InstanceConnectException
  • Aws\Ecr\Exception\EcrException
  • Aws\ECRPublic\Exception\ECRPublicException
  • Aws\Ecs\Exception\EcsException
  • Aws\Efs\Exception\EfsException
  • Aws\EKS\Exception\EKSException
  • Aws\ElastiCache\Exception\ElastiCacheException
  • Aws\ElasticBeanstalk\Exception\ElasticBeanstalkException
  • Aws\ElasticInference\Exception\ElasticInferenceException
  • Aws\ElasticLoadBalancing\Exception\ElasticLoadBalancingException
  • Aws\ElasticLoadBalancingV2\Exception\ElasticLoadBalancingV2Exception
  • Aws\ElasticsearchService\Exception\ElasticsearchServiceException
  • Aws\ElasticTranscoder\Exception\ElasticTranscoderException
  • Aws\Emr\Exception\EmrException
  • Aws\EMRContainers\Exception\EMRContainersException
  • Aws\EMRServerless\Exception\EMRServerlessException
  • Aws\Endpoint\UseDualstackEndpoint\Exception\ConfigurationException
  • Aws\Endpoint\UseFipsEndpoint\Exception\ConfigurationException
  • Aws\EndpointDiscovery\Exception\ConfigurationException
  • Aws\EventBridge\Exception\EventBridgeException
  • Aws\Exception\AwsException
  • Aws\Exception\CommonRuntimeException
  • Aws\Exception\CouldNotCreateChecksumException
  • Aws\Exception\CredentialsException
  • Aws\Exception\CryptoException
  • Aws\Exception\CryptoPolyfillException
  • Aws\Exception\EventStreamDataException
  • Aws\Exception\IncalculablePayloadException
  • Aws\Exception\InvalidJsonException
  • Aws\Exception\InvalidRegionException
  • Aws\Exception\MultipartUploadException
  • Aws\Exception\UnresolvedApiException
  • Aws\Exception\UnresolvedEndpointException
  • Aws\Exception\UnresolvedSignatureException
  • Aws\finspace\Exception\finspaceException
  • Aws\FinSpaceData\Exception\FinSpaceDataException
  • Aws\Firehose\Exception\FirehoseException
  • Aws\FIS\Exception\FISException
  • Aws\FMS\Exception\FMSException
  • Aws\ForecastQueryService\Exception\ForecastQueryServiceException
  • Aws\ForecastService\Exception\ForecastServiceException
  • Aws\FraudDetector\Exception\FraudDetectorException
  • Aws\FSx\Exception\FSxException
  • Aws\GameLift\Exception\GameLiftException
  • Aws\GameSparks\Exception\GameSparksException
  • Aws\Glacier\Exception\GlacierException
  • Aws\GlobalAccelerator\Exception\GlobalAcceleratorException
  • Aws\Glue\Exception\GlueException
  • Aws\GlueDataBrew\Exception\GlueDataBrewException
  • Aws\Greengrass\Exception\GreengrassException
  • Aws\GreengrassV2\Exception\GreengrassV2Exception
  • Aws\GroundStation\Exception\GroundStationException
  • Aws\GuardDuty\Exception\GuardDutyException
  • Aws\Health\Exception\HealthException
  • Aws\HealthLake\Exception\HealthLakeException
  • Aws\Honeycode\Exception\HoneycodeException
  • Aws\Iam\Exception\IamException
  • Aws\IdentityStore\Exception\IdentityStoreException
  • Aws\imagebuilder\Exception\imagebuilderException
  • Aws\ImportExport\Exception\ImportExportException
  • Aws\Inspector2\Exception\Inspector2Exception
  • Aws\Inspector\Exception\InspectorException
  • Aws\IoT1ClickDevicesService\Exception\IoT1ClickDevicesServiceException
  • Aws\IoT1ClickProjects\Exception\IoT1ClickProjectsException
  • Aws\Iot\Exception\IotException
  • Aws\IoTAnalytics\Exception\IoTAnalyticsException
  • Aws\IotDataPlane\Exception\IotDataPlaneException
  • Aws\IoTDeviceAdvisor\Exception\IoTDeviceAdvisorException
  • Aws\IoTEvents\Exception\IoTEventsException
  • Aws\IoTEventsData\Exception\IoTEventsDataException
  • Aws\IoTFleetHub\Exception\IoTFleetHubException
  • Aws\IoTJobsDataPlane\Exception\IoTJobsDataPlaneException
  • Aws\IoTSecureTunneling\Exception\IoTSecureTunnelingException
  • Aws\IoTSiteWise\Exception\IoTSiteWiseException
  • Aws\IoTThingsGraph\Exception\IoTThingsGraphException
  • Aws\IoTTwinMaker\Exception\IoTTwinMakerException
  • Aws\IoTWireless\Exception\IoTWirelessException
  • Aws\IVS\Exception\IVSException
  • Aws\ivschat\Exception\ivschatException
  • Aws\Kafka\Exception\KafkaException
  • Aws\KafkaConnect\Exception\KafkaConnectException
  • Aws\kendra\Exception\kendraException
  • Aws\Keyspaces\Exception\KeyspacesException
  • Aws\Kinesis\Exception\KinesisException
  • Aws\KinesisAnalytics\Exception\KinesisAnalyticsException
  • Aws\KinesisAnalyticsV2\Exception\KinesisAnalyticsV2Exception
  • Aws\KinesisVideo\Exception\KinesisVideoException
  • Aws\KinesisVideoArchivedMedia\Exception\KinesisVideoArchivedMediaException
  • Aws\KinesisVideoMedia\Exception\KinesisVideoMediaException
  • Aws\KinesisVideoSignalingChannels\Exception\KinesisVideoSignalingChannelsException
  • Aws\Kms\Exception\KmsException
  • Aws\LakeFormation\Exception\LakeFormationException
  • Aws\Lambda\Exception\LambdaException
  • Aws\LexModelBuildingService\Exception\LexModelBuildingServiceException
  • Aws\LexModelsV2\Exception\LexModelsV2Exception
  • Aws\LexRuntimeService\Exception\LexRuntimeServiceException
  • Aws\LexRuntimeV2\Exception\LexRuntimeV2Exception
  • Aws\LicenseManager\Exception\LicenseManagerException
  • Aws\LicenseManagerUserSubscriptions\Exception\LicenseManagerUserSubscriptionsException
  • Aws\Lightsail\Exception\LightsailException
  • Aws\LocationService\Exception\LocationServiceException
  • Aws\LookoutEquipment\Exception\LookoutEquipmentException
  • Aws\LookoutforVision\Exception\LookoutforVisionException
  • Aws\LookoutMetrics\Exception\LookoutMetricsException
  • Aws\MachineLearning\Exception\MachineLearningException
  • Aws\Macie2\Exception\Macie2Exception
  • Aws\Macie\Exception\MacieException
  • Aws\MainframeModernization\Exception\MainframeModernizationException
  • Aws\ManagedBlockchain\Exception\ManagedBlockchainException
  • Aws\ManagedGrafana\Exception\ManagedGrafanaException
  • Aws\MarketplaceCatalog\Exception\MarketplaceCatalogException
  • Aws\MarketplaceCommerceAnalytics\Exception\MarketplaceCommerceAnalyticsException
  • Aws\MarketplaceEntitlementService\Exception\MarketplaceEntitlementServiceException
  • Aws\MarketplaceMetering\Exception\MarketplaceMeteringException
  • Aws\MediaConnect\Exception\MediaConnectException
  • Aws\MediaConvert\Exception\MediaConvertException
  • Aws\MediaLive\Exception\MediaLiveException
  • Aws\MediaPackage\Exception\MediaPackageException
  • Aws\MediaPackageVod\Exception\MediaPackageVodException
  • Aws\MediaStore\Exception\MediaStoreException
  • Aws\MediaStoreData\Exception\MediaStoreDataException
  • Aws\MediaTailor\Exception\MediaTailorException
  • Aws\MemoryDB\Exception\MemoryDBException
  • Aws\mgn\Exception\mgnException
  • Aws\MigrationHub\Exception\MigrationHubException
  • Aws\MigrationHubConfig\Exception\MigrationHubConfigException
  • Aws\MigrationHubRefactorSpaces\Exception\MigrationHubRefactorSpacesException
  • Aws\MigrationHubStrategyRecommendations\Exception\MigrationHubStrategyRecommendationsException
  • Aws\Mobile\Exception\MobileException
  • Aws\MQ\Exception\MQException
  • Aws\MTurk\Exception\MTurkException
  • Aws\MWAA\Exception\MWAAException
  • Aws\Neptune\Exception\NeptuneException
  • Aws\NetworkFirewall\Exception\NetworkFirewallException
  • Aws\NetworkManager\Exception\NetworkManagerException
  • Aws\NimbleStudio\Exception\NimbleStudioException
  • Aws\OpenSearchService\Exception\OpenSearchServiceException
  • Aws\OpsWorks\Exception\OpsWorksException
  • Aws\OpsWorksCM\Exception\OpsWorksCMException
  • Aws\Organizations\Exception\OrganizationsException
  • Aws\Outposts\Exception\OutpostsException
  • Aws\Panorama\Exception\PanoramaException
  • Aws\Personalize\Exception\PersonalizeException
  • Aws\PersonalizeEvents\Exception\PersonalizeEventsException
  • Aws\PersonalizeRuntime\Exception\PersonalizeRuntimeException
  • Aws\PI\Exception\PIException
  • Aws\Pinpoint\Exception\PinpointException
  • Aws\PinpointEmail\Exception\PinpointEmailException
  • Aws\PinpointSMSVoice\Exception\PinpointSMSVoiceException
  • Aws\PinpointSMSVoiceV2\Exception\PinpointSMSVoiceV2Exception
  • Aws\Polly\Exception\PollyException
  • Aws\Pricing\Exception\PricingException
  • Aws\PrivateNetworks\Exception\PrivateNetworksException
  • Aws\PrometheusService\Exception\PrometheusServiceException
  • Aws\Proton\Exception\ProtonException
  • Aws\QLDB\Exception\QLDBException
  • Aws\QLDBSession\Exception\QLDBSessionException
  • Aws\QuickSight\Exception\QuickSightException
  • Aws\RAM\Exception\RAMException
  • Aws\Rds\Exception\RdsException
  • Aws\RDSDataService\Exception\RDSDataServiceException
  • Aws\RecycleBin\Exception\RecycleBinException
  • Aws\Redshift\Exception\RedshiftException
  • Aws\RedshiftDataAPIService\Exception\RedshiftDataAPIServiceException
  • Aws\RedshiftServerless\Exception\RedshiftServerlessException
  • Aws\Rekognition\Exception\RekognitionException
  • Aws\ResilienceHub\Exception\ResilienceHubException
  • Aws\ResourceGroups\Exception\ResourceGroupsException
  • Aws\ResourceGroupsTaggingAPI\Exception\ResourceGroupsTaggingAPIException
  • Aws\Retry\Exception\ConfigurationException
  • Aws\RoboMaker\Exception\RoboMakerException
  • Aws\RolesAnywhere\Exception\RolesAnywhereException
  • Aws\Route53\Exception\Route53Exception
  • Aws\Route53Domains\Exception\Route53DomainsException
  • Aws\Route53RecoveryCluster\Exception\Route53RecoveryClusterException
  • Aws\Route53RecoveryControlConfig\Exception\Route53RecoveryControlConfigException
  • Aws\Route53RecoveryReadiness\Exception\Route53RecoveryReadinessException
  • Aws\Route53Resolver\Exception\Route53ResolverException
  • Aws\S3\Exception\DeleteMultipleObjectsException
  • Aws\S3\Exception\PermanentRedirectException
  • Aws\S3\Exception\S3Exception
  • Aws\S3\Exception\S3MultipartUploadException
  • Aws\S3\RegionalEndpoint\Exception\ConfigurationException
  • Aws\S3\UseArnRegion\Exception\ConfigurationException
  • Aws\S3Control\Exception\S3ControlException
  • Aws\S3Outposts\Exception\S3OutpostsException
  • Aws\SageMaker\Exception\SageMakerException
  • Aws\SagemakerEdgeManager\Exception\SagemakerEdgeManagerException
  • Aws\SageMakerFeatureStoreRuntime\Exception\SageMakerFeatureStoreRuntimeException
  • Aws\SageMakerRuntime\Exception\SageMakerRuntimeException
  • Aws\SavingsPlans\Exception\SavingsPlansException
  • Aws\Schemas\Exception\SchemasException
  • Aws\SecretsManager\Exception\SecretsManagerException
  • Aws\SecurityHub\Exception\SecurityHubException
  • Aws\ServerlessApplicationRepository\Exception\ServerlessApplicationRepositoryException
  • Aws\ServiceCatalog\Exception\ServiceCatalogException
  • Aws\ServiceDiscovery\Exception\ServiceDiscoveryException
  • Aws\ServiceQuotas\Exception\ServiceQuotasException
  • Aws\Ses\Exception\SesException
  • Aws\SesV2\Exception\SesV2Exception
  • Aws\Sfn\Exception\SfnException
  • Aws\Shield\Exception\ShieldException
  • Aws\signer\Exception\signerException
  • Aws\Sms\Exception\SmsException
  • Aws\SnowBall\Exception\SnowBallException
  • Aws\SnowDeviceManagement\Exception\SnowDeviceManagementException
  • Aws\Sns\Exception\InvalidSnsMessageException
  • Aws\Sns\Exception\SnsException
  • Aws\Sqs\Exception\SqsException
  • Aws\Ssm\Exception\SsmException
  • Aws\SSMContacts\Exception\SSMContactsException
  • Aws\SSMIncidents\Exception\SSMIncidentsException
  • Aws\SSO\Exception\SSOException
  • Aws\SSOAdmin\Exception\SSOAdminException
  • Aws\SSOOIDC\Exception\SSOOIDCException
  • Aws\StorageGateway\Exception\StorageGatewayException
  • Aws\Sts\Exception\StsException
  • Aws\Sts\RegionalEndpoints\Exception\ConfigurationException
  • Aws\Support\Exception\SupportException
  • Aws\Swf\Exception\SwfException
  • Aws\Synthetics\Exception\SyntheticsException
  • Aws\Textract\Exception\TextractException
  • Aws\TimestreamQuery\Exception\TimestreamQueryException
  • Aws\TimestreamWrite\Exception\TimestreamWriteException
  • Aws\TranscribeService\Exception\TranscribeServiceException
  • Aws\Transfer\Exception\TransferException
  • Aws\Translate\Exception\TranslateException
  • Aws\VoiceID\Exception\VoiceIDException
  • Aws\Waf\Exception\WafException
  • Aws\WafRegional\Exception\WafRegionalException
  • Aws\WAFV2\Exception\WAFV2Exception
  • Aws\WellArchitected\Exception\WellArchitectedException
  • Aws\WorkDocs\Exception\WorkDocsException
  • Aws\WorkLink\Exception\WorkLinkException
  • Aws\WorkMail\Exception\WorkMailException
  • Aws\WorkMailMessageFlow\Exception\WorkMailMessageFlowException
  • Aws\WorkSpaces\Exception\WorkSpacesException
  • Aws\WorkSpacesWeb\Exception\WorkSpacesWebException
  • Aws\XRay\Exception\XRayException

Functions

  • Aws\boolean_value
  • Aws\clear_compiled_json
  • Aws\constantly
  • Aws\default_http_handler
  • Aws\default_user_agent
  • Aws\describe_type
  • Aws\dir_iterator
  • Aws\filter
  • Aws\flatmap
  • Aws\guzzle_major_version
  • Aws\is_fips_pseudo_region
  • Aws\is_valid_epoch
  • Aws\is_valid_hostlabel
  • Aws\is_valid_hostname
  • Aws\load_compiled_json
  • Aws\manifest
  • Aws\map
  • Aws\or_chain
  • Aws\parse_ini_file
  • Aws\partition
  • Aws\recursive_dir_iterator
  • Aws\serialize
  • Aws\strip_fips_pseudo_regions

AWS Lambda 2015-03-31

Client: Aws\Lambda\LambdaClient
Service ID: lambda
Version: 2015-03-31

This page describes the parameters and results for the operations of the AWS Lambda (2015-03-31), and shows how to use the Aws\Lambda\LambdaClient object to call the described operations. This documentation is specific to the 2015-03-31 API version of the service.

Operation Summary

Each of the following operations can be created from a client using $client->getCommand('CommandName'), where "CommandName" is the name of one of the following operations. Note: a command is a value that encapsulates an operation and the parameters used to create an HTTP request.

You can also create and send a command immediately using the magic methods available on a client object: $client->commandName(/* parameters */). You can send the command asynchronously (returning a promise) by appending the word "Async" to the operation name: $client->commandNameAsync(/* parameters */).

  • AddLayerVersionPermission ( array $params = [] )

    Adds permissions to the resource-based policy of a version of an Lambda layer.

  • AddPermission ( array $params = [] )

    Grants an Amazon Web Services service, account, or organization permission to use a function.

  • CreateAlias ( array $params = [] )

    Creates an alias for a Lambda function version.

  • CreateCodeSigningConfig ( array $params = [] )

    Creates a code signing configuration.

  • CreateEventSourceMapping ( array $params = [] )

    Creates a mapping between an event source and an Lambda function.

  • CreateFunction ( array $params = [] )

    Creates a Lambda function.

  • CreateFunctionUrlConfig ( array $params = [] )

    Creates a Lambda function URL with the specified configuration parameters.

  • DeleteAlias ( array $params = [] )

    Deletes a Lambda function alias.

  • DeleteCodeSigningConfig ( array $params = [] )

    Deletes the code signing configuration.

  • DeleteEventSourceMapping ( array $params = [] )

    Deletes an event source mapping.

  • DeleteFunction ( array $params = [] )

    Deletes a Lambda function.

  • DeleteFunctionCodeSigningConfig ( array $params = [] )

    Removes the code signing configuration from the function.

  • DeleteFunctionConcurrency ( array $params = [] )

    Removes a concurrent execution limit from a function.

  • DeleteFunctionEventInvokeConfig ( array $params = [] )

    Deletes the configuration for asynchronous invocation for a function, version, or alias.

  • DeleteFunctionUrlConfig ( array $params = [] )

    Deletes a Lambda function URL.

  • DeleteLayerVersion ( array $params = [] )

    Deletes a version of an Lambda layer.

  • DeleteProvisionedConcurrencyConfig ( array $params = [] )

    Deletes the provisioned concurrency configuration for a function.

  • GetAccountSettings ( array $params = [] )

    Retrieves details about your account's limits and usage in an Amazon Web Services Region.

  • GetAlias ( array $params = [] )

    Returns details about a Lambda function alias.

  • GetCodeSigningConfig ( array $params = [] )

    Returns information about the specified code signing configuration.

  • GetEventSourceMapping ( array $params = [] )

    Returns details about an event source mapping.

  • GetFunction ( array $params = [] )

    Returns information about the function or function version, with a link to download the deployment package that's valid for 10 minutes.

  • GetFunctionCodeSigningConfig ( array $params = [] )

    Returns the code signing configuration for the specified function.

  • GetFunctionConcurrency ( array $params = [] )

    Returns details about the reserved concurrency configuration for a function.

  • GetFunctionConfiguration ( array $params = [] )

    Returns the version-specific settings of a Lambda function or version.

  • GetFunctionEventInvokeConfig ( array $params = [] )

    Retrieves the configuration for asynchronous invocation for a function, version, or alias.

  • GetFunctionUrlConfig ( array $params = [] )

    Returns details about a Lambda function URL.

  • GetLayerVersion ( array $params = [] )

    Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes.

  • GetLayerVersionByArn ( array $params = [] )

    Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes.

  • GetLayerVersionPolicy ( array $params = [] )

    Returns the permission policy for a version of an Lambda layer.

  • GetPolicy ( array $params = [] )

    Returns the resource-based IAM policy for a function, version, or alias.

  • GetProvisionedConcurrencyConfig ( array $params = [] )

    Retrieves the provisioned concurrency configuration for a function's alias or version.

  • Invoke ( array $params = [] )

    Invokes a Lambda function.

  • InvokeAsync ( array $params = [] )

    For asynchronous function invocation, use Invoke.

  • ListAliases ( array $params = [] )

    Returns a list of aliases for a Lambda function.

  • ListCodeSigningConfigs ( array $params = [] )

    Returns a list of code signing configurations.

  • ListEventSourceMappings ( array $params = [] )

    Lists event source mappings.

  • ListFunctionEventInvokeConfigs ( array $params = [] )

    Retrieves a list of configurations for asynchronous invocation for a function.

  • ListFunctionUrlConfigs ( array $params = [] )

    Returns a list of Lambda function URLs for the specified function.

  • ListFunctions ( array $params = [] )

    Returns a list of Lambda functions, with the version-specific configuration of each.

  • ListFunctionsByCodeSigningConfig ( array $params = [] )

    List the functions that use the specified code signing configuration.

  • ListLayerVersions ( array $params = [] )

    Lists the versions of an Lambda layer.

  • ListLayers ( array $params = [] )

    Lists Lambda layers and shows information about the latest version of each.

  • ListProvisionedConcurrencyConfigs ( array $params = [] )

    Retrieves a list of provisioned concurrency configurations for a function.

  • ListTags ( array $params = [] )

    Returns a function's tags.

  • ListVersionsByFunction ( array $params = [] )

    Returns a list of versions, with the version-specific configuration of each.

  • PublishLayerVersion ( array $params = [] )

    Creates an Lambda layer from a ZIP archive.

  • PublishVersion ( array $params = [] )

    Creates a version from the current code and configuration of a function.

  • PutFunctionCodeSigningConfig ( array $params = [] )

    Update the code signing configuration for the function.

  • PutFunctionConcurrency ( array $params = [] )

    Sets the maximum number of simultaneous executions for a function, and reserves capacity for that concurrency level.

  • PutFunctionEventInvokeConfig ( array $params = [] )

    Configures options for asynchronous invocation on a function, version, or alias.

  • PutProvisionedConcurrencyConfig ( array $params = [] )

    Adds a provisioned concurrency configuration to a function's alias or version.

  • RemoveLayerVersionPermission ( array $params = [] )

    Removes a statement from the permissions policy for a version of an Lambda layer.

  • RemovePermission ( array $params = [] )

    Revokes function-use permission from an Amazon Web Services service or another account.

  • TagResource ( array $params = [] )

    Adds tags to a function.

  • UntagResource ( array $params = [] )

    Removes tags from a function.

  • UpdateAlias ( array $params = [] )

    Updates the configuration of a Lambda function alias.

  • UpdateCodeSigningConfig ( array $params = [] )

    Update the code signing configuration.

  • UpdateEventSourceMapping ( array $params = [] )

    Updates an event source mapping.

  • UpdateFunctionCode ( array $params = [] )

    Updates a Lambda function's code.

  • UpdateFunctionConfiguration ( array $params = [] )

    Modify the version-specific settings of a Lambda function.

  • UpdateFunctionEventInvokeConfig ( array $params = [] )

    Updates the configuration for asynchronous invocation for a function, version, or alias.

  • UpdateFunctionUrlConfig ( array $params = [] )

    Updates the configuration for a Lambda function URL.

Paginators

Paginators handle automatically iterating over paginated API results. Paginators are associated with specific API operations, and they accept the parameters that the corresponding API operation accepts. You can get a paginator from a client class using getPaginator($paginatorName, $operationParameters). This client supports the following paginators:

  • ListAliases
  • ListCodeSigningConfigs
  • ListEventSourceMappings
  • ListFunctionEventInvokeConfigs
  • ListFunctionUrlConfigs
  • ListFunctions
  • ListFunctionsByCodeSigningConfig
  • ListLayerVersions
  • ListLayers
  • ListProvisionedConcurrencyConfigs
  • ListVersionsByFunction

Waiters

Waiters allow you to poll a resource until it enters into a desired state. A waiter has a name used to describe what it does, and is associated with an API operation. When creating a waiter, you can provide the API operation parameters associated with the corresponding operation. Waiters can be accessed using the getWaiter($waiterName, $operationParameters) method of a client object. This client supports the following waiters:

Waiter name API Operation Delay Max Attempts
FunctionExists GetFunction 1 20
FunctionActive GetFunctionConfiguration 5 60
FunctionUpdated GetFunctionConfiguration 5 60
FunctionActiveV2 GetFunction 1 300
FunctionUpdatedV2 GetFunction 1 300

Operations

AddLayerVersionPermission

$result = $client->addLayerVersionPermission([/* ... */]);
$promise = $client->addLayerVersionPermissionAsync([/* ... */]);

Adds permissions to the resource-based policy of a version of an Lambda layer. Use this action to grant layer usage permission to other accounts. You can grant permission to a single account, all accounts in an organization, or all Amazon Web Services accounts.

To revoke permission, call RemoveLayerVersionPermission with the statement ID that you specified when you added it.

Parameter Syntax

$result = $client->addLayerVersionPermission([
    'Action' => '<string>', // REQUIRED
    'LayerName' => '<string>', // REQUIRED
    'OrganizationId' => '<string>',
    'Principal' => '<string>', // REQUIRED
    'RevisionId' => '<string>',
    'StatementId' => '<string>', // REQUIRED
    'VersionNumber' => <integer>, // REQUIRED
]);

Parameter Details

Members
Action
  • Required: Yes
  • Type: string

The API action that grants access to the layer. For example, lambda:GetLayerVersion.

LayerName
  • Required: Yes
  • Type: string

The name or Amazon Resource Name (ARN) of the layer.

OrganizationId
  • Type: string

With the principal set to *, grant permission to all accounts in the specified organization.

Principal
  • Required: Yes
  • Type: string

An account ID, or * to grant layer usage permission to all accounts in an organization, or all Amazon Web Services accounts (if organizationId is not specified). For the last case, make sure that you really do want all Amazon Web Services accounts to have usage permission to this layer.

RevisionId
  • Type: string

Only update the policy if the revision ID matches the ID specified. Use this option to avoid modifying a policy that has changed since you last read it.

StatementId
  • Required: Yes
  • Type: string

An identifier that distinguishes the policy from others on the same layer version.

VersionNumber
  • Required: Yes
  • Type: long (int|float)

The version number.

Result Syntax

[
    'RevisionId' => '<string>',
    'Statement' => '<string>',
]

Result Details

Members
RevisionId
  • Type: string

A unique identifier for the current revision of the policy.

Statement
  • Type: string

The permission statement.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • ResourceConflictException:

    The resource already exists, or another operation is in progress.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • PolicyLengthExceededException:

    The permissions policy for the resource is too large. Learn more

  • PreconditionFailedException:

    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.

AddPermission

$result = $client->addPermission([/* ... */]);
$promise = $client->addPermissionAsync([/* ... */]);

Grants an Amazon Web Services service, account, or organization permission to use a function. You can apply the policy at the function level, or specify a qualifier to restrict access to a single version or alias. If you use a qualifier, the invoker must use the full Amazon Resource Name (ARN) of that version or alias to invoke the function. Note: Lambda does not support adding policies to version $LATEST.

To grant permission to another account, specify the account ID as the Principal. To grant permission to an organization defined in Organizations, specify the organization ID as the PrincipalOrgID. For Amazon Web Services services, the principal is a domain-style identifier defined by the service, like s3.amazonaws.com or sns.amazonaws.com. For Amazon Web Services services, you can also specify the ARN of the associated resource as the SourceArn. If you grant permission to a service principal without specifying the source, other accounts could potentially configure resources in their account to invoke your Lambda function.

This action adds a statement to a resource-based permissions policy for the function. For more information about function policies, see Lambda Function Policies.

Parameter Syntax

$result = $client->addPermission([
    'Action' => '<string>', // REQUIRED
    'EventSourceToken' => '<string>',
    'FunctionName' => '<string>', // REQUIRED
    'FunctionUrlAuthType' => 'NONE|AWS_IAM',
    'Principal' => '<string>', // REQUIRED
    'PrincipalOrgID' => '<string>',
    'Qualifier' => '<string>',
    'RevisionId' => '<string>',
    'SourceAccount' => '<string>',
    'SourceArn' => '<string>',
    'StatementId' => '<string>', // REQUIRED
]);

Parameter Details

Members
Action
  • Required: Yes
  • Type: string

The action that the principal can use on the function. For example, lambda:InvokeFunction or lambda:GetFunction.

EventSourceToken
  • Type: string

For Alexa Smart Home functions, a token that must be supplied by the invoker.

FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function, version, or alias.

Name formats

  • Function name - my-function (name-only), my-function:v1 (with alias).

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN - 123456789012:function:my-function.

You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

FunctionUrlAuthType
  • Type: string

The type of authentication that your function URL uses. Set to AWS_IAM if you want to restrict access to authenticated IAM users only. Set to NONE if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.

Principal
  • Required: Yes
  • Type: string

The Amazon Web Services service or account that invokes the function. If you specify a service, use SourceArn or SourceAccount to limit who can invoke the function through that service.

PrincipalOrgID
  • Type: string

The identifier for your organization in Organizations. Use this to grant permissions to all the Amazon Web Services accounts under this organization.

Qualifier
  • Type: string

Specify a version or alias to add permissions to a published version of the function.

RevisionId
  • Type: string

Only update the policy if the revision ID matches the ID that's specified. Use this option to avoid modifying a policy that has changed since you last read it.

SourceAccount
  • Type: string

For Amazon S3, the ID of the account that owns the resource. Use this together with SourceArn to ensure that the resource is owned by the specified account. It is possible for an Amazon S3 bucket to be deleted by its owner and recreated by another account.

SourceArn
  • Type: string

For Amazon Web Services services, the ARN of the Amazon Web Services resource that invokes the function. For example, an Amazon S3 bucket or Amazon SNS topic.

Note that Lambda configures the comparison using the StringLike operator.

StatementId
  • Required: Yes
  • Type: string

A statement identifier that differentiates the statement from others in the same policy.

Result Syntax

[
    'Statement' => '<string>',
]

Result Details

Members
Statement
  • Type: string

The permission statement that's added to the function policy.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • ResourceConflictException:

    The resource already exists, or another operation is in progress.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • PolicyLengthExceededException:

    The permissions policy for the resource is too large. Learn more

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • PreconditionFailedException:

    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.

CreateAlias

$result = $client->createAlias([/* ... */]);
$promise = $client->createAliasAsync([/* ... */]);

Creates an alias for a Lambda function version. Use aliases to provide clients with a function identifier that you can update to invoke a different version.

You can also map an alias to split invocation requests between two versions. Use the RoutingConfig parameter to specify a second version and the percentage of invocation requests that it receives.

Parameter Syntax

$result = $client->createAlias([
    'Description' => '<string>',
    'FunctionName' => '<string>', // REQUIRED
    'FunctionVersion' => '<string>', // REQUIRED
    'Name' => '<string>', // REQUIRED
    'RoutingConfig' => [
        'AdditionalVersionWeights' => [<float>, ...],
    ],
]);

Parameter Details

Members
Description
  • Type: string

A description of the alias.

FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

FunctionVersion
  • Required: Yes
  • Type: string

The function version that the alias invokes.

Name
  • Required: Yes
  • Type: string

The name of the alias.

RoutingConfig
  • Type: AliasRoutingConfiguration structure

The routing configuration of the alias.

Result Syntax

[
    'AliasArn' => '<string>',
    'Description' => '<string>',
    'FunctionVersion' => '<string>',
    'Name' => '<string>',
    'RevisionId' => '<string>',
    'RoutingConfig' => [
        'AdditionalVersionWeights' => [<float>, ...],
    ],
]

Result Details

Members
AliasArn
  • Type: string

The Amazon Resource Name (ARN) of the alias.

Description
  • Type: string

A description of the alias.

FunctionVersion
  • Type: string

The function version that the alias invokes.

Name
  • Type: string

The name of the alias.

RevisionId
  • Type: string

A unique identifier that changes when you update the alias.

RoutingConfig
  • Type: AliasRoutingConfiguration structure

The routing configuration of the alias.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • ResourceConflictException:

    The resource already exists, or another operation is in progress.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

CreateCodeSigningConfig

$result = $client->createCodeSigningConfig([/* ... */]);
$promise = $client->createCodeSigningConfigAsync([/* ... */]);

Creates a code signing configuration. A code signing configuration defines a list of allowed signing profiles and defines the code-signing validation policy (action to be taken if deployment validation checks fail).

Parameter Syntax

$result = $client->createCodeSigningConfig([
    'AllowedPublishers' => [ // REQUIRED
        'SigningProfileVersionArns' => ['<string>', ...], // REQUIRED
    ],
    'CodeSigningPolicies' => [
        'UntrustedArtifactOnDeployment' => 'Warn|Enforce',
    ],
    'Description' => '<string>',
]);

Parameter Details

Members
AllowedPublishers
  • Required: Yes
  • Type: AllowedPublishers structure

Signing profiles for this code signing configuration.

CodeSigningPolicies
  • Type: CodeSigningPolicies structure

The code signing policies define the actions to take if the validation checks fail.

Description
  • Type: string

Descriptive name for this code signing configuration.

Result Syntax

[
    'CodeSigningConfig' => [
        'AllowedPublishers' => [
            'SigningProfileVersionArns' => ['<string>', ...],
        ],
        'CodeSigningConfigArn' => '<string>',
        'CodeSigningConfigId' => '<string>',
        'CodeSigningPolicies' => [
            'UntrustedArtifactOnDeployment' => 'Warn|Enforce',
        ],
        'Description' => '<string>',
        'LastModified' => '<string>',
    ],
]

Result Details

Members
CodeSigningConfig
  • Required: Yes
  • Type: CodeSigningConfig structure

The code signing configuration.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

CreateEventSourceMapping

$result = $client->createEventSourceMapping([/* ... */]);
$promise = $client->createEventSourceMappingAsync([/* ... */]);

Creates a mapping between an event source and an Lambda function. Lambda reads items from the event source and triggers the function.

For details about how to configure different event sources, see the following topics.

  • Amazon DynamoDB Streams

  • Amazon Kinesis

  • Amazon SQS

  • Amazon MQ and RabbitMQ

  • Amazon MSK

  • Apache Kafka

The following error handling options are only available for stream sources (DynamoDB and Kinesis):

  • BisectBatchOnFunctionError - If the function returns an error, split the batch in two and retry.

  • DestinationConfig - Send discarded records to an Amazon SQS queue or Amazon SNS topic.

  • MaximumRecordAgeInSeconds - Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires

  • MaximumRetryAttempts - Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.

  • ParallelizationFactor - Process multiple batches from each shard concurrently.

For information about which configuration parameters apply to each event source, see the following topics.

  • Amazon DynamoDB Streams

  • Amazon Kinesis

  • Amazon SQS

  • Amazon MQ and RabbitMQ

  • Amazon MSK

  • Apache Kafka

Parameter Syntax

$result = $client->createEventSourceMapping([
    'BatchSize' => <integer>,
    'BisectBatchOnFunctionError' => true || false,
    'DestinationConfig' => [
        'OnFailure' => [
            'Destination' => '<string>',
        ],
        'OnSuccess' => [
            'Destination' => '<string>',
        ],
    ],
    'Enabled' => true || false,
    'EventSourceArn' => '<string>',
    'FilterCriteria' => [
        'Filters' => [
            [
                'Pattern' => '<string>',
            ],
            // ...
        ],
    ],
    'FunctionName' => '<string>', // REQUIRED
    'FunctionResponseTypes' => ['<string>', ...],
    'MaximumBatchingWindowInSeconds' => <integer>,
    'MaximumRecordAgeInSeconds' => <integer>,
    'MaximumRetryAttempts' => <integer>,
    'ParallelizationFactor' => <integer>,
    'Queues' => ['<string>', ...],
    'SelfManagedEventSource' => [
        'Endpoints' => [
            '<EndPointType>' => ['<string>', ...],
            // ...
        ],
    ],
    'SourceAccessConfigurations' => [
        [
            'Type' => 'BASIC_AUTH|VPC_SUBNET|VPC_SECURITY_GROUP|SASL_SCRAM_512_AUTH|SASL_SCRAM_256_AUTH|VIRTUAL_HOST|CLIENT_CERTIFICATE_TLS_AUTH|SERVER_ROOT_CA_CERTIFICATE',
            'URI' => '<string>',
        ],
        // ...
    ],
    'StartingPosition' => 'TRIM_HORIZON|LATEST|AT_TIMESTAMP',
    'StartingPositionTimestamp' => <integer || string || DateTime>,
    'Topics' => ['<string>', ...],
    'TumblingWindowInSeconds' => <integer>,
]);

Parameter Details

Members
BatchSize
  • Type: int

The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB).

  • Amazon Kinesis - Default 100. Max 10,000.

  • Amazon DynamoDB Streams - Default 100. Max 10,000.

  • Amazon Simple Queue Service - Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.

  • Amazon Managed Streaming for Apache Kafka - Default 100. Max 10,000.

  • Self-Managed Apache Kafka - Default 100. Max 10,000.

  • Amazon MQ (ActiveMQ and RabbitMQ) - Default 100. Max 10,000.

BisectBatchOnFunctionError
  • Type: boolean

(Streams only) If the function returns an error, split the batch in two and retry.

DestinationConfig
  • Type: DestinationConfig structure

(Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.

Enabled
  • Type: boolean

When true, the event source mapping is active. When false, Lambda pauses polling and invocation.

Default: True

EventSourceArn
  • Type: string

The Amazon Resource Name (ARN) of the event source.

  • Amazon Kinesis - The ARN of the data stream or a stream consumer.

  • Amazon DynamoDB Streams - The ARN of the stream.

  • Amazon Simple Queue Service - The ARN of the queue.

  • Amazon Managed Streaming for Apache Kafka - The ARN of the cluster.

FilterCriteria
  • Type: FilterCriteria structure

(Streams and Amazon SQS) An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see Lambda event filtering.

FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.

FunctionResponseTypes
  • Type: Array of strings

(Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.

MaximumBatchingWindowInSeconds
  • Type: int

(Streams and Amazon SQS standard queues) The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.

Default: 0

Related setting: When you set BatchSize to a value greater than 10, you must set MaximumBatchingWindowInSeconds to at least 1.

MaximumRecordAgeInSeconds
  • Type: int

(Streams only) Discard records older than the specified age. The default value is infinite (-1).

MaximumRetryAttempts
  • Type: int

(Streams only) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records will be retried until the record expires.

ParallelizationFactor
  • Type: int

(Streams only) The number of batches to process from each shard concurrently.

Queues
  • Type: Array of strings

(MQ) The name of the Amazon MQ broker destination queue to consume.

SelfManagedEventSource
  • Type: SelfManagedEventSource structure

The Self-Managed Apache Kafka cluster to send records.

SourceAccessConfigurations
  • Type: Array of SourceAccessConfiguration structures

An array of authentication protocols or VPC components required to secure your event source.

StartingPosition
  • Type: string

The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources. AT_TIMESTAMP is only supported for Amazon Kinesis streams.

StartingPositionTimestamp
  • Type: timestamp (string|DateTime or anything parsable by strtotime)

With StartingPosition set to AT_TIMESTAMP, the time from which to start reading.

Topics
  • Type: Array of strings

The name of the Kafka topic.

TumblingWindowInSeconds
  • Type: int

(Streams only) The duration in seconds of a processing window. The range is between 1 second up to 900 seconds.

Result Syntax

[
    'BatchSize' => <integer>,
    'BisectBatchOnFunctionError' => true || false,
    'DestinationConfig' => [
        'OnFailure' => [
            'Destination' => '<string>',
        ],
        'OnSuccess' => [
            'Destination' => '<string>',
        ],
    ],
    'EventSourceArn' => '<string>',
    'FilterCriteria' => [
        'Filters' => [
            [
                'Pattern' => '<string>',
            ],
            // ...
        ],
    ],
    'FunctionArn' => '<string>',
    'FunctionResponseTypes' => ['<string>', ...],
    'LastModified' => <DateTime>,
    'LastProcessingResult' => '<string>',
    'MaximumBatchingWindowInSeconds' => <integer>,
    'MaximumRecordAgeInSeconds' => <integer>,
    'MaximumRetryAttempts' => <integer>,
    'ParallelizationFactor' => <integer>,
    'Queues' => ['<string>', ...],
    'SelfManagedEventSource' => [
        'Endpoints' => [
            '<EndPointType>' => ['<string>', ...],
            // ...
        ],
    ],
    'SourceAccessConfigurations' => [
        [
            'Type' => 'BASIC_AUTH|VPC_SUBNET|VPC_SECURITY_GROUP|SASL_SCRAM_512_AUTH|SASL_SCRAM_256_AUTH|VIRTUAL_HOST|CLIENT_CERTIFICATE_TLS_AUTH|SERVER_ROOT_CA_CERTIFICATE',
            'URI' => '<string>',
        ],
        // ...
    ],
    'StartingPosition' => 'TRIM_HORIZON|LATEST|AT_TIMESTAMP',
    'StartingPositionTimestamp' => <DateTime>,
    'State' => '<string>',
    'StateTransitionReason' => '<string>',
    'Topics' => ['<string>', ...],
    'TumblingWindowInSeconds' => <integer>,
    'UUID' => '<string>',
]

Result Details

Members
BatchSize
  • Type: int

The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB).

Default value: Varies by service. For Amazon SQS, the default is 10. For all other services, the default is 100.

Related setting: When you set BatchSize to a value greater than 10, you must set MaximumBatchingWindowInSeconds to at least 1.

BisectBatchOnFunctionError
  • Type: boolean

(Streams only) If the function returns an error, split the batch in two and retry. The default value is false.

DestinationConfig
  • Type: DestinationConfig structure

(Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.

EventSourceArn
  • Type: string

The Amazon Resource Name (ARN) of the event source.

FilterCriteria
  • Type: FilterCriteria structure

(Streams and Amazon SQS) An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see Lambda event filtering.

FunctionArn
  • Type: string

The ARN of the Lambda function.

FunctionResponseTypes
  • Type: Array of strings

(Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.

LastModified
  • Type: timestamp (string|DateTime or anything parsable by strtotime)

The date that the event source mapping was last updated or that its state changed.

LastProcessingResult
  • Type: string

The result of the last Lambda invocation of your function.

MaximumBatchingWindowInSeconds
  • Type: int

(Streams and Amazon SQS standard queues) The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.

Default: 0

Related setting: When you set BatchSize to a value greater than 10, you must set MaximumBatchingWindowInSeconds to at least 1.

MaximumRecordAgeInSeconds
  • Type: int

(Streams only) Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, Lambda never discards old records.

MaximumRetryAttempts
  • Type: int

(Streams only) Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source.

ParallelizationFactor
  • Type: int

(Streams only) The number of batches to process concurrently from each shard. The default value is 1.

Queues
  • Type: Array of strings

(Amazon MQ) The name of the Amazon MQ broker destination queue to consume.

SelfManagedEventSource
  • Type: SelfManagedEventSource structure

The self-managed Apache Kafka cluster for your event source.

SourceAccessConfigurations
  • Type: Array of SourceAccessConfiguration structures

An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.

StartingPosition
  • Type: string

The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK stream sources. AT_TIMESTAMP is supported only for Amazon Kinesis streams.

StartingPositionTimestamp
  • Type: timestamp (string|DateTime or anything parsable by strtotime)

With StartingPosition set to AT_TIMESTAMP, the time from which to start reading.

State
  • Type: string

The state of the event source mapping. It can be one of the following: Creating, Enabling, Enabled, Disabling, Disabled, Updating, or Deleting.

StateTransitionReason
  • Type: string

Indicates whether a user or Lambda made the last change to the event source mapping.

Topics
  • Type: Array of strings

The name of the Kafka topic.

TumblingWindowInSeconds
  • Type: int

(Streams only) The duration in seconds of a processing window. The range is 1–900 seconds.

UUID
  • Type: string

The identifier of the event source mapping.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • ResourceConflictException:

    The resource already exists, or another operation is in progress.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

CreateFunction

$result = $client->createFunction([/* ... */]);
$promise = $client->createFunctionAsync([/* ... */]);

Creates a Lambda function. To create a function, you need a deployment package and an execution role. The deployment package is a .zip file archive or container image that contains your function code. The execution role grants the function permission to use Amazon Web Services services, such as Amazon CloudWatch Logs for log streaming and X-Ray for request tracing.

You set the package type to Image if the deployment package is a container image. For a container image, the code property must include the URI of a container image in the Amazon ECR registry. You do not need to specify the handler and runtime properties.

You set the package type to Zip if the deployment package is a .zip file archive. For a .zip file archive, the code property specifies the location of the .zip file. You must also specify the handler and runtime properties. The code in the deployment package must be compatible with the target instruction set architecture of the function (x86-64 or arm64). If you do not specify the architecture, the default value is x86-64.

When you create a function, Lambda provisions an instance of the function and its supporting resources. If your function connects to a VPC, this process can take a minute or so. During this time, you can't invoke or modify the function. The State, StateReason, and StateReasonCode fields in the response from GetFunctionConfiguration indicate when the function is ready to invoke. For more information, see Function States.

A function has an unpublished version, and can have published versions and aliases. The unpublished version changes when you update your function's code and configuration. A published version is a snapshot of your function code and configuration that can't be changed. An alias is a named resource that maps to a version, and can be changed to map to a different version. Use the Publish parameter to create version 1 of your function from its initial configuration.

The other parameters let you configure version-specific and function-level settings. You can modify version-specific settings later with UpdateFunctionConfiguration. Function-level settings apply to both the unpublished and published versions of the function, and include tags (TagResource) and per-function concurrency limits (PutFunctionConcurrency).

You can use code signing if your deployment package is a .zip file archive. To enable code signing for this function, specify the ARN of a code-signing configuration. When a user attempts to deploy a code package with UpdateFunctionCode, Lambda checks that the code package has a valid signature from a trusted publisher. The code-signing configuration includes set set of signing profiles, which define the trusted publishers for this function.

If another account or an Amazon Web Services service invokes your function, use AddPermission to grant permission by creating a resource-based IAM policy. You can grant permissions at the function level, on a version, or on an alias.

To invoke your function directly, use Invoke. To invoke your function in response to events in other Amazon Web Services services, create an event source mapping (CreateEventSourceMapping), or configure a function trigger in the other service. For more information, see Invoking Functions.

Parameter Syntax

$result = $client->createFunction([
    'Architectures' => ['<string>', ...],
    'Code' => [ // REQUIRED
        'ImageUri' => '<string>',
        'S3Bucket' => '<string>',
        'S3Key' => '<string>',
        'S3ObjectVersion' => '<string>',
        'ZipFile' => <string || resource || Psr\Http\Message\StreamInterface>,
    ],
    'CodeSigningConfigArn' => '<string>',
    'DeadLetterConfig' => [
        'TargetArn' => '<string>',
    ],
    'Description' => '<string>',
    'Environment' => [
        'Variables' => ['<string>', ...],
    ],
    'EphemeralStorage' => [
        'Size' => <integer>, // REQUIRED
    ],
    'FileSystemConfigs' => [
        [
            'Arn' => '<string>', // REQUIRED
            'LocalMountPath' => '<string>', // REQUIRED
        ],
        // ...
    ],
    'FunctionName' => '<string>', // REQUIRED
    'Handler' => '<string>',
    'ImageConfig' => [
        'Command' => ['<string>', ...],
        'EntryPoint' => ['<string>', ...],
        'WorkingDirectory' => '<string>',
    ],
    'KMSKeyArn' => '<string>',
    'Layers' => ['<string>', ...],
    'MemorySize' => <integer>,
    'PackageType' => 'Zip|Image',
    'Publish' => true || false,
    'Role' => '<string>', // REQUIRED
    'Runtime' => 'nodejs|nodejs4.3|nodejs6.10|nodejs8.10|nodejs10.x|nodejs12.x|nodejs14.x|nodejs16.x|java8|java8.al2|java11|python2.7|python3.6|python3.7|python3.8|python3.9|dotnetcore1.0|dotnetcore2.0|dotnetcore2.1|dotnetcore3.1|dotnet6|nodejs4.3-edge|go1.x|ruby2.5|ruby2.7|provided|provided.al2',
    'Tags' => ['<string>', ...],
    'Timeout' => <integer>,
    'TracingConfig' => [
        'Mode' => 'Active|PassThrough',
    ],
    'VpcConfig' => [
        'SecurityGroupIds' => ['<string>', ...],
        'SubnetIds' => ['<string>', ...],
    ],
]);

Parameter Details

Members
Architectures
  • Type: Array of strings

The instruction set architecture that the function supports. Enter a string array with one of the valid values (arm64 or x86_64). The default value is x86_64.

Code
  • Required: Yes
  • Type: FunctionCode structure

The code for the function.

CodeSigningConfigArn
  • Type: string

To enable code signing for this function, specify the ARN of a code-signing configuration. A code-signing configuration includes a set of signing profiles, which define the trusted publishers for this function.

DeadLetterConfig
  • Type: DeadLetterConfig structure

A dead letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when they fail processing. For more information, see Dead Letter Queues.

Description
  • Type: string

A description of the function.

Environment
  • Type: Environment structure

Environment variables that are accessible from function code during execution.

EphemeralStorage
  • Type: EphemeralStorage structure

The size of the function’s /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10240 MB.

FileSystemConfigs
  • Type: Array of FileSystemConfig structures

Connection settings for an Amazon EFS file system.

FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function.

Name formats

  • Function name - my-function.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN - 123456789012:function:my-function.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Handler
  • Type: string

The name of the method within your code that Lambda calls to execute your function. Handler is required if the deployment package is a .zip file archive. The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see Programming Model.

ImageConfig
  • Type: ImageConfig structure

Container image configuration values that override the values in the container image Dockerfile.

KMSKeyArn
  • Type: string

The ARN of the Amazon Web Services Key Management Service (KMS) key that's used to encrypt your function's environment variables. If it's not provided, Lambda uses a default service key.

Layers
  • Type: Array of strings

A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version.

MemorySize
  • Type: int

The amount of memory available to the function at runtime. Increasing the function memory also increases its CPU allocation. The default value is 128 MB. The value can be any multiple of 1 MB.

PackageType
  • Type: string

The type of deployment package. Set to Image for container image and set Zip for ZIP archive.

Publish
  • Type: boolean

Set to true to publish the first version of the function during creation.

Role
  • Required: Yes
  • Type: string

The Amazon Resource Name (ARN) of the function's execution role.

Runtime
  • Type: string

The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.

Tags
  • Type: Associative array of custom strings keys (TagKey) to strings

A list of tags to apply to the function.

Timeout
  • Type: int

The amount of time (in seconds) that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds. For additional information, see Lambda execution environment.

TracingConfig
  • Type: TracingConfig structure

Set Mode to Active to sample and trace a subset of incoming requests with X-Ray.

VpcConfig
  • Type: VpcConfig structure

For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and subnets in the VPC. When you connect a function to a VPC, it can only access resources and the internet through that VPC. For more information, see VPC Settings.

Result Syntax

[
    'Architectures' => ['<string>', ...],
    'CodeSha256' => '<string>',
    'CodeSize' => <integer>,
    'DeadLetterConfig' => [
        'TargetArn' => '<string>',
    ],
    'Description' => '<string>',
    'Environment' => [
        'Error' => [
            'ErrorCode' => '<string>',
            'Message' => '<string>',
        ],
        'Variables' => ['<string>', ...],
    ],
    'EphemeralStorage' => [
        'Size' => <integer>,
    ],
    'FileSystemConfigs' => [
        [
            'Arn' => '<string>',
            'LocalMountPath' => '<string>',
        ],
        // ...
    ],
    'FunctionArn' => '<string>',
    'FunctionName' => '<string>',
    'Handler' => '<string>',
    'ImageConfigResponse' => [
        'Error' => [
            'ErrorCode' => '<string>',
            'Message' => '<string>',
        ],
        'ImageConfig' => [
            'Command' => ['<string>', ...],
            'EntryPoint' => ['<string>', ...],
            'WorkingDirectory' => '<string>',
        ],
    ],
    'KMSKeyArn' => '<string>',
    'LastModified' => '<string>',
    'LastUpdateStatus' => 'Successful|Failed|InProgress',
    'LastUpdateStatusReason' => '<string>',
    'LastUpdateStatusReasonCode' => 'EniLimitExceeded|InsufficientRolePermissions|InvalidConfiguration|InternalError|SubnetOutOfIPAddresses|InvalidSubnet|InvalidSecurityGroup|ImageDeleted|ImageAccessDenied|InvalidImage',
    'Layers' => [
        [
            'Arn' => '<string>',
            'CodeSize' => <integer>,
            'SigningJobArn' => '<string>',
            'SigningProfileVersionArn' => '<string>',
        ],
        // ...
    ],
    'MasterArn' => '<string>',
    'MemorySize' => <integer>,
    'PackageType' => 'Zip|Image',
    'RevisionId' => '<string>',
    'Role' => '<string>',
    'Runtime' => 'nodejs|nodejs4.3|nodejs6.10|nodejs8.10|nodejs10.x|nodejs12.x|nodejs14.x|nodejs16.x|java8|java8.al2|java11|python2.7|python3.6|python3.7|python3.8|python3.9|dotnetcore1.0|dotnetcore2.0|dotnetcore2.1|dotnetcore3.1|dotnet6|nodejs4.3-edge|go1.x|ruby2.5|ruby2.7|provided|provided.al2',
    'SigningJobArn' => '<string>',
    'SigningProfileVersionArn' => '<string>',
    'State' => 'Pending|Active|Inactive|Failed',
    'StateReason' => '<string>',
    'StateReasonCode' => 'Idle|Creating|Restoring|EniLimitExceeded|InsufficientRolePermissions|InvalidConfiguration|InternalError|SubnetOutOfIPAddresses|InvalidSubnet|InvalidSecurityGroup|ImageDeleted|ImageAccessDenied|InvalidImage',
    'Timeout' => <integer>,
    'TracingConfig' => [
        'Mode' => 'Active|PassThrough',
    ],
    'Version' => '<string>',
    'VpcConfig' => [
        'SecurityGroupIds' => ['<string>', ...],
        'SubnetIds' => ['<string>', ...],
        'VpcId' => '<string>',
    ],
]

Result Details

Members
Architectures
  • Type: Array of strings

The instruction set architecture that the function supports. Architecture is a string array with one of the valid values. The default architecture value is x86_64.

CodeSha256
  • Type: string

The SHA256 hash of the function's deployment package.

CodeSize
  • Type: long (int|float)

The size of the function's deployment package, in bytes.

DeadLetterConfig
  • Type: DeadLetterConfig structure

The function's dead letter queue.

Description
  • Type: string

The function's description.

Environment
  • Type: EnvironmentResponse structure

The function's environment variables.

EphemeralStorage
  • Type: EphemeralStorage structure

The size of the function’s /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10240 MB.

FileSystemConfigs
  • Type: Array of FileSystemConfig structures

Connection settings for an Amazon EFS file system.

FunctionArn
  • Type: string

The function's Amazon Resource Name (ARN).

FunctionName
  • Type: string

The name of the function.

Handler
  • Type: string

The function that Lambda calls to begin executing your function.

ImageConfigResponse
  • Type: ImageConfigResponse structure

The function's image configuration values.

KMSKeyArn
  • Type: string

The KMS key that's used to encrypt the function's environment variables. This key is only returned if you've configured a customer managed key.

LastModified
  • Type: string

The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

LastUpdateStatus
  • Type: string

The status of the last update that was performed on the function. This is first set to Successful after function creation completes.

LastUpdateStatusReason
  • Type: string

The reason for the last update that was performed on the function.

LastUpdateStatusReasonCode
  • Type: string

The reason code for the last update that was performed on the function.

Layers
  • Type: Array of Layer structures

The function's layers.

MasterArn
  • Type: string

For Lambda@Edge functions, the ARN of the main function.

MemorySize
  • Type: int

The amount of memory available to the function at runtime.

PackageType
  • Type: string

The type of deployment package. Set to Image for container image and set Zip for .zip file archive.

RevisionId
  • Type: string

The latest updated revision of the function or alias.

Role
  • Type: string

The function's execution role.

Runtime
  • Type: string

The runtime environment for the Lambda function.

SigningJobArn
  • Type: string

The ARN of the signing job.

SigningProfileVersionArn
  • Type: string

The ARN of the signing profile version.

State
  • Type: string

The current state of the function. When the state is Inactive, you can reactivate the function by invoking it.

StateReason
  • Type: string

The reason for the function's current state.

StateReasonCode
  • Type: string

The reason code for the function's current state. When the code is Creating, you can't invoke or modify the function.

Timeout
  • Type: int

The amount of time in seconds that Lambda allows a function to run before stopping it.

TracingConfig
  • Type: TracingConfigResponse structure

The function's X-Ray tracing configuration.

Version
  • Type: string

The version of the Lambda function.

VpcConfig
  • Type: VpcConfigResponse structure

The function's networking configuration.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • ResourceConflictException:

    The resource already exists, or another operation is in progress.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • CodeStorageExceededException:

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

  • CodeVerificationFailedException:

    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.

  • InvalidCodeSignatureException:

    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.

  • CodeSigningConfigNotFoundException:

    The specified code signing configuration does not exist.

CreateFunctionUrlConfig

$result = $client->createFunctionUrlConfig([/* ... */]);
$promise = $client->createFunctionUrlConfigAsync([/* ... */]);

Creates a Lambda function URL with the specified configuration parameters. A function URL is a dedicated HTTP(S) endpoint that you can use to invoke your function.

Parameter Syntax

$result = $client->createFunctionUrlConfig([
    'AuthType' => 'NONE|AWS_IAM', // REQUIRED
    'Cors' => [
        'AllowCredentials' => true || false,
        'AllowHeaders' => ['<string>', ...],
        'AllowMethods' => ['<string>', ...],
        'AllowOrigins' => ['<string>', ...],
        'ExposeHeaders' => ['<string>', ...],
        'MaxAge' => <integer>,
    ],
    'FunctionName' => '<string>', // REQUIRED
    'Qualifier' => '<string>',
]);

Parameter Details

Members
AuthType
  • Required: Yes
  • Type: string

The type of authentication that your function URL uses. Set to AWS_IAM if you want to restrict access to authenticated IAM users only. Set to NONE if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.

Cors
  • Type: Cors structure

The cross-origin resource sharing (CORS) settings for your function URL.

FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function.

Name formats

  • Function name - my-function.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN - 123456789012:function:my-function.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Qualifier
  • Type: string

The alias name.

Result Syntax

[
    'AuthType' => 'NONE|AWS_IAM',
    'Cors' => [
        'AllowCredentials' => true || false,
        'AllowHeaders' => ['<string>', ...],
        'AllowMethods' => ['<string>', ...],
        'AllowOrigins' => ['<string>', ...],
        'ExposeHeaders' => ['<string>', ...],
        'MaxAge' => <integer>,
    ],
    'CreationTime' => '<string>',
    'FunctionArn' => '<string>',
    'FunctionUrl' => '<string>',
]

Result Details

Members
AuthType
  • Required: Yes
  • Type: string

The type of authentication that your function URL uses. Set to AWS_IAM if you want to restrict access to authenticated IAM users only. Set to NONE if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.

Cors
  • Type: Cors structure

The cross-origin resource sharing (CORS) settings for your function URL.

CreationTime
  • Required: Yes
  • Type: string

When the function URL was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

FunctionArn
  • Required: Yes
  • Type: string

The Amazon Resource Name (ARN) of your function.

FunctionUrl
  • Required: Yes
  • Type: string

The HTTP URL endpoint for your function.

Errors

  • ResourceConflictException:

    The resource already exists, or another operation is in progress.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • ServiceException:

    The Lambda service encountered an internal error.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

DeleteAlias

$result = $client->deleteAlias([/* ... */]);
$promise = $client->deleteAliasAsync([/* ... */]);

Deletes a Lambda function alias.

Parameter Syntax

$result = $client->deleteAlias([
    'FunctionName' => '<string>', // REQUIRED
    'Name' => '<string>', // REQUIRED
]);

Parameter Details

Members
FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Name
  • Required: Yes
  • Type: string

The name of the alias.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • ResourceConflictException:

    The resource already exists, or another operation is in progress.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

DeleteCodeSigningConfig

$result = $client->deleteCodeSigningConfig([/* ... */]);
$promise = $client->deleteCodeSigningConfigAsync([/* ... */]);

Deletes the code signing configuration. You can delete the code signing configuration only if no function is using it.

Parameter Syntax

$result = $client->deleteCodeSigningConfig([
    'CodeSigningConfigArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
CodeSigningConfigArn
  • Required: Yes
  • Type: string

The The Amazon Resource Name (ARN) of the code signing configuration.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • ResourceConflictException:

    The resource already exists, or another operation is in progress.

DeleteEventSourceMapping

$result = $client->deleteEventSourceMapping([/* ... */]);
$promise = $client->deleteEventSourceMappingAsync([/* ... */]);

Deletes an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings.

When you delete an event source mapping, it enters a Deleting state and might not be completely deleted for several seconds.

Parameter Syntax

$result = $client->deleteEventSourceMapping([
    'UUID' => '<string>', // REQUIRED
]);

Parameter Details

Members
UUID
  • Required: Yes
  • Type: string

The identifier of the event source mapping.

Result Syntax

[
    'BatchSize' => <integer>,
    'BisectBatchOnFunctionError' => true || false,
    'DestinationConfig' => [
        'OnFailure' => [
            'Destination' => '<string>',
        ],
        'OnSuccess' => [
            'Destination' => '<string>',
        ],
    ],
    'EventSourceArn' => '<string>',
    'FilterCriteria' => [
        'Filters' => [
            [
                'Pattern' => '<string>',
            ],
            // ...
        ],
    ],
    'FunctionArn' => '<string>',
    'FunctionResponseTypes' => ['<string>', ...],
    'LastModified' => <DateTime>,
    'LastProcessingResult' => '<string>',
    'MaximumBatchingWindowInSeconds' => <integer>,
    'MaximumRecordAgeInSeconds' => <integer>,
    'MaximumRetryAttempts' => <integer>,
    'ParallelizationFactor' => <integer>,
    'Queues' => ['<string>', ...],
    'SelfManagedEventSource' => [
        'Endpoints' => [
            '<EndPointType>' => ['<string>', ...],
            // ...
        ],
    ],
    'SourceAccessConfigurations' => [
        [
            'Type' => 'BASIC_AUTH|VPC_SUBNET|VPC_SECURITY_GROUP|SASL_SCRAM_512_AUTH|SASL_SCRAM_256_AUTH|VIRTUAL_HOST|CLIENT_CERTIFICATE_TLS_AUTH|SERVER_ROOT_CA_CERTIFICATE',
            'URI' => '<string>',
        ],
        // ...
    ],
    'StartingPosition' => 'TRIM_HORIZON|LATEST|AT_TIMESTAMP',
    'StartingPositionTimestamp' => <DateTime>,
    'State' => '<string>',
    'StateTransitionReason' => '<string>',
    'Topics' => ['<string>', ...],
    'TumblingWindowInSeconds' => <integer>,
    'UUID' => '<string>',
]

Result Details

Members
BatchSize
  • Type: int

The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB).

Default value: Varies by service. For Amazon SQS, the default is 10. For all other services, the default is 100.

Related setting: When you set BatchSize to a value greater than 10, you must set MaximumBatchingWindowInSeconds to at least 1.

BisectBatchOnFunctionError
  • Type: boolean

(Streams only) If the function returns an error, split the batch in two and retry. The default value is false.

DestinationConfig
  • Type: DestinationConfig structure

(Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.

EventSourceArn
  • Type: string

The Amazon Resource Name (ARN) of the event source.

FilterCriteria
  • Type: FilterCriteria structure

(Streams and Amazon SQS) An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see Lambda event filtering.

FunctionArn
  • Type: string

The ARN of the Lambda function.

FunctionResponseTypes
  • Type: Array of strings

(Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.

LastModified
  • Type: timestamp (string|DateTime or anything parsable by strtotime)

The date that the event source mapping was last updated or that its state changed.

LastProcessingResult
  • Type: string

The result of the last Lambda invocation of your function.

MaximumBatchingWindowInSeconds
  • Type: int

(Streams and Amazon SQS standard queues) The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.

Default: 0

Related setting: When you set BatchSize to a value greater than 10, you must set MaximumBatchingWindowInSeconds to at least 1.

MaximumRecordAgeInSeconds
  • Type: int

(Streams only) Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, Lambda never discards old records.

MaximumRetryAttempts
  • Type: int

(Streams only) Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source.

ParallelizationFactor
  • Type: int

(Streams only) The number of batches to process concurrently from each shard. The default value is 1.

Queues
  • Type: Array of strings

(Amazon MQ) The name of the Amazon MQ broker destination queue to consume.

SelfManagedEventSource
  • Type: SelfManagedEventSource structure

The self-managed Apache Kafka cluster for your event source.

SourceAccessConfigurations
  • Type: Array of SourceAccessConfiguration structures

An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.

StartingPosition
  • Type: string

The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK stream sources. AT_TIMESTAMP is supported only for Amazon Kinesis streams.

StartingPositionTimestamp
  • Type: timestamp (string|DateTime or anything parsable by strtotime)

With StartingPosition set to AT_TIMESTAMP, the time from which to start reading.

State
  • Type: string

The state of the event source mapping. It can be one of the following: Creating, Enabling, Enabled, Disabling, Disabled, Updating, or Deleting.

StateTransitionReason
  • Type: string

Indicates whether a user or Lambda made the last change to the event source mapping.

Topics
  • Type: Array of strings

The name of the Kafka topic.

TumblingWindowInSeconds
  • Type: int

(Streams only) The duration in seconds of a processing window. The range is 1–900 seconds.

UUID
  • Type: string

The identifier of the event source mapping.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • ResourceInUseException:

    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.

DeleteFunction

$result = $client->deleteFunction([/* ... */]);
$promise = $client->deleteFunctionAsync([/* ... */]);

Deletes a Lambda function. To delete a specific function version, use the Qualifier parameter. Otherwise, all versions and aliases are deleted.

To delete Lambda event source mappings that invoke a function, use DeleteEventSourceMapping. For Amazon Web Services services and resources that invoke your function directly, delete the trigger in the service where you originally configured it.

Parameter Syntax

$result = $client->deleteFunction([
    'FunctionName' => '<string>', // REQUIRED
    'Qualifier' => '<string>',
]);

Parameter Details

Members
FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function or version.

Name formats

  • Function name - my-function (name-only), my-function:1 (with version).

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN - 123456789012:function:my-function.

You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Qualifier
  • Type: string

Specify a version to delete. You can't delete a version that's referenced by an alias.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • ResourceConflictException:

    The resource already exists, or another operation is in progress.

DeleteFunctionCodeSigningConfig

$result = $client->deleteFunctionCodeSigningConfig([/* ... */]);
$promise = $client->deleteFunctionCodeSigningConfigAsync([/* ... */]);

Removes the code signing configuration from the function.

Parameter Syntax

$result = $client->deleteFunctionCodeSigningConfig([
    'FunctionName' => '<string>', // REQUIRED
]);

Parameter Details

Members
FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • CodeSigningConfigNotFoundException:

    The specified code signing configuration does not exist.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • ServiceException:

    The Lambda service encountered an internal error.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • ResourceConflictException:

    The resource already exists, or another operation is in progress.

DeleteFunctionConcurrency

$result = $client->deleteFunctionConcurrency([/* ... */]);
$promise = $client->deleteFunctionConcurrencyAsync([/* ... */]);

Removes a concurrent execution limit from a function.

Parameter Syntax

$result = $client->deleteFunctionConcurrency([
    'FunctionName' => '<string>', // REQUIRED
]);

Parameter Details

Members
FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function.

Name formats

  • Function name - my-function.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN - 123456789012:function:my-function.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • ResourceConflictException:

    The resource already exists, or another operation is in progress.

DeleteFunctionEventInvokeConfig

$result = $client->deleteFunctionEventInvokeConfig([/* ... */]);
$promise = $client->deleteFunctionEventInvokeConfigAsync([/* ... */]);

Deletes the configuration for asynchronous invocation for a function, version, or alias.

To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.

Parameter Syntax

$result = $client->deleteFunctionEventInvokeConfig([
    'FunctionName' => '<string>', // REQUIRED
    'Qualifier' => '<string>',
]);

Parameter Details

Members
FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function, version, or alias.

Name formats

  • Function name - my-function (name-only), my-function:v1 (with alias).

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN - 123456789012:function:my-function.

You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Qualifier
  • Type: string

A version number or alias name.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • ResourceConflictException:

    The resource already exists, or another operation is in progress.

DeleteFunctionUrlConfig

$result = $client->deleteFunctionUrlConfig([/* ... */]);
$promise = $client->deleteFunctionUrlConfigAsync([/* ... */]);

Deletes a Lambda function URL. When you delete a function URL, you can't recover it. Creating a new function URL results in a different URL address.

Parameter Syntax

$result = $client->deleteFunctionUrlConfig([
    'FunctionName' => '<string>', // REQUIRED
    'Qualifier' => '<string>',
]);

Parameter Details

Members
FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function.

Name formats

  • Function name - my-function.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN - 123456789012:function:my-function.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Qualifier
  • Type: string

The alias name.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • ResourceConflictException:

    The resource already exists, or another operation is in progress.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • ServiceException:

    The Lambda service encountered an internal error.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

DeleteLayerVersion

$result = $client->deleteLayerVersion([/* ... */]);
$promise = $client->deleteLayerVersionAsync([/* ... */]);

Deletes a version of an Lambda layer. Deleted versions can no longer be viewed or added to functions. To avoid breaking functions, a copy of the version remains in Lambda until no functions refer to it.

Parameter Syntax

$result = $client->deleteLayerVersion([
    'LayerName' => '<string>', // REQUIRED
    'VersionNumber' => <integer>, // REQUIRED
]);

Parameter Details

Members
LayerName
  • Required: Yes
  • Type: string

The name or Amazon Resource Name (ARN) of the layer.

VersionNumber
  • Required: Yes
  • Type: long (int|float)

The version number.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

DeleteProvisionedConcurrencyConfig

$result = $client->deleteProvisionedConcurrencyConfig([/* ... */]);
$promise = $client->deleteProvisionedConcurrencyConfigAsync([/* ... */]);

Deletes the provisioned concurrency configuration for a function.

Parameter Syntax

$result = $client->deleteProvisionedConcurrencyConfig([
    'FunctionName' => '<string>', // REQUIRED
    'Qualifier' => '<string>', // REQUIRED
]);

Parameter Details

Members
FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function.

Name formats

  • Function name - my-function.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN - 123456789012:function:my-function.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Qualifier
  • Required: Yes
  • Type: string

The version number or alias name.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • ResourceConflictException:

    The resource already exists, or another operation is in progress.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • ServiceException:

    The Lambda service encountered an internal error.

GetAccountSettings

$result = $client->getAccountSettings([/* ... */]);
$promise = $client->getAccountSettingsAsync([/* ... */]);

Retrieves details about your account's limits and usage in an Amazon Web Services Region.

Parameter Syntax

$result = $client->getAccountSettings([
]);

Parameter Details

Members

Result Syntax

[
    'AccountLimit' => [
        'CodeSizeUnzipped' => <integer>,
        'CodeSizeZipped' => <integer>,
        'ConcurrentExecutions' => <integer>,
        'TotalCodeSize' => <integer>,
        'UnreservedConcurrentExecutions' => <integer>,
    ],
    'AccountUsage' => [
        'FunctionCount' => <integer>,
        'TotalCodeSize' => <integer>,
    ],
]

Result Details

Members
AccountLimit
  • Type: AccountLimit structure

Limits that are related to concurrency and code storage.

AccountUsage
  • Type: AccountUsage structure

The number of functions and amount of storage in use.

Errors

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • ServiceException:

    The Lambda service encountered an internal error.

GetAlias

$result = $client->getAlias([/* ... */]);
$promise = $client->getAliasAsync([/* ... */]);

Returns details about a Lambda function alias.

Parameter Syntax

$result = $client->getAlias([
    'FunctionName' => '<string>', // REQUIRED
    'Name' => '<string>', // REQUIRED
]);

Parameter Details

Members
FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Name
  • Required: Yes
  • Type: string

The name of the alias.

Result Syntax

[
    'AliasArn' => '<string>',
    'Description' => '<string>',
    'FunctionVersion' => '<string>',
    'Name' => '<string>',
    'RevisionId' => '<string>',
    'RoutingConfig' => [
        'AdditionalVersionWeights' => [<float>, ...],
    ],
]

Result Details

Members
AliasArn
  • Type: string

The Amazon Resource Name (ARN) of the alias.

Description
  • Type: string

A description of the alias.

FunctionVersion
  • Type: string

The function version that the alias invokes.

Name
  • Type: string

The name of the alias.

RevisionId
  • Type: string

A unique identifier that changes when you update the alias.

RoutingConfig
  • Type: AliasRoutingConfiguration structure

The routing configuration of the alias.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

GetCodeSigningConfig

$result = $client->getCodeSigningConfig([/* ... */]);
$promise = $client->getCodeSigningConfigAsync([/* ... */]);

Returns information about the specified code signing configuration.

Parameter Syntax

$result = $client->getCodeSigningConfig([
    'CodeSigningConfigArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
CodeSigningConfigArn
  • Required: Yes
  • Type: string

The The Amazon Resource Name (ARN) of the code signing configuration.

Result Syntax

[
    'CodeSigningConfig' => [
        'AllowedPublishers' => [
            'SigningProfileVersionArns' => ['<string>', ...],
        ],
        'CodeSigningConfigArn' => '<string>',
        'CodeSigningConfigId' => '<string>',
        'CodeSigningPolicies' => [
            'UntrustedArtifactOnDeployment' => 'Warn|Enforce',
        ],
        'Description' => '<string>',
        'LastModified' => '<string>',
    ],
]

Result Details

Members
CodeSigningConfig
  • Required: Yes
  • Type: CodeSigningConfig structure

The code signing configuration

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

GetEventSourceMapping

$result = $client->getEventSourceMapping([/* ... */]);
$promise = $client->getEventSourceMappingAsync([/* ... */]);

Returns details about an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings.

Parameter Syntax

$result = $client->getEventSourceMapping([
    'UUID' => '<string>', // REQUIRED
]);

Parameter Details

Members
UUID
  • Required: Yes
  • Type: string

The identifier of the event source mapping.

Result Syntax

[
    'BatchSize' => <integer>,
    'BisectBatchOnFunctionError' => true || false,
    'DestinationConfig' => [
        'OnFailure' => [
            'Destination' => '<string>',
        ],
        'OnSuccess' => [
            'Destination' => '<string>',
        ],
    ],
    'EventSourceArn' => '<string>',
    'FilterCriteria' => [
        'Filters' => [
            [
                'Pattern' => '<string>',
            ],
            // ...
        ],
    ],
    'FunctionArn' => '<string>',
    'FunctionResponseTypes' => ['<string>', ...],
    'LastModified' => <DateTime>,
    'LastProcessingResult' => '<string>',
    'MaximumBatchingWindowInSeconds' => <integer>,
    'MaximumRecordAgeInSeconds' => <integer>,
    'MaximumRetryAttempts' => <integer>,
    'ParallelizationFactor' => <integer>,
    'Queues' => ['<string>', ...],
    'SelfManagedEventSource' => [
        'Endpoints' => [
            '<EndPointType>' => ['<string>', ...],
            // ...
        ],
    ],
    'SourceAccessConfigurations' => [
        [
            'Type' => 'BASIC_AUTH|VPC_SUBNET|VPC_SECURITY_GROUP|SASL_SCRAM_512_AUTH|SASL_SCRAM_256_AUTH|VIRTUAL_HOST|CLIENT_CERTIFICATE_TLS_AUTH|SERVER_ROOT_CA_CERTIFICATE',
            'URI' => '<string>',
        ],
        // ...
    ],
    'StartingPosition' => 'TRIM_HORIZON|LATEST|AT_TIMESTAMP',
    'StartingPositionTimestamp' => <DateTime>,
    'State' => '<string>',
    'StateTransitionReason' => '<string>',
    'Topics' => ['<string>', ...],
    'TumblingWindowInSeconds' => <integer>,
    'UUID' => '<string>',
]

Result Details

Members
BatchSize
  • Type: int

The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB).

Default value: Varies by service. For Amazon SQS, the default is 10. For all other services, the default is 100.

Related setting: When you set BatchSize to a value greater than 10, you must set MaximumBatchingWindowInSeconds to at least 1.

BisectBatchOnFunctionError
  • Type: boolean

(Streams only) If the function returns an error, split the batch in two and retry. The default value is false.

DestinationConfig
  • Type: DestinationConfig structure

(Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.

EventSourceArn
  • Type: string

The Amazon Resource Name (ARN) of the event source.

FilterCriteria
  • Type: FilterCriteria structure

(Streams and Amazon SQS) An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see Lambda event filtering.

FunctionArn
  • Type: string

The ARN of the Lambda function.

FunctionResponseTypes
  • Type: Array of strings

(Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.

LastModified
  • Type: timestamp (string|DateTime or anything parsable by strtotime)

The date that the event source mapping was last updated or that its state changed.

LastProcessingResult
  • Type: string

The result of the last Lambda invocation of your function.

MaximumBatchingWindowInSeconds
  • Type: int

(Streams and Amazon SQS standard queues) The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.

Default: 0

Related setting: When you set BatchSize to a value greater than 10, you must set MaximumBatchingWindowInSeconds to at least 1.

MaximumRecordAgeInSeconds
  • Type: int

(Streams only) Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, Lambda never discards old records.

MaximumRetryAttempts
  • Type: int

(Streams only) Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source.

ParallelizationFactor
  • Type: int

(Streams only) The number of batches to process concurrently from each shard. The default value is 1.

Queues
  • Type: Array of strings

(Amazon MQ) The name of the Amazon MQ broker destination queue to consume.

SelfManagedEventSource
  • Type: SelfManagedEventSource structure

The self-managed Apache Kafka cluster for your event source.

SourceAccessConfigurations
  • Type: Array of SourceAccessConfiguration structures

An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.

StartingPosition
  • Type: string

The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK stream sources. AT_TIMESTAMP is supported only for Amazon Kinesis streams.

StartingPositionTimestamp
  • Type: timestamp (string|DateTime or anything parsable by strtotime)

With StartingPosition set to AT_TIMESTAMP, the time from which to start reading.

State
  • Type: string

The state of the event source mapping. It can be one of the following: Creating, Enabling, Enabled, Disabling, Disabled, Updating, or Deleting.

StateTransitionReason
  • Type: string

Indicates whether a user or Lambda made the last change to the event source mapping.

Topics
  • Type: Array of strings

The name of the Kafka topic.

TumblingWindowInSeconds
  • Type: int

(Streams only) The duration in seconds of a processing window. The range is 1–900 seconds.

UUID
  • Type: string

The identifier of the event source mapping.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

GetFunction

$result = $client->getFunction([/* ... */]);
$promise = $client->getFunctionAsync([/* ... */]);

Returns information about the function or function version, with a link to download the deployment package that's valid for 10 minutes. If you specify a function version, only details that are specific to that version are returned.

Parameter Syntax

$result = $client->getFunction([
    'FunctionName' => '<string>', // REQUIRED
    'Qualifier' => '<string>',
]);

Parameter Details

Members
FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function, version, or alias.

Name formats

  • Function name - my-function (name-only), my-function:v1 (with alias).

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN - 123456789012:function:my-function.

You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Qualifier
  • Type: string

Specify a version or alias to get details about a published version of the function.

Result Syntax

[
    'Code' => [
        'ImageUri' => '<string>',
        'Location' => '<string>',
        'RepositoryType' => '<string>',
        'ResolvedImageUri' => '<string>',
    ],
    'Concurrency' => [
        'ReservedConcurrentExecutions' => <integer>,
    ],
    'Configuration' => [
        'Architectures' => ['<string>', ...],
        'CodeSha256' => '<string>',
        'CodeSize' => <integer>,
        'DeadLetterConfig' => [
            'TargetArn' => '<string>',
        ],
        'Description' => '<string>',
        'Environment' => [
            'Error' => [
                'ErrorCode' => '<string>',
                'Message' => '<string>',
            ],
            'Variables' => ['<string>', ...],
        ],
        'EphemeralStorage' => [
            'Size' => <integer>,
        ],
        'FileSystemConfigs' => [
            [
                'Arn' => '<string>',
                'LocalMountPath' => '<string>',
            ],
            // ...
        ],
        'FunctionArn' => '<string>',
        'FunctionName' => '<string>',
        'Handler' => '<string>',
        'ImageConfigResponse' => [
            'Error' => [
                'ErrorCode' => '<string>',
                'Message' => '<string>',
            ],
            'ImageConfig' => [
                'Command' => ['<string>', ...],
                'EntryPoint' => ['<string>', ...],
                'WorkingDirectory' => '<string>',
            ],
        ],
        'KMSKeyArn' => '<string>',
        'LastModified' => '<string>',
        'LastUpdateStatus' => 'Successful|Failed|InProgress',
        'LastUpdateStatusReason' => '<string>',
        'LastUpdateStatusReasonCode' => 'EniLimitExceeded|InsufficientRolePermissions|InvalidConfiguration|InternalError|SubnetOutOfIPAddresses|InvalidSubnet|InvalidSecurityGroup|ImageDeleted|ImageAccessDenied|InvalidImage',
        'Layers' => [
            [
                'Arn' => '<string>',
                'CodeSize' => <integer>,
                'SigningJobArn' => '<string>',
                'SigningProfileVersionArn' => '<string>',
            ],
            // ...
        ],
        'MasterArn' => '<string>',
        'MemorySize' => <integer>,
        'PackageType' => 'Zip|Image',
        'RevisionId' => '<string>',
        'Role' => '<string>',
        'Runtime' => 'nodejs|nodejs4.3|nodejs6.10|nodejs8.10|nodejs10.x|nodejs12.x|nodejs14.x|nodejs16.x|java8|java8.al2|java11|python2.7|python3.6|python3.7|python3.8|python3.9|dotnetcore1.0|dotnetcore2.0|dotnetcore2.1|dotnetcore3.1|dotnet6|nodejs4.3-edge|go1.x|ruby2.5|ruby2.7|provided|provided.al2',
        'SigningJobArn' => '<string>',
        'SigningProfileVersionArn' => '<string>',
        'State' => 'Pending|Active|Inactive|Failed',
        'StateReason' => '<string>',
        'StateReasonCode' => 'Idle|Creating|Restoring|EniLimitExceeded|InsufficientRolePermissions|InvalidConfiguration|InternalError|SubnetOutOfIPAddresses|InvalidSubnet|InvalidSecurityGroup|ImageDeleted|ImageAccessDenied|InvalidImage',
        'Timeout' => <integer>,
        'TracingConfig' => [
            'Mode' => 'Active|PassThrough',
        ],
        'Version' => '<string>',
        'VpcConfig' => [
            'SecurityGroupIds' => ['<string>', ...],
            'SubnetIds' => ['<string>', ...],
            'VpcId' => '<string>',
        ],
    ],
    'Tags' => ['<string>', ...],
]

Result Details

Members
Code
  • Type: FunctionCodeLocation structure

The deployment package of the function or version.

Concurrency
  • Type: Concurrency structure

The function's reserved concurrency.

Configuration
  • Type: FunctionConfiguration structure

The configuration of the function or version.

Tags
  • Type: Associative array of custom strings keys (TagKey) to strings

The function's tags.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

GetFunctionCodeSigningConfig

$result = $client->getFunctionCodeSigningConfig([/* ... */]);
$promise = $client->getFunctionCodeSigningConfigAsync([/* ... */]);

Returns the code signing configuration for the specified function.

Parameter Syntax

$result = $client->getFunctionCodeSigningConfig([
    'FunctionName' => '<string>', // REQUIRED
]);

Parameter Details

Members
FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Result Syntax

[
    'CodeSigningConfigArn' => '<string>',
    'FunctionName' => '<string>',
]

Result Details

Members
CodeSigningConfigArn
  • Required: Yes
  • Type: string

The The Amazon Resource Name (ARN) of the code signing configuration.

FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Errors

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • ServiceException:

    The Lambda service encountered an internal error.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

GetFunctionConcurrency

$result = $client->getFunctionConcurrency([/* ... */]);
$promise = $client->getFunctionConcurrencyAsync([/* ... */]);

Returns details about the reserved concurrency configuration for a function. To set a concurrency limit for a function, use PutFunctionConcurrency.

Parameter Syntax

$result = $client->getFunctionConcurrency([
    'FunctionName' => '<string>', // REQUIRED
]);

Parameter Details

Members
FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function.

Name formats

  • Function name - my-function.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN - 123456789012:function:my-function.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Result Syntax

[
    'ReservedConcurrentExecutions' => <integer>,
]

Result Details

Members
ReservedConcurrentExecutions
  • Type: int

The number of simultaneous executions that are reserved for the function.

Errors

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • ServiceException:

    The Lambda service encountered an internal error.

GetFunctionConfiguration

$result = $client->getFunctionConfiguration([/* ... */]);
$promise = $client->getFunctionConfigurationAsync([/* ... */]);

Returns the version-specific settings of a Lambda function or version. The output includes only options that can vary between versions of a function. To modify these settings, use UpdateFunctionConfiguration.

To get all of a function's details, including function-level settings, use GetFunction.

Parameter Syntax

$result = $client->getFunctionConfiguration([
    'FunctionName' => '<string>', // REQUIRED
    'Qualifier' => '<string>',
]);

Parameter Details

Members
FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function, version, or alias.

Name formats

  • Function name - my-function (name-only), my-function:v1 (with alias).

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN - 123456789012:function:my-function.

You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Qualifier
  • Type: string

Specify a version or alias to get details about a published version of the function.

Result Syntax

[
    'Architectures' => ['<string>', ...],
    'CodeSha256' => '<string>',
    'CodeSize' => <integer>,
    'DeadLetterConfig' => [
        'TargetArn' => '<string>',
    ],
    'Description' => '<string>',
    'Environment' => [
        'Error' => [
            'ErrorCode' => '<string>',
            'Message' => '<string>',
        ],
        'Variables' => ['<string>', ...],
    ],
    'EphemeralStorage' => [
        'Size' => <integer>,
    ],
    'FileSystemConfigs' => [
        [
            'Arn' => '<string>',
            'LocalMountPath' => '<string>',
        ],
        // ...
    ],
    'FunctionArn' => '<string>',
    'FunctionName' => '<string>',
    'Handler' => '<string>',
    'ImageConfigResponse' => [
        'Error' => [
            'ErrorCode' => '<string>',
            'Message' => '<string>',
        ],
        'ImageConfig' => [
            'Command' => ['<string>', ...],
            'EntryPoint' => ['<string>', ...],
            'WorkingDirectory' => '<string>',
        ],
    ],
    'KMSKeyArn' => '<string>',
    'LastModified' => '<string>',
    'LastUpdateStatus' => 'Successful|Failed|InProgress',
    'LastUpdateStatusReason' => '<string>',
    'LastUpdateStatusReasonCode' => 'EniLimitExceeded|InsufficientRolePermissions|InvalidConfiguration|InternalError|SubnetOutOfIPAddresses|InvalidSubnet|InvalidSecurityGroup|ImageDeleted|ImageAccessDenied|InvalidImage',
    'Layers' => [
        [
            'Arn' => '<string>',
            'CodeSize' => <integer>,
            'SigningJobArn' => '<string>',
            'SigningProfileVersionArn' => '<string>',
        ],
        // ...
    ],
    'MasterArn' => '<string>',
    'MemorySize' => <integer>,
    'PackageType' => 'Zip|Image',
    'RevisionId' => '<string>',
    'Role' => '<string>',
    'Runtime' => 'nodejs|nodejs4.3|nodejs6.10|nodejs8.10|nodejs10.x|nodejs12.x|nodejs14.x|nodejs16.x|java8|java8.al2|java11|python2.7|python3.6|python3.7|python3.8|python3.9|dotnetcore1.0|dotnetcore2.0|dotnetcore2.1|dotnetcore3.1|dotnet6|nodejs4.3-edge|go1.x|ruby2.5|ruby2.7|provided|provided.al2',
    'SigningJobArn' => '<string>',
    'SigningProfileVersionArn' => '<string>',
    'State' => 'Pending|Active|Inactive|Failed',
    'StateReason' => '<string>',
    'StateReasonCode' => 'Idle|Creating|Restoring|EniLimitExceeded|InsufficientRolePermissions|InvalidConfiguration|InternalError|SubnetOutOfIPAddresses|InvalidSubnet|InvalidSecurityGroup|ImageDeleted|ImageAccessDenied|InvalidImage',
    'Timeout' => <integer>,
    'TracingConfig' => [
        'Mode' => 'Active|PassThrough',
    ],
    'Version' => '<string>',
    'VpcConfig' => [
        'SecurityGroupIds' => ['<string>', ...],
        'SubnetIds' => ['<string>', ...],
        'VpcId' => '<string>',
    ],
]

Result Details

Members
Architectures
  • Type: Array of strings

The instruction set architecture that the function supports. Architecture is a string array with one of the valid values. The default architecture value is x86_64.

CodeSha256
  • Type: string

The SHA256 hash of the function's deployment package.

CodeSize
  • Type: long (int|float)

The size of the function's deployment package, in bytes.

DeadLetterConfig
  • Type: DeadLetterConfig structure

The function's dead letter queue.

Description
  • Type: string

The function's description.

Environment
  • Type: EnvironmentResponse structure

The function's environment variables.

EphemeralStorage
  • Type: EphemeralStorage structure

The size of the function’s /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10240 MB.

FileSystemConfigs
  • Type: Array of FileSystemConfig structures

Connection settings for an Amazon EFS file system.

FunctionArn
  • Type: string

The function's Amazon Resource Name (ARN).

FunctionName
  • Type: string

The name of the function.

Handler
  • Type: string

The function that Lambda calls to begin executing your function.

ImageConfigResponse
  • Type: ImageConfigResponse structure

The function's image configuration values.

KMSKeyArn
  • Type: string

The KMS key that's used to encrypt the function's environment variables. This key is only returned if you've configured a customer managed key.

LastModified
  • Type: string

The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

LastUpdateStatus
  • Type: string

The status of the last update that was performed on the function. This is first set to Successful after function creation completes.

LastUpdateStatusReason
  • Type: string

The reason for the last update that was performed on the function.

LastUpdateStatusReasonCode
  • Type: string

The reason code for the last update that was performed on the function.

Layers
  • Type: Array of Layer structures

The function's layers.

MasterArn
  • Type: string

For Lambda@Edge functions, the ARN of the main function.

MemorySize
  • Type: int

The amount of memory available to the function at runtime.

PackageType
  • Type: string

The type of deployment package. Set to Image for container image and set Zip for .zip file archive.

RevisionId
  • Type: string

The latest updated revision of the function or alias.

Role
  • Type: string

The function's execution role.

Runtime
  • Type: string

The runtime environment for the Lambda function.

SigningJobArn
  • Type: string

The ARN of the signing job.

SigningProfileVersionArn
  • Type: string

The ARN of the signing profile version.

State
  • Type: string

The current state of the function. When the state is Inactive, you can reactivate the function by invoking it.

StateReason
  • Type: string

The reason for the function's current state.

StateReasonCode
  • Type: string

The reason code for the function's current state. When the code is Creating, you can't invoke or modify the function.

Timeout
  • Type: int

The amount of time in seconds that Lambda allows a function to run before stopping it.

TracingConfig
  • Type: TracingConfigResponse structure

The function's X-Ray tracing configuration.

Version
  • Type: string

The version of the Lambda function.

VpcConfig
  • Type: VpcConfigResponse structure

The function's networking configuration.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

GetFunctionEventInvokeConfig

$result = $client->getFunctionEventInvokeConfig([/* ... */]);
$promise = $client->getFunctionEventInvokeConfigAsync([/* ... */]);

Retrieves the configuration for asynchronous invocation for a function, version, or alias.

To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.

Parameter Syntax

$result = $client->getFunctionEventInvokeConfig([
    'FunctionName' => '<string>', // REQUIRED
    'Qualifier' => '<string>',
]);

Parameter Details

Members
FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function, version, or alias.

Name formats

  • Function name - my-function (name-only), my-function:v1 (with alias).

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN - 123456789012:function:my-function.

You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Qualifier
  • Type: string

A version number or alias name.

Result Syntax

[
    'DestinationConfig' => [
        'OnFailure' => [
            'Destination' => '<string>',
        ],
        'OnSuccess' => [
            'Destination' => '<string>',
        ],
    ],
    'FunctionArn' => '<string>',
    'LastModified' => <DateTime>,
    'MaximumEventAgeInSeconds' => <integer>,
    'MaximumRetryAttempts' => <integer>,
]

Result Details

Members
DestinationConfig
  • Type: DestinationConfig structure

A destination for events after they have been sent to a function for processing.

Destinations

  • Function - The Amazon Resource Name (ARN) of a Lambda function.

  • Queue - The ARN of an SQS queue.

  • Topic - The ARN of an SNS topic.

  • Event Bus - The ARN of an Amazon EventBridge event bus.

FunctionArn
  • Type: string

The Amazon Resource Name (ARN) of the function.

LastModified
  • Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time that the configuration was last updated.

MaximumEventAgeInSeconds
  • Type: int

The maximum age of a request that Lambda sends to a function for processing.

MaximumRetryAttempts
  • Type: int

The maximum number of times to retry when the function returns an error.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

GetFunctionUrlConfig

$result = $client->getFunctionUrlConfig([/* ... */]);
$promise = $client->getFunctionUrlConfigAsync([/* ... */]);

Returns details about a Lambda function URL.

Parameter Syntax

$result = $client->getFunctionUrlConfig([
    'FunctionName' => '<string>', // REQUIRED
    'Qualifier' => '<string>',
]);

Parameter Details

Members
FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function.

Name formats

  • Function name - my-function.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN - 123456789012:function:my-function.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Qualifier
  • Type: string

The alias name.

Result Syntax

[
    'AuthType' => 'NONE|AWS_IAM',
    'Cors' => [
        'AllowCredentials' => true || false,
        'AllowHeaders' => ['<string>', ...],
        'AllowMethods' => ['<string>', ...],
        'AllowOrigins' => ['<string>', ...],
        'ExposeHeaders' => ['<string>', ...],
        'MaxAge' => <integer>,
    ],
    'CreationTime' => '<string>',
    'FunctionArn' => '<string>',
    'FunctionUrl' => '<string>',
    'LastModifiedTime' => '<string>',
]

Result Details

Members
AuthType
  • Required: Yes
  • Type: string

The type of authentication that your function URL uses. Set to AWS_IAM if you want to restrict access to authenticated IAM users only. Set to NONE if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.

Cors
  • Type: Cors structure

The cross-origin resource sharing (CORS) settings for your function URL.

CreationTime
  • Required: Yes
  • Type: string

When the function URL was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

FunctionArn
  • Required: Yes
  • Type: string

The Amazon Resource Name (ARN) of your function.

FunctionUrl
  • Required: Yes
  • Type: string

The HTTP URL endpoint for your function.

LastModifiedTime
  • Required: Yes
  • Type: string

When the function URL configuration was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

Errors

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • ServiceException:

    The Lambda service encountered an internal error.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

GetLayerVersion

$result = $client->getLayerVersion([/* ... */]);
$promise = $client->getLayerVersionAsync([/* ... */]);

Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes.

Parameter Syntax

$result = $client->getLayerVersion([
    'LayerName' => '<string>', // REQUIRED
    'VersionNumber' => <integer>, // REQUIRED
]);

Parameter Details

Members
LayerName
  • Required: Yes
  • Type: string

The name or Amazon Resource Name (ARN) of the layer.

VersionNumber
  • Required: Yes
  • Type: long (int|float)

The version number.

Result Syntax

[
    'CompatibleArchitectures' => ['<string>', ...],
    'CompatibleRuntimes' => ['<string>', ...],
    'Content' => [
        'CodeSha256' => '<string>',
        'CodeSize' => <integer>,
        'Location' => '<string>',
        'SigningJobArn' => '<string>',
        'SigningProfileVersionArn' => '<string>',
    ],
    'CreatedDate' => '<string>',
    'Description' => '<string>',
    'LayerArn' => '<string>',
    'LayerVersionArn' => '<string>',
    'LicenseInfo' => '<string>',
    'Version' => <integer>,
]

Result Details

Members
CompatibleArchitectures
  • Type: Array of strings

A list of compatible instruction set architectures.

CompatibleRuntimes
  • Type: Array of strings

The layer's compatible runtimes.

Content
  • Type: LayerVersionContentOutput structure

Details about the layer version.

CreatedDate
  • Type: string

The date that the layer version was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

Description
  • Type: string

The description of the version.

LayerArn
  • Type: string

The ARN of the layer.

LayerVersionArn
  • Type: string

The ARN of the layer version.

LicenseInfo
  • Type: string

The layer's software license.

Version
  • Type: long (int|float)

The version number.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

GetLayerVersionByArn

$result = $client->getLayerVersionByArn([/* ... */]);
$promise = $client->getLayerVersionByArnAsync([/* ... */]);

Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes.

Parameter Syntax

$result = $client->getLayerVersionByArn([
    'Arn' => '<string>', // REQUIRED
]);

Parameter Details

Members
Arn
  • Required: Yes
  • Type: string

The ARN of the layer version.

Result Syntax

[
    'CompatibleArchitectures' => ['<string>', ...],
    'CompatibleRuntimes' => ['<string>', ...],
    'Content' => [
        'CodeSha256' => '<string>',
        'CodeSize' => <integer>,
        'Location' => '<string>',
        'SigningJobArn' => '<string>',
        'SigningProfileVersionArn' => '<string>',
    ],
    'CreatedDate' => '<string>',
    'Description' => '<string>',
    'LayerArn' => '<string>',
    'LayerVersionArn' => '<string>',
    'LicenseInfo' => '<string>',
    'Version' => <integer>,
]

Result Details

Members
CompatibleArchitectures
  • Type: Array of strings

A list of compatible instruction set architectures.

CompatibleRuntimes
  • Type: Array of strings

The layer's compatible runtimes.

Content
  • Type: LayerVersionContentOutput structure

Details about the layer version.

CreatedDate
  • Type: string

The date that the layer version was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

Description
  • Type: string

The description of the version.

LayerArn
  • Type: string

The ARN of the layer.

LayerVersionArn
  • Type: string

The ARN of the layer version.

LicenseInfo
  • Type: string

The layer's software license.

Version
  • Type: long (int|float)

The version number.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

GetLayerVersionPolicy

$result = $client->getLayerVersionPolicy([/* ... */]);
$promise = $client->getLayerVersionPolicyAsync([/* ... */]);

Returns the permission policy for a version of an Lambda layer. For more information, see AddLayerVersionPermission.

Parameter Syntax

$result = $client->getLayerVersionPolicy([
    'LayerName' => '<string>', // REQUIRED
    'VersionNumber' => <integer>, // REQUIRED
]);

Parameter Details

Members
LayerName
  • Required: Yes
  • Type: string

The name or Amazon Resource Name (ARN) of the layer.

VersionNumber
  • Required: Yes
  • Type: long (int|float)

The version number.

Result Syntax

[
    'Policy' => '<string>',
    'RevisionId' => '<string>',
]

Result Details

Members
Policy
  • Type: string

The policy document.

RevisionId
  • Type: string

A unique identifier for the current revision of the policy.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

GetPolicy

$result = $client->getPolicy([/* ... */]);
$promise = $client->getPolicyAsync([/* ... */]);

Returns the resource-based IAM policy for a function, version, or alias.

Parameter Syntax

$result = $client->getPolicy([
    'FunctionName' => '<string>', // REQUIRED
    'Qualifier' => '<string>',
]);

Parameter Details

Members
FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function, version, or alias.

Name formats

  • Function name - my-function (name-only), my-function:v1 (with alias).

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN - 123456789012:function:my-function.

You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Qualifier
  • Type: string

Specify a version or alias to get the policy for that resource.

Result Syntax

[
    'Policy' => '<string>',
    'RevisionId' => '<string>',
]

Result Details

Members
Policy
  • Type: string

The resource-based policy.

RevisionId
  • Type: string

A unique identifier for the current revision of the policy.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

GetProvisionedConcurrencyConfig

$result = $client->getProvisionedConcurrencyConfig([/* ... */]);
$promise = $client->getProvisionedConcurrencyConfigAsync([/* ... */]);

Retrieves the provisioned concurrency configuration for a function's alias or version.

Parameter Syntax

$result = $client->getProvisionedConcurrencyConfig([
    'FunctionName' => '<string>', // REQUIRED
    'Qualifier' => '<string>', // REQUIRED
]);

Parameter Details

Members
FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function.

Name formats

  • Function name - my-function.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN - 123456789012:function:my-function.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Qualifier
  • Required: Yes
  • Type: string

The version number or alias name.

Result Syntax

[
    'AllocatedProvisionedConcurrentExecutions' => <integer>,
    'AvailableProvisionedConcurrentExecutions' => <integer>,
    'LastModified' => '<string>',
    'RequestedProvisionedConcurrentExecutions' => <integer>,
    'Status' => 'IN_PROGRESS|READY|FAILED',
    'StatusReason' => '<string>',
]

Result Details

Members
AllocatedProvisionedConcurrentExecutions
  • Type: int

The amount of provisioned concurrency allocated.

AvailableProvisionedConcurrentExecutions
  • Type: int

The amount of provisioned concurrency available.

LastModified
  • Type: string

The date and time that a user last updated the configuration, in ISO 8601 format.

RequestedProvisionedConcurrentExecutions
  • Type: int

The amount of provisioned concurrency requested.

Status
  • Type: string

The status of the allocation process.

StatusReason
  • Type: string

For failed allocations, the reason that provisioned concurrency could not be allocated.

Errors

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • ServiceException:

    The Lambda service encountered an internal error.

  • ProvisionedConcurrencyConfigNotFoundException:

    The specified configuration does not exist.

Invoke

$result = $client->invoke([/* ... */]);
$promise = $client->invokeAsync([/* ... */]);

Invokes a Lambda function. You can invoke a function synchronously (and wait for the response), or asynchronously. To invoke a function asynchronously, set InvocationType to Event.

For synchronous invocation, details about the function response, including errors, are included in the response body and headers. For either invocation type, you can find more information in the execution log and trace.

When an error occurs, your function may be invoked multiple times. Retry behavior varies by error type, client, event source, and invocation type. For example, if you invoke a function asynchronously and it returns an error, Lambda executes the function up to two more times. For more information, see Retry Behavior.

For asynchronous invocation, Lambda adds events to a queue before sending them to your function. If your function does not have enough capacity to keep up with the queue, events may be lost. Occasionally, your function may receive the same event multiple times, even if no error occurs. To retain events that were not processed, configure your function with a dead-letter queue.

The status code in the API response doesn't reflect function errors. Error codes are reserved for errors that prevent your function from executing, such as permissions errors, limit errors, or issues with your function's code and configuration. For example, Lambda returns TooManyRequestsException if executing the function would cause you to exceed a concurrency limit at either the account level (ConcurrentInvocationLimitExceeded) or function level (ReservedFunctionConcurrentInvocationLimitExceeded).

For functions with a long timeout, your client might be disconnected during synchronous invocation while it waits for a response. Configure your HTTP client, SDK, firewall, proxy, or operating system to allow for long connections with timeout or keep-alive settings.

This operation requires permission for the lambda:InvokeFunction action.

Parameter Syntax

$result = $client->invoke([
    'ClientContext' => '<string>',
    'FunctionName' => '<string>', // REQUIRED
    'InvocationType' => 'Event|RequestResponse|DryRun',
    'LogType' => 'None|Tail',
    'Payload' => <string || resource || Psr\Http\Message\StreamInterface>,
    'Qualifier' => '<string>',
]);

Parameter Details

Members
ClientContext
  • Type: string

Up to 3583 bytes of base64-encoded data about the invoking client to pass to the function in the context object.

FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function, version, or alias.

Name formats

  • Function name - my-function (name-only), my-function:v1 (with alias).

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN - 123456789012:function:my-function.

You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

InvocationType
  • Type: string

Choose from the following options.

  • RequestResponse (default) - Invoke the function synchronously. Keep the connection open until the function returns a response or times out. The API response includes the function response and additional data.

  • Event - Invoke the function asynchronously. Send events that fail multiple times to the function's dead-letter queue (if it's configured). The API response only includes a status code.

  • DryRun - Validate parameter values and verify that the user or role has permission to invoke the function.

LogType
  • Type: string

Set to Tail to include the execution log in the response. Applies to synchronously invoked functions only.

Payload
  • Type: blob (string|resource|Psr\Http\Message\StreamInterface)

The JSON that you want to provide to your Lambda function as input.

You can enter the JSON directly. For example, --payload '{ "key": "value" }'. You can also specify a file path. For example, --payload file://payload.json.

Qualifier
  • Type: string

Specify a version or alias to invoke a published version of the function.

Result Syntax

[
    'ExecutedVersion' => '<string>',
    'FunctionError' => '<string>',
    'LogResult' => '<string>',
    'Payload' => <string || resource || Psr\Http\Message\StreamInterface>,
    'StatusCode' => <integer>,
]

Result Details

Members
ExecutedVersion
  • Type: string

The version of the function that executed. When you invoke a function with an alias, this indicates which version the alias resolved to.

FunctionError
  • Type: string

If present, indicates that an error occurred during function execution. Details about the error are included in the response payload.

LogResult
  • Type: string

The last 4 KB of the execution log, which is base64 encoded.

Payload
  • Type: blob (string|resource|Psr\Http\Message\StreamInterface)

The response from the function, or an error object.

StatusCode
  • Type: int

The HTTP status code is in the 200 range for a successful request. For the RequestResponse invocation type, this status code is 200. For the Event invocation type, this status code is 202. For the DryRun invocation type, the status code is 204.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • InvalidRequestContentException:

    The request body could not be parsed as JSON.

  • RequestTooLargeException:

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

  • UnsupportedMediaTypeException:

    The content type of the Invoke request body is not JSON.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • EC2UnexpectedException:

    Lambda received an unexpected EC2 client exception while setting up for the Lambda function.

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

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

  • EFSMountConnectivityException:

    The function couldn't make a network connection to the configured file system.

  • EFSMountFailureException:

    The function couldn't mount the configured file system due to a permission or configuration issue.

  • EFSMountTimeoutException:

    The function was able to make a network connection to the configured file system, but the mount operation timed out.

  • EFSIOException:

    An error occurred when reading from or writing to a connected file system.

  • EC2ThrottledException:

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

  • EC2AccessDeniedException:

    Need additional permissions to configure VPC settings.

  • InvalidSubnetIDException:

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

  • InvalidSecurityGroupIDException:

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

  • InvalidZipFileException:

    Lambda could not unzip the deployment package.

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

    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.

  • KMSAccessDeniedException:

    Lambda was unable to decrypt the environment variables because KMS access was denied. Check the Lambda function's KMS permissions.

  • KMSNotFoundException:

    Lambda was unable to decrypt the environment variables because the KMS key was not found. Check the function's KMS key settings.

  • InvalidRuntimeException:

    The runtime or runtime version specified is not supported.

  • ResourceConflictException:

    The resource already exists, or another operation is in progress.

  • ResourceNotReadyException:

    The function is inactive and its VPC connection is no longer available. Wait for the VPC connection to reestablish and try again.

InvokeAsync

$result = $client->invokeAsync([/* ... */]);
$promise = $client->invokeAsyncAsync([/* ... */]);

For asynchronous function invocation, use Invoke.

Invokes a function asynchronously.

Parameter Syntax

$result = $client->invokeAsync([
    'FunctionName' => '<string>', // REQUIRED
    'InvokeArgs' => <string || resource || Psr\Http\Message\StreamInterface>, // REQUIRED
]);

Parameter Details

Members
FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function.

Name formats

  • Function name - my-function.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN - 123456789012:function:my-function.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

InvokeArgs
  • Required: Yes
  • Type: blob (string|resource|Psr\Http\Message\StreamInterface)

The JSON that you want to provide to your Lambda function as input.

Result Syntax

[
    'Status' => <integer>,
]

Result Details

Members
Status
  • Type: int

The status code.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • InvalidRequestContentException:

    The request body could not be parsed as JSON.

  • InvalidRuntimeException:

    The runtime or runtime version specified is not supported.

  • ResourceConflictException:

    The resource already exists, or another operation is in progress.

ListAliases

$result = $client->listAliases([/* ... */]);
$promise = $client->listAliasesAsync([/* ... */]);

Returns a list of aliases for a Lambda function.

Parameter Syntax

$result = $client->listAliases([
    'FunctionName' => '<string>', // REQUIRED
    'FunctionVersion' => '<string>',
    'Marker' => '<string>',
    'MaxItems' => <integer>,
]);

Parameter Details

Members
FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

FunctionVersion
  • Type: string

Specify a function version to only list aliases that invoke that version.

Marker
  • Type: string

Specify the pagination token that's returned by a previous request to retrieve the next page of results.

MaxItems
  • Type: int

Limit the number of aliases returned.

Result Syntax

[
    'Aliases' => [
        [
            'AliasArn' => '<string>',
            'Description' => '<string>',
            'FunctionVersion' => '<string>',
            'Name' => '<string>',
            'RevisionId' => '<string>',
            'RoutingConfig' => [
                'AdditionalVersionWeights' => [<float>, ...],
            ],
        ],
        // ...
    ],
    'NextMarker' => '<string>',
]

Result Details

Members
Aliases
  • Type: Array of AliasConfiguration structures

A list of aliases.

NextMarker
  • Type: string

The pagination token that's included if more results are available.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

ListCodeSigningConfigs

$result = $client->listCodeSigningConfigs([/* ... */]);
$promise = $client->listCodeSigningConfigsAsync([/* ... */]);

Returns a list of code signing configurations. A request returns up to 10,000 configurations per call. You can use the MaxItems parameter to return fewer configurations per call.

Parameter Syntax

$result = $client->listCodeSigningConfigs([
    'Marker' => '<string>',
    'MaxItems' => <integer>,
]);

Parameter Details

Members
Marker
  • Type: string

Specify the pagination token that's returned by a previous request to retrieve the next page of results.

MaxItems
  • Type: int

Maximum number of items to return.

Result Syntax

[
    'CodeSigningConfigs' => [
        [
            'AllowedPublishers' => [
                'SigningProfileVersionArns' => ['<string>', ...],
            ],
            'CodeSigningConfigArn' => '<string>',
            'CodeSigningConfigId' => '<string>',
            'CodeSigningPolicies' => [
                'UntrustedArtifactOnDeployment' => 'Warn|Enforce',
            ],
            'Description' => '<string>',
            'LastModified' => '<string>',
        ],
        // ...
    ],
    'NextMarker' => '<string>',
]

Result Details

Members
CodeSigningConfigs
  • Type: Array of CodeSigningConfig structures

The code signing configurations

NextMarker
  • Type: string

The pagination token that's included if more results are available.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

ListEventSourceMappings

$result = $client->listEventSourceMappings([/* ... */]);
$promise = $client->listEventSourceMappingsAsync([/* ... */]);

Lists event source mappings. Specify an EventSourceArn to only show event source mappings for a single event source.

Parameter Syntax

$result = $client->listEventSourceMappings([
    'EventSourceArn' => '<string>',
    'FunctionName' => '<string>',
    'Marker' => '<string>',
    'MaxItems' => <integer>,
]);

Parameter Details

Members
EventSourceArn
  • Type: string

The Amazon Resource Name (ARN) of the event source.

  • Amazon Kinesis - The ARN of the data stream or a stream consumer.

  • Amazon DynamoDB Streams - The ARN of the stream.

  • Amazon Simple Queue Service - The ARN of the queue.

  • Amazon Managed Streaming for Apache Kafka - The ARN of the cluster.

FunctionName
  • Type: string

The name of the Lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.

Marker
  • Type: string

A pagination token returned by a previous call.

MaxItems
  • Type: int

The maximum number of event source mappings to return. Note that ListEventSourceMappings returns a maximum of 100 items in each response, even if you set the number higher.

Result Syntax

[
    'EventSourceMappings' => [
        [
            'BatchSize' => <integer>,
            'BisectBatchOnFunctionError' => true || false,
            'DestinationConfig' => [
                'OnFailure' => [
                    'Destination' => '<string>',
                ],
                'OnSuccess' => [
                    'Destination' => '<string>',
                ],
            ],
            'EventSourceArn' => '<string>',
            'FilterCriteria' => [
                'Filters' => [
                    [
                        'Pattern' => '<string>',
                    ],
                    // ...
                ],
            ],
            'FunctionArn' => '<string>',
            'FunctionResponseTypes' => ['<string>', ...],
            'LastModified' => <DateTime>,
            'LastProcessingResult' => '<string>',
            'MaximumBatchingWindowInSeconds' => <integer>,
            'MaximumRecordAgeInSeconds' => <integer>,
            'MaximumRetryAttempts' => <integer>,
            'ParallelizationFactor' => <integer>,
            'Queues' => ['<string>', ...],
            'SelfManagedEventSource' => [
                'Endpoints' => [
                    '<EndPointType>' => ['<string>', ...],
                    // ...
                ],
            ],
            'SourceAccessConfigurations' => [
                [
                    'Type' => 'BASIC_AUTH|VPC_SUBNET|VPC_SECURITY_GROUP|SASL_SCRAM_512_AUTH|SASL_SCRAM_256_AUTH|VIRTUAL_HOST|CLIENT_CERTIFICATE_TLS_AUTH|SERVER_ROOT_CA_CERTIFICATE',
                    'URI' => '<string>',
                ],
                // ...
            ],
            'StartingPosition' => 'TRIM_HORIZON|LATEST|AT_TIMESTAMP',
            'StartingPositionTimestamp' => <DateTime>,
            'State' => '<string>',
            'StateTransitionReason' => '<string>',
            'Topics' => ['<string>', ...],
            'TumblingWindowInSeconds' => <integer>,
            'UUID' => '<string>',
        ],
        // ...
    ],
    'NextMarker' => '<string>',
]

Result Details

Members
EventSourceMappings
  • Type: Array of EventSourceMappingConfiguration structures

A list of event source mappings.

NextMarker
  • Type: string

A pagination token that's returned when the response doesn't contain all event source mappings.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

ListFunctionEventInvokeConfigs

$result = $client->listFunctionEventInvokeConfigs([/* ... */]);
$promise = $client->listFunctionEventInvokeConfigsAsync([/* ... */]);

Retrieves a list of configurations for asynchronous invocation for a function.

To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.

Parameter Syntax

$result = $client->listFunctionEventInvokeConfigs([
    'FunctionName' => '<string>', // REQUIRED
    'Marker' => '<string>',
    'MaxItems' => <integer>,
]);

Parameter Details

Members
FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function.

Name formats

  • Function name - my-function.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN - 123456789012:function:my-function.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Marker
  • Type: string

Specify the pagination token that's returned by a previous request to retrieve the next page of results.

MaxItems
  • Type: int

The maximum number of configurations to return.

Result Syntax

[
    'FunctionEventInvokeConfigs' => [
        [
            'DestinationConfig' => [
                'OnFailure' => [
                    'Destination' => '<string>',
                ],
                'OnSuccess' => [
                    'Destination' => '<string>',
                ],
            ],
            'FunctionArn' => '<string>',
            'LastModified' => <DateTime>,
            'MaximumEventAgeInSeconds' => <integer>,
            'MaximumRetryAttempts' => <integer>,
        ],
        // ...
    ],
    'NextMarker' => '<string>',
]

Result Details

Members
FunctionEventInvokeConfigs
  • Type: Array of FunctionEventInvokeConfig structures

A list of configurations.

NextMarker
  • Type: string

The pagination token that's included if more results are available.

Errors

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • ServiceException:

    The Lambda service encountered an internal error.

ListFunctionUrlConfigs

$result = $client->listFunctionUrlConfigs([/* ... */]);
$promise = $client->listFunctionUrlConfigsAsync([/* ... */]);

Returns a list of Lambda function URLs for the specified function.

Parameter Syntax

$result = $client->listFunctionUrlConfigs([
    'FunctionName' => '<string>', // REQUIRED
    'Marker' => '<string>',
    'MaxItems' => <integer>,
]);

Parameter Details

Members
FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function.

Name formats

  • Function name - my-function.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN - 123456789012:function:my-function.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Marker
  • Type: string

Specify the pagination token that's returned by a previous request to retrieve the next page of results.

MaxItems
  • Type: int

The maximum number of function URLs to return in the response. Note that ListFunctionUrlConfigs returns a maximum of 50 items in each response, even if you set the number higher.

Result Syntax

[
    'FunctionUrlConfigs' => [
        [
            'AuthType' => 'NONE|AWS_IAM',
            'Cors' => [
                'AllowCredentials' => true || false,
                'AllowHeaders' => ['<string>', ...],
                'AllowMethods' => ['<string>', ...],
                'AllowOrigins' => ['<string>', ...],
                'ExposeHeaders' => ['<string>', ...],
                'MaxAge' => <integer>,
            ],
            'CreationTime' => '<string>',
            'FunctionArn' => '<string>',
            'FunctionUrl' => '<string>',
            'LastModifiedTime' => '<string>',
        ],
        // ...
    ],
    'NextMarker' => '<string>',
]

Result Details

Members
FunctionUrlConfigs
  • Required: Yes
  • Type: Array of FunctionUrlConfig structures

A list of function URL configurations.

NextMarker
  • Type: string

The pagination token that's included if more results are available.

Errors

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • ServiceException:

    The Lambda service encountered an internal error.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

ListFunctions

$result = $client->listFunctions([/* ... */]);
$promise = $client->listFunctionsAsync([/* ... */]);

Returns a list of Lambda functions, with the version-specific configuration of each. Lambda returns up to 50 functions per call.

Set FunctionVersion to ALL to include all published versions of each function in addition to the unpublished version.

The ListFunctions action returns a subset of the FunctionConfiguration fields. To get the additional fields (State, StateReasonCode, StateReason, LastUpdateStatus, LastUpdateStatusReason, LastUpdateStatusReasonCode) for a function or version, use GetFunction.

Parameter Syntax

$result = $client->listFunctions([
    'FunctionVersion' => 'ALL',
    'Marker' => '<string>',
    'MasterRegion' => '<string>',
    'MaxItems' => <integer>,
]);

Parameter Details

Members
FunctionVersion
  • Type: string

Set to ALL to include entries for all published versions of each function.

Marker
  • Type: string

Specify the pagination token that's returned by a previous request to retrieve the next page of results.

MasterRegion
  • Type: string

For Lambda@Edge functions, the Amazon Web Services Region of the master function. For example, us-east-1 filters the list of functions to only include Lambda@Edge functions replicated from a master function in US East (N. Virginia). If specified, you must set FunctionVersion to ALL.

MaxItems
  • Type: int

The maximum number of functions to return in the response. Note that ListFunctions returns a maximum of 50 items in each response, even if you set the number higher.

Result Syntax

[
    'Functions' => [
        [
            'Architectures' => ['<string>', ...],
            'CodeSha256' => '<string>',
            'CodeSize' => <integer>,
            'DeadLetterConfig' => [
                'TargetArn' => '<string>',
            ],
            'Description' => '<string>',
            'Environment' => [
                'Error' => [
                    'ErrorCode' => '<string>',
                    'Message' => '<string>',
                ],
                'Variables' => ['<string>', ...],
            ],
            'EphemeralStorage' => [
                'Size' => <integer>,
            ],
            'FileSystemConfigs' => [
                [
                    'Arn' => '<string>',
                    'LocalMountPath' => '<string>',
                ],
                // ...
            ],
            'FunctionArn' => '<string>',
            'FunctionName' => '<string>',
            'Handler' => '<string>',
            'ImageConfigResponse' => [
                'Error' => [
                    'ErrorCode' => '<string>',
                    'Message' => '<string>',
                ],
                'ImageConfig' => [
                    'Command' => ['<string>', ...],
                    'EntryPoint' => ['<string>', ...],
                    'WorkingDirectory' => '<string>',
                ],
            ],
            'KMSKeyArn' => '<string>',
            'LastModified' => '<string>',
            'LastUpdateStatus' => 'Successful|Failed|InProgress',
            'LastUpdateStatusReason' => '<string>',
            'LastUpdateStatusReasonCode' => 'EniLimitExceeded|InsufficientRolePermissions|InvalidConfiguration|InternalError|SubnetOutOfIPAddresses|InvalidSubnet|InvalidSecurityGroup|ImageDeleted|ImageAccessDenied|InvalidImage',
            'Layers' => [
                [
                    'Arn' => '<string>',
                    'CodeSize' => <integer>,
                    'SigningJobArn' => '<string>',
                    'SigningProfileVersionArn' => '<string>',
                ],
                // ...
            ],
            'MasterArn' => '<string>',
            'MemorySize' => <integer>,
            'PackageType' => 'Zip|Image',
            'RevisionId' => '<string>',
            'Role' => '<string>',
            'Runtime' => 'nodejs|nodejs4.3|nodejs6.10|nodejs8.10|nodejs10.x|nodejs12.x|nodejs14.x|nodejs16.x|java8|java8.al2|java11|python2.7|python3.6|python3.7|python3.8|python3.9|dotnetcore1.0|dotnetcore2.0|dotnetcore2.1|dotnetcore3.1|dotnet6|nodejs4.3-edge|go1.x|ruby2.5|ruby2.7|provided|provided.al2',
            'SigningJobArn' => '<string>',
            'SigningProfileVersionArn' => '<string>',
            'State' => 'Pending|Active|Inactive|Failed',
            'StateReason' => '<string>',
            'StateReasonCode' => 'Idle|Creating|Restoring|EniLimitExceeded|InsufficientRolePermissions|InvalidConfiguration|InternalError|SubnetOutOfIPAddresses|InvalidSubnet|InvalidSecurityGroup|ImageDeleted|ImageAccessDenied|InvalidImage',
            'Timeout' => <integer>,
            'TracingConfig' => [
                'Mode' => 'Active|PassThrough',
            ],
            'Version' => '<string>',
            'VpcConfig' => [
                'SecurityGroupIds' => ['<string>', ...],
                'SubnetIds' => ['<string>', ...],
                'VpcId' => '<string>',
            ],
        ],
        // ...
    ],
    'NextMarker' => '<string>',
]

Result Details

Members
Functions
  • Type: Array of FunctionConfiguration structures

A list of Lambda functions.

NextMarker
  • Type: string

The pagination token that's included if more results are available.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

ListFunctionsByCodeSigningConfig

$result = $client->listFunctionsByCodeSigningConfig([/* ... */]);
$promise = $client->listFunctionsByCodeSigningConfigAsync([/* ... */]);

List the functions that use the specified code signing configuration. You can use this method prior to deleting a code signing configuration, to verify that no functions are using it.

Parameter Syntax

$result = $client->listFunctionsByCodeSigningConfig([
    'CodeSigningConfigArn' => '<string>', // REQUIRED
    'Marker' => '<string>',
    'MaxItems' => <integer>,
]);

Parameter Details

Members
CodeSigningConfigArn
  • Required: Yes
  • Type: string

The The Amazon Resource Name (ARN) of the code signing configuration.

Marker
  • Type: string

Specify the pagination token that's returned by a previous request to retrieve the next page of results.

MaxItems
  • Type: int

Maximum number of items to return.

Result Syntax

[
    'FunctionArns' => ['<string>', ...],
    'NextMarker' => '<string>',
]

Result Details

Members
FunctionArns
  • Type: Array of strings

The function ARNs.

NextMarker
  • Type: string

The pagination token that's included if more results are available.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

ListLayerVersions

$result = $client->listLayerVersions([/* ... */]);
$promise = $client->listLayerVersionsAsync([/* ... */]);

Lists the versions of an Lambda layer. Versions that have been deleted aren't listed. Specify a runtime identifier to list only versions that indicate that they're compatible with that runtime. Specify a compatible architecture to include only layer versions that are compatible with that architecture.

Parameter Syntax

$result = $client->listLayerVersions([
    'CompatibleArchitecture' => 'x86_64|arm64',
    'CompatibleRuntime' => 'nodejs|nodejs4.3|nodejs6.10|nodejs8.10|nodejs10.x|nodejs12.x|nodejs14.x|nodejs16.x|java8|java8.al2|java11|python2.7|python3.6|python3.7|python3.8|python3.9|dotnetcore1.0|dotnetcore2.0|dotnetcore2.1|dotnetcore3.1|dotnet6|nodejs4.3-edge|go1.x|ruby2.5|ruby2.7|provided|provided.al2',
    'LayerName' => '<string>', // REQUIRED
    'Marker' => '<string>',
    'MaxItems' => <integer>,
]);

Parameter Details

Members
CompatibleArchitecture
  • Type: string

The compatible instruction set architecture.

CompatibleRuntime
  • Type: string

A runtime identifier. For example, go1.x.

LayerName
  • Required: Yes
  • Type: string

The name or Amazon Resource Name (ARN) of the layer.

Marker
  • Type: string

A pagination token returned by a previous call.

MaxItems
  • Type: int

The maximum number of versions to return.

Result Syntax

[
    'LayerVersions' => [
        [
            'CompatibleArchitectures' => ['<string>', ...],
            'CompatibleRuntimes' => ['<string>', ...],
            'CreatedDate' => '<string>',
            'Description' => '<string>',
            'LayerVersionArn' => '<string>',
            'LicenseInfo' => '<string>',
            'Version' => <integer>,
        ],
        // ...
    ],
    'NextMarker' => '<string>',
]

Result Details

Members
LayerVersions
  • Type: Array of LayerVersionsListItem structures

A list of versions.

NextMarker
  • Type: string

A pagination token returned when the response doesn't contain all versions.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

ListLayers

$result = $client->listLayers([/* ... */]);
$promise = $client->listLayersAsync([/* ... */]);

Lists Lambda layers and shows information about the latest version of each. Specify a runtime identifier to list only layers that indicate that they're compatible with that runtime. Specify a compatible architecture to include only layers that are compatible with that instruction set architecture.

Parameter Syntax

$result = $client->listLayers([
    'CompatibleArchitecture' => 'x86_64|arm64',
    'CompatibleRuntime' => 'nodejs|nodejs4.3|nodejs6.10|nodejs8.10|nodejs10.x|nodejs12.x|nodejs14.x|nodejs16.x|java8|java8.al2|java11|python2.7|python3.6|python3.7|python3.8|python3.9|dotnetcore1.0|dotnetcore2.0|dotnetcore2.1|dotnetcore3.1|dotnet6|nodejs4.3-edge|go1.x|ruby2.5|ruby2.7|provided|provided.al2',
    'Marker' => '<string>',
    'MaxItems' => <integer>,
]);

Parameter Details

Members
CompatibleArchitecture
  • Type: string

The compatible instruction set architecture.

CompatibleRuntime
  • Type: string

A runtime identifier. For example, go1.x.

Marker
  • Type: string

A pagination token returned by a previous call.

MaxItems
  • Type: int

The maximum number of layers to return.

Result Syntax

[
    'Layers' => [
        [
            'LatestMatchingVersion' => [
                'CompatibleArchitectures' => ['<string>', ...],
                'CompatibleRuntimes' => ['<string>', ...],
                'CreatedDate' => '<string>',
                'Description' => '<string>',
                'LayerVersionArn' => '<string>',
                'LicenseInfo' => '<string>',
                'Version' => <integer>,
            ],
            'LayerArn' => '<string>',
            'LayerName' => '<string>',
        ],
        // ...
    ],
    'NextMarker' => '<string>',
]

Result Details

Members
Layers
  • Type: Array of LayersListItem structures

A list of function layers.

NextMarker
  • Type: string

A pagination token returned when the response doesn't contain all layers.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

ListProvisionedConcurrencyConfigs

$result = $client->listProvisionedConcurrencyConfigs([/* ... */]);
$promise = $client->listProvisionedConcurrencyConfigsAsync([/* ... */]);

Retrieves a list of provisioned concurrency configurations for a function.

Parameter Syntax

$result = $client->listProvisionedConcurrencyConfigs([
    'FunctionName' => '<string>', // REQUIRED
    'Marker' => '<string>',
    'MaxItems' => <integer>,
]);

Parameter Details

Members
FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function.

Name formats

  • Function name - my-function.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN - 123456789012:function:my-function.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Marker
  • Type: string

Specify the pagination token that's returned by a previous request to retrieve the next page of results.

MaxItems
  • Type: int

Specify a number to limit the number of configurations returned.

Result Syntax

[
    'NextMarker' => '<string>',
    'ProvisionedConcurrencyConfigs' => [
        [
            'AllocatedProvisionedConcurrentExecutions' => <integer>,
            'AvailableProvisionedConcurrentExecutions' => <integer>,
            'FunctionArn' => '<string>',
            'LastModified' => '<string>',
            'RequestedProvisionedConcurrentExecutions' => <integer>,
            'Status' => 'IN_PROGRESS|READY|FAILED',
            'StatusReason' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
NextMarker
  • Type: string

The pagination token that's included if more results are available.

ProvisionedConcurrencyConfigs
  • Type: Array of ProvisionedConcurrencyConfigListItem structures

A list of provisioned concurrency configurations.

Errors

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • ServiceException:

    The Lambda service encountered an internal error.

ListTags

$result = $client->listTags([/* ... */]);
$promise = $client->listTagsAsync([/* ... */]);

Returns a function's tags. You can also view tags with GetFunction.

Parameter Syntax

$result = $client->listTags([
    'Resource' => '<string>', // REQUIRED
]);

Parameter Details

Members
Resource
  • Required: Yes
  • Type: string

The function's Amazon Resource Name (ARN). Note: Lambda does not support adding tags to aliases or versions.

Result Syntax

[
    'Tags' => ['<string>', ...],
]

Result Details

Members
Tags
  • Type: Associative array of custom strings keys (TagKey) to strings

The function's tags.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

ListVersionsByFunction

$result = $client->listVersionsByFunction([/* ... */]);
$promise = $client->listVersionsByFunctionAsync([/* ... */]);

Returns a list of versions, with the version-specific configuration of each. Lambda returns up to 50 versions per call.

Parameter Syntax

$result = $client->listVersionsByFunction([
    'FunctionName' => '<string>', // REQUIRED
    'Marker' => '<string>',
    'MaxItems' => <integer>,
]);

Parameter Details

Members
FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Marker
  • Type: string

Specify the pagination token that's returned by a previous request to retrieve the next page of results.

MaxItems
  • Type: int

The maximum number of versions to return. Note that ListVersionsByFunction returns a maximum of 50 items in each response, even if you set the number higher.

Result Syntax

[
    'NextMarker' => '<string>',
    'Versions' => [
        [
            'Architectures' => ['<string>', ...],
            'CodeSha256' => '<string>',
            'CodeSize' => <integer>,
            'DeadLetterConfig' => [
                'TargetArn' => '<string>',
            ],
            'Description' => '<string>',
            'Environment' => [
                'Error' => [
                    'ErrorCode' => '<string>',
                    'Message' => '<string>',
                ],
                'Variables' => ['<string>', ...],
            ],
            'EphemeralStorage' => [
                'Size' => <integer>,
            ],
            'FileSystemConfigs' => [
                [
                    'Arn' => '<string>',
                    'LocalMountPath' => '<string>',
                ],
                // ...
            ],
            'FunctionArn' => '<string>',
            'FunctionName' => '<string>',
            'Handler' => '<string>',
            'ImageConfigResponse' => [
                'Error' => [
                    'ErrorCode' => '<string>',
                    'Message' => '<string>',
                ],
                'ImageConfig' => [
                    'Command' => ['<string>', ...],
                    'EntryPoint' => ['<string>', ...],
                    'WorkingDirectory' => '<string>',
                ],
            ],
            'KMSKeyArn' => '<string>',
            'LastModified' => '<string>',
            'LastUpdateStatus' => 'Successful|Failed|InProgress',
            'LastUpdateStatusReason' => '<string>',
            'LastUpdateStatusReasonCode' => 'EniLimitExceeded|InsufficientRolePermissions|InvalidConfiguration|InternalError|SubnetOutOfIPAddresses|InvalidSubnet|InvalidSecurityGroup|ImageDeleted|ImageAccessDenied|InvalidImage',
            'Layers' => [
                [
                    'Arn' => '<string>',
                    'CodeSize' => <integer>,
                    'SigningJobArn' => '<string>',
                    'SigningProfileVersionArn' => '<string>',
                ],
                // ...
            ],
            'MasterArn' => '<string>',
            'MemorySize' => <integer>,
            'PackageType' => 'Zip|Image',
            'RevisionId' => '<string>',
            'Role' => '<string>',
            'Runtime' => 'nodejs|nodejs4.3|nodejs6.10|nodejs8.10|nodejs10.x|nodejs12.x|nodejs14.x|nodejs16.x|java8|java8.al2|java11|python2.7|python3.6|python3.7|python3.8|python3.9|dotnetcore1.0|dotnetcore2.0|dotnetcore2.1|dotnetcore3.1|dotnet6|nodejs4.3-edge|go1.x|ruby2.5|ruby2.7|provided|provided.al2',
            'SigningJobArn' => '<string>',
            'SigningProfileVersionArn' => '<string>',
            'State' => 'Pending|Active|Inactive|Failed',
            'StateReason' => '<string>',
            'StateReasonCode' => 'Idle|Creating|Restoring|EniLimitExceeded|InsufficientRolePermissions|InvalidConfiguration|InternalError|SubnetOutOfIPAddresses|InvalidSubnet|InvalidSecurityGroup|ImageDeleted|ImageAccessDenied|InvalidImage',
            'Timeout' => <integer>,
            'TracingConfig' => [
                'Mode' => 'Active|PassThrough',
            ],
            'Version' => '<string>',
            'VpcConfig' => [
                'SecurityGroupIds' => ['<string>', ...],
                'SubnetIds' => ['<string>', ...],
                'VpcId' => '<string>',
            ],
        ],
        // ...
    ],
]

Result Details

Members
NextMarker
  • Type: string

The pagination token that's included if more results are available.

Versions
  • Type: Array of FunctionConfiguration structures

A list of Lambda function versions.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

PublishLayerVersion

$result = $client->publishLayerVersion([/* ... */]);
$promise = $client->publishLayerVersionAsync([/* ... */]);

Creates an Lambda layer from a ZIP archive. Each time you call PublishLayerVersion with the same layer name, a new version is created.

Add layers to your function with CreateFunction or UpdateFunctionConfiguration.

Parameter Syntax

$result = $client->publishLayerVersion([
    'CompatibleArchitectures' => ['<string>', ...],
    'CompatibleRuntimes' => ['<string>', ...],
    'Content' => [ // REQUIRED
        'S3Bucket' => '<string>',
        'S3Key' => '<string>',
        'S3ObjectVersion' => '<string>',
        'ZipFile' => <string || resource || Psr\Http\Message\StreamInterface>,
    ],
    'Description' => '<string>',
    'LayerName' => '<string>', // REQUIRED
    'LicenseInfo' => '<string>',
]);

Parameter Details

Members
CompatibleArchitectures
  • Type: Array of strings

A list of compatible instruction set architectures.

CompatibleRuntimes
  • Type: Array of strings

A list of compatible function runtimes. Used for filtering with ListLayers and ListLayerVersions.

Content
  • Required: Yes
  • Type: LayerVersionContentInput structure

The function layer archive.

Description
  • Type: string

The description of the version.

LayerName
  • Required: Yes
  • Type: string

The name or Amazon Resource Name (ARN) of the layer.

LicenseInfo
  • Type: string

The layer's software license. It can be any of the following:

  • An SPDX license identifier. For example, MIT.

  • The URL of a license hosted on the internet. For example, https://opensource.org/licenses/MIT.

  • The full text of the license.

Result Syntax

[
    'CompatibleArchitectures' => ['<string>', ...],
    'CompatibleRuntimes' => ['<string>', ...],
    'Content' => [
        'CodeSha256' => '<string>',
        'CodeSize' => <integer>,
        'Location' => '<string>',
        'SigningJobArn' => '<string>',
        'SigningProfileVersionArn' => '<string>',
    ],
    'CreatedDate' => '<string>',
    'Description' => '<string>',
    'LayerArn' => '<string>',
    'LayerVersionArn' => '<string>',
    'LicenseInfo' => '<string>',
    'Version' => <integer>,
]

Result Details

Members
CompatibleArchitectures
  • Type: Array of strings

A list of compatible instruction set architectures.

CompatibleRuntimes
  • Type: Array of strings

The layer's compatible runtimes.

Content
  • Type: LayerVersionContentOutput structure

Details about the layer version.

CreatedDate
  • Type: string

The date that the layer version was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

Description
  • Type: string

The description of the version.

LayerArn
  • Type: string

The ARN of the layer.

LayerVersionArn
  • Type: string

The ARN of the layer version.

LicenseInfo
  • Type: string

The layer's software license.

Version
  • Type: long (int|float)

The version number.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • CodeStorageExceededException:

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

PublishVersion

$result = $client->publishVersion([/* ... */]);
$promise = $client->publishVersionAsync([/* ... */]);

Creates a version from the current code and configuration of a function. Use versions to create a snapshot of your function code and configuration that doesn't change.

Lambda doesn't publish a version if the function's configuration and code haven't changed since the last version. Use UpdateFunctionCode or UpdateFunctionConfiguration to update the function before publishing a version.

Clients can invoke versions directly or with an alias. To create an alias, use CreateAlias.

Parameter Syntax

$result = $client->publishVersion([
    'CodeSha256' => '<string>',
    'Description' => '<string>',
    'FunctionName' => '<string>', // REQUIRED
    'RevisionId' => '<string>',
]);

Parameter Details

Members
CodeSha256
  • Type: string

Only publish a version if the hash value matches the value that's specified. Use this option to avoid publishing a version if the function code has changed since you last updated it. You can get the hash for the version that you uploaded from the output of UpdateFunctionCode.

Description
  • Type: string

A description for the version to override the description in the function configuration.

FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

RevisionId
  • Type: string

Only update the function if the revision ID matches the ID that's specified. Use this option to avoid publishing a version if the function configuration has changed since you last updated it.

Result Syntax

[
    'Architectures' => ['<string>', ...],
    'CodeSha256' => '<string>',
    'CodeSize' => <integer>,
    'DeadLetterConfig' => [
        'TargetArn' => '<string>',
    ],
    'Description' => '<string>',
    'Environment' => [
        'Error' => [
            'ErrorCode' => '<string>',
            'Message' => '<string>',
        ],
        'Variables' => ['<string>', ...],
    ],
    'EphemeralStorage' => [
        'Size' => <integer>,
    ],
    'FileSystemConfigs' => [
        [
            'Arn' => '<string>',
            'LocalMountPath' => '<string>',
        ],
        // ...
    ],
    'FunctionArn' => '<string>',
    'FunctionName' => '<string>',
    'Handler' => '<string>',
    'ImageConfigResponse' => [
        'Error' => [
            'ErrorCode' => '<string>',
            'Message' => '<string>',
        ],
        'ImageConfig' => [
            'Command' => ['<string>', ...],
            'EntryPoint' => ['<string>', ...],
            'WorkingDirectory' => '<string>',
        ],
    ],
    'KMSKeyArn' => '<string>',
    'LastModified' => '<string>',
    'LastUpdateStatus' => 'Successful|Failed|InProgress',
    'LastUpdateStatusReason' => '<string>',
    'LastUpdateStatusReasonCode' => 'EniLimitExceeded|InsufficientRolePermissions|InvalidConfiguration|InternalError|SubnetOutOfIPAddresses|InvalidSubnet|InvalidSecurityGroup|ImageDeleted|ImageAccessDenied|InvalidImage',
    'Layers' => [
        [
            'Arn' => '<string>',
            'CodeSize' => <integer>,
            'SigningJobArn' => '<string>',
            'SigningProfileVersionArn' => '<string>',
        ],
        // ...
    ],
    'MasterArn' => '<string>',
    'MemorySize' => <integer>,
    'PackageType' => 'Zip|Image',
    'RevisionId' => '<string>',
    'Role' => '<string>',
    'Runtime' => 'nodejs|nodejs4.3|nodejs6.10|nodejs8.10|nodejs10.x|nodejs12.x|nodejs14.x|nodejs16.x|java8|java8.al2|java11|python2.7|python3.6|python3.7|python3.8|python3.9|dotnetcore1.0|dotnetcore2.0|dotnetcore2.1|dotnetcore3.1|dotnet6|nodejs4.3-edge|go1.x|ruby2.5|ruby2.7|provided|provided.al2',
    'SigningJobArn' => '<string>',
    'SigningProfileVersionArn' => '<string>',
    'State' => 'Pending|Active|Inactive|Failed',
    'StateReason' => '<string>',
    'StateReasonCode' => 'Idle|Creating|Restoring|EniLimitExceeded|InsufficientRolePermissions|InvalidConfiguration|InternalError|SubnetOutOfIPAddresses|InvalidSubnet|InvalidSecurityGroup|ImageDeleted|ImageAccessDenied|InvalidImage',
    'Timeout' => <integer>,
    'TracingConfig' => [
        'Mode' => 'Active|PassThrough',
    ],
    'Version' => '<string>',
    'VpcConfig' => [
        'SecurityGroupIds' => ['<string>', ...],
        'SubnetIds' => ['<string>', ...],
        'VpcId' => '<string>',
    ],
]

Result Details

Members
Architectures
  • Type: Array of strings

The instruction set architecture that the function supports. Architecture is a string array with one of the valid values. The default architecture value is x86_64.

CodeSha256
  • Type: string

The SHA256 hash of the function's deployment package.

CodeSize
  • Type: long (int|float)

The size of the function's deployment package, in bytes.

DeadLetterConfig
  • Type: DeadLetterConfig structure

The function's dead letter queue.

Description
  • Type: string

The function's description.

Environment
  • Type: EnvironmentResponse structure

The function's environment variables.

EphemeralStorage
  • Type: EphemeralStorage structure

The size of the function’s /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10240 MB.

FileSystemConfigs
  • Type: Array of FileSystemConfig structures

Connection settings for an Amazon EFS file system.

FunctionArn
  • Type: string

The function's Amazon Resource Name (ARN).

FunctionName
  • Type: string

The name of the function.

Handler
  • Type: string

The function that Lambda calls to begin executing your function.

ImageConfigResponse
  • Type: ImageConfigResponse structure

The function's image configuration values.

KMSKeyArn
  • Type: string

The KMS key that's used to encrypt the function's environment variables. This key is only returned if you've configured a customer managed key.

LastModified
  • Type: string

The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

LastUpdateStatus
  • Type: string

The status of the last update that was performed on the function. This is first set to Successful after function creation completes.

LastUpdateStatusReason
  • Type: string

The reason for the last update that was performed on the function.

LastUpdateStatusReasonCode
  • Type: string

The reason code for the last update that was performed on the function.

Layers
  • Type: Array of Layer structures

The function's layers.

MasterArn
  • Type: string

For Lambda@Edge functions, the ARN of the main function.

MemorySize
  • Type: int

The amount of memory available to the function at runtime.

PackageType
  • Type: string

The type of deployment package. Set to Image for container image and set Zip for .zip file archive.

RevisionId
  • Type: string

The latest updated revision of the function or alias.

Role
  • Type: string

The function's execution role.

Runtime
  • Type: string

The runtime environment for the Lambda function.

SigningJobArn
  • Type: string

The ARN of the signing job.

SigningProfileVersionArn
  • Type: string

The ARN of the signing profile version.

State
  • Type: string

The current state of the function. When the state is Inactive, you can reactivate the function by invoking it.

StateReason
  • Type: string

The reason for the function's current state.

StateReasonCode
  • Type: string

The reason code for the function's current state. When the code is Creating, you can't invoke or modify the function.

Timeout
  • Type: int

The amount of time in seconds that Lambda allows a function to run before stopping it.

TracingConfig
  • Type: TracingConfigResponse structure

The function's X-Ray tracing configuration.

Version
  • Type: string

The version of the Lambda function.

VpcConfig
  • Type: VpcConfigResponse structure

The function's networking configuration.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • CodeStorageExceededException:

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

  • PreconditionFailedException:

    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.

  • ResourceConflictException:

    The resource already exists, or another operation is in progress.

PutFunctionCodeSigningConfig

$result = $client->putFunctionCodeSigningConfig([/* ... */]);
$promise = $client->putFunctionCodeSigningConfigAsync([/* ... */]);

Update the code signing configuration for the function. Changes to the code signing configuration take effect the next time a user tries to deploy a code package to the function.

Parameter Syntax

$result = $client->putFunctionCodeSigningConfig([
    'CodeSigningConfigArn' => '<string>', // REQUIRED
    'FunctionName' => '<string>', // REQUIRED
]);

Parameter Details

Members
CodeSigningConfigArn
  • Required: Yes
  • Type: string

The The Amazon Resource Name (ARN) of the code signing configuration.

FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Result Syntax

[
    'CodeSigningConfigArn' => '<string>',
    'FunctionName' => '<string>',
]

Result Details

Members
CodeSigningConfigArn
  • Required: Yes
  • Type: string

The The Amazon Resource Name (ARN) of the code signing configuration.

FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • ResourceConflictException:

    The resource already exists, or another operation is in progress.

  • CodeSigningConfigNotFoundException:

    The specified code signing configuration does not exist.

PutFunctionConcurrency

$result = $client->putFunctionConcurrency([/* ... */]);
$promise = $client->putFunctionConcurrencyAsync([/* ... */]);

Sets the maximum number of simultaneous executions for a function, and reserves capacity for that concurrency level.

Concurrency settings apply to the function as a whole, including all published versions and the unpublished version. Reserving concurrency both ensures that your function has capacity to process the specified number of events simultaneously, and prevents it from scaling beyond that level. Use GetFunction to see the current setting for a function.

Use GetAccountSettings to see your Regional concurrency limit. You can reserve concurrency for as many functions as you like, as long as you leave at least 100 simultaneous executions unreserved for functions that aren't configured with a per-function limit. For more information, see Managing Concurrency.

Parameter Syntax

$result = $client->putFunctionConcurrency([
    'FunctionName' => '<string>', // REQUIRED
    'ReservedConcurrentExecutions' => <integer>, // REQUIRED
]);

Parameter Details

Members
FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function.

Name formats

  • Function name - my-function.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN - 123456789012:function:my-function.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

ReservedConcurrentExecutions
  • Required: Yes
  • Type: int

The number of simultaneous executions to reserve for the function.

Result Syntax

[
    'ReservedConcurrentExecutions' => <integer>,
]

Result Details

Members
ReservedConcurrentExecutions
  • Type: int

The number of concurrent executions that are reserved for this function. For more information, see Managing Concurrency.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • ResourceConflictException:

    The resource already exists, or another operation is in progress.

PutFunctionEventInvokeConfig

$result = $client->putFunctionEventInvokeConfig([/* ... */]);
$promise = $client->putFunctionEventInvokeConfigAsync([/* ... */]);

Configures options for asynchronous invocation on a function, version, or alias. If a configuration already exists for a function, version, or alias, this operation overwrites it. If you exclude any settings, they are removed. To set one option without affecting existing settings for other options, use UpdateFunctionEventInvokeConfig.

By default, Lambda retries an asynchronous invocation twice if the function returns an error. It retains events in a queue for up to six hours. When an event fails all processing attempts or stays in the asynchronous invocation queue for too long, Lambda discards it. To retain discarded events, configure a dead-letter queue with UpdateFunctionConfiguration.

To send an invocation record to a queue, topic, function, or event bus, specify a destination. You can configure separate destinations for successful invocations (on-success) and events that fail all processing attempts (on-failure). You can configure destinations in addition to or instead of a dead-letter queue.

Parameter Syntax

$result = $client->putFunctionEventInvokeConfig([
    'DestinationConfig' => [
        'OnFailure' => [
            'Destination' => '<string>',
        ],
        'OnSuccess' => [
            'Destination' => '<string>',
        ],
    ],
    'FunctionName' => '<string>', // REQUIRED
    'MaximumEventAgeInSeconds' => <integer>,
    'MaximumRetryAttempts' => <integer>,
    'Qualifier' => '<string>',
]);

Parameter Details

Members
DestinationConfig
  • Type: DestinationConfig structure

A destination for events after they have been sent to a function for processing.

Destinations

  • Function - The Amazon Resource Name (ARN) of a Lambda function.

  • Queue - The ARN of an SQS queue.

  • Topic - The ARN of an SNS topic.

  • Event Bus - The ARN of an Amazon EventBridge event bus.

FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function, version, or alias.

Name formats

  • Function name - my-function (name-only), my-function:v1 (with alias).

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN - 123456789012:function:my-function.

You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

MaximumEventAgeInSeconds
  • Type: int

The maximum age of a request that Lambda sends to a function for processing.

MaximumRetryAttempts
  • Type: int

The maximum number of times to retry when the function returns an error.

Qualifier
  • Type: string

A version number or alias name.

Result Syntax

[
    'DestinationConfig' => [
        'OnFailure' => [
            'Destination' => '<string>',
        ],
        'OnSuccess' => [
            'Destination' => '<string>',
        ],
    ],
    'FunctionArn' => '<string>',
    'LastModified' => <DateTime>,
    'MaximumEventAgeInSeconds' => <integer>,
    'MaximumRetryAttempts' => <integer>,
]

Result Details

Members
DestinationConfig
  • Type: DestinationConfig structure

A destination for events after they have been sent to a function for processing.

Destinations

  • Function - The Amazon Resource Name (ARN) of a Lambda function.

  • Queue - The ARN of an SQS queue.

  • Topic - The ARN of an SNS topic.

  • Event Bus - The ARN of an Amazon EventBridge event bus.

FunctionArn
  • Type: string

The Amazon Resource Name (ARN) of the function.

LastModified
  • Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time that the configuration was last updated.

MaximumEventAgeInSeconds
  • Type: int

The maximum age of a request that Lambda sends to a function for processing.

MaximumRetryAttempts
  • Type: int

The maximum number of times to retry when the function returns an error.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • ResourceConflictException:

    The resource already exists, or another operation is in progress.

PutProvisionedConcurrencyConfig

$result = $client->putProvisionedConcurrencyConfig([/* ... */]);
$promise = $client->putProvisionedConcurrencyConfigAsync([/* ... */]);

Adds a provisioned concurrency configuration to a function's alias or version.

Parameter Syntax

$result = $client->putProvisionedConcurrencyConfig([
    'FunctionName' => '<string>', // REQUIRED
    'ProvisionedConcurrentExecutions' => <integer>, // REQUIRED
    'Qualifier' => '<string>', // REQUIRED
]);

Parameter Details

Members
FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function.

Name formats

  • Function name - my-function.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN - 123456789012:function:my-function.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

ProvisionedConcurrentExecutions
  • Required: Yes
  • Type: int

The amount of provisioned concurrency to allocate for the version or alias.

Qualifier
  • Required: Yes
  • Type: string

The version number or alias name.

Result Syntax

[
    'AllocatedProvisionedConcurrentExecutions' => <integer>,
    'AvailableProvisionedConcurrentExecutions' => <integer>,
    'LastModified' => '<string>',
    'RequestedProvisionedConcurrentExecutions' => <integer>,
    'Status' => 'IN_PROGRESS|READY|FAILED',
    'StatusReason' => '<string>',
]

Result Details

Members
AllocatedProvisionedConcurrentExecutions
  • Type: int

The amount of provisioned concurrency allocated.

AvailableProvisionedConcurrentExecutions
  • Type: int

The amount of provisioned concurrency available.

LastModified
  • Type: string

The date and time that a user last updated the configuration, in ISO 8601 format.

RequestedProvisionedConcurrentExecutions
  • Type: int

The amount of provisioned concurrency requested.

Status
  • Type: string

The status of the allocation process.

StatusReason
  • Type: string

For failed allocations, the reason that provisioned concurrency could not be allocated.

Errors

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • ResourceConflictException:

    The resource already exists, or another operation is in progress.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • ServiceException:

    The Lambda service encountered an internal error.

RemoveLayerVersionPermission

$result = $client->removeLayerVersionPermission([/* ... */]);
$promise = $client->removeLayerVersionPermissionAsync([/* ... */]);

Removes a statement from the permissions policy for a version of an Lambda layer. For more information, see AddLayerVersionPermission.

Parameter Syntax

$result = $client->removeLayerVersionPermission([
    'LayerName' => '<string>', // REQUIRED
    'RevisionId' => '<string>',
    'StatementId' => '<string>', // REQUIRED
    'VersionNumber' => <integer>, // REQUIRED
]);

Parameter Details

Members
LayerName
  • Required: Yes
  • Type: string

The name or Amazon Resource Name (ARN) of the layer.

RevisionId
  • Type: string

Only update the policy if the revision ID matches the ID specified. Use this option to avoid modifying a policy that has changed since you last read it.

StatementId
  • Required: Yes
  • Type: string

The identifier that was specified when the statement was added.

VersionNumber
  • Required: Yes
  • Type: long (int|float)

The version number.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • PreconditionFailedException:

    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.

RemovePermission

$result = $client->removePermission([/* ... */]);
$promise = $client->removePermissionAsync([/* ... */]);

Revokes function-use permission from an Amazon Web Services service or another account. You can get the ID of the statement from the output of GetPolicy.

Parameter Syntax

$result = $client->removePermission([
    'FunctionName' => '<string>', // REQUIRED
    'Qualifier' => '<string>',
    'RevisionId' => '<string>',
    'StatementId' => '<string>', // REQUIRED
]);

Parameter Details

Members
FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function, version, or alias.

Name formats

  • Function name - my-function (name-only), my-function:v1 (with alias).

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN - 123456789012:function:my-function.

You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Qualifier
  • Type: string

Specify a version or alias to remove permissions from a published version of the function.

RevisionId
  • Type: string

Only update the policy if the revision ID matches the ID that's specified. Use this option to avoid modifying a policy that has changed since you last read it.

StatementId
  • Required: Yes
  • Type: string

Statement ID of the permission to remove.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • PreconditionFailedException:

    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.

TagResource

$result = $client->tagResource([/* ... */]);
$promise = $client->tagResourceAsync([/* ... */]);

Adds tags to a function.

Parameter Syntax

$result = $client->tagResource([
    'Resource' => '<string>', // REQUIRED
    'Tags' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
Resource
  • Required: Yes
  • Type: string

The function's Amazon Resource Name (ARN).

Tags
  • Required: Yes
  • Type: Associative array of custom strings keys (TagKey) to strings

A list of tags to apply to the function.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • ResourceConflictException:

    The resource already exists, or another operation is in progress.

UntagResource

$result = $client->untagResource([/* ... */]);
$promise = $client->untagResourceAsync([/* ... */]);

Removes tags from a function.

Parameter Syntax

$result = $client->untagResource([
    'Resource' => '<string>', // REQUIRED
    'TagKeys' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
Resource
  • Required: Yes
  • Type: string

The function's Amazon Resource Name (ARN).

TagKeys
  • Required: Yes
  • Type: Array of strings

A list of tag keys to remove from the function.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • ResourceConflictException:

    The resource already exists, or another operation is in progress.

UpdateAlias

$result = $client->updateAlias([/* ... */]);
$promise = $client->updateAliasAsync([/* ... */]);

Updates the configuration of a Lambda function alias.

Parameter Syntax

$result = $client->updateAlias([
    'Description' => '<string>',
    'FunctionName' => '<string>', // REQUIRED
    'FunctionVersion' => '<string>',
    'Name' => '<string>', // REQUIRED
    'RevisionId' => '<string>',
    'RoutingConfig' => [
        'AdditionalVersionWeights' => [<float>, ...],
    ],
]);

Parameter Details

Members
Description
  • Type: string

A description of the alias.

FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

FunctionVersion
  • Type: string

The function version that the alias invokes.

Name
  • Required: Yes
  • Type: string

The name of the alias.

RevisionId
  • Type: string

Only update the alias if the revision ID matches the ID that's specified. Use this option to avoid modifying an alias that has changed since you last read it.

RoutingConfig
  • Type: AliasRoutingConfiguration structure

The routing configuration of the alias.

Result Syntax

[
    'AliasArn' => '<string>',
    'Description' => '<string>',
    'FunctionVersion' => '<string>',
    'Name' => '<string>',
    'RevisionId' => '<string>',
    'RoutingConfig' => [
        'AdditionalVersionWeights' => [<float>, ...],
    ],
]

Result Details

Members
AliasArn
  • Type: string

The Amazon Resource Name (ARN) of the alias.

Description
  • Type: string

A description of the alias.

FunctionVersion
  • Type: string

The function version that the alias invokes.

Name
  • Type: string

The name of the alias.

RevisionId
  • Type: string

A unique identifier that changes when you update the alias.

RoutingConfig
  • Type: AliasRoutingConfiguration structure

The routing configuration of the alias.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • PreconditionFailedException:

    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.

  • ResourceConflictException:

    The resource already exists, or another operation is in progress.

UpdateCodeSigningConfig

$result = $client->updateCodeSigningConfig([/* ... */]);
$promise = $client->updateCodeSigningConfigAsync([/* ... */]);

Update the code signing configuration. Changes to the code signing configuration take effect the next time a user tries to deploy a code package to the function.

Parameter Syntax

$result = $client->updateCodeSigningConfig([
    'AllowedPublishers' => [
        'SigningProfileVersionArns' => ['<string>', ...], // REQUIRED
    ],
    'CodeSigningConfigArn' => '<string>', // REQUIRED
    'CodeSigningPolicies' => [
        'UntrustedArtifactOnDeployment' => 'Warn|Enforce',
    ],
    'Description' => '<string>',
]);

Parameter Details

Members
AllowedPublishers
  • Type: AllowedPublishers structure

Signing profiles for this code signing configuration.

CodeSigningConfigArn
  • Required: Yes
  • Type: string

The The Amazon Resource Name (ARN) of the code signing configuration.

CodeSigningPolicies
  • Type: CodeSigningPolicies structure

The code signing policy.

Description
  • Type: string

Descriptive name for this code signing configuration.

Result Syntax

[
    'CodeSigningConfig' => [
        'AllowedPublishers' => [
            'SigningProfileVersionArns' => ['<string>', ...],
        ],
        'CodeSigningConfigArn' => '<string>',
        'CodeSigningConfigId' => '<string>',
        'CodeSigningPolicies' => [
            'UntrustedArtifactOnDeployment' => 'Warn|Enforce',
        ],
        'Description' => '<string>',
        'LastModified' => '<string>',
    ],
]

Result Details

Members
CodeSigningConfig
  • Required: Yes
  • Type: CodeSigningConfig structure

The code signing configuration

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

UpdateEventSourceMapping

$result = $client->updateEventSourceMapping([/* ... */]);
$promise = $client->updateEventSourceMappingAsync([/* ... */]);

Updates an event source mapping. You can change the function that Lambda invokes, or pause invocation and resume later from the same location.

For details about how to configure different event sources, see the following topics.

  • Amazon DynamoDB Streams

  • Amazon Kinesis

  • Amazon SQS

  • Amazon MQ and RabbitMQ

  • Amazon MSK

  • Apache Kafka

The following error handling options are only available for stream sources (DynamoDB and Kinesis):

  • BisectBatchOnFunctionError - If the function returns an error, split the batch in two and retry.

  • DestinationConfig - Send discarded records to an Amazon SQS queue or Amazon SNS topic.

  • MaximumRecordAgeInSeconds - Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires

  • MaximumRetryAttempts - Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.

  • ParallelizationFactor - Process multiple batches from each shard concurrently.

For information about which configuration parameters apply to each event source, see the following topics.

  • Amazon DynamoDB Streams

  • Amazon Kinesis

  • Amazon SQS

  • Amazon MQ and RabbitMQ

  • Amazon MSK

  • Apache Kafka

Parameter Syntax

$result = $client->updateEventSourceMapping([
    'BatchSize' => <integer>,
    'BisectBatchOnFunctionError' => true || false,
    'DestinationConfig' => [
        'OnFailure' => [
            'Destination' => '<string>',
        ],
        'OnSuccess' => [
            'Destination' => '<string>',
        ],
    ],
    'Enabled' => true || false,
    'FilterCriteria' => [
        'Filters' => [
            [
                'Pattern' => '<string>',
            ],
            // ...
        ],
    ],
    'FunctionName' => '<string>',
    'FunctionResponseTypes' => ['<string>', ...],
    'MaximumBatchingWindowInSeconds' => <integer>,
    'MaximumRecordAgeInSeconds' => <integer>,
    'MaximumRetryAttempts' => <integer>,
    'ParallelizationFactor' => <integer>,
    'SourceAccessConfigurations' => [
        [
            'Type' => 'BASIC_AUTH|VPC_SUBNET|VPC_SECURITY_GROUP|SASL_SCRAM_512_AUTH|SASL_SCRAM_256_AUTH|VIRTUAL_HOST|CLIENT_CERTIFICATE_TLS_AUTH|SERVER_ROOT_CA_CERTIFICATE',
            'URI' => '<string>',
        ],
        // ...
    ],
    'TumblingWindowInSeconds' => <integer>,
    'UUID' => '<string>', // REQUIRED
]);

Parameter Details

Members
BatchSize
  • Type: int

The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB).

  • Amazon Kinesis - Default 100. Max 10,000.

  • Amazon DynamoDB Streams - Default 100. Max 10,000.

  • Amazon Simple Queue Service - Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.

  • Amazon Managed Streaming for Apache Kafka - Default 100. Max 10,000.

  • Self-Managed Apache Kafka - Default 100. Max 10,000.

  • Amazon MQ (ActiveMQ and RabbitMQ) - Default 100. Max 10,000.

BisectBatchOnFunctionError
  • Type: boolean

(Streams only) If the function returns an error, split the batch in two and retry.

DestinationConfig
  • Type: DestinationConfig structure

(Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.

Enabled
  • Type: boolean

When true, the event source mapping is active. When false, Lambda pauses polling and invocation.

Default: True

FilterCriteria
  • Type: FilterCriteria structure

(Streams and Amazon SQS) An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see Lambda event filtering.

FunctionName
  • Type: string

The name of the Lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.

FunctionResponseTypes
  • Type: Array of strings

(Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.

MaximumBatchingWindowInSeconds
  • Type: int

(Streams and Amazon SQS standard queues) The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.

Default: 0

Related setting: When you set BatchSize to a value greater than 10, you must set MaximumBatchingWindowInSeconds to at least 1.

MaximumRecordAgeInSeconds
  • Type: int

(Streams only) Discard records older than the specified age. The default value is infinite (-1).

MaximumRetryAttempts
  • Type: int

(Streams only) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records will be retried until the record expires.

ParallelizationFactor
  • Type: int

(Streams only) The number of batches to process from each shard concurrently.

SourceAccessConfigurations
  • Type: Array of SourceAccessConfiguration structures

An array of authentication protocols or VPC components required to secure your event source.

TumblingWindowInSeconds
  • Type: int

(Streams only) The duration in seconds of a processing window. The range is between 1 second up to 900 seconds.

UUID
  • Required: Yes
  • Type: string

The identifier of the event source mapping.

Result Syntax

[
    'BatchSize' => <integer>,
    'BisectBatchOnFunctionError' => true || false,
    'DestinationConfig' => [
        'OnFailure' => [
            'Destination' => '<string>',
        ],
        'OnSuccess' => [
            'Destination' => '<string>',
        ],
    ],
    'EventSourceArn' => '<string>',
    'FilterCriteria' => [
        'Filters' => [
            [
                'Pattern' => '<string>',
            ],
            // ...
        ],
    ],
    'FunctionArn' => '<string>',
    'FunctionResponseTypes' => ['<string>', ...],
    'LastModified' => <DateTime>,
    'LastProcessingResult' => '<string>',
    'MaximumBatchingWindowInSeconds' => <integer>,
    'MaximumRecordAgeInSeconds' => <integer>,
    'MaximumRetryAttempts' => <integer>,
    'ParallelizationFactor' => <integer>,
    'Queues' => ['<string>', ...],
    'SelfManagedEventSource' => [
        'Endpoints' => [
            '<EndPointType>' => ['<string>', ...],
            // ...
        ],
    ],
    'SourceAccessConfigurations' => [
        [
            'Type' => 'BASIC_AUTH|VPC_SUBNET|VPC_SECURITY_GROUP|SASL_SCRAM_512_AUTH|SASL_SCRAM_256_AUTH|VIRTUAL_HOST|CLIENT_CERTIFICATE_TLS_AUTH|SERVER_ROOT_CA_CERTIFICATE',
            'URI' => '<string>',
        ],
        // ...
    ],
    'StartingPosition' => 'TRIM_HORIZON|LATEST|AT_TIMESTAMP',
    'StartingPositionTimestamp' => <DateTime>,
    'State' => '<string>',
    'StateTransitionReason' => '<string>',
    'Topics' => ['<string>', ...],
    'TumblingWindowInSeconds' => <integer>,
    'UUID' => '<string>',
]

Result Details

Members
BatchSize
  • Type: int

The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB).

Default value: Varies by service. For Amazon SQS, the default is 10. For all other services, the default is 100.

Related setting: When you set BatchSize to a value greater than 10, you must set MaximumBatchingWindowInSeconds to at least 1.

BisectBatchOnFunctionError
  • Type: boolean

(Streams only) If the function returns an error, split the batch in two and retry. The default value is false.

DestinationConfig
  • Type: DestinationConfig structure

(Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.

EventSourceArn
  • Type: string

The Amazon Resource Name (ARN) of the event source.

FilterCriteria
  • Type: FilterCriteria structure

(Streams and Amazon SQS) An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see Lambda event filtering.

FunctionArn
  • Type: string

The ARN of the Lambda function.

FunctionResponseTypes
  • Type: Array of strings

(Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.

LastModified
  • Type: timestamp (string|DateTime or anything parsable by strtotime)

The date that the event source mapping was last updated or that its state changed.

LastProcessingResult
  • Type: string

The result of the last Lambda invocation of your function.

MaximumBatchingWindowInSeconds
  • Type: int

(Streams and Amazon SQS standard queues) The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.

Default: 0

Related setting: When you set BatchSize to a value greater than 10, you must set MaximumBatchingWindowInSeconds to at least 1.

MaximumRecordAgeInSeconds
  • Type: int

(Streams only) Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, Lambda never discards old records.

MaximumRetryAttempts
  • Type: int

(Streams only) Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source.

ParallelizationFactor
  • Type: int

(Streams only) The number of batches to process concurrently from each shard. The default value is 1.

Queues
  • Type: Array of strings

(Amazon MQ) The name of the Amazon MQ broker destination queue to consume.

SelfManagedEventSource
  • Type: SelfManagedEventSource structure

The self-managed Apache Kafka cluster for your event source.

SourceAccessConfigurations
  • Type: Array of SourceAccessConfiguration structures

An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.

StartingPosition
  • Type: string

The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK stream sources. AT_TIMESTAMP is supported only for Amazon Kinesis streams.

StartingPositionTimestamp
  • Type: timestamp (string|DateTime or anything parsable by strtotime)

With StartingPosition set to AT_TIMESTAMP, the time from which to start reading.

State
  • Type: string

The state of the event source mapping. It can be one of the following: Creating, Enabling, Enabled, Disabling, Disabled, Updating, or Deleting.

StateTransitionReason
  • Type: string

Indicates whether a user or Lambda made the last change to the event source mapping.

Topics
  • Type: Array of strings

The name of the Kafka topic.

TumblingWindowInSeconds
  • Type: int

(Streams only) The duration in seconds of a processing window. The range is 1–900 seconds.

UUID
  • Type: string

The identifier of the event source mapping.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • ResourceConflictException:

    The resource already exists, or another operation is in progress.

  • ResourceInUseException:

    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.

UpdateFunctionCode

$result = $client->updateFunctionCode([/* ... */]);
$promise = $client->updateFunctionCodeAsync([/* ... */]);

Updates a Lambda function's code. If code signing is enabled for the function, the code package must be signed by a trusted publisher. For more information, see Configuring code signing.

If the function's package type is Image, you must specify the code package in ImageUri as the URI of a container image in the Amazon ECR registry.

If the function's package type is Zip, you must specify the deployment package as a .zip file archive. Enter the Amazon S3 bucket and key of the code .zip file location. You can also provide the function code inline using the ZipFile field.

The code in the deployment package must be compatible with the target instruction set architecture of the function (x86-64 or arm64).

The function's code is locked when you publish a version. You can't modify the code of a published version, only the unpublished version.

For a function defined as a container image, Lambda resolves the image tag to an image digest. In Amazon ECR, if you update the image tag to a new image, Lambda does not automatically update the function.

Parameter Syntax

$result = $client->updateFunctionCode([
    'Architectures' => ['<string>', ...],
    'DryRun' => true || false,
    'FunctionName' => '<string>', // REQUIRED
    'ImageUri' => '<string>',
    'Publish' => true || false,
    'RevisionId' => '<string>',
    'S3Bucket' => '<string>',
    'S3Key' => '<string>',
    'S3ObjectVersion' => '<string>',
    'ZipFile' => <string || resource || Psr\Http\Message\StreamInterface>,
]);

Parameter Details

Members
Architectures
  • Type: Array of strings

The instruction set architecture that the function supports. Enter a string array with one of the valid values (arm64 or x86_64). The default value is x86_64.

DryRun
  • Type: boolean

Set to true to validate the request parameters and access permissions without modifying the function code.

FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function.

Name formats

  • Function name - my-function.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN - 123456789012:function:my-function.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

ImageUri
  • Type: string

URI of a container image in the Amazon ECR registry. Do not use for a function defined with a .zip file archive.

Publish
  • Type: boolean

Set to true to publish a new version of the function after updating the code. This has the same effect as calling PublishVersion separately.

RevisionId
  • Type: string

Only update the function if the revision ID matches the ID that's specified. Use this option to avoid modifying a function that has changed since you last read it.

S3Bucket
  • Type: string

An Amazon S3 bucket in the same Amazon Web Services Region as your function. The bucket can be in a different Amazon Web Services account. Use only with a function defined with a .zip file archive deployment package.

S3Key
  • Type: string

The Amazon S3 key of the deployment package. Use only with a function defined with a .zip file archive deployment package.

S3ObjectVersion
  • Type: string

For versioned objects, the version of the deployment package object to use.

ZipFile
  • Type: blob (string|resource|Psr\Http\Message\StreamInterface)

The base64-encoded contents of the deployment package. Amazon Web Services SDK and Amazon Web Services CLI clients handle the encoding for you. Use only with a function defined with a .zip file archive deployment package.

Result Syntax

[
    'Architectures' => ['<string>', ...],
    'CodeSha256' => '<string>',
    'CodeSize' => <integer>,
    'DeadLetterConfig' => [
        'TargetArn' => '<string>',
    ],
    'Description' => '<string>',
    'Environment' => [
        'Error' => [
            'ErrorCode' => '<string>',
            'Message' => '<string>',
        ],
        'Variables' => ['<string>', ...],
    ],
    'EphemeralStorage' => [
        'Size' => <integer>,
    ],
    'FileSystemConfigs' => [
        [
            'Arn' => '<string>',
            'LocalMountPath' => '<string>',
        ],
        // ...
    ],
    'FunctionArn' => '<string>',
    'FunctionName' => '<string>',
    'Handler' => '<string>',
    'ImageConfigResponse' => [
        'Error' => [
            'ErrorCode' => '<string>',
            'Message' => '<string>',
        ],
        'ImageConfig' => [
            'Command' => ['<string>', ...],
            'EntryPoint' => ['<string>', ...],
            'WorkingDirectory' => '<string>',
        ],
    ],
    'KMSKeyArn' => '<string>',
    'LastModified' => '<string>',
    'LastUpdateStatus' => 'Successful|Failed|InProgress',
    'LastUpdateStatusReason' => '<string>',
    'LastUpdateStatusReasonCode' => 'EniLimitExceeded|InsufficientRolePermissions|InvalidConfiguration|InternalError|SubnetOutOfIPAddresses|InvalidSubnet|InvalidSecurityGroup|ImageDeleted|ImageAccessDenied|InvalidImage',
    'Layers' => [
        [
            'Arn' => '<string>',
            'CodeSize' => <integer>,
            'SigningJobArn' => '<string>',
            'SigningProfileVersionArn' => '<string>',
        ],
        // ...
    ],
    'MasterArn' => '<string>',
    'MemorySize' => <integer>,
    'PackageType' => 'Zip|Image',
    'RevisionId' => '<string>',
    'Role' => '<string>',
    'Runtime' => 'nodejs|nodejs4.3|nodejs6.10|nodejs8.10|nodejs10.x|nodejs12.x|nodejs14.x|nodejs16.x|java8|java8.al2|java11|python2.7|python3.6|python3.7|python3.8|python3.9|dotnetcore1.0|dotnetcore2.0|dotnetcore2.1|dotnetcore3.1|dotnet6|nodejs4.3-edge|go1.x|ruby2.5|ruby2.7|provided|provided.al2',
    'SigningJobArn' => '<string>',
    'SigningProfileVersionArn' => '<string>',
    'State' => 'Pending|Active|Inactive|Failed',
    'StateReason' => '<string>',
    'StateReasonCode' => 'Idle|Creating|Restoring|EniLimitExceeded|InsufficientRolePermissions|InvalidConfiguration|InternalError|SubnetOutOfIPAddresses|InvalidSubnet|InvalidSecurityGroup|ImageDeleted|ImageAccessDenied|InvalidImage',
    'Timeout' => <integer>,
    'TracingConfig' => [
        'Mode' => 'Active|PassThrough',
    ],
    'Version' => '<string>',
    'VpcConfig' => [
        'SecurityGroupIds' => ['<string>', ...],
        'SubnetIds' => ['<string>', ...],
        'VpcId' => '<string>',
    ],
]

Result Details

Members
Architectures
  • Type: Array of strings

The instruction set architecture that the function supports. Architecture is a string array with one of the valid values. The default architecture value is x86_64.

CodeSha256
  • Type: string

The SHA256 hash of the function's deployment package.

CodeSize
  • Type: long (int|float)

The size of the function's deployment package, in bytes.

DeadLetterConfig
  • Type: DeadLetterConfig structure

The function's dead letter queue.

Description
  • Type: string

The function's description.

Environment
  • Type: EnvironmentResponse structure

The function's environment variables.

EphemeralStorage
  • Type: EphemeralStorage structure

The size of the function’s /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10240 MB.

FileSystemConfigs
  • Type: Array of FileSystemConfig structures

Connection settings for an Amazon EFS file system.

FunctionArn
  • Type: string

The function's Amazon Resource Name (ARN).

FunctionName
  • Type: string

The name of the function.

Handler
  • Type: string

The function that Lambda calls to begin executing your function.

ImageConfigResponse
  • Type: ImageConfigResponse structure

The function's image configuration values.

KMSKeyArn
  • Type: string

The KMS key that's used to encrypt the function's environment variables. This key is only returned if you've configured a customer managed key.

LastModified
  • Type: string

The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

LastUpdateStatus
  • Type: string

The status of the last update that was performed on the function. This is first set to Successful after function creation completes.

LastUpdateStatusReason
  • Type: string

The reason for the last update that was performed on the function.

LastUpdateStatusReasonCode
  • Type: string

The reason code for the last update that was performed on the function.

Layers
  • Type: Array of Layer structures

The function's layers.

MasterArn
  • Type: string

For Lambda@Edge functions, the ARN of the main function.

MemorySize
  • Type: int

The amount of memory available to the function at runtime.

PackageType
  • Type: string

The type of deployment package. Set to Image for container image and set Zip for .zip file archive.

RevisionId
  • Type: string

The latest updated revision of the function or alias.

Role
  • Type: string

The function's execution role.

Runtime
  • Type: string

The runtime environment for the Lambda function.

SigningJobArn
  • Type: string

The ARN of the signing job.

SigningProfileVersionArn
  • Type: string

The ARN of the signing profile version.

State
  • Type: string

The current state of the function. When the state is Inactive, you can reactivate the function by invoking it.

StateReason
  • Type: string

The reason for the function's current state.

StateReasonCode
  • Type: string

The reason code for the function's current state. When the code is Creating, you can't invoke or modify the function.

Timeout
  • Type: int

The amount of time in seconds that Lambda allows a function to run before stopping it.

TracingConfig
  • Type: TracingConfigResponse structure

The function's X-Ray tracing configuration.

Version
  • Type: string

The version of the Lambda function.

VpcConfig
  • Type: VpcConfigResponse structure

The function's networking configuration.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • CodeStorageExceededException:

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

  • PreconditionFailedException:

    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.

  • ResourceConflictException:

    The resource already exists, or another operation is in progress.

  • CodeVerificationFailedException:

    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.

  • InvalidCodeSignatureException:

    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.

  • CodeSigningConfigNotFoundException:

    The specified code signing configuration does not exist.

UpdateFunctionConfiguration

$result = $client->updateFunctionConfiguration([/* ... */]);
$promise = $client->updateFunctionConfigurationAsync([/* ... */]);

Modify the version-specific settings of a Lambda function.

When you update a function, Lambda provisions an instance of the function and its supporting resources. If your function connects to a VPC, this process can take a minute. During this time, you can't modify the function, but you can still invoke it. The LastUpdateStatus, LastUpdateStatusReason, and LastUpdateStatusReasonCode fields in the response from GetFunctionConfiguration indicate when the update is complete and the function is processing events with the new configuration. For more information, see Function States.

These settings can vary between versions of a function and are locked when you publish a version. You can't modify the configuration of a published version, only the unpublished version.

To configure function concurrency, use PutFunctionConcurrency. To grant invoke permissions to an account or Amazon Web Services service, use AddPermission.

Parameter Syntax

$result = $client->updateFunctionConfiguration([
    'DeadLetterConfig' => [
        'TargetArn' => '<string>',
    ],
    'Description' => '<string>',
    'Environment' => [
        'Variables' => ['<string>', ...],
    ],
    'EphemeralStorage' => [
        'Size' => <integer>, // REQUIRED
    ],
    'FileSystemConfigs' => [
        [
            'Arn' => '<string>', // REQUIRED
            'LocalMountPath' => '<string>', // REQUIRED
        ],
        // ...
    ],
    'FunctionName' => '<string>', // REQUIRED
    'Handler' => '<string>',
    'ImageConfig' => [
        'Command' => ['<string>', ...],
        'EntryPoint' => ['<string>', ...],
        'WorkingDirectory' => '<string>',
    ],
    'KMSKeyArn' => '<string>',
    'Layers' => ['<string>', ...],
    'MemorySize' => <integer>,
    'RevisionId' => '<string>',
    'Role' => '<string>',
    'Runtime' => 'nodejs|nodejs4.3|nodejs6.10|nodejs8.10|nodejs10.x|nodejs12.x|nodejs14.x|nodejs16.x|java8|java8.al2|java11|python2.7|python3.6|python3.7|python3.8|python3.9|dotnetcore1.0|dotnetcore2.0|dotnetcore2.1|dotnetcore3.1|dotnet6|nodejs4.3-edge|go1.x|ruby2.5|ruby2.7|provided|provided.al2',
    'Timeout' => <integer>,
    'TracingConfig' => [
        'Mode' => 'Active|PassThrough',
    ],
    'VpcConfig' => [
        'SecurityGroupIds' => ['<string>', ...],
        'SubnetIds' => ['<string>', ...],
    ],
]);

Parameter Details

Members
DeadLetterConfig
  • Type: DeadLetterConfig structure

A dead letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when they fail processing. For more information, see Dead Letter Queues.

Description
  • Type: string

A description of the function.

Environment
  • Type: Environment structure

Environment variables that are accessible from function code during execution.

EphemeralStorage
  • Type: EphemeralStorage structure

The size of the function’s /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10240 MB.

FileSystemConfigs
  • Type: Array of FileSystemConfig structures

Connection settings for an Amazon EFS file system.

FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function.

Name formats

  • Function name - my-function.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN - 123456789012:function:my-function.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Handler
  • Type: string

The name of the method within your code that Lambda calls to execute your function. Handler is required if the deployment package is a .zip file archive. The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see Programming Model.

ImageConfig
  • Type: ImageConfig structure

Container image configuration values that override the values in the container image Docker file.

KMSKeyArn
  • Type: string

The ARN of the Amazon Web Services Key Management Service (KMS) key that's used to encrypt your function's environment variables. If it's not provided, Lambda uses a default service key.

Layers
  • Type: Array of strings

A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version.

MemorySize
  • Type: int

The amount of memory available to the function at runtime. Increasing the function memory also increases its CPU allocation. The default value is 128 MB. The value can be any multiple of 1 MB.

RevisionId
  • Type: string

Only update the function if the revision ID matches the ID that's specified. Use this option to avoid modifying a function that has changed since you last read it.

Role
  • Type: string

The Amazon Resource Name (ARN) of the function's execution role.

Runtime
  • Type: string

The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.

Timeout
  • Type: int

The amount of time (in seconds) that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds. For additional information, see Lambda execution environment.

TracingConfig
  • Type: TracingConfig structure

Set Mode to Active to sample and trace a subset of incoming requests with X-Ray.

VpcConfig
  • Type: VpcConfig structure

For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and subnets in the VPC. When you connect a function to a VPC, it can only access resources and the internet through that VPC. For more information, see VPC Settings.

Result Syntax

[
    'Architectures' => ['<string>', ...],
    'CodeSha256' => '<string>',
    'CodeSize' => <integer>,
    'DeadLetterConfig' => [
        'TargetArn' => '<string>',
    ],
    'Description' => '<string>',
    'Environment' => [
        'Error' => [
            'ErrorCode' => '<string>',
            'Message' => '<string>',
        ],
        'Variables' => ['<string>', ...],
    ],
    'EphemeralStorage' => [
        'Size' => <integer>,
    ],
    'FileSystemConfigs' => [
        [
            'Arn' => '<string>',
            'LocalMountPath' => '<string>',
        ],
        // ...
    ],
    'FunctionArn' => '<string>',
    'FunctionName' => '<string>',
    'Handler' => '<string>',
    'ImageConfigResponse' => [
        'Error' => [
            'ErrorCode' => '<string>',
            'Message' => '<string>',
        ],
        'ImageConfig' => [
            'Command' => ['<string>', ...],
            'EntryPoint' => ['<string>', ...],
            'WorkingDirectory' => '<string>',
        ],
    ],
    'KMSKeyArn' => '<string>',
    'LastModified' => '<string>',
    'LastUpdateStatus' => 'Successful|Failed|InProgress',
    'LastUpdateStatusReason' => '<string>',
    'LastUpdateStatusReasonCode' => 'EniLimitExceeded|InsufficientRolePermissions|InvalidConfiguration|InternalError|SubnetOutOfIPAddresses|InvalidSubnet|InvalidSecurityGroup|ImageDeleted|ImageAccessDenied|InvalidImage',
    'Layers' => [
        [
            'Arn' => '<string>',
            'CodeSize' => <integer>,
            'SigningJobArn' => '<string>',
            'SigningProfileVersionArn' => '<string>',
        ],
        // ...
    ],
    'MasterArn' => '<string>',
    'MemorySize' => <integer>,
    'PackageType' => 'Zip|Image',
    'RevisionId' => '<string>',
    'Role' => '<string>',
    'Runtime' => 'nodejs|nodejs4.3|nodejs6.10|nodejs8.10|nodejs10.x|nodejs12.x|nodejs14.x|nodejs16.x|java8|java8.al2|java11|python2.7|python3.6|python3.7|python3.8|python3.9|dotnetcore1.0|dotnetcore2.0|dotnetcore2.1|dotnetcore3.1|dotnet6|nodejs4.3-edge|go1.x|ruby2.5|ruby2.7|provided|provided.al2',
    'SigningJobArn' => '<string>',
    'SigningProfileVersionArn' => '<string>',
    'State' => 'Pending|Active|Inactive|Failed',
    'StateReason' => '<string>',
    'StateReasonCode' => 'Idle|Creating|Restoring|EniLimitExceeded|InsufficientRolePermissions|InvalidConfiguration|InternalError|SubnetOutOfIPAddresses|InvalidSubnet|InvalidSecurityGroup|ImageDeleted|ImageAccessDenied|InvalidImage',
    'Timeout' => <integer>,
    'TracingConfig' => [
        'Mode' => 'Active|PassThrough',
    ],
    'Version' => '<string>',
    'VpcConfig' => [
        'SecurityGroupIds' => ['<string>', ...],
        'SubnetIds' => ['<string>', ...],
        'VpcId' => '<string>',
    ],
]

Result Details

Members
Architectures
  • Type: Array of strings

The instruction set architecture that the function supports. Architecture is a string array with one of the valid values. The default architecture value is x86_64.

CodeSha256
  • Type: string

The SHA256 hash of the function's deployment package.

CodeSize
  • Type: long (int|float)

The size of the function's deployment package, in bytes.

DeadLetterConfig
  • Type: DeadLetterConfig structure

The function's dead letter queue.

Description
  • Type: string

The function's description.

Environment
  • Type: EnvironmentResponse structure

The function's environment variables.

EphemeralStorage
  • Type: EphemeralStorage structure

The size of the function’s /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10240 MB.

FileSystemConfigs
  • Type: Array of FileSystemConfig structures

Connection settings for an Amazon EFS file system.

FunctionArn
  • Type: string

The function's Amazon Resource Name (ARN).

FunctionName
  • Type: string

The name of the function.

Handler
  • Type: string

The function that Lambda calls to begin executing your function.

ImageConfigResponse
  • Type: ImageConfigResponse structure

The function's image configuration values.

KMSKeyArn
  • Type: string

The KMS key that's used to encrypt the function's environment variables. This key is only returned if you've configured a customer managed key.

LastModified
  • Type: string

The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

LastUpdateStatus
  • Type: string

The status of the last update that was performed on the function. This is first set to Successful after function creation completes.

LastUpdateStatusReason
  • Type: string

The reason for the last update that was performed on the function.

LastUpdateStatusReasonCode
  • Type: string

The reason code for the last update that was performed on the function.

Layers
  • Type: Array of Layer structures

The function's layers.

MasterArn
  • Type: string

For Lambda@Edge functions, the ARN of the main function.

MemorySize
  • Type: int

The amount of memory available to the function at runtime.

PackageType
  • Type: string

The type of deployment package. Set to Image for container image and set Zip for .zip file archive.

RevisionId
  • Type: string

The latest updated revision of the function or alias.

Role
  • Type: string

The function's execution role.

Runtime
  • Type: string

The runtime environment for the Lambda function.

SigningJobArn
  • Type: string

The ARN of the signing job.

SigningProfileVersionArn
  • Type: string

The ARN of the signing profile version.

State
  • Type: string

The current state of the function. When the state is Inactive, you can reactivate the function by invoking it.

StateReason
  • Type: string

The reason for the function's current state.

StateReasonCode
  • Type: string

The reason code for the function's current state. When the code is Creating, you can't invoke or modify the function.

Timeout
  • Type: int

The amount of time in seconds that Lambda allows a function to run before stopping it.

TracingConfig
  • Type: TracingConfigResponse structure

The function's X-Ray tracing configuration.

Version
  • Type: string

The version of the Lambda function.

VpcConfig
  • Type: VpcConfigResponse structure

The function's networking configuration.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • ResourceConflictException:

    The resource already exists, or another operation is in progress.

  • PreconditionFailedException:

    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.

  • CodeVerificationFailedException:

    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.

  • InvalidCodeSignatureException:

    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.

  • CodeSigningConfigNotFoundException:

    The specified code signing configuration does not exist.

UpdateFunctionEventInvokeConfig

$result = $client->updateFunctionEventInvokeConfig([/* ... */]);
$promise = $client->updateFunctionEventInvokeConfigAsync([/* ... */]);

Updates the configuration for asynchronous invocation for a function, version, or alias.

To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.

Parameter Syntax

$result = $client->updateFunctionEventInvokeConfig([
    'DestinationConfig' => [
        'OnFailure' => [
            'Destination' => '<string>',
        ],
        'OnSuccess' => [
            'Destination' => '<string>',
        ],
    ],
    'FunctionName' => '<string>', // REQUIRED
    'MaximumEventAgeInSeconds' => <integer>,
    'MaximumRetryAttempts' => <integer>,
    'Qualifier' => '<string>',
]);

Parameter Details

Members
DestinationConfig
  • Type: DestinationConfig structure

A destination for events after they have been sent to a function for processing.

Destinations

  • Function - The Amazon Resource Name (ARN) of a Lambda function.

  • Queue - The ARN of an SQS queue.

  • Topic - The ARN of an SNS topic.

  • Event Bus - The ARN of an Amazon EventBridge event bus.

FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function, version, or alias.

Name formats

  • Function name - my-function (name-only), my-function:v1 (with alias).

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN - 123456789012:function:my-function.

You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

MaximumEventAgeInSeconds
  • Type: int

The maximum age of a request that Lambda sends to a function for processing.

MaximumRetryAttempts
  • Type: int

The maximum number of times to retry when the function returns an error.

Qualifier
  • Type: string

A version number or alias name.

Result Syntax

[
    'DestinationConfig' => [
        'OnFailure' => [
            'Destination' => '<string>',
        ],
        'OnSuccess' => [
            'Destination' => '<string>',
        ],
    ],
    'FunctionArn' => '<string>',
    'LastModified' => <DateTime>,
    'MaximumEventAgeInSeconds' => <integer>,
    'MaximumRetryAttempts' => <integer>,
]

Result Details

Members
DestinationConfig
  • Type: DestinationConfig structure

A destination for events after they have been sent to a function for processing.

Destinations

  • Function - The Amazon Resource Name (ARN) of a Lambda function.

  • Queue - The ARN of an SQS queue.

  • Topic - The ARN of an SNS topic.

  • Event Bus - The ARN of an Amazon EventBridge event bus.

FunctionArn
  • Type: string

The Amazon Resource Name (ARN) of the function.

LastModified
  • Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time that the configuration was last updated.

MaximumEventAgeInSeconds
  • Type: int

The maximum age of a request that Lambda sends to a function for processing.

MaximumRetryAttempts
  • Type: int

The maximum number of times to retry when the function returns an error.

Errors

  • ServiceException:

    The Lambda service encountered an internal error.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

  • ResourceConflictException:

    The resource already exists, or another operation is in progress.

UpdateFunctionUrlConfig

$result = $client->updateFunctionUrlConfig([/* ... */]);
$promise = $client->updateFunctionUrlConfigAsync([/* ... */]);

Updates the configuration for a Lambda function URL.

Parameter Syntax

$result = $client->updateFunctionUrlConfig([
    'AuthType' => 'NONE|AWS_IAM',
    'Cors' => [
        'AllowCredentials' => true || false,
        'AllowHeaders' => ['<string>', ...],
        'AllowMethods' => ['<string>', ...],
        'AllowOrigins' => ['<string>', ...],
        'ExposeHeaders' => ['<string>', ...],
        'MaxAge' => <integer>,
    ],
    'FunctionName' => '<string>', // REQUIRED
    'Qualifier' => '<string>',
]);

Parameter Details

Members
AuthType
  • Type: string

The type of authentication that your function URL uses. Set to AWS_IAM if you want to restrict access to authenticated IAM users only. Set to NONE if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.

Cors
  • Type: Cors structure

The cross-origin resource sharing (CORS) settings for your function URL.

FunctionName
  • Required: Yes
  • Type: string

The name of the Lambda function.

Name formats

  • Function name - my-function.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN - 123456789012:function:my-function.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Qualifier
  • Type: string

The alias name.

Result Syntax

[
    'AuthType' => 'NONE|AWS_IAM',
    'Cors' => [
        'AllowCredentials' => true || false,
        'AllowHeaders' => ['<string>', ...],
        'AllowMethods' => ['<string>', ...],
        'AllowOrigins' => ['<string>', ...],
        'ExposeHeaders' => ['<string>', ...],
        'MaxAge' => <integer>,
    ],
    'CreationTime' => '<string>',
    'FunctionArn' => '<string>',
    'FunctionUrl' => '<string>',
    'LastModifiedTime' => '<string>',
]

Result Details

Members
AuthType
  • Required: Yes
  • Type: string

The type of authentication that your function URL uses. Set to AWS_IAM if you want to restrict access to authenticated IAM users only. Set to NONE if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.

Cors
  • Type: Cors structure

The cross-origin resource sharing (CORS) settings for your function URL.

CreationTime
  • Required: Yes
  • Type: string

When the function URL was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

FunctionArn
  • Required: Yes
  • Type: string

The Amazon Resource Name (ARN) of your function.

FunctionUrl
  • Required: Yes
  • Type: string

The HTTP URL endpoint for your function.

LastModifiedTime
  • Required: Yes
  • Type: string

When the function URL configuration was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

Errors

  • ResourceConflictException:

    The resource already exists, or another operation is in progress.

  • ResourceNotFoundException:

    The resource specified in the request does not exist.

  • InvalidParameterValueException:

    One of the parameters in the request is invalid.

  • ServiceException:

    The Lambda service encountered an internal error.

  • TooManyRequestsException:

    The request throughput limit was exceeded.

Shapes

AccountLimit

Description

Limits that are related to concurrency and storage. All file and storage sizes are in bytes.

Members
CodeSizeUnzipped
  • Type: long (int|float)

The maximum size of a function's deployment package and layers when they're extracted.

CodeSizeZipped
  • Type: long (int|float)

The maximum size of a deployment package when it's uploaded directly to Lambda. Use Amazon S3 for larger files.

ConcurrentExecutions
  • Type: int

The maximum number of simultaneous function executions.

TotalCodeSize
  • Type: long (int|float)

The amount of storage space that you can use for all deployment packages and layer archives.

UnreservedConcurrentExecutions
  • Type: int

The maximum number of simultaneous function executions, minus the capacity that's reserved for individual functions with PutFunctionConcurrency.

AccountUsage

Description

The number of functions and amount of storage in use.

Members
FunctionCount
  • Type: long (int|float)

The number of Lambda functions.

TotalCodeSize
  • Type: long (int|float)

The amount of storage space, in bytes, that's being used by deployment packages and layer archives.

AliasRoutingConfiguration

Description

The traffic-shifting configuration of a Lambda function alias.

Members
AdditionalVersionWeights
  • Type: Associative array of custom strings keys (AdditionalVersion) to doubles

The second version, and the percentage of traffic that's routed to it.

AllowedPublishers

Description

List of signing profiles that can sign a code package.

Members
SigningProfileVersionArns
  • Required: Yes
  • Type: Array of strings

The Amazon Resource Name (ARN) for each of the signing profiles. A signing profile defines a trusted user who can sign a code package.

CodeSigningConfig

Description

Details about a Code signing configuration.

Members
AllowedPublishers
  • Required: Yes
  • Type: AllowedPublishers structure

List of allowed publishers.

CodeSigningConfigArn
  • Required: Yes
  • Type: string

The Amazon Resource Name (ARN) of the Code signing configuration.

CodeSigningConfigId
  • Required: Yes
  • Type: string

Unique identifer for the Code signing configuration.

CodeSigningPolicies
  • Required: Yes
  • Type: CodeSigningPolicies structure

The code signing policy controls the validation failure action for signature mismatch or expiry.

Description
  • Type: string

Code signing configuration description.

LastModified
  • Required: Yes
  • Type: string

The date and time that the Code signing configuration was last modified, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

CodeSigningConfigNotFoundException

Description

The specified code signing configuration does not exist.

Members
Message
  • Type: string
Type
  • Type: string

CodeSigningPolicies

Description

Code signing configuration policies specify the validation failure action for signature mismatch or expiry.

Members
UntrustedArtifactOnDeployment
  • Type: string

Code signing configuration policy for deployment validation failure. If you set the policy to Enforce, Lambda blocks the deployment request if signature validation checks fail. If you set the policy to Warn, Lambda allows the deployment and creates a CloudWatch log.

Default value: Warn

CodeStorageExceededException

Description

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

Members
Type
  • Type: string

The exception type.

message
  • Type: string

CodeVerificationFailedException

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

Cors

Description

The cross-origin resource sharing (CORS) settings for your Lambda function URL. Use CORS to grant access to your function URL from any origin. You can also use CORS to control access for specific HTTP headers and methods in requests to your function URL.

Members
AllowCredentials
  • Type: boolean

Whether to allow cookies or other credentials in requests to your function URL. The default is false.

AllowHeaders
  • Type: Array of strings

The HTTP headers that origins can include in requests to your function URL. For example: Date, Keep-Alive, X-Custom-Header.

AllowMethods
  • Type: Array of strings

The HTTP methods that are allowed when calling your function URL. For example: GET, POST, DELETE, or the wildcard character (*).

AllowOrigins
  • Type: Array of strings

The origins that can access your function URL. You can list any number of specific origins, separated by a comma. For example: https://www.example.com, http://localhost:60905.

Alternatively, you can grant access to all origins using the wildcard character (*).

ExposeHeaders
  • Type: Array of strings

The HTTP headers in your function response that you want to expose to origins that call your function URL. For example: Date, Keep-Alive, X-Custom-Header.

MaxAge
  • Type: int

The maximum amount of time, in seconds, that web browsers can cache results of a preflight request. By default, this is set to 0, which means that the browser doesn't cache results.

DeadLetterConfig

Description

The dead-letter queue for failed asynchronous invocations.

Members
TargetArn
  • Type: string

The Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic.

DestinationConfig

Description

A configuration object that specifies the destination of an event after Lambda processes it.

Members
OnFailure
  • Type: OnFailure structure

The destination configuration for failed invocations.

OnSuccess
  • Type: OnSuccess structure

The destination configuration for successful invocations.

EC2AccessDeniedException

Description

Need additional permissions to configure VPC settings.

Members
Message
  • Type: string
Type
  • Type: string

EC2ThrottledException

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

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

Description

An error occurred when reading from or writing to a connected file system.

Members
Message
  • Type: string
Type
  • Type: string

EFSMountConnectivityException

Description

The function couldn't make a network connection to the configured file system.

Members
Message
  • Type: string
Type
  • Type: string

EFSMountFailureException

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

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

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

Environment

Description

A function's environment variable settings. You can use environment variables to adjust your function's behavior without updating code. An environment variable is a pair of strings that are stored in a function's version-specific configuration.

Members
Variables
  • Type: Associative array of custom strings keys (EnvironmentVariableName) to strings

Environment variable key-value pairs. For more information, see Using Lambda environment variables.

EnvironmentError

Description

Error messages for environment variables that couldn't be applied.

Members
ErrorCode
  • Type: string

The error code.

Message
  • Type: string

The error message.

EnvironmentResponse

Description

The results of an operation to update or read environment variables. If the operation is successful, the response contains the environment variables. If it failed, the response contains details about the error.

Members
Error
  • Type: EnvironmentError structure

Error messages for environment variables that couldn't be applied.

Variables
  • Type: Associative array of custom strings keys (EnvironmentVariableName) to strings

Environment variable key-value pairs.

EphemeralStorage

Description

The size of the function’s /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10240 MB.

Members
Size
  • Required: Yes
  • Type: int

The size of the function’s /tmp directory.

FileSystemConfig

Description

Details about the connection between a Lambda function and an Amazon EFS file system.

Members
Arn
  • Required: Yes
  • Type: string

The Amazon Resource Name (ARN) of the Amazon EFS access point that provides access to the file system.

LocalMountPath
  • Required: Yes
  • Type: string

The path where the function can access the file system, starting with /mnt/.

Filter

Description

A structure within a FilterCriteria object that defines an event filtering pattern.

Members
Pattern
  • Type: string

A filter pattern. For more information on the syntax of a filter pattern, see Filter rule syntax.

FilterCriteria

Description

An object that contains the filters for an event source.

Members
Filters
  • Type: Array of Filter structures

A list of filters.

FunctionCode

Description

The code for the Lambda function. You can specify either an object in Amazon S3, upload a .zip file archive deployment package directly, or specify the URI of a container image.

Members
ImageUri
  • Type: string

URI of a container image in the Amazon ECR registry.

S3Bucket
  • Type: string

An Amazon S3 bucket in the same Amazon Web Services Region as your function. The bucket can be in a different Amazon Web Services account.

S3Key
  • Type: string

The Amazon S3 key of the deployment package.

S3ObjectVersion
  • Type: string

For versioned objects, the version of the deployment package object to use.

ZipFile
  • Type: blob (string|resource|Psr\Http\Message\StreamInterface)

The base64-encoded contents of the deployment package. Amazon Web Services SDK and Amazon Web Services CLI clients handle the encoding for you.

FunctionCodeLocation

Description

Details about a function's deployment package.

Members
ImageUri
  • Type: string

URI of a container image in the Amazon ECR registry.

Location
  • Type: string

A presigned URL that you can use to download the deployment package.

RepositoryType
  • Type: string

The service that's hosting the file.

ResolvedImageUri
  • Type: string

The resolved URI for the image.

FunctionUrlConfig

Description

Details about a Lambda function URL.

Members
AuthType
  • Required: Yes
  • Type: string

The type of authentication that your function URL uses. Set to AWS_IAM if you want to restrict access to authenticated IAM users only. Set to NONE if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.

Cors
  • Type: Cors structure

The cross-origin resource sharing (CORS) settings for your function URL.

CreationTime
  • Required: Yes
  • Type: string

When the function URL was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

FunctionArn
  • Required: Yes
  • Type: string

The Amazon Resource Name (ARN) of your function.

FunctionUrl
  • Required: Yes
  • Type: string

The HTTP URL endpoint for your function.

LastModifiedTime
  • Required: Yes
  • Type: string

When the function URL configuration was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

ImageConfig

Description

Configuration values that override the container image Dockerfile settings. See Container settings.

Members
Command
  • Type: Array of strings

Specifies parameters that you want to pass in with ENTRYPOINT.

EntryPoint
  • Type: Array of strings

Specifies the entry point to their application, which is typically the location of the runtime executable.

WorkingDirectory
  • Type: string

Specifies the working directory.

ImageConfigError

Description

Error response to GetFunctionConfiguration.

Members
ErrorCode
  • Type: string

Error code.

Message
  • Type: string

Error message.

ImageConfigResponse

Description

Response to GetFunctionConfiguration request.

Members
Error
  • Type: ImageConfigError structure

Error response to GetFunctionConfiguration.

ImageConfig
  • Type: ImageConfig structure

Configuration values that override the container image Dockerfile.

InvalidCodeSignatureException

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

Description

One of the parameters in the request is invalid.

Members
Type
  • Type: string

The exception type.

message
  • Type: string

The exception message.

InvalidRequestContentException

Description

The request body could not be parsed as JSON.

Members
Type
  • Type: string

The exception type.

message
  • Type: string

The exception message.

InvalidRuntimeException

Description

The runtime or runtime version specified is not supported.

Members
Message
  • Type: string
Type
  • Type: string

InvalidSecurityGroupIDException

Description

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

Members
Message
  • Type: string
Type
  • Type: string

InvalidSubnetIDException

Description

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

Members
Message
  • Type: string
Type
  • Type: string

InvalidZipFileException

Description

Lambda could not unzip the deployment package.

Members
Message
  • Type: string
Type
  • Type: string

KMSAccessDeniedException

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

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

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

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

Layer

Description

An Lambda layer.

Members
Arn
  • Type: string

The Amazon Resource Name (ARN) of the function layer.

CodeSize
  • Type: long (int|float)

The size of the layer archive in bytes.

SigningJobArn
  • Type: string

The Amazon Resource Name (ARN) of a signing job.

SigningProfileVersionArn
  • Type: string

The Amazon Resource Name (ARN) for a signing profile version.

LayerVersionContentInput

Description

A ZIP archive that contains the contents of an Lambda layer. You can specify either an Amazon S3 location, or upload a layer archive directly.

Members
S3Bucket
  • Type: string

The Amazon S3 bucket of the layer archive.

S3Key
  • Type: string

The Amazon S3 key of the layer archive.

S3ObjectVersion
  • Type: string

For versioned objects, the version of the layer archive object to use.

ZipFile
  • Type: blob (string|resource|Psr\Http\Message\StreamInterface)

The base64-encoded contents of the layer archive. Amazon Web Services SDK and Amazon Web Services CLI clients handle the encoding for you.

LayerVersionContentOutput

Description

Details about a version of an Lambda layer.

Members
CodeSha256
  • Type: string

The SHA-256 hash of the layer archive.

CodeSize
  • Type: long (int|float)

The size of the layer archive in bytes.

Location
  • Type: string

A link to the layer archive in Amazon S3 that is valid for 10 minutes.

SigningJobArn
  • Type: string

The Amazon Resource Name (ARN) of a signing job.

SigningProfileVersionArn
  • Type: string

The Amazon Resource Name (ARN) for a signing profile version.

LayerVersionsListItem

Description

Details about a version of an Lambda layer.

Members
CompatibleArchitectures
  • Type: Array of strings

A list of compatible instruction set architectures.

CompatibleRuntimes
  • Type: Array of strings

The layer's compatible runtimes.

CreatedDate
  • Type: string

The date that the version was created, in ISO 8601 format. For example, 2018-11-27T15:10:45.123+0000.

Description
  • Type: string

The description of the version.

LayerVersionArn
  • Type: string

The ARN of the layer version.

LicenseInfo
  • Type: string

The layer's open-source license.

Version
  • Type: long (int|float)

The version number.

LayersListItem

Description

Details about an Lambda layer.

Members
LatestMatchingVersion
  • Type: LayerVersionsListItem structure

The newest version of the layer.

LayerArn
  • Type: string

The Amazon Resource Name (ARN) of the function layer.

LayerName
  • Type: string

The name of the layer.

OnFailure

Description

A destination for events that failed processing.

Members
Destination
  • Type: string

The Amazon Resource Name (ARN) of the destination resource.

OnSuccess

Description

A destination for events that were processed successfully.

Members
Destination
  • Type: string

The Amazon Resource Name (ARN) of the destination resource.

PolicyLengthExceededException

Description

The permissions policy for the resource is too large. Learn more

Members
Type
  • Type: string
message
  • Type: string

PreconditionFailedException

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.

ProvisionedConcurrencyConfigListItem

Description

Details about the provisioned concurrency configuration for a function alias or version.

Members
AllocatedProvisionedConcurrentExecutions
  • Type: int

The amount of provisioned concurrency allocated.

AvailableProvisionedConcurrentExecutions
  • Type: int

The amount of provisioned concurrency available.

FunctionArn
  • Type: string

The Amazon Resource Name (ARN) of the alias or version.

LastModified
  • Type: string

The date and time that a user last updated the configuration, in ISO 8601 format.

RequestedProvisionedConcurrentExecutions
  • Type: int

The amount of provisioned concurrency requested.

Status
  • Type: string

The status of the allocation process.

StatusReason
  • Type: string

For failed allocations, the reason that provisioned concurrency could not be allocated.

ProvisionedConcurrencyConfigNotFoundException

Description

The specified configuration does not exist.

Members
Type
  • Type: string
message
  • Type: string

RequestTooLargeException

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

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

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

Description

The resource specified in the request does not exist.

Members
Message
  • Type: string
Type
  • Type: string

ResourceNotReadyException

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.

SelfManagedEventSource

Description

The self-managed Apache Kafka cluster for your event source.

Members
Endpoints
  • Type: Associative array of custom strings keys (EndPointType) to stringss

The list of bootstrap servers for your Kafka brokers in the following format: "KAFKA_BOOTSTRAP_SERVERS": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"].

ServiceException

Description

The Lambda service encountered an internal error.

Members
Message
  • Type: string
Type
  • Type: string

SourceAccessConfiguration

Description

To secure and define access to your event source, you can specify the authentication protocol, VPC components, or virtual host.

Members
Type
  • Type: string

The type of authentication protocol, VPC components, or virtual host for your event source. For example: "Type":"SASL_SCRAM_512_AUTH".

  • BASIC_AUTH - (Amazon MQ) The Secrets Manager secret that stores your broker credentials.

  • BASIC_AUTH - (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL/PLAIN authentication of your Apache Kafka brokers.

  • VPC_SUBNET - The subnets associated with your VPC. Lambda connects to these subnets to fetch data from your self-managed Apache Kafka cluster.

  • VPC_SECURITY_GROUP - The VPC security group used to manage access to your self-managed Apache Kafka brokers.

  • SASL_SCRAM_256_AUTH - The Secrets Manager ARN of your secret key used for SASL SCRAM-256 authentication of your self-managed Apache Kafka brokers.

  • SASL_SCRAM_512_AUTH - The Secrets Manager ARN of your secret key used for SASL SCRAM-512 authentication of your self-managed Apache Kafka brokers.

  • VIRTUAL_HOST - (Amazon MQ) The name of the virtual host in your RabbitMQ broker. Lambda uses this RabbitMQ host as the event source. This property cannot be specified in an UpdateEventSourceMapping API call.

  • CLIENT_CERTIFICATE_TLS_AUTH - (Amazon MSK, Self-managed Apache Kafka) The Secrets Manager ARN of your secret key containing the certificate chain (X.509 PEM), private key (PKCS#8 PEM), and private key password (optional) used for mutual TLS authentication of your MSK/Apache Kafka brokers.

  • SERVER_ROOT_CA_CERTIFICATE - (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key containing the root CA certificate (X.509 PEM) used for TLS encryption of your Apache Kafka brokers.

URI
  • Type: string

The value for your chosen configuration in Type. For example: "URI": "arn:aws:secretsmanager:us-east-1:01234567890:secret:MyBrokerSecretName".

SubnetIPAddressLimitReachedException

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

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.

TracingConfig

Description

The function's X-Ray tracing configuration. To sample and record incoming requests, set Mode to Active.

Members
Mode
  • Type: string

The tracing mode.

TracingConfigResponse

Description

The function's X-Ray tracing configuration.

Members
Mode
  • Type: string

The tracing mode.

UnsupportedMediaTypeException

Description

The content type of the Invoke request body is not JSON.

Members
Type
  • Type: string
message
  • Type: string

VpcConfig

Description

The VPC security groups and subnets that are attached to a Lambda function. For more information, see VPC Settings.

Members
SecurityGroupIds
  • Type: Array of strings

A list of VPC security groups IDs.

SubnetIds
  • Type: Array of strings

A list of VPC subnet IDs.

VpcConfigResponse

Description

The VPC security groups and subnets that are attached to a Lambda function.

Members
SecurityGroupIds
  • Type: Array of strings

A list of VPC security groups IDs.

SubnetIds
  • Type: Array of strings

A list of VPC subnet IDs.

VpcId
  • Type: string

The ID of the VPC.

AWS SDK for PHP 3.x API documentation generated by ApiGen