Skip to content

Commit 881f40f

Browse files
Update generated code (#1677)
update generated code
1 parent 818ccda commit 881f40f

File tree

10 files changed

+79
-5
lines changed

10 files changed

+79
-5
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"variables": {
3-
"${LATEST}": "3.300.8"
3+
"${LATEST}": "3.300.10"
44
},
55
"endpoints": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json",
66
"services": {

src/Service/CloudFormation/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## NOT RELEASED
44

5+
### Added
6+
7+
- AWS api-change: Add DetailedStatus field to DescribeStackEvents and DescribeStacks APIs
8+
59
## 1.5.1
610

711
### Changed

src/Service/CloudFormation/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
"extra": {
3030
"branch-alias": {
31-
"dev-master": "1.5-dev"
31+
"dev-master": "1.6-dev"
3232
}
3333
}
3434
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
namespace AsyncAws\CloudFormation\Enum;
4+
5+
final class DetailedStatus
6+
{
7+
public const CONFIGURATION_COMPLETE = 'CONFIGURATION_COMPLETE';
8+
public const VALIDATION_FAILED = 'VALIDATION_FAILED';
9+
10+
public static function exists(string $value): bool
11+
{
12+
return isset([
13+
self::CONFIGURATION_COMPLETE => true,
14+
self::VALIDATION_FAILED => true,
15+
][$value]);
16+
}
17+
}

src/Service/CloudFormation/src/Result/DescribeStackEventsOutput.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ private function populateResultStackEvents(\SimpleXMLElement $xml): array
125125
'HookStatusReason' => ($v = $item->HookStatusReason) ? (string) $v : null,
126126
'HookInvocationPoint' => ($v = $item->HookInvocationPoint) ? (string) $v : null,
127127
'HookFailureMode' => ($v = $item->HookFailureMode) ? (string) $v : null,
128+
'DetailedStatus' => ($v = $item->DetailedStatus) ? (string) $v : null,
128129
]);
129130
}
130131

src/Service/CloudFormation/src/Result/DescribeStacksOutput.php

Lines changed: 1 addition & 0 deletions
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+
'DetailedStatus' => ($v = $item->DetailedStatus) ? (string) $v : null,
232233
]);
233234
}
234235

src/Service/CloudFormation/src/ValueObject/RollbackConfiguration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ final class RollbackConfiguration
4242
* If you specify a monitoring period but don't specify any rollback triggers, CloudFormation still waits the specified
4343
* period of time before cleaning up old resources after update operations. You can use this monitoring period to
4444
* perform any manual stack validation desired, and manually cancel the stack creation or update (using
45-
* CancelUpdateStack [^1], for example) as necessary.
45+
* `CancelUpdateStack` [^1], for example) as necessary.
4646
*
4747
* If you specify 0 for this parameter, CloudFormation still monitors the specified rollback triggers during stack
4848
* creation and update operations. Then, for update operations, it begins disposing of old resources immediately once

src/Service/CloudFormation/src/ValueObject/RollbackTrigger.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ final class RollbackTrigger
2121
private $arn;
2222

2323
/**
24-
* The resource type of the rollback trigger. Specify either AWS::CloudWatch::Alarm [^1] or
25-
* AWS::CloudWatch::CompositeAlarm [^2] resource types.
24+
* The resource type of the rollback trigger. Specify either `AWS::CloudWatch::Alarm` [^1] or
25+
* `AWS::CloudWatch::CompositeAlarm` [^2] resource types.
2626
*
2727
* [^1]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html
2828
* [^2]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html

src/Service/CloudFormation/src/ValueObject/Stack.php

Lines changed: 24 additions & 0 deletions
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\DetailedStatus;
67
use AsyncAws\CloudFormation\Enum\StackStatus;
78
use AsyncAws\Core\Exception\InvalidArgument;
89

@@ -200,6 +201,18 @@ final class Stack
200201
*/
201202
private $retainExceptOnCreate;
202203

