# media-cloud-sync/1.2.4/includes/sdk/s3/Aws/Sts/RegionalEndpoints/Configuration.php

Media Cloud Sync, version 1.2.4. 30 lines.

- Page: https://pluginprobe.com/plugins/media-cloud-sync/1.2.4/code/includes/sdk/s3/Aws/Sts/RegionalEndpoints/Configuration.php
- Raw: https://pluginprobe.com/plugins/media-cloud-sync/1.2.4/raw/includes/sdk/s3/Aws/Sts/RegionalEndpoints/Configuration.php
- Modified: 2024-10-27T10:40:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/media-cloud-sync/1.2.4/code/includes/sdk/s3/Aws/Sts/RegionalEndpoints/Configuration.php#L10-L20`.

```php
<?php

namespace Dudlewebs\WPMCS\s3\Aws\Sts\RegionalEndpoints;

class Configuration implements ConfigurationInterface
{
    private $endpointsType;
    public function __construct($endpointsType)
    {
        $this->endpointsType = \strtolower($endpointsType);
        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()];
    }
}

```
