(region: str | None)
| 67 | |
| 68 | |
| 69 | def _configured_region(region: str | None) -> str | None: |
| 70 | configured = region or os.environ.get("AWS_REGION") or os.environ.get("AWS_DEFAULT_REGION") |
| 71 | return configured.strip() if configured is not None and configured.strip() else None |
| 72 | |
| 73 | |
| 74 | def _uses_region_derived_base_url(base_url: str | httpx.URL | None) -> bool: |