Skip to content

Commit 206f827

Browse files
author
AWS
committed
AWS Elemental MediaLive Update: Added channel state waiters to MediaLive.
1 parent 54074a2 commit 206f827

File tree

3 files changed

+128
-6
lines changed

3 files changed

+128
-6
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"category": "AWS Elemental MediaLive",
3+
"type": "feature",
4+
"description": "Added channel state waiters to MediaLive."
5+
}

services/medialive/src/main/resources/codegen-resources/paginators-1.json

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,38 @@
33
"DescribeSchedule": {
44
"input_token": "NextToken",
55
"output_token": "NextToken",
6-
"limit_key": "MaxResults"
6+
"limit_key": "MaxResults",
7+
"result_key": "ScheduleActions"
78
},
89
"ListChannels": {
910
"input_token": "NextToken",
1011
"output_token": "NextToken",
11-
"limit_key": "MaxResults"
12+
"limit_key": "MaxResults",
13+
"result_key": "Channels"
1214
},
1315
"ListInputSecurityGroups": {
1416
"input_token": "NextToken",
1517
"output_token": "NextToken",
16-
"limit_key": "MaxResults"
18+
"limit_key": "MaxResults",
19+
"result_key": "InputSecurityGroups"
1720
},
1821
"ListInputs": {
1922
"input_token": "NextToken",
2023
"output_token": "NextToken",
21-
"limit_key": "MaxResults"
24+
"limit_key": "MaxResults",
25+
"result_key": "Inputs"
2226
},
2327
"ListOfferings": {
2428
"input_token": "NextToken",
2529
"output_token": "NextToken",
26-
"limit_key": "MaxResults"
30+
"limit_key": "MaxResults",
31+
"result_key": "Offerings"
2732
},
2833
"ListReservations": {
2934
"input_token": "NextToken",
3035
"output_token": "NextToken",
31-
"limit_key": "MaxResults"
36+
"limit_key": "MaxResults",
37+
"result_key": "Reservations"
3238
}
3339
}
3440
}
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
{
2+
"version": 2,
3+
"waiters": {
4+
"ChannelCreated": {
5+
"description": "Wait until a channel has been created",
6+
"operation": "DescribeChannel",
7+
"delay": 3,
8+
"maxAttempts": 5,
9+
"acceptors": [
10+
{
11+
"state": "success",
12+
"matcher": "path",
13+
"argument": "State",
14+
"expected": "IDLE"
15+
},
16+
{
17+
"state": "retry",
18+
"matcher": "path",
19+
"argument": "State",
20+
"expected": "CREATING"
21+
},
22+
{
23+
"state": "retry",
24+
"matcher": "status",
25+
"expected": 500
26+
},
27+
{
28+
"state": "failure",
29+
"matcher": "path",
30+
"argument": "State",
31+
"expected": "CREATE_FAILED"
32+
}
33+
]
34+
},
35+
"ChannelRunning": {
36+
"description": "Wait until a channel is running",
37+
"operation": "DescribeChannel",
38+
"delay": 5,
39+
"maxAttempts": 120,
40+
"acceptors": [
41+
{
42+
"state": "success",
43+
"matcher": "path",
44+
"argument": "State",
45+
"expected": "RUNNING"
46+
},
47+
{
48+
"state": "retry",
49+
"matcher": "path",
50+
"argument": "State",
51+
"expected": "STARTING"
52+
},
53+
{
54+
"state": "retry",
55+
"matcher": "status",
56+
"expected": 500
57+
}
58+
]
59+
},
60+
"ChannelStopped": {
61+
"description": "Wait until a channel has is stopped",
62+
"operation": "DescribeChannel",
63+
"delay": 5,
64+
"maxAttempts": 28,
65+
"acceptors": [
66+
{
67+
"state": "success",
68+
"matcher": "path",
69+
"argument": "State",
70+
"expected": "IDLE"
71+
},
72+
{
73+
"state": "retry",
74+
"matcher": "path",
75+
"argument": "State",
76+
"expected": "STOPPING"
77+
},
78+
{
79+
"state": "retry",
80+
"matcher": "status",
81+
"expected": 500
82+
}
83+
]
84+
},
85+
"ChannelDeleted": {
86+
"description": "Wait until a channel has been deleted",
87+
"operation": "DescribeChannel",
88+
"delay": 5,
89+
"maxAttempts": 20,
90+
"acceptors": [
91+
{
92+
"state": "success",
93+
"matcher": "path",
94+
"argument": "State",
95+
"expected": "DELETED"
96+
},
97+
{
98+
"state": "retry",
99+
"matcher": "path",
100+
"argument": "State",
101+
"expected": "DELETING"
102+
},
103+
{
104+
"state": "retry",
105+
"matcher": "status",
106+
"expected": 500
107+
}
108+
]
109+
}
110+
}
111+
}

0 commit comments

Comments
 (0)