Skip to content

Commit 9836cc9

Browse files
committed
update generated code
1 parent 774e8cf commit 9836cc9

File tree

82 files changed

+1169
-309
lines changed

Some content is hidden

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

82 files changed

+1169
-309
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.286.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/Iot/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Changed
66

77
- Allow passing explicit null values for optional fields of input objects
8+
- AWS enhancement: Documentation updates.
89

910
## 2.0.0
1011

src/Service/Iot/src/IotClient.php

+3
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ public function createThing($input): CreateThingResponse
134134
* Create a thing group.
135135
*
136136
* > This is a control plane operation. See Authorization [^1] for information about authorizing control plane actions.
137+
* >
138+
* > If the `ThingGroup` that you create has the exact same attributes as an existing `ThingGroup`, you will get a 200
139+
* > success response.
137140
*
138141
* Requires permission to access the CreateThingGroup [^2] action.
139142
*

src/Service/Lambda/CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
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: Adds support for logging configuration in Lambda Functions. Customers will have more control how their function logs are captured and to which cloud watch log group they are delivered also.
9+
- AWS api-change: Add Java 21 (java21) support to AWS Lambda
10+
- AWS api-change: Add Python 3.12 (python3.12) support to AWS Lambda
11+
- AWS api-change: Add Custom runtime on Amazon Linux 2023 (provided.al2023) support to AWS Lambda.
12+
- AWS api-change: Add Node 20 (nodejs20.x) support to AWS Lambda.
813

914
## 2.1.0
1015

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
namespace AsyncAws\Lambda\Enum;
4+
5+
final class ApplicationLogLevel
6+
{
7+
public const DEBUG = 'DEBUG';
8+
public const ERROR = 'ERROR';
9+
public const FATAL = 'FATAL';
10+
public const INFO = 'INFO';
11+
public const TRACE = 'TRACE';
12+
public const WARN = 'WARN';
13+
14+
public static function exists(string $value): bool
15+
{
16+
return isset([
17+
self::DEBUG => true,
18+
self::ERROR => true,
19+
self::FATAL => true,
20+
self::INFO => true,
21+
self::TRACE => true,
22+
self::WARN => true,
23+
][$value]);
24+
}
25+
}
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
namespace AsyncAws\Lambda\Enum;
4+
5+
final class LogFormat
6+
{
7+
public const JSON = 'JSON';
8+
public const TEXT = 'Text';
9+
10+
public static function exists(string $value): bool
11+
{
12+
return isset([
13+
self::JSON => true,
14+
self::TEXT => true,
15+
][$value]);
16+
}
17+
}

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

