Skip to content

Commit eab2a08

Browse files
committed
rolled in review comments
1 parent cd4265e commit eab2a08

File tree

1 file changed

+88
-84
lines changed

1 file changed

+88
-84
lines changed

scenarios/basics/fleetwise/SPECIFICATION.md

Lines changed: 88 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -11,65 +11,58 @@ AWS Fleetwise and an AWS SDK.
1111
This Basics scenario does not require any additional AWS resources.
1212

1313
## Hello AWS Fleetwise
14-
This program is intended for users not familiar with the AWS IoT Fleetwise Service to easily get up and running. The program uses a `listSignalCatalogsPaginator` to demonstrate how you can read through catalog information.
14+
This program is intended for users not familiar with the AWS IoT Fleetwise Service to easily get up and running. The program uses a `listSignalCatalogsPaginator` to demonstrate how you can read through catalog information. If there are no catalogs, print out a message to inform the user.
1515

1616
## Basics Scenario Program Flow
1717
The AWS IoT Fleetwise Basics scenario executes the following operations.
1818

1919
1. **Create an AWS FleetWise collection**:
20-
- Description: This step creates an AWS Fleetwise collection by invoking the `createSignalCatalog` method.
20+
- Description: Creates an AWS Fleetwise collection by invoking `createSignalCatalog`.
2121
- Exception Handling: Check to see if a `ValidationException` is thrown.
2222
If it is thrown, if so, display the message and end the program.
2323

2424
2. **Create an IoT Fleetwise fleet**:
25-
- Description: This operation creates an AWS Fleetwise fleet.
26-
- The method `createFleet` is called.
27-
- Exception Handling: Check to see if a `ResourceNotFoundException` is thrown.
25+
- Description: Creates an AWS Fleetwise fleet by invoking `createFleet`.
26+
- Exception Handling: Check to see if a `ResourceNotFoundException` is thrown. If it is thrown, if so, display the message and end the program.
2827

2928
3. **Create a model manifest**:
30-
- Description: To create a model manifest, the method `listSignalCatalogNodes` is called to retrieve a list of nodes. This node list is passed to `createModelManifest()`.
31-
- Exception Handling: Check to see if an `CompletionException` is thrown. If so, display the message and end the program.
29+
- Description: Creates a model manifest by invoking `listSignalCatalogNodes` to retrieve a list of nodes. This node list is passed to `createModelManifest()`.
30+
- Exception Handling: Check to see if an `InvalidSignalsException` is thrown. If so, display the message and end the program.
3231

3332
4. **Create a decoder manifest**:
34-
- Description: This operation creates a decoder manifest.
35-
- This step uses the method `createDecoderManifest`.
36-
- Exception Handling: Check to see if a `CompletionException` is thrown. If so, display the message and end the program.
33+
- Description: Creates a decoder manifest by invoking `createDecoderManifest`.
34+
- Exception Handling: Check to see if a `DecoderManifestValidationException` is thrown. If so, display the message and end the program.
3735

3836
5. **Check the status of the model manifest**:
39-
- Description: This operation checks the status of the model manifest.
40-
- This step uses the `updateModelManifest`and `getModelManifest` methods.
41-
- Exception Handling: Check to see if a `CompletionException` is thrown. If so, display the message and end the program.
37+
- Description: Checks the status of the model manifest by invoking `updateModelManifest`and `getModelManifest`.
38+
- Exception Handling: Check to see if a `ResourceNotFoundException` is thrown. If so, display the message and end the program.
4239

4340
6. **Check the status of the decoder**:
44-
- Description: This operation creates an IoT Thing which is required to create a vehicle.
45-
- This step uses the `createThing` method.
46-
- Exception Handling: Check to see if a `RuntimeException` is thrown. If so, display the message and end the program.
41+
- Description: Checks the status of the decoder manifest by invoking `updateDecoderManifest`and `getDecoderManifest`.
42+
- Exception Handling: Check to see if a `ResourceNotFoundException` is thrown. If so, display the message and end the program.
4743

