@@ -48,6 +48,15 @@ namespace Aws
48
48
Aws::Crt::Optional<Aws::Crt::String> m_value;
49
49
};
50
50
51
+ enum DetailedDeploymentStatus
52
+ {
53
+ DETAILED_DEPLOYMENT_STATUS_SUCCESSFUL,
54
+ DETAILED_DEPLOYMENT_STATUS_FAILED_NO_STATE_CHANGE,
55
+ DETAILED_DEPLOYMENT_STATUS_FAILED_ROLLBACK_NOT_REQUESTED,
56
+ DETAILED_DEPLOYMENT_STATUS_FAILED_ROLLBACK_COMPLETE,
57
+ DETAILED_DEPLOYMENT_STATUS_REJECTED
58
+ };
59
+
51
60
class MessageContext : public AbstractShapeBase
52
61
{
53
62
public:
@@ -88,12 +97,64 @@ namespace Aws
88
97
METRIC_UNIT_TYPE_SECONDS
89
98
};
90
99
100
+ class DeploymentStatusDetails : public AbstractShapeBase
101
+ {
102
+ public:
103
+ DeploymentStatusDetails () noexcept {}
104
+ DeploymentStatusDetails (const DeploymentStatusDetails &) = default ;
105
+ void SetDetailedDeploymentStatus (DetailedDeploymentStatus detailedDeploymentStatus) noexcept ;
106
+ Aws::Crt::Optional<DetailedDeploymentStatus> GetDetailedDeploymentStatus () noexcept ;
107
+ void SetDeploymentErrorStack (const Aws::Crt::Vector<Aws::Crt::String> &deploymentErrorStack) noexcept
108
+ {
109
+ m_deploymentErrorStack = deploymentErrorStack;
110
+ }
111
+ Aws::Crt::Optional<Aws::Crt::Vector<Aws::Crt::String>> GetDeploymentErrorStack () noexcept
112
+ {
113
+ return m_deploymentErrorStack;
114
+ }
115
+ void SetDeploymentErrorTypes (const Aws::Crt::Vector<Aws::Crt::String> &deploymentErrorTypes) noexcept
116
+ {
117
+ m_deploymentErrorTypes = deploymentErrorTypes;
118
+ }
119
+ Aws::Crt::Optional<Aws::Crt::Vector<Aws::Crt::String>> GetDeploymentErrorTypes () noexcept
120
+ {
121
+ return m_deploymentErrorTypes;
122
+ }
123
+ void SetDeploymentFailureCause (const Aws::Crt::String &deploymentFailureCause) noexcept
124
+ {
125
+ m_deploymentFailureCause = deploymentFailureCause;
126
+ }
127
+ Aws::Crt::Optional<Aws::Crt::String> GetDeploymentFailureCause () noexcept
128
+ {
129
+ return m_deploymentFailureCause;
130
+ }
131
+ void SerializeToJsonObject (Aws::Crt::JsonObject &payloadObject) const noexcept override ;
132
+ static void s_loadFromJsonView (DeploymentStatusDetails &, const Aws::Crt::JsonView &) noexcept ;
133
+ static Aws::Crt::ScopedResource<AbstractShapeBase> s_allocateFromPayload (
134
+ Aws::Crt::StringView,
135
+ Aws::Crt::Allocator *) noexcept ;
136
+ static void s_customDeleter (DeploymentStatusDetails *) noexcept ;
137
+ /* This needs to be defined so that `DeploymentStatusDetails` can be used as a key in maps. */
138
+ bool operator <(const DeploymentStatusDetails &) const noexcept ;
139
+ static const char *MODEL_NAME;
140
+
141
+ protected:
142
+ Aws::Crt::String GetModelName () const noexcept override ;
143
+
144
+ private:
145
+ Aws::Crt::Optional<Aws::Crt::String> m_detailedDeploymentStatus;
146
+ Aws::Crt::Optional<Aws::Crt::Vector<Aws::Crt::String>> m_deploymentErrorStack;
147
+ Aws::Crt::Optional<Aws::Crt::Vector<Aws::Crt::String>> m_deploymentErrorTypes;
148
+ Aws::Crt::Optional<Aws::Crt::String> m_deploymentFailureCause;
149
+ };
150
+
91
151
enum DeploymentStatus
92
152
{
93
153
DEPLOYMENT_STATUS_QUEUED,
94
154
DEPLOYMENT_STATUS_IN_PROGRESS,
95
155
DEPLOYMENT_STATUS_SUCCEEDED,
96
- DEPLOYMENT_STATUS_FAILED
156
+ DEPLOYMENT_STATUS_FAILED,
157
+ DEPLOYMENT_STATUS_CANCELED
97
158
};
98
159
99
160
enum LifecycleState
@@ -450,6 +511,16 @@ namespace Aws
450
511
Aws::Crt::Optional<Aws::Crt::String> GetDeploymentId () noexcept { return m_deploymentId; }
451
512
void SetStatus (DeploymentStatus status) noexcept ;
452
513
Aws::Crt::Optional<DeploymentStatus> GetStatus () noexcept ;
514
+ void SetCreatedOn (const Aws::Crt::String &createdOn) noexcept { m_createdOn = createdOn; }
515
+ Aws::Crt::Optional<Aws::Crt::String> GetCreatedOn () noexcept { return m_createdOn; }
516
+ void SetDeploymentStatusDetails (const DeploymentStatusDetails &deploymentStatusDetails) noexcept
517
+ {
518
+ m_deploymentStatusDetails = deploymentStatusDetails;
519
+ }
520
+ Aws::Crt::Optional<DeploymentStatusDetails> GetDeploymentStatusDetails () noexcept
521
+ {
522
+ return m_deploymentStatusDetails;
523
+ }
453
524
void SerializeToJsonObject (Aws::Crt::JsonObject &payloadObject) const noexcept override ;
454
525
static void s_loadFromJsonView (LocalDeployment &, const Aws::Crt::JsonView &) noexcept ;
455
526
static Aws::Crt::ScopedResource<AbstractShapeBase> s_allocateFromPayload (
@@ -466,6 +537,8 @@ namespace Aws
466
537
private:
467
538
Aws::Crt::Optional<Aws::Crt::String> m_deploymentId;
468
539
Aws::Crt::Optional<Aws::Crt::String> m_status;
540
+ Aws::Crt::Optional<Aws::Crt::String> m_createdOn;
541
+ Aws::Crt::Optional<DeploymentStatusDetails> m_deploymentStatusDetails;
469
542
};
470
543
471
544
class ComponentDetails : public AbstractShapeBase
@@ -1160,6 +1233,12 @@ namespace Aws
1160
1233
Aws::Crt::Optional<MQTTCredential> m_mqttCredential;
1161
1234
};
1162
1235
1236
+ enum FailureHandlingPolicy
1237
+ {
1238
+ FAILURE_HANDLING_POLICY_ROLLBACK,
1239
+ FAILURE_HANDLING_POLICY_DO_NOTHING
1240
+ };
1241
+
1163
1242
class InvalidArgumentsError : public OperationError
1164
1243
{
1165
1244
public:
@@ -3067,6 +3146,8 @@ namespace Aws
3067
3146
{
3068
3147
return m_artifactsDirectoryPath;
3069
3148
}
3149
+ void SetFailureHandlingPolicy (FailureHandlingPolicy failureHandlingPolicy) noexcept ;
3150
+ Aws::Crt::Optional<FailureHandlingPolicy> GetFailureHandlingPolicy () noexcept ;
3070
3151
void SerializeToJsonObject (Aws::Crt::JsonObject &payloadObject) const noexcept override ;
3071
3152
static void s_loadFromJsonView (CreateLocalDeploymentRequest &, const Aws::Crt::JsonView &) noexcept ;
3072
3153
static Aws::Crt::ScopedResource<AbstractShapeBase> s_allocateFromPayload (
@@ -3088,6 +3169,7 @@ namespace Aws
3088
3169
Aws::Crt::Optional<Aws::Crt::Map<Aws::Crt::String, RunWithInfo>> m_componentToRunWithInfo;
3089
3170
Aws::Crt::Optional<Aws::Crt::String> m_recipeDirectoryPath;
3090
3171
Aws::Crt::Optional<Aws::Crt::String> m_artifactsDirectoryPath;
3172
+ Aws::Crt::Optional<Aws::Crt::String> m_failureHandlingPolicy;
3091
3173
};
3092
3174
3093
3175
class CreateDebugPasswordResponse : public AbstractShapeBase
@@ -3156,6 +3238,54 @@ namespace Aws
3156
3238
private:
3157
3239
};
3158
3240
3241
+ class CancelLocalDeploymentResponse : public AbstractShapeBase
3242
+ {
3243
+ public:
3244
+ CancelLocalDeploymentResponse () noexcept {}
3245
+ CancelLocalDeploymentResponse (const CancelLocalDeploymentResponse &) = default ;
3246
+ void SetMessage (const Aws::Crt::String &message) noexcept { m_message = message; }
3247
+ Aws::Crt::Optional<Aws::Crt::String> GetMessage () noexcept { return m_message; }
3248
+ void SerializeToJsonObject (Aws::Crt::JsonObject &payloadObject) const noexcept override ;
3249
+ static void s_loadFromJsonView (CancelLocalDeploymentResponse &, const Aws::Crt::JsonView &) noexcept ;
3250
+ static Aws::Crt::ScopedResource<AbstractShapeBase> s_allocateFromPayload (
3251
+ Aws::Crt::StringView,
3252
+ Aws::Crt::Allocator *) noexcept ;
3253
+ static void s_customDeleter (CancelLocalDeploymentResponse *) noexcept ;
3254
+ /* This needs to be defined so that `CancelLocalDeploymentResponse` can be used as a key in maps. */
3255
+ bool operator <(const CancelLocalDeploymentResponse &) const noexcept ;
3256
+ static const char *MODEL_NAME;
3257
+
3258
+ protected:
3259
+ Aws::Crt::String GetModelName () const noexcept override ;
3260
+
3261
+ private:
3262
+ Aws::Crt::Optional<Aws::Crt::String> m_message;
3263
+ };
3264
+
3265
+ class CancelLocalDeploymentRequest : public AbstractShapeBase
3266
+ {
3267
+ public:
3268
+ CancelLocalDeploymentRequest () noexcept {}
3269
+ CancelLocalDeploymentRequest (const CancelLocalDeploymentRequest &) = default ;
3270
+ void SetDeploymentId (const Aws::Crt::String &deploymentId) noexcept { m_deploymentId = deploymentId; }
3271
+ Aws::Crt::Optional<Aws::Crt::String> GetDeploymentId () noexcept { return m_deploymentId; }
3272
+ void SerializeToJsonObject (Aws::Crt::JsonObject &payloadObject) const noexcept override ;
3273
+ static void s_loadFromJsonView (CancelLocalDeploymentRequest &, const Aws::Crt::JsonView &) noexcept ;
3274
+ static Aws::Crt::ScopedResource<AbstractShapeBase> s_allocateFromPayload (
3275
+ Aws::Crt::StringView,
3276
+ Aws::Crt::Allocator *) noexcept ;
3277
+ static void s_customDeleter (CancelLocalDeploymentRequest *) noexcept ;
3278
+ /* This needs to be defined so that `CancelLocalDeploymentRequest` can be used as a key in maps. */
3279
+ bool operator <(const CancelLocalDeploymentRequest &) const noexcept ;
3280
+ static const char *MODEL_NAME;
3281
+
3282
+ protected:
3283
+ Aws::Crt::String GetModelName () const noexcept override ;
3284
+
3285
+ private:
3286
+ Aws::Crt::Optional<Aws::Crt::String> m_deploymentId;
3287
+ };
3288
+
3159
3289
class InvalidClientDeviceAuthTokenError : public OperationError
3160
3290
{
3161
3291
public:
@@ -5269,6 +5399,71 @@ namespace Aws
5269
5399
Aws::Crt::String GetModelName () const noexcept override ;
5270
5400
};
5271
5401
5402
+ class CancelLocalDeploymentOperationContext : public OperationModelContext
5403
+ {
5404
+ public:
5405
+ CancelLocalDeploymentOperationContext (const GreengrassCoreIpcServiceModel &serviceModel) noexcept ;
5406
+ Aws::Crt::ScopedResource<AbstractShapeBase> AllocateInitialResponseFromPayload (
5407
+ Aws::Crt::StringView stringView,
5408
+ Aws::Crt::Allocator *allocator = Aws::Crt::g_allocator) const noexcept override ;
5409
+ Aws::Crt::ScopedResource<AbstractShapeBase> AllocateStreamingResponseFromPayload (
5410
+ Aws::Crt::StringView stringView,
5411
+ Aws::Crt::Allocator *allocator = Aws::Crt::g_allocator) const noexcept override ;
5412
+ Aws::Crt::String GetRequestModelName () const noexcept override ;
5413
+ Aws::Crt::String GetInitialResponseModelName () const noexcept override ;
5414
+ Aws::Crt::Optional<Aws::Crt::String> GetStreamingResponseModelName () const noexcept override ;
5415
+ Aws::Crt::String GetOperationName () const noexcept override ;
5416
+ };
5417
+
5418
+ class CancelLocalDeploymentResult
5419
+ {
5420
+ public:
5421
+ CancelLocalDeploymentResult () noexcept {}
5422
+ CancelLocalDeploymentResult (TaggedResult &&taggedResult) noexcept : m_taggedResult(std::move(taggedResult))
5423
+ {
5424
+ }
5425
+ CancelLocalDeploymentResponse *GetOperationResponse () const noexcept
5426
+ {
5427
+ return static_cast <CancelLocalDeploymentResponse *>(m_taggedResult.GetOperationResponse ());
5428
+ }
5429
+ /* *
5430
+ * @return true if the response is associated with an expected response;
5431
+ * false if the response is associated with an error.
5432
+ */
5433
+ operator bool () const noexcept { return m_taggedResult == true ; }
5434
+ OperationError *GetOperationError () const noexcept { return m_taggedResult.GetOperationError (); }
5435
+ RpcError GetRpcError () const noexcept { return m_taggedResult.GetRpcError (); }
5436
+ ResultType GetResultType () const noexcept { return m_taggedResult.GetResultType (); }
5437
+
5438
+ private:
5439
+ TaggedResult m_taggedResult;
5440
+ };
5441
+
5442
+ class CancelLocalDeploymentOperation : public ClientOperation
5443
+ {
5444
+ public:
5445
+ CancelLocalDeploymentOperation (
5446
+ ClientConnection &connection,
5447
+ const CancelLocalDeploymentOperationContext &operationContext,
5448
+ Aws::Crt::Allocator *allocator = Aws::Crt::g_allocator) noexcept ;
5449
+ /* *
5450
+ * Used to activate a stream for the `CancelLocalDeploymentOperation`
5451
+ * @param request The request used for the `CancelLocalDeploymentOperation`
5452
+ * @param onMessageFlushCallback An optional callback that is invoked when the request is flushed.
5453
+ * @return An `RpcError` that can be used to check whether the stream was activated.
5454
+ */
5455
+ std::future<RpcError> Activate (
5456
+ const CancelLocalDeploymentRequest &request,
5457
+ OnMessageFlushCallback onMessageFlushCallback = nullptr ) noexcept ;
5458
+ /* *
5459
+ * Retrieve the result from activating the stream.
5460
+ */
5461
+ std::future<CancelLocalDeploymentResult> GetResult () noexcept ;
5462
+
5463
+ protected:
5464
+ Aws::Crt::String GetModelName () const noexcept override ;
5465
+ };
5466
+
5272
5467
class ListNamedShadowsForThingOperationContext : public OperationModelContext
5273
5468
{
5274
5469
public:
@@ -5755,6 +5950,7 @@ namespace Aws
5755
5950
GetLocalDeploymentStatusOperationContext m_getLocalDeploymentStatusOperationContext;
5756
5951
GetSecretValueOperationContext m_getSecretValueOperationContext;
5757
5952
UpdateStateOperationContext m_updateStateOperationContext;
5953
+ CancelLocalDeploymentOperationContext m_cancelLocalDeploymentOperationContext;
5758
5954
ListNamedShadowsForThingOperationContext m_listNamedShadowsForThingOperationContext;
5759
5955
SubscribeToComponentUpdatesOperationContext m_subscribeToComponentUpdatesOperationContext;
5760
5956
ListLocalDeploymentsOperationContext m_listLocalDeploymentsOperationContext;
0 commit comments