create_vehicle
¶
create_vehicle(
vehicle_name: vehicleName,
model_manifest_arn: arn,
decoder_manifest_arn: arn,
*,
config_overrides: Optional[IoTFleetWiseClientConfig] = None,
attributes: Optional[attributesMap] = None,
association_behavior: Optional[VehicleAssociationBehavior] = None,
tags: Optional[TagList] = None,
state_templates: Optional[StateTemplateAssociations] = None,
) -> CreateVehicleResponse
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.
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.
Parameters:
-
vehicle_name(vehicleName) –The unique ID of the vehicle to create.
-
model_manifest_arn(arn) –The Amazon Resource Name ARN of a vehicle model.
-
decoder_manifest_arn(arn) –The ARN of a decoder manifest.
-
attributes(Optional[attributesMap], default:None) –Static information about a vehicle in a key-value pair. For example:
"engineType":"1.3 L R2"To use attributes with Campaigns or State Templates, you must include them using the request parameters
dataExtraDimensionsand/ormetadataExtraDimensions(for state templates only) when creating your campaign/state template. -
association_behavior(Optional[VehicleAssociationBehavior], default:None) –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:
-
tags(Optional[TagList], default:None) –Metadata that can be used to manage the vehicle.
-
state_templates(Optional[StateTemplateAssociations], default:None) –Associate state templates with the vehicle. You can monitor the last known state of the vehicle in near real 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.
-
ConflictException–The request has conflicting operations. This can occur if you're trying to perform more than one operation on the same resource at the same time.
-
LimitExceededException–A service quota was exceeded.
-
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.
Source code in docs_src/capo_iotfleetwise/_services/io_t_fleet_wise.py
3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 | |