title: How to set AWS Container Credentials using AWS Java SDK
body: <p>I want to use <code>ContainerCredentialsProvider(CredentialsEndpointProvider)</code>
  instead of <code>ContainerCredentialsProvider()</code>, as the latter is deprecated.</p>
  
  <p>Currently I am using deprecated constructor <code>ContainerCredentialsProvider()</code> as below:</p>
  
  <pre><code>AWSSimpleSystemsManagement ssm = 
      AWSSimpleSystemsManagementClientBuilder
          .standard()
          .withRegion(region)
          .withCredentials(new ContainerCredentialsProvider())
          .build();
  </code></pre>
  
  <p><code>CredentialsEndpointProvider</code> is an abstract class. 
  I need to use something like <code>ECSCredentialsEndPointProvider</code> in my docker and I am not sure how to do that. Any help is appreciated.</p>