I have a SAM template file where i defined my Api as a AWS::Serverless::Api resource. The api is supposed to have an EndpointConfiguration: PRIVATE Unlike AWS::ApiGateway::RestApi, AWS::Serverless::Api supports only a String value for an EndpointConfiguration.
For AWS::ApiGateway::RestApi: I can add 2 properties Types : PRIVATE vpcEndpointIds : []
but for AWS::Serverless::Api I only have one String property that is PRIVATE
As I searched for how to configure vpcEndpointIds I found :
And this documentation says that vpcEndpointIds should be defined under "x-amazon-apigateway-endpoint-configuration" in an open api specification document.
but I am not able to find any example on how exactly it should be defined neither in AWS docs nor in open api docs.
Open api doc says it should be defined under server object which I tried and neither worked.
Any help would be really appreciated