Skip to main content

vehicles

Creates, updates, deletes or gets a vehicle resource or lists vehicles in a region

Overview

Namevehicles
TypeResource
DescriptionDefinition of AWS::IoTFleetWise::Vehicle Resource Type
Idaws.iotfleetwise.vehicles

Fields

NameDatatypeDescription
arnstring
association_behaviorstring
attributesobject
creation_timestring
decoder_manifest_arnstring
namestring
last_modification_timestring
model_manifest_arnstring
tagsarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, DecoderManifestArn, ModelManifestArn, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all vehicles in a region.

SELECT
region,
arn,
association_behavior,
attributes,
creation_time,
decoder_manifest_arn,
name,
last_modification_time,
model_manifest_arn,
tags
FROM aws.iotfleetwise.vehicles
WHERE region = 'us-east-1';

Gets all properties from an individual vehicle.

SELECT
region,
arn,
association_behavior,
attributes,
creation_time,
decoder_manifest_arn,
name,
last_modification_time,
model_manifest_arn,
tags
FROM aws.iotfleetwise.vehicles
WHERE region = 'us-east-1' AND data__Identifier = '<Name>';

INSERT example

Use the following StackQL query and manifest file to create a new vehicle resource, using stack-deploy.

/*+ create */
INSERT INTO aws.iotfleetwise.vehicles (
DecoderManifestArn,
Name,
ModelManifestArn,
region
)
SELECT
'{{ DecoderManifestArn }}',
'{{ Name }}',
'{{ ModelManifestArn }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.iotfleetwise.vehicles
WHERE data__Identifier = '<Name>'
AND region = 'us-east-1';

Permissions

To operate on the vehicles resource, the following permissions are required:

Create

iotfleetwise:GetVehicle,
iotfleetwise:CreateVehicle,
iot:CreateThing,
iot:DescribeThing,
iotfleetwise:ListTagsForResource,
iotfleetwise:ListVehicles,
iotfleetwise:TagResource

Read

iotfleetwise:GetVehicle,
iotfleetwise:ListTagsForResource

Update

iotfleetwise:GetVehicle,
iotfleetwise:UpdateVehicle,
iotfleetwise:ListTagsForResource,
iotfleetwise:TagResource,
iotfleetwise:UntagResource

Delete

iotfleetwise:GetVehicle,
iotfleetwise:DeleteVehicle

List

iotfleetwise:ListVehicles