Skip to content

Commit f5b9e92

Browse files
Update generated code (#2104)
update generated code
1 parent d9f0501 commit f5b9e92

17 files changed

Lines changed: 222 additions & 3 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.386.2"
3+
"${LATEST}": "3.387.0"
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: AWS CloudFormation adds a DeploymentConfig parameter to enable Express mode, which completes stack operations as soon as resource configuration is applied. Also adds a DisableValidation parameter to skip pre-deployment validation, which now runs automatically on CreateStack and UpdateStak.
8+
59
## 2.1.0
610

711
### Added

src/Service/CloudFormation/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
},
3434
"extra": {
3535
"branch-alias": {
36-
"dev-master": "2.1-dev"
36+
"dev-master": "2.2-dev"
3737
}
3838
}
3939
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
namespace AsyncAws\CloudFormation\Enum;
4+
5+
final class DeploymentConfigMode
6+
{
7+
public const EXPRESS = 'EXPRESS';
8+
public const STANDARD = 'STANDARD';
9+
public const UNKNOWN_TO_SDK = 'UNKNOWN_TO_SDK';
10+
11+
/**
12+
* @psalm-assert-if-true self::* $value
13+
*/
14+
public static function exists(string $value): bool
15+
{
16+
return isset([
17+
self::EXPRESS => true,
18+
self::STANDARD => true,
19+
][$value]);
20+
}
21+
}

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
use AsyncAws\CloudFormation\CloudFormationClient;
66
use AsyncAws\CloudFormation\Enum\Capability;
77
use AsyncAws\CloudFormation\Enum\DeletionMode;
8+
use AsyncAws\CloudFormation\Enum\DeploymentConfigMode;
89
use AsyncAws\CloudFormation\Enum\DetailedStatus;
910
use AsyncAws\CloudFormation\Enum\OperationType;
1011
use AsyncAws\CloudFormation\Enum\StackDriftStatus;
1112
use AsyncAws\CloudFormation\Enum\StackStatus;
1213
use AsyncAws\CloudFormation\Input\DescribeStacksInput;
14+
use AsyncAws\CloudFormation\ValueObject\DeploymentConfig;
1315
use AsyncAws\CloudFormation\ValueObject\OperationEntry;
1416
use AsyncAws\CloudFormation\ValueObject\Output;
1517
use AsyncAws\CloudFormation\ValueObject\Parameter;
@@ -131,6 +133,14 @@ private function populateResultCapabilities(\SimpleXMLElement $xml): array
131133
return $items;
132134
}
133135

136+
private function populateResultDeploymentConfig(\SimpleXMLElement $xml): DeploymentConfig
137+
{
138+
return new DeploymentConfig([
139+
'Mode' => (null !== $v = $xml->Mode[0]) ? (!DeploymentConfigMode::exists((string) $xml->Mode) ? DeploymentConfigMode::UNKNOWN_TO_SDK : (string) $xml->Mode) : null,
140+
'DisableRollback' => (null !== $v = $xml->DisableRollback[0]) ? filter_var((string) $v, \FILTER_VALIDATE_BOOLEAN) : null,
141+
]);
142+
}
143+
134144
/**
135145
* @return OperationEntry[]
136146
*/
@@ -255,6 +265,7 @@ private function populateResultStack(\SimpleXMLElement $xml): Stack
255265
'StackStatus' => !StackStatus::exists((string) $xml->StackStatus) ? StackStatus::UNKNOWN_TO_SDK : (string) $xml->StackStatus,
256266
'StackStatusReason' => (null !== $v = $xml->StackStatusReason[0]) ? (string) $v : null,
257267
'DisableRollback' => (null !== $v = $xml->DisableRollback[0]) ? filter_var((string) $v, \FILTER_VALIDATE_BOOLEAN) : null,
268+
'DeploymentConfig' => 0 === $xml->DeploymentConfig->count() ? null : $this->populateResultDeploymentConfig($xml->DeploymentConfig),
258269
'NotificationARNs' => (0 === ($v = $xml->NotificationARNs)->count()) ? null : $this->populateResultNotificationARNs($v),
259270
'TimeoutInMinutes' => (null !== $v = $xml->TimeoutInMinutes[0]) ? (int) (string) $v : null,
260271
'Capabilities' => (0 === ($v = $xml->Capabilities)->count()) ? null : $this->populateResultCapabilities($v),
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<?php
2+
3+
namespace AsyncAws\CloudFormation\ValueObject;
4+
5+
use AsyncAws\CloudFormation\Enum\DeploymentConfigMode;
6+
7+
/**
8+
* The deployment configuration for a stack operation, including the deployment mode.
9+
*/
10+
final class DeploymentConfig
11+
{
12+
/**
13+
* Specifies the deployment mode for the stack operation. Possible values are:
14+
*
15+
* - `STANDARD` - Use the standard deployment behavior, ensuring resources are ready to serve traffic before completing
16+
* the operation. This is the default. You do not need to specify this value explicitly.
17+
* - `EXPRESS` - Complete the stack operation when resource configuration is applied, without waiting for resources to
18+
* become ready to serve traffic. Resources continue becoming ready in the background.
19+
*
20+
* @var DeploymentConfigMode::*|null
21+
*/
22+
private $mode;
23+
24+
/**
25+
* Specifies whether to disable rollback of the stack if the stack operation fails.
26+
*
27+
* Default: `false`
28+
*
29+
* @var bool|null
30+
*/
31+
private $disableRollback;
32+
33+
/**
34+
* @param array{
35+
* Mode?: DeploymentConfigMode::*|null,
36+
* DisableRollback?: bool|null,
37+
* } $input
38+
*/
39+
public function __construct(array $input)
40+
{
41+
$this->mode = $input['Mode'] ?? null;
42+
$this->disableRollback = $input['DisableRollback'] ?? null;
43+
}
44+
45+
/**
46+
* @param array{
47+
* Mode?: DeploymentConfigMode::*|null,
48+
* DisableRollback?: bool|null,
49+
* }|DeploymentConfig $input
50+
*/
51+
public static function create($input): self
52+
{
53+
return $input instanceof self ? $input : new self($input);
54+
}
55+
56+
public function getDisableRollback(): ?bool
57+
{
58+
return $this->disableRollback;
59+
}
60+
61+
/**
62+
* @return DeploymentConfigMode::*|null
63+
*/
64+
public function getMode(): ?string
65+
{
66+
return $this->mode;
67+
}
68+
}

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@ final class Stack
101101
*/
102102
private $disableRollback;
103103

