list_vehicles
¶
list_vehicles(
*,
config_overrides: Optional[IoTFleetWiseClientConfig] = None,
model_manifest_arn: Optional[arn] = None,
attribute_names: Optional[attributeNamesList] = None,
attribute_values: Optional[attributeValuesList] = None,
next_token: Optional[nextToken] = None,
max_results: Optional[listVehiclesMaxResults] = None,
list_response_scope: Optional[ListResponseScope] = None,
) -> ListVehiclesResponse
Retrieves a list of summaries of created vehicles.
This API operation uses pagination. Specify the nextToken parameter in the request to return more results.
Parameters:
-
model_manifest_arn(Optional[arn], default:None) –The Amazon Resource Name (ARN) of a vehicle model (model manifest). You can use this optional parameter to list only the vehicles created from a certain vehicle model.
-
attribute_names(Optional[attributeNamesList], default:None) –The fully qualified names of the attributes. You can use this optional parameter to list the vehicles containing all the attributes in the request. For example,
attributeNamescould be "Vehicle.Body.Engine.Type, Vehicle.Color" and the correspondingattributeValuescould be "1.3 L R2, Blue" . In this case, the API will filter vehicles with an attribute nameVehicle.Body.Engine.Typethat contains a value of1.3 L R2AND an attribute nameVehicle.Colorthat contains a value of "Blue". A request must contain unique values for theattributeNamesfilter and the matching number ofattributeValuesfilters to return the subset of vehicles that match the attributes filter condition. -
attribute_values(Optional[attributeValuesList], default:None) –Static information about a vehicle attribute value in string format. You can use this optional parameter in conjunction with
attributeNamesto list the vehicles containing all theattributeValuescorresponding to theattributeNamesfilter. For example,attributeValuescould be "1.3 L R2, Blue" and the correspondingattributeNamesfilter could be "Vehicle.Body.Engine.Type, Vehicle.Color". In this case, the API will filter vehicles with attribute nameVehicle.Body.Engine.Typethat contains a value of1.3 L R2AND an attribute nameVehicle.Colorthat contains a value of "Blue". A request must contain unique values for theattributeNamesfilter and the matching number ofattributeValuesfilter to return the subset of vehicles that match the attributes filter condition. -
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[listVehiclesMaxResults], 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: vehicle name, 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.
-
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.
Source code in docs_src/capo_iotfleetwise/_services/io_t_fleet_wise.py
3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 | |