4844

4945
7. **Create an IoT Thing**:
50-
- Description: This operation describes the portal and returns a URL for the portal.
51-
- The method `describePortal` is called and returns the URL.
46+
- Description: Creates an IoT Thing which is required to create a vehicle by invoking `createThing`.
5247
- Exception Handling: Check to see if a `ResourceAlreadyExistsException` is thrown. If so, display the message and end the program.
5348

5449
8. **Create a vehicle**:
55-
- Description: This operation creates a vehicle.
56-
- The method `createVehicle` is called.
50+
- Description: Creates a vehicle by invoking `createVehicle`.
5751
- Exception Handling: Check to see if an `ResourceNotFoundException` is thrown. If so, display the message and end the program.
5852

5953
9. **Display vehicle details**:
60-
- Description: This operation describes the vehicle.
61-
- The method `getVehicle` is called.
62-
- Exception Handling: Check to see if a `???` is thrown. If so, display the message and end the program.
54+
- Description: Describes the vehicle by invoking `getVehicle`.
55+
- Exception Handling: Check to see if a `ResourceNotFoundException` is thrown. If so, display the message and end the program.
6356

6457
10. **Delete the AWS IoT Fleetwise Assets**:
6558
- The `delete` methods are called to clean up the resources.
6659
- Exception Handling: Check to see if a `ResourceNotFoundException` is thrown. If so, display the message and end the program."
6760

6861
### Program execution
69-
The following shows the output of the AWS IoT Fleetwise Basics scenario in the console.
62+
The following shows the output of the AWS IoT Fleetwise Basics scenario.
7063

