list_attachment_nat_configurations
¶
list_attachment_nat_configurations(
*,
config_overrides: Optional[NetworkManagerClientConfig] = None,
core_network_id: Optional[CoreNetworkId] = None,
attachment_id: Optional[AttachmentId] = None,
filters: Optional[FilterMap] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListAttachmentNatConfigurationsResponse
Returns the NAT configurations of core network attachments. You must specify either a core network ID or an attachment ID. Only the core network owner can list NAT configurations.
Parameters:
-
core_network_id(Optional[CoreNetworkId], default:None) –The ID of a core network. Returns the NAT configurations of attachments in the core network that support NAT.
-
attachment_id(Optional[AttachmentId], default:None) –The ID of an attachment. Returns the NAT configuration of the specified attachment. If you specify both an attachment ID and a core network ID, the attachment ID is used.
-
filters(Optional[FilterMap], default:None) –The filters to apply to the results. Values for the same filter are joined with OR, and different filters are joined with AND. You can specify up to 10 filter values in total. The following filters are supported:
-
nat-gateway-support: The state of NAT gateway support on the attachment, for exampleENABLED. -
nat-system-route-support: Whether system routes are installed for the attachment,trueorfalse. -
rule-number: The rule number of a NAT rule. -
match-source-cidr: The source CIDR block of a NAT rule. The value must exactly match the CIDR block of the rule. -
nat-cidr: The NAT CIDR block of a NAT rule. The value must exactly match the CIDR block of the rule. -
nat-rule-state: The state of a NAT rule, for exampleACTIVATED.
-
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return.
-
next_token(Optional[NextToken], default:None) –The token for the next page of results.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–The request has failed due to an internal error.
-
ResourceNotFoundException–The specified resource could not be found.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_networkmanager/_services/network_manager.py
6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 | |