Last active
April 17, 2020 19:33
-
-
Save Aleksandr-Filichkin/303f25d24eac05b07d49a79da67dab76 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
private static Gson gson = new GsonBuilder().setPrettyPrinting().create(); | |
private static SdkHttpClient sdkHttpClient = UrlConnectionHttpClient.create(); | |
private static DynamoDbClient client = DynamoDbClient.builder() | |
.httpClient(sdkHttpClient) | |
.region(Region.US_EAST_1) | |
.credentialsProvider(EnvironmentVariableCredentialsProvider.create()) | |
.build(); | |
private static UserRepository userRepository = new DynamoDBUserRepository(client, gson); | |
static { | |
userRepository.get("invalidId"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment