Skip to content

Commit a7778a5

Browse files
author
AWS
committed
AWS IoT Greengrass V2 Update: This release adds error status details for deployments and components that failed on a device and adds features to improve visibility into component installation.
1 parent e46c8c6 commit a7778a5

File tree

2 files changed

+65
-2
lines changed

2 files changed

+65
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS IoT Greengrass V2",
4+
"contributor": "",
5+
"description": "This release adds error status details for deployments and components that failed on a device and adds features to improve visibility into component installation."
6+
}

services/greengrassv2/src/main/resources/codegen-resources/service-2.json

+59-2
Original file line numberDiff line numberDiff line change
@@ -1487,10 +1487,32 @@
14871487
"modifiedTimestamp":{
14881488
"shape":"Timestamp",
14891489
"documentation":"<p>The time at which the deployment job was last modified, expressed in ISO 8601 format.</p>"
1490+
},
1491+
"statusDetails":{
1492+
"shape":"EffectiveDeploymentStatusDetails",
1493+
"documentation":"<p>The status details that explain why a deployment has an error. This response will be null if the deployment is in a success state.</p>"
14901494
}
14911495
},
14921496
"documentation":"<p>Contains information about a deployment job that IoT Greengrass sends to a Greengrass core device.</p>"
14931497
},
1498+
"EffectiveDeploymentErrorCode":{
1499+
"type":"string",
1500+
"max":255,
1501+
"min":1
1502+
},
1503+
"EffectiveDeploymentErrorStack":{
1504+
"type":"list",
1505+
"member":{"shape":"EffectiveDeploymentErrorCode"}
1506+
},
1507+
"EffectiveDeploymentErrorType":{
1508+
"type":"string",
1509+
"max":255,
1510+
"min":1
1511+
},
1512+
"EffectiveDeploymentErrorTypeList":{
1513+
"type":"list",
1514+
"member":{"shape":"EffectiveDeploymentErrorType"}
1515+
},
14941516
"EffectiveDeploymentExecutionStatus":{
14951517
"type":"string",
14961518
"enum":[
@@ -1503,6 +1525,20 @@
15031525
"REJECTED"
15041526
]
15051527
},
1528+
"EffectiveDeploymentStatusDetails":{
1529+
"type":"structure",
1530+
"members":{
1531+
"errorStack":{
1532+
"shape":"EffectiveDeploymentErrorStack",
1533+
"documentation":"<p>Contains an ordered list of short error codes that range from the most generic error to the most specific one. The error codes describe the reason for failure whenever the <code>coreDeviceExecutionStatus</code> is in a failed state. The response will be an empty list if there is no error.</p>"
1534+
},
1535+
"errorTypes":{
1536+
"shape":"EffectiveDeploymentErrorTypeList",
1537+
"documentation":"<p>Contains tags which describe the error. You can use the error types to classify errors to assist with remediating the failure. The response will be an empty list if there is no error.</p>"
1538+
}
1539+
},
1540+
"documentation":"<p>Contains all error-related information for the deployment record. The status details will be null if the deployment is in a success state.</p> <note> <p>Greengrass nucleus v2.8.0 or later is required to get an accurate <code>errorStack</code> and <code>errorTypes</code> response. This field will not be returned for earlier Greengrass nucleus versions.</p> </note>"
1541+
},
15061542
"EffectiveDeploymentsList":{
15071543
"type":"list",
15081544
"member":{"shape":"EffectiveDeployment"}
@@ -1765,7 +1801,7 @@
17651801
},
17661802
"lifecycleStateDetails":{
17671803
"shape":"LifecycleStateDetails",
1768-
"documentation":"<p>The details about the lifecycle state of the component.</p>"
1804+
"documentation":"<p>A detailed response about the lifecycle state of the component that explains the reason why a component has an error or is broken.</p>"
17691805
},
17701806
"isRoot":{
17711807
"shape":"IsRoot",
@@ -1774,6 +1810,18 @@
17741810
"lastStatusChangeTimestamp":{
17751811
"shape":"Timestamp",
17761812
"documentation":"<p>The status of how current the data is.</p> <p>This response is based off of component state changes. The status reflects component disruptions and deployments. If a component only sees a configuration update during a deployment, it might not undergo a state change and this status would not be updated.</p>"
1813+
},
1814+
"lastReportedTimestamp":{
1815+
"shape":"Timestamp",
1816+
"documentation":"<p>The last time the Greengrass core device sent a message containing a certain component to the Amazon Web Services Cloud.</p> <p>A component does not need to see a state change for this field to update.</p>"
1817+
},
1818+
"lastInstallationSource":{
1819+
"shape":"NonEmptyString",
1820+
"documentation":"<p>The most recent deployment source that brought the component to the Greengrass core device. For a thing group deployment or thing deployment, the source will be the The ID of the deployment. and for local deployments it will be <code>LOCAL</code>.</p>"
1821+
},
1822+
"lifecycleStatusCodes":{
1823+
"shape":"InstalledComponentLifecycleStatusCodeList",
1824+
"documentation":"<p>The status codes that indicate the reason for failure whenever the <code>lifecycleState</code> has an error or is in a broken state.</p> <note> <p>Greengrass nucleus v2.8.0 or later is required to get an accurate <code>lifecycleStatusCodes</code> response. This response can be inaccurate in earlier Greengrass nucleus versions.</p> </note>"
17771825
}
17781826
},
17791827
"documentation":"<p>Contains information about a component on a Greengrass core device.</p>"
@@ -1791,6 +1839,15 @@
17911839
"FINISHED"
17921840
]
17931841
},
1842+
"InstalledComponentLifecycleStatusCode":{
1843+
"type":"string",
1844+
"max":255,
1845+
"min":1
1846+
},
1847+
"InstalledComponentLifecycleStatusCodeList":{
1848+
"type":"list",
1849+
"member":{"shape":"InstalledComponentLifecycleStatusCode"}
1850+
},
17941851
"InstalledComponentList":{
17951852
"type":"list",
17961853
"member":{"shape":"InstalledComponent"}
@@ -2512,7 +2569,7 @@
25122569
"members":{
25132570
"installedComponents":{
25142571
"shape":"InstalledComponentList",
2515-
"documentation":"<p>A list that summarizes each component on the core device.</p> <note> <p>Accuracy of the <code>lastStatusChangeTimestamp</code> response depends on Greengrass nucleus v2.7.0. It performs best on Greengrass nucleus v2.7.0 and can be inaccurate on earlier versions.</p> </note>"
2572+
"documentation":"<p>A list that summarizes each component on the core device.</p> <note> <p>Greengrass nucleus v2.7.0 or later is required to get an accurate <code>lastStatusChangeTimestamp</code> response. This response can be inaccurate in earlier Greengrass nucleus versions.</p> </note> <note> <p>Greengrass nucleus v2.8.0 or later is required to get an accurate <code>lastInstallationSource</code> and <code>lastReportedTimestamp</code> response. This response can be inaccurate or null in earlier Greengrass nucleus versions.</p> </note>"
25162573
},
25172574
"nextToken":{
25182575
"shape":"NextTokenString",

0 commit comments

Comments
 (0)