list_fleets
¶
list_fleets(
*,
config_overrides: Optional[IoTFleetWiseClientConfig] = None,
next_token: Optional[nextToken] = None,
max_results: Optional[maxResults] = None,
list_response_scope: Optional[ListResponseScope] = None,
) -> ListFleetsResponse
Retrieves information for each created fleet in an Amazon Web Services account.
This API operation uses pagination. Specify the nextToken parameter in the request to return more results.
Parameters:
-
next_token(Optional[nextToken], default:None) –A pagination token for the next set of results.
If the results of a search are large, only a portion of the results are returned, and a
nextTokenpagination token is returned in the response. To retrieve the next set of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value. -
max_results(Optional[maxResults], default:None) –The maximum number of items to return, between 1 and 100, inclusive.
-
list_response_scope(Optional[ListResponseScope], default:None) –When you set the
listResponseScopeparameter toMETADATA_ONLY, the list response includes: fleet ID, Amazon Resource Name (ARN), creation time, and last modification time.
Raises:
-
InternalServerException–The request couldn't be completed because the server temporarily failed.
-
AccessDeniedException–You don't have sufficient permission to perform this action.
-
ResourceNotFoundException–The resource wasn't found.
-
ThrottlingException–The request couldn't be completed due to throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.