create_subnet_cidr_reservation
¶
create_subnet_cidr_reservation(
*,
config_overrides: Optional[EC2ClientConfig] = 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/ec2.py
12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 | |