list_automation_events
¶
list_automation_events(
*,
config_overrides: Optional[ComputeOptimizerAutomationClientConfig] = None,
filters: Optional[AutomationEventFilterList] = None,
organizational_unit_ids: Optional[OrganizationalUnitIds] = None,
start_time_inclusive: Optional[datetime] = None,
end_time_exclusive: Optional[datetime] = None,
max_results: Optional[int] = None,
next_token: Optional[NextToken] = None,
) -> ListAutomationEventsResponse
Lists automation events based on specified filters. You can retrieve events that were created within the past year.
Parameters:
-
filters(Optional[AutomationEventFilterList], default:None) –The filters to apply to the list of automation events.
-
organizational_unit_ids(Optional[OrganizationalUnitIds], default:None) –The organizational unit (OU) or organization root IDs to use to filter the results. The response includes events for accounts in the specified OUs and their child OUs. Only the management account or a delegated administrator can specify this parameter.
-
start_time_inclusive(Optional[datetime], default:None) –The start of the time range to query for events.
-
end_time_exclusive(Optional[datetime], default:None) –The end of the time range to query for events.
-
max_results(Optional[int], default:None) –The maximum number of automation events to return in a single response. If you don't specify a value, the default is 100.
-
next_token(Optional[NextToken], default:None) –The token for the next page of results.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
ForbiddenException–You are not authorized to perform this action.
-
InternalServerException–An internal error occurred while processing the request.
-
InvalidParameterValueException–One or more parameter values are not valid.
-
OptInRequiredException–The account must be opted in to Compute Optimizer Automation before performing this action.
-
ServiceUnavailableException–The service is temporarily unavailable.
-
ThrottlingException–The request was denied due to request throttling.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_compute_optimizer_automation/_services/compute_optimizer_automation.py
939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 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 | |