describe_events
¶
describe_events(
*,
config_overrides: Optional[HealthClientConfig] = None,
filter: Optional[EventFilter] = None,
next_token: Optional[nextToken] = None,
max_results: Optional[maxResultsLowerRange] = None,
locale: Optional[locale] = None,
) -> DescribeEventsResponse
Returns information about events that meet the specified filter criteria. Events are returned in a summary form and do not include the detailed description, any additional metadata that depends on the event type, or any affected resources. To retrieve that information, use the DescribeEventDetails and DescribeAffectedEntities operations.
If no filter criteria are specified, all events are returned. Results are sorted by lastModifiedTime, starting with the most recent event.
-
When you call the
DescribeEventsoperation and specify an entity for theentityValuesparameter, Health might return public events that aren't specific to that resource. For example, if you callDescribeEventsand specify an ID for an Amazon Elastic Compute Cloud (Amazon EC2) instance, Health might return events that aren't specific to that resource or service. To get events that are specific to a service, use theservicesparameter in thefilterobject. For more information, see Event. -
This API operation uses pagination. Specify the
nextTokenparameter in the next request to return more results.
Parameters:
-
filter(Optional[EventFilter], default:None) –Values to narrow the results returned.
-
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[maxResultsLowerRange], default:None) –The maximum number of items to return in one batch, between 1 and 100, inclusive.
-
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.
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/health.py
999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 | |