Feature request: Support DisableExecuteApiEndpoint for Serverless::HttpApi with DefinitionUri #3128
Labels
stage/needs-triage
Automatically applied to new issues and PRs, indicating they haven't been looked at.
type/feature
Support
DisableExecuteApiEndpoint: true
when creating AWS::Serverless::HttpApi with DefinitionUri.Proposal
When running
sam validate
on a template with resource Serverless::HttpApi with DefinitionUri property allow disabling the execute API endpoint.That raises error: `[InvalidResourceException('HttpApi', "DisableExecuteApiEndpoint works only within 'DefinitionBody' property.")]
The alternative way with 'DefinitionBody' property doesn't solve the problem instead leads to another one. When trying to create HttpApi with:
Another error is being raised: [InvalidTemplateException("Invalid OpenApi document. Invalid values or missing keys for 'openapi' or 'paths' in 'DefinitionBody'.")]
Additional Details
SAM CLI, version 1.81.0
The text was updated successfully, but these errors were encountered: