integration/resources/templates/combination/function_with_implicit_api_with_timeout.yaml (12 lines of code) (raw):

AWSTemplateFormatVersion: '2010-09-09' Description: A template to test timeout support for implicit APIs. Resources: MyLambdaFunction: Type: AWS::Serverless::Function Properties: Handler: index.handler Runtime: nodejs18.x MemorySize: 128 Timeout: 3 InlineCode: | exports.handler = async () => ‘Hello World!' Events: ApiEvent: Type: Api Properties: Path: /hello Method: get TimeoutInMillis: 5000 Metadata: SamTransformTest: true