7164
```
72-
AWS IoT FleetWise is a managed service that simplifies the
65+
WS IoT FleetWise is a managed service that simplifies the
7366
process of collecting, organizing, and transmitting vehicle
7467
data to the cloud in near real-time. Designed for automakers
7568
and fleet operators, it allows you to define vehicle models,
@@ -98,7 +91,7 @@ Continuing with the program...
9891
--------------------------------------------------------------------------------
9992
--------------------------------------------------------------------------------
10093
1. Creates a collection of standardized signals that can be reused to create vehicle models
101-
The collection ARN is arn:aws:iotfleetwise:us-east-1:814548047983:signal-catalog/catelogscott1
94+
The collection ARN is arn:aws:iotfleetwise:us-east-1:814548047983:signal-catalog/catalog60
10295
10396
Enter 'c' followed by <ENTER> to continue:
10497
c
@@ -107,20 +100,20 @@ Continuing with the program...
107100
--------------------------------------------------------------------------------
108101
--------------------------------------------------------------------------------
109102
2. Create a fleet that represents a group of vehicles
110-
Creating an IoT FleetWise fleet allows you to efficiently collect,
111-
organize, and transfer vehicle data to the cloud, enabling real-time
112-
insights into vehicle performance and health.
103+
Creating an IoT FleetWise fleet allows you to efficiently collect,
104+
organize, and transfer vehicle data to the cloud, enabling real-time
105+
insights into vehicle performance and health.
113106
114-
It helps reduce data costs by allowing you to filter and prioritize
115-
only the most relevant vehicle signals, supporting advanced analytics
116-
and predictive maintenance use cases.
107+
It helps reduce data costs by allowing you to filter and prioritize
108+
only the most relevant vehicle signals, supporting advanced analytics
109+
and predictive maintenance use cases.
117110
118111
119112
Enter 'c' followed by <ENTER> to continue:
120113
c
121114
Continuing with the program...
122115
123-
The fleet Id is fleetscott1
116+
The fleet Id is fleet60
124117
125118
Enter 'c' followed by <ENTER> to continue:
126119
c
@@ -140,7 +133,7 @@ Enter 'c' followed by <ENTER> to continue:
140133
c
141134
Continuing with the program...
142135
143-
The manifest ARN is arn:aws:iotfleetwise:us-east-1:814548047983:model-manifest/manifestscott1
136+
The manifest ARN is arn:aws:iotfleetwise:us-east-1:814548047983:model-manifest/manifest60
144137
145138
Enter 'c' followed by <ENTER> to continue:
146139
c
@@ -155,47 +148,57 @@ into meaningful signals. It acts as a translation layer
155148
that maps vehicle-specific protocols to standardized data formats
156149
using decoding rules. This is crucial for extracting usable
157150
data from different vehicle models, even when their data
158-
formats vary.
151+
formats vary.
159152
160153
161154
162155
Enter 'c' followed by <ENTER> to continue:
163156
c
164157
Continuing with the program...
165158
166-
The decoder manifest ARN is arn:aws:iotfleetwise:us-east-1:814548047983:decoder-manifest/decManifestscott1
159+
The decoder manifest ARN is arn:aws:iotfleetwise:us-east-1:814548047983:decoder-manifest/decManifest60
167160
168161
Enter 'c' followed by <ENTER> to continue:
169162
c
170163
Continuing with the program...
171164
172165
--------------------------------------------------------------------------------
173-
5. Check the status of the model
174-
The model manifest must be in an ACTIVE state before it can be used
175-
to create or update a vehicle.
166+
5. Check the status of the model manifest
167+
The model manifest must be in an ACTIVE state before it can be used
168+
to create or update a vehicle.
176169
177170
178171
Enter 'c' followed by <ENTER> to continue:
179172
c
180173
Continuing with the program...
181174
182-
⏱️ Elapsed: 5s | Status: ACTIVE ✅
175+
Elapsed: 0s | Status: DRAFT
176+
Elapsed: 1s | Status: DRAFT
177+
Elapsed: 2s | Status: DRAFT
178+
Elapsed: 3s | Status: DRAFT
179+
Elapsed: 4s | Status: DRAFT
180+
Elapsed: 5s | Status: ACTIVE
183181
184182
Enter 'c' followed by <ENTER> to continue:
185183
c
186184
Continuing with the program...
187185
188186
--------------------------------------------------------------------------------
189187
6. Check the status of the decoder
190-
The decoder manifest must be in an ACTIVE state before it can be used
191-
to create or update a vehicle.
188+
The decoder manifest must be in an ACTIVE state before it can be used
189+
to create or update a vehicle.
192190
193191
194192
Enter 'c' followed by <ENTER> to continue:
195193
c
196194
Continuing with the program...
197195
198-
⏱️ Elapsed: 5s | Decoder Status: ACTIVE ✅
196+
Elapsed: 0s | Decoder Status: DRAFT
197+
Elapsed: 1s | Decoder Status: DRAFT
198+
Elapsed: 2s | Decoder Status: DRAFT
199+
Elapsed: 3s | Decoder Status: DRAFT
200+
Elapsed: 4s | Decoder Status: DRAFT
201+
Elapsed: 5s | Decoder Status: ACTIVE
199202
200203
Enter 'c' followed by <ENTER> to continue:
201204
c
@@ -214,7 +217,7 @@ Enter 'c' followed by <ENTER> to continue:
214217
c
215218
Continuing with the program...
216219
217-
IoT Thing created: vechile1
220+
IoT Thing created: vehicle60
218221
219222
Enter 'c' followed by <ENTER> to continue:
220223
c
@@ -233,7 +236,7 @@ Enter 'c' followed by <ENTER> to continue:
233236
c
234237
Continuing with the program...
235238
236-
Vehicle 'vechile1' created successfully.
239+
Vehicle 'vehicle60' created successfully.
237240
238241
Enter 'c' followed by <ENTER> to continue:
239242
c
@@ -247,14 +250,14 @@ Enter 'c' followed by <ENTER> to continue:
247250
c
248251
Continuing with the program...
249252
250-
🚗 Vehicle Details:
251-
• modelManifestArn : arn:aws:iotfleetwise:us-east-1:814548047983:model-manifest/manifestscott1
252-
• vehicleName : vechile1
253-
• creationTime : 2025-04-16T18:10:00.332Z
254-
• lastModificationTime : 2025-04-16T18:10:00.332Z
255-
• decoderManifestArn : arn:aws:iotfleetwise:us-east-1:814548047983:decoder-manifest/decManifestscott1
256-
• attributes : {}
257-
• arn : arn:aws:iotfleetwise:us-east-1:814548047983:vehicle/vechile1
253+
Vehicle Details:
254+
• modelManifestArn : arn:aws:iotfleetwise:us-east-1:814548047983:model-manifest/manifest60
255+
• vehicleName : vehicle60
256+
• creationTime : 2025-04-29T16:00:02.147Z
257+
• lastModificationTime : 2025-04-29T16:00:02.147Z
258+
• decoderManifestArn : arn:aws:iotfleetwise:us-east-1:814548047983:decoder-manifest/decManifest60
259+
• attributes : {}
260+
• arn : arn:aws:iotfleetwise:us-east-1:814548047983:vehicle/vehicle60
258261
259262
Enter 'c' followed by <ENTER> to continue:
260263
c
@@ -265,46 +268,47 @@ Continuing with the program...
265268
10. Delete the AWS IoT Fleetwise Assets
266269
Would you like to delete the IoT Fleetwise Assets? (y/n)
267270
y
268-
✅ vechile1 was successfully deleted
269-
✅ decManifestscott1 was successfully deleted
270-
✅ manifestscott1 was successfully deleted
271-
✅ fleetscott1 was successfully deleted
272-
✅ catelogscott1 was successfully deleted
271+
vehicle60 was successfully deleted
272+
decManifest60 was successfully deleted
273+
manifest60 was successfully deleted
274+
fleet60 was successfully deleted
275+
catalog60 was successfully deleted
273276
--------------------------------------------------------------------------------
274-
You have successfully completed the AWS IoT Fleetwise scenario.
275-
--------------------------------------------------------------------------------
276-
277-
277+
Thank you for checking out the AWS IoT Fleetwise Service Use demo. We hope you
278+
learned something new, or got some inspiration for your own apps today.
279+
For more AWS code examples, have a look at:
280+
https://docs.aws.amazon.com/code-library/latest/ug/what-is-code-library.html
278281
282+
--------------------------------------------------------------------------------
279283
```
280284

