8000 Update ASF APIs by localstack-bot · Pull Request #12696 · localstack/localstack · GitHub
[go: up one dir, main page]

Skip to content

Update ASF APIs #12696

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 70 additions & 2 deletions localstack-core/localstack/aws/api/ec2/__init__.py
8000
Original file line number Diff line number Diff line change
Expand Up @@ -3342,6 +3342,14 @@ class SnapshotLocationEnum(StrEnum):
local = "local"


class SnapshotReturnCodes(StrEnum):
success = "success"
skipped = "skipped"
missing_permissions = "missing-permissions"
internal_error = "internal-error"
client_error = "client-error"


class SnapshotState(StrEnum):
pending = "pending"
completed = "completed"
Expand Down Expand Up @@ -3905,6 +3913,12 @@ class VpnStaticRouteSource(StrEnum):
Static = "Static"


class VpnTunnelProvisioningStatus(StrEnum):
available = "available"
pending = "pending"
failed = "failed"


class WeekDay(StrEnum):
sunday = "sunday"
monday = "monday"
Expand Down Expand Up @@ -4538,6 +4552,18 @@ class ActiveInstance(TypedDict, total=False):
ActiveInstanceSet = List[ActiveInstance]


class ActiveVpnTunnelStatus(TypedDict, total=False):
Phase1EncryptionAlgorithm: Optional[String]
Phase2EncryptionAlgorithm: Optional[String]
Phase1IntegrityAlgorithm: Optional[String]
Phase2IntegrityAlgorithm: Optional[String]
Phase1DHGroup: Optional[Integer]
Phase2DHGroup: Optional[Integer]
IkeVersion: Optional[String]
ProvisioningStatus: Optional[VpnTunnelProvisioningStatus]
ProvisioningStatusReason: Optional[String]


class AddIpamOperatingRegion(TypedDict, total=False):
RegionName: Optional[String]

Expand Down Expand Up @@ -10236,6 +10262,7 @@ class CreateVpnConnectionRequest(ServiceRequest):
VpnGatewayId: Optional[VpnGatewayId]
TransitGatewayId: Optional[TransitGatewayId]
TagSpecifications: Optional[TagSpecificationList]
PreSharedKeyStorage: Optional[String]
DryRun: Optional[Boolean]
Options: Optional[VpnConnectionOptionsSpecification]

Expand Down Expand Up @@ -10364,6 +10391,7 @@ class VpnConnection(TypedDict, total=False):
Routes: Optional[VpnStaticRouteList]
Tags: Optional[TagList]
VgwTelemetry: Optional[VgwTelemetryList]
PreSharedKeyArn: Optional[String]
VpnConnectionId: Optional[String]
State: Optional[VpnState]
CustomerGatewayConfiguration: Optional[customerGatewayConfiguration]
Expand Down Expand Up @@ -10968,6 +10996,14 @@ class DeleteSnapshotRequest(ServiceRequest):
DryRun: Optional[Boolean]


class DeleteSnapshotReturnCode(TypedDict, total=False):
SnapshotId: Optional[SnapshotId]
ReturnCode: Optional[SnapshotReturnCodes]


DeleteSnapshotResultSet = List[DeleteSnapshotReturnCode]


class DeleteSpotDatafeedSubscriptionRequest(ServiceRequest):
DryRun: Optional[Boolean]

Expand Down Expand Up @@ -11300,11 +11336,13 @@ class DeprovisionPublicIpv4PoolCidrResult(TypedDict, total=False):

class DeregisterImageRequest(ServiceRequest):
ImageId: ImageId
DeleteAssociatedSnapshots: Optional[Boolean]
DryRun: Optional[Boolean]


class DeregisterImageResult(TypedDict, total=False):
pass
Return: Optional[Boolean]
DeleteSnapshotResults: Optional[DeleteSnapshotResultSet]


