forked from aws-powertools/powertools-lambda-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.yaml
33 lines (29 loc) · 809 Bytes
/
template.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
validation demo
Globals:
Function:
Timeout: 20
Runtime: java11
MemorySize: 512
Tracing: Active
Resources:
ValidationFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: .
Handler: org.demo.validation.InboundValidation::handleRequest
Events:
HelloWorld:
Type: Api
Properties:
Path: /hello
Method: post
Outputs:
Api:
Description: "API Gateway endpoint URL for Prod stage for Validation function"
Value: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/hello/"
Function:
Description: "Validation Lambda Function ARN"
Value: !GetAtt ValidationFunction.Arn