Skip to content

Commit 08de3a6

Browse files
Update generated code (#1715)
update generated code
1 parent 245c88b commit 08de3a6

File tree

5 files changed

+45
-1
lines changed

5 files changed

+45
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## NOT RELEASED
44

5+
### Added
6+
7+
- AWS api-change: Added DeletionMode FORCE_DELETE_STACK for deleting a stack that is stuck in DELETE_FAILED state due to resource deletion failure.
8+
59
## 1.6.0
610

711
### Added

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
"extra": {
3030
"branch-alias": {
31-
"dev-master": "1.6-dev"
31+
"dev-master": "1.7-dev"
3232
}
3333
}
3434
}

src/Enum/DeletionMode.php

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
namespace AsyncAws\CloudFormation\Enum;
4+
5+
final class DeletionMode
6+
{
7+
public const FORCE_DELETE_STACK = 'FORCE_DELETE_STACK';
8+
public const STANDARD = 'STANDARD';
9+
10+
public static function exists(string $value): bool
11+
{
12+
return isset([
13+
self::FORCE_DELETE_STACK => true,
14+
self::STANDARD => true,
15+
][$value]);
16+
}
17+
}

src/Result/DescribeStacksOutput.php

+1
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ private function populateResultStacks(\SimpleXMLElement $xml): array
229229
'LastCheckTimestamp' => ($v = $item->DriftInformation->LastCheckTimestamp) ? new \DateTimeImmutable((string) $v) : null,
230230
]),
231231
'RetainExceptOnCreate' => ($v = $item->RetainExceptOnCreate) ? filter_var((string) $v, \FILTER_VALIDATE_BOOLEAN) : null,
232+
'DeletionMode' => ($v = $item->DeletionMode) ? (string) $v : null,
232233
'DetailedStatus' => ($v = $item->DetailedStatus) ? (string) $v : null,
233234
]);
234235
}

src/ValueObject/Stack.php

+22
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace AsyncAws\CloudFormation\ValueObject;
44

55
use AsyncAws\CloudFormation\Enum\Capability;
6+
use AsyncAws\CloudFormation\Enum\DeletionMode;
67
use AsyncAws\CloudFormation\Enum\DetailedStatus;
78
use AsyncAws\CloudFormation\Enum\StackStatus;
89
use AsyncAws\Core\Exception\InvalidArgument;
@@ -201,6 +202,16 @@ final class Stack
201202
*/
202203
private $retainExceptOnCreate;
203204

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+
204215
/**
205216
* The detailed status of the resource or stack. If `CONFIGURATION_COMPLETE` is present, the resource or resource
206217
* configuration phase has completed and the stabilization of the resources is in progress. The stack sets
@@ -238,6 +249,7 @@ final class Stack
238249
* RootId?: null|string,
239250
* DriftInformation?: null|StackDriftInformation|array,
240251
* RetainExceptOnCreate?: null|bool,
252+
* DeletionMode?: null|DeletionMode::*,
241253
* DetailedStatus?: null|DetailedStatus::*,
242254
* } $input
243255
*/
@@ -266,6 +278,7 @@ public function __construct(array $input)
266278
$this->rootId = $input['RootId'] ?? null;
267279
$this->driftInformation = isset($input['DriftInformation']) ? StackDriftInformation::create($input['DriftInformation']) : null;
268280
$this->retainExceptOnCreate = $input['RetainExceptOnCreate'] ?? null;
281+
$this->deletionMode = $input['DeletionMode'] ?? null;
269282
$this->detailedStatus = $input['DetailedStatus'] ?? null;
270283
}
271284

@@ -294,6 +307,7 @@ public function __construct(array $input)
294307
* RootId?: null|string,
295308
* DriftInformation?: null|StackDriftInformation|array,
296309
* RetainExceptOnCreate?: null|bool,
310+
* DeletionMode?: null|DeletionMode::*,
297311
* DetailedStatus?: null|DetailedStatus::*,
298312
* }|Stack $input
299313
*/
@@ -320,6 +334,14 @@ public function getCreationTime(): \DateTimeImmutable
320334
return $this->creationTime;
321335
}
322336

337+
/**
338+
* @return DeletionMode::*|null
339+
*/
340+
public function getDeletionMode(): ?string
341+
{
342+
return $this->deletionMode;
343+
}
344+
323345
public function getDeletionTime(): ?\DateTimeImmutable
324346
{
325347
return $this->deletionTime;

0 commit comments

Comments
 (0)