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

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