Skip to content

Commit 45657f8

Browse files
Update generated code (#1349)
* update generated code * Apply suggestions from code review * Fix Psalm Co-authored-by: Jérémy Derussé <[email protected]>
1 parent dac2342 commit 45657f8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

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

psalm.baseline.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,11 @@
372372
<code>(bool) $v</code>
373373
</RedundantCastGivenDocblockType>
374374
</file>
375+
<file src="src/Service/SecretsManager/src/Input/ListSecretsRequest.php">
376+
<RedundantCastGivenDocblockType occurrences="1">
377+
<code>(bool) $v</code>
378+
</RedundantCastGivenDocblockType>
379+
</file>
375380
<file src="src/Service/Ssm/src/Input/GetParameterRequest.php">
376381
<RedundantCastGivenDocblockType occurrences="1">
377382
<code>(bool) $v</code>

src/Service/ElastiCache/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: This release allows you to modify the encryption in transit setting, for existing Redis clusters. You can now change the TLS configuration of your Redis clusters without the need to re-build or re-provision the clusters or impact application availability.
8+
59
## 1.0.0
610

711
### Added
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
namespace AsyncAws\ElastiCache\Enum;
4+
5+
/**
6+
* A setting that allows you to migrate your clients to use in-transit encryption, with no downtime.
7+
*/
8+
final class TransitEncryptionMode
9+
{
10+
public const PREFERRED = 'preferred';
11+
public const REQUIRED = 'required';
12+
13+
public static function exists(string $value): bool
14+
{
15+
return isset([
16+
self::PREFERRED => true,
17+
self::REQUIRED => true,
18+
][$value]);
19+
}
20+
}

src/Service/ElastiCache/src/Result/CacheClusterMessage.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ private function populateResultCacheClusterList(\SimpleXMLElement $xml): array
138138
'CacheNodeType' => ($v = $item->PendingModifiedValues->CacheNodeType) ? (string) $v : null,
139139
'AuthTokenStatus' => ($v = $item->PendingModifiedValues->AuthTokenStatus) ? (string) $v : null,
140140
'LogDeliveryConfigurations' => !$item->PendingModifiedValues->LogDeliveryConfigurations ? null : $this->populateResultPendingLogDeliveryConfigurationList($item->PendingModifiedValues->LogDeliveryConfigurations),
141+
'TransitEncryptionEnabled' => ($v = $item->PendingModifiedValues->TransitEncryptionEnabled) ? filter_var((string) $v, \FILTER_VALIDATE_BOOLEAN) : null,
142+
'TransitEncryptionMode' => ($v = $item->PendingModifiedValues->TransitEncryptionMode) ? (string) $v : null,
141143
]),
142144
'NotificationConfiguration' => !$item->NotificationConfiguration ? null : new NotificationConfiguration([
143145
'TopicArn' => ($v = $item->NotificationConfiguration->TopicArn) ? (string) $v : null,
@@ -165,6 +167,7 @@ private function populateResultCacheClusterList(\SimpleXMLElement $xml): array
165167
'LogDeliveryConfigurations' => !$item->LogDeliveryConfigurations ? null : $this->populateResultLogDeliveryConfigurationList($item->LogDeliveryConfigurations),
166168
'NetworkType' => ($v = $item->NetworkType) ? (string) $v : null,
167169
'IpDiscovery' => ($v = $item->IpDiscovery) ? (string) $v : null,
170+
'TransitEncryptionMode' => ($v = $item->TransitEncryptionMode) ? (string) $v : null,
168171
]);
169172
}
170173

src/Service/ElastiCache/src/ValueObject/CacheCluster.php

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

55
use AsyncAws\ElastiCache\Enum\IpDiscovery;
66
use AsyncAws\ElastiCache\Enum\NetworkType;
7+
use AsyncAws\ElastiCache\Enum\TransitEncryptionMode;
78

89
/**
910
* Contains all of the attributes of a specific cluster.
@@ -181,6 +182,11 @@ final class CacheCluster
181182
*/
182183
private $ipDiscovery;
183184

185+
/**
186+
* A setting that allows you to migrate your clients to use in-transit encryption, with no downtime.
187+
*/
188+
private $transitEncryptionMode;
189+
184190
/**
185191
* @param array{
186192
* CacheClusterId?: null|string,
@@ -215,6 +221,7 @@ final class CacheCluster
215221
* LogDeliveryConfigurations?: null|LogDeliveryConfiguration[],
216222
* NetworkType?: null|NetworkType::*,
217223
* IpDiscovery?: null|IpDiscovery::*,
224+
* TransitEncryptionMode?: null|TransitEncryptionMode::*,
218225
* } $input
219226
*/
220227
public function __construct(array $input)
@@ -251,6 +258,7 @@ public function __construct(array $input)
251258
$this->logDeliveryConfigurations = isset($input['LogDeliveryConfigurations']) ? array_map([LogDeliveryConfiguration::class, 'create'], $input['LogDeliveryConfigurations']) : null;
252259
$this->networkType = $input['NetworkType'] ?? null;
253260
$this->ipDiscovery = $input['IpDiscovery'] ?? null;
261+
$this->transitEncryptionMode = $input['TransitEncryptionMode'] ?? null;
254262
}
255263

