in src/integ_test_resources/android/amplify/integration/cdk/scripts/common.py [0:0]
def get_existing_app_id():
try:
response = AMPLIFY_AWSSDK_CLIENT.list_apps()
existing_app_id = next(app for app in response['apps'] if app['name'] == PROJECT_NAME)
return existing_app_id
except StopIteration:
print(f"Unable to find existing Amplify app for {PROJECT_NAME}")
return None