123456789101112131415161718192021222324252627282930313233343536373839404142434445open!Valuesopen!Coreopen!AsyncopenAwso_asyncopen!Importletcognito_list_user_pools'cfg?max_results()=Util.list_user_poolscfg?max_results()>>=funl->lets=Util.user_pools_to_string(Option.value~default:[]l.ListUserPoolsResponse.userPools)inWriter.write(forceWriter.stdout)s;return();;(*
>>= function
| #Cognito_idp.Api.listUserPools_error -> failwith "user pool error"
| `Ok l ->
Cognito_idp.user_pools_to_string (Option.value ~default:[] l.userPools)
>>| fun s -> Writer.write (force Writer.stdout) s
*)letcognito_list_user_pools:Command.t=letopenCommand.Let_syntaxinCommand.async~summary:"Gets a list Cognito User Pools"[%map_openletlog_level=Param.log_levelandprofile=Param.profileandmax_results=Param.max_resultsinfun()->Log.Global.set_levellog_level;Cfg.get_exn?profile()>>=funcfg->cognito_list_user_pools'?max_resultscfg()];;letcognito_idp=Command.group~summary:"Cognito Identity Provider Operations"["list-user-pools",cognito_list_user_pools];;letmain=Command.group~summary:"AWS client"["cognito-idp",cognito_idp]