Skip to main content

fleets

Creates, updates, deletes or gets a fleet resource or lists fleets in a region

Overview

Namefleets
TypeResource
DescriptionDefinition of AWS::IoTFleetWise::Fleet Resource Type
Idaws.iotfleetwise.fleets

Fields

NameDatatypeDescription
arnstring
creation_timestring
descriptionstring
idstring
last_modification_timestring
signal_catalog_arnstring
tagsarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTId, SignalCatalogArn, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all fleets in a region.

SELECT
region,
arn,
creation_time,
description,
id,
last_modification_time,
signal_catalog_arn,
tags
FROM aws.iotfleetwise.fleets
WHERE region = 'us-east-1';

Gets all properties from an individual fleet.

SELECT
region,
arn,
creation_time,
description,
id,
last_modification_time,
signal_catalog_arn,
tags
FROM aws.iotfleetwise.fleets
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';

INSERT example

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

/*+ create */
INSERT INTO aws.iotfleetwise.fleets (
Id,
SignalCatalogArn,
region
)
SELECT
'{{ Id }}',
'{{ SignalCatalogArn }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

iotfleetwise:GetFleet,
iotfleetwise:CreateFleet,
iotfleetwise:ListTagsForResource,
iotfleetwise:ListVehiclesInFleet,
iotfleetwise:TagResource

Read

iotfleetwise:GetFleet,
iotfleetwise:ListTagsForResource

Update

iotfleetwise:GetFleet,
iotfleetwise:UpdateFleet,
iotfleetwise:ListTagsForResource,
iotfleetwise:TagResource,
iotfleetwise:UntagResource

Delete

iotfleetwise:GetFleet,
iotfleetwise:DeleteFleet

List

iotfleetwise:ListFleets