-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsam.yaml
More file actions
27 lines (27 loc) · 688 Bytes
/
sam.yaml
File metadata and controls
27 lines (27 loc) · 688 Bytes
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
Transform: AWS::Serverless-2016-10-31
Parameters:
RegionParameter:
Type: String
Default: us-east-1
Resources:
ComprehendLambda:
Type: AWS::Serverless::Function
Properties:
Handler: com.budilov.aws.lambda.ComprehendLambda::handleRequest
FunctionName: ComprehendLambda
Policies:
- ComprehendReadOnly
Runtime: java8
MemorySize: 1024
Timeout: 20
CodeUri: build/libs/comprehend-1.0-SNAPSHOT.jar
Environment:
Variables:
REGION_NAME:
Ref: RegionParameter
Events:
GetResource:
Type: Api
Properties:
Path: /comprehend/url
Method: get