/
home
/
techb158
/
immovalet.com
/
vendor
/
aws
/
aws-sdk-php
/
src
/
/home/techb158/immovalet.com/vendor/aws/aws-sdk-php/src
mkdir
upload
Name
Size
Mode
Actions
AccessAnalyzer/
-
0755
rm
Acm/
-
0755
rm
ACMPCA/
-
0755
rm
AlexaForBusiness/
-
0755
rm
Amplify/
-
0755
rm
AmplifyBackend/
-
0755
rm
Api/
-
0755
rm
ApiGateway/
-
0755
rm
ApiGatewayManagementApi/
-
0755
rm
ApiGatewayV2/
-
0755
rm
AppConfig/
-
0755
rm
Appflow/
-
0755
rm
AppIntegrationsService/
-
0755
rm
ApplicationAutoScaling/
-
0755
rm
ApplicationCostProfiler/
-
0755
rm
ApplicationDiscoveryService/
-
0755
rm
ApplicationInsights/
-
0755
rm
AppMesh/
-
0755
rm
AppRegistry/
-
0755
rm
AppRunner/
-
0755
rm
Appstream/
-
0755
rm
AppSync/
-
0755
rm
Arn/
-
0755
rm
Athena/
-
0755
rm
AuditManager/
-
0755
rm
AugmentedAIRuntime/
-
0755
rm
AutoScaling/
-
0755
rm
AutoScalingPlans/
-
0755
rm
Backup/
-
0755
rm
Batch/
-
0755
rm
Braket/
-
0755
rm
Budgets/
-
0755
rm
Chime/
-
0755
rm
ClientSideMonitoring/
-
0755
rm
Cloud9/
-
0755
rm
CloudDirectory/
-
0755
rm
CloudFormation/
-
0755
rm
CloudFront/
-
0755
rm
CloudHsm/
-
0755
rm
CloudHSMV2/
-
0755
rm
CloudSearch/
-
0755
rm
CloudSearchDomain/
-
0755
rm
CloudTrail/
-
0755
rm
CloudWatch/
-
0755
rm
CloudWatchEvents/
-
0755
rm
CloudWatchLogs/
-
0755
rm
CodeArtifact/
-
0755
rm
CodeBuild/
-
0755
rm
CodeCommit/
-
0755
rm
CodeDeploy/
-
0755
rm
CodeGuruProfiler/
-
0755
rm
CodeGuruReviewer/
-
0755
rm
CodePipeline/
-
0755
rm
CodeStar/
-
0755
rm
CodeStarconnections/
-
0755
rm
CodeStarNotifications/
-
0755
rm
CognitoIdentity/
-
0755
rm
CognitoIdentityProvider/
-
0755
rm
CognitoSync/
-
0755
rm
Comprehend/
-
0755
rm
ComprehendMedical/
-
0755
rm
ComputeOptimizer/
-
0755
rm
ConfigService/
-
0755
rm
Connect/
-
0755
rm
ConnectContactLens/
-
0755
rm
ConnectParticipant/
-
0755
rm
CostandUsageReportService/
-
0755
rm
CostExplorer/
-
0755
rm
Credentials/
-
0755
rm
Crypto/
-
0755
rm
CustomerProfiles/
-
0755
rm
data/
-
0755
rm
DatabaseMigrationService/
-
0755
rm
DataExchange/
-
0755
rm
DataPipeline/
-
0755
rm
DataSync/
-
0755
rm
DAX/
-
0755
rm
Detective/
-
0755
rm
DeviceFarm/
-
0755
rm
DevOpsGuru/
-
0755
rm
DirectConnect/
-
0755
rm
DirectoryService/
-
0755
rm
DLM/
-
0755
rm
DocDB/
-
0755
rm
DynamoDb/
-
0755
rm
DynamoDbStreams/
-
0755
rm
EBS/
-
0755
rm
Ec2/
-
0755
rm
EC2InstanceConnect/
-
0755
rm
Ecr/
-
0755
rm
ECRPublic/
-
0755
rm
Ecs/
-
0755
rm
Efs/
-
0755
rm
EKS/
-
0755
rm
ElastiCache/
-
0755
rm
ElasticBeanstalk/
-
0755
rm
ElasticInference/
-
0755
rm
ElasticLoadBalancing/
-
0755
rm
ElasticLoadBalancingV2/
-
0755
rm
ElasticsearchService/
-
0755
rm
ElasticTranscoder/
-
0755
rm
Emr/
-
0755
rm
EMRContainers/
-
0755
rm
Endpoint/
-
0755
rm
EndpointDiscovery/
-
0755
rm
EventBridge/
-
0755
rm
Exception/
-
0755
rm
finspace/
-
0755
rm
FinSpaceData/
-
0755
rm
Firehose/
-
0755
rm
FIS/
-
0755
rm
FMS/
-
0755
rm
ForecastQueryService/
-
0755
rm
ForecastService/
-
0755
rm
FraudDetector/
-
0755
rm
FSx/
-
0755
rm
GameLift/
-
0755
rm
Glacier/
-
0755
rm
GlobalAccelerator/
-
0755
rm
Glue/
-
0755
rm
GlueDataBrew/
-
0755
rm
Greengrass/
-
0755
rm
GreengrassV2/
-
0755
rm
GroundStation/
-
0755
rm
GuardDuty/
-
0755
rm
Handler/
-
0755
rm
Health/
-
0755
rm
HealthLake/
-
0755
rm
Honeycode/
-
0755
rm
Iam/
-
0755
rm
IdentityStore/
-
0755
rm
imagebuilder/
-
0755
rm
ImportExport/
-
0755
rm
Inspector/
-
0755
rm
Iot/
-
0755
rm
IoT1ClickDevicesService/
-
0755
rm
IoT1ClickProjects/
-
0755
rm
IoTAnalytics/
-
0755
rm
IotDataPlane/
-
0755
rm
IoTDeviceAdvisor/
-
0755
rm
IoTEvents/
-
0755
rm
IoTEventsData/
-
0755
rm
IoTFleetHub/
-
0755
rm
IoTJobsDataPlane/
-
0755
rm
IoTSecureTunneling/
-
0755
rm
IoTSiteWise/
-
0755
rm
IoTThingsGraph/
-
0755
rm
IoTWireless/
-
0755
rm
IVS/
-
0755
rm
Kafka/
-
0755
rm
kendra/
-
0755
rm
Kinesis/
-
0755
rm
KinesisAnalytics/
-
0755
rm
KinesisAnalyticsV2/
-
0755
rm
KinesisVideo/
-
0755
rm
KinesisVideoArchivedMedia/
-
0755
rm
KinesisVideoMedia/
-
0755
rm
KinesisVideoSignalingChannels/
-
0755
rm
Kms/
-
0755
rm
LakeFormation/
-
0755
rm
Lambda/
-
0755
rm
LexModelBuildingService/
-
0755
rm
LexModelsV2/
-
0755
rm
LexRuntimeService/
-
0755
rm
LexRuntimeV2/
-
0755
rm
LicenseManager/
-
0755
rm
Lightsail/
-
0755
rm
LocationService/
-
0755
rm
LookoutEquipment/
-
0755
rm
LookoutforVision/
-
0755
rm
LookoutMetrics/
-
0755
rm
MachineLearning/
-
0755
rm
Macie/
-
0755
rm
Macie2/
-
0755
rm
ManagedBlockchain/
-
0755
rm
MarketplaceCatalog/
-
0755
rm
MarketplaceCommerceAnalytics/
-
0755
rm
MarketplaceEntitlementService/
-
0755
rm
MarketplaceMetering/
-
0755
rm
MediaConnect/
-
0755
rm
MediaConvert/
-
0755
rm
MediaLive/
-
0755
rm
MediaPackage/
-
0755
rm
MediaPackageVod/
-
0755
rm
MediaStore/
-
0755
rm
MediaStoreData/
-
0755
rm
MediaTailor/
-
0755
rm
mgn/
-
0755
rm
MigrationHub/
-
0755
rm
MigrationHubConfig/
-
0755
rm
Mobile/
-
0755
rm
MQ/
-
0755
rm
MTurk/
-
0755
rm
Multipart/
-
0755
rm
MWAA/
-
0755
rm
Neptune/
-
0755
rm
NetworkFirewall/
-
0755
rm
NetworkManager/
-
0755
rm
NimbleStudio/
-
0755
rm
OpsWorks/
-
0755
rm
OpsWorksCM/
-
0755
rm
Organizations/
-
0755
rm
Outposts/
-
0755
rm
Personalize/
-
0755
rm
PersonalizeEvents/
-
0755
rm
PersonalizeRuntime/
-
0755
rm
PI/
-
0755
rm
Pinpoint/
-
0755
rm
PinpointEmail/
-
0755
rm
PinpointSMSVoice/
-
0755
rm
Polly/
-
0755
rm
Pricing/
-
0755
rm
PrometheusService/
-
0755
rm
Proton/
-
0755
rm
QLDB/
-
0755
rm
QLDBSession/
-
0755
rm
QuickSight/
-
0755
rm
RAM/
-
0755
rm
Rds/
-
0755
rm
RDSDataService/
-
0755
rm
Redshift/
-
0755
rm
RedshiftDataAPIService/
-
0755
rm
Rekognition/
-
0755
rm
ResourceGroups/
-
0755
rm
ResourceGroupsTaggingAPI/
-
0755
rm
Retry/
-
0755
rm
RoboMaker/
-
0755
rm
Route53/
-
0755
rm
Route53Domains/
-
0755
rm
Route53RecoveryCluster/
-
0755
rm
Route53RecoveryControlConfig/
-
0755
rm
Route53RecoveryReadiness/
-
0755
rm
Route53Resolver/
-
0755
rm
S3/
-
0755
rm
S3Control/
-
0755
rm
S3Outposts/
-
0755
rm
SageMaker/
-
0755
rm
SagemakerEdgeManager/
-
0755
rm
SageMakerFeatureStoreRuntime/
-
0755
rm
SageMakerRuntime/
-
0755
rm
SavingsPlans/
-
0755
rm
Schemas/
-
0755
rm
SecretsManager/
-
0755
rm
SecurityHub/
-
0755
rm
ServerlessApplicationRepository/
-
0755
rm
ServiceCatalog/
-
0755
rm
ServiceDiscovery/
-
0755
rm
ServiceQuotas/
-
0755
rm
Ses/
-
0755
rm
SesV2/
-
0755
rm
Sfn/
-
0755
rm
Shield/
-
0755
rm
Signature/
-
0755
rm
signer/
-
0755
rm
Sms/
-
0755
rm
SnowBall/
-
0755
rm
Sns/
-
0755
rm
Sqs/
-
0755
rm
Ssm/
-
0755
rm
SSMContacts/
-
0755
rm
SSMIncidents/
-
0755
rm
SSO/
-
0755
rm
SSOAdmin/
-
0755
rm
SSOOIDC/
-
0755
rm
StorageGateway/
-
0755
rm
Sts/
-
0755
rm
Support/
-
0755
rm
Swf/
-
0755
rm
Synthetics/
-
0755
rm
Textract/
-
0755
rm
TimestreamQuery/
-
0755
rm
TimestreamWrite/
-
0755
rm
TranscribeService/
-
0755
rm
Transfer/
-
0755
rm
Translate/
-
0755
rm
Waf/
-
0755
rm
WafRegional/
-
0755
rm
WAFV2/
-
0755
rm
WellArchitected/
-
0755
rm
WorkDocs/
-
0755
rm
WorkLink/
-
0755
rm
WorkMail/
-
0755
rm
WorkMailMessageFlow/
-
0755
rm
WorkSpaces/
-
0755
rm
XRay/
-
0755
rm
AbstractConfigurationProvider.php
4565
0644
edit
dl
rm
AwsClient.php
18011
0644
edit
dl
rm
AwsClientInterface.php
5529
0644
edit
dl
rm
AwsClientTrait.php
2733
0644
edit
dl
rm
CacheInterface.php
755
0644
edit
dl
rm
ClientResolver.php
38156
0644
edit
dl
rm
Command.php
1427
0644
edit
dl
rm
CommandInterface.php
946
0644
edit
dl
rm
CommandPool.php
5321
0644
edit
dl
rm
ConfigurationProviderInterface.php
246
0644
edit
dl
rm
DoctrineCacheAdapter.php
989
0644
edit
dl
rm
EndpointParameterMiddleware.php
2799
0644
edit
dl
rm
functions.php
13486
0644
edit
dl
rm
HandlerList.php
13496
0644
edit
dl
rm
HasDataTrait.php
1134
0644
edit
dl
rm
HashingStream.php
1538
0644
edit
dl
rm
HashInterface.php
531
0644
edit
dl
rm
HasMonitoringEventsTrait.php
869
0644
edit
dl
rm
History.php
3903
0644
edit
dl
rm
IdempotencyTokenMiddleware.php
3782
0644
edit
dl
rm
InputValidationMiddleware.php
2494
0644
edit
dl
rm
JsonCompiler.php
478
0644
edit
dl
rm
LruArrayCache.php
2208
0644
edit
dl
rm
Middleware.php
13063
0644
edit
dl
rm
MockHandler.php
4113
0644
edit
dl
rm
MonitoringEventsInterface.php
742
0644
edit
dl
rm
MultiRegionClient.php
7935
0644
edit
dl
rm
PhpHash.php
1851
0644
edit
dl
rm
PresignUrlMiddleware.php
4277
0644
edit
dl
rm
Psr16CacheAdapter.php
572
0644
edit
dl
rm
PsrCacheAdapter.php
742
0644
edit
dl
rm
ResponseContainerInterface.php
246
0644
edit
dl
rm
Result.php
1170
0644
edit
dl
rm
ResultInterface.php
1372
0644
edit
dl
rm
ResultPaginator.php
5210
0644
edit
dl
rm
RetryMiddleware.php
8666
0644
edit
dl
rm
RetryMiddlewareV2.php
11944
0644
edit
dl
rm
Sdk.php
48593
0644
edit
dl
rm
StreamRequestPayloadMiddleware.php
2632
0644
edit
dl
rm
TraceMiddleware.php
12546
0644
edit
dl
rm
Waiter.php
8521
0644
edit
dl
rm
WrappedHttpHandler.php
7132
0644
edit
dl
rm
Edit:
/home/techb158/immovalet.com/vendor/aws/aws-sdk-php/src/functions.php
(13486B)
<?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; } /** * 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; }
Save
cmd:
run