
Direct integration search on DynamoDB
#set( $pageKey = $input.params('pageKey'))
{
"TableName": "myTable",
"IndexName":"OwnerIndex",
"KeyConditionExpression": "#n_owner = :v_owner",
"FilterExpression": "contains(#n_id, :v_searchString)",
"ExpressionAttributeValues": {
":v_owner": {"S": "$context.authorizer.claims.email"},
":v_searchString":{"S":"$input.params().path.searchString"}
},
"ExpressionAttributeNames": {"#n_owner": "owner", "#n_id":"id"}
}