+8
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ final class Runtime
1212
public const GO_1_X = 'go1.x';
1313
public const JAVA_11 = 'java11';
1414
public const JAVA_17 = 'java17';
15+
public const JAVA_21 = 'java21';
1516
public const JAVA_8 = 'java8';
1617
public const JAVA_8_AL_2 = 'java8.al2';
1718
public const NODEJS = 'nodejs';
@@ -20,15 +21,18 @@ final class Runtime
2021
public const NODEJS_14_X = 'nodejs14.x';
2122
public const NODEJS_16_X = 'nodejs16.x';
2223
public const NODEJS_18_X = 'nodejs18.x';
24+
public const NODEJS_20_X = 'nodejs20.x';
2325
public const NODEJS_4_3 = 'nodejs4.3';
2426
public const NODEJS_4_3_EDGE = 'nodejs4.3-edge';
2527
public const NODEJS_6_10 = 'nodejs6.10';
2628
public const NODEJS_8_10 = 'nodejs8.10';
2729
public const PROVIDED = 'provided';
2830
public const PROVIDED_AL_2 = 'provided.al2';
31+
public const PROVIDED_AL_2023 = 'provided.al2023';
2932
public const PYTHON_2_7 = 'python2.7';
3033
public const PYTHON_3_10 = 'python3.10';
3134
public const PYTHON_3_11 = 'python3.11';
35+
public const PYTHON_3_12 = 'python3.12';
3236
public const PYTHON_3_6 = 'python3.6';
3337
public const PYTHON_3_7 = 'python3.7';
3438
public const PYTHON_3_8 = 'python3.8';
@@ -48,6 +52,7 @@ public static function exists(string $value): bool
4852
self::GO_1_X => true,
4953
self::JAVA_11 => true,
5054
self::JAVA_17 => true,
55+
self::JAVA_21 => true,
5156
self::JAVA_8 => true,
5257
self::JAVA_8_AL_2 => true,
5358
self::NODEJS => true,
@@ -56,15 +61,18 @@ public static function exists(string $value): bool
5661
self::NODEJS_14_X => true,
5762
self::NODEJS_16_X => true,
5863
self::NODEJS_18_X => true,
64+
self::NODEJS_20_X => true,
5965
self::NODEJS_4_3 => true,
6066
self::NODEJS_4_3_EDGE => true,
6167
self::NODEJS_6_10 => true,
6268
self::NODEJS_8_10 => true,
6369
self::PROVIDED => true,
6470
self::PROVIDED_AL_2 => true,
71+
self::PROVIDED_AL_2023 => true,
6572
self::PYTHON_2_7 => true,
6673
self::PYTHON_3_10 => true,
6774
self::PYTHON_3_11 => true,
75+
self::PYTHON_3_12 => true,
6876
self::PYTHON_3_6 => true,
6977
self::PYTHON_3_7 => true,
7078
self::PYTHON_3_8 => true,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
namespace AsyncAws\Lambda\Enum;
4+
5+
final class SystemLogLevel
6+
{
7+
public const DEBUG = 'DEBUG';
8+
public const INFO = 'INFO';
9+
public const WARN = 'WARN';
10+
11+
public static function exists(string $value): bool
12+
{
13+
return isset([
14+
self::DEBUG => true,
15+
self::INFO => true,
16+
self::WARN => true,
17+
][$value]);
18+
}
19+
}

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

+26
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use AsyncAws\Lambda\ValueObject\EphemeralStorage;
1313
use AsyncAws\Lambda\ValueObject\FileSystemConfig;
1414
use AsyncAws\Lambda\ValueObject\ImageConfig;
15+
use AsyncAws\Lambda\ValueObject\LoggingConfig;
1516
use AsyncAws\Lambda\ValueObject\SnapStart;
1617
use AsyncAws\Lambda\ValueObject\TracingConfig;
1718
use AsyncAws\Lambda\ValueObject\VpcConfig;
@@ -196,6 +197,13 @@ final class UpdateFunctionConfigurationRequest extends Input
196197
*/
197198
private $snapStart;
198199

200+
/**
201+
* The function's Amazon CloudWatch Logs configuration settings.
202+
*
203+
* @var LoggingConfig|null
204+
*/
205+
private $loggingConfig;
206+
199207
/**
200208
* @param array{
201209
* FunctionName?: string,
@@ -216,6 +224,7 @@ final class UpdateFunctionConfigurationRequest extends Input
216224
* ImageConfig?: null|ImageConfig|array,
217225
* EphemeralStorage?: null|EphemeralStorage|array,
218226
* SnapStart?: null|SnapStart|array,
227+
* LoggingConfig?: null|LoggingConfig|array,
219228
* '@region'?: string|null,
220229
* } $input
221230
*/
@@ -239,6 +248,7 @@ public function __construct(array $input = [])
239248
$this->imageConfig = isset($input['ImageConfig']) ? ImageConfig::create($input['ImageConfig']) : null;
240249
$this->ephemeralStorage = isset($input['EphemeralStorage']) ? EphemeralStorage::create($input['EphemeralStorage']) : null;
241250
$this->snapStart = isset($input['SnapStart']) ? SnapStart::create($input['SnapStart']) : null;
251+
$this->loggingConfig = isset($input['LoggingConfig']) ? LoggingConfig::create($input['LoggingConfig']) : null;
242252
parent::__construct($input);
243253
}
244254

@@ -262,6 +272,7 @@ public function __construct(array $input = [])
262272
* ImageConfig?: null|ImageConfig|array,
263273
* EphemeralStorage?: null|EphemeralStorage|array,
264274
* SnapStart?: null|SnapStart|array,
275+
* LoggingConfig?: null|LoggingConfig|array,
265276
* '@region'?: string|null,
266277
* }|UpdateFunctionConfigurationRequest $input
267278
*/
@@ -326,6 +337,11 @@ public function getLayers(): array
326337
return $this->layers ?? [];
327338
}
328339

