-
Notifications
You must be signed in to change notification settings - Fork 29
/
packaged.yaml
92 lines (90 loc) · 2.77 KB
/
packaged.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
AWSTemplateFormatVersion: '2010-09-09'
Description: 'study-datalake
Rest API to manage a Data Lake of study links
'
Globals:
Function:
MemorySize: 512
Timeout: 20
Outputs:
CreateStudyRecordFunction:
Description: CreateStudyRecord Lambda Function ARN
Value:
Fn::GetAtt:
- CreateStudyRecordFunction
- Arn
GetStudyRecordsByIsConsumedFunction:
Description: GetStudyRecordsByIsConsumed Lambda Function ARN
Value:
Fn::GetAtt:
- GetStudyRecordsByIsConsumedFunction
- Arn
GetStudyRecordsByPeriodFunction:
Description: GetStudyRecordsByPeriod Lambda Function ARN
Value:
Fn::GetAtt:
- GetStudyRecordsByPeriodFunction
- Arn
GetStudyRecordsByTagFunction:
Description: GetStudyRecordsByTag Lambda Function ARN
Value:
Fn::GetAtt:
- GetStudyRecordsByTagFunction
- Arn
Resources:
CreateStudyRecordFunction:
Properties:
CodeUri: s3://aws-sam-fiap-deployt/896a140ec24d1c84f917b82d6bdddd3f
Events:
CreateStudyRecord:
Properties:
Method: post
Path: /study
Type: Api
Handler: br.com.iwe.handler.CreateStudyRecord::handleRequest
Runtime: java8
Type: AWS::Serverless::Function
GetStudyRecordsByIsConsumedFunction:
Properties:
CodeUri: s3://aws-sam-fiap-deployt/896a140ec24d1c84f917b82d6bdddd3f
Events:
GetStudyRecordsByIsConsumed:
Properties:
Method: get
Path: /study/{topic}/findByIsConsumed
RequestParameters:
- method.request.querystring.isconsumed
Type: Api
Handler: br.com.iwe.handler.GetStudyRecordsByIsConsumed::handleRequest
Runtime: java8
Type: AWS::Serverless::Function
GetStudyRecordsByPeriodFunction:
Properties:
CodeUri: s3://aws-sam-fiap-deployt/896a140ec24d1c84f917b82d6bdddd3f
Events:
GetStudyRecordsByPeriod:
Properties:
Method: get
Path: /study/{topic}/findByPeriod
RequestParameters:
- method.request.querystring.starts
- method.request.querystring.ends
Type: Api
Handler: br.com.iwe.handler.GetStudyRecordsByPeriod::handleRequest
Runtime: java8
Type: AWS::Serverless::Function
GetStudyRecordsByTagFunction:
Properties:
CodeUri: s3://aws-sam-fiap-deployt/896a140ec24d1c84f917b82d6bdddd3f
Events:
GetStudyRecordsByTag:
Properties:
Method: get
Path: /study/{topic}/findByTag
RequestParameters:
- method.request.querystring.tag
Type: Api
Handler: br.com.iwe.handler.GetStudyRecordsByTag::handleRequest
Runtime: java8
Type: AWS::Serverless::Function
Transform: AWS::Serverless-2016-10-31