UNPKG

1.75 kBJSONView Raw
1{
2 "version": 2,
3 "waiters": {
4 "FunctionExists": {
5 "delay": 1,
6 "operation": "GetFunction",
7 "maxAttempts": 20,
8 "acceptors": [
9 {
10 "state": "success",
11 "matcher": "status",
12 "expected": 200
13 },
14 {
15 "state": "retry",
16 "matcher": "error",
17 "expected": "ResourceNotFoundException"
18 }
19 ]
20 },
21 "FunctionActive": {
22 "delay": 5,
23 "maxAttempts": 60,
24 "operation": "GetFunctionConfiguration",
25 "description": "Waits for the function's State to be Active.",
26 "acceptors": [
27 {
28 "state": "success",
29 "matcher": "path",
30 "argument": "State",
31 "expected": "Active"
32 },
33 {
34 "state": "failure",
35 "matcher": "path",
36 "argument": "State",
37 "expected": "Failed"
38 },
39 {
40 "state": "retry",
41 "matcher": "path",
42 "argument": "State",
43 "expected": "Pending"
44 }
45 ]
46 },
47 "FunctionUpdated": {
48 "delay": 5,
49 "maxAttempts": 60,
50 "operation": "GetFunctionConfiguration",
51 "description": "Waits for the function's LastUpdateStatus to be Successful.",
52 "acceptors": [
53 {
54 "state": "success",
55 "matcher": "path",
56 "argument": "LastUpdateStatus",
57 "expected": "Successful"
58 },
59 {
60 "state": "failure",
61 "matcher": "path",
62 "argument": "LastUpdateStatus",
63 "expected": "Failed"
64 },
65 {
66 "state": "retry",
67 "matcher": "path",
68 "argument": "LastUpdateStatus",
69 "expected": "InProgress"
70 }
71 ]
72 }
73 }
74}