Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add host addressing rule for IoT Data #10709

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion localstack/aws/protocol/service_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ def custom_host_addressing_rules(host: str) -> Optional[ServiceModelIdentifier]:
if ".s3-website." in host:
return ServiceModelIdentifier("s3")

if ".iot." in host:
return ServiceModelIdentifier("iot-data")


def custom_path_addressing_rules(path: str) -> Optional[ServiceModelIdentifier]:
"""
Expand Down Expand Up @@ -289,7 +292,7 @@ def resolve_conflicts(
) -> ServiceModelIdentifier:
"""
Some service definitions are overlapping to a point where they are _not_ distinguishable at all
(f.e. ``DescribeEndpints`` in timestream-query and timestream-write).
(f.e. ``DescribeEndpoints`` in timestream-query and timestream-write).
These conflicts need to be resolved manually.
"""
service_name_candidates = {service.name for service in candidates}
Expand Down