AWSTemplateFormatVersion:'2010-09-09'Transform:AWS::Serverless-2016-10-31Description:> sam-app
Sample SAM Template for sam-app# More info about Globals: https://github.com/awslabs/serverless-application-model/blob/master/docs/globals.rstGlobals:Function:Timeout:3Resources:HelloWorldFunction:Type: AWS::Serverless::Function # More info about Function Resource:https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunctionProperties:CodeUri:hello_world/Handler:app.lambda_handlerRuntime:python3.7Events:HelloWorld:Type: Api # More info about API Event Source:https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#apiProperties:Path:/helloMethod:getOutputs:# ServerlessRestApi is an implicit API created out of Events key under Serverless::Function# Find out more about other implicit resources you can reference within SAM# https://github.com/awslabs/serverless-application-model/blob/master/docs/internals/generated_resources.rst#apiHelloWorldApi:Description:"API Gateway endpoint URL for Prod stage for Hello World function"Value:!Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/hello/"HelloWorldFunction:Description:"Hello World Lambda Function ARN"Value:!GetAtt HelloWorldFunction.ArnHelloWorldFunctionIamRole:Description:"Implicit IAM Role created for Hello World function"Value:!GetAtt HelloWorldFunctionRole.Arn