In AWS SDK V1, I set up my credentials as:
BasicAWSCredentials awsCredentials = new BasicAWSCredentials(Credentials.access_key, Credentials.secret_access_key);
And then set the endpoint as:
EndpointConfiguration endpoint = new EndpointConfiguration("<endpoint URL>", "<region>");
And then created the client as:
AmazonS3 s3client = AmazonS3ClientBuilder.standard()
.withCredentials(new AWSStaticCredentialsProvider(awsCredentials))
.withEndpointConfiguration(endpoint)
.build();
How do I set up this same client using AWS SDK V2?