NetworkManager / Paginator / ListContexts
ListContexts¶
- class NetworkManager.Paginator.ListContexts¶
paginator = client.get_paginator('list_contexts')
- paginate(**kwargs)¶
Creates an iterator that will paginate through responses from
NetworkManager.Client.list_contexts().See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate( ContextStoreId='string', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } )
- Parameters:
ContextStoreId (string) –
[REQUIRED]
The ID of the context store.
PaginationConfig (dict) –
A dictionary that provides parameters to control pagination.
MaxItems (integer) –
The total number of items to return. If the total number of items available is more than the value specified in max-items then a
NextTokenwill be provided in the output that you can use to resume pagination.PageSize (integer) –
The size of each page.
StartingToken (string) –
A token to specify where to start paginating. This is the
NextTokenfrom a previous response.
- Return type:
dict
- Returns:
Response Syntax
{ 'Contexts': [ { 'ContextId': 'string', 'ContextType': 'string', 'SegmentType': 'string', 'PublicId': 'string', 'Region': 'string', 'AvailabilityZone': 'string', 'AttachmentType': 'string' }, ], 'VersionId': 'string' }
Response Structure
(dict) –
Contexts (list) –
The context entries.
(dict) –
Describes a context entry in a context store. A context entry describes a resource, such as a security group, subnet, or attachment.
ContextId (string) –
The ID of the context entry.
ContextType (string) –
The type of the context entry, for example
SegmentId,Subnet, orAttachment.SegmentType (string) –
The type of the segment, for example
SecurityGroup. Network Manager returns this value only when the context type isSegmentId.PublicId (string) –
The ID of the resource, for example a security group ID, subnet ID, or transit gateway attachment ID.
Region (string) –
The Amazon Web Services Region of the resource.
AvailabilityZone (string) –
The ID of the Availability Zone of the resource, for example
use1-az2. Network Manager returns this value only when the context type isSubnet.AttachmentType (string) –
The type of the attachment, for example
VPC. Network Manager returns this value only when the context type isAttachment.
VersionId (string) –
The version of the returned context entries. All pages of the same request return the same version.