()
| 123 | |
| 124 | |
| 125 | def _is_lambda() -> bool: |
| 126 | if os.getenv("AWS_LAMBDA_RUNTIME_API"): |
| 127 | return True |
| 128 | env = os.getenv("AWS_EXECUTION_ENV") |
| 129 | if env: |
| 130 | return env.startswith("AWS_Lambda_") |
| 131 | return False |
| 132 | |
| 133 | |
| 134 | def _is_azure_func() -> bool: |
no outgoing calls
no test coverage detected