public MultifactorAuthenticationTrustRecord getRecordForId(final long id) {
        val queries = List.of(DynamoDbQueryBuilder.builder()
            .key(ColumnNames.ID.getColumnName())
            .operator(ComparisonOperator.EQ)
            .attributeValue(List.of(AttributeValue.builder().s(String.valueOf(id)).build()))
            .build());
        return DynamoDbTableUtils.getRecordsByKeys(amazonDynamoDBClient, dynamoDbProperties.getTableName(),
                queries, DynamoDbMultifactorTrustEngineFacilitator::extractAttributeValuesFrom)
            .findFirst()
            .orElse(null);
    }
Gets record for id.

@param id the id
@return the record for id
support/cas-server-support-trusted-mfa-dynamodb/src/main/java/org/apereo/cas/trusted/authentication/storage/DynamoDbMultifactorTrustEngineFacilitator.java