Skip to content

Commit

Permalink
Add host addressing rule for IoT Data
Browse files Browse the repository at this point in the history
  • Loading branch information
viren-nadkarni committed Apr 23, 2024
1 parent bcee501 commit a30a7d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion localstack/aws/protocol/service_router.py
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

0 comments on commit a30a7d9

Please sign in to comment.