Skip to content

Commit 16e5d37

Browse files
chore: move core utilities example to aws-samples/aws-lambda-powertools-examples (#733)
1 parent 1c834e3 commit 16e5d37

File tree

3 files changed

+0
-181
lines changed

3 files changed

+0
-181
lines changed

example/HelloWorldFunction/src/main/java/helloworld/App.java

-115
This file was deleted.

example/HelloWorldFunction/src/main/java/helloworld/AppStream.java

-25
This file was deleted.

example/template.yaml

-41
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,6 @@ Globals:
1212
Runtime: java11
1313

1414
Resources:
15-
HelloWorldFunction:
16-
Type: AWS::Serverless::Function # More info about Function Resource: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction
17-
Properties:
18-
CodeUri: HelloWorldFunction
19-
Handler: helloworld.App::handleRequest
20-
MemorySize: 512
21-
Environment: # More info about Env Vars: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#environment-object
22-
Variables:
23-
POWERTOOLS_SERVICE_NAME: "Payment Service"
24-
POWERTOOLS_LOG_LEVEL: INFO
25-
Tracing: Active
26-
Events:
27-
HelloWorld:
28-
Type: Api # More info about API Event Source: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#api
29-
Properties:
30-
Path: /hello
31-
Method: get
32-
3315
HelloWorldValidationFunction:
3416
Type: AWS::Serverless::Function # More info about Function Resource: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction
3517
Properties:
@@ -44,23 +26,6 @@ Resources:
4426
Path: /hello
4527
Method: post
4628

47-
HelloWorldStreamFunction:
48-
Type: AWS::Serverless::Function
49-
Properties:
50-
CodeUri: HelloWorldFunction
51-
Handler: helloworld.AppStream::handleRequest
52-
MemorySize: 512
53-
Tracing: Active
54-
Environment:
55-
Variables:
56-
POWERTOOLS_LOGGER_SAMPLE_RATE: 0.7
57-
Events:
58-
HelloWorld:
59-
Type: Api
60-
Properties:
61-
Path: /hellostream
62-
Method: get
63-
6429
HelloWorldParamsFunction:
6530
Type: AWS::Serverless::Function
6631
Properties:
@@ -194,16 +159,10 @@ Outputs:
194159
HelloWorldApi:
195160
Description: "API Gateway endpoint URL for Prod stage for Hello World function"
196161
Value: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/hello/"
197-
HelloWorldFunction:
198-
Description: "Hello World Lambda Function ARN"
199-
Value: !GetAtt HelloWorldFunction.Arn
200162

201163
HelloWorldStreamApi:
202164
Description: "API Gateway endpoint URL for Prod stage for Hello World stream function"
203165
Value: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/hellostream/"
204-
HelloWorldStreamFunction:
205-
Description: "Hello World Stream Lambda Function ARN"
206-
Value: !GetAtt HelloWorldStreamFunction.Arn
207166

208167
HelloWorldParamsApi:
209168
Description: "API Gateway endpoint URL for Prod stage for Hello World params function"

0 commit comments

Comments
 (0)