Skip to content

Instantly share code, notes, and snippets.

@theawesomenayak
Created October 24, 2020 12:03
Show Gist options
  • Save theawesomenayak/897bba001e0074b6366a1e427430fc93 to your computer and use it in GitHub Desktop.
Save theawesomenayak/897bba001e0074b6366a1e427430fc93 to your computer and use it in GitHub Desktop.
public final class DependencyModule {
private static final DynamoDbClient DYNAMO_DB_CLIENT = dynamoDbClient();
public static final PetStoreClient PET_STORE_CLIENT = new PetStoreClient(DYNAMO_DB_CLIENT);
public static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
private static DynamoDbClient dynamoDbClient() {
return DynamoDbClient.builder()
.region(Region.US_WEST_1)
.httpClient(ApacheHttpClient.builder().build())
.build();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment