File: utils.py

package info (click to toggle)
python-moto 5.1.18-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 116,520 kB
  • sloc: python: 636,725; javascript: 181; makefile: 39; sh: 3
file content (5 lines) | stat: -rw-r--r-- 215 bytes parent folder | download
1
2
3
4
5
from moto.utilities.utils import get_partition


def create_vector_bucket_arn(account_id: str, region: str, name: str) -> str:
    return f"arn:{get_partition(region)}:s3vectors:{region}:{account_id}:bucket/{name}"