public Stream<? extends CasEvent> getEventsOfType(final String type) {
        val query = DynamoDbQueryBuilder.builder()
            .key(ColumnNames.TYPE.getColumnName())
            .attributeValue(List.of(AttributeValue.builder().s(type).build()))
            .operator(ComparisonOperator.EQ)
            .build();
        return getRecordsByKeys(List.of(query));
    }
Gets events of type.

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