aws glue test-connection
Tests a connection to a service to validate the service credentials that you provide. AWS CLI reference
3 options Its page in the AWS CLI reference
Options
--catalog-idThe catalog ID where the connection resides.--connection-nameOptional.--test-connection-inputA structure that is used to specify testing a connection to a service.