Skip to content

Commit ca73124

Browse files
committed
update generated code
1 parent 0a136cf commit ca73124

Some content is hidden

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

49 files changed

+701
-265
lines changed

manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"variables": {
3-
"${LATEST}": "3.284.1"
3+
"${LATEST}": "3.285.3"
44
},
55
"endpoints": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json",
66
"services": {

src/Service/CloudFormation/src/CloudFormationClient.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function describeStackEvents($input = []): DescribeStackEventsOutput
7777
* Returns the description for the specified stack; if no stack name was specified, then it returns the description for
7878
* all the stacks created.
7979
*
80-
* > If the stack doesn't exist, an `ValidationError` is returned.
80+
* > If the stack doesn't exist, a `ValidationError` is returned.
8181
*
8282
* @see https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeStacks.html
8383
* @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-cloudformation-2010-05-15.html#describestacks

src/Service/Lambda/CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
### Added
66

77
- AWS api-change: Adds support for Lambda functions to access Dual-Stack subnets over IPv6, via an opt-in flag in CreateFunction and UpdateFunctionConfiguration APIs
8+
- AWS api-change: Add Custom runtime on Amazon Linux 2023 (provided.al2023) support to AWS Lambda.
9+
- AWS api-change: Add Node 20 (nodejs20.x) support to AWS Lambda.
810

911
## 2.1.0
1012

src/Service/Lambda/src/Enum/Runtime.php

+4
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ final class Runtime
2020
public const NODEJS_14_X = 'nodejs14.x';
2121
public const NODEJS_16_X = 'nodejs16.x';
2222
public const NODEJS_18_X = 'nodejs18.x';
23+
public const NODEJS_20_X = 'nodejs20.x';
2324
public const NODEJS_4_3 = 'nodejs4.3';
2425
public const NODEJS_4_3_EDGE = 'nodejs4.3-edge';
2526
public const NODEJS_6_10 = 'nodejs6.10';
2627
public const NODEJS_8_10 = 'nodejs8.10';
2728
public const PROVIDED = 'provided';
2829
public const PROVIDED_AL_2 = 'provided.al2';
30+
public const PROVIDED_AL_2023 = 'provided.al2023';
2931
public const PYTHON_2_7 = 'python2.7';
3032
public const PYTHON_3_10 = 'python3.10';
3133
public const PYTHON_3_11 = 'python3.11';
@@ -56,12 +58,14 @@ public static function exists(string $value): bool
5658
self::NODEJS_14_X => true,
5759
self::NODEJS_16_X => true,
5860
self::NODEJS_18_X => true,
61+
self::NODEJS_20_X => true,
5962
self::NODEJS_4_3 => true,
6063
self::NODEJS_4_3_EDGE => true,
6164
self::NODEJS_6_10 => true,
6265
self::NODEJS_8_10 => true,
6366
self::PROVIDED => true,
6467
self::PROVIDED_AL_2 => true,
68+
self::PROVIDED_AL_2023 => true,
6569
self::PYTHON_2_7 => true,
6670
self::PYTHON_3_10 => true,
6771
self::PYTHON_3_11 => true,

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@ final class UpdateFunctionConfigurationRequest extends Input
181181

182182
/**
183183
* The size of the function's `/tmp` directory in MB. The default value is 512, but can be any whole number between 512
184-
* and 10,240 MB.
184+
* and 10,240 MB. For more information, see Configuring ephemeral storage (console) [^1].
185+
*
186+
* [^1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage
185187
*
186188
* @var EphemeralStorage|null
187189
*/

src/Service/Lambda/src/LambdaClient.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,10 @@ public function getFunctionConfiguration($input): FunctionConfiguration
196196
}
197197

198198
/**
199-
* Invokes a Lambda function. You can invoke a function synchronously (and wait for the response), or asynchronously. To
200-
* invoke a function asynchronously, set `InvocationType` to `Event`.
199+
* Invokes a Lambda function. You can invoke a function synchronously (and wait for the response), or asynchronously. By
200+
* default, Lambda invokes your function synchronously (i.e. the`InvocationType` is `RequestResponse`). To invoke a
201+
* function asynchronously, set `InvocationType` to `Event`. Lambda passes the `ClientContext` object to your function
202+
* for synchronous invocations only.
201203
*
202204
* For synchronous invocation [^1], details about the function response, including errors, are included in the response
203205
* body and headers. For either invocation type, you can find more information in the execution log [^2] and trace [^3].

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

+4-2
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,10 @@ class FunctionConfiguration extends Result
277277
private $architectures;
278278

279279
/**
280-
* The size of the function’s `/tmp` directory in MB. The default value is 512, but it can be any whole number between
281-
* 512 and 10,240 MB.
280+
* The size of the function's `/tmp` directory in MB. The default value is 512, but can be any whole number between 512
281+
* and 10,240 MB. For more information, see Configuring ephemeral storage (console) [^1].
282+
*
283+
* [^1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage
282284
*
283285
* @var EphemeralStorage|null
284286
*/

