Skip to content

Commit 3a1082c

Browse files
Update generated code (#2059)
update generated code
1 parent b6d9056 commit 3a1082c

13 files changed

Lines changed: 130 additions & 7 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.376.2"
3+
"${LATEST}": "3.377.0"
44
},
55
"endpoints": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json",
66
"services": {

src/Service/Lambda/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: Launching Lambda integration with S3 Files as a new file system configuration.
8+
59
## 2.13.1
610

711
### Changed

src/Service/Lambda/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.13-dev"
35+
"dev-master": "2.14-dev"
3636
}
3737
}
3838
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
namespace AsyncAws\Lambda\Exception;
4+
5+
use AsyncAws\Core\Exception\Http\ClientException;
6+
use Symfony\Contracts\HttpClient\ResponseInterface;
7+
8+
/**
9+
* The Lambda function couldn't make a network connection to the configured S3 Files access point.
10+
*/
11+
final class S3FilesMountConnectivityException extends ClientException
12+
{
13+
/**
14+
* The exception type.
15+
*
16+
* @var string|null
17+
*/
18+
private $type;
19+
20+
public function getType(): ?string
21+
{
22+
return $this->type;
23+
}
24+
25+
protected function populateResult(ResponseInterface $response): void
26+
{
27+
$data = $response->toArray(false);
28+
29+
$this->type = isset($data['Type']) ? (string) $data['Type'] : null;
30+
}
31+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
namespace AsyncAws\Lambda\Exception;
4+
5+
use AsyncAws\Core\Exception\Http\ClientException;
6+
use Symfony\Contracts\HttpClient\ResponseInterface;
7+
8+
/**
9+
* The Lambda function couldn't mount the configured S3 Files access point due to a permission or configuration issue.
10+
*/
11+
final class S3FilesMountFailureException extends ClientException
12+
{
13+
/**
14+
* The exception type.
15+
*
16+
* @var string|null
17+
*/
18+
private $type;
19+
20+
public function getType(): ?string
21+
{
22+
return $this->type;
23+
}
24+
25+
protected function populateResult(ResponseInterface $response): void
26+
{
27+
$data = $response->toArray(false);
28+
29+
$this->type = isset($data['Type']) ? (string) $data['Type'] : null;
30+
}
31+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
3+
namespace AsyncAws\Lambda\Exception;
4+
5+
use AsyncAws\Core\Exception\Http\ClientException;
6+
use Symfony\Contracts\HttpClient\ResponseInterface;
7+
8+
/**
9+
* The Lambda function made a network connection to the configured S3 Files access point, but the mount operation timed
10+
* out.
11+
*/
12+
final class S3FilesMountTimeoutException extends ClientException
13+
{
14+
/**
15+
* The exception type.
16+
*
17+
* @var string|null
18+
*/
19+
private $type;
20+
21+
public function getType(): ?string
22+
{
23+
return $this->type;
24+
}
25+
26+
protected function populateResult(ResponseInterface $response): void
27+
{
28+
$data = $response->toArray(false);
29+
30+
$this->type = isset($data['Type']) ? (string) $data['Type'] : null;
31+
}
32+
}

src/Service/Lambda/src/Input/UpdateFunctionConfigurationRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ final class UpdateFunctionConfigurationRequest extends Input
182182
private $layers;
183183

184184
/**
185-
* Connection settings for an Amazon EFS file system.
185+
* Connection settings for an Amazon EFS file system or an Amazon S3 Files file system.
186186
*
187187
* @var FileSystemConfig[]|null
188188
*/

src/Service/Lambda/src/LambdaClient.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343
use AsyncAws\Lambda\Exception\ResourceConflictException;
4444
use AsyncAws\Lambda\Exception\ResourceNotFoundException;
4545
use AsyncAws\Lambda\Exception\ResourceNotReadyException;
46+
use AsyncAws\Lambda\Exception\S3FilesMountConnectivityException;
47+
use AsyncAws\Lambda\Exception\S3FilesMountFailureException;
48+
use AsyncAws\Lambda\Exception\S3FilesMountTimeoutException;
4649
use AsyncAws\Lambda\Exception\SerializedRequestEntityTooLargeException;
4750
use AsyncAws\Lambda\Exception\ServiceException;
4851
use AsyncAws\Lambda\Exception\SnapStartException;
@@ -288,6 +291,9 @@ public function getFunctionConfiguration($input): FunctionConfiguration
288291
* @throws ResourceConflictException
289292
* @throws ResourceNotFoundException
290293
* @throws ResourceNotReadyException
294+
* @throws S3FilesMountConnectivityException
295+
* @throws S3FilesMountFailureException
296+
* @throws S3FilesMountTimeoutException
291297
* @throws SerializedRequestEntityTooLargeException
292298
* @throws ServiceException
293299
* @throws SnapStartException
@@ -326,6 +332,9 @@ public function invoke($input): InvocationResponse
326332
'ResourceConflictException' => ResourceConflictException::class,
327333
'ResourceNotFoundException' => ResourceNotFoundException::class,
328334
'ResourceNotReadyException' => ResourceNotReadyException::class,
335+
'S3FilesMountConnectivityException' => S3FilesMountConnectivityException::class,
336+
'S3FilesMountFailureException' => S3FilesMountFailureException::class,
337+
'S3FilesMountTimeoutException' => S3FilesMountTimeoutException::class,
329338
'SerializedRequestEntityTooLargeException' => SerializedRequestEntityTooLargeException::class,
330339
'ServiceException' => ServiceException::class,
331340
'SnapStartException' => SnapStartException::class,

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,10 @@ class FunctionConfiguration extends Result
262262
private $lastUpdateStatusReasonCode;
263263

264264
/**
265-
* Connection settings for an Amazon EFS file system [^1].
265+
* Connection settings for an Amazon EFS file system [^1] or an Amazon S3 Files file system [^2].
266266
*
267267
* [^1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html
268+
* [^2]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html
268269
*
269270
* @var FileSystemConfig[]
270271
*/

src/Service/Lambda/src/ValueObject/FileSystemConfig.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@
55
use AsyncAws\Core\Exception\InvalidArgument;
66

77
/**
8-
* Details about the connection between a Lambda function and an Amazon EFS file system [^1].
8+
* Details about the connection between a Lambda function and an Amazon EFS file system [^1] or an Amazon S3 Files file
9+
* system [^2].
910
*
1011
* [^1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html
12+
* [^2]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html
1113
*/
1214
final class FileSystemConfig
1315
{
1416
/**
15-
* The Amazon Resource Name (ARN) of the Amazon EFS access point that provides access to the file system.
17+
* The Amazon Resource Name (ARN) of the Amazon EFS or Amazon S3 Files access point that provides access to the file
18+
* system.
1619
*
1720
* @var string
1821
*/

0 commit comments

Comments
 (0)