localstack-core 4.13.2.dev106__py3-none-any.whl → 4.13.2.dev108__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -102,13 +102,11 @@ def get_custom_key_material(request: CreateKeyRequest | None) -> bytes | None:
102
102
  if not request:
103
103
  return None
104
104
 
105
- custom_key_material = None
106
105
  tags = request.get("Tags", [])
107
106
  for tag in tags:
108
107
  if tag["TagKey"] == TAG_KEY_CUSTOM_KEY_MATERIAL:
109
- custom_key_material = base64.b64decode(tag["TagValue"])
110
-
111
- return custom_key_material
108
+ return base64.b64decode(tag["TagValue"])
109
+ return None
112
110
 
113
111
 
114
112
  def get_custom_key_id(request: CreateKeyRequest | None) -> bytes | None:
@@ -121,13 +119,11 @@ def get_custom_key_id(request: CreateKeyRequest | None) -> bytes | None:
121
119
  if not request:
122
120
  return None
123
121
 
124
- custom_key_id = None
125
122
  tags = request.get("Tags", [])
126
123
  for tag in tags:
127
124
  if tag["TagKey"] == TAG_KEY_CUSTOM_ID:
128
- custom_key_id = tag["TagValue"]
129
-
130
- return custom_key_id
125
+ return tag["TagValue"]
126
+ return None
131
127
 
132
128
 
133
129
  def execute_dry_run_capable[T](func: Callable[..., T], dry_run: bool, *args, **kwargs) -> T:
@@ -627,6 +627,14 @@ class CapacityProvider:
627
627
  DesiredState: DesiredCapacityProviderState = DesiredCapacityProviderState.Running
628
628
 
629
629
 
630
+ @dataclasses.dataclass
631
+ class FunctionScalingState:
632
+ """Tracks both applied and requested scaling configs for async updates."""
633
+
634
+ applied: FunctionScalingConfig = dataclasses.field(default_factory=dict)
635
+ requested: FunctionScalingConfig | None = None
636
+
637
+
630
638
  @dataclasses.dataclass
631
639
  class Function:
632
640
  function_name: str
@@ -647,7 +655,7 @@ class Function:
647
655
  provisioned_concurrency_configs: dict[str, ProvisionedConcurrencyConfiguration] = (
648
656
  dataclasses.field(default_factory=dict)
649
657
  )
