Skip to content

Commit 0954bc3

Browse files
async-aws-botjderusse
authored andcommitted
update generated code
1 parent bbac540 commit 0954bc3

27 files changed

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

psalm.baseline.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,14 @@
262262
<code><![CDATA[list<Reason::*>]]></code>
263263
</MoreSpecificReturnType>
264264
</file>
265+
<file src="src/Service/S3/src/Result/GetBucketEncryptionOutput.php">
266+
<LessSpecificReturnStatement>
267+
<code><![CDATA[$items]]></code>
268+
</LessSpecificReturnStatement>
269+
<MoreSpecificReturnType>
270+
<code><![CDATA[array<EncryptionType::*>]]></code>
271+
</MoreSpecificReturnType>
272+
</file>
265273
<file src="src/Service/S3/src/Result/ListObjectVersionsOutput.php">
266274
<LessSpecificReturnStatement>
267275
<code><![CDATA[$items]]></code>

src/Service/DynamoDb/src/Exception/RequestLimitExceededException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/**
1010
* Throughput exceeds the current throughput quota for your account. For detailed information about why the request was
1111
* throttled and the ARN of the impacted resource, find the ThrottlingReason [^1] field in the returned exception.
12-
* Contact Amazon Web ServicesSupport [^2] to request a quota increase.
12+
* Contact Amazon Web Services Support [^2] to request a quota increase.
1313
*
1414
* [^1]: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ThrottlingReason.html
1515
* [^2]: https://aws.amazon.com/support

src/Service/Lambda/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- AWS api-change: Added `us-isob-west-1` region
99
- AWS api-change: Added SerializedRequestEntityTooLargeException to Lambda Invoke API
1010
- AWS api-change: Add Python3.14 (python3.14) and Java 25 (java25) support to AWS Lambda
11+
- AWS api-change: Added support for creating and invoking Tenant Isolated functions in AWS Lambda APIs.
1112

1213
### Dependency bumped
1314

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

src/Service/Lambda/src/Input/InvocationRequest.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ final class InvocationRequest extends Input
7575
*/
7676
private $qualifier;
7777

78+
/**
79+
* The identifier of the tenant in a multi-tenant Lambda function.
80+
*
81+
* @var string|null
82+
*/
83+
private $tenantId;
84+
7885
/**
7986
* @param array{
8087
* FunctionName?: string,
@@ -83,6 +90,7 @@ final class InvocationRequest extends Input
8390
* ClientContext?: string|null,
8491
* Payload?: string|null,
8592
* Qualifier?: string|null,
93+
* TenantId?: string|null,
8694
* '@region'?: string|null,
8795
* } $input
8896
*/
@@ -94,6 +102,7 @@ public function __construct(array $input = [])
94102
$this->clientContext = $input['ClientContext'] ?? null;
95103
$this->payload = $input['Payload'] ?? null;
96104
$this->qualifier = $input['Qualifier'] ?? null;
105+
$this->tenantId = $input['TenantId'] ?? null;
97106
parent::__construct($input);
98107
}
99108

@@ -105,6 +114,7 @@ public function __construct(array $input = [])
105114
* ClientContext?: string|null,
106115
* Payload?: string|null,
107116
* Qualifier?: string|null,
117+
* TenantId?: string|null,
108118
* '@region'?: string|null,
109119
* }|InvocationRequest $input
110120
*/
@@ -149,6 +159,11 @@ public function getQualifier(): ?string
149159
return $this->qualifier;
150160
}
151161

162+
public function getTenantId(): ?string
163+
{
164+
return $this->tenantId;
165+
}
166+
152167
/**
153168
* @internal
154169
*/
@@ -174,6 +189,9 @@ public function request(): Request
174189
if (null !== $this->clientContext) {
175190
$headers['X-Amz-Client-Context'] = $this->clientContext;
176191
}
192+
if (null !== $this->tenantId) {
193+
$headers['X-Amz-Tenant-Id'] = $this->tenantId;
194+
}
177195

178196
// Prepare query
179197
$query = [];
@@ -243,4 +261,11 @@ public function setQualifier(?string $value): self
243261

244262
return $this;
245263
}
264+
265+
public function setTenantId(?string $value): self
266+
{
267+
$this->tenantId = $value;
268+
269+
return $this;
270+
}
246271
}

src/Service/Lambda/src/LambdaClient.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ public function getFunctionConfiguration($input): FunctionConfiguration
254254
* ClientContext?: string|null,
255255
* Payload?: string|null,
256256
* Qualifier?: string|null,
257+
* TenantId?: string|null,
257258
* '@region'?: string|null,
258259
* }|InvocationRequest $input
259260
*

src/Service/Lambda/src/Result/FunctionConfiguration.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
use AsyncAws\Lambda\ValueObject\RuntimeVersionConfig;
2525
use AsyncAws\Lambda\ValueObject\RuntimeVersionError;
2626
use AsyncAws\Lambda\ValueObject\SnapStartResponse;
27+
use AsyncAws\Lambda\ValueObject\TenancyConfig;
2728
use AsyncAws\Lambda\ValueObject\TracingConfigResponse;
2829
use AsyncAws\Lambda\ValueObject\VpcConfigResponse;
2930

@@ -329,6 +330,14 @@ class FunctionConfiguration extends Result
329330
*/
330331
private $loggingConfig;
331332

