You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/powertools-examples-core-utilities/sam/template.yaml
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -19,11 +19,22 @@ Globals:
19
19
POWERTOOLS_METRICS_NAMESPACE: Coreutilities
20
20
21
21
Resources:
22
+
TestBucket:
23
+
Type: AWS::S3::Bucket
24
+
22
25
HelloWorldFunction:
23
26
Type: AWS::Serverless::Function # More info about Function Resource: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction
24
27
Properties:
25
28
CodeUri: .
26
29
Handler: helloworld.App::handleRequest
30
+
Policies:
31
+
- S3ReadPolicy:
32
+
BucketName: !Ref TestBucket
33
+
- Statement:
34
+
- Effect: Allow
35
+
Action:
36
+
- s3:ListAllMyBuckets
37
+
Resource: "*"
27
38
Environment: # More info about Env Vars: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#environment-object
Copy file name to clipboardExpand all lines: powertools-common/src/main/java/software/amazon/lambda/powertools/common/internal/UserAgentConfigurator.java
+14-6Lines changed: 14 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -19,14 +19,14 @@
19
19
importjava.io.IOException;
20
20
importjava.io.InputStream;
21
21
importjava.util.Properties;
22
+
22
23
importorg.slf4j.Logger;
23
24
importorg.slf4j.LoggerFactory;
24
25
25
-
26
26
/**
27
27
* Can be used to create a string that can server as a User-Agent suffix in requests made with the AWS SDK clients
Copy file name to clipboardExpand all lines: powertools-common/src/test/java/software/amazon/lambda/powertools/common/internal/UserAgentConfiguratorTest.java
+12-4Lines changed: 12 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,7 @@ void testGetUserAgent() {
91
91
92
92
assertThat(userAgent)
93
93
.isNotNull()
94
-
.isEqualTo("PT/test-feature/" + VERSION + " PTEnv/NA");
94
+
.isEqualTo("PT/TEST-FEATURE/" + VERSION + " PTENV/NA");
0 commit comments