Skip to content

Commit baeb692

Browse files
Update generated code (#1981)
* update generated code * Update src/Service/Kinesis/CHANGELOG.md --------- Co-authored-by: Jérémy Derussé <jeremy@derusse.com>
1 parent e1d6459 commit baeb692

30 files changed

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

src/Service/Kinesis/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
- AWS api-change: Added `us-isob-west-1` region
88
- AWS api-change: Adds support for record sizes up to 10MiB and introduces new UpdateMaxRecordSize API to modify stream record size limits. Adds record size parameters to existing CreateStream and DescribeStreamSummary APIs for request and response payloads respectively.
9+
- AWS api-change: Adds support to configure warm throughput for on-demand streams in new UpdateStreamWarmThroughput API and existing CreateStream API and UpdateStreamMode API.
910

1011
### Dependency bumped
1112

src/Service/Kinesis/src/Input/CreateStreamInput.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ final class CreateStreamInput extends Input
4848
*/
4949
private $tags;
5050

51+
/**
52+
* The target warm throughput in MB/s that the stream should be scaled to handle. This represents the throughput
53+
* capacity that will be immediately available for write operations.
54+
*
55+
* @var int|null
56+
*/
57+
private $warmThroughputMiBps;
58+
5159
/**
5260
* The maximum record size of a single record in kibibyte (KiB) that you can write to, and read from a stream.
5361
*
@@ -61,6 +69,7 @@ final class CreateStreamInput extends Input
6169
* ShardCount?: int|null,
6270
* StreamModeDetails?: StreamModeDetails|array|null,
6371
* Tags?: array<string, string>|null,
72+
* WarmThroughputMiBps?: int|null,
6473
* MaxRecordSizeInKiB?: int|null,
6574
* '@region'?: string|null,
6675
* } $input
@@ -71,6 +80,7 @@ public function __construct(array $input = [])
7180
$this->shardCount = $input['ShardCount'] ?? null;
7281
$this->streamModeDetails = isset($input['StreamModeDetails']) ? StreamModeDetails::create($input['StreamModeDetails']) : null;
7382
$this->tags = $input['Tags'] ?? null;
83+
$this->warmThroughputMiBps = $input['WarmThroughputMiBps'] ?? null;
7484
$this->maxRecordSizeInKiB = $input['MaxRecordSizeInKiB'] ?? null;
7585
parent::__construct($input);
7686
}
@@ -81,6 +91,7 @@ public function __construct(array $input = [])
8191
* ShardCount?: int|null,
8292
* StreamModeDetails?: StreamModeDetails|array|null,
8393
* Tags?: array<string, string>|null,
94+
* WarmThroughputMiBps?: int|null,
8495
* MaxRecordSizeInKiB?: int|null,
8596
* '@region'?: string|null,
8697
* }|CreateStreamInput $input
@@ -118,6 +129,11 @@ public function getTags(): array
118129
return $this->tags ?? [];
119130
}
120131

132+
public function getWarmThroughputMiBps(): ?int
133+
{
134+
return $this->warmThroughputMiBps;
135+
}
136+
121137
/**
122138
* @internal
123139
*/
@@ -182,6 +198,13 @@ public function setTags(array $value): self
182198
return $this;
183199
}
184200

201+
public function setWarmThroughputMiBps(?int $value): self
202+
{
203+
$this->warmThroughputMiBps = $value;
204+
205+
return $this;
206+
}
207+
185208
private function requestBody(): array
186209
{
187210
$payload = [];
@@ -205,6 +228,9 @@ private function requestBody(): array
205228
}
206229
}
207230
}
231+
if (null !== $v = $this->warmThroughputMiBps) {
232+
$payload['WarmThroughputMiBps'] = $v;
233+
}
208234
if (null !== $v = $this->maxRecordSizeInKiB) {
209235
$payload['MaxRecordSizeInKiB'] = $v;
210236
}