281285
## SOS Tags
282286

283287
The following table describes the metadata used in this Basics Scenario.
284288

285289

286-
| action | metadata file | metadata key |
287-
|-----------------------|----------------------------|------------------------------------- |
288-
|`createSignalCatalog` |iot_fleetwise_metadata.yaml |iotfleetwise_CreateSignalCatalog |
289-
|`createFleet` |iot_fleetwise_metadata.yaml |iotfleetwise_CreateFleet |
290-
|`createGateway ` |iot_fleetwise_metadata.yaml |iotfleetwise_CreateGateway |
291-
|`createModelManifest` iot_fleetwise_metadata.yaml |iotfleetwise_CreateModelManifest |
292-
|`createDecoderManifest`|iot_fleetwise_metadata.yaml |iotfleetwise_CreateDecoderManifest |
293-
|`updateModelManifest` |iot_fleetwise_metadata.yaml |iotfleetwise_UpdateModelManifest |
294-
| `createPortal` |iot_fleetwise_metadata.yaml |iotfleetwise_CreatePortal |
295-
|`waitForModelManifest` |iot_fleetwise_metadata.yaml |iotfleetwise_WaitForModelManifest |
296-
|`updateDecoderManifest`|iot_fleetwise_metadata.yaml |iotfleetwise_updateDecoder |
297-
| `describeAssetModel` |iot_fleetwise_metadata.yaml |iotfleetwise_DescribeAssetModel |
298-
| `waitForDecoder ` |iot_fleetwise_metadata.yaml |iotfleetwise_WaitForDecoder |
299-
| `createVehicle` |iot_fleetwise_metadata.yaml |iotfleetwise_CreateVehicle |
300-
| `getVehicle` |iot_fleetwise_metadata.yaml |iotfleetwise_GetVehicle |
301-
| `deleteVehicle ` |iot_fleetwise_metadata.yaml |iotfleetwise_DeleteVehicle |
302-
| `deleteVehicle ` |iot_fleetwise_metadata.yaml |iotfleetwise_DeleteVehicle |
303-
| `deleteFleet ` |iot_fleetwise_metadata.yaml |iotfleetwise_DeleteFleet |
304-
| `deleteModel` |iot_fleetwise_metadata.yaml |iotfleetwise_DeleteModel |
305-
| `deleteSignal ` |iot_fleetwise_metadata.yaml |iotfleetwise_DeleteSignal |
306-
| `scenario` |iot_fleetwise_metadata.yaml |iotfleetwise_Scenario |
307-
| `hello` |iot_fleetwise_metadata.yaml |iotfleetwise_Hello |
290+
| action | metadata file | metadata key |
291+
|------------------------|----------------------------|------------------------------------- |
292+
|`createSignalCatalog` |iot_fleetwise_metadata.yaml |iotfleetwise_CreateSignalCatalog |
293+
|`createFleet` |iot_fleetwise_metadata.yaml |iotfleetwise_CreateFleet |
294+
|`createGateway ` |iot_fleetwise_metadata.yaml |iotfleetwise_CreateGateway |
295+
|`createModelManifest` iot_fleetwise_metadata.yaml |iotfleetwise_CreateModelManifest |
296+
|`createDecoderManifest` |iot_fleetwise_metadata.yaml |iotfleetwise_CreateDecoderManifest |
297+
|`updateModelManifest` |iot_fleetwise_metadata.yaml |iotfleetwise_UpdateModelManifest |
298+
| `createPortal` |iot_fleetwise_metadata.yaml |iotfleetwise_CreatePortal |
299+
|`waitForModelManifest` |iot_fleetwise_metadata.yaml |iotfleetwise_WaitForModelManifest |
300+
|`updateDecoderManifest` |iot_fleetwise_metadata.yaml |iotfleetwise_updateDecoder |
301+
| `describeAssetModel` |iot_fleetwise_metadata.yaml |iotfleetwise_DescribeAssetModel |
302+
| `waitForDecoder ` |iot_fleetwise_metadata.yaml |iotfleetwise_WaitForDecoder |
303+
| `createVehicle` |iot_fleetwise_metadata.yaml |iotfleetwise_CreateVehicle |
304+
| `getVehicle` |iot_fleetwise_metadata.yaml |iotfleetwise_GetVehicle |
305+
| `deleteVehicle ` |iot_fleetwise_metadata.yaml |iotfleetwise_DeleteVehicle |
306+
|`deleteDecoderManifest` |iot_fleetwise_metadata.yaml |iotfleetwise_DeleteDecoder |
307+
| `deleteFleet ` |iot_fleetwise_metadata.yaml |iotfleetwise_DeleteFleet |
308+
| `deleteModel` |iot_fleetwise_metadata.yaml |iotfleetwise_DeleteModel |
309+
| `deleteSignal ` |iot_fleetwise_metadata.yaml |iotfleetwise_DeleteSignal |
310+
| `scenario` |iot_fleetwise_metadata.yaml |iotfleetwise_Scenario |
311+
| `hello` |iot_fleetwise_metadata.yaml |iotfleetwise_Hello |
308312

309313

310314

0 commit comments

Comments
 (0)