list_policy_events
¶
list_policy_events(
policy_arn: Arn,
*,
config_overrides: Optional[resiliencehubv2ClientConfig] = None,
event_types: Optional[PolicyEventTypeList] = None,
start_time: Optional[datetime] = None,
end_time: Optional[datetime] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListPolicyEventsResponse
Lists events for a resilience policy, including services that started or stopped using it, changes to cross-account sharing, and deletion of the policy.
Parameters:
-
event_types(Optional[PolicyEventTypeList], default:None) –The type of events to include in the results.
-
start_time(Optional[datetime], default:None) –The start time for filtering events.
-
end_time(Optional[datetime], default:None) –The end time for filtering events.
Raises:
-
AccessDeniedException–Access denied — caller lacks required permissions.
-
InternalServerException–Internal service error.
-
ResourceNotFoundException–Resource not found.
-
ValidationException–Validation error — invalid input parameters.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_resiliencehubv2/_services/resiliencehubv2.py
2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 | |