IoTFleetWise.Client.
create_vehicle
(**kwargs)¶Creates a vehicle, which is an instance of a vehicle model (model manifest). Vehicles created from the same vehicle model consist of the same signals inherited from the vehicle model.
Note
If you have an existing Amazon Web Services IoT Thing, you can use Amazon Web Services IoT FleetWise to create a vehicle and collect data from your thing.
For more information, see Create a vehicle (AWS CLI) in the Amazon Web Services IoT FleetWise Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.create_vehicle(
vehicleName='string',
modelManifestArn='string',
decoderManifestArn='string',
attributes={
'string': 'string'
},
associationBehavior='CreateIotThing'|'ValidateIotThingExists',
tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
[REQUIRED]
The unique ID of the vehicle to create.
[REQUIRED]
The Amazon Resource Name ARN of a vehicle model.
[REQUIRED]
The ARN of a decoder manifest.
Static information about a vehicle in a key-value pair. For example: "engineType"
: "1.3 L R2"
An option to create a new Amazon Web Services IoT thing when creating a vehicle, or to validate an existing Amazon Web Services IoT thing as a vehicle.
Default:
Metadata that can be used to manage the vehicle.
A set of key/value pairs that are used to manage the resource.
The tag's key.
The tag's value.
dict
Response Syntax
{
'vehicleName': 'string',
'arn': 'string',
'thingArn': 'string'
}
Response Structure
(dict) --
vehicleName (string) --
The unique ID of the created vehicle.
arn (string) --
The ARN of the created vehicle.
thingArn (string) --
The ARN of a created or validated Amazon Web Services IoT thing.
Exceptions
IoTFleetWise.Client.exceptions.InternalServerException
IoTFleetWise.Client.exceptions.ResourceNotFoundException
IoTFleetWise.Client.exceptions.ConflictException
IoTFleetWise.Client.exceptions.LimitExceededException
IoTFleetWise.Client.exceptions.ThrottlingException
IoTFleetWise.Client.exceptions.ValidationException
IoTFleetWise.Client.exceptions.AccessDeniedException