public function getEndpoint($serviceType, $region, $endpointType = 'public')
	{
		$serviceEndpoints = $this->getEndpoints($serviceType);
		foreach ($serviceEndpoints as $endpointsRegion => $endpoints) {
			if ($endpointsRegion == $region) {
				return $endpoints[$endpointType . 'URL'];
			}
		}
	}
public function getEndpoint($serviceType, $region, $endpointType = 'public')
	{
		$serviceEndpoints = $this->getEndpoints($serviceType);
		foreach ($serviceEndpoints as $endpointsRegion => $endpoints) {
			if ($endpointsRegion == $region) {
				return $endpoints[$endpointType . 'URL'];
			}
		}
	}
public function getEndpoint ( $ serviceType , $ region , $ endpointType = 'public' ) { $ serviceEndpoints = $ this -> getEndpoints ( $ serviceType ) ; foreach ( $ serviceEndpoints as $ endpointsRegion => $ endpoints ) { if ( $ endpointsRegion == $ region ) { return $ endpoints [ $ endpointType . 'URL' ] ; } } }
Get an endpoint for a specific service and region

@param string $serviceType
@param string $region
@param string $endpointType

@return string
Get an endpoint for a specific service and region