The dependency as mentioned in Amazon documentation did not work. The path to the dependency does not exist, in Maven central repository.
"software.amazon.awssdk" % "aws-java-sdk" % "2.0.0"
This also did not resolve com.amazonaws.services.s3.AmazonS3ClientBuilder, though the JAR path is correct in Maven central -
"software.amazon.awssdk" % "aws-sdk-java" % "2.1.3"
Then I tried this and it was working.
"com.amazonaws" % "aws-java-sdk" % "1.11.465"
Do Check out the AWS Certification Course offered by Intellipaat.