list_attachment_nat_configurations
async
¶
list_attachment_nat_configurations(
*,
config_overrides: Optional[AsyncNetworkManagerClientConfig] = 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/async_network_manager.py
6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 | |