Skip to content

Commit 4de1648

Browse files
committed
add endpoint for Amazon Managed Workflows for Apache Airflow (MWAA)
1 parent 064f092 commit 4de1648

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# LocalStack Python Client Change Log
22

3+
* v1.35: Add endpoint for Amazon Managed Workflows for Apache Airflow (MWAA)
34
* v1.33: Patch botocore to skip adding `data-` host prefixes to endpoint URLs; remove six dependency
45
* v1.32: Add endpoint for KinesisAnalyticsV2
56
* v1.31: Revert mapping for OpenSearch (drop support for `OPENSEARCH_ENDPOINT_STRATEGY=off`)

localstack_client/config.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108
'wafv2': '{proto}://{host}:4640',
109109
'config': '{proto}://{host}:4641',
110110
'configservice': '{proto}://{host}:4641',
111+
'mwaa': '{proto}://{host}:4642',
111112
}
112113

113114
# TODO remove service port mapping above entirely
@@ -145,12 +146,14 @@ def get_service_ports():
145146

146147

147148
def patch_expand_host_prefix():
148-
"""Apply a patch to botocore, to skip adding `data-` host prefixes to endpoint URLs"""
149+
"""Apply a patch to botocore, to skip adding host prefixes to endpoint URLs"""
149150

150151
def _expand_host_prefix(self, parameters, operation_model, *args, **kwargs):
151152
result = _expand_host_prefix_orig(self, parameters, operation_model, *args, **kwargs)
152-
# skip adding data- prefix, to avoid making requests to http://data-localhost:4566
153-
if operation_model.name == "DiscoverInstances" and result == "data-":
153+
# skip adding host prefixes, to avoid making requests to, e.g., http://data-localhost:4566
154+
if operation_model.service_model.service_name == "servicediscovery" and result == "data-":
155+
return None
156+
if operation_model.service_model.service_name == "mwaa" and result == "api.":
154157
return None
155158
return result
156159

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = localstack-client
3-
version = 1.33
3+
version = 1.35
44
url = https://github.com/localstack/localstack-python-client
55
author = LocalStack Team
66
author_email = info@localstack.cloud

0 commit comments

Comments
 (0)