This has already happened to an extent. For example, there are bunch of API compatible implementations of s3, both oss and proprietary and most of them suggest you use the AWS sdk as a client.
https://docs.cloud.oracle.com/en-us/iaas/Content/Object/Task...
https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/am...