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
    • ARCZonalShift
      • 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
    • ChimeSDKVoice
      • Exception
    • CleanRooms
      • Exception
    • ClientSideMonitoring
      • Exception
    • Cloud9
      • Exception
    • CloudControlApi
      • Exception
    • CloudDirectory
      • Exception
    • CloudFormation
      • Exception
    • CloudFront
      • Exception
    • CloudHsm
      • Exception
    • CloudHSMV2
      • Exception
    • CloudSearch
      • Exception
    • CloudSearchDomain
      • Exception
    • CloudTrail
      • Exception
    • CloudTrailData
      • Exception
    • CloudWatch
      • Exception
    • CloudWatchEvents
      • Exception
    • CloudWatchEvidently
      • Exception
    • CloudWatchLogs
      • Exception
    • CloudWatchRUM
      • Exception
    • CodeArtifact
      • Exception
    • CodeBuild
      • Exception
    • CodeCatalyst
      • 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
    • ConnectCases
      • Exception
    • ConnectContactLens
      • Exception
    • ConnectParticipant
      • Exception
    • ConnectWisdomService
      • Exception
    • ControlTower
      • 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
    • DocDBElastic
      • 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
    • EndpointV2
      • Rule
      • Ruleset
    • 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
    • InternetMonitor
      • Exception
    • Iot
      • Exception
    • IoT1ClickDevicesService
      • Exception
    • IoT1ClickProjects
      • Exception
    • IoTAnalytics
      • Exception
    • IotDataPlane
      • Exception
    • IoTDeviceAdvisor
      • Exception
    • IoTEvents
      • Exception
    • IoTEventsData
      • Exception
    • IoTFleetHub
      • Exception
    • IoTFleetWise
      • Exception
    • IoTJobsDataPlane
      • Exception
    • IoTRoboRunner
      • Exception
    • IoTSecureTunneling
      • Exception
    • IoTSiteWise
      • Exception
    • IoTThingsGraph
      • Exception
    • IoTTwinMaker
      • Exception
    • IoTWireless
      • Exception
    • IVS
      • Exception
    • ivschat
      • Exception
    • Kafka
      • Exception
    • KafkaConnect
      • Exception
    • kendra
      • Exception
    • KendraRanking
      • Exception
    • Keyspaces
      • Exception
    • Kinesis
      • Exception
    • KinesisAnalytics
      • Exception
    • KinesisAnalyticsV2
      • Exception
    • KinesisVideo
      • Exception
    • KinesisVideoArchivedMedia
      • Exception
    • KinesisVideoMedia
      • Exception
    • KinesisVideoSignalingChannels
      • Exception
    • KinesisVideoWebRTCStorage
      • Exception
    • Kms
      • Exception
    • LakeFormation
      • Exception
    • Lambda
      • Exception
    • LexModelBuildingService
      • Exception
    • LexModelsV2
      • Exception
    • LexRuntimeService
      • Exception
    • LexRuntimeV2
      • Exception
    • LicenseManager
      • Exception
    • LicenseManagerLinuxSubscriptions
      • 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
    • MigrationHubOrchestrator
      • Exception
    • MigrationHubRefactorSpaces
      • Exception
    • MigrationHubStrategyRecommendations
      • Exception
    • Mobile
      • Exception
    • MQ
      • Exception
    • MTurk
      • Exception
    • Multipart
    • MWAA
      • Exception
    • Neptune
      • Exception
    • NetworkFirewall
      • Exception
    • NetworkManager
      • Exception
    • NimbleStudio
      • Exception
    • OAM
      • Exception
    • Omics
      • Exception
    • OpenSearchServerless
      • 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
    • Pipes
      • 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
    • ResourceExplorer2
      • 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
    • SageMakerGeospatial
      • Exception
    • SageMakerMetrics
      • Exception
    • SageMakerRuntime
      • Exception
    • SavingsPlans
      • Exception
    • Scheduler
      • Exception
    • Schemas
      • Exception
    • Script
      • Composer
    • SecretsManager
      • Exception
    • SecurityHub
      • Exception
    • SecurityLake
      • Exception
    • ServerlessApplicationRepository
      • Exception
    • ServiceCatalog
      • Exception
    • ServiceDiscovery
      • Exception
    • ServiceQuotas
      • Exception
    • Ses
      • Exception
    • SesV2
      • Exception
    • Sfn
      • Exception
    • Shield
      • Exception
    • Signature
    • signer
      • Exception
    • SimSpaceWeaver
      • Exception
    • Sms
      • Exception
    • SnowBall
      • Exception
    • SnowDeviceManagement
      • Exception
    • Sns
      • Exception
    • Sqs
      • Exception
    • Ssm
      • Exception
    • SSMContacts
      • Exception
    • SSMIncidents
      • Exception
    • SsmSap
      • Exception
    • SSO
      • Exception
    • SSOAdmin
      • Exception
    • SSOOIDC
      • Exception
    • StorageGateway
      • Exception
    • Sts
      • Exception
      • RegionalEndpoints
        • Exception
    • Support
      • Exception
    • SupportApp
      • Exception
    • Swf
      • Exception
    • Synthetics
      • Exception
    • Textract
      • Exception
    • TimestreamQuery
      • Exception
    • TimestreamWrite
      • Exception
    • Tnb
      • Exception
    • Token
    • 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

  • AbstractConfigurationProvider
  • AwsClient
  • ClientResolver
  • Command
  • CommandPool
  • DoctrineCacheAdapter
  • HandlerList
  • HashingStream
  • History
  • IdempotencyTokenMiddleware
  • JsonCompiler
  • LruArrayCache
  • Middleware
  • MockHandler
  • MultiRegionClient
  • PhpHash
  • PresignUrlMiddleware
  • Psr16CacheAdapter
  • PsrCacheAdapter
  • Result
  • ResultPaginator
  • Sdk
  • TraceMiddleware
  • Waiter
  • WrappedHttpHandler