InstanceTagKeySet = List[String]
Expand Down Expand Up @@ -16904,6 +16942,16 @@ class ExportVerifiedAccessInstanceClientConfigurationResult(TypedDict, total=Fal
OpenVpnConfigurations: Optional[VerifiedAccessInstanceOpenVpnClientConfigurationList]


class GetActiveVpnTunnelStatusRequest(ServiceRequest):
VpnConnectionId: VpnConnectionId
VpnTunnelOutsideIpAddress: String
DryRun: Optional[Boolean]


class GetActiveVpnTunnelStatusResult(TypedDict, total=False):
ActiveVpnTunnelStatus: Optional[ActiveVpnTunnelStatus]


class GetAllowedImagesSettingsRequest(ServiceRequest):
DryRun: Optional[Boolean]

Expand Down Expand Up @@ -17930,6 +17978,7 @@ class GetV 8000 pnConnectionDeviceSampleConfigurationRequest(ServiceRequest):
VpnConnectionId: VpnConnectionId
VpnConnectionDeviceTypeId: VpnConnectionDeviceTypeId
InternetKeyExchangeVersion: Optional[String]
SampleType: Optional[String]
DryRun: Optional[Boolean]


Expand Down Expand Up @@ -19487,6 +19536,7 @@ class ModifyVpnTunnelOptionsRequest(ServiceRequest):
TunnelOptions: ModifyVpnTunnelOptionsSpecification
DryRun: Optional[Boolean]
SkipTunnelReplacement: Optional[Boolean]
PreSharedKeyStorage: Optional[String]


class ModifyVpnTunnelOptionsResult(TypedDict, total=False):
Expand Down Expand Up @@ -23506,7 +23556,12 @@ def deprovision_public_ipv4_pool_cidr(

@handler("DeregisterImage")
def deregister_image(
self, context: RequestContext, image_id: ImageId, dry_run: Boolean | None = None, **kwargs
self,
context: RequestContext,
image_id: ImageId,
delete_associated_snapshots: Boolean | None = None,
dry_run: Boolean | None = None,
**kwargs,
) -> DeregisterImageResult:
raise NotImplementedError

Expand Down Expand Up @@ -26315,6 +26370,17 @@ def export_verified_access_instance_client_configuration(
) -> ExportVerifiedAccessInstanceClientConfigurationResult:
raise NotImplementedError

@handler("GetActiveVpnTunnelStatus")
def get_active_vpn_tunnel_status(
self,
context: RequestContext,
vpn_connection_id: VpnConnectionId,
vpn_tunnel_outside_ip_address: String,
dry_run: Boolean | None = None,
**kwargs,
) -> GetActiveVpnTunnelStatusResult:
raise NotImplementedError

@handler("GetAllowedImagesSettings")
def get_allowed_images_settings(
self, context: RequestContext, dry_run: Boolean | None = None, **kwargs
Expand Down Expand Up @@ -26918,6 +26984,7 @@ def get_vpn_connection_device_sample_configuration(
vpn_connection_id: VpnConnectionId,
vpn_connection_device_type_id: VpnConnectionDeviceTypeId,
internet_key_exchange_version: String | None = None,
sample_type: String | None = None,
dry_run: Boolean | None = None,
**kwargs,
) -> GetVpnConnectionDeviceSampleConfigurationResult:
Expand Down Expand Up @@ -28036,6 +28103,7 @@ def modify_vpn_tunnel_options(
tunnel_options: ModifyVpnTunnelOptionsSpecification,
dry_run: Boolean | None = None,
skip_tunnel_replacement: Boolean | None = None,
pre_shared_key_storage: String | None = None,
**kwargs,
) -> ModifyVpnTunnelOptionsResult:
raise NotImplementedError
Expand Down
2 changes: 2 additions & 0 deletions localstack-core/localstack/aws/api/s3/__init__.py
< 6D40 /div>
Original file line number Diff line number Diff line change
Expand Up @@ -3139,6 +3139,7 @@ class PutBucketOwnershipControlsRequest(ServiceRequest):
ContentMD5: Optional[ContentMD5]
ExpectedBucketOwner: Optional[AccountId]
OwnershipControls: OwnershipControls
ChecksumAlgorithm: Optional[ChecksumAlgorithm]


class PutBucketPolicyRequest(ServiceRequest):
Expand Down Expand Up @@ -4695,6 +4696,7 @@ def put_bucket_ownership_controls(
ownership_controls: OwnershipControls,
content_md5: ContentMD5 | None = None,
expected_bucket_owner: AccountId | None = None,
checksum_algorithm: ChecksumAlgorithm | None = None,
**kwargs,
) -> None:
raise NotImplementedError
Expand Down
5 changes: 3 additions & 2 deletions localstack-core/localstack/services/s3/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -3815,8 +3815,9 @@ def put_bucket_ownership_controls(
context: RequestContext,
bucket: BucketName,
ownership_controls: OwnershipControls,
content_md5: ContentMD5 = None,
expected_bucket_owner: AccountId = None,
content_md5: ContentMD5 | None = None,
expected_bucket_owner: AccountId | None = None,
checksum_algorithm: ChecksumAlgorithm | None = None,
**kwargs,
) -> None:
# TODO: this currently only mock the operation, but its actual effect is not emulated
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ Issues = "https://github.com/localstack/localstack/issues"
# minimal required to actually run localstack on the host for services natively implemented in python
base-runtime = [
# pinned / updated by ASF update action
"boto3==1.38.23",
"boto3==1.38.27",
# pinned / updated by ASF update action
"botocore==1.38.23",
"botocore==1.38.27",
"awscrt>=0.13.14,!=0.27.1",
"cbor2>=5.5.0",
"dnspython>=1.16.0",
Expand Down
4 changes: 2 additions & 2 deletions requirements-base-runtime.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ attrs==25.3.0
# referencing
awscrt==0.27.2
# via localstack-core (pyproject.toml)
boto3==1.38.23
boto3==1.38.27
# via localstack-core (pyproject.toml)
botocore==1.38.23
botocore==1.38.27
# via
# boto3
# localstack-core (pyproject.toml)
Expand Down
6 changes: 3 additions & 3 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ aws-sam-translator==1.97.0
# localstack-core
aws-xray-sdk==2.14.0
# via moto-ext
awscli==1.40.22
awscli==1.40.26
# via localstack-core
awscrt==0.27.2
# via localstack-core
boto3==1.38.23
boto3==1.38.27
# via
# aws-sam-translator
# kclpy-ext
# localstack-core
# moto-ext
botocore==1.38.23
botocore==1.38.27
# via
# aws-xray-sdk
# awscli
Expand Down
6 changes: 3 additions & 3 deletions requirements-runtime.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ aws-sam-translator==1.97.0
# localstack-core (pyproject.toml)
aws-xray-sdk==2.14.0
# via moto-ext
awscli==1.40.22
awscli==1.40.26
# via localstack-core (pyproject.toml)
awscrt==0.27.2
# via localstack-core
boto3==1.38.23
boto3==1.38.27
# via
# aws-sam-translator
# kclpy-ext
# localstack-core
# moto-ext
botocore==1.38.23
botocore==1.38.27
# via
# aws-xray-sdk
# awscli
Expand Down
6 changes: 3 additions & 3 deletions requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ aws-sam-translator==1.97.0
# localstack-core
aws-xray-sdk==2.14.0
# via moto-ext
awscli==1.40.22
awscli==1.40.26
# via localstack-core
awscrt==0.27.2
# via localstack-core
boto3==1.38.23
boto3==1.38.27
# via
# aws-sam-translator
# kclpy-ext
# localstack-core
# moto-ext
botocore==1.38.23
botocore==1.38.27
# via
# aws-xray-sdk
# awscli
Expand Down
6 changes: 3 additions & 3 deletions requirements-typehint.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@ aws-sam-translator==1.97.0
# localstack-core
aws-xray-sdk==2.14.0
# via moto-ext
awscli==1.40.22
awscli==1.40.26
# via localstack-core
awscrt==0.27.2
# via localstack-core
boto3==1.38.23
boto3==1.38.27
# via
# aws-sam-translator
# kclpy-ext
# localstack-core
# moto-ext
boto3-stubs==1.38.23
# via localstack-core (pyproject.toml)
botocore==1.38.23
botocore==1.38.27
# via
# aws-xray-sdk
# awscli
Expand Down
Loading
0