From dc368fbe791419c18bdd7cb9082f6afc683d70c5 Mon Sep 17 00:00:00 2001 From: Bert Blommers Date: Wed, 26 Oct 2022 10:12:15 +0000 Subject: [PATCH] Docs: S3: Specify that Bucket Logging is not yet implemented (#5600) --- docs/docs/services/s3.rst | 4 ++++ moto/s3/models.py | 3 +++ 2 files changed, 7 insertions(+) diff --git a/docs/docs/services/s3.rst b/docs/docs/services/s3.rst index 22152ed77..05e8ec247 100644 --- a/docs/docs/services/s3.rst +++ b/docs/docs/services/s3.rst @@ -102,6 +102,10 @@ s3 - [X] put_bucket_lifecycle - [ ] put_bucket_lifecycle_configuration - [X] put_bucket_logging + + The logging functionality itself is not yet implemented - we only store the configuration for now. + + - [ ] put_bucket_metrics_configuration - [ ] put_bucket_notification - [X] put_bucket_notification_configuration diff --git a/moto/s3/models.py b/moto/s3/models.py index 2d3d1b368..458fc7d61 100644 --- a/moto/s3/models.py +++ b/moto/s3/models.py @@ -1919,6 +1919,9 @@ class S3Backend(BaseBackend, CloudWatchMetricProvider): bucket.set_cors(cors_rules) def put_bucket_logging(self, bucket_name, logging_config): + """ + The logging functionality itself is not yet implemented - we only store the configuration for now. + """ bucket = self.get_bucket(bucket_name) bucket.set_logging(logging_config, self)