I've written up a method to forward DNS lookups for certain domain suffixes to alternative DNS, such as Route 53 inbound resolver, when using macos.
CDK Aspects are a powerful tool provided by the AWS Cloud Development Kit (CDK). They are utilizing the Visitor Pattern. By applying a CDK Aspect to a specific scope, you get access to every child node within it. You can inspect them or alter them.