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