get_subnet_cidr_reservations
¶
get_subnet_cidr_reservations(
*,
config_overrides: Optional[EC2ClientConfig] = None,
filters: Optional[FilterList] = None,
subnet_id: Optional[SubnetId] = None,
dry_run: Optional[Boolean] = None,
next_token: Optional[String] = None,
max_results: Optional[GetSubnetCidrReservationsMaxResults] = None,
) -> GetSubnetCidrReservationsResult
Gets information about the subnet CIDR reservations.
Parameters:
-
filters(Optional[FilterList], default:None) –One or more filters.
-
reservationType- The type of reservation (prefix|explicit). -
subnet-id- The ID of the subnet. -
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 key Ownerand 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.
-
-
subnet_id(Optional[SubnetId], default:None) –The ID of the subnet.
-
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. -
next_token(Optional[String], default:None) –The token for the next page of results.
-
max_results(Optional[GetSubnetCidrReservationsMaxResults], default:None) –The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned
nextTokenvalue.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/ec2.py
46798 46799 46800 46801 46802 46803 46804 46805 46806 46807 46808 46809 46810 46811 46812 46813 46814 46815 46816 46817 46818 46819 46820 46821 46822 46823 46824 46825 46826 46827 46828 46829 46830 46831 46832 46833 46834 46835 46836 46837 46838 46839 46840 46841 46842 46843 46844 46845 46846 46847 46848 46849 46850 46851 46852 46853 46854 46855 46856 46857 46858 | |