describe_fleets
¶
describe_fleets(
*,
config_overrides: Optional[EC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
max_results: Optional[Integer] = None,
next_token: Optional[String] = None,
fleet_ids: Optional[FleetIdSet] = None,
filters: Optional[FilterList] = None,
) -> DescribeFleetsResult
Describes the specified EC2 Fleet or all of your EC2 Fleets.
If a fleet is of type instant, you must specify the fleet ID in the request, otherwise the fleet does not appear in the response.
For more information, see Describe your EC2 Fleet in the Amazon EC2 User Guide.
Parameters:
-
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. -
max_results(Optional[Integer], 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.
-
next_token(Optional[String], default:None) –The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
-
fleet_ids(Optional[FleetIdSet], default:None) –The IDs of the EC2 Fleets.
If a fleet is of type
instant, you must specify the fleet ID, otherwise it does not appear in the response. -
filters(Optional[FilterList], default:None) –The filters.
-
activity-status- The progress of the EC2 Fleet (error|pending-fulfillment|pending-termination|fulfilled). -
excess-capacity-termination-policy- Indicates whether to terminate running instances if the target capacity is decreased below the current EC2 Fleet size (true|false). -
fleet-state- The state of the EC2 Fleet (submitted|active|deleted|failed|deleted-running|deleted-terminating|modifying). -
replace-unhealthy-instances- Indicates whether EC2 Fleet should replace unhealthy instances (true|false). -
type- The type of request (instant|request|maintain).
-
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/ec2.py
24784 24785 24786 24787 24788 24789 24790 24791 24792 24793 24794 24795 24796 24797 24798 24799 24800 24801 24802 24803 24804 24805 24806 24807 24808 24809 24810 24811 24812 24813 24814 24815 24816 24817 24818 24819 24820 24821 24822 24823 24824 24825 24826 24827 24828 24829 24830 24831 24832 24833 24834 24835 24836 24837 24838 24839 24840 24841 24842 | |