describe_network_acls
async
¶
describe_network_acls(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
next_token: Optional[String] = None,
max_results: Optional[DescribeNetworkAclsMaxResults] = None,
dry_run: Optional[Boolean] = None,
network_acl_ids: Optional[NetworkAclIdStringList] = None,
filters: Optional[FilterList] = None,
) -> DescribeNetworkAclsResult
Describes your network ACLs. The default is to describe all your network ACLs. Alternatively, you can specify specific network ACL IDs or filter the results to include only the network ACLs that match specific criteria.
For more information, see Network ACLs in the Amazon VPC User Guide.
Parameters:
-
next_token(Optional[String], default:None) –The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
-
max_results(Optional[DescribeNetworkAclsMaxResults], default:None) –The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.
-
dry_run(Optional[Boolean], default:None) –Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation. -
network_acl_ids(Optional[NetworkAclIdStringList], default:None) –The IDs of the network ACLs.
-
filters(Optional[FilterList], default:None) –The filters.
-
association.association-id- The ID of an association ID for the ACL. -
association.network-acl-id- The ID of the network ACL involved in the association. -
association.subnet-id- The ID of the subnet involved in the association. -
default- Indicates whether the ACL is the default network ACL for the VPC. -
entry.cidr- The IPv4 CIDR range specified in the entry. -
entry.icmp.code- The ICMP code specified in the entry, if any. -
entry.icmp.type- The ICMP type specified in the entry, if any. -
entry.ipv6-cidr- The IPv6 CIDR range specified in the entry. -
entry.port-range.from- The start of the port range specified in the entry. -
entry.port-range.to- The end of the port range specified in the entry. -
entry.protocol- The protocol specified in the entry (tcp|udp|icmpor a protocol number). -
entry.rule-action- Allows or denies the matching traffic (allow|deny). -
entry.egress- A Boolean that indicates the type of rule. Specifytruefor egress rules, orfalsefor ingress rules. -
entry.rule-number- The number of an entry (in other words, rule) in the set of ACL entries. -
network-acl-id- The ID of the network ACL. -
owner-id- The ID of the Amazon Web Services account that owns the network ACL. -
tag- The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the keyOwnerand the valueTeamA, specifytag:Ownerfor the filter name andTeamAfor the filter value. -
tag-key- The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value. -
vpc-id- The ID of the VPC for the network ACL.
-
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To describe a network ACL This example describes the specified network ACL.
Source code in docs_src/capo_ec2/_services/async_ec2.py
30482 30483 30484 30485 30486 30487 30488 30489 30490 30491 30492 30493 30494 30495 30496 30497 30498 30499 30500 30501 30502 30503 30504 30505 30506 30507 30508 30509 30510 30511 30512 30513 30514 30515 30516 30517 30518 30519 30520 30521 30522 30523 30524 30525 30526 30527 30528 30529 30530 30531 30532 30533 30534 30535 30536 30537 30538 30539 30540 30541 30542 30543 30544 30545 30546 30547 30548 30549 30550 30551 | |