I would like to be able to disable the default execution endpoint of an API Gateway when using a custom domain. I tried setting disableExecuteApiEndpoint: true on the restApiProps but it appears that the SpecRestApi construct ignores this and instead expects it to be configured via the top level x-amazon-apigateway-endpoint-configuration openapi extension.
I have managed to workaround this at the moment by loading the yaml, adding the config, then manually creating the openapix schema:
I suspect this may also be an issue when trying to configure a resource policy using x-amazon-apigateway-policy since this is also a top level extension, but I've yet to try defining this.
I'm happy to help with contributing this feature, I'm just not sure whether you'd prefer an openapix specific input property for this, or to piggyback on the restApiProps.disableExecuteApiEndpoint property. Unfortunately the SpecRestApi construct doesn't specifically say which props it ignores in favour of extensions, it just has a general statement about this being the case for some properties.
Hi,
I would like to be able to disable the default execution endpoint of an API Gateway when using a custom domain. I tried setting
disableExecuteApiEndpoint: true
on therestApiProps
but it appears that theSpecRestApi
construct ignores this and instead expects it to be configured via the top levelx-amazon-apigateway-endpoint-configuration
openapi extension.I have managed to workaround this at the moment by loading the yaml, adding the config, then manually creating the openapix schema:
I suspect this may also be an issue when trying to configure a resource policy using x-amazon-apigateway-policy since this is also a top level extension, but I've yet to try defining this.
I'm happy to help with contributing this feature, I'm just not sure whether you'd prefer an openapix specific input property for this, or to piggyback on the
restApiProps.disableExecuteApiEndpoint
property. Unfortunately theSpecRestApi
construct doesn't specifically say which props it ignores in favour of extensions, it just has a general statement about this being the case for some properties.