forked from TrueCloudLab/frostfs-testlib
Added delete bucket policy method to s3 client
This commit is contained in:
parent
b8ce75b299
commit
37a1177a3c
3 changed files with 21 additions and 0 deletions
|
@ -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."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue