OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
aws-ses
/
vendor
/
aws
/
aws-sdk-php
/
src
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
ACMPCA
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
ARCZonalShift
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📄
AbstractConfigurationProvider.php
4.62 KB
05/19/2025 10:07:20 AM
rw-r--r--
📁
AccessAnalyzer
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
Account
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Acm
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Amplify
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
AmplifyBackend
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
AmplifyUIBuilder
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
Api
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
ApiGateway
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
ApiGatewayManagementApi
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
ApiGatewayV2
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
AppConfig
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
AppConfigData
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
AppFabric
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
AppIntegrationsService
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
AppMesh
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
AppRegistry
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
AppRunner
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
AppSync
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
AppTest
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Appflow
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
ApplicationAutoScaling
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
ApplicationCostProfiler
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
ApplicationDiscoveryService
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
ApplicationInsights
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
ApplicationSignals
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Appstream
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Arn
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
Artifact
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Athena
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
AuditManager
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
AugmentedAIRuntime
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Auth
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
AutoScaling
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
AutoScalingPlans
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📄
AwsClient.php
27.86 KB
05/19/2025 10:07:20 AM
rw-r--r--
📄
AwsClientInterface.php
5.56 KB
05/19/2025 10:07:20 AM
rw-r--r--
📄
AwsClientTrait.php
2.77 KB
05/19/2025 10:07:20 AM
rw-r--r--
📁
B2bi
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
BCMDataExports
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Backup
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
BackupGateway
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Batch
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
Bedrock
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
BedrockAgent
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
BedrockAgentRuntime
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
BedrockRuntime
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
BillingConductor
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Braket
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
Budgets
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📄
CacheInterface.php
789 bytes
05/19/2025 10:07:21 AM
rw-r--r--
📁
Chatbot
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
Chime
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
ChimeSDKIdentity
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
ChimeSDKMediaPipelines
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
ChimeSDKMeetings
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
ChimeSDKMessaging
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
ChimeSDKVoice
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
CleanRooms
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
CleanRoomsML
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📄
ClientResolver.php
56.41 KB
05/19/2025 10:07:20 AM
rw-r--r--
📁
ClientSideMonitoring
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Cloud9
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
CloudControlApi
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
CloudDirectory
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
CloudFormation
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
CloudFront
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
CloudFrontKeyValueStore
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
CloudHSMV2
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
CloudHsm
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
CloudSearch
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
CloudSearchDomain
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
CloudTrail
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
CloudTrailData
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
CloudWatch
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
CloudWatchEvents
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
CloudWatchEvidently
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
CloudWatchLogs
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
CloudWatchRUM
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
CodeArtifact
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
CodeBuild
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
CodeCatalyst
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
CodeCommit
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
CodeConnections
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
CodeDeploy
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
CodeGuruProfiler
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
CodeGuruReviewer
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
CodeGuruSecurity
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
CodePipeline
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
CodeStar
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
CodeStarNotifications
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
CodeStarconnections
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
CognitoIdentity
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
CognitoIdentityProvider
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
CognitoSync
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📄
Command.php
3.07 KB
05/19/2025 10:07:20 AM
rw-r--r--
📄
CommandInterface.php
988 bytes
05/19/2025 10:07:20 AM
rw-r--r--
📄
CommandPool.php
5.38 KB
05/19/2025 10:07:21 AM
rw-r--r--
📁
Comprehend
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
ComprehendMedical
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
ComputeOptimizer
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
ConfigService
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Configuration
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📄
ConfigurationProviderInterface.php
259 bytes
05/19/2025 10:07:21 AM
rw-r--r--
📁
Connect
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
ConnectCampaignService
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
ConnectCases
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
ConnectContactLens
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
ConnectParticipant
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
ConnectWisdomService
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
ControlCatalog
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
ControlTower
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
CostExplorer
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
CostOptimizationHub
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
CostandUsageReportService
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
Credentials
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
Crypto
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
CustomerProfiles
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
DAX
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
DLM
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
DataExchange
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
DataPipeline
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
DataSync
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
DataZone
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
DatabaseMigrationService
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Deadline
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
DefaultsMode
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Detective
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
DevOpsGuru
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
DeviceFarm
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
DirectConnect
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
DirectoryService
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
DocDB
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
DocDBElastic
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📄
DoctrineCacheAdapter.php
1.02 KB
05/19/2025 10:07:20 AM
rw-r--r--
📁
DynamoDb
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
DynamoDbStreams
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
EBS
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
EC2InstanceConnect
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
ECRPublic
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
EKS
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
EKSAuth
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
EMRContainers
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
EMRServerless
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Ec2
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
Ecr
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Ecs
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
Efs
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
ElastiCache
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
ElasticBeanstalk
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
ElasticInference
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
ElasticLoadBalancing
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
ElasticLoadBalancingV2
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
ElasticTranscoder
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
ElasticsearchService
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Emr
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
Endpoint
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
EndpointDiscovery
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📄
EndpointParameterMiddleware.php
2.82 KB
05/19/2025 10:07:20 AM
rw-r--r--
📁
EndpointV2
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
EntityResolution
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
EventBridge
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Exception
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
FIS
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
FMS
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
FSx
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
FinSpaceData
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Firehose
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
ForecastQueryService
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
ForecastService
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
FraudDetector
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
FreeTier
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
GameLift
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
Glacier
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
GlobalAccelerator
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
Glue
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
GlueDataBrew
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
Greengrass
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
GreengrassV2
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
GroundStation
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
GuardDuty
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Handler
-
01/07/2025 12:10:31 PM
rwxr-xr-x
📄
HandlerList.php
13.69 KB
05/19/2025 10:07:20 AM
rw-r--r--
📄
HasDataTrait.php
1.54 KB
05/19/2025 10:07:20 AM
rw-r--r--
📄
HasMonitoringEventsTrait.php
908 bytes
05/19/2025 10:07:20 AM
rw-r--r--
📄
HashInterface.php
558 bytes
05/19/2025 10:07:20 AM
rw-r--r--
📄
HashingStream.php
1.61 KB
05/19/2025 10:07:20 AM
rw-r--r--
📁
Health
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
HealthLake
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📄
History.php
4.06 KB
05/19/2025 10:07:20 AM
rw-r--r--
📁
IVS
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
IVSRealTime
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Iam
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📄
IdempotencyTokenMiddleware.php
3.81 KB
05/19/2025 10:07:20 AM
rw-r--r--
📁
Identity
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
IdentityStore
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
ImportExport
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📄
InputValidationMiddleware.php
2.51 KB
05/19/2025 10:07:20 AM
rw-r--r--
📁
Inspector
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Inspector2
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
InspectorScan
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
InternetMonitor
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
IoT1ClickDevicesService
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
IoT1ClickProjects
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
IoTAnalytics
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
IoTDeviceAdvisor
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
IoTEvents
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
IoTEventsData
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
IoTFleetHub
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
IoTFleetWise
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
IoTJobsDataPlane
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
IoTSecureTunneling
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
IoTSiteWise
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
IoTThingsGraph
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
IoTTwinMaker
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
IoTWireless
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Iot
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
IotDataPlane
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📄
JsonCompiler.php
503 bytes
05/19/2025 10:07:20 AM
rw-r--r--
📁
Kafka
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
KafkaConnect
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
KendraRanking
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
Keyspaces
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Kinesis
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
KinesisAnalytics
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
KinesisAnalyticsV2
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
KinesisVideo
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
KinesisVideoArchivedMedia
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
KinesisVideoMedia
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
KinesisVideoSignalingChannels
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
KinesisVideoWebRTCStorage
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Kms
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
LakeFormation
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Lambda
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
LaunchWizard
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
LexModelBuildingService
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
LexModelsV2
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
LexRuntimeService
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
LexRuntimeV2
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
LicenseManager
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
LicenseManagerLinuxSubscriptions
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
LicenseManagerUserSubscriptions
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Lightsail
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
LocationService
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
LookoutEquipment
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
LookoutMetrics
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
LookoutforVision
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📄
LruArrayCache.php
2.3 KB
05/19/2025 10:07:20 AM
rw-r--r--
📁
MQ
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
MTurk
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
MWAA
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
MachineLearning
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Macie2
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
MailManager
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
MainframeModernization
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
ManagedBlockchain
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
ManagedBlockchainQuery
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
ManagedGrafana
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
MarketplaceAgreement
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
MarketplaceCatalog
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
MarketplaceCommerceAnalytics
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
MarketplaceDeployment
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
MarketplaceEntitlementService
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
MarketplaceMetering
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
MediaConnect
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
MediaConvert
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
MediaLive
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
MediaPackage
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
MediaPackageV2
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
MediaPackageVod
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
MediaStore
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
MediaStoreData
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
MediaTailor
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
MedicalImaging
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
MemoryDB
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📄
Middleware.php
16.05 KB
05/19/2025 10:07:20 AM
rw-r--r--
📁
MigrationHub
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
MigrationHubConfig
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
MigrationHubOrchestrator
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
MigrationHubRefactorSpaces
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
MigrationHubStrategyRecommendations
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📄
MockHandler.php
4.24 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
MonitoringEventsInterface.php
774 bytes
05/19/2025 10:07:20 AM
rw-r--r--
📄
MultiRegionClient.php
9.05 KB
05/19/2025 10:07:21 AM
rw-r--r--
📁
Multipart
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Neptune
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
NeptuneGraph
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
Neptunedata
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
NetworkFirewall
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
NetworkManager
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
NetworkMonitor
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
NimbleStudio
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
OAM
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
OSIS
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
Omics
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
OpenSearchServerless
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
OpenSearchService
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
OpsWorks
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
OpsWorksCM
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
Organizations
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
Outposts
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
PI
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Panorama
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
PaymentCryptography
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
PaymentCryptographyData
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
PcaConnectorAd
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
PcaConnectorScep
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
Personalize
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
PersonalizeEvents
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
PersonalizeRuntime
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📄
PhpHash.php
1.88 KB
05/19/2025 10:07:21 AM
rw-r--r--
📁
Pinpoint
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
PinpointEmail
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
PinpointSMSVoice
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
PinpointSMSVoiceV2
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Pipes
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Polly
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📄
PresignUrlMiddleware.php
4.66 KB
05/19/2025 10:07:20 AM
rw-r--r--
📁
Pricing
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
PrivateNetworks
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
PrometheusService
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Proton
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📄
Psr16CacheAdapter.php
602 bytes
05/19/2025 10:07:21 AM
rw-r--r--
📄
PsrCacheAdapter.php
780 bytes
05/19/2025 10:07:20 AM
rw-r--r--
📁
QApps
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
QBusiness
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
QConnect
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
QLDB
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
QLDBSession
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📄
QueryCompatibleInputMiddleware.php
6.04 KB
05/19/2025 10:07:20 AM
rw-r--r--
📁
QuickSight
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
RAM
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
RDSDataService
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
Rds
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
RecycleBin
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Redshift
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
RedshiftDataAPIService
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
RedshiftServerless
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Rekognition
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Repostspace
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📄
RequestCompressionMiddleware.php
4.97 KB
05/19/2025 10:07:21 AM
rw-r--r--
📁
ResilienceHub
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
ResourceExplorer2
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
ResourceGroups
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
ResourceGroupsTaggingAPI
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📄
ResponseContainerInterface.php
260 bytes
05/19/2025 10:07:21 AM
rw-r--r--
📄
Result.php
1.2 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
ResultInterface.php
1.39 KB
05/19/2025 10:07:20 AM
rw-r--r--
📄
ResultPaginator.php
6.06 KB
05/19/2025 10:07:20 AM
rw-r--r--
📁
Retry
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📄
RetryMiddleware.php
8.74 KB
05/19/2025 10:07:20 AM
rw-r--r--
📄
RetryMiddlewareV2.php
12.04 KB
05/19/2025 10:07:20 AM
rw-r--r--
📁
RoboMaker
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
RolesAnywhere
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Route53
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Route53Domains
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Route53Profiles
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
Route53RecoveryCluster
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Route53RecoveryControlConfig
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Route53RecoveryReadiness
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Route53Resolver
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
S3
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
S3Control
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
S3Outposts
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
SSMContacts
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
SSMIncidents
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
SSO
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
SSOAdmin
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
SSOOIDC
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
SageMaker
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
SageMakerFeatureStoreRuntime
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
SageMakerGeospatial
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
SageMakerMetrics
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
SageMakerRuntime
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
SagemakerEdgeManager
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
SavingsPlans
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
Scheduler
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
Schemas
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Script
-
01/07/2025 12:10:31 PM
rwxr-xr-x
📄
Sdk.php
67.46 KB
05/19/2025 10:07:20 AM
rw-r--r--
📁
SecretsManager
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
SecurityHub
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
SecurityLake
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
ServerlessApplicationRepository
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
ServiceCatalog
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
ServiceDiscovery
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
ServiceQuotas
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Ses
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
SesV2
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Sfn
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
Shield
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Signature
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
SimSpaceWeaver
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
Sms
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
SnowBall
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
SnowDeviceManagement
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Sns
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Sqs
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Ssm
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
SsmSap
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
StorageGateway
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📄
StreamRequestPayloadMiddleware.php
2.65 KB
05/19/2025 10:07:21 AM
rw-r--r--
📁
Sts
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
SupplyChain
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Support
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
SupportApp
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Swf
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Synthetics
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
TaxSettings
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Textract
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
TimestreamInfluxDB
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
TimestreamQuery
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
TimestreamWrite
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Tnb
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Token
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📄
TraceMiddleware.php
12.71 KB
05/19/2025 10:07:21 AM
rw-r--r--
📁
TranscribeService
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
Transfer
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Translate
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
TrustedAdvisor
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
VPCLattice
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
VerifiedPermissions
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
VoiceID
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
WAFV2
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
Waf
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
WafRegional
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📄
Waiter.php
8.68 KB
05/19/2025 10:07:20 AM
rw-r--r--
📁
WellArchitected
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
WorkDocs
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
WorkLink
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
WorkMail
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
WorkMailMessageFlow
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
WorkSpaces
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
WorkSpacesThinClient
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
WorkSpacesWeb
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📄
WrappedHttpHandler.php
7.2 KB
05/19/2025 10:07:20 AM
rw-r--r--
📁
XRay
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
data
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
drs
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
finspace
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📄
functions.php
15.8 KB
05/19/2025 10:07:20 AM
rw-r--r--
📁
imagebuilder
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
ivschat
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📁
kendra
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
mgn
-
05/19/2025 10:07:20 AM
rwxr-xr-x
📁
signer
-
05/19/2025 10:07:20 AM
rwxr-xr-x
Editing: Middleware.php
Close
<?php namespace Aws; use Aws\Api\Service; use Aws\Api\Validator; use Aws\Credentials\CredentialsInterface; use Aws\EndpointV2\EndpointProviderV2; use Aws\Exception\AwsException; use Aws\Signature\S3ExpressSignature; use Aws\Token\TokenAuthorization; use Aws\Token\TokenInterface; use GuzzleHttp\Promise; use GuzzleHttp\Psr7; use GuzzleHttp\Psr7\LazyOpenStream; use Psr\Http\Message\RequestInterface; final class Middleware { /** * Middleware used to allow a command parameter (e.g., "SourceFile") to * be used to specify the source of data for an upload operation. * * @param Service $api * @param string $bodyParameter * @param string $sourceParameter * * @return callable */ public static function sourceFile( Service $api, $bodyParameter = 'Body', $sourceParameter = 'SourceFile' ) { return function (callable $handler) use ( $api, $bodyParameter, $sourceParameter ) { return function ( CommandInterface $command, RequestInterface $request = null) use ( $handler, $api, $bodyParameter, $sourceParameter ) { $operation = $api->getOperation($command->getName()); $source = $command[$sourceParameter]; if ($source !== null && $operation->getInput()->hasMember($bodyParameter) ) { $command[$bodyParameter] = new LazyOpenStream($source, 'r'); unset($command[$sourceParameter]); } return $handler($command, $request); }; }; } /** * Adds a middleware that uses client-side validation. * * @param Service $api API being accessed. * * @return callable */ public static function validation(Service $api, Validator $validator = null) { $validator = $validator ?: new Validator(); return function (callable $handler) use ($api, $validator) { return function ( CommandInterface $command, RequestInterface $request = null ) use ($api, $validator, $handler) { if ($api->isModifiedModel()) { $api = new Service( $api->getDefinition(), $api->getProvider() ); } $operation = $api->getOperation($command->getName()); $validator->validate( $command->getName(), $operation->getInput(), $command->toArray() ); return $handler($command, $request); }; }; } /** * Builds an HTTP request for a command. * * @param callable $serializer Function used to serialize a request for a * command. * @param EndpointProviderV2 | null $endpointProvider * @param array $providerArgs * @return callable */ public static function requestBuilder($serializer) { return function (callable $handler) use ($serializer) { return function (CommandInterface $command, $endpoint = null) use ($serializer, $handler) { return $handler($command, $serializer($command, $endpoint)); }; }; } /** * Creates a middleware that signs requests for a command. * * @param callable $credProvider Credentials provider function that * returns a promise that is resolved * with a CredentialsInterface object. * @param callable $signatureFunction Function that accepts a Command * object and returns a * SignatureInterface. * * @return callable */ public static function signer(callable $credProvider, callable $signatureFunction, $tokenProvider = null, $config = []) { return function (callable $handler) use ($signatureFunction, $credProvider, $tokenProvider, $config) { return function ( CommandInterface $command, RequestInterface $request ) use ($handler, $signatureFunction, $credProvider, $tokenProvider, $config) { $signer = $signatureFunction($command); if ($signer instanceof TokenAuthorization) { return $tokenProvider()->then( function (TokenInterface $token) use ($handler, $command, $signer, $request) { return $handler( $command, $signer->authorizeRequest($request, $token) ); } ); } if ($signer instanceof S3ExpressSignature) { $credentialPromise = $config['s3_express_identity_provider']($command); } else { $credentialPromise = $credProvider(); } return $credentialPromise->then( function (CredentialsInterface $creds) use ($handler, $command, $signer, $request) { return $handler( $command, $signer->signRequest($request, $creds) ); } ); }; }; } /** * 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. * * @param callable $fn Tap function * * @return callable */ public static function tap(callable $fn) { return function (callable $handler) use ($fn) { return function ( CommandInterface $command, RequestInterface $request = null ) use ($handler, $fn) { $fn($command, $request); return $handler($command, $request); }; }; } /** * 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. * * @param callable $decider Function that accepts the number of retries, * a request, [result], and [exception] and * returns true if the command is to be retried. * @param callable $delay Function that accepts the number of retries and * returns the number of milliseconds to delay. * @param bool $stats Whether to collect statistics on retries and the * associated delay. * * @return callable */ public static function retry( callable $decider = null, callable $delay = null, $stats = false ) { $decider = $decider ?: RetryMiddleware::createDefaultDecider(); $delay = $delay ?: [RetryMiddleware::class, 'exponentialDelay']; return function (callable $handler) use ($decider, $delay, $stats) { return new RetryMiddleware($decider, $delay, $handler, $stats); }; } /** * 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. * * @return callable */ public static function invocationId() { return function (callable $handler) { return function ( CommandInterface $command, RequestInterface $request ) use ($handler){ return $handler($command, $request->withHeader( 'aws-sdk-invocation-id', md5(uniqid(gethostname(), true)) )); }; }; } /** * 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. * * @param array $operations Operations that Content-Type should be added to. * * @return callable */ public static function contentType(array $operations) { return function (callable $handler) use ($operations) { return function ( CommandInterface $command, RequestInterface $request = null ) use ($handler, $operations) { if (!$request->hasHeader('Content-Type') && in_array($command->getName(), $operations, true) && ($uri = $request->getBody()->getMetadata('uri')) ) { $request = $request->withHeader( 'Content-Type', Psr7\MimeType::fromFilename($uri) ?: 'application/octet-stream' ); } return $handler($command, $request); }; }; } /** * 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. * * @return callable */ public static function recursionDetection() { return function (callable $handler) { return function ( CommandInterface $command, RequestInterface $request ) use ($handler){ $isLambda = getenv('AWS_LAMBDA_FUNCTION_NAME'); $traceId = str_replace('\e', '\x1b', getenv('_X_AMZN_TRACE_ID')); if ($isLambda && $traceId) { if (!$request->hasHeader('X-Amzn-Trace-Id')) { $ignoreChars = ['=', ';', ':', '+', '&', '[', ']', '{', '}', '"', '\'', ',']; $traceIdEncoded = rawurlencode(stripcslashes($traceId)); foreach($ignoreChars as $char) { $encodedChar = rawurlencode($char); $traceIdEncoded = str_replace($encodedChar, $char, $traceIdEncoded); } return $handler($command, $request->withHeader( 'X-Amzn-Trace-Id', $traceIdEncoded )); } } return $handler($command, $request); }; }; } /** * Tracks command and request history using a history container. * * This is useful for testing. * * @param History $history History container to store entries. * * @return callable */ public static function history(History $history) { return function (callable $handler) use ($history) { return function ( CommandInterface $command, RequestInterface $request = null ) use ($handler, $history) { $ticket = $history->start($command, $request); return $handler($command, $request) ->then( function ($result) use ($history, $ticket) { $history->finish($ticket, $result); return $result; }, function ($reason) use ($history, $ticket) { $history->finish($ticket, $reason); return Promise\Create::rejectionFor($reason); } ); }; }; } /** * Creates a middleware that applies a map function to requests as they * pass through the middleware. * * @param callable $f Map function that accepts a RequestInterface and * returns a RequestInterface. * * @return callable */ public static function mapRequest(callable $f) { return function (callable $handler) use ($f) { return function ( CommandInterface $command, RequestInterface $request = null ) use ($handler, $f) { return $handler($command, $f($request)); }; }; } /** * Creates a middleware that applies a map function to commands as they * pass through the middleware. * * @param callable $f Map function that accepts a command and returns a * command. * * @return callable */ public static function mapCommand(callable $f) { return function (callable $handler) use ($f) { return function ( CommandInterface $command, RequestInterface $request = null ) use ($handler, $f) { return $handler($f($command), $request); }; }; } /** * Creates a middleware that applies a map function to results. * * @param callable $f Map function that accepts an Aws\ResultInterface and * returns an Aws\ResultInterface. * * @return callable */ public static function mapResult(callable $f) { return function (callable $handler) use ($f) { return function ( CommandInterface $command, RequestInterface $request = null ) use ($handler, $f) { return $handler($command, $request)->then($f); }; }; } public static function timer() { return function (callable $handler) { return function ( CommandInterface $command, RequestInterface $request = null ) use ($handler) { $start = microtime(true); return $handler($command, $request) ->then( function (ResultInterface $res) use ($start) { if (!isset($res['@metadata'])) { $res['@metadata'] = []; } if (!isset($res['@metadata']['transferStats'])) { $res['@metadata']['transferStats'] = []; } $res['@metadata']['transferStats']['total_time'] = microtime(true) - $start; return $res; }, function ($err) use ($start) { if ($err instanceof AwsException) { $err->setTransferInfo([ 'total_time' => microtime(true) - $start, ] + $err->getTransferInfo()); } return Promise\Create::rejectionFor($err); } ); }; }; } }