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
5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 | |