describe_capacity_reservation_fleets
async
¶
describe_capacity_reservation_fleets(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
capacity_reservation_fleet_ids: Optional[CapacityReservationFleetIdSet] = None,
next_token: Optional[String] = None,
max_results: Optional[DescribeCapacityReservationFleetsMaxResults] = None,
filters: Optional[FilterList] = None,
dry_run: Optional[Boolean] = None,
) -> DescribeCapacityReservationFleetsResult
Describes one or more Capacity Reservation Fleets.
Parameters:
-
capacity_reservation_fleet_ids(Optional[CapacityReservationFleetIdSet], default:None) –The IDs of the Capacity Reservation Fleets to describe.
-
next_token(Optional[String], default:None) –The token to use to retrieve the next page of results.
-
max_results(Optional[DescribeCapacityReservationFleetsMaxResults], 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.
-
state- The state of the Fleet (submitted|modifying|active|partially_fulfilled|expiring|expired|cancelling|cancelled|failed). -
instance-match-criteria- The instance matching criteria for the Fleet. Onlyopenis supported. -
tenancy- The tenancy of the Fleet (default|dedicated). -
allocation-strategy- The allocation strategy used by the Fleet. Onlyprioritizedis supported.
-
-
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
23191 23192 23193 23194 23195 23196 23197 23198 23199 23200 23201 23202 23203 23204 23205 23206 23207 23208 23209 23210 23211 23212 23213 23214 23215 23216 23217 23218 23219 23220 23221 23222 23223 23224 23225 23226 23227 23228 23229 23230 23231 23232 23233 23234 23235 23236 23237 23238 23239 23240 23241 23242 23243 23244 23245 23246 23247 23248 23249 23250 23251 23252 23253 23254 | |