650
- function_scaling_configs: dict[str, FunctionScalingConfig] = dataclasses.field(
658
+ function_scaling_configs: dict[str, FunctionScalingState] = dataclasses.field(
651
659
  default_factory=dict
652
660
  )
653
661
 
@@ -27,21 +27,16 @@ from localstack.aws.api.route53 import (
27
27
  from localstack.aws.connect import connect_to
28
28
  from localstack.services.moto import call_moto
29
29
  from localstack.services.plugins import ServiceLifecycleHook
30
- from localstack.services.route53.models import Route53Store, route53_stores
30
+ from localstack.services.route53.models import route53_stores
31
31
  from localstack.state import StateVisitor
32
32
 
33
33
 
34
34
  class Route53Provider(Route53Api, ServiceLifecycleHook):
35
35
  def accept_state_visitor(self, visitor: StateVisitor):
36
- from localstack.services.route53.models import route53_stores
37
36
 
38
37
  visitor.visit(route53_backends)
39
38
  visitor.visit(route53_stores)
40
39
 
41
- @staticmethod
42
- def get_route53_store(account_id: str, region: str) -> Route53Store:
43
- return route53_stores[account_id][region]
44
-
45
40
  # No tag deletion logic to handle in Community. Overwritten in Pro implementation.
46
41
  def remove_resource_tags(
47
42
  self, context: RequestContext, resource_type: str, resource_id: str
@@ -75,7 +75,7 @@ class Tags:
75
75
  _tags if the resource has been deleted.
76
76
 
77
77
  This distinction is important to maintain parity with the Resource Groups Tagging API (RGTA) which will tap into
78
- supported service's `Tags` dataclass within it's store.
78
+ supported service's `Tags` dataclass within its store.
79
79
  """
80
80
 
81
81
  _tags: dict[ResourceARN, TagMap] = field(default_factory=dict)
localstack/version.py CHANGED
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
28
28
  commit_id: COMMIT_ID
29
29
  __commit_id__: COMMIT_ID
30
30
 
31
- __version__ = version = '4.13.2.dev106'
32
- __version_tuple__ = version_tuple = (4, 13, 2, 'dev106')
31
+ __version__ = version = '4.13.2.dev108'
32
+ __version_tuple__ = version_tuple = (4, 13, 2, 'dev108')
33
33
 
34
34
  __commit_id__ = commit_id = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: localstack-core
3
- Version: 4.13.2.dev106
3
+ Version: 4.13.2.dev108
4
4
  Summary: The core library and runtime of LocalStack
5
5
  Author-email: LocalStack Contributors <info@localstack.cloud>
6
6
  License-Expression: Apache-2.0
@@ -4,7 +4,7 @@ localstack/deprecations.py,sha256=g0E-_q3apmHlOET2Gg5_biUtN2b4XygnI5aeeaZm6ZY,15
4
4
  localstack/openapi.yaml,sha256=jFUzv-NKkJttxb8HRrmKiNYOmJD-zVfPxG3DDMrRwfg,30865
5
5
  localstack/plugins.py,sha256=BIJC9dlo0WbP7lLKkCiGtd_2q5oeqiHZohvoRTcejXM,2457
6
6
  localstack/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
- localstack/version.py,sha256=pluB_CxCJtcx78qU2ItexzIp8ak5cmK0mfiaMj-lHRo,723
7
+ localstack/version.py,sha256=5tkkyej_u7fyTZL-g4tqwXFerlXi9lTTXt4cLb3l-zU,723
8
8
  localstack/aws/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  localstack/aws/accounts.py,sha256=102zpGowOxo0S6UGMpfjw14QW7WCLVAGsnFK5xFMLoo,3043
10
10
  localstack/aws/app.py,sha256=n9bJCfJRuMz_gLGAH430c3bIQXgUXeWO5NPfcdL2MV8,5145
@@ -530,7 +530,7 @@ localstack/services/kms/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG
530
530
  localstack/services/kms/exceptions.py,sha256=BgmFaOgGcBheRPQyZFFjn7_W8i6ChJXvJoSh_yV-Ti0,535
531
531
  localstack/services/kms/models.py,sha256=lglxgXk45R9hYU_r22rtpGZKtDqpC7ExGyAayi2mowc,37239
532
532
  localstack/services/kms/provider.py,sha256=z707GU_EAp2Pu6tl9iJePBHc6e_Xznh2Dwmm7nX14nE,75766
533
- localstack/services/kms/utils.py,sha256=Jrd4lh2HfK0NCyYdyhqlBq3nNnxL5NSOYa_9FAwtl1g,5288
533
+ localstack/services/kms/utils.py,sha256=VNmGwrMwQwF8nUc1D-5i4W0UEHLSCIGpZ0I-0Du5ueY,5182
534
534
  localstack/services/kms/resource_providers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
535
535
  localstack/services/kms/resource_providers/aws_kms_alias.py,sha256=LsvRlZMrzMlGq1_KcMlxz9RE16tUe7bcqQ3qQYE-vtg,2614
536
536
  localstack/services/kms/resource_providers/aws_kms_alias.schema.json,sha256=i3PJRVJ7jnE1PzxitVBFz40dyk8M7O8sRzBSPL-kHsM,1795
@@ -581,7 +581,7 @@ localstack/services/lambda_/invocation/event_manager.py,sha256=75XJ7LHsfczgCCvzM
581
581
  localstack/services/lambda_/invocation/execution_environment.py,sha256=XYHdg80fioX77uLeVaURsKZeoZOCVOSeW4bedzCGnBY,18403
582
582
  localstack/services/lambda_/invocation/executor_endpoint.py,sha256=v_tsvn4HqbjtO2vhYUq7TxVzb7zNgMF2snxntjgBqrk,11018
583
583
  localstack/services/lambda_/invocation/internal_sqs_queue.py,sha256=RFjaDcZkFmdCvjHgtAnUQcPQrjOkWSJyqB3vzDo-rq0,7321
584
- localstack/services/lambda_/invocation/lambda_models.py,sha256=zWRAfR7BanIFTYHDeNVSAA3__RAD4bzR8B35D3q9GT4,21036
584
+ localstack/services/lambda_/invocation/lambda_models.py,sha256=nYt9ualS2qu06jx1CV5B398_csBi0cs9eBquqHUXe3k,21296
585
585
  localstack/services/lambda_/invocation/lambda_service.py,sha256=INgISJG5W-E67PTqZehsRcwJ-_oI7MeNqV7HInWYWKE,37044
586
586
  localstack/services/lambda_/invocation/logs.py,sha256=TD2oSyKAizn5_KHbnav1Rh_hITKxLV8RSrHR7lYgOUM,3798
587
587
  localstack/services/lambda_/invocation/metrics.py,sha256=IOzQguI3v8xl47FP6jMZYL3g9k-NIZEkvldAImdXljQ,1134
@@ -668,7 +668,7 @@ localstack/services/resourcegroupstaggingapi/__init__.py,sha256=47DEQpj8HBSa-_TI
668
668
  localstack/services/resourcegroupstaggingapi/provider.py,sha256=E-5Ao3Vxre6mtezoE6s7HBCRKKkSsZ8LMOHvng2hx8o,590
669
669
  localstack/services/route53/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
670
670
  localstack/services/route53/models.py,sha256=4pFJA_y_mSvN415rmzThun4xmD51FD8t3SsjZR7a2dM,490
671
- localstack/services/route53/provider.py,sha256=Mp0yPccJDUvri5tVK6bkE_Fyj2M-n57Teso8vpfBJ7A,5803
671
+ localstack/services/route53/provider.py,sha256=k6txmv9H0wZewIzIxsWJIDqT06Zra5FhlYzy9L0qcrI,5577
672
672
  localstack/services/route53/resource_providers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
673
673
  localstack/services/route53/resource_providers/aws_route53_healthcheck.py,sha256=BWq8e2R3uU_chO1wfDxErstgLvs3pSKtF6-KByO6Oao,3602
674
674
  localstack/services/route53/resource_providers/aws_route53_healthcheck.schema.json,sha256=N1iHZx1lCYI-O-f4_pHaEImDeIgTIzFgaBwfCm-G8JI,6368
@@ -1259,7 +1259,7 @@ localstack/utils/serving.py,sha256=wo1jTiqvuNUacuV0aYv2RfDyRd7lxoshrNQ59wjzx8s,5
1259
1259
  localstack/utils/ssl.py,sha256=RGAca4iIYc0tFYcfsev4ea1wOaWE4GuggghcfB8K5Lo,2510
1260
1260
  localstack/utils/strings.py,sha256=CrEoxX_VS51v0xFxhAArnp6_MUFTOR8vR02sWjVn-Ig,7757
1261
1261
  localstack/utils/sync.py,sha256=Q0IscaZX8wdoR4wI7e9VDVBDgIW3YdrY0Av-BJjgQ68,6598
1262
- localstack/utils/tagging.py,sha256=LX83_qMU4QCuxiMR25knEe2WoTAv3awSd26mcV6UHsA,5375
1262
+ localstack/utils/tagging.py,sha256=S8uALmOsLwXGVcOynSpe-z4E7gmFZ-X7kzQr5Vgu1NQ,5374
1263
1263
  localstack/utils/testutil.py,sha256=_YG81sqwl3kFj2kaqbADQUUM61a7TiOGK_1qpxIQnAk,21555
1264
1264
  localstack/utils/threads.py,sha256=6rG43WQnitKkmuAGtIGAzGrRd_sVFQpw1UIRZSSU8JU,5265
1265
1265
  localstack/utils/time.py,sha256=G9GFVkyRNXyqG2SPPARLC-wAcCHXuJLWSqXrnhqNNy8,2260
@@ -1311,10 +1311,10 @@ localstack/utils/server/tcp_proxy.py,sha256=y2NJAmvftTiAYsLU_8qe4W5LGqwUw21i90Pu
1311
1311
  localstack/utils/xray/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1312
1312
  localstack/utils/xray/trace_header.py,sha256=ahXk9eonq7LpeENwlqUEPj3jDOCiVRixhntQuxNor-Q,6209
1313
1313
  localstack/utils/xray/traceid.py,sha256=GKO-R2sMMjlrH2UaLPXlQlZ6flbE7ZKb6IZMtMu_M5U,1110
1314
- localstack_core-4.13.2.dev106.data/scripts/localstack-supervisor,sha256=nm1Il2d6ASyOB6Vo4CRHd90w7TK9FdRl9VPp0NN6hUk,6378
1315
- localstack_core-4.13.2.dev106.dist-info/licenses/LICENSE.txt,sha256=3PC-9Z69UsNARuQ980gNR_JsLx8uvMjdG6C7cc4LBYs,606
1316
- localstack_core-4.13.2.dev106.dist-info/METADATA,sha256=fEKPTmzZoG9hmSwrprrQkJYyK_fLJ0nNTYHHK0QJkaM,5868
1317
- localstack_core-4.13.2.dev106.dist-info/WHEEL,sha256=YCfwYGOYMi5Jhw2fU4yNgwErybb2IX5PEwBKV4ZbdBo,91
1318
- localstack_core-4.13.2.dev106.dist-info/entry_points.txt,sha256=59aAnn8KVHWAHkMg2dOgmgYtRZ-xTX9T4UiIchWgK6k,20975
1319
- localstack_core-4.13.2.dev106.dist-info/top_level.txt,sha256=3sqmK2lGac8nCy8nwsbS5SpIY_izmtWtgaTFKHYVHbI,11
1320
- localstack_core-4.13.2.dev106.dist-info/RECORD,,
1314
+ localstack_core-4.13.2.dev108.data/scripts/localstack-supervisor,sha256=nm1Il2d6ASyOB6Vo4CRHd90w7TK9FdRl9VPp0NN6hUk,6378
1315
+ localstack_core-4.13.2.dev108.dist-info/licenses/LICENSE.txt,sha256=3PC-9Z69UsNARuQ980gNR_JsLx8uvMjdG6C7cc4LBYs,606
1316
+ localstack_core-4.13.2.dev108.dist-info/METADATA,sha256=UjiTOk6y8ELFUDweIIPVx7sF9stpNvFGkGl9tVHWhDY,5868
1317
+ localstack_core-4.13.2.dev108.dist-info/WHEEL,sha256=YCfwYGOYMi5Jhw2fU4yNgwErybb2IX5PEwBKV4ZbdBo,91
1318
+ localstack_core-4.13.2.dev108.dist-info/entry_points.txt,sha256=59aAnn8KVHWAHkMg2dOgmgYtRZ-xTX9T4UiIchWgK6k,20975
1319
+ localstack_core-4.13.2.dev108.dist-info/top_level.txt,sha256=3sqmK2lGac8nCy8nwsbS5SpIY_izmtWtgaTFKHYVHbI,11
1320
+ localstack_core-4.13.2.dev108.dist-info/RECORD,,