OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
Xpress_backup
/
vendor
/
aws
/
aws-sdk-php
/
src
/
Sts
/
RegionalEndpoints
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/19/2025 10:07:19 AM
rwxr-xr-x
📄
Configuration.php
977 bytes
05/19/2025 10:07:19 AM
rw-r--r--
📄
ConfigurationInterface.php
446 bytes
05/19/2025 10:07:19 AM
rw-r--r--
📄
ConfigurationProvider.php
7.4 KB
05/19/2025 10:07:19 AM
rw-r--r--
📁
Exception
-
05/19/2025 10:07:19 AM
rwxr-xr-x
Editing: Configuration.php
Close
<?php namespace Aws\Sts\RegionalEndpoints; class Configuration implements ConfigurationInterface { private $endpointsType; private $isFallback; public function __construct($endpointsType, $isFallback = false) { $this->endpointsType = strtolower($endpointsType); $this->isFallback = $isFallback; if (!in_array($this->endpointsType, ['legacy', 'regional'])) { throw new \InvalidArgumentException( "Configuration parameter must either be 'legacy' or 'regional'." ); } } /** * {@inheritdoc} */ public function getEndpointsType() { return $this->endpointsType; } /** * {@inheritdoc} */ public function toArray() { return [ 'endpoints_type' => $this->getEndpointsType() ]; } public function isFallback() { return $this->isFallback; } }