Created
October 24, 2020 12:03
-
-
Save theawesomenayak/897bba001e0074b6366a1e427430fc93 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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