xdmp:aws-services-domain() as string?
Returns the current Amazon Web Services services domain. If MarkLogic is not running on Amazon Web Services, returns an empty sequence.
xdmp:aws-services-domain() => "amazonaws.com"