Mercurial > public > finance-parser
comparison template.yaml @ 7:7c5fb7573dd8
first working version
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Mon, 05 Jun 2023 19:06:34 +0100 |
parents | d15ccf5f1373 |
children | f2442b8f43de |
comparison
equal
deleted
inserted
replaced
6:d15ccf5f1373 | 7:7c5fb7573dd8 |
---|---|
118 | 118 |
119 Api: | 119 Api: |
120 Type: AWS::Serverless::Api | 120 Type: AWS::Serverless::Api |
121 Properties: | 121 Properties: |
122 StageName: Prod | 122 StageName: Prod |
123 Cors: | |
124 AllowMethods: "'GET, POST, OPTIONS'" | |
125 AllowHeaders: "'content-type, x-api-key'" | |
126 AllowOrigin: "'*'" | |
123 Models: | 127 Models: |
124 Empty: | 128 Empty: |
125 type: object | 129 type: object |
126 | 130 |
127 GetReportFunction: | 131 GetReportFunction: |
140 Required: true | 144 Required: true |
141 - method.request.querystring.type: | 145 - method.request.querystring.type: |
142 Required: true | 146 Required: true |
143 - method.request.querystring.year: | 147 - method.request.querystring.year: |
144 Required: true | 148 Required: true |
149 Connectors: | |
150 DynamoConnector: | |
151 Properties: | |
152 Destination: | |
153 Id: DynamoTable | |
154 Permissions: | |
155 - Read | |
156 | |
157 GetTickersFunction: | |
158 Type: AWS::Serverless::Function | |
159 Properties: | |
160 CodeUri: get_tickers/ | |
161 Events: | |
162 GetProductEvent: | |
163 Type: Api | |
164 Properties: | |
165 RestApiId: !Ref Api | |
166 Path: /tickers | |
167 Method: get | |
145 Connectors: | 168 Connectors: |
146 DynamoConnector: | 169 DynamoConnector: |
147 Properties: | 170 Properties: |
148 Destination: | 171 Destination: |
149 Id: DynamoTable | 172 Id: DynamoTable |
172 | 195 |
173 Outputs: | 196 Outputs: |
174 GetReportEndpoint: | 197 GetReportEndpoint: |
175 Description: "Endpoint to get a report" | 198 Description: "Endpoint to get a report" |
176 Value: !Sub "https://${Api}.execute-api.${AWS::Region}.amazonaws.com/Prod/report" | 199 Value: !Sub "https://${Api}.execute-api.${AWS::Region}.amazonaws.com/Prod/report" |
200 | |
201 GetTickersEndpoint: | |
202 Description: "Endpoint to get tickers" | |
203 Value: !Sub "https://${Api}.execute-api.${AWS::Region}.amazonaws.com/Prod/ticker" |