Skip to content

Instantly share code, notes, and snippets.

@bobbyjam99-zz
Last active August 29, 2015 14:13
Show Gist options
  • Save bobbyjam99-zz/2c9fc218accdf193c5ad to your computer and use it in GitHub Desktop.
Save bobbyjam99-zz/2c9fc218accdf193c5ad to your computer and use it in GitHub Desktop.
Proxy等を設定してAWSにアクセス
String accessKey = "YOURACCESSKEY";
String secretKey = "YOURSECRETKEY";
AWSCredentials awsCredentials = new BasicAWSCredentials(accessKey, secretKey);
ClientConfiguration clientConfiguration = new ClientConfiguration();
// set proxy
clientConfiguration.setProxyHost("proxyhost");
clientConfiguration.setProxyPort(80);
clientConfiguration.setProxyUsername("username");
clientConfiguration.setProxyPassword("password");
// set retry
clientConfiguration.setMaxErrorRetry(3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment