public static ScanResponse scan(final DynamoDbClient dynamoDbClient,
                                    final String tableName,
                                    final long count,
                                    final List<? extends DynamoDbQueryBuilder> queries) {
        try {
            val scanFilter = buildRequestQueryFilter(queries);
            val scanRequestBuilder = ScanRequest.builder().tableName(tableName).scanFilter(scanFilter);
            if (count > 0) {
                scanRequestBuilder.limit((int) count);
            }
            val scanRequest = scanRequestBuilder.build();
            LOGGER.debug("Submitting request [{}] to get record with keys [{}]", scanRequest, queries);
            return dynamoDbClient.scan(scanRequest);
        } catch (final Exception e) {
            LoggingUtils.error(LOGGER, e);
        }
        return ScanResponse.builder().items(Map.of()).build();
    }
Scan scan response.

@param dynamoDbClient the dynamo db client
@param tableName      the table name
@param count          the count
@param queries        the queries
@return the scan response
support/cas-server-support-dynamodb-core/src/main/java/org/apereo/cas/dynamodb/DynamoDbTableUtils.java