Skip to content

Instantly share code, notes, and snippets.

@tarun4279
Last active January 17, 2019 06:26
Show Gist options
  • Save tarun4279/6d6457c89e114e7ebef321d480fce48f to your computer and use it in GitHub Desktop.
Save tarun4279/6d6457c89e114e7ebef321d480fce48f to your computer and use it in GitHub Desktop.
AWSSigner awsSigner = new AWSSigner(new DefaultAWSCredentialsProviderChain(), region.getName(), SERVICE_NAME,
() -> LocalDateTime.now(ZoneId.of("UTC")));
AWSSigningRequestInterceptor requestInterceptor = new AWSSigningRequestInterceptor(awsSigner);
// extract httpclient builder of the aws resource client and set the request interceptor
builder.addInterceptorLast(requestInterceptor);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment