describe_host_reservation_offerings
async
¶
describe_host_reservation_offerings(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
filter: Optional[FilterList] = None,
max_duration: Optional[Integer] = None,
max_results: Optional[DescribeHostReservationsMaxResults] = None,
min_duration: Optional[Integer] = None,
next_token: Optional[String] = None,
offering_id: Optional[OfferingId] = None,
) -> DescribeHostReservationOfferingsResult
Describes the Dedicated Host reservations that are available to purchase.
The results describe all of the Dedicated Host reservation offerings, including offerings that might not match the instance family and Region of your Dedicated Hosts. When purchasing an offering, ensure that the instance family and Region of the offering matches that of the Dedicated Hosts with which it is to be associated. For more information about supported instance types, see Dedicated Hosts in the Amazon EC2 User Guide.
Parameters:
-
filter(Optional[FilterList], default:None) –The filters.
-
instance-family- The instance family of the offering (for example,m4). -
payment-option- The payment option (NoUpfront|PartialUpfront|AllUpfront).
-
-
max_duration(Optional[Integer], default:None) –This is the maximum duration of the reservation to purchase, specified in seconds. Reservations are available in one-year and three-year terms. The number of seconds specified must be the number of seconds in a year (365x24x60x60) times one of the supported durations (1 or 3). For example, specify 94608000 for three years.
-
max_results(Optional[DescribeHostReservationsMaxResults], default:None) –The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned
nextTokenvalue. This value can be between 5 and 500. IfmaxResultsis given a larger value than 500, you receive an error. -
min_duration(Optional[Integer], default:None) –This is the minimum duration of the reservation you'd like to purchase, specified in seconds. Reservations are available in one-year and three-year terms. The number of seconds specified must be the number of seconds in a year (365x24x60x60) times one of the supported durations (1 or 3). For example, specify 31536000 for one year.
-
next_token(Optional[String], default:None) –The token to use to retrieve the next page of results.
-
offering_id(Optional[OfferingId], default:None) –The ID of the reservation offering.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
25462 25463 25464 25465 25466 25467 25468 25469 25470 25471 25472 25473 25474 25475 25476 25477 25478 25479 25480 25481 25482 25483 25484 25485 25486 25487 25488 25489 25490 25491 25492 25493 25494 25495 25496 25497 25498 25499 25500 25501 25502 25503 25504 25505 25506 25507 25508 25509 25510 25511 25512 25513 25514 25515 25516 25517 25518 25519 25520 25521 25522 25523 25524 25525 25526 25527 | |