AWSTemplateFormatVersion: '2010-09-09' Transform: AWS::Serverless-2016-10-31 Description: > SAM Template for dotnet-app # More info about Globals: https://github.com/awslabs/serverless-application-model/blob/master/docs/globals.rst Globals: Function: Timeout: 10 Api: BinaryMediaTypes: - image~1vnd.microsoft.icon Resources: ServerlessExampleFunction: Type: AWS::Serverless::Function # More info about Function Resource: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction Properties: CodeUri: ./src/ServerlessExample/ Handler: ServerlessExample::ServerlessExample.Function::FunctionHandler Runtime: dotnetcore3.1 MemorySize: 256 Environment: # More info about Env Vars: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#environment-object Variables: PARAM1: VALUE Events: ServerlessExample: Type: Api # More info about API Event Source: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#api Properties: Path: /hello Method: get Favicon: Type: Api # More info about API Event Source: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#api Properties: Path: /favicon.ico Method: get Outputs: # 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#api ServerlessExampleApi: Description: "API Gateway endpoint URL for Prod stage forvServerless Example function" Value: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/hello/" ServerlessExampleFunction: Description: "Serverless Example Lambda Function ARN" Value: !GetAtt ServerlessExampleFunction.Arn ServerlessExampleFunctionIamRole: Description: "Implicit IAM Role created for Serverless Example function" Value: !GetAtt ServerlessExampleFunctionRole.Arn