For a boto3 program, you want to find the AWS namespaces. What do you do to list the namespaces that are part of your AWS accounts?
You must have the AWS CLI installed. If you need assistance with this, see this posting.
This also assumes that the Linux user has the policy for servicediscovery:ListNamespaces. If you aren't sure, try the solution first. Otherwise your user must be made to allow "servicediscover:ListNamespaces".
Run this command:
aws servicediscovery list-namespaces