src/Service/Kinesis/src/KinesisClient.php

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,17 @@ public function addTagsToStream($input): Result
127127
* You can create your data stream using either on-demand or provisioned capacity mode. Data streams with an on-demand
128128
* mode require no capacity planning and automatically scale to handle gigabytes of write and read throughput per
129129
* minute. With the on-demand mode, Kinesis Data Streams automatically manages the shards in order to provide the
130-
* necessary throughput. For the data streams with a provisioned mode, you must specify the number of shards for the
131-
* data stream. Each shard can support reads up to five transactions per second, up to a maximum data read total of 2
132-
* MiB per second. Each shard can support writes up to 1,000 records per second, up to a maximum data write total of 1
133-
* MiB per second. If the amount of data input increases or decreases, you can add or remove shards.
130+
* necessary throughput.
131+
*
132+
* If you'd still like to proactively scale your on-demand data stream’s capacity, you can unlock the warm throughput
133+
* feature for on-demand data streams by enabling `MinimumThroughputBillingCommitment` for your account. Once your
134+
* account has `MinimumThroughputBillingCommitment` enabled, you can specify the warm throughput in MiB per second that
135+
* your stream can support in writes.
136+
*
137+
* For the data streams with a provisioned mode, you must specify the number of shards for the data stream. Each shard
138+
* can support reads up to five transactions per second, up to a maximum data read total of 2 MiB per second. Each shard
139+
* can support writes up to 1,000 records per second, up to a maximum data write total of 1 MiB per second. If the
140+
* amount of data input increases or decreases, you can add or remove shards.
134141
*
135142
* The stream name identifies the stream. The name is scoped to the Amazon Web Services account used by the application.
136143
* It is also scoped by Amazon Web Services Region. That is, two streams in two different accounts can have the same
@@ -145,8 +152,9 @@ public function addTagsToStream($input): Result
145152
* - Have more than five streams in the `CREATING` state at any point in time.
146153
* - Create more shards than are authorized for your account.
147154
*
148-
* For the default shard limit for an Amazon Web Services account, see Amazon Kinesis Data Streams Limits [^1] in the
149-
* *Amazon Kinesis Data Streams Developer Guide*. To increase this limit, contact Amazon Web Services Support [^2].
155+
* For the default shard or on-demand throughput limits for an Amazon Web Services account, see Amazon Kinesis Data
156+
* Streams Limits [^1] in the *Amazon Kinesis Data Streams Developer Guide*. To increase this limit, contact Amazon Web
157+
* Services Support [^2].
150158
*
151159
* You can use DescribeStreamSummary to check the stream status, which is returned in `StreamStatus`.
152160
*
@@ -169,13 +177,15 @@ public function addTagsToStream($input): Result
169177
* ShardCount?: int|null,
170178
* StreamModeDetails?: StreamModeDetails|array|null,
171179
* Tags?: array<string, string>|null,
180+
* WarmThroughputMiBps?: int|null,
172181
* MaxRecordSizeInKiB?: int|null,
173182
* '@region'?: string|null,
174183
* }|CreateStreamInput $input
175184
*
176185
* @throws InvalidArgumentException
177186
* @throws LimitExceededException
178187
* @throws ResourceInUseException
188+
* @throws ValidationException
179189
*/
180190
public function createStream($input): Result
181191
{
@@ -184,6 +194,7 @@ public function createStream($input): Result
184194
'InvalidArgumentException' => InvalidArgumentException::class,
185195
'LimitExceededException' => LimitExceededException::class,
186196
'ResourceInUseException' => ResourceInUseException::class,
197+
'ValidationException' => ValidationException::class,
187198
]]));
188199

189200
return new Result($response);

src/Service/Kinesis/src/Result/DescribeStreamSummaryOutput.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use AsyncAws\Kinesis\ValueObject\EnhancedMetrics;
99
use AsyncAws\Kinesis\ValueObject\StreamDescriptionSummary;
1010
use AsyncAws\Kinesis\ValueObject\StreamModeDetails;
11+
use AsyncAws\Kinesis\ValueObject\WarmThroughputObject;
1112

