Scalr\Service\Aws\S3\DataType\BucketData::getLocation PHP Method

getLocation() public method

This implementation of the GET operation uses the location subresource to return a bucket's Region. You set the bucket's Region using the LocationContraint request parameter in a PUT Bucket request.
public getLocation ( ) : string
return string Returns bucket location Valid Values: EU | eu-west-1 | eu-central-1 | us-west-1 | us-west-2 | ap-southeast-1 | ap-northeast-1 | ap-northeast-2 | sa-east-1 | empty string (for the US Classic Region)
    public function getLocation()
    {
        $this->throwExceptionIfNotInitialized();
        return $this->getS3()->bucket->getLocation($this->bucketName);
    }