create_subnet_cidr_reservation
async
¶
create_subnet_cidr_reservation(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
subnet_id: Optional[SubnetId] = None,
cidr: Optional[String] = None,
reservation_type: Optional[SubnetCidrReservationType] = None,
description: Optional[String] = None,
dry_run: Optional[Boolean] = None,
tag_specifications: Optional[TagSpecificationList] = None,
) -> CreateSubnetCidrReservationResult
Creates a subnet CIDR reservation. For more information, see Subnet CIDR reservations in the Amazon VPC User Guide and Manage prefixes for your network interfaces in the Amazon EC2 User Guide.
Parameters:
-
subnet_id(Optional[SubnetId], default:None) –The ID of the subnet.
-
cidr(Optional[String], default:None) –The IPv4 or IPV6 CIDR range to reserve.
-
reservation_type(Optional[SubnetCidrReservationType], default:None) –The type of reservation. The reservation type determines how the reserved IP addresses are assigned to resources.
-
prefix- Amazon Web Services assigns the reserved IP addresses to network interfaces. -
explicit- You assign the reserved IP addresses to network interfaces.
-
-
description(Optional[String], default:None) –The description to assign to the subnet CIDR reservation.
-
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. -
tag_specifications(Optional[TagSpecificationList], default:None) –The tags to assign to the subnet CIDR reservation.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 | |