123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611(* generated by: awso-codegen generate-all --botocore-data vendor/botocore/botocore/data -o aws --runtime-dir lib/runtime/awso --cli-dir awso-cli *)openAwsoopen!Import[@@@warning"-32"]letservice=Service.cognito_identityletapiVersion="2014-06-30"letendpointPrefix="cognito-identity"letserviceFullName="Amazon Cognito Identity"letsignatureVersion="v4"letprotocol="json"letglobalEndpoint=endpointPrefix^".amazonaws.com"lettargetPrefix="AWSCognitoIdentityService"letsimple_to_jsonto_valuex=Botodata.Json.value_to_json_scalar(to_valuex)letcomposed_to_jsonto_valuex=Botodata.Json.value_to_json(to_valuex)letto_queryto_valuex=Client.Query.of_value(to_valuex)letstructure_to_value_auxst~f=letfilter=function|(k,Somev)->Some(k,v)|_->Noneinletpairkv=(k,v)inletdefer_value(k,dv)=pairkdvin((List.filter_mapst~f:filter)|>(List.map~f:defer_value))|>(funx->`Structure(fx))letstructure_to_value=structure_to_value_aux~f:Fn.idletstructure_to_wrapped_value~wrapper~response=structure_to_value_aux~f:(funx->[(wrapper,(`Structurex));(response,(`Structure[]))])moduleARNString=structtypenonrect=stringletcontext_="ARNString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_string_mini~min:20));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ARNString"jletto_json=simple_to_jsonto_valueendmoduleClaimName=structtypenonrect=stringletcontext_="ClaimName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:64)>>=(fun()->check_patterni~pattern:"[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ClaimName"jletto_json=simple_to_jsonto_valueendmoduleClaimValue=structtypenonrect=stringletcontext_="ClaimValue"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ClaimValue"jletto_json=simple_to_jsonto_valueendmoduleMappingRuleMatchType=structtypenonrect=|Equals|Contains|StartsWith|NotEqual|Non_static_idofstringletmakei=iletto_string=function|Equals->"Equals"|Contains->"Contains"|StartsWith->"StartsWith"|NotEqual->"NotEqual"|Non_static_ids->sletof_string=function|"Equals"->Equals|"Contains"->Contains|"StartsWith"->StartsWith|"NotEqual"->NotEqual|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration MappingRuleMatchType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"MappingRuleMatchType"j)letto_json=simple_to_jsonto_valueendmoduleMappingRule=structtypenonrect={claim:ClaimName.t[@ocaml.doc"The claim name that must be present in the token, for example, \"isAdmin\" or \"paid\"."];matchType:MappingRuleMatchType.t[@ocaml.doc"The match condition that specifies how closely the claim value in the IdP token must match Value."];value:ClaimValue.t[@ocaml.doc"A brief string that the claim must match, for example, \"paid\" or \"yes\"."];roleARN:ARNString.t[@ocaml.doc"The role ARN."]}letcontext_="MappingRule"letmake~claim=fun~matchType->fun~value->fun~roleARN->fun()->{claim;matchType;value;roleARN}letto_valuex=structure_to_value[("Claim",(Some(ClaimName.to_valuex.claim)));("MatchType",(Some(MappingRuleMatchType.to_valuex.matchType)));("Value",(Some(ClaimValue.to_valuex.value)));("RoleARN",(Some(ARNString.to_valuex.roleARN)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroleARN=ARNString.of_xml(Xml.child_exn~context:context_xml_arg0"RoleARN")inletvalue=ClaimValue.of_xml(Xml.child_exn~context:context_xml_arg0"Value")inletmatchType=MappingRuleMatchType.of_xml(Xml.child_exn~context:context_xml_arg0"MatchType")inletclaim=ClaimName.of_xml(Xml.child_exn~context:context_xml_arg0"Claim")inmake~roleARN~value~matchType~claim()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroleARN=field_map_exnjson__"RoleARN"ARNString.of_jsoninletvalue=field_map_exnjson__"Value"ClaimValue.of_jsoninletmatchType=field_map_exnjson__"MatchType"MappingRuleMatchType.of_jsoninletclaim=field_map_exnjson__"Claim"ClaimName.of_jsoninmake~roleARN~value~matchType~claim()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A rule that maps a claim name, a claim value, and a match type to a role ARN."]moduleMappingRulesList=structtypenonrect=MappingRule.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:400)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:MappingRule.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:MappingRule.of_xml)letof_jsonj=list_of_json~kind:"MappingRulesList"~of_json:MappingRule.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleString_=structtypenonrect=stringletcontext_="String"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"String"jletto_json=simple_to_jsonto_valueendmoduleIdentityProviderName=structtypenonrect=stringletcontext_="IdentityProviderName"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"IdentityProviderName"jletto_json=simple_to_jsonto_valueendmoduleAmbiguousRoleResolutionType=structtypenonrect=|AuthenticatedRole|Deny|Non_static_idofstringletmakei=iletto_string=function|AuthenticatedRole->"AuthenticatedRole"|Deny->"Deny"|Non_static_ids->sletof_string=function|"AuthenticatedRole"->AuthenticatedRole|"Deny"->Deny|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration AmbiguousRoleResolutionType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AmbiguousRoleResolutionType"j)letto_json=simple_to_jsonto_valueendmoduleRoleMappingType=structtypenonrect=|Token|Rules|Non_static_idofstringletmakei=iletto_string=function|Token->"Token"|Rules->"Rules"|Non_static_ids->sletof_string=function|"Token"->Token|"Rules"->Rules|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration RoleMappingType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"RoleMappingType"j)letto_json=simple_to_jsonto_valueendmoduleRulesConfigurationType=structtypenonrect={rules:MappingRulesList.t[@ocaml.doc"An array of rules. You can specify up to 25 rules per identity provider. Rules are evaluated in order. The first one to match specifies the role."]}letcontext_="RulesConfigurationType"letmake~rules=fun()->{rules}letto_valuex=structure_to_value[("Rules",(Some(MappingRulesList.to_valuex.rules)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrules=MappingRulesList.of_xml(Xml.child_exn~context:context_xml_arg0"Rules")inmake~rules()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrules=field_map_exnjson__"Rules"MappingRulesList.of_jsoninmake~rules()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A container for rules."]moduleIdentityPoolId=structtypenonrect=stringletcontext_="IdentityPoolId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:55)>>=(fun()->check_patterni~pattern:"[\\w-]+:[0-9a-f-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"IdentityPoolId"jletto_json=simple_to_jsonto_valueendmoduleIdentityPoolName=structtypenonrect=stringletcontext_="IdentityPoolName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"[\\w\\s+=,.@-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"IdentityPoolName"jletto_json=simple_to_jsonto_valueendmoduleDateType=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Timestampxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=string_of_xml~kind:"a timestamp"letof_json=timestamp_of_jsonletto_json=simple_to_jsonto_valueendmoduleIdentityId=structtypenonrect=stringletcontext_="IdentityId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:55)>>=(fun()->check_patterni~pattern:"[\\w-]+:[0-9a-f-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"IdentityId"jletto_json=simple_to_jsonto_valueendmoduleInternalErrorException=structtypenonrect={message:String_.toption[@ocaml.doc"The message returned by an InternalErrorException."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Thrown when the service encounters an error during processing the request."]moduleInvalidParameterException=structtypenonrect={message:String_.toption[@ocaml.doc"The message returned by an InvalidParameterException."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Thrown for missing or bad input parameter(s)."]moduleLoginsList=structtypenonrect=IdentityProviderName.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:IdentityProviderName.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:IdentityProviderName.of_xml)letof_jsonj=list_of_json~kind:"LoginsList"~of_json:IdentityProviderName.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleNotAuthorizedException=structtypenonrect={message:String_.toption[@ocaml.doc"The message returned by a NotAuthorizedException"]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Thrown when a user is not authorized to access the requested resource."]moduleResourceNotFoundException=structtypenonrect={message:String_.toption[@ocaml.doc"The message returned by a ResourceNotFoundException."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Thrown when the requested resource (for example, a dataset or record) does not exist."]moduleTooManyRequestsException=structtypenonrect={message:String_.toption[@ocaml.doc"Message returned by a TooManyRequestsException"]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Thrown when a request is throttled."]moduleCognitoIdentityProviderClientId=structtypenonrect=stringletcontext_="CognitoIdentityProviderClientId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"[\\w_]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CognitoIdentityProviderClientId"jletto_json=simple_to_jsonto_valueendmoduleCognitoIdentityProviderName=structtypenonrect=stringletcontext_="CognitoIdentityProviderName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"[\\w._:/-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CognitoIdentityProviderName"jletto_json=simple_to_jsonto_valueendmoduleCognitoIdentityProviderTokenCheck=structtypenonrect=boolletmakei=iletof_string=Bool.of_stringletto_valuex=`Booleanxletto_queryv=to_queryto_valuevletto_headerx=Bool.to_stringxletof_xmlxml_arg0=Bool.of_string(string_of_xml~kind:"a boolean"xml_arg0)letof_json=bool_of_jsonletto_json=simple_to_jsonto_valueendmoduleErrorCode=structtypenonrect=|AccessDenied|InternalServerError|Non_static_idofstringletmakei=iletto_string=function|AccessDenied->"AccessDenied"|InternalServerError->"InternalServerError"|Non_static_ids->sletof_string=function|"AccessDenied"->AccessDenied|"InternalServerError"->InternalServerError|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration ErrorCode"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ErrorCode"j)letto_json=simple_to_jsonto_valueendmoduleTagKeysType=structtypenonrect=stringletcontext_="TagKeysType"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagKeysType"jletto_json=simple_to_jsonto_valueendmoduleIdentityProviderToken=structtypenonrect=stringletcontext_="IdentityProviderToken"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:50000)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"IdentityProviderToken"jletto_json=simple_to_jsonto_valueendmoduleTagValueType=structtypenonrect=stringletcontext_="TagValueType"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagValueType"jletto_json=simple_to_jsonto_valueendmodulePrincipalTagID=structtypenonrect=stringletcontext_="PrincipalTagID"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PrincipalTagID"jletto_json=simple_to_jsonto_valueendmodulePrincipalTagValue=structtypenonrect=stringletcontext_="PrincipalTagValue"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PrincipalTagValue"jletto_json=simple_to_jsonto_valueendmoduleRoleMapping=structtypenonrect={type_:RoleMappingType.t[@ocaml.doc"The role mapping type. Token will use cognito:roles and cognito:preferred_role claims from the Cognito identity provider token to map groups to roles. Rules will attempt to match claims from the token to map to a role."];ambiguousRoleResolution:AmbiguousRoleResolutionType.toption[@ocaml.doc"If you specify Token or Rules as the Type, AmbiguousRoleResolution is required. Specifies the action to be taken if either no rules match the claim value for the Rules type, or there is no cognito:preferred_role claim and there are multiple cognito:roles matches for the Token type."];rulesConfiguration:RulesConfigurationType.toption[@ocaml.doc"The rules to be used for mapping users to roles. If you specify Rules as the role mapping type, RulesConfiguration is required."]}letcontext_="RoleMapping"letmake?ambiguousRoleResolution=fun?rulesConfiguration->fun~type_->fun()->{ambiguousRoleResolution;rulesConfiguration;type_}letto_valuex=structure_to_value[("Type",(Some(RoleMappingType.to_valuex.type_)));("AmbiguousRoleResolution",(Option.mapx.ambiguousRoleResolution~f:AmbiguousRoleResolutionType.to_value));("RulesConfiguration",(Option.mapx.rulesConfiguration~f:RulesConfigurationType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrulesConfiguration=(Option.map~f:RulesConfigurationType.of_xml)(Xml.childxml_arg0"RulesConfiguration")inletambiguousRoleResolution=(Option.map~f:AmbiguousRoleResolutionType.of_xml)(Xml.childxml_arg0"AmbiguousRoleResolution")inlettype_=RoleMappingType.of_xml(Xml.child_exn~context:context_xml_arg0"Type")inmake?rulesConfiguration?ambiguousRoleResolution~type_()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrulesConfiguration=field_mapjson__"RulesConfiguration"RulesConfigurationType.of_jsoninletambiguousRoleResolution=field_mapjson__"AmbiguousRoleResolution"AmbiguousRoleResolutionType.of_jsoninlettype_=field_map_exnjson__"Type"RoleMappingType.of_jsoninmake?rulesConfiguration?ambiguousRoleResolution~type_()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A role mapping."]moduleRoleType=structtypenonrect=stringletcontext_="RoleType"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"(un)?authenticated")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"RoleType"jletto_json=simple_to_jsonto_valueendmoduleDeveloperUserIdentifier=structtypenonrect=stringletcontext_="DeveloperUserIdentifier"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DeveloperUserIdentifier"jletto_json=simple_to_jsonto_valueendmoduleIdentityPoolShortDescription=structtypenonrect={identityPoolId:IdentityPoolId.toption[@ocaml.doc"An identity pool ID in the format REGION:GUID."];identityPoolName:IdentityPoolName.toption[@ocaml.doc"A string that you provide."]}letmake?identityPoolId=fun?identityPoolName->fun()->{identityPoolId;identityPoolName}letto_valuex=structure_to_value[("IdentityPoolId",(Option.mapx.identityPoolId~f:IdentityPoolId.to_value));("IdentityPoolName",(Option.mapx.identityPoolName~f:IdentityPoolName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidentityPoolName=(Option.map~f:IdentityPoolName.of_xml)(Xml.childxml_arg0"IdentityPoolName")inletidentityPoolId=(Option.map~f:IdentityPoolId.of_xml)(Xml.childxml_arg0"IdentityPoolId")inmake?identityPoolName?identityPoolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidentityPoolName=field_mapjson__"IdentityPoolName"IdentityPoolName.of_jsoninletidentityPoolId=field_mapjson__"IdentityPoolId"IdentityPoolId.of_jsoninmake?identityPoolName?identityPoolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A description of the identity pool."]moduleIdentityDescription=structtypenonrect={identityId:IdentityId.toption[@ocaml.doc"A unique identifier in the format REGION:GUID."];logins:LoginsList.toption[@ocaml.doc"The provider names."];creationDate:DateType.toption[@ocaml.doc"Date on which the identity was created."];lastModifiedDate:DateType.toption[@ocaml.doc"Date on which the identity was last modified."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?identityId=fun?logins->fun?creationDate->fun?lastModifiedDate->fun()->{identityId;logins;creationDate;lastModifiedDate}leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotAuthorizedExceptione->`Assoc[("error",(`String"NotAuthorizedException"));("details",(NotAuthorizedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("IdentityId",(Option.mapx.identityId~f:IdentityId.to_value));("Logins",(Option.mapx.logins~f:LoginsList.to_value));("CreationDate",(Option.mapx.creationDate~f:DateType.to_value));("LastModifiedDate",(Option.mapx.lastModifiedDate~f:DateType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastModifiedDate=(Option.map~f:DateType.of_xml)(Xml.childxml_arg0"LastModifiedDate")inletcreationDate=(Option.map~f:DateType.of_xml)(Xml.childxml_arg0"CreationDate")inletlogins=(Option.map~f:LoginsList.of_xml)(Xml.childxml_arg0"Logins")inletidentityId=(Option.map~f:IdentityId.of_xml)(Xml.childxml_arg0"IdentityId")inmake?lastModifiedDate?creationDate?logins?identityId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastModifiedDate=field_mapjson__"LastModifiedDate"DateType.of_jsoninletcreationDate=field_mapjson__"CreationDate"DateType.of_jsoninletlogins=field_mapjson__"Logins"LoginsList.of_jsoninletidentityId=field_mapjson__"IdentityId"IdentityId.of_jsoninmake?lastModifiedDate?creationDate?logins?identityId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A description of the identity."]moduleCognitoIdentityProvider=structtypenonrect={providerName:CognitoIdentityProviderName.toption[@ocaml.doc"The provider name for an Amazon Cognito user pool. For example, cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789."];clientId:CognitoIdentityProviderClientId.toption[@ocaml.doc"The client ID for the Amazon Cognito user pool."];serverSideTokenCheck:CognitoIdentityProviderTokenCheck.toption[@ocaml.doc"TRUE if server-side token validation is enabled for the identity provider\226\128\153s token. Once you set ServerSideTokenCheck to TRUE for an identity pool, that identity pool will check with the integrated user pools to make sure that the user has not been globally signed out or deleted before the identity pool provides an OIDC token or Amazon Web Services credentials for the user. If the user is signed out or deleted, the identity pool will return a 400 Not Authorized error."]}letmake?providerName=fun?clientId->fun?serverSideTokenCheck->fun()->{providerName;clientId;serverSideTokenCheck}letto_valuex=structure_to_value[("ProviderName",(Option.mapx.providerName~f:CognitoIdentityProviderName.to_value));("ClientId",(Option.mapx.clientId~f:CognitoIdentityProviderClientId.to_value));("ServerSideTokenCheck",(Option.mapx.serverSideTokenCheck~f:CognitoIdentityProviderTokenCheck.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letserverSideTokenCheck=(Option.map~f:CognitoIdentityProviderTokenCheck.of_xml)(Xml.childxml_arg0"ServerSideTokenCheck")inletclientId=(Option.map~f:CognitoIdentityProviderClientId.of_xml)(Xml.childxml_arg0"ClientId")inletproviderName=(Option.map~f:CognitoIdentityProviderName.of_xml)(Xml.childxml_arg0"ProviderName")inmake?serverSideTokenCheck?clientId?providerName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letserverSideTokenCheck=field_mapjson__"ServerSideTokenCheck"CognitoIdentityProviderTokenCheck.of_jsoninletclientId=field_mapjson__"ClientId"CognitoIdentityProviderClientId.of_jsoninletproviderName=field_mapjson__"ProviderName"CognitoIdentityProviderName.of_jsoninmake?serverSideTokenCheck?clientId?providerName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A provider representing an Amazon Cognito user pool and its client ID."]moduleIdentityProviderId=structtypenonrect=stringletcontext_="IdentityProviderId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"[\\w.;_/-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"IdentityProviderId"jletto_json=simple_to_jsonto_valueendmoduleAccessKeyString=structtypenonrect=stringletcontext_="AccessKeyString"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AccessKeyString"jletto_json=simple_to_jsonto_valueendmoduleSecretKeyString=structtypenonrect=stringletcontext_="SecretKeyString"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SecretKeyString"jletto_json=simple_to_jsonto_valueendmoduleSessionTokenString=structtypenonrect=stringletcontext_="SessionTokenString"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SessionTokenString"jletto_json=simple_to_jsonto_valueendmoduleUnprocessedIdentityId=structtypenonrect={identityId:IdentityId.toption[@ocaml.doc"A unique identifier in the format REGION:GUID."];errorCode:ErrorCode.toption[@ocaml.doc"The error code indicating the type of error that occurred."]}letmake?identityId=fun?errorCode->fun()->{identityId;errorCode}letto_valuex=structure_to_value[("IdentityId",(Option.mapx.identityId~f:IdentityId.to_value));("ErrorCode",(Option.mapx.errorCode~f:ErrorCode.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorCode=(Option.map~f:ErrorCode.of_xml)(Xml.childxml_arg0"ErrorCode")inletidentityId=(Option.map~f:IdentityId.of_xml)(Xml.childxml_arg0"IdentityId")inmake?errorCode?identityId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorCode=field_mapjson__"ErrorCode"ErrorCode.of_jsoninletidentityId=field_mapjson__"IdentityId"IdentityId.of_jsoninmake?errorCode?identityId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An array of UnprocessedIdentityId objects, each of which contains an ErrorCode and IdentityId."]moduleIdentityPoolTagsListType=structtypenonrect=TagKeysType.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TagKeysType.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:TagKeysType.of_xml)letof_jsonj=list_of_json~kind:"IdentityPoolTagsListType"~of_json:TagKeysType.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleLoginsMap=structtypenonrect=(IdentityProviderName.t*IdentityProviderToken.t)listletmakei=letopenResultinok_or_failwith(check_list_maxi~max:10);iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((IdentityProviderName.of_stringchopped),(IdentityProviderToken.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(IdentityProviderName.to_valuex)|>(funx->(IdentityProviderToken.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:IdentityProviderName.of_string~of_json:IdentityProviderToken.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDeveloperProviderName=structtypenonrect=stringletcontext_="DeveloperProviderName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"[\\w._-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DeveloperProviderName"jletto_json=simple_to_jsonto_valueendmoduleIdentityPoolTagsType=structtypenonrect=(TagKeysType.t*TagValueType.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((TagKeysType.of_stringchopped),(TagValueType.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(TagKeysType.to_valuex)|>(funx->(TagValueType.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:TagKeysType.of_string~of_json:TagValueType.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePrincipalTags=structtypenonrect=(PrincipalTagID.t*PrincipalTagValue.t)listletmakei=letopenResultinok_or_failwith(check_list_maxi~max:50);iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((PrincipalTagID.of_stringchopped),(PrincipalTagValue.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(PrincipalTagID.to_valuex)|>(funx->(PrincipalTagValue.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:PrincipalTagID.of_string~of_json:PrincipalTagValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUseDefaults=structtypenonrect=boolletmakei=iletof_string=Bool.of_stringletto_valuex=`Booleanxletto_queryv=to_queryto_valuevletto_headerx=Bool.to_stringxletof_xmlxml_arg0=Bool.of_string(string_of_xml~kind:"a boolean"xml_arg0)letof_json=bool_of_jsonletto_json=simple_to_jsonto_valueendmoduleRoleMappingMap=structtypenonrect=(IdentityProviderName.t*RoleMapping.t)listletmakei=letopenResultinok_or_failwith(check_list_maxi~max:10);iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->let(_:string)=vinlet(_:string)=choppedinfailwith"no of_header for complex types IdentityProviderName RoleMapping"))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(IdentityProviderName.to_valuex)|>(funx->(RoleMapping.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:IdentityProviderName.of_string~of_json:RoleMapping.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRolesMap=structtypenonrect=(RoleType.t*ARNString.t)listletmakei=letopenResultinok_or_failwith(check_list_maxi~max:2);iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((RoleType.of_stringchopped),(ARNString.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(RoleType.to_valuex)|>(funx->(ARNString.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:RoleType.of_string~of_json:ARNString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleResourceConflictException=structtypenonrect={message:String_.toption[@ocaml.doc"The message returned by a ResourceConflictException."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Thrown when a user tries to use a login which is already linked to another account."]moduleDeveloperUserIdentifierList=structtypenonrect=DeveloperUserIdentifier.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DeveloperUserIdentifier.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:DeveloperUserIdentifier.of_xml)letof_jsonj=list_of_json~kind:"DeveloperUserIdentifierList"~of_json:DeveloperUserIdentifier.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePaginationKey=structtypenonrect=stringletcontext_="PaginationKey"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:65535)>>=(fun()->check_patterni~pattern:"[\\S]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PaginationKey"jletto_json=simple_to_jsonto_valueendmoduleQueryLimit=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:60)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for QueryLimit"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleIdentityPoolsList=structtypenonrect=IdentityPoolShortDescription.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:IdentityPoolShortDescription.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:IdentityPoolShortDescription.of_xml)letof_jsonj=list_of_json~kind:"IdentityPoolsList"~of_json:IdentityPoolShortDescription.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleIdentitiesList=structtypenonrect=IdentityDescription.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:IdentityDescription.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:IdentityDescription.of_xml)letof_jsonj=list_of_json~kind:"IdentitiesList"~of_json:IdentityDescription.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleHideDisabled=structtypenonrect=boolletmakei=iletof_string=Bool.of_stringletto_valuex=`Booleanxletto_queryv=to_queryto_valuevletto_headerx=Bool.to_stringxletof_xmlxml_arg0=Bool.of_string(string_of_xml~kind:"a boolean"xml_arg0)letof_json=bool_of_jsonletto_json=simple_to_jsonto_valueendmoduleClassicFlow=structtypenonrect=boolletmakei=iletof_string=Bool.of_stringletto_valuex=`Booleanxletto_queryv=to_queryto_valuevletto_headerx=Bool.to_stringxletof_xmlxml_arg0=Bool.of_string(string_of_xml~kind:"a boolean"xml_arg0)letof_json=bool_of_jsonletto_json=simple_to_jsonto_valueendmoduleCognitoIdentityProviderList=structtypenonrect=CognitoIdentityProvider.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:CognitoIdentityProvider.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:CognitoIdentityProvider.of_xml)letof_jsonj=list_of_json~kind:"CognitoIdentityProviderList"~of_json:CognitoIdentityProvider.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleConcurrentModificationException=structtypenonrect={message:String_.toption[@ocaml.doc"The message returned by a ConcurrentModificationException."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Thrown if there are parallel requests to modify a resource."]moduleIdentityPoolUnauthenticated=structtypenonrect=boolletmakei=iletof_string=Bool.of_stringletto_valuex=`Booleanxletto_queryv=to_queryto_valuevletto_headerx=Bool.to_stringxletof_xmlxml_arg0=Bool.of_string(string_of_xml~kind:"a boolean"xml_arg0)letof_json=bool_of_jsonletto_json=simple_to_jsonto_valueendmoduleIdentityProviders=structtypenonrect=(IdentityProviderName.t*IdentityProviderId.t)listletmakei=letopenResultinok_or_failwith(check_list_maxi~max:10);iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((IdentityProviderName.of_stringchopped),(IdentityProviderId.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(IdentityProviderName.to_valuex)|>(funx->(IdentityProviderId.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:IdentityProviderName.of_string~of_json:IdentityProviderId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleLimitExceededException=structtypenonrect={message:String_.toption[@ocaml.doc"The message returned by a LimitExceededException."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Thrown when the total number of user pools has exceeded a preset limit."]moduleOIDCProviderList=structtypenonrect=ARNString.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ARNString.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:ARNString.of_xml)letof_jsonj=list_of_json~kind:"OIDCProviderList"~of_json:ARNString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSAMLProviderList=structtypenonrect=ARNString.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ARNString.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:ARNString.of_xml)letof_jsonj=list_of_json~kind:"SAMLProviderList"~of_json:ARNString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleExternalServiceException=structtypenonrect={message:String_.toption[@ocaml.doc"The message returned by an ExternalServiceException"]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An exception thrown when a dependent service such as Facebook or Twitter is not responding"]moduleOIDCToken=structtypenonrect=stringletcontext_="OIDCToken"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"OIDCToken"jletto_json=simple_to_jsonto_valueendmoduleDeveloperUserAlreadyRegisteredException=structtypenonrect={message:String_.toption[@ocaml.doc"This developer user identifier is already registered with Cognito."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The provided developer user identifier is already registered with Cognito under a different identity ID."]moduleTokenDuration=structtypenonrect=Int64.tletmakei=letopenResultinok_or_failwith((check_int64_maxi~max:86400L)>>=(fun()->check_int64_mini~min:1L));iletof_string=Int64.of_stringletto_valuex=`Longxletto_queryv=to_queryto_valuevletto_headerx=Int64.to_stringxletof_xmlxml_arg0=Int64.of_string(string_of_xml~kind:"a long"xml_arg0)letof_jsonj=Int64.of_float(float_of_json~kind:"a long"j)letto_json=simple_to_jsonto_valueendmoduleAccountId=structtypenonrect=stringletcontext_="AccountId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:15)>>=(fun()->check_patterni~pattern:"\\d+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AccountId"jletto_json=simple_to_jsonto_valueendmoduleCredentials=structtypenonrect={accessKeyId:AccessKeyString.toption[@ocaml.doc"The Access Key portion of the credentials."];secretKey:SecretKeyString.toption[@ocaml.doc"The Secret Access Key portion of the credentials"];sessionToken:SessionTokenString.toption[@ocaml.doc"The Session Token portion of the credentials"];expiration:DateType.toption[@ocaml.doc"The date at which these credentials will expire."]}letmake?accessKeyId=fun?secretKey->fun?sessionToken->fun?expiration->fun()->{accessKeyId;secretKey;sessionToken;expiration}letto_valuex=structure_to_value[("AccessKeyId",(Option.mapx.accessKeyId~f:AccessKeyString.to_value));("SecretKey",(Option.mapx.secretKey~f:SecretKeyString.to_value));("SessionToken",(Option.mapx.sessionToken~f:SessionTokenString.to_value));("Expiration",(Option.mapx.expiration~f:DateType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexpiration=(Option.map~f:DateType.of_xml)(Xml.childxml_arg0"Expiration")inletsessionToken=(Option.map~f:SessionTokenString.of_xml)(Xml.childxml_arg0"SessionToken")inletsecretKey=(Option.map~f:SecretKeyString.of_xml)(Xml.childxml_arg0"SecretKey")inletaccessKeyId=(Option.map~f:AccessKeyString.of_xml)(Xml.childxml_arg0"AccessKeyId")inmake?expiration?sessionToken?secretKey?accessKeyId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexpiration=field_mapjson__"Expiration"DateType.of_jsoninletsessionToken=field_mapjson__"SessionToken"SessionTokenString.of_jsoninletsecretKey=field_mapjson__"SecretKey"SecretKeyString.of_jsoninletaccessKeyId=field_mapjson__"AccessKeyId"AccessKeyString.of_jsoninmake?expiration?sessionToken?secretKey?accessKeyId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Credentials for the provided identity ID."]moduleInvalidIdentityPoolConfigurationException=structtypenonrect={message:String_.toption[@ocaml.doc"The message returned for an InvalidIdentityPoolConfigurationException"]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"If you provided authentication information in the request, the identity pool has no authenticated role configured, or STS returned an error response to the request to assume the authenticated role from the identity pool. If you provided no authentication information in the request, the identity pool has no unauthenticated role configured, or STS returned an error response to the request to assume the unauthenticated role from the identity pool. Your role trust policy must grant AssumeRoleWithWebIdentity permissions to cognito-identity.amazonaws.com."]moduleUnprocessedIdentityIdList=structtypenonrect=UnprocessedIdentityId.tlistletmakei=letopenResultinok_or_failwith(check_list_maxi~max:60);iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:UnprocessedIdentityId.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:UnprocessedIdentityId.of_xml)letof_jsonj=list_of_json~kind:"UnprocessedIdentityIdList"~of_json:UnprocessedIdentityId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleIdentityIdList=structtypenonrect=IdentityId.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:60)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:IdentityId.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:IdentityId.of_xml)letof_jsonj=list_of_json~kind:"IdentityIdList"~of_json:IdentityId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUntagResourceResponse=structtypenonrect=unittypenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotAuthorizedExceptione->`Assoc[("error",(`String"NotAuthorizedException"));("details",(NotAuthorizedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes the specified tags from the specified Amazon Cognito identity pool. You can use this action up to 5 times per second, per account"]moduleUntagResourceInput=structtypenonrect={resourceArn:ARNString.t[@ocaml.doc"The Amazon Resource Name (ARN) of the identity pool."];tagKeys:IdentityPoolTagsListType.t[@ocaml.doc"The keys of the tags to remove from the user pool."]}letcontext_="UntagResourceInput"letmake~resourceArn=fun~tagKeys->fun()->{resourceArn;tagKeys}letto_valuex=structure_to_value[("ResourceArn",(Some(ARNString.to_valuex.resourceArn)));("TagKeys",(Some(IdentityPoolTagsListType.to_valuex.tagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagKeys=IdentityPoolTagsListType.of_xml(Xml.child_exn~context:context_xml_arg0"TagKeys")inletresourceArn=ARNString.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inmake~tagKeys~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagKeys=field_map_exnjson__"TagKeys"IdentityPoolTagsListType.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"ARNString.of_jsoninmake~tagKeys~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes the specified tags from the specified Amazon Cognito identity pool. You can use this action up to 5 times per second, per account"]moduleUnlinkIdentityInput=structtypenonrect={identityId:IdentityId.t[@ocaml.doc"A unique identifier in the format REGION:GUID."];logins:LoginsMap.t[@ocaml.doc"A set of optional name-value pairs that map provider names to provider tokens."];loginsToRemove:LoginsList.t[@ocaml.doc"Provider names to unlink from this identity."]}letcontext_="UnlinkIdentityInput"letmake~identityId=fun~logins->fun~loginsToRemove->fun()->{identityId;logins;loginsToRemove}letto_valuex=structure_to_value[("IdentityId",(Some(IdentityId.to_valuex.identityId)));("Logins",(Some(LoginsMap.to_valuex.logins)));("LoginsToRemove",(Some(LoginsList.to_valuex.loginsToRemove)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letloginsToRemove=LoginsList.of_xml(Xml.child_exn~context:context_xml_arg0"LoginsToRemove")inletlogins=LoginsMap.of_xml(Xml.child_exn~context:context_xml_arg0"Logins")inletidentityId=IdentityId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityId")inmake~loginsToRemove~logins~identityId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letloginsToRemove=field_map_exnjson__"LoginsToRemove"LoginsList.of_jsoninletlogins=field_map_exnjson__"Logins"LoginsMap.of_jsoninletidentityId=field_map_exnjson__"IdentityId"IdentityId.of_jsoninmake~loginsToRemove~logins~identityId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input to the UnlinkIdentity action."]moduleUnlinkDeveloperIdentityInput=structtypenonrect={identityId:IdentityId.t[@ocaml.doc"A unique identifier in the format REGION:GUID."];identityPoolId:IdentityPoolId.t[@ocaml.doc"An identity pool ID in the format REGION:GUID."];developerProviderName:DeveloperProviderName.t[@ocaml.doc"The \"domain\" by which Cognito will refer to your users."];developerUserIdentifier:DeveloperUserIdentifier.t[@ocaml.doc"A unique ID used by your backend authentication process to identify a user."]}letcontext_="UnlinkDeveloperIdentityInput"letmake~identityId=fun~identityPoolId->fun~developerProviderName->fun~developerUserIdentifier->fun()->{identityId;identityPoolId;developerProviderName;developerUserIdentifier}letto_valuex=structure_to_value[("IdentityId",(Some(IdentityId.to_valuex.identityId)));("IdentityPoolId",(Some(IdentityPoolId.to_valuex.identityPoolId)));("DeveloperProviderName",(Some(DeveloperProviderName.to_valuex.developerProviderName)));("DeveloperUserIdentifier",(Some(DeveloperUserIdentifier.to_valuex.developerUserIdentifier)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdeveloperUserIdentifier=DeveloperUserIdentifier.of_xml(Xml.child_exn~context:context_xml_arg0"DeveloperUserIdentifier")inletdeveloperProviderName=DeveloperProviderName.of_xml(Xml.child_exn~context:context_xml_arg0"DeveloperProviderName")inletidentityPoolId=IdentityPoolId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityPoolId")inletidentityId=IdentityId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityId")inmake~developerUserIdentifier~developerProviderName~identityPoolId~identityId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdeveloperUserIdentifier=field_map_exnjson__"DeveloperUserIdentifier"DeveloperUserIdentifier.of_jsoninletdeveloperProviderName=field_map_exnjson__"DeveloperProviderName"DeveloperProviderName.of_jsoninletidentityPoolId=field_map_exnjson__"IdentityPoolId"IdentityPoolId.of_jsoninletidentityId=field_map_exnjson__"IdentityId"IdentityId.of_jsoninmake~developerUserIdentifier~developerProviderName~identityPoolId~identityId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input to the UnlinkDeveloperIdentity action."]moduleTagResourceResponse=structtypenonrect=unittypenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotAuthorizedExceptione->`Assoc[("error",(`String"NotAuthorizedException"));("details",(NotAuthorizedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Assigns a set of tags to the specified Amazon Cognito identity pool. A tag is a label that you can use to categorize and manage identity pools in different ways, such as by purpose, owner, environment, or other criteria. Each tag consists of a key and value, both of which you define. A key is a general category for more specific values. For example, if you have two versions of an identity pool, one for testing and another for production, you might assign an Environment tag key to both identity pools. The value of this key might be Test for one identity pool and Production for the other. Tags are useful for cost tracking and access control. You can activate your tags so that they appear on the Billing and Cost Management console, where you can track the costs associated with your identity pools. In an IAM policy, you can constrain permissions for identity pools based on specific tags or tag values. You can use this action up to 5 times per second, per account. An identity pool can have as many as 50 tags."]moduleTagResourceInput=structtypenonrect={resourceArn:ARNString.t[@ocaml.doc"The Amazon Resource Name (ARN) of the identity pool."];tags:IdentityPoolTagsType.t[@ocaml.doc"The tags to assign to the identity pool."]}letcontext_="TagResourceInput"letmake~resourceArn=fun~tags->fun()->{resourceArn;tags}letto_valuex=structure_to_value[("ResourceArn",(Some(ARNString.to_valuex.resourceArn)));("Tags",(Some(IdentityPoolTagsType.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=IdentityPoolTagsType.of_xml(Xml.child_exn~context:context_xml_arg0"Tags")inletresourceArn=ARNString.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inmake~tags~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_map_exnjson__"Tags"IdentityPoolTagsType.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"ARNString.of_jsoninmake~tags~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Assigns a set of tags to the specified Amazon Cognito identity pool. A tag is a label that you can use to categorize and manage identity pools in different ways, such as by purpose, owner, environment, or other criteria. Each tag consists of a key and value, both of which you define. A key is a general category for more specific values. For example, if you have two versions of an identity pool, one for testing and another for production, you might assign an Environment tag key to both identity pools. The value of this key might be Test for one identity pool and Production for the other. Tags are useful for cost tracking and access control. You can activate your tags so that they appear on the Billing and Cost Management console, where you can track the costs associated with your identity pools. In an IAM policy, you can constrain permissions for identity pools based on specific tags or tag values. You can use this action up to 5 times per second, per account. An identity pool can have as many as 50 tags."]moduleSetPrincipalTagAttributeMapResponse=structtypenonrect={identityPoolId:IdentityPoolId.toption[@ocaml.doc"The ID of the Identity Pool you want to set attribute mappings for."];identityProviderName:IdentityProviderName.toption[@ocaml.doc"The provider name you want to use for attribute mappings."];useDefaults:UseDefaults.toption[@ocaml.doc"You can use this operation to select default (username and clientID) attribute mappings."];principalTags:PrincipalTags.toption[@ocaml.doc"You can use this operation to add principal tags. The PrincipalTagsoperation enables you to reference user attributes in your IAM permissions policy."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?identityPoolId=fun?identityProviderName->fun?useDefaults->fun?principalTags->fun()->{identityPoolId;identityProviderName;useDefaults;principalTags}leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotAuthorizedExceptione->`Assoc[("error",(`String"NotAuthorizedException"));("details",(NotAuthorizedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("IdentityPoolId",(Option.mapx.identityPoolId~f:IdentityPoolId.to_value));("IdentityProviderName",(Option.mapx.identityProviderName~f:IdentityProviderName.to_value));("UseDefaults",(Option.mapx.useDefaults~f:UseDefaults.to_value));("PrincipalTags",(Option.mapx.principalTags~f:PrincipalTags.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprincipalTags=(Option.map~f:PrincipalTags.of_xml)(Xml.childxml_arg0"PrincipalTags")inletuseDefaults=(Option.map~f:UseDefaults.of_xml)(Xml.childxml_arg0"UseDefaults")inletidentityProviderName=(Option.map~f:IdentityProviderName.of_xml)(Xml.childxml_arg0"IdentityProviderName")inletidentityPoolId=(Option.map~f:IdentityPoolId.of_xml)(Xml.childxml_arg0"IdentityPoolId")inmake?principalTags?useDefaults?identityProviderName?identityPoolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprincipalTags=field_mapjson__"PrincipalTags"PrincipalTags.of_jsoninletuseDefaults=field_mapjson__"UseDefaults"UseDefaults.of_jsoninletidentityProviderName=field_mapjson__"IdentityProviderName"IdentityProviderName.of_jsoninletidentityPoolId=field_mapjson__"IdentityPoolId"IdentityPoolId.of_jsoninmake?principalTags?useDefaults?identityProviderName?identityPoolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You can use this operation to use default (username and clientID) attribute or custom attribute mappings."]moduleSetPrincipalTagAttributeMapInput=structtypenonrect={identityPoolId:IdentityPoolId.t[@ocaml.doc"The ID of the Identity Pool you want to set attribute mappings for."];identityProviderName:IdentityProviderName.t[@ocaml.doc"The provider name you want to use for attribute mappings."];useDefaults:UseDefaults.toption[@ocaml.doc"You can use this operation to use default (username and clientID) attribute mappings."];principalTags:PrincipalTags.toption[@ocaml.doc"You can use this operation to add principal tags."]}letcontext_="SetPrincipalTagAttributeMapInput"letmake?useDefaults=fun?principalTags->fun~identityPoolId->fun~identityProviderName->fun()->{useDefaults;principalTags;identityPoolId;identityProviderName}letto_valuex=structure_to_value[("IdentityPoolId",(Some(IdentityPoolId.to_valuex.identityPoolId)));("IdentityProviderName",(Some(IdentityProviderName.to_valuex.identityProviderName)));("UseDefaults",(Option.mapx.useDefaults~f:UseDefaults.to_value));("PrincipalTags",(Option.mapx.principalTags~f:PrincipalTags.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprincipalTags=(Option.map~f:PrincipalTags.of_xml)(Xml.childxml_arg0"PrincipalTags")inletuseDefaults=(Option.map~f:UseDefaults.of_xml)(Xml.childxml_arg0"UseDefaults")inletidentityProviderName=IdentityProviderName.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityProviderName")inletidentityPoolId=IdentityPoolId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityPoolId")inmake?principalTags?useDefaults~identityProviderName~identityPoolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprincipalTags=field_mapjson__"PrincipalTags"PrincipalTags.of_jsoninletuseDefaults=field_mapjson__"UseDefaults"UseDefaults.of_jsoninletidentityProviderName=field_map_exnjson__"IdentityProviderName"IdentityProviderName.of_jsoninletidentityPoolId=field_map_exnjson__"IdentityPoolId"IdentityPoolId.of_jsoninmake?principalTags?useDefaults~identityProviderName~identityPoolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You can use this operation to use default (username and clientID) attribute or custom attribute mappings."]moduleSetIdentityPoolRolesInput=structtypenonrect={identityPoolId:IdentityPoolId.t[@ocaml.doc"An identity pool ID in the format REGION:GUID."];roles:RolesMap.t[@ocaml.doc"The map of roles associated with this pool. For a given role, the key will be either \"authenticated\" or \"unauthenticated\" and the value will be the Role ARN."];roleMappings:RoleMappingMap.toption[@ocaml.doc"How users for a specific identity provider are to mapped to roles. This is a string to RoleMapping object map. The string identifies the identity provider, for example, graph.facebook.com or cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id. Up to 25 rules can be specified per identity provider."]}letcontext_="SetIdentityPoolRolesInput"letmake?roleMappings=fun~identityPoolId->fun~roles->fun()->{roleMappings;identityPoolId;roles}letto_valuex=structure_to_value[("IdentityPoolId",(Some(IdentityPoolId.to_valuex.identityPoolId)));("Roles",(Some(RolesMap.to_valuex.roles)));("RoleMappings",(Option.mapx.roleMappings~f:RoleMappingMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroleMappings=(Option.map~f:RoleMappingMap.of_xml)(Xml.childxml_arg0"RoleMappings")inletroles=RolesMap.of_xml(Xml.child_exn~context:context_xml_arg0"Roles")inletidentityPoolId=IdentityPoolId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityPoolId")inmake?roleMappings~roles~identityPoolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroleMappings=field_mapjson__"RoleMappings"RoleMappingMap.of_jsoninletroles=field_map_exnjson__"Roles"RolesMap.of_jsoninletidentityPoolId=field_map_exnjson__"IdentityPoolId"IdentityPoolId.of_jsoninmake?roleMappings~roles~identityPoolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input to the SetIdentityPoolRoles action."]moduleMergeDeveloperIdentitiesResponse=structtypenonrect={identityId:IdentityId.toption[@ocaml.doc"A unique identifier in the format REGION:GUID."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`ResourceConflictExceptionofResourceConflictException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?identityId=fun()->{identityId}leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_jsonjson)|"ResourceConflictException"->`ResourceConflictException(ResourceConflictException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_xmlxml)|"ResourceConflictException"->`ResourceConflictException(ResourceConflictException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotAuthorizedExceptione->`Assoc[("error",(`String"NotAuthorizedException"));("details",(NotAuthorizedException.to_jsone))]|`ResourceConflictExceptione->`Assoc[("error",(`String"ResourceConflictException"));("details",(ResourceConflictException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("IdentityId",(Option.mapx.identityId~f:IdentityId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidentityId=(Option.map~f:IdentityId.of_xml)(Xml.childxml_arg0"IdentityId")inmake?identityId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidentityId=field_mapjson__"IdentityId"IdentityId.of_jsoninmake?identityId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returned in response to a successful MergeDeveloperIdentities action."]moduleMergeDeveloperIdentitiesInput=structtypenonrect={sourceUserIdentifier:DeveloperUserIdentifier.t[@ocaml.doc"User identifier for the source user. The value should be a DeveloperUserIdentifier."];destinationUserIdentifier:DeveloperUserIdentifier.t[@ocaml.doc"User identifier for the destination user. The value should be a DeveloperUserIdentifier."];developerProviderName:DeveloperProviderName.t[@ocaml.doc"The \"domain\" by which Cognito will refer to your users. This is a (pseudo) domain name that you provide while creating an identity pool. This name acts as a placeholder that allows your backend and the Cognito service to communicate about the developer provider. For the DeveloperProviderName, you can use letters as well as period (.), underscore (_), and dash (-)."];identityPoolId:IdentityPoolId.t[@ocaml.doc"An identity pool ID in the format REGION:GUID."]}letcontext_="MergeDeveloperIdentitiesInput"letmake~sourceUserIdentifier=fun~destinationUserIdentifier->fun~developerProviderName->fun~identityPoolId->fun()->{sourceUserIdentifier;destinationUserIdentifier;developerProviderName;identityPoolId}letto_valuex=structure_to_value[("SourceUserIdentifier",(Some(DeveloperUserIdentifier.to_valuex.sourceUserIdentifier)));("DestinationUserIdentifier",(Some(DeveloperUserIdentifier.to_valuex.destinationUserIdentifier)));("DeveloperProviderName",(Some(DeveloperProviderName.to_valuex.developerProviderName)));("IdentityPoolId",(Some(IdentityPoolId.to_valuex.identityPoolId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidentityPoolId=IdentityPoolId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityPoolId")inletdeveloperProviderName=DeveloperProviderName.of_xml(Xml.child_exn~context:context_xml_arg0"DeveloperProviderName")inletdestinationUserIdentifier=DeveloperUserIdentifier.of_xml(Xml.child_exn~context:context_xml_arg0"DestinationUserIdentifier")inletsourceUserIdentifier=DeveloperUserIdentifier.of_xml(Xml.child_exn~context:context_xml_arg0"SourceUserIdentifier")inmake~identityPoolId~developerProviderName~destinationUserIdentifier~sourceUserIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidentityPoolId=field_map_exnjson__"IdentityPoolId"IdentityPoolId.of_jsoninletdeveloperProviderName=field_map_exnjson__"DeveloperProviderName"DeveloperProviderName.of_jsoninletdestinationUserIdentifier=field_map_exnjson__"DestinationUserIdentifier"DeveloperUserIdentifier.of_jsoninletsourceUserIdentifier=field_map_exnjson__"SourceUserIdentifier"DeveloperUserIdentifier.of_jsoninmake~identityPoolId~developerProviderName~destinationUserIdentifier~sourceUserIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input to the MergeDeveloperIdentities action."]moduleLookupDeveloperIdentityResponse=structtypenonrect={identityId:IdentityId.toption[@ocaml.doc"A unique identifier in the format REGION:GUID."];developerUserIdentifierList:DeveloperUserIdentifierList.toption[@ocaml.doc"This is the list of developer user identifiers associated with an identity ID. Cognito supports the association of multiple developer user identifiers with an identity ID."];nextToken:PaginationKey.toption[@ocaml.doc"A pagination token. The first call you make will have NextToken set to null. After that the service will return NextToken values as needed. For example, let's say you make a request with MaxResults set to 10, and there are 20 matches in the database. The service will return a pagination token as a part of the response. This token can be used to call the API again and get results starting from the 11th match."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`ResourceConflictExceptionofResourceConflictException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?identityId=fun?developerUserIdentifierList->fun?nextToken->fun()->{identityId;developerUserIdentifierList;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_jsonjson)|"ResourceConflictException"->`ResourceConflictException(ResourceConflictException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_xmlxml)|"ResourceConflictException"->`ResourceConflictException(ResourceConflictException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotAuthorizedExceptione->`Assoc[("error",(`String"NotAuthorizedException"));("details",(NotAuthorizedException.to_jsone))]|`ResourceConflictExceptione->`Assoc[("error",(`String"ResourceConflictException"));("details",(ResourceConflictException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("IdentityId",(Option.mapx.identityId~f:IdentityId.to_value));("DeveloperUserIdentifierList",(Option.mapx.developerUserIdentifierList~f:DeveloperUserIdentifierList.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationKey.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationKey.of_xml)(Xml.childxml_arg0"NextToken")inletdeveloperUserIdentifierList=(Option.map~f:DeveloperUserIdentifierList.of_xml)(Xml.childxml_arg0"DeveloperUserIdentifierList")inletidentityId=(Option.map~f:IdentityId.of_xml)(Xml.childxml_arg0"IdentityId")inmake?nextToken?developerUserIdentifierList?identityId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationKey.of_jsoninletdeveloperUserIdentifierList=field_mapjson__"DeveloperUserIdentifierList"DeveloperUserIdentifierList.of_jsoninletidentityId=field_mapjson__"IdentityId"IdentityId.of_jsoninmake?nextToken?developerUserIdentifierList?identityId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returned in response to a successful LookupDeveloperIdentity action."]moduleLookupDeveloperIdentityInput=structtypenonrect={identityPoolId:IdentityPoolId.t[@ocaml.doc"An identity pool ID in the format REGION:GUID."];identityId:IdentityId.toption[@ocaml.doc"A unique identifier in the format REGION:GUID."];developerUserIdentifier:DeveloperUserIdentifier.toption[@ocaml.doc"A unique ID used by your backend authentication process to identify a user. Typically, a developer identity provider would issue many developer user identifiers, in keeping with the number of users."];maxResults:QueryLimit.toption[@ocaml.doc"The maximum number of identities to return."];nextToken:PaginationKey.toption[@ocaml.doc"A pagination token. The first call you make will have NextToken set to null. After that the service will return NextToken values as needed. For example, let's say you make a request with MaxResults set to 10, and there are 20 matches in the database. The service will return a pagination token as a part of the response. This token can be used to call the API again and get results starting from the 11th match."]}letcontext_="LookupDeveloperIdentityInput"letmake?identityId=fun?developerUserIdentifier->fun?maxResults->fun?nextToken->fun~identityPoolId->fun()->{identityId;developerUserIdentifier;maxResults;nextToken;identityPoolId}letto_valuex=structure_to_value[("IdentityPoolId",(Some(IdentityPoolId.to_valuex.identityPoolId)));("IdentityId",(Option.mapx.identityId~f:IdentityId.to_value));("DeveloperUserIdentifier",(Option.mapx.developerUserIdentifier~f:DeveloperUserIdentifier.to_value));("MaxResults",(Option.mapx.maxResults~f:QueryLimit.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationKey.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationKey.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:QueryLimit.of_xml)(Xml.childxml_arg0"MaxResults")inletdeveloperUserIdentifier=(Option.map~f:DeveloperUserIdentifier.of_xml)(Xml.childxml_arg0"DeveloperUserIdentifier")inletidentityId=(Option.map~f:IdentityId.of_xml)(Xml.childxml_arg0"IdentityId")inletidentityPoolId=IdentityPoolId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityPoolId")inmake?nextToken?maxResults?developerUserIdentifier?identityId~identityPoolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationKey.of_jsoninletmaxResults=field_mapjson__"MaxResults"QueryLimit.of_jsoninletdeveloperUserIdentifier=field_mapjson__"DeveloperUserIdentifier"DeveloperUserIdentifier.of_jsoninletidentityId=field_mapjson__"IdentityId"IdentityId.of_jsoninletidentityPoolId=field_map_exnjson__"IdentityPoolId"IdentityPoolId.of_jsoninmake?nextToken?maxResults?developerUserIdentifier?identityId~identityPoolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input to the LookupDeveloperIdentityInput action."]moduleListTagsForResourceResponse=structtypenonrect={tags:IdentityPoolTagsType.toption[@ocaml.doc"The tags that are assigned to the identity pool."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun()->{tags}leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotAuthorizedExceptione->`Assoc[("error",(`String"NotAuthorizedException"));("details",(NotAuthorizedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Tags",(Option.mapx.tags~f:IdentityPoolTagsType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:IdentityPoolTagsType.of_xml)(Xml.childxml_arg0"Tags")inmake?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"IdentityPoolTagsType.of_jsoninmake?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the tags that are assigned to an Amazon Cognito identity pool. A tag is a label that you can apply to identity pools to categorize and manage them in different ways, such as by purpose, owner, environment, or other criteria. You can use this action up to 10 times per second, per account."]moduleListTagsForResourceInput=structtypenonrect={resourceArn:ARNString.t[@ocaml.doc"The Amazon Resource Name (ARN) of the identity pool that the tags are assigned to."]}letcontext_="ListTagsForResourceInput"letmake~resourceArn=fun()->{resourceArn}letto_valuex=structure_to_value[("ResourceArn",(Some(ARNString.to_valuex.resourceArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=ARNString.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inmake~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceArn=field_map_exnjson__"ResourceArn"ARNString.of_jsoninmake~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the tags that are assigned to an Amazon Cognito identity pool. A tag is a label that you can apply to identity pools to categorize and manage them in different ways, such as by purpose, owner, environment, or other criteria. You can use this action up to 10 times per second, per account."]moduleListIdentityPoolsResponse=structtypenonrect={identityPools:IdentityPoolsList.toption[@ocaml.doc"The identity pools returned by the ListIdentityPools action."];nextToken:PaginationKey.toption[@ocaml.doc"A pagination token."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?identityPools=fun?nextToken->fun()->{identityPools;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotAuthorizedExceptione->`Assoc[("error",(`String"NotAuthorizedException"));("details",(NotAuthorizedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("IdentityPools",(Option.mapx.identityPools~f:IdentityPoolsList.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationKey.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationKey.of_xml)(Xml.childxml_arg0"NextToken")inletidentityPools=(Option.map~f:IdentityPoolsList.of_xml)(Xml.childxml_arg0"IdentityPools")inmake?nextToken?identityPools()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationKey.of_jsoninletidentityPools=field_mapjson__"IdentityPools"IdentityPoolsList.of_jsoninmake?nextToken?identityPools()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The result of a successful ListIdentityPools action."]moduleListIdentityPoolsInput=structtypenonrect={maxResults:QueryLimit.t[@ocaml.doc"The maximum number of identities to return."];nextToken:PaginationKey.toption[@ocaml.doc"A pagination token."]}letcontext_="ListIdentityPoolsInput"letmake?nextToken=fun~maxResults->fun()->{nextToken;maxResults}letto_valuex=structure_to_value[("MaxResults",(Some(QueryLimit.to_valuex.maxResults)));("NextToken",(Option.mapx.nextToken~f:PaginationKey.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationKey.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=QueryLimit.of_xml(Xml.child_exn~context:context_xml_arg0"MaxResults")inmake?nextToken~maxResults()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationKey.of_jsoninletmaxResults=field_map_exnjson__"MaxResults"QueryLimit.of_jsoninmake?nextToken~maxResults()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input to the ListIdentityPools action."]moduleListIdentitiesResponse=structtypenonrect={identityPoolId:IdentityPoolId.toption[@ocaml.doc"An identity pool ID in the format REGION:GUID."];identities:IdentitiesList.toption[@ocaml.doc"An object containing a set of identities and associated mappings."];nextToken:PaginationKey.toption[@ocaml.doc"A pagination token."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?identityPoolId=fun?identities->fun?nextToken->fun()->{identityPoolId;identities;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotAuthorizedExceptione->`Assoc[("error",(`String"NotAuthorizedException"));("details",(NotAuthorizedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("IdentityPoolId",(Option.mapx.identityPoolId~f:IdentityPoolId.to_value));("Identities",(Option.mapx.identities~f:IdentitiesList.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationKey.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationKey.of_xml)(Xml.childxml_arg0"NextToken")inletidentities=(Option.map~f:IdentitiesList.of_xml)(Xml.childxml_arg0"Identities")inletidentityPoolId=(Option.map~f:IdentityPoolId.of_xml)(Xml.childxml_arg0"IdentityPoolId")inmake?nextToken?identities?identityPoolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationKey.of_jsoninletidentities=field_mapjson__"Identities"IdentitiesList.of_jsoninletidentityPoolId=field_mapjson__"IdentityPoolId"IdentityPoolId.of_jsoninmake?nextToken?identities?identityPoolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response to a ListIdentities request."]moduleListIdentitiesInput=structtypenonrect={identityPoolId:IdentityPoolId.t[@ocaml.doc"An identity pool ID in the format REGION:GUID."];maxResults:QueryLimit.t[@ocaml.doc"The maximum number of identities to return."];nextToken:PaginationKey.toption[@ocaml.doc"A pagination token."];hideDisabled:HideDisabled.toption[@ocaml.doc"An optional boolean parameter that allows you to hide disabled identities. If omitted, the ListIdentities API will include disabled identities in the response."]}letcontext_="ListIdentitiesInput"letmake?nextToken=fun?hideDisabled->fun~identityPoolId->fun~maxResults->fun()->{nextToken;hideDisabled;identityPoolId;maxResults}letto_valuex=structure_to_value[("IdentityPoolId",(Some(IdentityPoolId.to_valuex.identityPoolId)));("MaxResults",(Some(QueryLimit.to_valuex.maxResults)));("NextToken",(Option.mapx.nextToken~f:PaginationKey.to_value));("HideDisabled",(Option.mapx.hideDisabled~f:HideDisabled.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lethideDisabled=(Option.map~f:HideDisabled.of_xml)(Xml.childxml_arg0"HideDisabled")inletnextToken=(Option.map~f:PaginationKey.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=QueryLimit.of_xml(Xml.child_exn~context:context_xml_arg0"MaxResults")inletidentityPoolId=IdentityPoolId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityPoolId")inmake?hideDisabled?nextToken~maxResults~identityPoolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lethideDisabled=field_mapjson__"HideDisabled"HideDisabled.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationKey.of_jsoninletmaxResults=field_map_exnjson__"MaxResults"QueryLimit.of_jsoninletidentityPoolId=field_map_exnjson__"IdentityPoolId"IdentityPoolId.of_jsoninmake?hideDisabled?nextToken~maxResults~identityPoolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input to the ListIdentities action."]moduleIdentityPool=structtypenonrect={identityPoolId:IdentityPoolId.t[@ocaml.doc"An identity pool ID in the format REGION:GUID."];identityPoolName:IdentityPoolName.t[@ocaml.doc"A string that you provide."];allowUnauthenticatedIdentities:IdentityPoolUnauthenticated.t[@ocaml.doc"TRUE if the identity pool supports unauthenticated logins."];allowClassicFlow:ClassicFlow.toption[@ocaml.doc"Enables or disables the Basic (Classic) authentication flow. For more information, see Identity Pools (Federated Identities) Authentication Flow in the Amazon Cognito Developer Guide."];supportedLoginProviders:IdentityProviders.toption[@ocaml.doc"Optional key:value pairs mapping provider names to provider app IDs."];developerProviderName:DeveloperProviderName.toption[@ocaml.doc"The \"domain\" by which Cognito will refer to your users."];openIdConnectProviderARNs:OIDCProviderList.toption[@ocaml.doc"The ARNs of the OpenID Connect providers."];cognitoIdentityProviders:CognitoIdentityProviderList.toption[@ocaml.doc"A list representing an Amazon Cognito user pool and its client ID."];samlProviderARNs:SAMLProviderList.toption[@ocaml.doc"An array of Amazon Resource Names (ARNs) of the SAML provider for your identity pool."];identityPoolTags:IdentityPoolTagsType.toption[@ocaml.doc"The tags that are assigned to the identity pool. A tag is a label that you can apply to identity pools to categorize and manage them in different ways, such as by purpose, owner, environment, or other criteria."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`LimitExceededExceptionofLimitExceededException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`ResourceConflictExceptionofResourceConflictException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letcontext_="IdentityPool"letmake?allowClassicFlow=fun?supportedLoginProviders->fun?developerProviderName->fun?openIdConnectProviderARNs->fun?cognitoIdentityProviders->fun?samlProviderARNs->fun?identityPoolTags->fun~identityPoolId->fun~identityPoolName->fun~allowUnauthenticatedIdentities->fun()->{allowClassicFlow;supportedLoginProviders;developerProviderName;openIdConnectProviderARNs;cognitoIdentityProviders;samlProviderARNs;identityPoolTags;identityPoolId;identityPoolName;allowUnauthenticatedIdentities}leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_jsonjson)|"ResourceConflictException"->`ResourceConflictException(ResourceConflictException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_xmlxml)|"ResourceConflictException"->`ResourceConflictException(ResourceConflictException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`LimitExceededExceptione->`Assoc[("error",(`String"LimitExceededException"));("details",(LimitExceededException.to_jsone))]|`NotAuthorizedExceptione->`Assoc[("error",(`String"NotAuthorizedException"));("details",(NotAuthorizedException.to_jsone))]|`ResourceConflictExceptione->`Assoc[("error",(`String"ResourceConflictException"));("details",(ResourceConflictException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("IdentityPoolId",(Some(IdentityPoolId.to_valuex.identityPoolId)));("IdentityPoolName",(Some(IdentityPoolName.to_valuex.identityPoolName)));("AllowUnauthenticatedIdentities",(Some(IdentityPoolUnauthenticated.to_valuex.allowUnauthenticatedIdentities)));("AllowClassicFlow",(Option.mapx.allowClassicFlow~f:ClassicFlow.to_value));("SupportedLoginProviders",(Option.mapx.supportedLoginProviders~f:IdentityProviders.to_value));("DeveloperProviderName",(Option.mapx.developerProviderName~f:DeveloperProviderName.to_value));("OpenIdConnectProviderARNs",(Option.mapx.openIdConnectProviderARNs~f:OIDCProviderList.to_value));("CognitoIdentityProviders",(Option.mapx.cognitoIdentityProviders~f:CognitoIdentityProviderList.to_value));("SamlProviderARNs",(Option.mapx.samlProviderARNs~f:SAMLProviderList.to_value));("IdentityPoolTags",(Option.mapx.identityPoolTags~f:IdentityPoolTagsType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidentityPoolTags=(Option.map~f:IdentityPoolTagsType.of_xml)(Xml.childxml_arg0"IdentityPoolTags")inletsamlProviderARNs=(Option.map~f:SAMLProviderList.of_xml)(Xml.childxml_arg0"SamlProviderARNs")inletcognitoIdentityProviders=(Option.map~f:CognitoIdentityProviderList.of_xml)(Xml.childxml_arg0"CognitoIdentityProviders")inletopenIdConnectProviderARNs=(Option.map~f:OIDCProviderList.of_xml)(Xml.childxml_arg0"OpenIdConnectProviderARNs")inletdeveloperProviderName=(Option.map~f:DeveloperProviderName.of_xml)(Xml.childxml_arg0"DeveloperProviderName")inletsupportedLoginProviders=(Option.map~f:IdentityProviders.of_xml)(Xml.childxml_arg0"SupportedLoginProviders")inletallowClassicFlow=(Option.map~f:ClassicFlow.of_xml)(Xml.childxml_arg0"AllowClassicFlow")inletallowUnauthenticatedIdentities=IdentityPoolUnauthenticated.of_xml(Xml.child_exn~context:context_xml_arg0"AllowUnauthenticatedIdentities")inletidentityPoolName=IdentityPoolName.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityPoolName")inletidentityPoolId=IdentityPoolId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityPoolId")inmake?identityPoolTags?samlProviderARNs?cognitoIdentityProviders?openIdConnectProviderARNs?developerProviderName?supportedLoginProviders?allowClassicFlow~allowUnauthenticatedIdentities~identityPoolName~identityPoolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidentityPoolTags=field_mapjson__"IdentityPoolTags"IdentityPoolTagsType.of_jsoninletsamlProviderARNs=field_mapjson__"SamlProviderARNs"SAMLProviderList.of_jsoninletcognitoIdentityProviders=field_mapjson__"CognitoIdentityProviders"CognitoIdentityProviderList.of_jsoninletopenIdConnectProviderARNs=field_mapjson__"OpenIdConnectProviderARNs"OIDCProviderList.of_jsoninletdeveloperProviderName=field_mapjson__"DeveloperProviderName"DeveloperProviderName.of_jsoninletsupportedLoginProviders=field_mapjson__"SupportedLoginProviders"IdentityProviders.of_jsoninletallowClassicFlow=field_mapjson__"AllowClassicFlow"ClassicFlow.of_jsoninletallowUnauthenticatedIdentities=field_map_exnjson__"AllowUnauthenticatedIdentities"IdentityPoolUnauthenticated.of_jsoninletidentityPoolName=field_map_exnjson__"IdentityPoolName"IdentityPoolName.of_jsoninletidentityPoolId=field_map_exnjson__"IdentityPoolId"IdentityPoolId.of_jsoninmake?identityPoolTags?samlProviderARNs?cognitoIdentityProviders?openIdConnectProviderARNs?developerProviderName?supportedLoginProviders?allowClassicFlow~allowUnauthenticatedIdentities~identityPoolName~identityPoolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object representing an Amazon Cognito identity pool."]moduleGetPrincipalTagAttributeMapResponse=structtypenonrect={identityPoolId:IdentityPoolId.toption[@ocaml.doc"You can use this operation to get the ID of the Identity Pool you setup attribute mappings for."];identityProviderName:IdentityProviderName.toption[@ocaml.doc"You can use this operation to get the provider name."];useDefaults:UseDefaults.toption[@ocaml.doc"You can use this operation to list"];principalTags:PrincipalTags.toption[@ocaml.doc"You can use this operation to add principal tags. The PrincipalTagsoperation enables you to reference user attributes in your IAM permissions policy."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?identityPoolId=fun?identityProviderName->fun?useDefaults->fun?principalTags->fun()->{identityPoolId;identityProviderName;useDefaults;principalTags}leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotAuthorizedExceptione->`Assoc[("error",(`String"NotAuthorizedException"));("details",(NotAuthorizedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("IdentityPoolId",(Option.mapx.identityPoolId~f:IdentityPoolId.to_value));("IdentityProviderName",(Option.mapx.identityProviderName~f:IdentityProviderName.to_value));("UseDefaults",(Option.mapx.useDefaults~f:UseDefaults.to_value));("PrincipalTags",(Option.mapx.principalTags~f:PrincipalTags.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprincipalTags=(Option.map~f:PrincipalTags.of_xml)(Xml.childxml_arg0"PrincipalTags")inletuseDefaults=(Option.map~f:UseDefaults.of_xml)(Xml.childxml_arg0"UseDefaults")inletidentityProviderName=(Option.map~f:IdentityProviderName.of_xml)(Xml.childxml_arg0"IdentityProviderName")inletidentityPoolId=(Option.map~f:IdentityPoolId.of_xml)(Xml.childxml_arg0"IdentityPoolId")inmake?principalTags?useDefaults?identityProviderName?identityPoolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprincipalTags=field_mapjson__"PrincipalTags"PrincipalTags.of_jsoninletuseDefaults=field_mapjson__"UseDefaults"UseDefaults.of_jsoninletidentityProviderName=field_mapjson__"IdentityProviderName"IdentityProviderName.of_jsoninletidentityPoolId=field_mapjson__"IdentityPoolId"IdentityPoolId.of_jsoninmake?principalTags?useDefaults?identityProviderName?identityPoolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Use GetPrincipalTagAttributeMap to list all mappings between PrincipalTags and user attributes."]moduleGetPrincipalTagAttributeMapInput=structtypenonrect={identityPoolId:IdentityPoolId.t[@ocaml.doc"You can use this operation to get the ID of the Identity Pool you setup attribute mappings for."];identityProviderName:IdentityProviderName.t[@ocaml.doc"You can use this operation to get the provider name."]}letcontext_="GetPrincipalTagAttributeMapInput"letmake~identityPoolId=fun~identityProviderName->fun()->{identityPoolId;identityProviderName}letto_valuex=structure_to_value[("IdentityPoolId",(Some(IdentityPoolId.to_valuex.identityPoolId)));("IdentityProviderName",(Some(IdentityProviderName.to_valuex.identityProviderName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidentityProviderName=IdentityProviderName.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityProviderName")inletidentityPoolId=IdentityPoolId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityPoolId")inmake~identityProviderName~identityPoolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidentityProviderName=field_map_exnjson__"IdentityProviderName"IdentityProviderName.of_jsoninletidentityPoolId=field_map_exnjson__"IdentityPoolId"IdentityPoolId.of_jsoninmake~identityProviderName~identityPoolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Use GetPrincipalTagAttributeMap to list all mappings between PrincipalTags and user attributes."]moduleGetOpenIdTokenResponse=structtypenonrect={identityId:IdentityId.toption[@ocaml.doc"A unique identifier in the format REGION:GUID. Note that the IdentityId returned may not match the one passed on input."];token:OIDCToken.toption[@ocaml.doc"An OpenID token, valid for 10 minutes."]}typenonrecerror=[`ExternalServiceExceptionofExternalServiceException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`ResourceConflictExceptionofResourceConflictException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?identityId=fun?token->fun()->{identityId;token}leterror_of_jsonnamejson=matchnamewith|"ExternalServiceException"->`ExternalServiceException(ExternalServiceException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_jsonjson)|"ResourceConflictException"->`ResourceConflictException(ResourceConflictException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ExternalServiceException"->`ExternalServiceException(ExternalServiceException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_xmlxml)|"ResourceConflictException"->`ResourceConflictException(ResourceConflictException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ExternalServiceExceptione->`Assoc[("error",(`String"ExternalServiceException"));("details",(ExternalServiceException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotAuthorizedExceptione->`Assoc[("error",(`String"NotAuthorizedException"));("details",(NotAuthorizedException.to_jsone))]|`ResourceConflictExceptione->`Assoc[("error",(`String"ResourceConflictException"));("details",(ResourceConflictException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("IdentityId",(Option.mapx.identityId~f:IdentityId.to_value));("Token",(Option.mapx.token~f:OIDCToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettoken=(Option.map~f:OIDCToken.of_xml)(Xml.childxml_arg0"Token")inletidentityId=(Option.map~f:IdentityId.of_xml)(Xml.childxml_arg0"IdentityId")inmake?token?identityId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettoken=field_mapjson__"Token"OIDCToken.of_jsoninletidentityId=field_mapjson__"IdentityId"IdentityId.of_jsoninmake?token?identityId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returned in response to a successful GetOpenIdToken request."]moduleGetOpenIdTokenInput=structtypenonrect={identityId:IdentityId.t[@ocaml.doc"A unique identifier in the format REGION:GUID."];logins:LoginsMap.toption[@ocaml.doc"A set of optional name-value pairs that map provider names to provider tokens. When using graph.facebook.com and www.amazon.com, supply the access_token returned from the provider's authflow. For accounts.google.com, an Amazon Cognito user pool provider, or any other OpenID Connect provider, always include the id_token."]}letcontext_="GetOpenIdTokenInput"letmake?logins=fun~identityId->fun()->{logins;identityId}letto_valuex=structure_to_value[("IdentityId",(Some(IdentityId.to_valuex.identityId)));("Logins",(Option.mapx.logins~f:LoginsMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlogins=(Option.map~f:LoginsMap.of_xml)(Xml.childxml_arg0"Logins")inletidentityId=IdentityId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityId")inmake?logins~identityId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlogins=field_mapjson__"Logins"LoginsMap.of_jsoninletidentityId=field_map_exnjson__"IdentityId"IdentityId.of_jsoninmake?logins~identityId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input to the GetOpenIdToken action."]moduleGetOpenIdTokenForDeveloperIdentityResponse=structtypenonrect={identityId:IdentityId.toption[@ocaml.doc"A unique identifier in the format REGION:GUID."];token:OIDCToken.toption[@ocaml.doc"An OpenID token."]}typenonrecerror=[`DeveloperUserAlreadyRegisteredExceptionofDeveloperUserAlreadyRegisteredException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`ResourceConflictExceptionofResourceConflictException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?identityId=fun?token->fun()->{identityId;token}leterror_of_jsonnamejson=matchnamewith|"DeveloperUserAlreadyRegisteredException"->`DeveloperUserAlreadyRegisteredException(DeveloperUserAlreadyRegisteredException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_jsonjson)|"ResourceConflictException"->`ResourceConflictException(ResourceConflictException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"DeveloperUserAlreadyRegisteredException"->`DeveloperUserAlreadyRegisteredException(DeveloperUserAlreadyRegisteredException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_xmlxml)|"ResourceConflictException"->`ResourceConflictException(ResourceConflictException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`DeveloperUserAlreadyRegisteredExceptione->`Assoc[("error",(`String"DeveloperUserAlreadyRegisteredException"));("details",(DeveloperUserAlreadyRegisteredException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotAuthorizedExceptione->`Assoc[("error",(`String"NotAuthorizedException"));("details",(NotAuthorizedException.to_jsone))]|`ResourceConflictExceptione->`Assoc[("error",(`String"ResourceConflictException"));("details",(ResourceConflictException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("IdentityId",(Option.mapx.identityId~f:IdentityId.to_value));("Token",(Option.mapx.token~f:OIDCToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettoken=(Option.map~f:OIDCToken.of_xml)(Xml.childxml_arg0"Token")inletidentityId=(Option.map~f:IdentityId.of_xml)(Xml.childxml_arg0"IdentityId")inmake?token?identityId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettoken=field_mapjson__"Token"OIDCToken.of_jsoninletidentityId=field_mapjson__"IdentityId"IdentityId.of_jsoninmake?token?identityId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returned in response to a successful GetOpenIdTokenForDeveloperIdentity request."]moduleGetOpenIdTokenForDeveloperIdentityInput=structtypenonrect={identityPoolId:IdentityPoolId.t[@ocaml.doc"An identity pool ID in the format REGION:GUID."];identityId:IdentityId.toption[@ocaml.doc"A unique identifier in the format REGION:GUID."];logins:LoginsMap.t[@ocaml.doc"A set of optional name-value pairs that map provider names to provider tokens. Each name-value pair represents a user from a public provider or developer provider. If the user is from a developer provider, the name-value pair will follow the syntax \"developer_provider_name\": \"developer_user_identifier\". The developer provider is the \"domain\" by which Cognito will refer to your users; you provided this domain while creating/updating the identity pool. The developer user identifier is an identifier from your backend that uniquely identifies a user. When you create an identity pool, you can specify the supported logins."];principalTags:PrincipalTags.toption[@ocaml.doc"Use this operation to configure attribute mappings for custom providers."];tokenDuration:TokenDuration.toption[@ocaml.doc"The expiration time of the token, in seconds. You can specify a custom expiration time for the token so that you can cache it. If you don't provide an expiration time, the token is valid for 15 minutes. You can exchange the token with Amazon STS for temporary Amazon Web Services credentials, which are valid for a maximum of one hour. The maximum token duration you can set is 24 hours. You should take care in setting the expiration time for a token, as there are significant security implications: an attacker could use a leaked token to access your Amazon Web Services resources for the token's duration. Please provide for a small grace period, usually no more than 5 minutes, to account for clock skew."]}letcontext_="GetOpenIdTokenForDeveloperIdentityInput"letmake?identityId=fun?principalTags->fun?tokenDuration->fun~identityPoolId->fun~logins->fun()->{identityId;principalTags;tokenDuration;identityPoolId;logins}letto_valuex=structure_to_value[("IdentityPoolId",(Some(IdentityPoolId.to_valuex.identityPoolId)));("IdentityId",(Option.mapx.identityId~f:IdentityId.to_value));("Logins",(Some(LoginsMap.to_valuex.logins)));("PrincipalTags",(Option.mapx.principalTags~f:PrincipalTags.to_value));("TokenDuration",(Option.mapx.tokenDuration~f:TokenDuration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettokenDuration=(Option.map~f:TokenDuration.of_xml)(Xml.childxml_arg0"TokenDuration")inletprincipalTags=(Option.map~f:PrincipalTags.of_xml)(Xml.childxml_arg0"PrincipalTags")inletlogins=LoginsMap.of_xml(Xml.child_exn~context:context_xml_arg0"Logins")inletidentityId=(Option.map~f:IdentityId.of_xml)(Xml.childxml_arg0"IdentityId")inletidentityPoolId=IdentityPoolId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityPoolId")inmake?tokenDuration?principalTags~logins?identityId~identityPoolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettokenDuration=field_mapjson__"TokenDuration"TokenDuration.of_jsoninletprincipalTags=field_mapjson__"PrincipalTags"PrincipalTags.of_jsoninletlogins=field_map_exnjson__"Logins"LoginsMap.of_jsoninletidentityId=field_mapjson__"IdentityId"IdentityId.of_jsoninletidentityPoolId=field_map_exnjson__"IdentityPoolId"IdentityPoolId.of_jsoninmake?tokenDuration?principalTags~logins?identityId~identityPoolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input to the GetOpenIdTokenForDeveloperIdentity action."]moduleGetIdentityPoolRolesResponse=structtypenonrect={identityPoolId:IdentityPoolId.toption[@ocaml.doc"An identity pool ID in the format REGION:GUID."];roles:RolesMap.toption[@ocaml.doc"The map of roles associated with this pool. Currently only authenticated and unauthenticated roles are supported."];roleMappings:RoleMappingMap.toption[@ocaml.doc"How users for a specific identity provider are to mapped to roles. This is a String-to-RoleMapping object map. The string identifies the identity provider, for example, graph.facebook.com or cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`ResourceConflictExceptionofResourceConflictException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?identityPoolId=fun?roles->fun?roleMappings->fun()->{identityPoolId;roles;roleMappings}leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_jsonjson)|"ResourceConflictException"->`ResourceConflictException(ResourceConflictException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_xmlxml)|"ResourceConflictException"->`ResourceConflictException(ResourceConflictException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotAuthorizedExceptione->`Assoc[("error",(`String"NotAuthorizedException"));("details",(NotAuthorizedException.to_jsone))]|`ResourceConflictExceptione->`Assoc[("error",(`String"ResourceConflictException"));("details",(ResourceConflictException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("IdentityPoolId",(Option.mapx.identityPoolId~f:IdentityPoolId.to_value));("Roles",(Option.mapx.roles~f:RolesMap.to_value));("RoleMappings",(Option.mapx.roleMappings~f:RoleMappingMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroleMappings=(Option.map~f:RoleMappingMap.of_xml)(Xml.childxml_arg0"RoleMappings")inletroles=(Option.map~f:RolesMap.of_xml)(Xml.childxml_arg0"Roles")inletidentityPoolId=(Option.map~f:IdentityPoolId.of_xml)(Xml.childxml_arg0"IdentityPoolId")inmake?roleMappings?roles?identityPoolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroleMappings=field_mapjson__"RoleMappings"RoleMappingMap.of_jsoninletroles=field_mapjson__"Roles"RolesMap.of_jsoninletidentityPoolId=field_mapjson__"IdentityPoolId"IdentityPoolId.of_jsoninmake?roleMappings?roles?identityPoolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returned in response to a successful GetIdentityPoolRoles operation."]moduleGetIdentityPoolRolesInput=structtypenonrect={identityPoolId:IdentityPoolId.t[@ocaml.doc"An identity pool ID in the format REGION:GUID."]}letcontext_="GetIdentityPoolRolesInput"letmake~identityPoolId=fun()->{identityPoolId}letto_valuex=structure_to_value[("IdentityPoolId",(Some(IdentityPoolId.to_valuex.identityPoolId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidentityPoolId=IdentityPoolId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityPoolId")inmake~identityPoolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidentityPoolId=field_map_exnjson__"IdentityPoolId"IdentityPoolId.of_jsoninmake~identityPoolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input to the GetIdentityPoolRoles action."]moduleGetIdResponse=structtypenonrect={identityId:IdentityId.toption[@ocaml.doc"A unique identifier in the format REGION:GUID."]}typenonrecerror=[`ExternalServiceExceptionofExternalServiceException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`LimitExceededExceptionofLimitExceededException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`ResourceConflictExceptionofResourceConflictException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?identityId=fun()->{identityId}leterror_of_jsonnamejson=matchnamewith|"ExternalServiceException"->`ExternalServiceException(ExternalServiceException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_jsonjson)|"ResourceConflictException"->`ResourceConflictException(ResourceConflictException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ExternalServiceException"->`ExternalServiceException(ExternalServiceException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_xmlxml)|"ResourceConflictException"->`ResourceConflictException(ResourceConflictException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ExternalServiceExceptione->`Assoc[("error",(`String"ExternalServiceException"));("details",(ExternalServiceException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`LimitExceededExceptione->`Assoc[("error",(`String"LimitExceededException"));("details",(LimitExceededException.to_jsone))]|`NotAuthorizedExceptione->`Assoc[("error",(`String"NotAuthorizedException"));("details",(NotAuthorizedException.to_jsone))]|`ResourceConflictExceptione->`Assoc[("error",(`String"ResourceConflictException"));("details",(ResourceConflictException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("IdentityId",(Option.mapx.identityId~f:IdentityId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidentityId=(Option.map~f:IdentityId.of_xml)(Xml.childxml_arg0"IdentityId")inmake?identityId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidentityId=field_mapjson__"IdentityId"IdentityId.of_jsoninmake?identityId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returned in response to a GetId request."]moduleGetIdInput=structtypenonrect={accountId:AccountId.toption[@ocaml.doc"A standard Amazon Web Services account ID (9+ digits)."];identityPoolId:IdentityPoolId.t[@ocaml.doc"An identity pool ID in the format REGION:GUID."];logins:LoginsMap.toption[@ocaml.doc"A set of optional name-value pairs that map provider names to provider tokens. The available provider names for Logins are as follows: Facebook: graph.facebook.com Amazon Cognito user pool: cognito-idp.<region>.amazonaws.com/<YOUR_USER_POOL_ID>, for example, cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789. Google: accounts.google.com Amazon: www.amazon.com Twitter: api.twitter.com Digits: www.digits.com"]}letcontext_="GetIdInput"letmake?accountId=fun?logins->fun~identityPoolId->fun()->{accountId;logins;identityPoolId}letto_valuex=structure_to_value[("AccountId",(Option.mapx.accountId~f:AccountId.to_value));("IdentityPoolId",(Some(IdentityPoolId.to_valuex.identityPoolId)));("Logins",(Option.mapx.logins~f:LoginsMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlogins=(Option.map~f:LoginsMap.of_xml)(Xml.childxml_arg0"Logins")inletidentityPoolId=IdentityPoolId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityPoolId")inletaccountId=(Option.map~f:AccountId.of_xml)(Xml.childxml_arg0"AccountId")inmake?logins~identityPoolId?accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlogins=field_mapjson__"Logins"LoginsMap.of_jsoninletidentityPoolId=field_map_exnjson__"IdentityPoolId"IdentityPoolId.of_jsoninletaccountId=field_mapjson__"AccountId"AccountId.of_jsoninmake?logins~identityPoolId?accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input to the GetId action."]moduleGetCredentialsForIdentityResponse=structtypenonrect={identityId:IdentityId.toption[@ocaml.doc"A unique identifier in the format REGION:GUID."];credentials:Credentials.toption[@ocaml.doc"Credentials for the provided identity ID."]}typenonrecerror=[`ExternalServiceExceptionofExternalServiceException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidIdentityPoolConfigurationExceptionofInvalidIdentityPoolConfigurationException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`ResourceConflictExceptionofResourceConflictException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?identityId=fun?credentials->fun()->{identityId;credentials}leterror_of_jsonnamejson=matchnamewith|"ExternalServiceException"->`ExternalServiceException(ExternalServiceException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidIdentityPoolConfigurationException"->`InvalidIdentityPoolConfigurationException(InvalidIdentityPoolConfigurationException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_jsonjson)|"ResourceConflictException"->`ResourceConflictException(ResourceConflictException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ExternalServiceException"->`ExternalServiceException(ExternalServiceException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidIdentityPoolConfigurationException"->`InvalidIdentityPoolConfigurationException(InvalidIdentityPoolConfigurationException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_xmlxml)|"ResourceConflictException"->`ResourceConflictException(ResourceConflictException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ExternalServiceExceptione->`Assoc[("error",(`String"ExternalServiceException"));("details",(ExternalServiceException.to_jsone))]|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidIdentityPoolConfigurationExceptione->`Assoc[("error",(`String"InvalidIdentityPoolConfigurationException"));("details",(InvalidIdentityPoolConfigurationException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`NotAuthorizedExceptione->`Assoc[("error",(`String"NotAuthorizedException"));("details",(NotAuthorizedException.to_jsone))]|`ResourceConflictExceptione->`Assoc[("error",(`String"ResourceConflictException"));("details",(ResourceConflictException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("IdentityId",(Option.mapx.identityId~f:IdentityId.to_value));("Credentials",(Option.mapx.credentials~f:Credentials.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcredentials=(Option.map~f:Credentials.of_xml)(Xml.childxml_arg0"Credentials")inletidentityId=(Option.map~f:IdentityId.of_xml)(Xml.childxml_arg0"IdentityId")inmake?credentials?identityId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcredentials=field_mapjson__"Credentials"Credentials.of_jsoninletidentityId=field_mapjson__"IdentityId"IdentityId.of_jsoninmake?credentials?identityId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returned in response to a successful GetCredentialsForIdentity operation."]moduleGetCredentialsForIdentityInput=structtypenonrect={identityId:IdentityId.t[@ocaml.doc"A unique identifier in the format REGION:GUID."];logins:LoginsMap.toption[@ocaml.doc"A set of optional name-value pairs that map provider names to provider tokens. The name-value pair will follow the syntax \"provider_name\": \"provider_user_identifier\". Logins should not be specified when trying to get credentials for an unauthenticated identity. The Logins parameter is required when using identities associated with external identity providers such as Facebook. For examples of Logins maps, see the code examples in the External Identity Providers section of the Amazon Cognito Developer Guide."];customRoleArn:ARNString.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the role to be assumed when multiple roles were received in the token from the identity provider. For example, a SAML-based identity provider. This parameter is optional for identity providers that do not support role customization."]}letcontext_="GetCredentialsForIdentityInput"letmake?logins=fun?customRoleArn->fun~identityId->fun()->{logins;customRoleArn;identityId}letto_valuex=structure_to_value[("IdentityId",(Some(IdentityId.to_valuex.identityId)));("Logins",(Option.mapx.logins~f:LoginsMap.to_value));("CustomRoleArn",(Option.mapx.customRoleArn~f:ARNString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcustomRoleArn=(Option.map~f:ARNString.of_xml)(Xml.childxml_arg0"CustomRoleArn")inletlogins=(Option.map~f:LoginsMap.of_xml)(Xml.childxml_arg0"Logins")inletidentityId=IdentityId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityId")inmake?customRoleArn?logins~identityId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcustomRoleArn=field_mapjson__"CustomRoleArn"ARNString.of_jsoninletlogins=field_mapjson__"Logins"LoginsMap.of_jsoninletidentityId=field_map_exnjson__"IdentityId"IdentityId.of_jsoninmake?customRoleArn?logins~identityId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input to the GetCredentialsForIdentity action."]moduleDescribeIdentityPoolInput=structtypenonrect={identityPoolId:IdentityPoolId.t[@ocaml.doc"An identity pool ID in the format REGION:GUID."]}letcontext_="DescribeIdentityPoolInput"letmake~identityPoolId=fun()->{identityPoolId}letto_valuex=structure_to_value[("IdentityPoolId",(Some(IdentityPoolId.to_valuex.identityPoolId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidentityPoolId=IdentityPoolId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityPoolId")inmake~identityPoolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidentityPoolId=field_map_exnjson__"IdentityPoolId"IdentityPoolId.of_jsoninmake~identityPoolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input to the DescribeIdentityPool action."]moduleDescribeIdentityInput=structtypenonrect={identityId:IdentityId.t[@ocaml.doc"A unique identifier in the format REGION:GUID."]}letcontext_="DescribeIdentityInput"letmake~identityId=fun()->{identityId}letto_valuex=structure_to_value[("IdentityId",(Some(IdentityId.to_valuex.identityId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidentityId=IdentityId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityId")inmake~identityId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidentityId=field_map_exnjson__"IdentityId"IdentityId.of_jsoninmake~identityId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input to the DescribeIdentity action."]moduleDeleteIdentityPoolInput=structtypenonrect={identityPoolId:IdentityPoolId.t[@ocaml.doc"An identity pool ID in the format REGION:GUID."]}letcontext_="DeleteIdentityPoolInput"letmake~identityPoolId=fun()->{identityPoolId}letto_valuex=structure_to_value[("IdentityPoolId",(Some(IdentityPoolId.to_valuex.identityPoolId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidentityPoolId=IdentityPoolId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityPoolId")inmake~identityPoolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidentityPoolId=field_map_exnjson__"IdentityPoolId"IdentityPoolId.of_jsoninmake~identityPoolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input to the DeleteIdentityPool action."]moduleDeleteIdentitiesResponse=structtypenonrect={unprocessedIdentityIds:UnprocessedIdentityIdList.toption[@ocaml.doc"An array of UnprocessedIdentityId objects, each of which contains an ErrorCode and IdentityId."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?unprocessedIdentityIds=fun()->{unprocessedIdentityIds}leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("UnprocessedIdentityIds",(Option.mapx.unprocessedIdentityIds~f:UnprocessedIdentityIdList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letunprocessedIdentityIds=(Option.map~f:UnprocessedIdentityIdList.of_xml)(Xml.childxml_arg0"UnprocessedIdentityIds")inmake?unprocessedIdentityIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letunprocessedIdentityIds=field_mapjson__"UnprocessedIdentityIds"UnprocessedIdentityIdList.of_jsoninmake?unprocessedIdentityIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returned in response to a successful DeleteIdentities operation."]moduleDeleteIdentitiesInput=structtypenonrect={identityIdsToDelete:IdentityIdList.t[@ocaml.doc"A list of 1-60 identities that you want to delete."]}letcontext_="DeleteIdentitiesInput"letmake~identityIdsToDelete=fun()->{identityIdsToDelete}letto_valuex=structure_to_value[("IdentityIdsToDelete",(Some(IdentityIdList.to_valuex.identityIdsToDelete)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidentityIdsToDelete=IdentityIdList.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityIdsToDelete")inmake~identityIdsToDelete()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidentityIdsToDelete=field_map_exnjson__"IdentityIdsToDelete"IdentityIdList.of_jsoninmake~identityIdsToDelete()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input to the DeleteIdentities action."]moduleCreateIdentityPoolInput=structtypenonrect={identityPoolName:IdentityPoolName.t[@ocaml.doc"A string that you provide."];allowUnauthenticatedIdentities:IdentityPoolUnauthenticated.t[@ocaml.doc"TRUE if the identity pool supports unauthenticated logins."];allowClassicFlow:ClassicFlow.toption[@ocaml.doc"Enables or disables the Basic (Classic) authentication flow. For more information, see Identity Pools (Federated Identities) Authentication Flow in the Amazon Cognito Developer Guide."];supportedLoginProviders:IdentityProviders.toption[@ocaml.doc"Optional key:value pairs mapping provider names to provider app IDs."];developerProviderName:DeveloperProviderName.toption[@ocaml.doc"The \"domain\" by which Cognito will refer to your users. This name acts as a placeholder that allows your backend and the Cognito service to communicate about the developer provider. For the DeveloperProviderName, you can use letters as well as period (.), underscore (_), and dash (-). Once you have set a developer provider name, you cannot change it. Please take care in setting this parameter."];openIdConnectProviderARNs:OIDCProviderList.toption[@ocaml.doc"The Amazon Resource Names (ARN) of the OpenID Connect providers."];cognitoIdentityProviders:CognitoIdentityProviderList.toption[@ocaml.doc"An array of Amazon Cognito user pools and their client IDs."];samlProviderARNs:SAMLProviderList.toption[@ocaml.doc"An array of Amazon Resource Names (ARNs) of the SAML provider for your identity pool."];identityPoolTags:IdentityPoolTagsType.toption[@ocaml.doc"Tags to assign to the identity pool. A tag is a label that you can apply to identity pools to categorize and manage them in different ways, such as by purpose, owner, environment, or other criteria."]}letcontext_="CreateIdentityPoolInput"letmake?allowClassicFlow=fun?supportedLoginProviders->fun?developerProviderName->fun?openIdConnectProviderARNs->fun?cognitoIdentityProviders->fun?samlProviderARNs->fun?identityPoolTags->fun~identityPoolName->fun~allowUnauthenticatedIdentities->fun()->{allowClassicFlow;supportedLoginProviders;developerProviderName;openIdConnectProviderARNs;cognitoIdentityProviders;samlProviderARNs;identityPoolTags;identityPoolName;allowUnauthenticatedIdentities}letto_valuex=structure_to_value[("IdentityPoolName",(Some(IdentityPoolName.to_valuex.identityPoolName)));("AllowUnauthenticatedIdentities",(Some(IdentityPoolUnauthenticated.to_valuex.allowUnauthenticatedIdentities)));("AllowClassicFlow",(Option.mapx.allowClassicFlow~f:ClassicFlow.to_value));("SupportedLoginProviders",(Option.mapx.supportedLoginProviders~f:IdentityProviders.to_value));("DeveloperProviderName",(Option.mapx.developerProviderName~f:DeveloperProviderName.to_value));("OpenIdConnectProviderARNs",(Option.mapx.openIdConnectProviderARNs~f:OIDCProviderList.to_value));("CognitoIdentityProviders",(Option.mapx.cognitoIdentityProviders~f:CognitoIdentityProviderList.to_value));("SamlProviderARNs",(Option.mapx.samlProviderARNs~f:SAMLProviderList.to_value));("IdentityPoolTags",(Option.mapx.identityPoolTags~f:IdentityPoolTagsType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidentityPoolTags=(Option.map~f:IdentityPoolTagsType.of_xml)(Xml.childxml_arg0"IdentityPoolTags")inletsamlProviderARNs=(Option.map~f:SAMLProviderList.of_xml)(Xml.childxml_arg0"SamlProviderARNs")inletcognitoIdentityProviders=(Option.map~f:CognitoIdentityProviderList.of_xml)(Xml.childxml_arg0"CognitoIdentityProviders")inletopenIdConnectProviderARNs=(Option.map~f:OIDCProviderList.of_xml)(Xml.childxml_arg0"OpenIdConnectProviderARNs")inletdeveloperProviderName=(Option.map~f:DeveloperProviderName.of_xml)(Xml.childxml_arg0"DeveloperProviderName")inletsupportedLoginProviders=(Option.map~f:IdentityProviders.of_xml)(Xml.childxml_arg0"SupportedLoginProviders")inletallowClassicFlow=(Option.map~f:ClassicFlow.of_xml)(Xml.childxml_arg0"AllowClassicFlow")inletallowUnauthenticatedIdentities=IdentityPoolUnauthenticated.of_xml(Xml.child_exn~context:context_xml_arg0"AllowUnauthenticatedIdentities")inletidentityPoolName=IdentityPoolName.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityPoolName")inmake?identityPoolTags?samlProviderARNs?cognitoIdentityProviders?openIdConnectProviderARNs?developerProviderName?supportedLoginProviders?allowClassicFlow~allowUnauthenticatedIdentities~identityPoolName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidentityPoolTags=field_mapjson__"IdentityPoolTags"IdentityPoolTagsType.of_jsoninletsamlProviderARNs=field_mapjson__"SamlProviderARNs"SAMLProviderList.of_jsoninletcognitoIdentityProviders=field_mapjson__"CognitoIdentityProviders"CognitoIdentityProviderList.of_jsoninletopenIdConnectProviderARNs=field_mapjson__"OpenIdConnectProviderARNs"OIDCProviderList.of_jsoninletdeveloperProviderName=field_mapjson__"DeveloperProviderName"DeveloperProviderName.of_jsoninletsupportedLoginProviders=field_mapjson__"SupportedLoginProviders"IdentityProviders.of_jsoninletallowClassicFlow=field_mapjson__"AllowClassicFlow"ClassicFlow.of_jsoninletallowUnauthenticatedIdentities=field_map_exnjson__"AllowUnauthenticatedIdentities"IdentityPoolUnauthenticated.of_jsoninletidentityPoolName=field_map_exnjson__"IdentityPoolName"IdentityPoolName.of_jsoninmake?identityPoolTags?samlProviderARNs?cognitoIdentityProviders?openIdConnectProviderARNs?developerProviderName?supportedLoginProviders?allowClassicFlow~allowUnauthenticatedIdentities~identityPoolName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input to the CreateIdentityPool action."]