Skip to content

Commit c88479c

Browse files
committed
update generated code
1 parent 8f4f76d commit c88479c

File tree

9 files changed

+203
-1
lines changed

9 files changed

+203
-1
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.363.1"
3+
"${LATEST}": "3.363.2"
44
},
55
"endpoints": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json",
66
"services": {

src/Service/Route53/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
- AWS api-change: Amazon Route 53 now supports the ISOB West Region for private DNS for Amazon VPCs and cloudwatch healthchecks.
88
- AWS api-change: Added `us-isob-west-1` region
9+
- AWS api-change: Adds support for new route53 feature: accelerated recovery.
910

1011
### Dependency bumped
1112

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
namespace AsyncAws\Route53\Enum;
4+
5+
final class AcceleratedRecoveryStatus
6+
{
7+
public const DISABLED = 'DISABLED';
8+
public const DISABLE_FAILED = 'DISABLE_FAILED';
9+
public const DISABLING = 'DISABLING';
10+
public const DISABLING_HOSTED_ZONE_LOCKED = 'DISABLING_HOSTED_ZONE_LOCKED';
11+
public const ENABLED = 'ENABLED';
12+
public const ENABLE_FAILED = 'ENABLE_FAILED';
13+
public const ENABLING = 'ENABLING';
14+
public const ENABLING_HOSTED_ZONE_LOCKED = 'ENABLING_HOSTED_ZONE_LOCKED';
15+
16+
public static function exists(string $value): bool
17+
{
18+
return isset([
19+
self::DISABLED => true,
20+
self::DISABLE_FAILED => true,
21+
self::DISABLING => true,
22+
self::DISABLING_HOSTED_ZONE_LOCKED => true,
23+
self::ENABLED => true,
24+
self::ENABLE_FAILED => true,
25+
self::ENABLING => true,
26+
self::ENABLING_HOSTED_ZONE_LOCKED => true,
27+
][$value]);
28+
}
29+
}

src/Service/Route53/src/Result/CreateHostedZoneResponse.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
use AsyncAws\Route53\ValueObject\DelegationSet;
99
use AsyncAws\Route53\ValueObject\HostedZone;
1010
use AsyncAws\Route53\ValueObject\HostedZoneConfig;
11+
use AsyncAws\Route53\ValueObject\HostedZoneFailureReasons;
12+
use AsyncAws\Route53\ValueObject\HostedZoneFeatures;
1113
use AsyncAws\Route53\ValueObject\LinkedService;
1214
use AsyncAws\Route53\ValueObject\VPC;
1315

@@ -140,6 +142,7 @@ private function populateResultHostedZone(\SimpleXMLElement $xml): HostedZone
140142
'Config' => 0 === $xml->Config->count() ? null : $this->populateResultHostedZoneConfig($xml->Config),
141143
'ResourceRecordSetCount' => (null !== $v = $xml->ResourceRecordSetCount[0]) ? (int) (string) $v : null,
142144
'LinkedService' => 0 === $xml->LinkedService->count() ? null : $this->populateResultLinkedService($xml->LinkedService),
145+
'Features' => 0 === $xml->Features->count() ? null : $this->populateResultHostedZoneFeatures($xml->Features),
143146
]);
144147
}
145148

@@ -151,6 +154,21 @@ private function populateResultHostedZoneConfig(\SimpleXMLElement $xml): HostedZ
151154
]);
152155
}
153156