333+
/**
334+
* The function's tenant isolation configuration settings. Determines whether the Lambda function runs on a shared or
335+
* dedicated infrastructure per unique tenant.
336+
*
337+
* @var TenancyConfig|null
338+
*/
339+
private $tenancyConfig;
340+
332341
/**
333342
* @return list<Architecture::*>
334343
*/
@@ -580,6 +589,13 @@ public function getStateReasonCode(): ?string
580589
return $this->stateReasonCode;
581590
}
582591

592+
public function getTenancyConfig(): ?TenancyConfig
593+
{
594+
$this->initialize();
595+
596+
return $this->tenancyConfig;
597+
}
598+
583599
public function getTimeout(): ?int
584600
{
585601
$this->initialize();
@@ -648,6 +664,7 @@ protected function populateResult(Response $response): void
648664
$this->snapStart = empty($data['SnapStart']) ? null : $this->populateResultSnapStartResponse($data['SnapStart']);
649665
$this->runtimeVersionConfig = empty($data['RuntimeVersionConfig']) ? null : $this->populateResultRuntimeVersionConfig($data['RuntimeVersionConfig']);
650666
$this->loggingConfig = empty($data['LoggingConfig']) ? null : $this->populateResultLoggingConfig($data['LoggingConfig']);
667+
$this->tenancyConfig = empty($data['TenancyConfig']) ? null : $this->populateResultTenancyConfig($data['TenancyConfig']);
651668
}
652669

653670
/**
@@ -860,6 +877,13 @@ private function populateResultSubnetIds(array $json): array
860877
return $items;
861878
}
862879

880+
private function populateResultTenancyConfig(array $json): TenancyConfig
881+
{
882+
return new TenancyConfig([
883+
'TenantIsolationMode' => (string) $json['TenantIsolationMode'],
884+
]);
885+
}
886+
863887
private function populateResultTracingConfigResponse(array $json): TracingConfigResponse
864888
{
865889
return new TracingConfigResponse([

src/Service/Lambda/src/Result/ListFunctionsResponse.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
use AsyncAws\Lambda\ValueObject\RuntimeVersionConfig;
2323
use AsyncAws\Lambda\ValueObject\RuntimeVersionError;
2424
use AsyncAws\Lambda\ValueObject\SnapStartResponse;
25+
use AsyncAws\Lambda\ValueObject\TenancyConfig;
2526
use AsyncAws\Lambda\ValueObject\TracingConfigResponse;
2627
use AsyncAws\Lambda\ValueObject\VpcConfigResponse;
2728

@@ -234,6 +235,7 @@ private function populateResultFunctionConfiguration(array $json): FunctionConfi
234235
'SnapStart' => empty($json['SnapStart']) ? null : $this->populateResultSnapStartResponse($json['SnapStart']),
235236
'RuntimeVersionConfig' => empty($json['RuntimeVersionConfig']) ? null : $this->populateResultRuntimeVersionConfig($json['RuntimeVersionConfig']),
236237
'LoggingConfig' => empty($json['LoggingConfig']) ? null : $this->populateResultLoggingConfig($json['LoggingConfig']),
238+
'TenancyConfig' => empty($json['TenancyConfig']) ? null : $this->populateResultTenancyConfig($json['TenancyConfig']),
237239
]);
238240
}
239241

@@ -380,6 +382,13 @@ private function populateResultSubnetIds(array $json): array
380382
return $items;
381383
}
382384

385+
private function populateResultTenancyConfig(array $json): TenancyConfig
386+
{
387+
return new TenancyConfig([
388+
'TenantIsolationMode' => (string) $json['TenantIsolationMode'],
389+
]);
390+
}
391+
383392
private function populateResultTracingConfigResponse(array $json): TracingConfigResponse
384393
{
385394
return new TracingConfigResponse([

src/Service/Lambda/src/Result/ListVersionsByFunctionResponse.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
use AsyncAws\Lambda\ValueObject\RuntimeVersionConfig;
2323
use AsyncAws\Lambda\ValueObject\RuntimeVersionError;
2424
use AsyncAws\Lambda\ValueObject\SnapStartResponse;
25+
use AsyncAws\Lambda\ValueObject\TenancyConfig;
2526
use AsyncAws\Lambda\ValueObject\TracingConfigResponse;
2627
use AsyncAws\Lambda\ValueObject\VpcConfigResponse;
2728

@@ -232,6 +233,7 @@ private function populateResultFunctionConfiguration(array $json): FunctionConfi
232233
'SnapStart' => empty($json['SnapStart']) ? null : $this->populateResultSnapStartResponse($json['SnapStart']),
233234
'RuntimeVersionConfig' => empty($json['RuntimeVersionConfig']) ? null : $this->populateResultRuntimeVersionConfig($json['RuntimeVersionConfig']),
234235
'LoggingConfig' => empty($json['LoggingConfig']) ? null : $this->populateResultLoggingConfig($json['LoggingConfig']),
236+
'TenancyConfig' => empty($json['TenancyConfig']) ? null : $this->populateResultTenancyConfig($json['TenancyConfig']),
235237
]);
236238
}
237239

@@ -378,6 +380,13 @@ private function populateResultSubnetIds(array $json): array
378380
return $items;
379381
}
380382

383+
private function populateResultTenancyConfig(array $json): TenancyConfig
384+
{
385+
return new TenancyConfig([
386+
'TenantIsolationMode' => (string) $json['TenantIsolationMode'],
387+
]);
388+
}
389+
381390
private function populateResultTracingConfigResponse(array $json): TracingConfigResponse
382391
{
383392
return new TracingConfigResponse([

0 commit comments

Comments
 (0)