get_groups_for_capacity_reservation
async
¶
get_groups_for_capacity_reservation(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
capacity_reservation_id: Optional[CapacityReservationId] = None,
next_token: Optional[String] = None,
max_results: Optional[GetGroupsForCapacityReservationRequestMaxResults] = None,
dry_run: Optional[Boolean] = None,
) -> GetGroupsForCapacityReservationResult
Lists the resource groups to which a Capacity Reservation has been added.
Parameters:
-
capacity_reservation_id(Optional[CapacityReservationId], default:None) –The ID of the Capacity Reservation. If you specify a Capacity Reservation that is shared with you, the operation returns only Capacity Reservation groups that you own.
-
next_token(Optional[String], default:None) –The token to use to retrieve the next page of results.
-
max_results(Optional[GetGroupsForCapacityReservationRequestMaxResults], default:None) –The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.
-
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.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
44287 44288 44289 44290 44291 44292 44293 44294 44295 44296 44297 44298 44299 44300 44301 44302 44303 44304 44305 44306 44307 44308 44309 44310 44311 44312 44313 44314 44315 44316 44317 44318 44319 44320 44321 44322 44323 44324 44325 44326 44327 44328 44329 44330 44331 44332 44333 44334 44335 44336 44337 44338 44339 44340 44341 44342 44343 44344 44345 44346 | |