You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AmazonApiGatewayManagementApi Update: You can use getConnection to return information about the connection (when it is connected, IP address, etc) and deleteConnection to disconnect the given connection
"description": "You can use getConnection to return information about the connection (when it is connected, IP address, etc) and deleteConnection to disconnect the given connection"
"documentation" : "<p>The connection with the provided id no longer exists.</p>"
27
+
}, {
28
+
"shape" : "LimitExceededException",
29
+
"documentation" : "<p>The client is sending more than the allowed number of requests per unit of time or the WebSocket client side buffer is full.</p>"
30
+
}, {
31
+
"shape" : "ForbiddenException",
32
+
"documentation" : "<p>The caller is not authorized to invoke this operation.</p>"
33
+
} ],
34
+
"documentation" : "<p>Delete the connection with the provided id.</p>"
35
+
},
36
+
"GetConnection" : {
37
+
"name" : "GetConnection",
38
+
"http" : {
39
+
"method" : "GET",
40
+
"requestUri" : "/@connections/{connectionId}",
41
+
"responseCode" : 200
42
+
},
43
+
"input" : {
44
+
"shape" : "GetConnectionRequest"
45
+
},
46
+
"output" : {
47
+
"shape" : "GetConnectionResponse"
48
+
},
49
+
"errors" : [ {
50
+
"shape" : "GoneException",
51
+
"documentation" : "<p>The connection with the provided id no longer exists.</p>"
52
+
}, {
53
+
"shape" : "LimitExceededException",
54
+
"documentation" : "<p>The client is sending more than the allowed number of requests per unit of time or the WebSocket client side buffer is full.</p>"
55
+
}, {
56
+
"shape" : "ForbiddenException",
57
+
"documentation" : "<p>The caller is not authorized to invoke this operation.</p>"
58
+
} ],
59
+
"documentation" : "<p>Get information about the connection with the provided id.</p>"
60
+
},
14
61
"PostToConnection" : {
15
62
"name" : "PostToConnection",
16
63
"http" : {
@@ -26,7 +73,7 @@
26
73
"documentation" : "<p>The connection with the provided id no longer exists.</p>"
27
74
}, {
28
75
"shape" : "LimitExceededException",
29
-
"documentation" : "<p>The client is sending more than the allowed number of requests per unit of time.</p>"
76
+
"documentation" : "<p>The client is sending more than the allowed number of requests per unit of time or the WebSocket client side buffer is full.</p>"
30
77
}, {
31
78
"shape" : "PayloadTooLargeException",
32
79
"documentation" : "<p>The data has exceeded the maximum size allowed.</p>"
@@ -43,32 +90,80 @@
43
90
"max" : 131072,
44
91
"documentation" : "<p>The data to be sent to the client specified by its connection id.</p>"
45
92
},
93
+
"DeleteConnectionRequest" : {
94
+
"type" : "structure",
95
+
"members" : {
96
+
"ConnectionId" : {
97
+
"shape" : "__string",
98
+
"location" : "uri",
99
+
"locationName" : "connectionId"
100
+
}
101
+
},
102
+
"required" : [ "ConnectionId" ]
103
+
},
46
104
"ForbiddenException" : {
47
105
"type" : "structure",
48
106
"members" : { },
107
+
"documentation" : "<p>The caller is not authorized to invoke this operation.</p>",
49
108
"exception" : true,
50
109
"error" : {
51
110
"httpStatusCode" : 403
111
+
}
112
+
},
113
+
"GetConnectionRequest" : {
114
+
"type" : "structure",
115
+
"members" : {
116
+
"ConnectionId" : {
117
+
"shape" : "__string",
118
+
"location" : "uri",
119
+
"locationName" : "connectionId"
120
+
}
52
121
},
53
-
"documentation" : "<p>The caller is not authorized to invoke this operation.</p>"
122
+
"required" : [ "ConnectionId" ]
123
+
},
124
+
"GetConnectionResponse" : {
125
+
"type" : "structure",
126
+
"members" : {
127
+
"ConnectedAt" : {
128
+
"shape" : "__timestampIso8601",
129
+
"locationName" : "connectedAt",
130
+
"documentation" : "<p>The time in ISO 8601 format for when the connection was established.</p>"
131
+
},
132
+
"Identity" : {
133
+
"shape" : "Identity",
134
+
"locationName" : "identity"
135
+
},
136
+
"LastActiveAt" : {
137
+
"shape" : "__timestampIso8601",
138
+
"locationName" : "lastActiveAt",
139
+
"documentation" : "<p>The time in ISO 8601 format for when the connection was last active.</p>"
140
+
}
141
+
}
54
142
},
55
143
"GoneException" : {
56
144
"type" : "structure",
57
145
"members" : { },
146
+
"documentation" : "<p>The connection with the provided id no longer exists.</p>",
58
147
"exception" : true,
59
148
"error" : {
60
149
"httpStatusCode" : 410
61
-
},
62
-
"documentation" : "<p>The connection with the provided id no longer exists.</p>"
150
+
}
63
151
},
64
-
"LimitExceededException" : {
152
+
"Identity" : {
65
153
"type" : "structure",
66
-
"members" : { },
67
-
"exception" : true,
68
-
"error" : {
69
-
"httpStatusCode" : 429
154
+
"members" : {
155
+
"SourceIp" : {
156
+
"shape" : "__string",
157
+
"locationName" : "sourceIp",
158
+
"documentation" : "<p>The source IP address of the TCP connection making the request to API Gateway.</p>"
159
+
},
160
+
"UserAgent" : {
161
+
"shape" : "__string",
162
+
"locationName" : "userAgent",
163
+
"documentation" : "<p>The User Agent of the API caller.</p>"
164
+
}
70
165
},
71
-
"documentation" : "<p>The client is sending more than the allowed number of requests per unit of time.</p>"
166
+
"required" : [ "SourceIp", "UserAgent" ]
72
167
},
73
168
"PayloadTooLargeException" : {
74
169
"type" : "structure",
@@ -78,11 +173,11 @@
78
173
"locationName" : "message"
79
174
}
80
175
},
176
+
"documentation" : "<p>The data has exceeded the maximum size allowed.</p>",
81
177
"exception" : true,
82
178
"error" : {
83
179
"httpStatusCode" : 413
84
-
},
85
-
"documentation" : "<p>The data has exceeded the maximum size allowed.</p>"
180
+
}
86
181
},
87
182
"PostToConnectionRequest" : {
88
183
"type" : "structure",
@@ -101,9 +196,22 @@
101
196
"required" : [ "ConnectionId", "Data" ],
102
197
"payload" : "Data"
103
198
},
199
+
"LimitExceededException" : {
200
+
"type" : "structure",
201
+
"members" : { },
202
+
"documentation" : "<p>The client is sending more than the allowed number of requests per unit of time or the WebSocket client side buffer is full.</p>",
203
+
"exception" : true,
204
+
"error" : {
205
+
"httpStatusCode" : 429
206
+
}
207
+
},
104
208
"__string" : {
105
209
"type" : "string"
210
+
},
211
+
"__timestampIso8601" : {
212
+
"type" : "timestamp",
213
+
"timestampFormat" : "iso8601"
106
214
}
107
215
},
108
216
"documentation" : "<p>The Amazon API Gateway Management API allows you to directly manage runtime aspects of your deployed APIs. To use it, you must explicitly set the SDK's endpoint to point to the endpoint of your deployed API. The endpoint will be of the form https://{api-id}.execute-api.{region}.amazonaws.com/{stage}, or will be the endpoint corresponding to your API's custom domain and base path, if applicable.</p>"
0 commit comments