Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 110c914

Browse files
Update generated code (async-aws#1180)
* update generated code * Update src/Service/CloudFormation/CHANGELOG.md Co-authored-by: Jérémy Derussé <[email protected]>
1 parent 802583c commit 110c914

13 files changed

Lines changed: 156 additions & 10 deletions

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.209.20"
3+
"${LATEST}": "3.209.21"
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 support to AWS CloudFormation Hooks.
8+
59
## 1.2.0
610

711
### Added
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
namespace AsyncAws\CloudFormation\Enum;
4+
5+
/**
6+
* Specify the hook failure mode for non-compliant resources in the followings ways.
7+
*
8+
* - `FAIL` Stops provisioning resources.
9+
* - `WARN` Allows provisioning to continue with a warning message.
10+
*/
11+
final class HookFailureMode
12+
{
13+
public const FAIL = 'FAIL';
14+
public const WARN = 'WARN';
15+
16+
public static function exists(string $value): bool
17+
{
18+
return isset([
19+
self::FAIL => true,
20+
self::WARN => true,
21+
][$value]);
22+
}
23+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
namespace AsyncAws\CloudFormation\Enum;
4+
5+
/**
6+
* Invocation points are points in provisioning logic where hooks are initiated.
7+
*/
8+
final class HookInvocationPoint
9+
{
10+
public const PRE_PROVISION = 'PRE_PROVISION';
11+
12+
public static function exists(string $value): bool
13+
{
14+
return isset([
15+
self::PRE_PROVISION => true,
16+
][$value]);
17+
}
18+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
namespace AsyncAws\CloudFormation\Enum;
4+
5+
/**
6+
* Provides the status of the change set hook.
7+
*/
8+
final class HookStatus
9+
{
10+
public const HOOK_COMPLETE_FAILED = 'HOOK_COMPLETE_FAILED';
11+
public const HOOK_COMPLETE_SUCCEEDED = 'HOOK_COMPLETE_SUCCEEDED';
12+
public const HOOK_FAILED = 'HOOK_FAILED';
13+
public const HOOK_IN_PROGRESS = 'HOOK_IN_PROGRESS';
14+
15+
public static function exists(string $value): bool
16+
{
17+
return isset([
18+
self::HOOK_COMPLETE_FAILED => true,
19+
self::HOOK_COMPLETE_SUCCEEDED => true,
20+
self::HOOK_FAILED => true,
21+
self::HOOK_IN_PROGRESS => true,
22+
][$value]);
23+
}
24+
}

src/Service/CloudFormation/src/Enum/StackDriftDetectionStatus.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* The status of the stack drift detection operation.
77
*
88
* - `DETECTION_COMPLETE`: The stack drift detection operation has successfully completed for all resources in the stack
9-
* that support drift detection. (Resources that do not currently support stack detection remain unchecked.)
9+
* that support drift detection. (Resources that don't currently support stack detection remain unchecked.)
1010
* If you specified logical resource IDs for CloudFormation to use as a filter for the stack drift detection
1111
* operation, only the resources with those logical IDs are checked for drift.
1212
* - `DETECTION_FAILED`: The stack drift detection operation has failed for at least one resource in the stack. Results

src/Service/CloudFormation/src/Enum/StackDriftStatus.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* - `DRIFTED`: The stack differs from its expected template configuration. A stack is considered to have drifted if one
99
* or more of its resources have drifted.
10-
* - `NOT_CHECKED`: CloudFormation has not checked if the stack differs from its expected template configuration.
10+
* - `NOT_CHECKED`: CloudFormation hasn't checked if the stack differs from its expected template configuration.
1111
* - `IN_SYNC`: The stack's actual configuration matches its expected template configuration.
1212
* - `UNKNOWN`: This value is reserved for future use.
1313
*/

src/Service/CloudFormation/src/Input/DescribeStackEventsInput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
final class DescribeStackEventsInput extends Input
1313
{
1414
/**
15-
* The name or the unique stack ID that is associated with the stack, which are not always interchangeable:.
15+
* The name or the unique stack ID that's associated with the stack, which aren't always interchangeable:.
1616
*
1717
* @var string|null
1818
*/

src/Service/CloudFormation/src/Input/DescribeStacksInput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
final class DescribeStacksInput extends Input
1313
{
1414
/**
15-
* The name or the unique stack ID that is associated with the stack, which are not always interchangeable:.
15+
* The name or the unique stack ID that's associated with the stack, which aren't always interchangeable:.
1616
*
1717
* @var string|null
1818
*/

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ private function populateResultStackEvents(\SimpleXMLElement $xml): array
116116
'ResourceStatusReason' => ($v = $item->ResourceStatusReason) ? (string) $v : null,
117117
'ResourceProperties' => ($v = $item->ResourceProperties) ? (string) $v : null,
118118
'ClientRequestToken' => ($v = $item->ClientRequestToken) ? (string) $v : null,
119+
'HookType' => ($v = $item->HookType) ? (string) $v : null,
120+
'HookStatus' => ($v = $item->HookStatus) ? (string) $v : null,
121+
'HookStatusReason' => ($v = $item->HookStatusReason) ? (string) $v : null,
122+
'HookInvocationPoint' => ($v = $item->HookInvocationPoint) ? (string) $v : null,
123+
'HookFailureMode' => ($v = $item->HookFailureMode) ? (string) $v : null,
119124
]);
120125
}
121126

0 commit comments

Comments
 (0)