340+
public function getLoggingConfig(): ?LoggingConfig
341+
{
342+
return $this->loggingConfig;
343+
}
344+
329345
public function getMemorySize(): ?int
330346
{
331347
return $this->memorySize;
@@ -472,6 +488,13 @@ public function setLayers(array $value): self
472488
return $this;
473489
}
474490

491+
public function setLoggingConfig(?LoggingConfig $value): self
492+
{
493+
$this->loggingConfig = $value;
494+
495+
return $this;
496+
}
497+
475498
public function setMemorySize(?int $value): self
476499
{
477500
$this->memorySize = $value;
@@ -599,6 +622,9 @@ private function requestBody(): array
599622
if (null !== $v = $this->snapStart) {
600623
$payload['SnapStart'] = $v->requestBody();
601624
}
625+
if (null !== $v = $this->loggingConfig) {
626+
$payload['LoggingConfig'] = $v->requestBody();
627+
}
602628

603629
return $payload;
604630
}

src/Service/Lambda/src/LambdaClient.php

+6-2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
use AsyncAws\Lambda\ValueObject\FileSystemConfig;
7373
use AsyncAws\Lambda\ValueObject\ImageConfig;
7474
use AsyncAws\Lambda\ValueObject\LayerVersionContentInput;
75+
use AsyncAws\Lambda\ValueObject\LoggingConfig;
7576
use AsyncAws\Lambda\ValueObject\SnapStart;
7677
use AsyncAws\Lambda\ValueObject\TracingConfig;
7778
use AsyncAws\Lambda\ValueObject\VpcConfig;
@@ -196,8 +197,10 @@ public function getFunctionConfiguration($input): FunctionConfiguration
196197
}
197198

198199
/**
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`.
200+
* Invokes a Lambda function. You can invoke a function synchronously (and wait for the response), or asynchronously. By
201+
* default, Lambda invokes your function synchronously (i.e. the`InvocationType` is `RequestResponse`). To invoke a
202+
* function asynchronously, set `InvocationType` to `Event`. Lambda passes the `ClientContext` object to your function
203+
* for synchronous invocations only.
201204
*
202205
* For synchronous invocation [^1], details about the function response, including errors, are included in the response
203206
* body and headers. For either invocation type, you can find more information in the execution log [^2] and trace [^3].
@@ -508,6 +511,7 @@ public function publishLayerVersion($input): PublishLayerVersionResponse
508511
* ImageConfig?: null|ImageConfig|array,
509512
* EphemeralStorage?: null|EphemeralStorage|array,
510513
* SnapStart?: null|SnapStart|array,
514+
* LoggingConfig?: null|LoggingConfig|array,
511515
* '@region'?: string|null,
512516
* }|UpdateFunctionConfigurationRequest $input
513517
*

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

+26
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
use AsyncAws\Lambda\ValueObject\ImageConfigError;
2121
use AsyncAws\Lambda\ValueObject\ImageConfigResponse;
2222
use AsyncAws\Lambda\ValueObject\Layer;
23+
use AsyncAws\Lambda\ValueObject\LoggingConfig;
2324
use AsyncAws\Lambda\ValueObject\RuntimeVersionConfig;
2425
use AsyncAws\Lambda\ValueObject\RuntimeVersionError;
2526
use AsyncAws\Lambda\ValueObject\SnapStartResponse;
@@ -301,6 +302,13 @@ class FunctionConfiguration extends Result
301302
*/
302303
private $runtimeVersionConfig;
303304

305+
/**
306+
* The function's Amazon CloudWatch Logs configuration settings.
307+
*
308+
* @var LoggingConfig|null
309+
*/
310+
private $loggingConfig;
311+
304312
/**
305313
* @return list<Architecture::*>
306314
*/
@@ -442,6 +450,13 @@ public function getLayers(): array
442450
return $this->layers;
443451
}
444452

