-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.yaml
47 lines (41 loc) · 1.15 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
AWSTemplateFormatVersion: 2010-09-09
Transform: AWS::Serverless-2016-10-31
Description: HelloWorldLambdaJava
Globals:
Function:
Runtime: java11
MemorySize: 512
Timeout: 25
Api:
OpenApiVersion: '3.0.1'
Resources:
HelloWorldLambdaStr:
Type: AWS::Serverless::Function
Properties:
FunctionName: HelloWorldJavaStr
Handler: book.StringIntegerBooleanLambda::handlerString
CodeUri: target/lambda.zip
HelloWorldLambdaBool:
Type: AWS::Serverless::Function
Properties:
FunctionName: HelloWorldJavaBool
Handler: book.StringIntegerBooleanLambda::handlerBoolean
CodeUri: target/lambda.zip
ContextChecker:
Type: AWS::Serverless::Function
Properties:
FunctionName: ContextChecker
Handler: book.ContextChecker::handler
CodeUri: target/lambda.zip
SimpleIntegerCalculator:
Type: AWS::Serverless::Function
Properties:
FunctionName: SimpleIntegerCalculator
Handler: calc.SimpleIntegerCalculator::calculate
CodeUri: target/lambda.zip
Events:
ApiEvents:
Type: Api
Properties:
Path: /calc
Method: POST