daily pastebin goal
15%
SHARE
TWEET

Untitled

a guest Jan 23rd, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. stage('Delete DynamoDB Table'){
  2.         sh "aws dynamodb delete-table --table-name ThisTable --region us-east-1"
  3.     }
  4.    
  5. stage('Deploy CloudFormation Template'){
  6.    
  7. stage('Upload Data to Dynamo'){
  8.    
  9. public async Task DeleteAllReadModelEntitiesInTable()
  10. {
  11.     List<ReadModelEntity> readModels;
  12.  
  13.     var conditions = new List<ScanCondition>();
  14.     readModels = await _context.ScanAsync<ReadModelEntity>(conditions).GetRemainingAsync();
  15.  
  16.     var batchWork = _context.CreateBatchWrite<ReadModelEntity>();
  17.     batchWork.AddDeleteItems(readModels);
  18.     await batchWork.ExecuteAsync();
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top