Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 12b84fe

Browse files
localstack-botalexrashedbentsku
authored
update ASF APIs, fix SQS serialization (#9611)
Co-authored-by: LocalStack Bot <[email protected]> Co-authored-by: Alexander Rashed <[email protected]> Co-authored-by: Benjamin Simon <[email protected]>
1 parent d4933e0 commit 12b84fe

File tree

10 files changed

+652
-94
lines changed

10 files changed

+652
-94
lines changed

‎localstack/aws/api/cloudformation/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,11 @@ class ChangeType(str):
223223
Resource = "Resource"
224224

225225

226+
class ConcurrencyMode(str):
227+
STRICT_FAILURE_TOLERANCE = "STRICT_FAILURE_TOLERANCE"
228+
SOFT_FAILURE_TOLERANCE = "SOFT_FAILURE_TOLERANCE"
229+
230+
226231
class DeprecatedStatus(str):
227232
LIVE = "LIVE"
228233
DEPRECATED = "DEPRECATED"
@@ -988,6 +993,7 @@ class StackSetOperationPreferences(TypedDict, total=False):
988993
FailureTolerancePercentage: Optional[FailureTolerancePercentage]
989994
MaxConcurrentCount: Optional[MaxConcurrentCount]
990995
MaxConcurrentPercentage: Optional[MaxConcurrentPercentage]
996+
ConcurrencyMode: Optional[ConcurrencyMode]
991997

992998

993999
OrganizationalUnitIdList = List[OrganizationalUnitId]

‎localstack/aws/api/ec2/__init__.py

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2690,6 +2690,12 @@ class SnapshotAttributeName(str):
26902690
createVolumePermission = "createVolumePermission"
26912691

26922692

2693+
class SnapshotBlockPublicAccessState(str):
2694+
block_all_sharing = "block-all-sharing"
2695+
block_new_sharing = "block-new-sharing"
2696+
unblocked = "unblocked"
2697+
2698+
26932699
class SnapshotState(str):
26942700
pending = "pending"
26952701
completed = "completed"
@@ -6549,6 +6555,15 @@ class LaunchTemplatesMonitoringRequest(TypedDict, total=False):
65496555
Enabled: Optional[Boolean]
65506556

65516557

6558+
class EnaSrdUdpSpecificationRequest(TypedDict, total=False):
6559+
EnaSrdUdpEnabled: Optional[Boolean]
6560+
6561+
6562+
class EnaSrdSpecificationRequest(TypedDict, total=False):
6563+
EnaSrdEnabled: Optional[Boolean]
6564+
EnaSrdUdpSpecification: Optional[EnaSrdUdpSpecificationRequest]
6565+
6566+
65526567
class Ipv6PrefixSpecificationRequest(TypedDict, total=False):
65536568
Ipv6Prefix: Optional[String]
65546569

@@ -6599,6 +6614,7 @@ class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest(TypedDict, tota
65996614
Ipv6Prefixes: Optional[Ipv6PrefixList]
66006615
Ipv6PrefixCount: Optional[Integer]
66016616
PrimaryIpv6: Optional[Boolean]
6617+
EnaSrdSpecification: Optional[EnaSrdSpecificationRequest]
66026618

66036619

66046620
LaunchTemplateInstanceNetworkInterfaceSpecificationRequestList = List[
@@ -6818,6 +6834,15 @@ class LaunchTemplatesMonitoring(TypedDict, total=False):
68186834
Enabled: Optional[Boolean]
68196835

68206836

6837+
class LaunchTemplateEnaSrdUdpSpecification(TypedDict, total=False):
6838+
EnaSrdUdpEnabled: Optional[Boolean]
6839+
6840+
6841+
class LaunchTemplateEnaSrdSpecification(TypedDict, total=False):
6842+
EnaSrdEnabled: Optional[Boolean]
6843+
EnaSrdUdpSpecification: Optional[LaunchTemplateEnaSrdUdpSpecification]
6844+
6845+
68216846
class Ipv6PrefixSpecificationResponse(TypedDict, total=False):
68226847
Ipv6Prefix: Optional[String]
68236848

@@ -6861,6 +6886,7 @@ class LaunchTemplateInstanceNetworkInterfaceSpecification(TypedDict, total=False
68616886
Ipv6Prefixes: Optional[Ipv6PrefixListResponse]
68626887
Ipv6PrefixCount: Optional[Integer]
68636888
PrimaryIpv6: Optional[Boolean]
6889+
EnaSrdSpecification: Optional[LaunchTemplateEnaSrdSpecification]
68646890

68656891

68666892
LaunchTemplateInstanceNetworkInterfaceSpecificationList = List[
@@ -11232,13 +11258,23 @@ class InstancePrivateIpAddress(TypedDict, total=False):
1123211258
InstancePrivateIpAddressList = List[InstancePrivateIpAddress]
1123311259

1123411260

11261+
class InstanceAttachmentEnaSrdUdpSpecification(TypedDict, total=False):
11262+
EnaSrdUdpEnabled: Optional[Boolean]
11263+
11264+
11265+
class InstanceAttachmentEnaSrdSpecification(TypedDict, total=False):
11266+
EnaSrdEnabled: Optional[Boolean]
11267+
EnaSrdUdpSpecification: Optional[InstanceAttachmentEnaSrdUdpSpecification]
11268+
11269+
1123511270
class InstanceNetworkInterfaceAttachment(TypedDict, total=False):
1123611271
AttachTime: Optional[DateTime]
1123711272
AttachmentId: Optional[String]
1123811273
DeleteOnTermination: Optional[Boolean]
1123911274
DeviceIndex: Optional[Integer]
1124011275
Status: Optional[AttachmentStatus]
1124111276
NetworkCardIndex: Optional[Integer]
11277+
EnaSrdSpecification: Optional[InstanceAttachmentEnaSrdSpecification]
1124211278

1124311279

1124411280
class InstanceNetworkInterface(TypedDict, total=False):
@@ -12690,6 +12726,7 @@ class InstanceNetworkInterfaceSpecification(TypedDict, total=False):
1269012726
Ipv6Prefixes: Optional[Ipv6PrefixList]
1269112727
Ipv6PrefixCount: Optional[Integer]
1269212728
PrimaryIpv6: Optional[Boolean]
12729+
EnaSrdSpecification: Optional[EnaSrdSpecificationRequest]
1269312730

1269412731

1269512732
InstanceNetworkInterfaceSpecificationList = List[InstanceNetworkInterfaceSpecification]
@@ -13994,6 +14031,14 @@ class DisableSerialConsoleAccessResult(TypedDict, total=False):
1399414031
SerialConsoleAccessEnabled: Optional[Boolean]
1399514032

1399614033

14034+
class DisableSnapshotBlockPublicAccessRequest(ServiceRequest):
14035+
DryRun: Optional[Boolean]
14036+
14037+
14038+
class DisableSnapshotBlockPublicAccessResult(TypedDict, total=False):
14039+
State: Optional[SnapshotBlockPublicAccessState]
14040+
14041+
1399714042
class DisableTransitGatewayRouteTablePropagationRequest(ServiceRequest):
1399814043
TransitGatewayRouteTableId: TransitGatewayRouteTableId
1399914044
TransitGatewayAttachmentId: Optional[TransitGatewayAttachmentId]
@@ -14381,6 +14426,15 @@ class EnableSerialConsoleAccessResult(TypedDict, total=False):
1438114426
SerialConsoleAccessEnabled: Optional[Boolean]
1438214427

1438314428

14429+
class EnableSnapshotBlockPublicAccessRequest(ServiceRequest):
14430+
State: SnapshotBlockPublicAccessState
14431+
DryRun: Optional[Boolean]
14432+
14433+
14434+
class EnableSnapshotBlockPublicAccessResult(TypedDict, total=False):
14435+
State: Optional[SnapshotBlockPublicAccessState]
14436+
14437+
1438414438
class EnableTransitGatewayRouteTablePropagationRequest(ServiceRequest):
1438514439
TransitGatewayRouteTableId: TransitGatewayRouteTableId
1438614440
TransitGatewayAttachmentId: Optional[TransitGatewayAttachmentId]
@@ -15044,6 +15098,14 @@ class GetSerialConsoleAccessStatusResult(TypedDict, total=False):
1504415098
SerialConsoleAccessEnabled: Optional[Boolean]
1504515099

1504615100

15101+
class GetSnapshotBlockPublicAccessStateRequest(ServiceRequest):
15102+
DryRun: Optional[Boolean]
15103+
15104+
15105+
class GetSnapshotBlockPublicAccessStateResult(TypedDict, total=False):
15106+
State: Optional[SnapshotBlockPublicAccessState]
15107+
15108+
1504715109
class InstanceRequirementsWithMetadataRequest(TypedDict, total=False):
1504815110
ArchitectureTypes: Optional[ArchitectureTypeSet]
1504915111
VirtualizationTypes: Optional[VirtualizationTypeSet]
@@ -21856,6 +21918,12 @@ def disable_serial_console_access(
2185621918
) -> DisableSerialConsoleAccessResult:
2185721919
raise NotImplementedError
2185821920

21921+
@handler("DisableSnapshotBlockPublicAccess")
21922+
def disable_snapshot_block_public_access(
21923+
self, context: RequestContext, dry_run: Boolean = None
21924+
) -> DisableSnapshotBlockPublicAccessResult:
21925+
raise NotImplementedError
21926+
2185921927
@handler("DisableTransitGatewayRouteTablePropagation")
2186021928
def disable_transit_gateway_route_table_propagation(
2186121929
self,
@@ -22111,6 +22179,15 @@ def enable_serial_console_access(
2211122179
) -> EnableSerialConsoleAccessResult:
2211222180
raise NotImplementedError
2211322181

22182+
@handler("EnableSnapshotBlockPublicAccess")
22183+
def enable_snapshot_block_public_access(
22184+
self,
22185+
context: RequestContext,
22186+
state: SnapshotBlockPublicAccessState,
22187+
dry_run: Boolean = None,
22188+
) -> EnableSnapshotBlockPublicAccessResult:
22189+
raise NotImplementedError
22190+
2211422191
@handler("EnableTransitGatewayRouteTablePropagation")
2211522192
def enable_transit_gateway_route_table_propagation(
2211622193
self,
@@ -22507,6 +22584,12 @@ def get_serial_console_access_status(
2250722584
) -> GetSerialConsoleAccessStatusResult:
2250822585
raise NotImplementedError
2250922586

22587+
@handler("GetSnapshotBlockPublicAccessState")
22588+
def get_snapshot_block_public_access_state(
22589+
self, context: RequestContext, dry_run: Boolean = None
22590+
) -> GetSnapshotBlockPublicAccessStateResult:
22591+
raise NotImplementedError
22592+
2251022593
@handler("GetSpotPlacementScores")
2251122594
def get_spot_placement_scores(
2251222595
self,

‎localstack/aws/api/lambda_/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,8 @@ class Runtime(str):
231231
java17 = "java17"
232232
ruby3_2 = "ruby3.2"
233233
python3_11 = "python3.11"
234+
nodejs20_x = "nodejs20.x"
235+
provided_al2023 = "provided.al2023"
234236

235237

236238
class SnapStartApplyOn(str):

0 commit comments

Comments
 (0)