If you want to deactivate the default endpoint, you will utilize the API Gateway console or AWS Command Line Interface (AWS CLI). When you are about to deactivate the default endpoint, you will be initiating a deployment for the update to take place.
- Go to the API Gateway console.
- Through the navigation pane, select APIs, and then you can choose your REST API.
- Go to Settings.
- For the Default Endpoint, select Disabled, and then click on Save Changes.
- In the navigation pane, select Resources, Actions, and then click on Deploy API.
- HTTP API
- Go to the API Gateway console.
- Open the navigation pane, select APIs, and then click on your HTTP API.
- Then choose API: API_NAME(API_ID).
- Click on Edit.
- For the Default Endpoint, click on Disabled, and then select Save.