Skip to content

Commit c669405

Browse files
Update generated code (#1583)
update generated code
1 parent 6dd43df commit c669405

File tree

6 files changed

+62
-2
lines changed

6 files changed

+62
-2
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.282.2"
3+
"${LATEST}": "3.283.1"
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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
- Allow passing explicit null values for optional fields of input objects
88

9+
### Added
10+
11+
- AWS api-change: Add hostedzonetype filter to ListHostedZones API.
12+
913
## 2.0.0
1014

1115
### BC-BREAK
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
namespace AsyncAws\Route53\Enum;
4+
5+
final class HostedZoneType
6+
{
7+
public const PRIVATE_HOSTED_ZONE = 'PrivateHostedZone';
8+
9+
public static function exists(string $value): bool
10+
{
11+
return isset([
12+
self::PRIVATE_HOSTED_ZONE => true,
13+
][$value]);
14+
}
15+
}

src/Service/Route53/src/Input/ListHostedZonesRequest.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
namespace AsyncAws\Route53\Input;
44

5+
use AsyncAws\Core\Exception\InvalidArgument;
56
use AsyncAws\Core\Input;
67
use AsyncAws\Core\Request;
78
use AsyncAws\Core\Stream\StreamFactory;
9+
use AsyncAws\Route53\Enum\HostedZoneType;
810

911
/**
1012
* A request to retrieve a list of the public and private hosted zones that are associated with the current Amazon Web
@@ -42,11 +44,19 @@ final class ListHostedZonesRequest extends Input
4244
*/
4345
private $delegationSetId;
4446

47+
/**
48+
* (Optional) Specifies if the hosted zone is private.
49+
*
50+
* @var HostedZoneType::*|null
51+
*/
52+
private $hostedZoneType;
53+
4554
/**
4655
* @param array{
4756
* Marker?: null|string,
4857
* MaxItems?: null|string,
4958
* DelegationSetId?: null|string,
59+
* HostedZoneType?: null|HostedZoneType::*,
5060
* '@region'?: string|null,
5161
* } $input
5262
*/
@@ -55,6 +65,7 @@ public function __construct(array $input = [])
5565
$this->marker = $input['Marker'] ?? null;
5666
$this->maxItems = $input['MaxItems'] ?? null;
5767
$this->delegationSetId = $input['DelegationSetId'] ?? null;
68+
$this->hostedZoneType = $input['HostedZoneType'] ?? null;
5869
parent::__construct($input);
5970
}
6071

@@ -63,6 +74,7 @@ public function __construct(array $input = [])
6374
* Marker?: null|string,
6475
* MaxItems?: null|string,
6576
* DelegationSetId?: null|string,
77+
* HostedZoneType?: null|HostedZoneType::*,
6678
* '@region'?: string|null,
6779
* }|ListHostedZonesRequest $input
6880
*/
@@ -76,6 +88,14 @@ public function getDelegationSetId(): ?string
7688
return $this->delegationSetId;
7789
}
7890

91+
/**
92+
* @return HostedZoneType::*|null
93+
*/
94+
public function getHostedZoneType(): ?string
95+
{
96+
return $this->hostedZoneType;
97+
}
98+
7999
public function getMarker(): ?string
80100
{
81101
return $this->marker;
@@ -105,6 +125,12 @@ public function request(): Request
105125
if (null !== $this->delegationSetId) {
106126
$query['delegationsetid'] = $this->delegationSetId;
107127
}
128+
if (null !== $this->hostedZoneType) {
129+
if (!HostedZoneType::exists($this->hostedZoneType)) {
130+
throw new InvalidArgument(sprintf('Invalid parameter "HostedZoneType" for "%s". The value "%s" is not a valid "HostedZoneType".', __CLASS__, $this->hostedZoneType));
131+
}
132+
$query['hostedzonetype'] = $this->hostedZoneType;
133+
}
108134

109135
// Prepare URI
110136
$uriString = '/2013-04-01/hostedzone';
@@ -123,6 +149,16 @@ public function setDelegationSetId(?string $value): self
123149
return $this;
124150
}
125151

152+
/**
153+
* @param HostedZoneType::*|null $value
154+
*/
155+
public function setHostedZoneType(?string $value): self
156+
{
157+
$this->hostedZoneType = $value;
158+
159+
return $this;
160+
}
161+
126162
public function setMarker(?string $value): self
127163
{
128164
$this->marker = $value;

src/Service/Route53/src/Route53Client.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use AsyncAws\Core\AwsError\AwsErrorFactoryInterface;
77
use AsyncAws\Core\AwsError\XmlAwsErrorFactory;
88
use AsyncAws\Core\RequestContext;
9+
use AsyncAws\Route53\Enum\HostedZoneType;
910
use AsyncAws\Route53\Enum\RRType;
1011
use AsyncAws\Route53\Exception\ConflictingDomainExistsException;
1112
use AsyncAws\Route53\Exception\DelegationSetNotAvailableException;
@@ -83,7 +84,8 @@ class Route53Client extends AbstractApi
8384
*
8485
* - `CREATE`: Creates a resource record set that has the specified values.
8586
* - `DELETE`: Deletes an existing resource record set that has the specified values.
86-
* - `UPSERT`: If a resource set exists Route 53 updates it with the values in the request.
87+
* - `UPSERT`: If a resource set doesn't exist, Route 53 creates it. If a resource set exists Route 53 updates it with
88+
* the values in the request.
8789
*
8890
* **Syntaxes for Creating, Updating, and Deleting Resource Record Sets**
8991
*
@@ -309,6 +311,7 @@ public function deleteHostedZone($input): DeleteHostedZoneResponse
309311
* Marker?: null|string,
310312
* MaxItems?: null|string,
311313
* DelegationSetId?: null|string,
314+
* HostedZoneType?: null|HostedZoneType::*,
312315
* '@region'?: string|null,
313316
* }|ListHostedZonesRequest $input
314317
*

src/Service/Route53/src/ValueObject/GeoLocation.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ final class GeoLocation
3232
*
3333
* Amazon Route 53 uses the two-letter country codes that are specified in ISO standard 3166-1 alpha-2 [^1].
3434
*
35+
* Route 53 also supports the contry code **UA** forr Ukraine.
36+
*
3537
* [^1]: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
3638
*
3739
* @var string|null

0 commit comments

Comments
 (0)