1213
class DescribeStreamSummaryOutput extends Result
1314
{
@@ -82,6 +83,7 @@ private function populateResultStreamDescriptionSummary(array $json): StreamDesc
8283
'KeyId' => isset($json['KeyId']) ? (string) $json['KeyId'] : null,
8384
'OpenShardCount' => (int) $json['OpenShardCount'],
8485
'ConsumerCount' => isset($json['ConsumerCount']) ? (int) $json['ConsumerCount'] : null,
86+
'WarmThroughput' => empty($json['WarmThroughput']) ? null : $this->populateResultWarmThroughputObject($json['WarmThroughput']),
8587
'MaxRecordSizeInKiB' => isset($json['MaxRecordSizeInKiB']) ? (int) $json['MaxRecordSizeInKiB'] : null,
8688
]);
8789
}
@@ -92,4 +94,12 @@ private function populateResultStreamModeDetails(array $json): StreamModeDetails
9294
'StreamMode' => (string) $json['StreamMode'],
9395
]);
9496
}
97+
98+
private function populateResultWarmThroughputObject(array $json): WarmThroughputObject
99+
{
100+
return new WarmThroughputObject([
101+
'TargetMiBps' => isset($json['TargetMiBps']) ? (int) $json['TargetMiBps'] : null,
102+
'CurrentMiBps' => isset($json['CurrentMiBps']) ? (int) $json['CurrentMiBps'] : null,
103+
]);
104+
}
95105
}

src/Service/Kinesis/src/ValueObject/StreamDescriptionSummary.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,14 @@ final class StreamDescriptionSummary
109109
*/
110110
private $consumerCount;
111111

112+
/**
113+
* The warm throughput in MB/s for the stream. This represents the throughput capacity that will be immediately
114+
* available for write operations.
115+
*
116+
* @var WarmThroughputObject|null
117+
*/
118+
private $warmThroughput;
119+
112120
/**
113121
* The maximum record size of a single record in kibibyte (KiB) that you can write to, and read from a stream.
114122
*
@@ -129,6 +137,7 @@ final class StreamDescriptionSummary
129137
* KeyId?: string|null,
130138
* OpenShardCount: int,
131139
* ConsumerCount?: int|null,
140+
* WarmThroughput?: WarmThroughputObject|array|null,
132141
* MaxRecordSizeInKiB?: int|null,
133142
* } $input
134143
*/
@@ -145,6 +154,7 @@ public function __construct(array $input)
145154
$this->keyId = $input['KeyId'] ?? null;
146155
$this->openShardCount = $input['OpenShardCount'] ?? $this->throwException(new InvalidArgument('Missing required field "OpenShardCount".'));
147156
$this->consumerCount = $input['ConsumerCount'] ?? null;
157+
$this->warmThroughput = isset($input['WarmThroughput']) ? WarmThroughputObject::create($input['WarmThroughput']) : null;
148158
$this->maxRecordSizeInKiB = $input['MaxRecordSizeInKiB'] ?? null;
149159
}
150160

@@ -161,6 +171,7 @@ public function __construct(array $input)
161171
* KeyId?: string|null,
162172
* OpenShardCount: int,
163173
* ConsumerCount?: int|null,
174+
* WarmThroughput?: WarmThroughputObject|array|null,
164175
* MaxRecordSizeInKiB?: int|null,
165176
* }|StreamDescriptionSummary $input
166177
*/
@@ -238,6 +249,11 @@ public function getStreamStatus(): string
238249
return $this->streamStatus;
239250
}
240251