256264
public static function create($input): self
@@ -435,4 +443,12 @@ public function getTransitEncryptionEnabled(): ?bool
435443
{
436444
return $this->transitEncryptionEnabled;
437445
}
446+
447+
/**
448+
* @return TransitEncryptionMode::*|null
449+
*/
450+
public function getTransitEncryptionMode(): ?string
451+
{
452+
return $this->transitEncryptionMode;
453+
}
438454
}

src/Service/ElastiCache/src/ValueObject/PendingModifiedValues.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace AsyncAws\ElastiCache\ValueObject;
44

55
use AsyncAws\ElastiCache\Enum\AuthTokenUpdateStatus;
6+
use AsyncAws\ElastiCache\Enum\TransitEncryptionMode;
67

78
final class PendingModifiedValues
89
{
@@ -37,6 +38,16 @@ final class PendingModifiedValues
3738
*/
3839
private $logDeliveryConfigurations;
3940

41+
/**
42+
* A flag that enables in-transit encryption when set to true.
43+
*/
44+
private $transitEncryptionEnabled;
45+
46+
/**
47+
* A setting that allows you to migrate your clients to use in-transit encryption, with no downtime.
48+
*/
49+
private $transitEncryptionMode;
50+
4051
/**
4152
* @param array{
4253
* NumCacheNodes?: null|int,
@@ -45,6 +56,8 @@ final class PendingModifiedValues
4556
* CacheNodeType?: null|string,
4657
* AuthTokenStatus?: null|AuthTokenUpdateStatus::*,
4758
* LogDeliveryConfigurations?: null|PendingLogDeliveryConfiguration[],
59+
* TransitEncryptionEnabled?: null|bool,
60+
* TransitEncryptionMode?: null|TransitEncryptionMode::*,
4861
* } $input
4962
*/
5063
public function __construct(array $input)
@@ -55,6 +68,8 @@ public function __construct(array $input)
5568
$this->cacheNodeType = $input['CacheNodeType'] ?? null;
5669
$this->authTokenStatus = $input['AuthTokenStatus'] ?? null;
5770
$this->logDeliveryConfigurations = isset($input['LogDeliveryConfigurations']) ? array_map([PendingLogDeliveryConfiguration::class, 'create'], $input['LogDeliveryConfigurations']) : null;
71+
$this->transitEncryptionEnabled = $input['TransitEncryptionEnabled'] ?? null;
72+
$this->transitEncryptionMode = $input['TransitEncryptionMode'] ?? null;
5873
}
5974

6075
public static function create($input): self
@@ -100,4 +115,17 @@ public function getNumCacheNodes(): ?int
100115
{
101116
return $this->numCacheNodes;
102117
}
118+
119+
public function getTransitEncryptionEnabled(): ?bool
120+
{
121+
return $this->transitEncryptionEnabled;
122+
}
123+
124+
/**
125+
* @return TransitEncryptionMode::*|null
126+
*/
127+
public function getTransitEncryptionMode(): ?string
128+
{
129+
return $this->transitEncryptionMode;
130+
}
103131
}

src/Service/Kinesis/CHANGELOG.md

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

33
## NOT RELEASED
44

5+
### Added
6+
7+
- AWS api-change: Added StreamARN parameter for Kinesis Data Streams APIs. Added a new opaque pagination token for ListStreams. SDKs will auto-generate Account Endpoint when accessing Kinesis Data Streams.
8+
- BC BREAK: `listStreams` now yield over stream names AND descriptions
9+
510
## 1.1.0
611

712
### Added
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
namespace AsyncAws\Kinesis\Exception;
4+
5+
use AsyncAws\Core\Exception\Http\ClientException;
6+
use Symfony\Contracts\HttpClient\ResponseInterface;
7+
8+
/**
9+
* Specifies that you do not have the permissions required to perform this operation.
10+
*/
11+
final class AccessDeniedException extends ClientException
12+
{
13+
protected function populateResult(ResponseInterface $response): void
14+
{
15+
$data = $response->toArray(false);
16+
17+
if (null !== $v = (isset($data['message']) ? (string) $data['message'] : null)) {
18+
$this->message = $v;
19+
}
20+
}
21+
}

src/Service/Kinesis/src/Exception/ValidationException.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
use AsyncAws\Core\Exception\Http\ClientException;
66
use Symfony\Contracts\HttpClient\ResponseInterface;
77

8+
/**
9+
* Specifies that you tried to invoke this API for a data stream with the on-demand capacity mode. This API is only
10+
* supported for data streams with the provisioned capacity mode.
11+
*/
812
final class ValidationException extends ClientException
913
{
1014
protected function populateResult(ResponseInterface $response): void

0 commit comments

Comments
 (0)