list_views
async
¶
list_views(
*,
config_overrides: Optional[AsyncCloudWatchOmniClientConfig] = None,
type: Optional[ViewType] = None,
max_results: Optional[int] = None,
next_token: Optional[str] = None,
) -> ListViewsResponse
Lists the views in the caller's account and region. Returns a summary for each view, optionally filtered by view type. View definitions are not included — use GetView to retrieve them.
Parameters:
-
type(Optional[ViewType], default:None) –Return only views of this ownership category.
-
max_results(Optional[int], default:None) –The maximum number of views to return per page.
-
next_token(Optional[str], default:None) –A token to retrieve the next page of results.
Raises:
-
InternalServerException–An unexpected error occurred while processing the request.
-
ThrottlingException–The request was throttled due to exceeding the allowed request rate.
-
ValidationException–A parameter is specified incorrectly.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
List the views in an account and Region The following example returns a page of view summaries, filtered to user-created views. Definitions are not included — call GetView to retrieve them. A nextToken is returned when more results are available. Payloads are shown as JSON; on the wire they are CBOR-encoded.
Source code in docs_src/capo_cloudwatchomni/_services/async_cloud_watch_omni.py
3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 | |