We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29389b2 commit d1d2cebCopy full SHA for d1d2ceb
src/java/detectors/lambda_client_reuse/LambdaClientReuseCompliant.java
@@ -16,8 +16,9 @@
16
public class LambdaClientReuseCompliant implements RequestHandler<String, Void> {
17
18
private AmazonS3 s3Client;
19
-
20
- public void S3ClientCreatedCompliant() {
+
+ public LambdaClientReuseCompliant() {
21
+ // Compliant: creates the client only once.
22
this.s3Client = AmazonS3ClientBuilder.standard()
23
.withRegion(Regions.US_EAST_1).build();
24
}
0 commit comments