pub fn set_endpoint_prefix(&mut self, endpoint_prefix: String) {
        self.hostname = Some(build_hostname(&endpoint_prefix, &self.region));
    }
Sets the target hostname using the current service type and region

See the implementation of build_hostname to see how this is done
rusoto/signature/src/signature.rs