list_resources_in_context_store
async
¶
list_resources_in_context_store(
context_store_id: ContextStoreId,
*,
config_overrides: Optional[AsyncNetworkFirewallClientConfig] = None,
filters: Optional[ContextFilters] = None,
max_results: Optional[PaginationMaxResults] = None,
next_token: Optional[PaginationToken] = None,
) -> ListResourcesInContextStoreResponse
Lists the resources that a context store records. The context store must be associated with a transit gateway that your firewall is attached to. You can filter the results by Region, resource type, or both.
When using a small page size, a single call might not return the full list. A response can contain fewer than MaxResults results, or none, and still include a NextToken. Keep making requests until the response does not include a NextToken.
Parameters:
-
context_store_id(ContextStoreId) –The unique identifier of the context store. To get the identifiers of the context stores that are associated with your firewalls, call
ListContextStores. -
filters(Optional[ContextFilters], default:None) –Optional filters that limit the results to resources in a specific Region, of a specific resource type, or both. If you specify both filters, Network Firewall returns only the resources that match both.
-
max_results(Optional[PaginationMaxResults], default:None) –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. -
next_token(Optional[PaginationToken], default:None) –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.A token is valid only for the same
ContextStoreIdand filters as the request that returned it.
Raises:
-
InternalServerError–Your request is valid, but Network Firewall couldn't perform the operation because of a system problem. Retry your request.
-
InvalidRequestException–The operation failed because of a problem with your request. Examples include:
-
You specified an unsupported parameter name or value.
-
You tried to update a property with a value that isn't among the available types.
-
Your request references an ARN that is malformed, or corresponds to a resource that isn't valid in the context of the request.
-
-
ResourceNotFoundException–Unable to locate a resource using the parameters that you provided.
-
ThrottlingException–Unable to process the request due to throttling limitations.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_network_firewall/_services/async_network_firewall.py
4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 | |