Resources: HttpApiFunction: Type: AWS::Serverless::Function Properties: CodeUri: s3://bucket/key Handler: index.handler Runtime: python3.7 Events: Api: Type: HttpApi Properties: ApiId: !Ref SomeApi HttpApiFunctionInvalidRouteSettings: Type: AWS::Serverless::Function Properties: CodeUri: s3://bucket/key Handler: index.handler Runtime: python3.7 Events: ApiNullRouteSettings: Type: HttpApi Properties: RouteSettings: Path: /path Method: POST HttpApiFunctionInvalidRouteSettings2: Type: AWS::Serverless::Function Properties: CodeUri: s3://bucket/key Handler: index.handler Runtime: python3.7 Events: ApiRouteSettingsNotMap: Type: HttpApi Properties: RouteSettings: this should be a map Path: /path2 Method: POST