NetworkFirewall / Client / list_context_stores
list_context_stores¶
- NetworkFirewall.Client.list_context_stores(**kwargs)¶
Lists the active context stores that are associated with your firewalls. A context store records network resources that can be used to evaluate context-aware rules. You can list the following resource types: VPCs, subnets, security groups, and transit gateway attachments.
When using a small page size, a single call might not return the full list. A response can contain fewer than
MaxResultsresults, or none, and still include aNextToken. Keep making requests until the response does not include aNextToken.See also: AWS API Documentation
Request Syntax
response = client.list_context_stores( NextToken='string', MaxResults=123 )
- Parameters:
NextToken (string) – When you request a list of objects with a
MaxResultssetting, if the number of objects that are still available for retrieval exceeds the maximum you requested, Network Firewall returns aNextTokenvalue in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request.MaxResults (integer) – The maximum number of objects that you want Network Firewall to return for this request. If more objects are available, in the response, Network Firewall provides a
NextTokenvalue that you can use in a subsequent call to get the next batch of objects.
- Return type:
dict
- Returns:
Response Syntax
{ 'NextToken': 'string', 'ContextStores': [ { 'ContextStoreId': 'string', 'ContextStoreOwnerAccountId': 'string' }, ] }
Response Structure
(dict) –
NextToken (string) –
When you request a list of objects with a
MaxResultssetting, if the number of objects that are still available for retrieval exceeds the maximum you requested, Network Firewall returns aNextTokenvalue in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request.ContextStores (list) –
The context stores that are associated with your firewalls.
(dict) –
Contains details about a context store, including its unique identifier and the account that owns it.
ContextStoreId (string) –
The unique identifier of the context store. Use this value in
ListResourcesInContextStoreto list the resources that the context store records.ContextStoreOwnerAccountId (string) –
The ID of the Amazon Web Services account that owns the context store.
Exceptions
NetworkFirewall.Client.exceptions.InvalidRequestExceptionNetworkFirewall.Client.exceptions.InternalServerErrorNetworkFirewall.Client.exceptions.ThrottlingException