Skip to content

Commit 6362732

Browse files
committed
feat: Add str sensitive for CodePipeline Data
Add _sensitive_properties for CodePipelineArtifactCredentials to prevent logging out the secret_access_key and session_token properties.
1 parent 9c904f0 commit 6362732

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

aws_lambda_powertools/utilities/data_classes/code_pipeline_job_event.py

+2
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ def location(self) -> CodePipelineLocation:
8080

8181

8282
class CodePipelineArtifactCredentials(DictWrapper):
83+
_sensitive_properties = ["secret_access_key", "session_token"]
84+
8385
@property
8486
def access_key_id(self) -> str:
8587
return self["accessKeyId"]

0 commit comments

Comments
 (0)