describe_capacity_reservation_billing_requests
async
¶
describe_capacity_reservation_billing_requests(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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/async_ec2.py
22919 22920 22921 22922 22923 22924 22925 22926 22927 22928 22929 22930 22931 22932 22933 22934 22935 22936 22937 22938 22939 22940 22941 22942 22943 22944 22945 22946 22947 22948 22949 22950 22951 22952 22953 22954 22955 22956 22957 22958 22959 22960 22961 22962 22963 22964 22965 22966 22967 22968 22969 22970 22971 22972 22973 22974 22975 22976 22977 22978 22979 22980 22981 22982 22983 22984 22985 22986 22987 | |