1111 ChangeStatus ,
1212 CreateHostedZoneResponse ,
1313 DeleteHealthCheckResponse ,
14+ DeleteHostedZoneResponse ,
1415 DNSName ,
1516 GetChangeResponse ,
1617 GetHealthCheckResponse ,
@@ -36,6 +37,12 @@ def accept_state_visitor(self, visitor: StateVisitor):
3637 visitor .visit (route53_backends )
3738 visitor .visit (route53_stores )
3839
40+ # No tag deletion logic to handle in Community. Overwritten in Pro implementation.
41+ def remove_resource_tags (
42+ self , context : RequestContext , resource_type : str , resource_id : str
43+ ) -> None :
44+ return
45+
3946 def create_hosted_zone (
4047 self ,
4148 context : RequestContext ,
@@ -114,6 +121,13 @@ def get_health_check(
114121 )
115122 )
116123
124+ def delete_hosted_zone (
125+ self , context : RequestContext , id : ResourceId , ** kwargs
126+ ) -> DeleteHostedZoneResponse :
127+ response = call_moto (context )
128+ self .remove_resource_tags (context = context , resource_type = "hostedzone" , resource_id = id )
129+ return response
130+
117131 def delete_health_check (
118132 self , context : RequestContext , health_check_id : HealthCheckId , ** kwargs
119133 ) -> DeleteHealthCheckResponse :
@@ -126,4 +140,8 @@ def delete_health_check(
126140 )
127141
128142 route53_backends [context .account_id ][context .partition ].delete_health_check (health_check_id )
129- return {}
143+ self .remove_resource_tags (
144+ context = context , resource_type = "healthcheck" , resource_id = health_check_id
145+ )
146+
147+ return DeleteHealthCheckResponse ()
0 commit comments