Source code for ecs_composex.s3.s3_perms

#  -*- coding: utf-8 -*-
# SPDX-License-Identifier: MPL-2.0
# Copyright 2020-2021 John Mille <john@compose-x.io>

from json import loads
from os import path


[docs]def get_access_types(): with open( f"{path.abspath(path.dirname(__file__))}/s3_perms.json", "r", encoding="utf-8-sig", ) as perms_fd: return loads(perms_fd.read())
ACCESS_TYPES = get_access_types()