204+
/**
205+
* The detailed status of the resource or stack. If `CONFIGURATION_COMPLETE` is present, the resource or resource
206+
* configuration phase has completed and the stabilization of the resources is in progress. The stack sets
207+
* `CONFIGURATION_COMPLETE` when all of the resources in the stack have reached that event. For more information, see
208+
* CloudFormation stack deployment [^1] in the *CloudFormation User Guide*.
209+
*
210+
* [^1]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stack-resource-configuration-complete.html
211+
*
212+
* @var DetailedStatus::*|null
213+
*/
214+
private $detailedStatus;
215+
203216
/**
204217
* @param array{
205218
* StackId?: null|string,
@@ -225,6 +238,7 @@ final class Stack
225238
* RootId?: null|string,
226239
* DriftInformation?: null|StackDriftInformation|array,
227240
* RetainExceptOnCreate?: null|bool,
241+
* DetailedStatus?: null|DetailedStatus::*,
228242
* } $input
229243
*/
230244
public function __construct(array $input)
@@ -252,6 +266,7 @@ public function __construct(array $input)
252266
$this->rootId = $input['RootId'] ?? null;
253267
$this->driftInformation = isset($input['DriftInformation']) ? StackDriftInformation::create($input['DriftInformation']) : null;
254268
$this->retainExceptOnCreate = $input['RetainExceptOnCreate'] ?? null;
269+
$this->detailedStatus = $input['DetailedStatus'] ?? null;
255270
}
256271

257272
/**
@@ -279,6 +294,7 @@ public function __construct(array $input)
279294
* RootId?: null|string,
280295
* DriftInformation?: null|StackDriftInformation|array,
281296
* RetainExceptOnCreate?: null|bool,
297+
* DetailedStatus?: null|DetailedStatus::*,
282298
* }|Stack $input
283299
*/
284300
public static function create($input): self
@@ -314,6 +330,14 @@ public function getDescription(): ?string
314330
return $this->description;
315331
}
316332

333+
/**
334+
* @return DetailedStatus::*|null
335+
*/
336+
public function getDetailedStatus(): ?string
337+
{
338+
return $this->detailedStatus;
339+
}
340+
317341
public function getDisableRollback(): ?bool
318342
{
319343
return $this->disableRollback;

src/Service/CloudFormation/src/ValueObject/StackEvent.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace AsyncAws\CloudFormation\ValueObject;
44

5+
use AsyncAws\CloudFormation\Enum\DetailedStatus;
56
use AsyncAws\CloudFormation\Enum\HookFailureMode;
67
use AsyncAws\CloudFormation\Enum\HookInvocationPoint;
78
use AsyncAws\CloudFormation\Enum\HookStatus;
@@ -140,6 +141,21 @@ final class StackEvent
140141
*/
141142
private $hookFailureMode;
142143

144+
/**
145+
* An optional field containing information about the detailed status of the stack event.
146+
*
147+
* - `CONFIGURATION_COMPLETE` - all of the resources in the stack have reached that event. For more information, see
148+
* CloudFormation stack deployment [^1] in the *CloudFormation User Guide*.
149+
*
150+
* - `VALIDATION_FAILED` - template validation failed because of invalid properties in the template. The
151+
* `ResourceStatusReason` field shows what properties are defined incorrectly.
152+
*
153+
* [^1]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stack-resource-configuration-complete.html
154+
*
155+
* @var DetailedStatus::*|null
156+
*/
157+
private $detailedStatus;
158+
143159
/**
144160
* @param array{
145161
* StackId: string,
@@ -158,6 +174,7 @@ final class StackEvent
158174
* HookStatusReason?: null|string,
159175
* HookInvocationPoint?: null|HookInvocationPoint::*,
160176
* HookFailureMode?: null|HookFailureMode::*,
177+
* DetailedStatus?: null|DetailedStatus::*,
161178
* } $input
162179
*/
163180
public function __construct(array $input)
@@ -178,6 +195,7 @@ public function __construct(array $input)
178195
$this->hookStatusReason = $input['HookStatusReason'] ?? null;
179196
$this->hookInvocationPoint = $input['HookInvocationPoint'] ?? null;
180197
$this->hookFailureMode = $input['HookFailureMode'] ?? null;
198+
$this->detailedStatus = $input['DetailedStatus'] ?? null;
181199
}
182200

183201
/**
@@ -198,6 +216,7 @@ public function __construct(array $input)
198216
* HookStatusReason?: null|string,
199217
* HookInvocationPoint?: null|HookInvocationPoint::*,
200218
* HookFailureMode?: null|HookFailureMode::*,
219+
* DetailedStatus?: null|DetailedStatus::*,
201220
* }|StackEvent $input
202221
*/
203222
public static function create($input): self
@@ -210,6 +229,14 @@ public function getClientRequestToken(): ?string
210229
return $this->clientRequestToken;
211230
}
212231

232+
/**
233+
* @return DetailedStatus::*|null
234+
*/
235+
public function getDetailedStatus(): ?string
236+
{
237+
return $this->detailedStatus;
238+
}
239+
213240
public function getEventId(): string
214241
{
215242
return $this->eventId;

0 commit comments

Comments
 (0)