(arn: str)
| 480 | |
| 481 | |
| 482 | def parse_region_from_arn(arn: str) -> str: |
| 483 | # ARN format: arn:partition:service:region:account-id:resource-type/resource-id |
| 484 | # Check if we have enough parts and the ARN starts with "arn:" |
| 485 | parts = arn.split(":") |
| 486 | if len(parts) >= 4: |
| 487 | return parts[3] |
| 488 | |
| 489 | return "" |
| 490 | |
| 491 | |
| 492 | def generate_sha(path: pathlib.Path) -> pathlib.Path: |
no outgoing calls
no test coverage detected