Added delete bucket policy method to s3 client

This commit is contained in:
Yaroslava Lukoyanova 2024-05-16 10:13:11 +03:00 committed by ylukoyan
parent b8ce75b299
commit 37a1177a3c
3 changed files with 21 additions and 0 deletions

View file

@ -152,6 +152,10 @@ class S3ClientWrapper(HumanReadableABC):
def get_bucket_policy(self, bucket: str) -> str:
"""Returns the policy of a specified bucket."""
@abstractmethod
def delete_bucket_policy(self, bucket: str) -> str:
"""Deletes the policy of a specified bucket."""
@abstractmethod
def put_bucket_policy(self, bucket: str, policy: dict) -> None:
"""Applies S3 bucket policy to an S3 bucket."""