xref: /aosp_15_r20/external/ktfmt/online_formatter/format.yaml (revision 5be3f65c8cf0e6db0a7e312df5006e8e93cdf9ec)
1AWSTemplateFormatVersion: '2010-09-09'
2Transform: 'AWS::Serverless-2016-10-31'
3Description: An AWS Serverless Specification template describing your function.
4Resources:
5  format:
6    Type: 'AWS::Serverless::Function'
7    Properties:
8      CodeUri: build/distributions/lambda.zip
9      Handler: 'com.facebook.ktfmt.onlineformatter.Handler::handleRequest'
10      Runtime: java11
11      Description: ''
12      MemorySize: 1024
13      Timeout: 15
14      Policies:
15        - AWSLambdaBasicExecutionRole
16        - AWSLambda_ReadOnlyAccess
17        - AWSXrayWriteOnlyAccess
18        - AWSLambdaVPCAccessExecutionRole
19      Tracing: Active
20      Layers:
21        - !Ref libs
22  libs:
23    Type: AWS::Serverless::LayerVersion
24    Properties:
25      LayerName: ktfmt-lib
26      Description: Dependencies for ktfmt
27      ContentUri: build/lambda-lib.zip
28      CompatibleRuntimes:
29        - java11
30