create_vehicle
async
¶
create_vehicle(
vehicle_name: vehicleName,
model_manifest_arn: arn,
decoder_manifest_arn: arn,
*,
config_overrides: Optional[AsyncIoTFleetWiseClientConfig] = 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/async_io_t_fleet_wise.py
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 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 | |