describe_network_acls
¶
describe_network_acls(
*,
config_overrides: Optional[EC2ClientConfig] = 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/ec2.py
30072 30073 30074 30075 30076 30077 30078 30079 30080 30081 30082 30083 30084 30085 30086 30087 30088 30089 30090 30091 30092 30093 30094 30095 30096 30097 30098 30099 30100 30101 30102 30103 30104 30105 30106 30107 30108 30109 30110 30111 30112 30113 30114 30115 30116 30117 30118 30119 30120 30121 30122 30123 30124 30125 30126 30127 30128 30129 30130 30131 30132 30133 30134 30135 30136 30137 30138 30139 30140 | |