453+
public function getLoggingConfig(): ?LoggingConfig
454+
{
455+
$this->initialize();
456+
457+
return $this->loggingConfig;
458+
}
459+
445460
public function getMasterArn(): ?string
446461
{
447462
$this->initialize();
@@ -612,6 +627,7 @@ protected function populateResult(Response $response): void
612627
$this->ephemeralStorage = empty($data['EphemeralStorage']) ? null : $this->populateResultEphemeralStorage($data['EphemeralStorage']);
613628
$this->snapStart = empty($data['SnapStart']) ? null : $this->populateResultSnapStartResponse($data['SnapStart']);
614629
$this->runtimeVersionConfig = empty($data['RuntimeVersionConfig']) ? null : $this->populateResultRuntimeVersionConfig($data['RuntimeVersionConfig']);
630+
$this->loggingConfig = empty($data['LoggingConfig']) ? null : $this->populateResultLoggingConfig($data['LoggingConfig']);
615631
}
616632

617633
/**
@@ -742,6 +758,16 @@ private function populateResultLayersReferenceList(array $json): array
742758
return $items;
743759
}
744760

761+
private function populateResultLoggingConfig(array $json): LoggingConfig
762+
{
763+
return new LoggingConfig([
764+
'LogFormat' => isset($json['LogFormat']) ? (string) $json['LogFormat'] : null,
765+
'ApplicationLogLevel' => isset($json['ApplicationLogLevel']) ? (string) $json['ApplicationLogLevel'] : null,
766+
'SystemLogLevel' => isset($json['SystemLogLevel']) ? (string) $json['SystemLogLevel'] : null,
767+
'LogGroup' => isset($json['LogGroup']) ? (string) $json['LogGroup'] : null,
768+
]);
769+
}
770+
745771
private function populateResultRuntimeVersionConfig(array $json): RuntimeVersionConfig
746772
{
747773
return new RuntimeVersionConfig([

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

+12
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
use AsyncAws\Lambda\ValueObject\ImageConfigError;
1919
use AsyncAws\Lambda\ValueObject\ImageConfigResponse;
2020
use AsyncAws\Lambda\ValueObject\Layer;
21+
use AsyncAws\Lambda\ValueObject\LoggingConfig;
2122
use AsyncAws\Lambda\ValueObject\RuntimeVersionConfig;
2223
use AsyncAws\Lambda\ValueObject\RuntimeVersionError;
2324
use AsyncAws\Lambda\ValueObject\SnapStartResponse;
@@ -232,6 +233,7 @@ private function populateResultFunctionConfiguration(array $json): FunctionConfi
232233
'EphemeralStorage' => empty($json['EphemeralStorage']) ? null : $this->populateResultEphemeralStorage($json['EphemeralStorage']),
233234
'SnapStart' => empty($json['SnapStart']) ? null : $this->populateResultSnapStartResponse($json['SnapStart']),
234235
'RuntimeVersionConfig' => empty($json['RuntimeVersionConfig']) ? null : $this->populateResultRuntimeVersionConfig($json['RuntimeVersionConfig']),
236+
'LoggingConfig' => empty($json['LoggingConfig']) ? null : $this->populateResultLoggingConfig($json['LoggingConfig']),
235237
]);
236238
}
237239

@@ -296,6 +298,16 @@ private function populateResultLayersReferenceList(array $json): array
296298
return $items;
297299
}
298300

301+
private function populateResultLoggingConfig(array $json): LoggingConfig
302+
{
303+
return new LoggingConfig([
304+
'LogFormat' => isset($json['LogFormat']) ? (string) $json['LogFormat'] : null,
305+
'ApplicationLogLevel' => isset($json['ApplicationLogLevel']) ? (string) $json['ApplicationLogLevel'] : null,
306+
'SystemLogLevel' => isset($json['SystemLogLevel']) ? (string) $json['SystemLogLevel'] : null,
307+
'LogGroup' => isset($json['LogGroup']) ? (string) $json['LogGroup'] : null,
308+
]);
309+
}
310+
299311
private function populateResultRuntimeVersionConfig(array $json): RuntimeVersionConfig
300312
{
301313
return new RuntimeVersionConfig([

0 commit comments

Comments
 (0)