SAM Serverless implicit API vs AWS::Serverless::Api

前端 未结 2 1910
时光说笑
时光说笑 2021-01-05 19:26

When configuring a SAM template and defining a AWS::Serverless::Function there is the Events param that accepts an Api type. Does this create an API Gateway res

2条回答
  •  轮回少年
    2021-01-05 19:39

    Taken from the documentation:

    An AWS::Serverless::Api resource need not be explicitly added to a AWS Serverless Application Definition template. A resource of this type is implicitly created from the union of Api events defined on AWS::Serverless::Function resources defined in the template that do not refer to an AWS::Serverless::Api resource.

提交回复
热议问题