src/Service/Lambda/src/ValueObject/EphemeralStorage.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
use AsyncAws\Core\Exception\InvalidArgument;
66

77
/**
8-
* The size of the function's `/tmp` directory in MB. The default value is 512, but it can be any whole number between
9-
* 512 and 10,240 MB.
8+
* The size of the function's `/tmp` directory in MB. The default value is 512, but can be any whole number between 512
9+
* and 10,240 MB. For more information, see Configuring ephemeral storage (console) [^1].
10+
*
11+
* [^1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage
1012
*/
1113
final class EphemeralStorage
1214
{

src/Service/Lambda/src/ValueObject/FunctionConfiguration.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,10 @@ final class FunctionConfiguration
261261
private $architectures;
262262

263263
/**
264-
* The size of the function’s `/tmp` directory in MB. The default value is 512, but it can be any whole number between
265-
* 512 and 10,240 MB.
264+
* The size of the function's `/tmp` directory in MB. The default value is 512, but can be any whole number between 512
265+
* and 10,240 MB. For more information, see Configuring ephemeral storage (console) [^1].
266+
*
267+
* [^1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage
266268
*
267269
* @var EphemeralStorage|null
268270
*/

src/Service/Sqs/CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## NOT RELEASED
44

5+
### Added
6+
7+
- AWS api-change: This release enables customers to call SQS using AWS JSON-1.0 protocol and bug fix.
8+
- AWS api-change: This release enables customers to call SQS using AWS JSON-1.0 protocol.
9+
510
### Changed
611

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

src/Service/Sqs/composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
],
1313
"require": {
1414
"php": "^7.2.5 || ^8.0",
15-
"ext-SimpleXML": "*",
1615
"ext-filter": "*",
16+
"ext-json": "*",
1717
"async-aws/core": "^1.9"
1818
},
1919
"autoload": {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
namespace AsyncAws\Sqs\Exception;
4+
5+
use AsyncAws\Core\Exception\Http\ClientException;
6+
7+
/**
8+
* The `accountId` is invalid.
9+
*/
10+
final class InvalidAddressException extends ClientException
11+
{
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
namespace AsyncAws\Sqs\Exception;
4+
5+
use AsyncAws\Core\Exception\Http\ClientException;
6+
7+
/**
8+
* A queue attribute value is invalid.
9+
*/
10+
final class InvalidAttributeValueException extends ClientException
11+
{
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
namespace AsyncAws\Sqs\Exception;
4+
5+
use AsyncAws\Core\Exception\Http\ClientException;
6+
7+
/**
8+
* When the request to a queue is not HTTPS and SigV4.
9+
*/
10+
final class InvalidSecurityException extends ClientException
11+
{
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
namespace AsyncAws\Sqs\Exception;
4+
5+
use AsyncAws\Core\Exception\Http\ClientException;
6+
7+
/**
8+
* The caller doesn't have the required KMS access.
9+
*/
10+
final class KmsAccessDeniedException extends ClientException
11+
{
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
namespace AsyncAws\Sqs\Exception;
4+
5+
use AsyncAws\Core\Exception\Http\ClientException;
6+
7+
/**
8+
* The request was denied due to request throttling.
9+
*/
10+
final class KmsDisabledException extends ClientException
11+
{
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
namespace AsyncAws\Sqs\Exception;
4+
5+
use AsyncAws\Core\Exception\Http\ClientException;
6+
7+
/**
8+
* The request was rejected for one of the following reasons:.
9+
*
10+
* - The KeyUsage value of the KMS key is incompatible with the API operation.
11+
* - The encryption algorithm or signing algorithm specified for the operation is incompatible with the type of key
12+
* material in the KMS key (KeySpec).
13+
*/
14+
final class KmsInvalidKeyUsageException extends ClientException
15+
{
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
namespace AsyncAws\Sqs\Exception;
4+
5+
use AsyncAws\Core\Exception\Http\ClientException;
6+
7+
/**
8+
* The request was rejected because the state of the specified resource is not valid for this request.
9+
*/
10+
final class KmsInvalidStateException extends ClientException
11+
{
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
namespace AsyncAws\Sqs\Exception;
4+
5+
use AsyncAws\Core\Exception\Http\ClientException;
6+
7+
/**
8+
* The request was rejected because the specified entity or resource could not be found.
9+
*/
10+
final class KmsNotFoundException extends ClientException
11+
{
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
namespace AsyncAws\Sqs\Exception;
4+
5+
use AsyncAws\Core\Exception\Http\ClientException;
6+
7+
/**
8+
* The request was rejected because the specified key policy isn't syntactically or semantically correct.
9+
*/
10+
final class KmsOptInRequiredException extends ClientException
11+
{
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
namespace AsyncAws\Sqs\Exception;
4+
5+
use AsyncAws\Core\Exception\Http\ClientException;
6+
7+
/**
8+
* Amazon Web Services KMS throttles requests for the following conditions.
9+
*/
10+
final class KmsThrottledException extends ClientException
11+
{
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
namespace AsyncAws\Sqs\Exception;
4+
5+
use AsyncAws\Core\Exception\Http\ClientException;
6+
7+
/**
8+
* The request was denied due to request throttling.
9+
*
10+
* - The rate of requests per second exceeds the Amazon Web Services KMS request quota for an account and Region.
11+
* - A burst or sustained high rate of requests to change the state of the same KMS key. This condition is often known
12+
* as a "hot key."
13+
* - Requests for operations on KMS keys in a Amazon Web Services CloudHSM key store might be throttled at a
14+
* lower-than-expected rate when the Amazon Web Services CloudHSM cluster associated with the Amazon Web Services
15+
* CloudHSM key store is processing numerous commands, including those unrelated to the Amazon Web Services CloudHSM
16+
* key store.
17+
*/
18+
final class RequestThrottledException extends ClientException
19+
{
20+
}

src/Service/Sqs/src/Input/ChangeMessageVisibilityBatchRequest.php

+10-7
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ public function getQueueUrl(): ?string
7575
public function request(): Request
7676
{
7777
// Prepare headers
78-
$headers = ['content-type' => 'application/x-www-form-urlencoded'];
78+
$headers = [
79+
'Content-Type' => 'application/x-amz-json-1.0',
80+
'X-Amz-Target' => 'AmazonSQS.ChangeMessageVisibilityBatch',
81+
];
7982

8083
// Prepare query
8184
$query = [];
@@ -84,7 +87,8 @@ public function request(): Request
8487
$uriString = '/';
8588

8689
// Prepare Body
87-
$body = http_build_query(['Action' => 'ChangeMessageVisibilityBatch', 'Version' => '2012-11-05'] + $this->requestBody(), '', '&', \PHP_QUERY_RFC1738);
90+
$bodyPayload = $this->requestBody();
91+
$body = empty($bodyPayload) ? '{}' : json_encode($bodyPayload, 4194304);
8892

8993
// Return the Request
9094
return new Request('POST', $uriString, $query, $headers, StreamFactory::create($body));
@@ -118,12 +122,11 @@ private function requestBody(): array
118122
throw new InvalidArgument(sprintf('Missing parameter "Entries" for "%s". The value cannot be null.', __CLASS__));
119123
}
120124

121-
$index = 0;
122-
foreach ($v as $mapValue) {
125+
$index = -1;
126+
$payload['Entries'] = [];
127+
foreach ($v as $listValue) {
123128
++$index;
124-
foreach ($mapValue->requestBody() as $bodyKey => $bodyValue) {
125-
$payload["ChangeMessageVisibilityBatchRequestEntry.$index.$bodyKey"] = $bodyValue;
126-
}
129+
$payload['Entries'][$index] = $listValue->requestBody();
127130
}
128131

129132
return $payload;

src/Service/Sqs/src/Input/ChangeMessageVisibilityRequest.php

+6-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@ public function getVisibilityTimeout(): ?int
8989
public function request(): Request
9090
{
9191
// Prepare headers
92-
$headers = ['content-type' => 'application/x-www-form-urlencoded'];
92+
$headers = [
93+
'Content-Type' => 'application/x-amz-json-1.0',
94+
'X-Amz-Target' => 'AmazonSQS.ChangeMessageVisibility',
95+
];
9396

9497
// Prepare query
9598
$query = [];
@@ -98,7 +101,8 @@ public function request(): Request
98101
$uriString = '/';
99102

100103
// Prepare Body
101-
$body = http_build_query(['Action' => 'ChangeMessageVisibility', 'Version' => '2012-11-05'] + $this->requestBody(), '', '&', \PHP_QUERY_RFC1738);
104+
$bodyPayload = $this->requestBody();
105+
$body = empty($bodyPayload) ? '{}' : json_encode($bodyPayload, 4194304);
102106

103107
// Return the Request
104108
return new Request('POST', $uriString, $query, $headers, StreamFactory::create($body));

0 commit comments

Comments
 (0)