Skip to content

Commit a7831d3

Browse files
author
Ana Falcao
committed
fix the comment to explain none type for boto3
1 parent 36f71c0 commit a7831d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws_lambda_powertools/utilities/data_classes/code_pipeline_job_event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def put_artifact(self, artifact_name: str, body: Any, content_type: str) -> None
310310
bucket = artifact.location.s3_location.bucket_name
311311
key = artifact.location.s3_location.key
312312

313-
# boto3 doesn't treat None as equivalent to omitting the parameter when using ServerSideEncryption and SSEKMSKeyId
313+
# boto3 doesn't support None to omit the parameter when using ServerSideEncryption and SSEKMSKeyId
314314
# So we are using if/else instead.
315315

316316
if self.data.encryption_key:

0 commit comments

Comments
 (0)