list_vehicles
async
¶
list_vehicles(
*,
config_overrides: Optional[AsyncIoTFleetWiseClientConfig] = 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/async_io_t_fleet_wise.py
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 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 | |