Interfaces

  • AwsClientInterface
  • CacheInterface
  • CommandInterface
  • ConfigurationProviderInterface
  • HashInterface
  • MonitoringEventsInterface
  • ResponseContainerInterface
  • ResultInterface

Traits

  • AwsClientTrait
  • HasDataTrait
  • HasMonitoringEventsTrait

Functions

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

Class Middleware

Methods Summary

  • static sourceFile ( Aws\Api\Service $api, string $bodyParameter = 'Body', string $sourceParameter = 'SourceFile' )

    Middleware used to allow a command parameter (e.g., "SourceFile") to be used to specify the source of data for an upload operation.

  • static validation ( Aws\Api\Service $api, Aws\Api\Validator $validator = null )

    Adds a middleware that uses client-side validation.

  • static requestBuilder ( callable $serializer, EndpointProviderV2 $endpointProvider = null, array $providerArgs = null )

    Builds an HTTP request for a command.

  • static signer ( callable $credProvider, callable $signatureFunction, $tokenProvider = null )

    Creates a middleware that signs requests for a command.

  • static tap ( callable $fn )

    Creates a middleware that invokes a callback at a given step.

  • static retry ( callable $decider = null, callable $delay = null, bool $stats = false )

    Middleware wrapper function that retries requests based on the boolean result of invoking the provided "decider" function.

  • static invocationId ( )

    Middleware wrapper function that adds an invocation id header to requests, which is only applied after the build step.

  • static contentType ( array $operations )

    Middleware wrapper function that adds a Content-Type header to requests. This is only done when the Content-Type has not already been set, and the request body's URI is available. It then checks the file extension of the URI to determine the mime-type.

  • static recursionDetection ( )

    Middleware wrapper function that adds a trace id header to requests from clients instantiated in supported Lambda runtime environments.

  • static history ( Aws\History $history )

    Tracks command and request history using a history container.

  • static mapRequest ( callable $f )

    Creates a middleware that applies a map function to requests as they pass through the middleware.

  • static mapCommand ( callable $f )

    Creates a middleware that applies a map function to commands as they pass through the middleware.

  • static mapResult ( callable $f )

    Creates a middleware that applies a map function to results.

  • static timer ( )