157+
private function populateResultHostedZoneFailureReasons(\SimpleXMLElement $xml): HostedZoneFailureReasons
158+
{
159+
return new HostedZoneFailureReasons([
160+
'AcceleratedRecovery' => (null !== $v = $xml->AcceleratedRecovery[0]) ? (string) $v : null,
161+
]);
162+
}
163+
164+
private function populateResultHostedZoneFeatures(\SimpleXMLElement $xml): HostedZoneFeatures
165+
{
166+
return new HostedZoneFeatures([
167+
'AcceleratedRecoveryStatus' => (null !== $v = $xml->AcceleratedRecoveryStatus[0]) ? (string) $v : null,
168+
'FailureReasons' => 0 === $xml->FailureReasons->count() ? null : $this->populateResultHostedZoneFailureReasons($xml->FailureReasons),
169+
]);
170+
}
171+
154172
private function populateResultLinkedService(\SimpleXMLElement $xml): LinkedService
155173
{
156174
return new LinkedService([

src/Service/Route53/src/Result/ListHostedZonesByNameResponse.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
use AsyncAws\Core\Result;
77
use AsyncAws\Route53\ValueObject\HostedZone;
88
use AsyncAws\Route53\ValueObject\HostedZoneConfig;
9+
use AsyncAws\Route53\ValueObject\HostedZoneFailureReasons;
10+
use AsyncAws\Route53\ValueObject\HostedZoneFeatures;
911
use AsyncAws\Route53\ValueObject\LinkedService;
1012

1113
/**
@@ -147,6 +149,7 @@ private function populateResultHostedZone(\SimpleXMLElement $xml): HostedZone
147149
'Config' => 0 === $xml->Config->count() ? null : $this->populateResultHostedZoneConfig($xml->Config),
148150
'ResourceRecordSetCount' => (null !== $v = $xml->ResourceRecordSetCount[0]) ? (int) (string) $v : null,
149151
'LinkedService' => 0 === $xml->LinkedService->count() ? null : $this->populateResultLinkedService($xml->LinkedService),
152+
'Features' => 0 === $xml->Features->count() ? null : $this->populateResultHostedZoneFeatures($xml->Features),
150153
]);
151154
}
152155

@@ -158,6 +161,21 @@ private function populateResultHostedZoneConfig(\SimpleXMLElement $xml): HostedZ
158161
]);
159162
}
160163

164+
private function populateResultHostedZoneFailureReasons(\SimpleXMLElement $xml): HostedZoneFailureReasons
165+
{
166+
return new HostedZoneFailureReasons([
167+
'AcceleratedRecovery' => (null !== $v = $xml->AcceleratedRecovery[0]) ? (string) $v : null,
168+
]);
169+
}
170+
171+
private function populateResultHostedZoneFeatures(\SimpleXMLElement $xml): HostedZoneFeatures
172+
{
173+
return new HostedZoneFeatures([
174+
'AcceleratedRecoveryStatus' => (null !== $v = $xml->AcceleratedRecoveryStatus[0]) ? (string) $v : null,
175+
'FailureReasons' => 0 === $xml->FailureReasons->count() ? null : $this->populateResultHostedZoneFailureReasons($xml->FailureReasons),
176+
]);
177+
}
178+
161179
/**
162180
* @return HostedZone[]
163181
*/

src/Service/Route53/src/Result/ListHostedZonesResponse.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
use AsyncAws\Route53\Route53Client;
1010
use AsyncAws\Route53\ValueObject\HostedZone;
1111
use AsyncAws\Route53\ValueObject\HostedZoneConfig;
12+
use AsyncAws\Route53\ValueObject\HostedZoneFailureReasons;
13+
use AsyncAws\Route53\ValueObject\HostedZoneFeatures;
1214
use AsyncAws\Route53\ValueObject\LinkedService;
1315

1416
/**
@@ -160,6 +162,7 @@ private function populateResultHostedZone(\SimpleXMLElement $xml): HostedZone
160162
'Config' => 0 === $xml->Config->count() ? null : $this->populateResultHostedZoneConfig($xml->Config),
161163
'ResourceRecordSetCount' => (null !== $v = $xml->ResourceRecordSetCount[0]) ? (int) (string) $v : null,
162164
'LinkedService' => 0 === $xml->LinkedService->count() ? null : $this->populateResultLinkedService($xml->LinkedService),
165+
'Features' => 0 === $xml->Features->count() ? null : $this->populateResultHostedZoneFeatures($xml->Features),
163166
]);
164167
}
165168

@@ -171,6 +174,21 @@ private function populateResultHostedZoneConfig(\SimpleXMLElement $xml): HostedZ
171174
]);
172175
}
173176

177+
private function populateResultHostedZoneFailureReasons(\SimpleXMLElement $xml): HostedZoneFailureReasons
178+
{
179+
return new HostedZoneFailureReasons([
180+
'AcceleratedRecovery' => (null !== $v = $xml->AcceleratedRecovery[0]) ? (string) $v : null,
181+
]);
182+
}
183+
184+
private function populateResultHostedZoneFeatures(\SimpleXMLElement $xml): HostedZoneFeatures
185+
{
186+
return new HostedZoneFeatures([
187+
'AcceleratedRecoveryStatus' => (null !== $v = $xml->AcceleratedRecoveryStatus[0]) ? (string) $v : null,
188+
'FailureReasons' => 0 === $xml->FailureReasons->count() ? null : $this->populateResultHostedZoneFailureReasons($xml->FailureReasons),
189+
]);
190+
}
191+
174192
/**
175193
* @return HostedZone[]
176194
*/

src/Service/Route53/src/ValueObject/HostedZone.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ final class HostedZone
5858
*/
5959
private $linkedService;
6060

61+
/**
62+
* The features configuration for the hosted zone, including accelerated recovery settings and status information.
63+
*
64+
* @var HostedZoneFeatures|null
65+
*/
66+
private $features;
67+
6168
/**
6269
* @param array{
6370
* Id: string,
@@ -66,6 +73,7 @@ final class HostedZone
6673
* Config?: HostedZoneConfig|array|null,
6774
* ResourceRecordSetCount?: int|null,
6875
* LinkedService?: LinkedService|array|null,
76+
* Features?: HostedZoneFeatures|array|null,
6977
* } $input
7078
*/
7179
public function __construct(array $input)
@@ -76,6 +84,7 @@ public function __construct(array $input)
7684
$this->config = isset($input['Config']) ? HostedZoneConfig::create($input['Config']) : null;
7785
$this->resourceRecordSetCount = $input['ResourceRecordSetCount'] ?? null;
7886
$this->linkedService = isset($input['LinkedService']) ? LinkedService::create($input['LinkedService']) : null;
87+
$this->features = isset($input['Features']) ? HostedZoneFeatures::create($input['Features']) : null;
7988
}
8089

8190
/**
@@ -86,6 +95,7 @@ public function __construct(array $input)
8695
* Config?: HostedZoneConfig|array|null,
8796
* ResourceRecordSetCount?: int|null,
8897
* LinkedService?: LinkedService|array|null,
98+
* Features?: HostedZoneFeatures|array|null,
8999
* }|HostedZone $input
90100
*/
91101
public static function create($input): self
@@ -103,6 +113,11 @@ public function getConfig(): ?HostedZoneConfig
103113
return $this->config;
104114
}
105115

116+
public function getFeatures(): ?HostedZoneFeatures
117+
{
118+
return $this->features;
119+
}
120+
106121
public function getId(): string
107122
{
108123
return $this->id;
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?php
2+
3+
namespace AsyncAws\Route53\ValueObject;
4+
5+
/**
6+
* Contains information about why certain features failed to be enabled or configured for the hosted zone.
7+
*/
8+
final class HostedZoneFailureReasons
9+
{
10+
/**
11+
* The reason why accelerated recovery failed to be enabled or disabled for the hosted zone, if applicable.
12+
*
13+
* @var string|null
14+
*/
15+
private $acceleratedRecovery;
16+
17+
/**
18+
* @param array{
19+
* AcceleratedRecovery?: string|null,
20+
* } $input
21+
*/
22+
public function __construct(array $input)
23+
{
24+
$this->acceleratedRecovery = $input['AcceleratedRecovery'] ?? null;
25+
}
26+
27+
/**
28+
* @param array{
29+
* AcceleratedRecovery?: string|null,
30+
* }|HostedZoneFailureReasons $input
31+
*/
32+
public static function create($input): self
33+
{
34+
return $input instanceof self ? $input : new self($input);
35+
}
36+
37+
public function getAcceleratedRecovery(): ?string
38+
{
39+
return $this->acceleratedRecovery;
40+
}
41+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<?php
2+
3+
namespace AsyncAws\Route53\ValueObject;
4+
5+
use AsyncAws\Route53\Enum\AcceleratedRecoveryStatus;
6+
7+
/**
8+
* Represents the features configuration for a hosted zone, including the status of various features and any associated
9+
* failure reasons.
10+
*/
11+
final class HostedZoneFeatures
12+
{
13+
/**
14+
* The current status of accelerated recovery for the hosted zone.
15+
*
16+
* @var AcceleratedRecoveryStatus::*|null
17+
*/
18+
private $acceleratedRecoveryStatus;
19+
20+
/**
21+
* Information about any failures that occurred when attempting to enable or configure features for the hosted zone.
22+
*
23+
* @var HostedZoneFailureReasons|null
24+
*/
25+
private $failureReasons;
26+
27+
/**
28+
* @param array{
29+
* AcceleratedRecoveryStatus?: AcceleratedRecoveryStatus::*|null,
30+
* FailureReasons?: HostedZoneFailureReasons|array|null,
31+
* } $input
32+
*/
33+
public function __construct(array $input)
34+
{
35+
$this->acceleratedRecoveryStatus = $input['AcceleratedRecoveryStatus'] ?? null;
36+
$this->failureReasons = isset($input['FailureReasons']) ? HostedZoneFailureReasons::create($input['FailureReasons']) : null;
37+
}
38+
39+
/**
40+
* @param array{
41+
* AcceleratedRecoveryStatus?: AcceleratedRecoveryStatus::*|null,
42+
* FailureReasons?: HostedZoneFailureReasons|array|null,
43+
* }|HostedZoneFeatures $input
44+
*/
45+
public static function create($input): self
46+
{
47+
return $input instanceof self ? $input : new self($input);
48+
}
49+
50+
/**
51+
* @return AcceleratedRecoveryStatus::*|null
52+
*/
53+
public function getAcceleratedRecoveryStatus(): ?string
54+
{
55+
return $this->acceleratedRecoveryStatus;
56+
}
57+
58+
public function getFailureReasons(): ?HostedZoneFailureReasons
59+
{
60+
return $this->failureReasons;
61+
}
62+
}

0 commit comments

Comments
 (0)