I am trying to use ScanAsyn method to fetch values from DynamoDB table using the below code and wants to print the value of var scan. Can somebody help me to do it.
AmazonDynamoDBClient client = new AmazonDynamoDBClient();
var requesttwo = new ScanRequest
{
TableName = "newtable"
};
DynamoDBContext dynamoDbContext = new DynamoDBContext(client);
var conditions = new List<ScanCondition>();
conditions.Add(new ScanCondition("Processed", ScanOperator.NotEqual, "1"));
var scan = dynamoDbContext.ScanAsync<SystemMessage>(conditions);
//how to get the values of var scan