describe_host_reservation_offerings
¶
describe_host_reservation_offerings(
*,
config_overrides: Optional[EC2ClientConfig] = 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/ec2.py
25113 25114 25115 25116 25117 25118 25119 25120 25121 25122 25123 25124 25125 25126 25127 25128 25129 25130 25131 25132 25133 25134 25135 25136 25137 25138 25139 25140 25141 25142 25143 25144 25145 25146 25147 25148 25149 25150 25151 25152 25153 25154 25155 25156 25157 25158 25159 25160 25161 25162 25163 25164 25165 25166 25167 25168 25169 25170 25171 25172 25173 25174 25175 25176 25177 | |