class DynamodbIdentityTransformer {

    public static Identity toIdentityV2(final com.amazonaws.services.lambda.runtime.events.models.dynamodb.Identity identity) {
        return Identity.builder()
                .principalId(identity.getPrincipalId())
                .type(identity.getType())
                .build();
    }

}