PHP 7.4.33
Preview: Configuration.php Size: 803 B
/home/godevadmin/www/admin/vendor/aws/Aws/Sts/RegionalEndpoints/Configuration.php

<?php
namespace 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()
        ];
    }
}

Directory Contents

Dirs: 1 × Files: 3

Name Size Perms Modified Actions
Exception DIR
- drwxrwxr-x 2024-06-18 20:10:46
Edit Download
803 B lrwxrwxr-x 2024-06-18 20:10:46
Edit Download
446 B lrwxrwxr-x 2024-06-18 20:10:46
Edit Download
7.37 KB lrwxrwxr-x 2024-06-18 20:10:46
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).