title: How do you configure the endpoint for Amazon S3 by using the AWS SDK V2?
body: <p>In AWS SDK V1, I set up my credentials as:</p>
  <pre><code>BasicAWSCredentials awsCredentials = new BasicAWSCredentials(Credentials.access_key, Credentials.secret_access_key);
  </code></pre>
  <p>And then set the endpoint as:</p>
  <pre><code>EndpointConfiguration endpoint = new EndpointConfiguration(&quot;&lt;endpoint URL&gt;&quot;, &quot;&lt;region&gt;&quot;); 
  </code></pre>
  <p>And then created the client as:</p>
  <pre><code>AmazonS3 s3client = AmazonS3ClientBuilder.standard()
              .withCredentials(new AWSStaticCredentialsProvider(awsCredentials))
              .withEndpointConfiguration(endpoint)
              .build(); 
  </code></pre>
  <p>How do I set up this same client using AWS SDK V2?</p>