1{ 2 "version" : 2, 3 "waiters" : { 4 "ScraperActive" : { 5 "description" : "Wait until a scraper reaches ACTIVE status", 6 "delay" : 2, 7 "maxAttempts" : 60, 8 "operation" : "DescribeScraper", 9 "acceptors" : [ { 10 "matcher" : "path", 11 "argument" : "scraper.status.statusCode", 12 "state" : "success", 13 "expected" : "ACTIVE" 14 }, { 15 "matcher" : "path", 16 "argument" : "scraper.status.statusCode", 17 "state" : "failure", 18 "expected" : "CREATION_FAILED" 19 } ] 20 }, 21 "ScraperDeleted" : { 22 "description" : "Wait until a scraper reaches DELETED status", 23 "delay" : 2, 24 "maxAttempts" : 60, 25 "operation" : "DescribeScraper", 26 "acceptors" : [ { 27 "matcher" : "error", 28 "state" : "success", 29 "expected" : "ResourceNotFoundException" 30 }, { 31 "matcher" : "path", 32 "argument" : "scraper.status.statusCode", 33 "state" : "failure", 34 "expected" : "DELETION_FAILED" 35 } ] 36 }, 37 "WorkspaceActive" : { 38 "description" : "Wait until a workspace reaches ACTIVE status", 39 "delay" : 2, 40 "maxAttempts" : 60, 41 "operation" : "DescribeWorkspace", 42 "acceptors" : [ { 43 "matcher" : "path", 44 "argument" : "workspace.status.statusCode", 45 "state" : "success", 46 "expected" : "ACTIVE" 47 }, { 48 "matcher" : "path", 49 "argument" : "workspace.status.statusCode", 50 "state" : "retry", 51 "expected" : "UPDATING" 52 }, { 53 "matcher" : "path", 54 "argument" : "workspace.status.statusCode", 55 "state" : "retry", 56 "expected" : "CREATING" 57 } ] 58 }, 59 "WorkspaceDeleted" : { 60 "description" : "Wait until a workspace reaches DELETED status", 61 "delay" : 2, 62 "maxAttempts" : 60, 63 "operation" : "DescribeWorkspace", 64 "acceptors" : [ { 65 "matcher" : "error", 66 "state" : "success", 67 "expected" : "ResourceNotFoundException" 68 }, { 69 "matcher" : "path", 70 "argument" : "workspace.status.statusCode", 71 "state" : "retry", 72 "expected" : "DELETING" 73 } ] 74 } 75 } 76}