describe_event_types
async
¶
describe_event_types(
*,
config_overrides: Optional[AsyncHealthClientConfig] = None,
filter: Optional[EventTypeFilter] = None,
locale: Optional[locale] = None,
next_token: Optional[nextToken] = None,
max_results: Optional[maxResults] = None,
) -> DescribeEventTypesResponse
Returns the event types that meet the specified filter criteria. You can use this API operation to find information about the Health event, such as the category, Amazon Web Services service, and event code. The metadata for each event appears in the EventType object.
If you don't specify a filter criteria, the API operation returns all event types, in no particular order.
This API operation uses pagination. Specify the nextToken parameter in the next request to return more results.
Parameters:
-
filter(Optional[EventTypeFilter], default:None) –Values to narrow the results returned.
-
locale(Optional[locale], default:None) –The locale (language) to return information in. English (en) is the default and the only supported value at this time.
-
next_token(Optional[nextToken], default:None) –If the results of a search are large, only a portion of the results are returned, and a
nextTokenpagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value. -
max_results(Optional[maxResults], default:None) –The maximum number of items to return in one batch, between 10 and 100, inclusive.
If you don't specify the
maxResultsparameter, this operation returns a maximum of 30 items by default.
Raises:
-
InvalidPaginationToken–The specified pagination token (
nextToken) is not valid. -
UnsupportedLocale–The specified locale is not supported.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_health/_services/async_health.py
1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 | |