list_resources_in_context_store
¶
list_resources_in_context_store(
context_store_id: ContextStoreId,
*,
config_overrides: Optional[NetworkFirewallClientConfig] = 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/network_firewall.py
4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 | |