get_subnet_cidr_reservations
async
¶
get_subnet_cidr_reservations(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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/async_ec2.py
47443 47444 47445 47446 47447 47448 47449 47450 47451 47452 47453 47454 47455 47456 47457 47458 47459 47460 47461 47462 47463 47464 47465 47466 47467 47468 47469 47470 47471 47472 47473 47474 47475 47476 47477 47478 47479 47480 47481 47482 47483 47484 47485 47486 47487 47488 47489 47490 47491 47492 47493 47494 47495 47496 47497 47498 47499 47500 47501 47502 47503 47504 | |