OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
reader
/
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:15 AM
rwxr-xr-x
📁
ACMPCA
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ARCZonalShift
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📄
AbstractConfigurationProvider.php
4.62 KB
05/19/2025 10:07:14 AM
rw-r--r--
📁
AccessAnalyzer
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Account
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Acm
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Amplify
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
AmplifyBackend
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
AmplifyUIBuilder
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Api
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ApiGateway
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ApiGatewayManagementApi
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ApiGatewayV2
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
AppConfig
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
AppConfigData
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
AppFabric
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
AppIntegrationsService
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
AppMesh
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
AppRegistry
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
AppRunner
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
AppSync
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
AppTest
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Appflow
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ApplicationAutoScaling
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ApplicationCostProfiler
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ApplicationDiscoveryService
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ApplicationInsights
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ApplicationSignals
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Appstream
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Arn
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Artifact
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Athena
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
AuditManager
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
AugmentedAIRuntime
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Auth
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
AutoScaling
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
AutoScalingPlans
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📄
AwsClient.php
27.86 KB
05/19/2025 10:07:14 AM
rw-r--r--
📄
AwsClientInterface.php
5.56 KB
05/19/2025 10:07:14 AM
rw-r--r--
📄
AwsClientTrait.php
2.77 KB
05/19/2025 10:07:14 AM
rw-r--r--
📁
B2bi
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
BCMDataExports
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Backup
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
BackupGateway
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Batch
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Bedrock
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
BedrockAgent
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
BedrockAgentRuntime
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
BedrockRuntime
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
BillingConductor
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Braket
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Budgets
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📄
CacheInterface.php
789 bytes
05/19/2025 10:07:14 AM
rw-r--r--
📁
Chatbot
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Chime
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ChimeSDKIdentity
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ChimeSDKMediaPipelines
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ChimeSDKMeetings
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ChimeSDKMessaging
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ChimeSDKVoice
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CleanRooms
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CleanRoomsML
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📄
ClientResolver.php
56.41 KB
05/19/2025 10:07:14 AM
rw-r--r--
📁
ClientSideMonitoring
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Cloud9
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CloudControlApi
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CloudDirectory
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CloudFormation
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CloudFront
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CloudFrontKeyValueStore
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CloudHSMV2
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CloudHsm
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CloudSearch
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CloudSearchDomain
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CloudTrail
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CloudTrailData
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CloudWatch
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CloudWatchEvents
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CloudWatchEvidently
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CloudWatchLogs
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CloudWatchRUM
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CodeArtifact
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CodeBuild
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CodeCatalyst
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CodeCommit
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CodeConnections
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CodeDeploy
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CodeGuruProfiler
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CodeGuruReviewer
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CodeGuruSecurity
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CodePipeline
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CodeStar
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CodeStarNotifications
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CodeStarconnections
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CognitoIdentity
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CognitoIdentityProvider
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CognitoSync
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📄
Command.php
3.07 KB
05/19/2025 10:07:14 AM
rw-r--r--
📄
CommandInterface.php
988 bytes
05/19/2025 10:07:14 AM
rw-r--r--
📄
CommandPool.php
5.38 KB
05/19/2025 10:07:14 AM
rw-r--r--
📁
Comprehend
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ComprehendMedical
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ComputeOptimizer
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ConfigService
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Configuration
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📄
ConfigurationProviderInterface.php
259 bytes
05/19/2025 10:07:14 AM
rw-r--r--
📁
Connect
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ConnectCampaignService
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ConnectCases
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ConnectContactLens
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ConnectParticipant
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ConnectWisdomService
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ControlCatalog
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ControlTower
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CostExplorer
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CostOptimizationHub
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CostandUsageReportService
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Credentials
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Crypto
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
CustomerProfiles
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
DAX
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
DLM
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
DataExchange
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
DataPipeline
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
DataSync
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
DataZone
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
DatabaseMigrationService
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Deadline
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
DefaultsMode
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Detective
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
DevOpsGuru
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
DeviceFarm
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
DirectConnect
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
DirectoryService
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
DocDB
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
DocDBElastic
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📄
DoctrineCacheAdapter.php
1.02 KB
05/19/2025 10:07:14 AM
rw-r--r--
📁
DynamoDb
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
DynamoDbStreams
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
EBS
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
EC2InstanceConnect
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ECRPublic
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
EKS
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
EKSAuth
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
EMRContainers
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
EMRServerless
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Ec2
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Ecr
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Ecs
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Efs
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ElastiCache
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ElasticBeanstalk
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ElasticInference
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ElasticLoadBalancing
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ElasticLoadBalancingV2
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ElasticTranscoder
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ElasticsearchService
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Emr
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Endpoint
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
EndpointDiscovery
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📄
EndpointParameterMiddleware.php
2.82 KB
05/19/2025 10:07:14 AM
rw-r--r--
📁
EndpointV2
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
EntityResolution
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
EventBridge
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Exception
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
FIS
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
FMS
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
FSx
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
FinSpaceData
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Firehose
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ForecastQueryService
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ForecastService
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
FraudDetector
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
FreeTier
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
GameLift
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Glacier
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
GlobalAccelerator
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Glue
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
GlueDataBrew
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Greengrass
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
GreengrassV2
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
GroundStation
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
GuardDuty
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Handler
-
03/03/2025 08:45:05 AM
rwxr-xr-x
📄
HandlerList.php
13.69 KB
05/19/2025 10:07:14 AM
rw-r--r--
📄
HasDataTrait.php
1.54 KB
05/19/2025 10:07:14 AM
rw-r--r--
📄
HasMonitoringEventsTrait.php
908 bytes
05/19/2025 10:07:14 AM
rw-r--r--
📄
HashInterface.php
558 bytes
05/19/2025 10:07:14 AM
rw-r--r--
📄
HashingStream.php
1.61 KB
05/19/2025 10:07:14 AM
rw-r--r--
📁
Health
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
HealthLake
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📄
History.php
4.06 KB
05/19/2025 10:07:14 AM
rw-r--r--
📁
IVS
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
IVSRealTime
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Iam
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📄
IdempotencyTokenMiddleware.php
3.81 KB
05/19/2025 10:07:14 AM
rw-r--r--
📁
Identity
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
IdentityStore
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ImportExport
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📄
InputValidationMiddleware.php
2.51 KB
05/19/2025 10:07:14 AM
rw-r--r--
📁
Inspector
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Inspector2
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
InspectorScan
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
InternetMonitor
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
IoT1ClickDevicesService
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
IoT1ClickProjects
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
IoTAnalytics
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
IoTDeviceAdvisor
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
IoTEvents
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
IoTEventsData
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
IoTFleetHub
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
IoTFleetWise
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
IoTJobsDataPlane
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
IoTSecureTunneling
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
IoTSiteWise
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
IoTThingsGraph
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
IoTTwinMaker
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
IoTWireless
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Iot
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
IotDataPlane
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📄
JsonCompiler.php
503 bytes
05/19/2025 10:07:14 AM
rw-r--r--
📁
Kafka
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
KafkaConnect
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
KendraRanking
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Keyspaces
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Kinesis
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
KinesisAnalytics
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
KinesisAnalyticsV2
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
KinesisVideo
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
KinesisVideoArchivedMedia
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
KinesisVideoMedia
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
KinesisVideoSignalingChannels
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
KinesisVideoWebRTCStorage
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Kms
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
LakeFormation
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Lambda
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
LaunchWizard
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
LexModelBuildingService
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
LexModelsV2
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
LexRuntimeService
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
LexRuntimeV2
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
LicenseManager
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
LicenseManagerLinuxSubscriptions
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
LicenseManagerUserSubscriptions
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Lightsail
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
LocationService
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
LookoutEquipment
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
LookoutMetrics
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
LookoutforVision
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📄
LruArrayCache.php
2.3 KB
05/19/2025 10:07:14 AM
rw-r--r--
📁
MQ
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
MTurk
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
MWAA
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
MachineLearning
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Macie2
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
MailManager
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
MainframeModernization
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ManagedBlockchain
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ManagedBlockchainQuery
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ManagedGrafana
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
MarketplaceAgreement
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
MarketplaceCatalog
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
MarketplaceCommerceAnalytics
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
MarketplaceDeployment
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
MarketplaceEntitlementService
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
MarketplaceMetering
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
MediaConnect
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
MediaConvert
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
MediaLive
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
MediaPackage
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
MediaPackageV2
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
MediaPackageVod
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
MediaStore
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
MediaStoreData
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
MediaTailor
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
MedicalImaging
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
MemoryDB
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📄
Middleware.php
16.05 KB
05/19/2025 10:07:14 AM
rw-r--r--
📁
MigrationHub
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
MigrationHubConfig
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
MigrationHubOrchestrator
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
MigrationHubRefactorSpaces
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
MigrationHubStrategyRecommendations
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📄
MockHandler.php
4.24 KB
05/19/2025 10:07:14 AM
rw-r--r--
📄
MonitoringEventsInterface.php
774 bytes
05/19/2025 10:07:14 AM
rw-r--r--
📄
MultiRegionClient.php
9.05 KB
05/19/2025 10:07:14 AM
rw-r--r--
📁
Multipart
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Neptune
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
NeptuneGraph
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Neptunedata
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
NetworkFirewall
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
NetworkManager
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
NetworkMonitor
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
NimbleStudio
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
OAM
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
OSIS
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Omics
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
OpenSearchServerless
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
OpenSearchService
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
OpsWorks
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
OpsWorksCM
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Organizations
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Outposts
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
PI
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Panorama
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
PaymentCryptography
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
PaymentCryptographyData
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
PcaConnectorAd
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
PcaConnectorScep
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Personalize
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
PersonalizeEvents
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
PersonalizeRuntime
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📄
PhpHash.php
1.88 KB
05/19/2025 10:07:14 AM
rw-r--r--
📁
Pinpoint
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
PinpointEmail
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
PinpointSMSVoice
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
PinpointSMSVoiceV2
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Pipes
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Polly
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📄
PresignUrlMiddleware.php
4.66 KB
05/19/2025 10:07:14 AM
rw-r--r--
📁
Pricing
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
PrivateNetworks
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
PrometheusService
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Proton
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📄
Psr16CacheAdapter.php
602 bytes
05/19/2025 10:07:14 AM
rw-r--r--
📄
PsrCacheAdapter.php
780 bytes
05/19/2025 10:07:14 AM
rw-r--r--
📁
QApps
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
QBusiness
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
QConnect
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
QLDB
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
QLDBSession
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📄
QueryCompatibleInputMiddleware.php
6.04 KB
05/19/2025 10:07:14 AM
rw-r--r--
📁
QuickSight
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
RAM
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
RDSDataService
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Rds
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
RecycleBin
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Redshift
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
RedshiftDataAPIService
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
RedshiftServerless
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Rekognition
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Repostspace
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📄
RequestCompressionMiddleware.php
4.97 KB
05/19/2025 10:07:14 AM
rw-r--r--
📁
ResilienceHub
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ResourceExplorer2
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ResourceGroups
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ResourceGroupsTaggingAPI
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📄
ResponseContainerInterface.php
260 bytes
05/19/2025 10:07:14 AM
rw-r--r--
📄
Result.php
1.2 KB
05/19/2025 10:07:14 AM
rw-r--r--
📄
ResultInterface.php
1.39 KB
05/19/2025 10:07:14 AM
rw-r--r--
📄
ResultPaginator.php
6.06 KB
05/19/2025 10:07:14 AM
rw-r--r--
📁
Retry
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📄
RetryMiddleware.php
8.74 KB
05/19/2025 10:07:14 AM
rw-r--r--
📄
RetryMiddlewareV2.php
12.04 KB
05/19/2025 10:07:14 AM
rw-r--r--
📁
RoboMaker
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
RolesAnywhere
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Route53
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Route53Domains
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Route53Profiles
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Route53RecoveryCluster
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Route53RecoveryControlConfig
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Route53RecoveryReadiness
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Route53Resolver
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
S3
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
S3Control
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
S3Outposts
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
SSMContacts
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
SSMIncidents
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
SSO
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
SSOAdmin
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
SSOOIDC
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
SageMaker
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
SageMakerFeatureStoreRuntime
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
SageMakerGeospatial
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
SageMakerMetrics
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
SageMakerRuntime
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
SagemakerEdgeManager
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
SavingsPlans
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Scheduler
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Schemas
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Script
-
03/03/2025 08:45:19 AM
rwxr-xr-x
📄
Sdk.php
67.46 KB
05/19/2025 10:07:14 AM
rw-r--r--
📁
SecretsManager
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
SecurityHub
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
SecurityLake
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ServerlessApplicationRepository
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ServiceCatalog
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ServiceDiscovery
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ServiceQuotas
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Ses
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
SesV2
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Sfn
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Shield
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Signature
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
SimSpaceWeaver
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Sms
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
SnowBall
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
SnowDeviceManagement
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Sns
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Sqs
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Ssm
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
SsmSap
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
StorageGateway
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📄
StreamRequestPayloadMiddleware.php
2.65 KB
05/19/2025 10:07:14 AM
rw-r--r--
📁
Sts
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
SupplyChain
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Support
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
SupportApp
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Swf
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Synthetics
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
TaxSettings
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Textract
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
TimestreamInfluxDB
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
TimestreamQuery
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
TimestreamWrite
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Tnb
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Token
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📄
TraceMiddleware.php
12.71 KB
05/19/2025 10:07:14 AM
rw-r--r--
📁
TranscribeService
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Transfer
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Translate
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
TrustedAdvisor
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
VPCLattice
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
VerifiedPermissions
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
VoiceID
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
WAFV2
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
Waf
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
WafRegional
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📄
Waiter.php
8.68 KB
05/19/2025 10:07:14 AM
rw-r--r--
📁
WellArchitected
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
WorkDocs
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
WorkLink
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
WorkMail
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
WorkMailMessageFlow
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
WorkSpaces
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
WorkSpacesThinClient
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
WorkSpacesWeb
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📄
WrappedHttpHandler.php
7.2 KB
05/19/2025 10:07:14 AM
rw-r--r--
📁
XRay
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
data
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
drs
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
finspace
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📄
functions.php
15.8 KB
05/19/2025 10:07:14 AM
rw-r--r--
📁
imagebuilder
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
ivschat
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
kendra
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
mgn
-
05/19/2025 10:07:14 AM
rwxr-xr-x
📁
signer
-
05/19/2025 10:07:14 AM
rwxr-xr-x
Editing: functions.php
Close
<?php namespace Aws; use GuzzleHttp\Client; use Psr\Http\Message\RequestInterface; use GuzzleHttp\ClientInterface; use GuzzleHttp\Promise\FulfilledPromise; //----------------------------------------------------------------------------- // Functional functions //----------------------------------------------------------------------------- /** * Returns a function that always returns the same value; * * @param mixed $value Value to return. * * @return callable */ function constantly($value) { return function () use ($value) { return $value; }; } /** * Filters values that do not satisfy the predicate function $pred. * * @param mixed $iterable Iterable sequence of data. * @param callable $pred Function that accepts a value and returns true/false * * @return \Generator */ function filter($iterable, callable $pred) { foreach ($iterable as $value) { if ($pred($value)) { yield $value; } } } /** * Applies a map function $f to each value in a collection. * * @param mixed $iterable Iterable sequence of data. * @param callable $f Map function to apply. * * @return \Generator */ function map($iterable, callable $f) { foreach ($iterable as $value) { yield $f($value); } } /** * Creates a generator that iterates over a sequence, then iterates over each * value in the sequence and yields the application of the map function to each * value. * * @param mixed $iterable Iterable sequence of data. * @param callable $f Map function to apply. * * @return \Generator */ function flatmap($iterable, callable $f) { foreach (map($iterable, $f) as $outer) { foreach ($outer as $inner) { yield $inner; } } } /** * Partitions the input sequence into partitions of the specified size. * * @param mixed $iterable Iterable sequence of data. * @param int $size Size to make each partition (except possibly the last chunk) * * @return \Generator */ function partition($iterable, $size) { $buffer = []; foreach ($iterable as $value) { $buffer[] = $value; if (count($buffer) === $size) { yield $buffer; $buffer = []; } } if ($buffer) { yield $buffer; } } /** * Returns a function that invokes the provided variadic functions one * after the other until one of the functions returns a non-null value. * The return function will call each passed function with any arguments it * is provided. * * $a = function ($x, $y) { return null; }; * $b = function ($x, $y) { return $x + $y; }; * $fn = \Aws\or_chain($a, $b); * echo $fn(1, 2); // 3 * * @return callable */ function or_chain() { $fns = func_get_args(); return function () use ($fns) { $args = func_get_args(); foreach ($fns as $fn) { $result = $args ? call_user_func_array($fn, $args) : $fn(); if ($result) { return $result; } } return null; }; } //----------------------------------------------------------------------------- // JSON compiler and loading functions //----------------------------------------------------------------------------- /** * Loads a compiled JSON file from a PHP file. * * If the JSON file has not been cached to disk as a PHP file, it will be loaded * from the JSON source file and returned. * * @param string $path Path to the JSON file on disk * * @return mixed Returns the JSON decoded data. Note that JSON objects are * decoded as associative arrays. */ function load_compiled_json($path) { static $compiledList = []; $compiledFilepath = "{$path}.php"; if (!isset($compiledList[$compiledFilepath])) { if (is_readable($compiledFilepath)) { $compiledList[$compiledFilepath] = include($compiledFilepath); } } if (isset($compiledList[$compiledFilepath])) { return $compiledList[$compiledFilepath]; } if (!file_exists($path)) { throw new \InvalidArgumentException( sprintf("File not found: %s", $path) ); } return json_decode(file_get_contents($path), true); } /** * No-op */ function clear_compiled_json() { // pass } //----------------------------------------------------------------------------- // Directory iterator functions. //----------------------------------------------------------------------------- /** * Iterates over the files in a directory and works with custom wrappers. * * @param string $path Path to open (e.g., "s3://foo/bar"). * @param resource $context Stream wrapper context. * * @return \Generator Yields relative filename strings. */ function dir_iterator($path, $context = null) { $dh = $context ? opendir($path, $context) : opendir($path); if (!$dh) { throw new \InvalidArgumentException('File not found: ' . $path); } while (($file = readdir($dh)) !== false) { yield $file; } closedir($dh); } /** * Returns a recursive directory iterator that yields absolute filenames. * * This iterator is not broken like PHP's built-in DirectoryIterator (which * will read the first file from a stream wrapper, then rewind, then read * it again). * * @param string $path Path to traverse (e.g., s3://bucket/key, /tmp) * @param resource $context Stream context options. * * @return \Generator Yields absolute filenames. */ function recursive_dir_iterator($path, $context = null) { $invalid = ['.' => true, '..' => true]; $pathLen = strlen($path) + 1; $iterator = dir_iterator($path, $context); $queue = []; do { while ($iterator->valid()) { $file = $iterator->current(); $iterator->next(); if (isset($invalid[basename($file)])) { continue; } $fullPath = "{$path}/{$file}"; yield $fullPath; if (is_dir($fullPath)) { $queue[] = $iterator; $iterator = map( dir_iterator($fullPath, $context), function ($file) use ($fullPath, $pathLen) { return substr("{$fullPath}/{$file}", $pathLen); } ); continue; } } $iterator = array_pop($queue); } while ($iterator); } //----------------------------------------------------------------------------- // Misc. functions. //----------------------------------------------------------------------------- /** * Debug function used to describe the provided value type and class. * * @param mixed $input * * @return string Returns a string containing the type of the variable and * if a class is provided, the class name. */ function describe_type($input) { switch (gettype($input)) { case 'object': return 'object(' . get_class($input) . ')'; case 'array': return 'array(' . count($input) . ')'; default: ob_start(); var_dump($input); // normalize float vs double return str_replace('double(', 'float(', rtrim(ob_get_clean())); } } /** * Creates a default HTTP handler based on the available clients. * * @return callable */ function default_http_handler() { $version = guzzle_major_version(); // If Guzzle 6 or 7 installed if ($version === 6 || $version === 7) { return new \Aws\Handler\GuzzleV6\GuzzleHandler(); } // If Guzzle 5 installed if ($version === 5) { return new \Aws\Handler\GuzzleV5\GuzzleHandler(); } throw new \RuntimeException('Unknown Guzzle version: ' . $version); } /** * Gets the default user agent string depending on the Guzzle version * * @return string */ function default_user_agent() { $version = guzzle_major_version(); // If Guzzle 6 or 7 installed if ($version === 6 || $version === 7) { return \GuzzleHttp\default_user_agent(); } // If Guzzle 5 installed if ($version === 5) { return \GuzzleHttp\Client::getDefaultUserAgent(); } throw new \RuntimeException('Unknown Guzzle version: ' . $version); } /** * Get the major version of guzzle that is installed. * * @internal This function is internal and should not be used outside aws/aws-sdk-php. * @return int * @throws \RuntimeException */ function guzzle_major_version() { static $cache = null; if (null !== $cache) { return $cache; } if (defined('\GuzzleHttp\ClientInterface::VERSION')) { $version = (string) ClientInterface::VERSION; if ($version[0] === '6') { return $cache = 6; } if ($version[0] === '5') { return $cache = 5; } } elseif (defined('\GuzzleHttp\ClientInterface::MAJOR_VERSION')) { return $cache = ClientInterface::MAJOR_VERSION; } throw new \RuntimeException('Unable to determine what Guzzle version is installed.'); } /** * Serialize a request for a command but do not send it. * * Returns a promise that is fulfilled with the serialized request. * * @param CommandInterface $command Command to serialize. * * @return RequestInterface * @throws \RuntimeException */ function serialize(CommandInterface $command) { $request = null; $handlerList = $command->getHandlerList(); // Return a mock result. $handlerList->setHandler( function (CommandInterface $_, RequestInterface $r) use (&$request) { $request = $r; return new FulfilledPromise(new Result([])); } ); call_user_func($handlerList->resolve(), $command)->wait(); if (!$request instanceof RequestInterface) { throw new \RuntimeException( 'Calling handler did not serialize request' ); } return $request; } /** * Retrieves data for a service from the SDK's service manifest file. * * Manifest data is stored statically, so it does not need to be loaded more * than once per process. The JSON data is also cached in opcache. * * @param string $service Case-insensitive namespace or endpoint prefix of the * service for which you are retrieving manifest data. * * @return array * @throws \InvalidArgumentException if the service is not supported. */ function manifest($service = null) { // Load the manifest and create aliases for lowercased namespaces static $manifest = []; static $aliases = []; if (empty($manifest)) { $manifest = load_compiled_json(__DIR__ . '/data/manifest.json'); foreach ($manifest as $endpoint => $info) { $alias = strtolower($info['namespace']); if ($alias !== $endpoint) { $aliases[$alias] = $endpoint; } } } // If no service specified, then return the whole manifest. if ($service === null) { return $manifest; } // Look up the service's info in the manifest data. $service = strtolower($service); if (isset($manifest[$service])) { return $manifest[$service] + ['endpoint' => $service]; } if (isset($aliases[$service])) { return manifest($aliases[$service]); } throw new \InvalidArgumentException( "The service \"{$service}\" is not provided by the AWS SDK for PHP." ); } /** * Checks if supplied parameter is a valid hostname * * @param string $hostname * @return bool */ function is_valid_hostname($hostname) { return ( preg_match("/^([a-z\d](-*[a-z\d])*)(\.([a-z\d](-*[a-z\d])*))*\.?$/i", $hostname) && preg_match("/^.{1,253}$/", $hostname) && preg_match("/^[^\.]{1,63}(\.[^\.]{0,63})*$/", $hostname) ); } /** * Checks if supplied parameter is a valid host label * * @param $label * @return bool */ function is_valid_hostlabel($label) { return preg_match("/^(?!-)[a-zA-Z0-9-]{1,63}(?<!-)$/", $label); } /** * Ignores '#' full line comments, which parse_ini_file no longer does * in PHP 7+. * * @param $filename * @param bool $process_sections * @param int $scanner_mode * @return array|bool */ function parse_ini_file( $filename, $process_sections = false, $scanner_mode = INI_SCANNER_NORMAL) { return parse_ini_string( preg_replace('/^#.*\\n/m', "", file_get_contents($filename)), $process_sections, $scanner_mode ); } /** * Outputs boolean value of input for a select range of possible values, * null otherwise * * @param $input * @return bool|null */ function boolean_value($input) { if (is_bool($input)) { return $input; } if ($input === 0) { return false; } if ($input === 1) { return true; } if (is_string($input)) { switch (strtolower($input)) { case "true": case "on": case "1": return true; break; case "false": case "off": case "0": return false; break; } } return null; } /** * Parses ini sections with subsections (i.e. the service section) * * @param $filename * @param $filename * @return array */ function parse_ini_section_with_subsections($filename, $section_name) { $config = []; $stream = fopen($filename, 'r'); if (!$stream) { return $config; } $current_subsection = ''; while (!feof($stream)) { $line = trim(fgets($stream)); if (empty($line) || in_array($line[0], [';', '#'])) { continue; } if (preg_match('/^\[.*\]$/', $line) && trim($line, '[]') === $section_name) { while (!feof($stream)) { $line = trim(fgets($stream)); if (empty($line) || in_array($line[0], [';', '#'])) { continue; } if (preg_match('/^\[.*\]$/', $line) && trim($line, '[]') === $section_name) { continue; } elseif (strpos($line, '[') === 0) { break; } if (strpos($line, ' = ') !== false) { list($key, $value) = explode(' = ', $line, 2); if (empty($current_subsection)) { $config[$key] = $value; } else { $config[$current_subsection][$key] = $value; } } else { $current_subsection = trim(str_replace('=', '', $line)); $config[$current_subsection] = []; } } } } fclose($stream); return $config; } /** * Checks if an input is a valid epoch time * * @param $input * @return bool */ function is_valid_epoch($input) { if (is_string($input) || is_numeric($input)) { if (is_string($input) && !preg_match("/^-?[0-9]+\.?[0-9]*$/", $input)) { return false; } return true; } return false; } /** * Checks if an input is a fips pseudo region * * @param $region * @return bool */ function is_fips_pseudo_region($region) { return strpos($region, 'fips-') !== false || strpos($region, '-fips') !== false; } /** * Returns a region without a fips label * * @param $region * @return string */ function strip_fips_pseudo_regions($region) { return str_replace(['fips-', '-fips'], ['', ''], $region); }