public Stream<? extends CasEvent> getEventsOfType(final String type, final ZonedDateTime dateTime) {
        val query = List.of(
            DynamoDbQueryBuilder.builder()
                .key(ColumnNames.TYPE.getColumnName())
                .attributeValue(List.of(AttributeValue.builder().s(type).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 of type.

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