Skip to content

Commit 2c6055f

Browse files
committed
Update specification.
1 parent a74d145 commit 2c6055f

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

scenarios/basics/controltower/SPECIFICATION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ Thanks for watching!
210210
## Errors
211211
The following errors are handled in the Control Tower wrapper class:
212212

213-
| action | Error | Handling |
213+
| Action | Error | Handling |
214214
|------------------------|-----------------------|------------------------------------------------------------------------|
215215
| `ListBaselines` | AccessDeniedException | Notify the user of insufficient permissions and exit. |
216216
| `ListEnabledBaselines` | AccessDeniedException | Notify the user of insufficient permissions and exit. |

scenarios/basics/iot/SPECIFICATION.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,29 @@ This scenario demonstrates the following key AWS IoT Service operations:
6868

6969
Note: We have buy off on these operations from IoT SME.
7070

71+
## Exception Handling
72+
73+
Each AWS IoT operation can throw specific exceptions that should be handled appropriately. The following table lists the potential exceptions for each action:
74+
75+
| Action | Error | Handling |
76+
|------------------------|---------------------------------|------------------------------------------------------------------------|
77+
| **CreateThing** | ResourceAlreadyExistsException | Skip the creation and notify the user
78+
| **CreateKeysAndCertificate** | ThrottlingException | Notify the user to try again later
79+
| **AttachThingPrincipal** | ResourceNotFoundException | Notify cannot perform action and return
80+
| **UpdateThing** | ResourceNotFoundException | Notify cannot perform action and return
81+
| **DescribeEndpoint** | ThrottlingException | Notify the user to try again later
82+
| **ListCertificates** | ThrottlingException | Notify the user to try again later
83+
| **UpdateThingShadow** | ResourceNotFoundException | Notify cannot perform action and return
84+
| **GetThingShadow** | ResourceNotFoundException | Notify cannot perform action and return
85+
| **CreateTopicRule** | ResourceAlreadyExistsException | Skip the creation and notify the user
86+
| **ListTopicRules** | ThrottlingException | Notify the user to try again later
87+
| **SearchIndex** | ThrottlingException | Notify the user to try again later
88+
| **DetachThingPrincipal** | ResourceNotFoundException | Notify cannot perform action and return
89+
| **DeleteCertificate** | ResourceNotFoundException | Notify cannot perform action and return
90+
| **DeleteThing** | ResourceNotFoundException | Notify cannot perform action and return
91+
| **ListThings** | ThrottlingException | Notify the user to try again later
92+
93+
7194
### Program execution
7295

7396
This scenario does have user interaction. The following shows the output of the program.
@@ -220,5 +243,5 @@ The following table describes the metadata used in this scenario.
220243
| `updateThing` | iot_metadata.yaml | iot_UpdateThing |
221244
| `createTopicRule` | iot_metadata.yaml | iot_CreateTopicRule |
222245
| `createThing` | iot_metadata.yaml | iot_CreateThing |
223-
| `hello ` | iot_metadata.yaml | iot_Hello |
246+
| `hello` | iot_metadata.yaml | iot_Hello |
224247
| `scenario | iot_metadata.yaml | iot_Scenario |

0 commit comments

Comments
 (0)