Methods Details

static callable sourceFile ( Aws\Api\Service $api, string $bodyParameter = 'Body', string $sourceParameter = 'SourceFile' )

Middleware used to allow a command parameter (e.g., "SourceFile") to be used to specify the source of data for an upload operation.

Parameters

Aws\Api\Service $api
string $bodyParameter = 'Body'
string $sourceParameter = 'SourceFile'

Returns

callable

static callable validation ( Aws\Api\Service $api, Aws\Api\Validator $validator = null )

Adds a middleware that uses client-side validation.

Parameters

Aws\Api\Service $api API being accessed.
Aws\Api\Validator $validator = null

Returns

callable

static callable requestBuilder ( callable $serializer, Aws\EndpointV2\EndpointProviderV2 $endpointProvider = null, array $providerArgs = null )

Builds an HTTP request for a command.

Parameters

callable $serializer

Function used to serialize a request for a command.

Aws\EndpointV2\EndpointProviderV2 $endpointProvider = null null $endpointProvider
array $providerArgs = null

Returns

callable

static callable signer ( callable $credProvider, callable $signatureFunction, $tokenProvider = null )

Creates a middleware that signs requests for a command.

Parameters

callable $credProvider

Credentials provider function that returns a promise that is resolved with a CredentialsInterface object.

callable $signatureFunction

Function that accepts a Command object and returns a SignatureInterface.

$tokenProvider = null

Returns

callable

static callable tap ( callable $fn )

Creates a middleware that invokes a callback at a given step.

The tap callback accepts a CommandInterface and RequestInterface as arguments but is not expected to return a new value or proxy to downstream middleware. It's simply a way to "tap" into the handler chain to debug or get an intermediate value.

Parameters

callable $fn Tap function

Returns

callable

static callable retry ( callable $decider = null, callable $delay = null, boolean $stats = false )

Middleware wrapper function that retries requests based on the boolean result of invoking the provided "decider" function.

If no delay function is provided, a simple implementation of exponential backoff will be utilized.

Parameters

callable $decider = null

Function that accepts the number of retries, a request, [result], and [exception] and returns true if the command is to be retried.

callable $delay = null

Function that accepts the number of retries and returns the number of milliseconds to delay.

boolean $stats = false

Whether to collect statistics on retries and the associated delay.

Returns

callable

static callable invocationId ( )

Middleware wrapper function that adds an invocation id header to requests, which is only applied after the build step.

This is a uniquely generated UUID to identify initial and subsequent retries as part of a complete request lifecycle.

Returns

callable

static callable contentType ( array $operations )

Middleware wrapper function that adds a Content-Type header to requests. This is only done when the Content-Type has not already been set, and the request body's URI is available. It then checks the file extension of the URI to determine the mime-type.

Parameters

array $operations Operations that Content-Type should be added to.

Returns

callable

static callable recursionDetection ( )

Middleware wrapper function that adds a trace id header to requests from clients instantiated in supported Lambda runtime environments.

The purpose for this header is to track and stop Lambda functions from being recursively invoked due to misconfigured resources.

Returns

callable

static callable history ( Aws\History $history )

Tracks command and request history using a history container.

This is useful for testing.

Parameters

Aws\History $history History container to store entries.

Returns

callable

static callable mapRequest ( callable $f )

Creates a middleware that applies a map function to requests as they pass through the middleware.

Parameters

callable $f

Map function that accepts a RequestInterface and returns a RequestInterface.

Returns

callable

static callable mapCommand ( callable $f )

Creates a middleware that applies a map function to commands as they pass through the middleware.

Parameters

callable $f

Map function that accepts a command and returns a command.

Returns

callable

static callable mapResult ( callable $f )

Creates a middleware that applies a map function to results.

Parameters

callable $f

Map function that accepts an Aws\ResultInterface and returns an Aws\ResultInterface.

Returns

callable

static timer ( )

AWS SDK for PHP 3.x API documentation generated by ApiGen