CloudWatchOmni / Client / list_views
list_views¶
- CloudWatchOmni.Client.list_views(**kwargs)¶
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.
See also: AWS API Documentation
Request Syntax
response = client.list_views( type='USER'|'MANAGED', maxResults=123, nextToken='string' )
- Parameters:
type (string) – Return only views of this ownership category.
maxResults (integer) – The maximum number of views to return per page.
nextToken (string) – A token to retrieve the next page of results.
- Return type:
dict
- Returns:
Response Syntax
{ 'items': [ { 'name': 'string', 'type': 'USER'|'MANAGED', 'description': 'string', 'createdAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1) }, ], 'nextToken': 'string' }
Response Structure
(dict) –
items (list) –
The list of view summaries.
(dict) –
Summary information about a view. Does not include the view definition.
name (string) –
The name of the view.
type (string) –
The ownership category of the view.
description (string) –
The description of the view.
createdAt (datetime) –
The timestamp when the view was created.
updatedAt (datetime) –
The timestamp when the view was last updated.
nextToken (string) –
A token to retrieve the next page of results, or null if there are no more results.
Exceptions
CloudWatchOmni.Client.exceptions.ThrottlingExceptionCloudWatchOmni.Client.exceptions.ValidationExceptionCloudWatchOmni.Client.exceptions.InternalServerException