com.amazonaws.services.dynamodbv2.AmazonDynamoDBStreamsClient Java Examples

The following examples show how to use com.amazonaws.services.dynamodbv2.AmazonDynamoDBStreamsClient. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DynamoDBUtils.java    From wildfly-camel with Apache License 2.0 5 votes vote down vote up
public static AmazonDynamoDBStreamsClient createDynamoDBStreamsClient() {
    BasicCredentialsProvider credentials = BasicCredentialsProvider.standard();
    AmazonDynamoDBStreamsClient client = !credentials.isValid() ? null : (AmazonDynamoDBStreamsClient)
            AmazonDynamoDBStreamsClientBuilder.standard()
            .withCredentials(credentials)
            .withRegion("eu-west-1")
            .build();
    return client;
}
 
Example #2
Source File: DynamoDBClientProducer.java    From wildfly-camel with Apache License 2.0 4 votes vote down vote up
DynamoDBStreamsClientProvider(AmazonDynamoDBStreamsClient client) {
    this.client = client;
}
 
Example #3
Source File: DynamoDBClientProducer.java    From wildfly-camel with Apache License 2.0 4 votes vote down vote up
public AmazonDynamoDBStreamsClient getClient() {
    return client;
}
 
Example #4
Source File: DynamoDBClientProducer.java    From wildfly-camel with Apache License 2.0 4 votes vote down vote up
@Produces
@Singleton
public DynamoDBStreamsClientProvider getDynamoDBStreamsClientProvider() throws Exception {
    AmazonDynamoDBStreamsClient client = DynamoDBUtils.createDynamoDBStreamsClient();
    return new DynamoDBStreamsClientProvider(client);
}