3
3
namespace AsyncAws \CloudFormation \ValueObject ;
4
4
5
5
use AsyncAws \CloudFormation \Enum \Capability ;
6
+ use AsyncAws \CloudFormation \Enum \DeletionMode ;
6
7
use AsyncAws \CloudFormation \Enum \DetailedStatus ;
7
8
use AsyncAws \CloudFormation \Enum \StackStatus ;
8
9
use AsyncAws \Core \Exception \InvalidArgument ;
@@ -201,6 +202,16 @@ final class Stack
201
202
*/
202
203
private $ retainExceptOnCreate ;
203
204
205
+ /**
206
+ * Specifies the deletion mode for the stack. Possible values are:
207
+ *
208
+ * - `STANDARD` - Use the standard behavior. Specifying this value is the same as not specifying this parameter.
209
+ * - `FORCE_DELETE_STACK` - Delete the stack if it's stuck in a `DELETE_FAILED` state due to resource deletion failure.
210
+ *
211
+ * @var DeletionMode::*|null
212
+ */
213
+ private $ deletionMode ;
214
+
204
215
/**
205
216
* The detailed status of the resource or stack. If `CONFIGURATION_COMPLETE` is present, the resource or resource
206
217
* configuration phase has completed and the stabilization of the resources is in progress. The stack sets
@@ -238,6 +249,7 @@ final class Stack
238
249
* RootId?: null|string,
239
250
* DriftInformation?: null|StackDriftInformation|array,
240
251
* RetainExceptOnCreate?: null|bool,
252
+ * DeletionMode?: null|DeletionMode::*,
241
253
* DetailedStatus?: null|DetailedStatus::*,
242
254
* } $input
243
255
*/
@@ -266,6 +278,7 @@ public function __construct(array $input)
266
278
$ this ->rootId = $ input ['RootId ' ] ?? null ;
267
279
$ this ->driftInformation = isset ($ input ['DriftInformation ' ]) ? StackDriftInformation::create ($ input ['DriftInformation ' ]) : null ;
268
280
$ this ->retainExceptOnCreate = $ input ['RetainExceptOnCreate ' ] ?? null ;
281
+ $ this ->deletionMode = $ input ['DeletionMode ' ] ?? null ;
269
282
$ this ->detailedStatus = $ input ['DetailedStatus ' ] ?? null ;
270
283
}
271
284
@@ -294,6 +307,7 @@ public function __construct(array $input)
294
307
* RootId?: null|string,
295
308
* DriftInformation?: null|StackDriftInformation|array,
296
309
* RetainExceptOnCreate?: null|bool,
310
+ * DeletionMode?: null|DeletionMode::*,
297
311
* DetailedStatus?: null|DetailedStatus::*,
298
312
* }|Stack $input
299
313
*/
@@ -320,6 +334,14 @@ public function getCreationTime(): \DateTimeImmutable
320
334
return $ this ->creationTime ;
321
335
}
322
336
337
+ /**
338
+ * @return DeletionMode::*|null
339
+ */
340
+ public function getDeletionMode (): ?string
341
+ {
342
+ return $ this ->deletionMode ;
343
+ }
344
+
323
345
public function getDeletionTime (): ?\DateTimeImmutable
324
346
{
325
347
return $ this ->deletionTime ;
0 commit comments