public static <T> Stream<T> getRecordsByKeys(final DynamoDbClient dynamoDbClient,
                                                 final String tableName,
                                                 final long count,
                                                 final List<? extends DynamoDbQueryBuilder> queries,
                                                 final Function<Map<String, AttributeValue>, T> itemMapper) {
        val scanResponse = scan(dynamoDbClient, tableName, count, queries);
        val items = scanResponse.items();
        return items.stream().map(itemMapper);
    }
Gets records by keys.

@param <T>            the type parameter
@param dynamoDbClient the dynamo db client
@param tableName      the table name
@param count          the count
@param queries        the queries
@param itemMapper     the item mapper
@return the records by keys
support/cas-server-support-dynamodb-core/src/main/java/org/apereo/cas/dynamodb/DynamoDbTableUtils.java