create_network_acl
async
¶
create_network_acl(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
tag_specifications: Optional[TagSpecificationList] = None,
client_token: Optional[String] = None,
dry_run: Optional[Boolean] = None,
vpc_id: Optional[VpcId] = None,
) -> CreateNetworkAclResult
Creates a network ACL in a VPC. Network ACLs provide an optional layer of security (in addition to security groups) for the instances in your VPC.
For more information, see Network ACLs in the Amazon VPC User Guide.
Parameters:
-
tag_specifications(Optional[TagSpecificationList], default:None) –The tags to assign to the network ACL.
-
client_token(Optional[String], default:None) –Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
-
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. -
vpc_id(Optional[VpcId], default:None) –The ID of the VPC.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To create a network ACL This example creates a network ACL for the specified VPC.
Source code in docs_src/capo_ec2/_services/async_ec2.py
10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 | |