104+
/**
105+
* The deployment configuration for the stack, including the deployment mode used for stack operations.
106+
*
107+
* @var DeploymentConfig|null
108+
*/
109+
private $deploymentConfig;
110+
104111
/**
105112
* Amazon SNS topic Amazon Resource Names (ARNs) to which stack related events are published.
106113
*
@@ -245,6 +252,7 @@ final class Stack
245252
* StackStatus: StackStatus::*,
246253
* StackStatusReason?: string|null,
247254
* DisableRollback?: bool|null,
255+
* DeploymentConfig?: DeploymentConfig|array|null,
248256
* NotificationARNs?: string[]|null,
249257
* TimeoutInMinutes?: int|null,
250258
* Capabilities?: array<Capability::*>|null,
@@ -275,6 +283,7 @@ public function __construct(array $input)
275283
$this->stackStatus = $input['StackStatus'] ?? $this->throwException(new InvalidArgument('Missing required field "StackStatus".'));
276284
$this->stackStatusReason = $input['StackStatusReason'] ?? null;
277285
$this->disableRollback = $input['DisableRollback'] ?? null;
286+
$this->deploymentConfig = isset($input['DeploymentConfig']) ? DeploymentConfig::create($input['DeploymentConfig']) : null;
278287
$this->notificationArns = $input['NotificationARNs'] ?? null;
279288
$this->timeoutInMinutes = $input['TimeoutInMinutes'] ?? null;
280289
$this->capabilities = $input['Capabilities'] ?? null;
@@ -305,6 +314,7 @@ public function __construct(array $input)
305314
* StackStatus: StackStatus::*,
306315
* StackStatusReason?: string|null,
307316
* DisableRollback?: bool|null,
317+
* DeploymentConfig?: DeploymentConfig|array|null,
308318
* NotificationARNs?: string[]|null,
309319
* TimeoutInMinutes?: int|null,
310320
* Capabilities?: array<Capability::*>|null,
@@ -357,6 +367,11 @@ public function getDeletionTime(): ?\DateTimeImmutable
357367
return $this->deletionTime;
358368
}
359369

370+
public function getDeploymentConfig(): ?DeploymentConfig
371+
{
372+
return $this->deploymentConfig;
373+
}
374+
360375
public function getDescription(): ?string
361376
{
362377
return $this->description;

src/Service/CodeBuild/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: Adds support for host kernel selection for on-demand builds.
8+
59
## 2.12.1
610

711
### Changed

src/Service/CodeBuild/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
},
3333
"extra": {
3434
"branch-alias": {
35-
"dev-master": "2.12-dev"
35+
"dev-master": "2.13-dev"
3636
}
3737
}
3838
}

src/Service/CodeBuild/src/CodeBuildClient.php

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

55
use AsyncAws\CodeBuild\Enum\ComputeType;
66
use AsyncAws\CodeBuild\Enum\EnvironmentType;
7+
use AsyncAws\CodeBuild\Enum\HostKernel;
78
use AsyncAws\CodeBuild\Enum\ImagePullCredentialsType;
89
use AsyncAws\CodeBuild\Enum\SourceType;
910
use AsyncAws\CodeBuild\Exception\AccountLimitExceededException;
@@ -102,6 +103,7 @@ public function batchGetBuilds($input): BatchGetBuildsOutput
102103
* debugSessionEnabled?: bool|null,
103104
* fleetOverride?: ProjectFleet|array|null,
104105
* autoRetryLimitOverride?: int|null,
106+
* hostKernelOverride?: HostKernel::*|null,
105107
* '@region'?: string|null,
106108
* }|StartBuildInput $input
107109
*

0 commit comments

Comments
 (0)