252+
public function getWarmThroughput(): ?WarmThroughputObject
253+
{
254+
return $this->warmThroughput;
255+
}
256+
241257
/**
242258
* @return never
243259
*/
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<?php
2+
3+
namespace AsyncAws\Kinesis\ValueObject;
4+
5+
/**
6+
* Represents the warm throughput configuration on the stream. This is only present for On-Demand Kinesis Data Streams
7+
* in accounts that have `MinimumThroughputBillingCommitment` enabled.
8+
*/
9+
final class WarmThroughputObject
10+
{
11+
/**
12+
* The target warm throughput value on the stream. This indicates that the stream is currently scaling towards this
13+
* target value.
14+
*
15+
* @var int|null
16+
*/
17+
private $targetMiBps;
18+
19+
/**
20+
* The current warm throughput value on the stream. This is the write throughput in MiBps that the stream is currently
21+
* scaled to handle.
22+
*
23+
* @var int|null
24+
*/
25+
private $currentMiBps;
26+
27+
/**
28+
* @param array{
29+
* TargetMiBps?: int|null,
30+
* CurrentMiBps?: int|null,
31+
* } $input
32+
*/
33+
public function __construct(array $input)
34+
{
35+
$this->targetMiBps = $input['TargetMiBps'] ?? null;
36+
$this->currentMiBps = $input['CurrentMiBps'] ?? null;
37+
}
38+
39+
/**
40+
* @param array{
41+
* TargetMiBps?: int|null,
42+
* CurrentMiBps?: int|null,
43+
* }|WarmThroughputObject $input
44+
*/
45+
public static function create($input): self
46+
{
47+
return $input instanceof self ? $input : new self($input);
48+
}
49+
50+
public function getCurrentMiBps(): ?int
51+
{
52+
return $this->currentMiBps;
53+
}
54+
55+
public function getTargetMiBps(): ?int
56+
{
57+
return $this->targetMiBps;
58+
}
59+
}

src/Service/Lambda/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- AWS api-change: Add NodeJs 24 (nodejs24.x) support to AWS Lambda.
88
- AWS api-change: Added `us-isob-west-1` region
99
- AWS api-change: Added SerializedRequestEntityTooLargeException to Lambda Invoke API
10+
- AWS api-change: Add Python3.14 (python3.14) and Java 25 (java25) support to AWS Lambda
1011

1112
### Dependency bumped
1213

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ final class Runtime
1414
public const JAVA_11 = 'java11';
1515
public const JAVA_17 = 'java17';
1616
public const JAVA_21 = 'java21';
17+
public const JAVA_25 = 'java25';
1718
public const JAVA_8 = 'java8';
1819
public const JAVA_8_AL_2 = 'java8.al2';
1920
public const NODEJS = 'nodejs';
@@ -37,6 +38,7 @@ final class Runtime
3738
public const PYTHON_3_11 = 'python3.11';
3839
public const PYTHON_3_12 = 'python3.12';
3940
public const PYTHON_3_13 = 'python3.13';
41+
public const PYTHON_3_14 = 'python3.14';
4042
public const PYTHON_3_6 = 'python3.6';
4143
public const PYTHON_3_7 = 'python3.7';
4244
public const PYTHON_3_8 = 'python3.8';
@@ -60,6 +62,7 @@ public static function exists(string $value): bool
6062
self::JAVA_11 => true,
6163
self::JAVA_17 => true,
6264
self::JAVA_21 => true,
65+
self::JAVA_25 => true,
6366
self::JAVA_8 => true,
6467
self::JAVA_8_AL_2 => true,
6568
self::NODEJS => true,
@@ -83,6 +86,7 @@ public static function exists(string $value): bool
8386
self::PYTHON_3_11 => true,
8487
self::PYTHON_3_12 => true,
8588
self::PYTHON_3_13 => true,
89+
self::PYTHON_3_14 => true,
8690
self::PYTHON_3_6 => true,
8791
self::PYTHON_3_7 => true,
8892
self::PYTHON_3_8 => true,

src/Service/MediaConvert/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Added
66

77
- AWS api-change: This release adds the ability to set resolution for the black video generator.
8+
- AWS api-change: Adds SlowPalPitchCorrection to audio pitch correction settings. Enables opacity for VideoOverlays. Adds REMUX_ALL option to enable multi-rendition passthrough to VideoSelector for allow listed accounts.
89

910
### Dependency bumped
1011

0 commit comments

Comments
 (0)