public Stream<? extends CasEvent> getEventsForPrincipal(final String id, final ZonedDateTime dateTime) {
        val query =
            List.of(
                DynamoDbQueryBuilder.builder()
                    .key(ColumnNames.PRINCIPAL.getColumnName())
                    .attributeValue(List.of(AttributeValue.builder().s(id).build()))
                    .operator(ComparisonOperator.EQ)
                    .build(),
                DynamoDbQueryBuilder.builder()
                    .key(ColumnNames.CREATION_TIME.getColumnName())
                    .attributeValue(List.of(AttributeValue.builder().n(String.valueOf(dateTime.toInstant().toEpochMilli())).build()))
                    .operator(ComparisonOperator.GE)
                    .build());
        return getRecordsByKeys(query);
    }
Gets events for principal.

@param id       the id
@param dateTime the date time
@return the events for principal
support/cas-server-support-events-dynamodb/src/main/java/org/apereo/cas/support/events/DynamoDbCasEventsFacilitator.java