first commit -> move some files from one-api
This commit is contained in:
37
vendor/aws_v3/Aws/Endpoint/UseFipsEndpoint/Configuration.php
vendored
Normal file
37
vendor/aws_v3/Aws/Endpoint/UseFipsEndpoint/Configuration.php
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
namespace Aws\Endpoint\UseFipsEndpoint;
|
||||
|
||||
use Aws;
|
||||
use Aws\Endpoint\UseFipsEndpoint\Exception\ConfigurationException;
|
||||
|
||||
class Configuration implements ConfigurationInterface
|
||||
{
|
||||
private $useFipsEndpoint;
|
||||
|
||||
public function __construct($useFipsEndpoint)
|
||||
{
|
||||
$this->useFipsEndpoint = Aws\boolean_value($useFipsEndpoint);
|
||||
if (is_null($this->useFipsEndpoint)) {
|
||||
throw new ConfigurationException("'use_fips_endpoint' config option"
|
||||
. " must be a boolean value.");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function isUseFipsEndpoint()
|
||||
{
|
||||
return $this->useFipsEndpoint;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function toArray()
|
||||
{
|
||||
return [
|
||||
'use_fips_endpoint' => $this->isUseFipsEndpoint(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user