View Javadoc
1   package com.github.davidmoten.aws.lw.client;
2   
3   public class ClientCountLoadedClassesMain {
4       
5       public static void main(String[] args) {
6           // run with -verbose:class
7           String regionName = "ap-southeast-2";
8           String accessKey = System.getProperty("accessKey");
9           String secretKey = System.getProperty("secretKey");
10  
11          Credentials credentials = Credentials.of(accessKey, secretKey);
12          Client s3 = Client //
13                  .s3() //
14                  .region(regionName) //
15                  .credentials(credentials) //
16                  .build();
17          System.out.println(s3.path("amsa-xml-in", "ExampleObject.txt").responseAsUtf8());
18          System.out.println("2350 classes loaded");
19      }
20  
21  }