'default', 'region' => 'us-east-2', 'version' => '2016-04-18' ]); $userPoolId = "us-east-2_P0oL1D"; try { $result = $client->listUserPoolClients([ 'UserPoolId' => $userPoolId, ]); var_dump($result); } catch (AwsException $e) { // output error message if fails echo $e->getMessage() . "\n"; error_log($e->getMessage()); } // snippet-end:[cognito.php.user_pool.list_user_pool_clients.main] // snippet-end:[cognito.php.user_pool.list_user_pool_clients.complete] // snippet-comment:[These are tags for the AWS doc team's sample catalog. Do not remove.] // snippet-sourcedescription:[ListUserPoolClients.php demonstrates how to list existing User Pool Clients available in the specified region in your current AWS account.] // snippet-keyword:[PHP] // snippet-sourcesyntax:[php] // snippet-keyword:[AWS SDK for PHP v3] // snippet-keyword:[Code Sample] // snippet-keyword:[Amazon Cognito] // snippet-service:[cognito] // snippet-sourcetype:[full-example] // snippet-sourcedate:[2019-03-29] // snippet-sourceauthor:[jschwarzwalder (AWS)]