13
13
14
14
import { eventstream } from "aws-crt" ;
15
15
16
+ /**
17
+ * To preserve backwards compatibility, no validation is performed on enum-valued fields.
18
+ */
19
+ export enum DetailedDeploymentStatus {
20
+
21
+ SUCCESSFUL = "SUCCESSFUL" ,
22
+
23
+ FAILED_NO_STATE_CHANGE = "FAILED_NO_STATE_CHANGE" ,
24
+
25
+ FAILED_ROLLBACK_NOT_REQUESTED = "FAILED_ROLLBACK_NOT_REQUESTED" ,
26
+
27
+ FAILED_ROLLBACK_COMPLETE = "FAILED_ROLLBACK_COMPLETE" ,
28
+
29
+ REJECTED = "REJECTED"
30
+
31
+ }
32
+
16
33
export interface UserProperty {
17
34
18
35
key ?: string ,
@@ -35,6 +52,30 @@ export interface SystemResourceLimits {
35
52
36
53
}
37
54
55
+ export interface DeploymentStatusDetails {
56
+
57
+ /**
58
+ * The detailed deployment status of the local deployment.
59
+ */
60
+ detailedDeploymentStatus : DetailedDeploymentStatus ,
61
+
62
+ /**
63
+ * (Optional) The list of local deployment errors
64
+ */
65
+ deploymentErrorStack ?: string [ ] ,
66
+
67
+ /**
68
+ * (Optional) The list of local deployment error types
69
+ */
70
+ deploymentErrorTypes ?: string [ ] ,
71
+
72
+ /**
73
+ * (Optional) The cause of local deployment failure
74
+ */
75
+ deploymentFailureCause ?: string
76
+
77
+ }
78
+
38
79
/**
39
80
* To preserve backwards compatibility, no validation is performed on enum-valued fields.
40
81
*/
@@ -46,7 +87,9 @@ export enum DeploymentStatus {
46
87
47
88
SUCCEEDED = "SUCCEEDED" ,
48
89
49
- FAILED = "FAILED"
90
+ FAILED = "FAILED" ,
91
+
92
+ CANCELED = "CANCELED"
50
93
51
94
}
52
95
@@ -144,7 +187,17 @@ export interface LocalDeployment {
144
187
/**
145
188
* The status of the local deployment.
146
189
*/
147
- status : DeploymentStatus
190
+ status : DeploymentStatus ,
191
+
192
+ /**
193
+ * (Optional) The timestamp at which the local deployment was created in MM/dd/yyyy hh:mm:ss format
194
+ */
195
+ createdOn ?: string ,
196
+
197
+ /**
198
+ * (Optional) The status details of the local deployment.
199
+ */
200
+ deploymentStatusDetails ?: DeploymentStatusDetails
148
201
149
202
}
150
203
@@ -378,6 +431,17 @@ export interface MQTTMessage {
378
431
379
432
}
380
433
434
+ /**
435
+ * To preserve backwards compatibility, no validation is performed on enum-valued fields.
436
+ */
437
+ export enum FailureHandlingPolicy {
438
+
439
+ ROLLBACK = "ROLLBACK" ,
440
+
441
+ DO_NOTHING = "DO_NOTHING"
442
+
443
+ }
444
+
381
445
/**
382
446
* To preserve backwards compatibility, no validation is performed on enum-valued fields.
383
447
*/
@@ -630,7 +694,12 @@ export interface CreateLocalDeploymentRequest {
630
694
/**
631
695
* All artifact files in this directory will be copied over to the Greengrass package store.
632
696
*/
633
- artifactsDirectoryPath ?: string
697
+ artifactsDirectoryPath ?: string ,
698
+
699
+ /**
700
+ * Deployment failure handling policy.
701
+ */
702
+ failureHandlingPolicy ?: FailureHandlingPolicy
634
703
635
704
}
636
705
@@ -751,6 +820,21 @@ export interface ListNamedShadowsForThingRequest {
751
820
752
821
}
753
822
823
+ export interface CancelLocalDeploymentResponse {
824
+
825
+ message ?: string
826
+
827
+ }
828
+
829
+ export interface CancelLocalDeploymentRequest {
830
+
831
+ /**
832
+ * (Optional) The ID of the local deployment to cancel.
833
+ */
834
+ deploymentId ?: string
835
+
836
+ }
837
+
754
838
export interface UpdateStateResponse {
755
839
756
840
}
0 commit comments