Unfortunately, AppSync doesn't have the ability to disable the default endpoint like API Gateway does.
I came up with an alternative. (But not perfect)
You can assign AWS WAF ACLs to AppSync.
Using this mechanism, you can block access by directly specifying the default domain by blocking if the "host" header is not a custom domain in the WAF rule.
How to disable default endpoint in AWS appsyncAccepted Answerasked 3 months ago
Disable DNSSEC for a transferred domainasked 3 years ago
How to remove/disable moon for space levelAccepted Answerasked 4 years ago
Want to disable SES service for my account?asked 24 days ago
Greengrass V2 have component call appsync endpointasked 6 months ago
In Amazon LexV2, how do I disable barge-in (interruption event) for Fulfillment?asked a month ago
How to disable deletion protection?asked 4 years ago
AWS Amplify - Circular dependency in PostConfirm when access to AppSync is neededasked 5 months ago
How do I use a schema fields default value in a template?asked 3 years ago
Custom endpoint not redirecting to domain endpoint in opensearchasked 2 months ago