Skip to content

Commit 4952b82

Browse files
Update ASF APIs (#13329)
Co-authored-by: LocalStack Bot <[email protected]> Co-authored-by: Silvio Vasiljevic <[email protected]>
1 parent 27697a5 commit 4952b82

File tree

15 files changed

+554
-21
lines changed

15 files changed

+554
-21
lines changed

localstack-core/localstack/aws/api/ec2/__init__.py

Lines changed: 487 additions & 0 deletions
Large diffs are not rendered by default.

localstack-core/localstack/aws/api/iam/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,13 @@ class summaryKeyType(StrEnum):
276276
PolicyVersionsInUseQuota = "PolicyVersionsInUseQuota"
277277
VersionsPerPolicyQuota = "VersionsPerPolicyQuota"
278278
GlobalEndpointTokenVersion = "GlobalEndpointTokenVersion"
279+
AssumeRolePolicySizeQuota = "AssumeRolePolicySizeQuota"
280+
InstanceProfiles = "InstanceProfiles"
281+
InstanceProfilesQuota = "InstanceProfilesQuota"
282+
Providers = "Providers"
283+
RolePolicySizeQuota = "RolePolicySizeQuota"
284+
Roles = "Roles"
285+
RolesQuota = "RolesQuota"
279286

280287

281288
class AccountNotManagementOrDelegatedAdministratorException(ServiceException):

localstack-core/localstack/aws/api/kinesis/__init__.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
ListStreamConsumersInputLimit = int
1919
ListStreamsInputLimit = int
2020
ListTagsForStreamInputLimit = int
21+
MaxRecordSizeInKiB = int
2122
NextToken = str
2223
OnDemandStreamCountLimitObject = int
2324
OnDemandStreamCountObject = int
@@ -241,6 +242,7 @@ class CreateStreamInput(ServiceRequest):
241242
ShardCount: Optional[PositiveIntegerObject]
242243
StreamModeDetails: Optional[StreamModeDetails]
243244
Tags: Optional[TagMap]
245+
MaxRecordSizeInKiB: Optional[MaxRecordSizeInKiB]
244246

245247

246248
Data = bytes
@@ -357,6 +359,7 @@ class StreamDescriptionSummary(TypedDict, total=False):
357359
KeyId: Optional[KeyId]
358360
OpenShardCount: ShardCountObject
359361
ConsumerCount: Optional[ConsumerCountObject]
362+
MaxRecordSizeInKiB: Optional[MaxRecordSizeInKiB]
360363

361364

362365
class DescribeStreamSummaryOutput(TypedDict, total=False):
@@ -666,6 +669,11 @@ class UntagResourceInput(ServiceRequest):
666669
ResourceARN: ResourceARN
667670

668671

672+
class UpdateMaxRecordSizeInput(ServiceRequest):
673+
StreamARN: Optional[StreamARN]
674+
MaxRecordSizeInKiB: MaxRecordSizeInKiB
675+
676+
669677
class UpdateShardCountInput(ServiceRequest):
670678
StreamName: Optional[StreamName]
671679
TargetShardCount: PositiveIntegerObject
@@ -708,6 +716,7 @@ def create_stream(
708716
shard_count: PositiveIntegerObject | None = None,
709717
stream_mode_details: StreamModeDetails | None = None,
710718
tags: TagMap | None = None,
719+
max_record_size_in_ki_b: MaxRecordSizeInKiB | None = None,
711720
**kwargs,
712721
) -> None:
713722
raise NotImplementedError
@@ -1032,6 +1041,16 @@ def untag_resource(
10321041
) -> None:
10331042
raise NotImplementedError
10341043

1044+
@handler("UpdateMaxRecordSize")
1045+
def update_max_record_size(
1046+
self,
1047+
context: RequestContext,
1048+
max_record_size_in_ki_b: MaxRecordSizeInKiB,
1049+
stream_arn: StreamARN | None = None,
1050+
**kwargs,
1051+
) -> None:
1052+
raise NotImplementedError
1053+
10351054
@handler("UpdateShardCount")
10361055
def update_shard_count(
10371056
self,

localstack-core/localstack/aws/api/kms/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from localstack.aws.api import RequestContext, ServiceException, ServiceRequest, handler
66

77
AWSAccountIdType = str
8+
AccountIdType = str
89
AliasNameType = str
910
ArnType = str
1011
BackingKeyIdResponseType = str
@@ -621,6 +622,7 @@ class CreateCustomKeyStoreRequest(ServiceRequest):
621622
XksProxyUriEndpoint: Optional[XksProxyUriEndpointType]
622623
XksProxyUriPath: Optional[XksProxyUriPathType]
623624
XksProxyVpcEndpointServiceName: Optional[XksProxyVpcEndpointServiceNameType]
625+
XksProxyVpcEndpointServiceOwner: Optional[AccountIdType]
624626
XksProxyAuthenticationCredential: Optional[XksProxyAuthenticationCredentialType]
625627
XksProxyConnectivity: Optional[XksProxyConnectivityType]
626628

@@ -744,6 +746,7 @@ class XksProxyConfigurationType(TypedDict, total=False):
744746
UriEndpoint: Optional[XksProxyUriEndpointType]
745747
UriPath: Optional[XksProxyUriPathType]
746748
VpcEndpointServiceName: Optional[XksProxyVpcEndpointServiceNameType]
749+
VpcEndpointServiceOwner: Optional[AccountIdType]
747750

748751

749752
class CustomKeyStoresListEntry(TypedDict, total=False):
@@ -1290,6 +1293,7 @@ class UpdateCustomKeyStoreRequest(ServiceRequest):
12901293
XksProxyUriEndpoint: Optional[XksProxyUriEndpointType]
12911294
XksProxyUriPath: Optional[XksProxyUriPathType]
12921295
XksProxyVpcEndpointServiceName: Optional[XksProxyVpcEndpointServiceNameType]
1296+
XksProxyVpcEndpointServiceOwner: Optional[AccountIdType]
12931297
XksProxyAuthenticationCredential: Optional[XksProxyAuthenticationCredentialType]
12941298
XksProxyConnectivity: Optional[XksProxyConnectivityType]
12951299

@@ -1373,6 +1377,7 @@ def create_custom_key_store(
13731377
xks_proxy_uri_endpoint: XksProxyUriEndpointType | None = None,
13741378
xks_proxy_uri_path: XksProxyUriPathType | None = None,
13751379
xks_proxy_vpc_endpoint_service_name: XksProxyVpcEndpointServiceNameType | None = None,
1380+
xks_proxy_vpc_endpoint_service_owner: AccountIdType | None = None,
13761381
xks_proxy_authentication_credential: XksProxyAuthenticationCredentialType | None = None,
13771382
xks_proxy_connectivity: XksProxyConnectivityType | None = None,
13781383
**kwargs,
@@ -1864,6 +1869,7 @@ def update_custom_key_store(
18641869
xks_proxy_uri_endpoint: XksProxyUriEndpointType | None = None,
18651870
xks_proxy_uri_path: XksProxyUriPathType | None = None,
18661871
xks_proxy_vpc_endpoint_service_name: XksProxyVpcEndpointServiceNameType | None = None,
1872+
xks_proxy_vpc_endpoint_service_owner: AccountIdType | None = None,
18671873
xks_proxy_authentication_credential: XksProxyAuthenticationCredentialType | None = None,
18681874
xks_proxy_connectivity: XksProxyConnectivityType | None = None,
18691875
**kwargs,

localstack-core/localstack/aws/api/lambda_/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,9 @@ class Runtime(StrEnum):
287287
java21 = "java21"
288288
python3_13 = "python3.13"
289289
nodejs22_x = "nodejs22.x"
290+
java25 = "java25"
291+
nodejs24_x = "nodejs24.x"
292+
python3_14 = "python3.14"
290293

291294

292295
class SchemaRegistryEventRecordFormat(StrEnum):
@@ -595,6 +598,13 @@ class ResourceNotReadyException(ServiceException):
595598
Type: Optional[String]
596599

597600

601+
class SerializedRequestEntityTooLargeException(ServiceException):
602+
code: str = "SerializedRequestEntityTooLargeException"
603+
sender_fault: bool = True
604+
status_code: int = 413
605+
Type: Optional[String]
606+
607+
598608
class ServiceException(ServiceException):
599609
code: str = "ServiceException"
600610
sender_fault: bool = False

localstack-core/localstack/aws/api/route53/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ class CloudWatchRegion(StrEnum):
167167
ap_east_2 = "ap-east-2"
168168
eu_isoe_west_1 = "eu-isoe-west-1"
169169
ap_southeast_6 = "ap-southeast-6"
170+
us_isob_west_1 = "us-isob-west-1"
170171

171172

172173
class ComparisonOperator(StrEnum):
@@ -348,6 +349,7 @@ class VPCRegion(StrEnum):
348349
ap_east_2 = "ap-east-2"
349350
eu_isoe_west_1 = "eu-isoe-west-1"
350351
ap_southeast_6 = "ap-southeast-6"
352+
us_isob_west_1 = "us-isob-west-1"
351353

352354

353355
class CidrBlockInUseException(ServiceException):

localstack-core/localstack/aws/api/s3/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,6 +1485,8 @@ class CopyObjectRequest(ServiceRequest):
14851485
GrantRead: Optional[GrantRead]
14861486
GrantReadACP: Optional[GrantReadACP]
14871487
GrantWriteACP: Optional[GrantWriteACP]
1488+
IfMatch: Optional[IfMatch]
1489+
IfNoneMatch: Optional[IfNoneMatch]
14881490
Key: ObjectKey
14891491
Metadata: Optional[Metadata]
14901492
MetadataDirective: Optional[MetadataDirective]
@@ -3840,6 +3842,8 @@ def copy_object(
38403842
grant_read: GrantRead | None = None,
38413843
grant_read_acp: GrantReadACP | None = None,
38423844
grant_write_acp: GrantWriteACP | None = None,
3845+
if_match: IfMatch | None = None,
3846+
if_none_match: IfNoneMatch | None = None,
38433847
metadata: Metadata | None = None,
38443848
metadata_directive: MetadataDirective | None = None,
38453849
tagging_directive: TaggingDirective | None = None,

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ Issues = "https://github.com/localstack/localstack/issues"
5151
# minimal required to actually run localstack on the host for services natively implemented in python
5252
base-runtime = [
5353
# pinned / updated by ASF update action
54-
"boto3==1.40.55",
54+
"boto3==1.40.64",
5555
# pinned / updated by ASF update action
56-
"botocore==1.40.55",
56+
"botocore==1.40.64",
5757
# transitive dependency of botocore, added to avoid specific version
5858
"awscrt>=0.13.14,!=0.27.1",
5959
"cbor2>=5.5.0",
@@ -81,7 +81,7 @@ base-runtime = [
8181
runtime = [
8282
"localstack-core[base-runtime]",
8383
# pinned / updated by ASF update action
84-
"awscli==1.42.55",
84+
"awscli==1.42.64",
8585
"airspeed-ext>=0.6.3",
8686
# antlr4-python3-runtime: exact pin because antlr4 runtime is tightly coupled to the generated parser code
8787
"antlr4-python3-runtime==4.13.2",

requirements-base-runtime.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ attrs==25.4.0
1111
# referencing
1212
awscrt==0.28.2
1313
# via localstack-core (pyproject.toml)
14-
boto3==1.40.55
14+
boto3==1.40.64
1515
# via localstack-core (pyproject.toml)
16-
botocore==1.40.55
16+
botocore==1.40.64
1717
# via
1818
# boto3
1919
# localstack-core (pyproject.toml)

requirements-dev.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@ aws-sam-translator==1.101.0
3939
# localstack-core
4040
aws-xray-sdk==2.14.0
4141
# via moto-ext
42-
awscli==1.42.55
42+
awscli==1.42.64
4343
# via localstack-core
4444
awscrt==0.28.2
4545
# via localstack-core
46-
boto3==1.40.55
46+
boto3==1.40.64
4747
# via
4848
# aws-sam-translator
4949
# kclpy-ext
5050
# localstack-core
5151
# moto-ext
52-
botocore==1.40.55
52+
botocore==1.40.64
5353
# via
5454
# aws-xray-sdk
5555
# awscli

0 commit comments

Comments
 (0)