@@ -1042,6 +1042,18 @@ export interface NetworkStatus {
1042
1042
LastUpdatedTime ?: Date ;
1043
1043
}
1044
1044
1045
+ export enum DeviceAggregatedStatus {
1046
+ AWAITING_PROVISIONING = "AWAITING_PROVISIONING" ,
1047
+ DELETING = "DELETING" ,
1048
+ ERROR = "ERROR" ,
1049
+ FAILED = "FAILED" ,
1050
+ LEASE_EXPIRED = "LEASE_EXPIRED" ,
1051
+ OFFLINE = "OFFLINE" ,
1052
+ ONLINE = "ONLINE" ,
1053
+ PENDING = "PENDING" ,
1054
+ UPDATE_NEEDED = "UPDATE_NEEDED" ,
1055
+ }
1056
+
1045
1057
export enum DeviceConnectionStatus {
1046
1058
AWAITING_CREDENTIALS = "AWAITING_CREDENTIALS" ,
1047
1059
ERROR = "ERROR" ,
@@ -1050,6 +1062,31 @@ export enum DeviceConnectionStatus {
1050
1062
ONLINE = "ONLINE" ,
1051
1063
}
1052
1064
1065
+ export enum UpdateProgress {
1066
+ COMPLETED = "COMPLETED" ,
1067
+ DOWNLOADING = "DOWNLOADING" ,
1068
+ FAILED = "FAILED" ,
1069
+ IN_PROGRESS = "IN_PROGRESS" ,
1070
+ PENDING = "PENDING" ,
1071
+ REBOOTING = "REBOOTING" ,
1072
+ VERIFYING = "VERIFYING" ,
1073
+ }
1074
+
1075
+ /**
1076
+ * <p>Returns information about the latest device job.</p>
1077
+ */
1078
+ export interface LatestDeviceJob {
1079
+ /**
1080
+ * <p>The target version of the device software.</p>
1081
+ */
1082
+ ImageVersion ?: string ;
1083
+
1084
+ /**
1085
+ * <p>Status of the latest device job.</p>
1086
+ */
1087
+ Status ?: UpdateProgress | string ;
1088
+ }
1089
+
1053
1090
/**
1054
1091
* <p>A static IP configuration.</p>
1055
1092
*/
@@ -1225,6 +1262,16 @@ export interface DescribeDeviceResponse {
1225
1262
* <p>The device's maker.</p>
1226
1263
*/
1227
1264
Brand ?: DeviceBrand | string ;
1265
+
1266
+ /**
1267
+ * <p>A device's latest job. Includes the target image version, and the job status.</p>
1268
+ */
1269
+ LatestDeviceJob ?: LatestDeviceJob ;
1270
+
1271
+ /**
1272
+ * <p>A device's aggregated status. Including the device's connection status, provisioning status, and lease status.</p>
1273
+ */
1274
+ DeviceAggregatedStatus ?: DeviceAggregatedStatus | string ;
1228
1275
}
1229
1276
1230
1277
export interface DescribeDeviceJobRequest {
@@ -1234,16 +1281,6 @@ export interface DescribeDeviceJobRequest {
1234
1281
JobId : string | undefined ;
1235
1282
}
1236
1283
1237
- export enum UpdateProgress {
1238
- COMPLETED = "COMPLETED" ,
1239
- DOWNLOADING = "DOWNLOADING" ,
1240
- FAILED = "FAILED" ,
1241
- IN_PROGRESS = "IN_PROGRESS" ,
1242
- PENDING = "PENDING" ,
1243
- REBOOTING = "REBOOTING" ,
1244
- VERIFYING = "VERIFYING" ,
1245
- }
1246
-
1247
1284
export interface DescribeDeviceJobResponse {
1248
1285
/**
1249
1286
* <p>The job's ID.</p>
@@ -1803,6 +1840,36 @@ export interface Device {
1803
1840
* <p>The device's maker.</p>
1804
1841
*/
1805
1842
Brand ?: DeviceBrand | string ;
1843
+
1844
+ /**
1845
+ * <p>A device's current software.</p>
1846
+ */
1847
+ CurrentSoftware ?: string ;
1848
+
1849
+ /**
1850
+ * <p>A description for the device.</p>
1851
+ */
1852
+ Description ?: string ;
1853
+
1854
+ /**
1855
+ * <p>The device's tags.</p>
1856
+ */
1857
+ Tags ?: Record < string , string > ;
1858
+
1859
+ /**
1860
+ * <p>The device's type.</p>
1861
+ */
1862
+ Type ?: DeviceType | string ;
1863
+
1864
+ /**
1865
+ * <p>A device's latest job. Includes the target image version, and the update job status.</p>
1866
+ */
1867
+ LatestDeviceJob ?: LatestDeviceJob ;
1868
+
1869
+ /**
1870
+ * <p>A device's aggregated status. Including the device's connection status, provisioning status, and lease status.</p>
1871
+ */
1872
+ DeviceAggregatedStatus ?: DeviceAggregatedStatus | string ;
1806
1873
}
1807
1874
1808
1875
/**
@@ -1998,6 +2065,18 @@ export interface ListApplicationInstancesResponse {
1998
2065
NextToken ?: string ;
1999
2066
}
2000
2067
2068
+ export enum ListDevicesSortBy {
2069
+ CREATED_TIME = "CREATED_TIME" ,
2070
+ DEVICE_AGGREGATED_STATUS = "DEVICE_AGGREGATED_STATUS" ,
2071
+ DEVICE_ID = "DEVICE_ID" ,
2072
+ NAME = "NAME" ,
2073
+ }
2074
+
2075
+ export enum SortOrder {
2076
+ ASCENDING = "ASCENDING" ,
2077
+ DESCENDING = "DESCENDING" ,
2078
+ }
2079
+
2001
2080
export interface ListDevicesRequest {
2002
2081
/**
2003
2082
* <p>Specify the pagination token from a previous request to retrieve the next page of results.</p>
@@ -2008,6 +2087,26 @@ export interface ListDevicesRequest {
2008
2087
* <p>The maximum number of devices to return in one page of results.</p>
2009
2088
*/
2010
2089
MaxResults ?: number ;
2090
+
2091
+ /**
2092
+ * <p>The target column to be sorted on. Default column sort is CREATED_TIME.</p>
2093
+ */
2094
+ SortBy ?: ListDevicesSortBy | string ;
2095
+
2096
+ /**
2097
+ * <p>The sorting order for the returned list. SortOrder is DESCENDING by default based on CREATED_TIME. Otherwise, SortOrder is ASCENDING.</p>
2098
+ */
2099
+ SortOrder ?: SortOrder | string ;
2100
+
2101
+ /**
2102
+ * <p>Filter based on device's name. Prefixes supported.</p>
2103
+ */
2104
+ NameFilter ?: string ;
2105
+
2106
+ /**
2107
+ * <p>Filter based on a device's status.</p>
2108
+ */
2109
+ DeviceAggregatedStatusFilter ?: DeviceAggregatedStatus | string ;
2011
2110
}
2012
2111
2013
2112
export interface ListDevicesResponse {
@@ -2784,6 +2883,13 @@ export const NetworkStatusFilterSensitiveLog = (obj: NetworkStatus): any => ({
2784
2883
...obj ,
2785
2884
} ) ;
2786
2885
2886
+ /**
2887
+ * @internal
2888
+ */
2889
+ export const LatestDeviceJobFilterSensitiveLog = ( obj : LatestDeviceJob ) : any => ( {
2890
+ ...obj ,
2891
+ } ) ;
2892
+
2787
2893
/**
2788
2894
* @internal
2789
2895
*/
0 commit comments