describe_capacity_reservation_billing_requests
¶
describe_capacity_reservation_billing_requests(
*,
config_overrides: Optional[EC2ClientConfig] = None,
capacity_reservation_ids: Optional[CapacityReservationIdSet] = None,
role: Optional[CallerRole] = None,
next_token: Optional[String] = None,
max_results: Optional[
DescribeCapacityReservationBillingRequestsRequestMaxResults
] = None,
filters: Optional[FilterList] = None,
dry_run: Optional[Boolean] = None,
) -> DescribeCapacityReservationBillingRequestsResult
Describes a request to assign the billing of the unused capacity of a Capacity Reservation. For more information, see Billing assignment for shared Amazon EC2 Capacity Reservations.
Parameters:
-
capacity_reservation_ids(Optional[CapacityReservationIdSet], default:None) –The ID of the Capacity Reservation.
-
role(Optional[CallerRole], default:None) –Specify one of the following:
-
odcr-owner- If you are the Capacity Reservation owner, specify this value to view requests that you have initiated. Not supported with therequested-byfilter. -
unused-reservation-billing-owner- If you are the consumer account, specify this value to view requests that have been sent to you. Not supported with theunused-reservation-billing-ownerfilter.
-
-
next_token(Optional[String], default:None) –The token to use to retrieve the next page of results.
-
max_results(Optional[DescribeCapacityReservationBillingRequestsRequestMaxResults], 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.
-
filters(Optional[FilterList], default:None) –One or more filters.
-
status- The state of the request (pending|accepted|rejected|cancelled|revoked|expired). -
requested-by- The account ID of the Capacity Reservation owner that initiated the request. Not supported if you specifyrequested-byfor Role. -
unused-reservation-billing-owner- The ID of the consumer account to which the request was sent. Not supported if you specifyunused-reservation-billing-ownerfor Role.
-
-
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/ec2.py
22600 22601 22602 22603 22604 22605 22606 22607 22608 22609 22610 22611 22612 22613 22614 22615 22616 22617 22618 22619 22620 22621 22622 22623 22624 22625 22626 22627 22628 22629 22630 22631 22632 22633 22634 22635 22636 22637 22638 22639 22640 22641 22642 22643 22644 22645 22646 22647 22648 22649 22650 22651 22652 22653 22654 22655 22656 22657 22658 22659 22660 22661 22662 22663 22664 22665 22666 22667 | |