localstack-core 4.13.2.dev53__py3-none-any.whl → 4.13.2.dev54__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.
- localstack/services/opensearch/provider.py +24 -9
- localstack/version.py +2 -2
- {localstack_core-4.13.2.dev53.dist-info → localstack_core-4.13.2.dev54.dist-info}/METADATA +1 -1
- {localstack_core-4.13.2.dev53.dist-info → localstack_core-4.13.2.dev54.dist-info}/RECORD +11 -11
- {localstack_core-4.13.2.dev53.data → localstack_core-4.13.2.dev54.data}/scripts/localstack +0 -0
- {localstack_core-4.13.2.dev53.data → localstack_core-4.13.2.dev54.data}/scripts/localstack-supervisor +0 -0
- {localstack_core-4.13.2.dev53.data → localstack_core-4.13.2.dev54.data}/scripts/localstack.bat +0 -0
- {localstack_core-4.13.2.dev53.dist-info → localstack_core-4.13.2.dev54.dist-info}/WHEEL +0 -0
- {localstack_core-4.13.2.dev53.dist-info → localstack_core-4.13.2.dev54.dist-info}/entry_points.txt +0 -0
- {localstack_core-4.13.2.dev53.dist-info → localstack_core-4.13.2.dev54.dist-info}/licenses/LICENSE.txt +0 -0
- {localstack_core-4.13.2.dev53.dist-info → localstack_core-4.13.2.dev54.dist-info}/top_level.txt +0 -0
|
@@ -517,6 +517,24 @@ class OpensearchProvider(OpensearchApi, ServiceLifecycleHook):
|
|
|
517
517
|
for domain_name in store.opensearch_domains.keys():
|
|
518
518
|
cluster_manager().remove(DomainKey(domain_name, region, account_id).arn)
|
|
519
519
|
|
|
520
|
+
def _add_tags(self, context: RequestContext, arn: ARN, tag_list: TagList) -> None:
|
|
521
|
+
self.get_store(context.account_id, context.region).TAGS.tag_resource(arn, tag_list)
|
|
522
|
+
|
|
523
|
+
def _remove_tags(self, context: RequestContext, arn: ARN, tag_keys: StringList) -> None:
|
|
524
|
+
self.get_store(context.account_id, context.region).TAGS.untag_resource(arn, tag_keys)
|
|
525
|
+
|
|
526
|
+
def _remove_all_tags(self, context: RequestContext, arn: ARN) -> None:
|
|
527
|
+
self.get_store(context.account_id, context.region).TAGS.del_resource(arn)
|
|
528
|
+
|
|
529
|
+
def _list_tags(self, context: RequestContext, arn: ARN) -> TagList:
|
|
530
|
+
# The tagging service returns a dictionary with the given root name
|
|
531
|
+
store = self.get_store(context.account_id, context.region)
|
|
532
|
+
tags = store.TAGS.list_tags_for_resource(arn=arn, root_name="root")
|
|
533
|
+
# Extract the actual list of tags for the typed response
|
|
534
|
+
tag_list: TagList = tags["root"]
|
|
535
|
+
|
|
536
|
+
return tag_list
|
|
537
|
+
|
|
520
538
|
@handler("CreateDomain", expand=False)
|
|
521
539
|
def create_domain(
|
|
522
540
|
self, context: RequestContext, request: CreateDomainRequest
|
|
@@ -558,7 +576,8 @@ class OpensearchProvider(OpensearchApi, ServiceLifecycleHook):
|
|
|
558
576
|
)
|
|
559
577
|
|
|
560
578
|
# set the tags
|
|
561
|
-
|
|
579
|
+
if tags := request.get("TagList", []):
|
|
580
|
+
self._add_tags(context, domain_key.arn, tags)
|
|
562
581
|
|
|
563
582
|
# get the (updated) status
|
|
564
583
|
status = get_domain_status(domain_key)
|
|
@@ -580,6 +599,7 @@ class OpensearchProvider(OpensearchApi, ServiceLifecycleHook):
|
|
|
580
599
|
|
|
581
600
|
status = get_domain_status(domain_key, deleted=True)
|
|
582
601
|
_remove_cluster(domain_key)
|
|
602
|
+
self._remove_all_tags(context, domain_key.arn)
|
|
583
603
|
|
|
584
604
|
return DeleteDomainResponse(DomainStatus=status)
|
|
585
605
|
|
|
@@ -724,20 +744,15 @@ class OpensearchProvider(OpensearchApi, ServiceLifecycleHook):
|
|
|
724
744
|
|
|
725
745
|
def add_tags(self, context: RequestContext, arn: ARN, tag_list: TagList, **kwargs) -> None:
|
|
726
746
|
_ensure_domain_exists(arn)
|
|
727
|
-
self.
|
|
747
|
+
self._add_tags(context, arn, tag_list)
|
|
728
748
|
|
|
729
749
|
def list_tags(self, context: RequestContext, arn: ARN, **kwargs) -> ListTagsResponse:
|
|
730
750
|
_ensure_domain_exists(arn)
|
|
731
|
-
|
|
732
|
-
# The tagging service returns a dictionary with the given root name
|
|
733
|
-
store = self.get_store(context.account_id, context.region)
|
|
734
|
-
tags = store.TAGS.list_tags_for_resource(arn=arn, root_name="root")
|
|
735
|
-
# Extract the actual list of tags for the typed response
|
|
736
|
-
tag_list: TagList = tags["root"]
|
|
751
|
+
tag_list = self._list_tags(context, arn)
|
|
737
752
|
return ListTagsResponse(TagList=tag_list)
|
|
738
753
|
|
|
739
754
|
def remove_tags(
|
|
740
755
|
self, context: RequestContext, arn: ARN, tag_keys: StringList, **kwargs
|
|
741
756
|
) -> None:
|
|
742
757
|
_ensure_domain_exists(arn)
|
|
743
|
-
self.
|
|
758
|
+
self._remove_tags(context, arn, tag_keys)
|
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.
|
|
32
|
-
__version_tuple__ = version_tuple = (4, 13, 2, '
|
|
31
|
+
__version__ = version = '4.13.2.dev54'
|
|
32
|
+
__version_tuple__ = version_tuple = (4, 13, 2, 'dev54')
|
|
33
33
|
|
|
34
34
|
__commit_id__ = commit_id = None
|
|
@@ -4,7 +4,7 @@ localstack/deprecations.py,sha256=-3IYgCd6LEC3PjO7hbr3Dg-p0PIS6phjmv1qZnj1uo0,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=
|
|
7
|
+
localstack/version.py,sha256=K_C-_tYdHjr0khrky3HjUgikDOgCaJyyG9v8pCE-z4E,721
|
|
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
|
|
@@ -649,7 +649,7 @@ localstack/services/opensearch/cluster_manager.py,sha256=YF1SFcM05SS0OPVXI1Z1Nyn
|
|
|
649
649
|
localstack/services/opensearch/models.py,sha256=lk68jGwZPGxyUgvc2qkLZHsLT_-ixs5CpLT-kNq_4YM,606
|
|
650
650
|
localstack/services/opensearch/packages.py,sha256=Y57rsCI7fQfOb7EQdSnHuJp7xv_tx_JzLi7XAZRVBug,17844
|
|
651
651
|
localstack/services/opensearch/plugins.py,sha256=uLySso81LpRvM7oC68nfOPXUsZ27JRIxpwoya4Dw-48,222
|
|
652
|
-
localstack/services/opensearch/provider.py,sha256=
|
|
652
|
+
localstack/services/opensearch/provider.py,sha256=maG6C5aQnz-G5J1WzkADVIn_jhldjhVHGYU1CoRdmso,31059
|
|
653
653
|
localstack/services/opensearch/versions.py,sha256=BCRFH4xU-hBEabyxefbwOAJwcPLQG4zAFByRSnhSrHU,11928
|
|
654
654
|
localstack/services/opensearch/resource_providers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
655
655
|
localstack/services/opensearch/resource_providers/aws_elasticsearch_domain.py,sha256=dpfjJM4-SFEMVnEEP54nTWg0szAHsacHTY43lOxZH9k,6784
|
|
@@ -1317,12 +1317,12 @@ localstack/utils/server/tcp_proxy.py,sha256=y2NJAmvftTiAYsLU_8qe4W5LGqwUw21i90Pu
|
|
|
1317
1317
|
localstack/utils/xray/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1318
1318
|
localstack/utils/xray/trace_header.py,sha256=ahXk9eonq7LpeENwlqUEPj3jDOCiVRixhntQuxNor-Q,6209
|
|
1319
1319
|
localstack/utils/xray/traceid.py,sha256=GKO-R2sMMjlrH2UaLPXlQlZ6flbE7ZKb6IZMtMu_M5U,1110
|
|
1320
|
-
localstack_core-4.13.2.
|
|
1321
|
-
localstack_core-4.13.2.
|
|
1322
|
-
localstack_core-4.13.2.
|
|
1323
|
-
localstack_core-4.13.2.
|
|
1324
|
-
localstack_core-4.13.2.
|
|
1325
|
-
localstack_core-4.13.2.
|
|
1326
|
-
localstack_core-4.13.2.
|
|
1327
|
-
localstack_core-4.13.2.
|
|
1328
|
-
localstack_core-4.13.2.
|
|
1320
|
+
localstack_core-4.13.2.dev54.data/scripts/localstack,sha256=WyL11vp5CkuP79iIR-L8XT7Cj8nvmxX7XRAgxhbmXNE,529
|
|
1321
|
+
localstack_core-4.13.2.dev54.data/scripts/localstack-supervisor,sha256=nm1Il2d6ASyOB6Vo4CRHd90w7TK9FdRl9VPp0NN6hUk,6378
|
|
1322
|
+
localstack_core-4.13.2.dev54.data/scripts/localstack.bat,sha256=tlzZTXtveHkMX_s_fa7VDfvdNdS8iVpEz2ER3uk9B_c,29
|
|
1323
|
+
localstack_core-4.13.2.dev54.dist-info/licenses/LICENSE.txt,sha256=3PC-9Z69UsNARuQ980gNR_JsLx8uvMjdG6C7cc4LBYs,606
|
|
1324
|
+
localstack_core-4.13.2.dev54.dist-info/METADATA,sha256=n28AotHjZZIOCsr9wogz9xQFMUkTrhzHBjCljvRCrw8,5867
|
|
1325
|
+
localstack_core-4.13.2.dev54.dist-info/WHEEL,sha256=YCfwYGOYMi5Jhw2fU4yNgwErybb2IX5PEwBKV4ZbdBo,91
|
|
1326
|
+
localstack_core-4.13.2.dev54.dist-info/entry_points.txt,sha256=59aAnn8KVHWAHkMg2dOgmgYtRZ-xTX9T4UiIchWgK6k,20975
|
|
1327
|
+
localstack_core-4.13.2.dev54.dist-info/top_level.txt,sha256=3sqmK2lGac8nCy8nwsbS5SpIY_izmtWtgaTFKHYVHbI,11
|
|
1328
|
+
localstack_core-4.13.2.dev54.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
{localstack_core-4.13.2.dev53.data → localstack_core-4.13.2.dev54.data}/scripts/localstack.bat
RENAMED
|
File without changes
|
|
File without changes
|
{localstack_core-4.13.2.dev53.dist-info → localstack_core-4.13.2.dev54.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
{localstack_core-4.13.2.dev53.dist-info → localstack_core-4.13.2.dev54.dist-info}/top_level.txt
RENAMED
|
File without changes
|