Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. BasicAWSCredentials credentials = new BasicAWSCredentials("", "");
  2. ClientConfiguration clientConfig = new ClientConfiguration();
  3. clientConfig.setProtocol(Protocol.HTTP);
  4.  
  5. AmazonS3 conn = new AmazonS3Client(credentials, clientConfig);
  6. conn.setEndpoint("localhost:8080");
  7. Bucket bucket = conn.createBucket("my-new-bucket");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement