ConfigurationInterface.php 580 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace Aws\EndpointDiscovery;
  3. /**
  4. * Provides access to endpoint discovery configuration options:
  5. * 'enabled', 'cache_limit'
  6. */
  7. interface ConfigurationInterface
  8. {
  9. /**
  10. * Checks whether or not endpoint discovery is enabled.
  11. *
  12. * @return bool
  13. */
  14. public function isEnabled();
  15. /**
  16. * Returns the cache limit, if available.
  17. *
  18. * @return string|null
  19. */
  20. public function getCacheLimit();
  21. /**
  22. * Returns the configuration as an associative array
  23. *
  24. * @return array
  25. */
  26. public function toArray();
  27. }