12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746(* 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_syncletapiVersion="2014-06-30"letendpointPrefix="cognito-sync"letserviceFullName="Amazon Cognito Sync"letsignatureVersion="v4"letprotocol="rest_json"letglobalEndpoint=endpointPrefix^".amazonaws.com"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[]))])moduleDate=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_valueendmoduleLong=structtypenonrect=Int64.tletmakei=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_valueendmoduleRecordKey=structtypenonrect=stringletcontext_="RecordKey"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:"RecordKey"jletto_json=simple_to_jsonto_valueendmoduleRecordValue=structtypenonrect=stringletcontext_="RecordValue"letmakei=letopenResultinok_or_failwith(check_string_maxi~max:1048575);iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"RecordValue"jletto_json=simple_to_jsonto_valueendmoduleString_=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_valueendmoduleOperation=structtypenonrect=|Replace|Remove|Non_static_idofstringletmakei=iletto_string=function|Replace->"replace"|Remove->"remove"|Non_static_ids->sletof_string=function|"replace"->Replace|"remove"->Remove|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 Operation"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Operation"j)letto_json=simple_to_jsonto_valueendmoduleApplicationArn=structtypenonrect=stringletcontext_="ApplicationArn"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"arn:aws:sns:[-0-9a-z]+:\\d+:app/[A-Z_]+/[a-zA-Z0-9_.-]+");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ApplicationArn"jletto_json=simple_to_jsonto_valueendmoduleIdentityPoolId=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_valueendmoduleDatasetName=structtypenonrect=stringletcontext_="DatasetName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9_.:-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DatasetName"jletto_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_valueendmoduleExceptionMessage=structtypenonrect=stringletcontext_="ExceptionMessage"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:"ExceptionMessage"jletto_json=simple_to_jsonto_valueendmoduleRecord=structtypenonrect={key:RecordKey.toption[@ocaml.doc"The key for the record."];value:RecordValue.toption[@ocaml.doc"The value for the record."];syncCount:Long.toption[@ocaml.doc"The server sync count for this record."];lastModifiedDate:Date.toption[@ocaml.doc"The date on which the record was last modified."];lastModifiedBy:String_.toption[@ocaml.doc"The user/device that made the last change to this record."];deviceLastModifiedDate:Date.toption[@ocaml.doc"The last modified date of the client device."]}letmake?key=fun?value->fun?syncCount->fun?lastModifiedDate->fun?lastModifiedBy->fun?deviceLastModifiedDate->fun()->{key;value;syncCount;lastModifiedDate;lastModifiedBy;deviceLastModifiedDate}letto_valuex=structure_to_value[("Key",(Option.mapx.key~f:RecordKey.to_value));("Value",(Option.mapx.value~f:RecordValue.to_value));("SyncCount",(Option.mapx.syncCount~f:Long.to_value));("LastModifiedDate",(Option.mapx.lastModifiedDate~f:Date.to_value));("LastModifiedBy",(Option.mapx.lastModifiedBy~f:String_.to_value));("DeviceLastModifiedDate",(Option.mapx.deviceLastModifiedDate~f:Date.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdeviceLastModifiedDate=(Option.map~f:Date.of_xml)(Xml.childxml_arg0"DeviceLastModifiedDate")inletlastModifiedBy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"LastModifiedBy")inletlastModifiedDate=(Option.map~f:Date.of_xml)(Xml.childxml_arg0"LastModifiedDate")inletsyncCount=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"SyncCount")inletvalue=(Option.map~f:RecordValue.of_xml)(Xml.childxml_arg0"Value")inletkey=(Option.map~f:RecordKey.of_xml)(Xml.childxml_arg0"Key")inmake?deviceLastModifiedDate?lastModifiedBy?lastModifiedDate?syncCount?value?key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdeviceLastModifiedDate=field_mapjson__"DeviceLastModifiedDate"Date.of_jsoninletlastModifiedBy=field_mapjson__"LastModifiedBy"String_.of_jsoninletlastModifiedDate=field_mapjson__"LastModifiedDate"Date.of_jsoninletsyncCount=field_mapjson__"SyncCount"Long.of_jsoninletvalue=field_mapjson__"Value"RecordValue.of_jsoninletkey=field_mapjson__"Key"RecordKey.of_jsoninmake?deviceLastModifiedDate?lastModifiedBy?lastModifiedDate?syncCount?value?key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The basic data structure of a dataset."]moduleRecordPatch=structtypenonrect={op:Operation.t[@ocaml.doc"An operation, either replace or remove."];key:RecordKey.t[@ocaml.doc"The key associated with the record patch."];value:RecordValue.toption[@ocaml.doc"The value associated with the record patch."];syncCount:Long.t[@ocaml.doc"Last known server sync count for this record. Set to 0 if unknown."];deviceLastModifiedDate:Date.toption[@ocaml.doc"The last modified date of the client device."]}letcontext_="RecordPatch"letmake?value=fun?deviceLastModifiedDate->fun~op->fun~key->fun~syncCount->fun()->{value;deviceLastModifiedDate;op;key;syncCount}letto_valuex=structure_to_value[("Op",(Some(Operation.to_valuex.op)));("Key",(Some(RecordKey.to_valuex.key)));("Value",(Option.mapx.value~f:RecordValue.to_value));("SyncCount",(Some(Long.to_valuex.syncCount)));("DeviceLastModifiedDate",(Option.mapx.deviceLastModifiedDate~f:Date.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdeviceLastModifiedDate=(Option.map~f:Date.of_xml)(Xml.childxml_arg0"DeviceLastModifiedDate")inletsyncCount=Long.of_xml(Xml.child_exn~context:context_xml_arg0"SyncCount")inletvalue=(Option.map~f:RecordValue.of_xml)(Xml.childxml_arg0"Value")inletkey=RecordKey.of_xml(Xml.child_exn~context:context_xml_arg0"Key")inletop=Operation.of_xml(Xml.child_exn~context:context_xml_arg0"Op")inmake?deviceLastModifiedDate~syncCount?value~key~op()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdeviceLastModifiedDate=field_mapjson__"DeviceLastModifiedDate"Date.of_jsoninletsyncCount=field_map_exnjson__"SyncCount"Long.of_jsoninletvalue=field_mapjson__"Value"RecordValue.of_jsoninletkey=field_map_exnjson__"Key"RecordKey.of_jsoninletop=field_map_exnjson__"Op"Operation.of_jsoninmake?deviceLastModifiedDate~syncCount?value~key~op()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An update operation for a record."]moduleAssumeRoleArn=structtypenonrect=stringletcontext_="AssumeRoleArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:20)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"arn:aws:iam::\\d+:role/.*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AssumeRoleArn"jletto_json=simple_to_jsonto_valueendmoduleStreamName=structtypenonrect=stringletcontext_="StreamName"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:"StreamName"jletto_json=simple_to_jsonto_valueendmoduleStreamingStatus=structtypenonrect=|ENABLED|DISABLED|Non_static_idofstringletmakei=iletto_string=function|ENABLED->"ENABLED"|DISABLED->"DISABLED"|Non_static_ids->sletof_string=function|"ENABLED"->ENABLED|"DISABLED"->DISABLED|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 StreamingStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"StreamingStatus"j)letto_json=simple_to_jsonto_valueendmoduleApplicationArnList=structtypenonrect=ApplicationArn.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ApplicationArn.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:ApplicationArn.of_xml)letof_jsonj=list_of_json~kind:"ApplicationArnList"~of_json:ApplicationArn.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCognitoEventType=structtypenonrect=stringletcontext_="CognitoEventType"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:"CognitoEventType"jletto_json=simple_to_jsonto_valueendmoduleLambdaFunctionArn=structtypenonrect=stringletcontext_="LambdaFunctionArn"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:"LambdaFunctionArn"jletto_json=simple_to_jsonto_valueendmoduleIdentityPoolUsage=structtypenonrect={identityPoolId:IdentityPoolId.toption[@ocaml.doc"A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region."];syncSessionsCount:Long.toption[@ocaml.doc"Number of sync sessions for the identity pool."];dataStorage:Long.toption[@ocaml.doc"Data storage information for the identity pool."];lastModifiedDate:Date.toption[@ocaml.doc"Date on which the identity pool was last modified."]}letmake?identityPoolId=fun?syncSessionsCount->fun?dataStorage->fun?lastModifiedDate->fun()->{identityPoolId;syncSessionsCount;dataStorage;lastModifiedDate}letto_valuex=structure_to_value[("IdentityPoolId",(Option.mapx.identityPoolId~f:IdentityPoolId.to_value));("SyncSessionsCount",(Option.mapx.syncSessionsCount~f:Long.to_value));("DataStorage",(Option.mapx.dataStorage~f:Long.to_value));("LastModifiedDate",(Option.mapx.lastModifiedDate~f:Date.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastModifiedDate=(Option.map~f:Date.of_xml)(Xml.childxml_arg0"LastModifiedDate")inletdataStorage=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"DataStorage")inletsyncSessionsCount=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"SyncSessionsCount")inletidentityPoolId=(Option.map~f:IdentityPoolId.of_xml)(Xml.childxml_arg0"IdentityPoolId")inmake?lastModifiedDate?dataStorage?syncSessionsCount?identityPoolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastModifiedDate=field_mapjson__"LastModifiedDate"Date.of_jsoninletdataStorage=field_mapjson__"DataStorage"Long.of_jsoninletsyncSessionsCount=field_mapjson__"SyncSessionsCount"Long.of_jsoninletidentityPoolId=field_mapjson__"IdentityPoolId"IdentityPoolId.of_jsoninmake?lastModifiedDate?dataStorage?syncSessionsCount?identityPoolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Usage information for the identity pool."]moduleDataset=structtypenonrect={identityId:IdentityId.toption[@ocaml.doc"A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region."];datasetName:DatasetName.toption[@ocaml.doc"A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (dash), and '.' (dot)."];creationDate:Date.toption[@ocaml.doc"Date on which the dataset was created."];lastModifiedDate:Date.toption[@ocaml.doc"Date when the dataset was last modified."];lastModifiedBy:String_.toption[@ocaml.doc"The device that made the last change to this dataset."];dataStorage:Long.toption[@ocaml.doc"Total size in bytes of the records in this dataset."];numRecords:Long.toption[@ocaml.doc"Number of records in this dataset."]}letmake?identityId=fun?datasetName->fun?creationDate->fun?lastModifiedDate->fun?lastModifiedBy->fun?dataStorage->fun?numRecords->fun()->{identityId;datasetName;creationDate;lastModifiedDate;lastModifiedBy;dataStorage;numRecords}letto_valuex=structure_to_value[("IdentityId",(Option.mapx.identityId~f:IdentityId.to_value));("DatasetName",(Option.mapx.datasetName~f:DatasetName.to_value));("CreationDate",(Option.mapx.creationDate~f:Date.to_value));("LastModifiedDate",(Option.mapx.lastModifiedDate~f:Date.to_value));("LastModifiedBy",(Option.mapx.lastModifiedBy~f:String_.to_value));("DataStorage",(Option.mapx.dataStorage~f:Long.to_value));("NumRecords",(Option.mapx.numRecords~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnumRecords=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"NumRecords")inletdataStorage=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"DataStorage")inletlastModifiedBy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"LastModifiedBy")inletlastModifiedDate=(Option.map~f:Date.of_xml)(Xml.childxml_arg0"LastModifiedDate")inletcreationDate=(Option.map~f:Date.of_xml)(Xml.childxml_arg0"CreationDate")inletdatasetName=(Option.map~f:DatasetName.of_xml)(Xml.childxml_arg0"DatasetName")inletidentityId=(Option.map~f:IdentityId.of_xml)(Xml.childxml_arg0"IdentityId")inmake?numRecords?dataStorage?lastModifiedBy?lastModifiedDate?creationDate?datasetName?identityId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnumRecords=field_mapjson__"NumRecords"Long.of_jsoninletdataStorage=field_mapjson__"DataStorage"Long.of_jsoninletlastModifiedBy=field_mapjson__"LastModifiedBy"String_.of_jsoninletlastModifiedDate=field_mapjson__"LastModifiedDate"Date.of_jsoninletcreationDate=field_mapjson__"CreationDate"Date.of_jsoninletdatasetName=field_mapjson__"DatasetName"DatasetName.of_jsoninletidentityId=field_mapjson__"IdentityId"IdentityId.of_jsoninmake?numRecords?dataStorage?lastModifiedBy?lastModifiedDate?creationDate?datasetName?identityId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A collection of data for an identity pool. An identity pool can have multiple datasets. A dataset is per identity and can be general or associated with a particular entity in an application (like a saved game). Datasets are automatically created if they don't exist. Data is synced by dataset, and a dataset can hold up to 1MB of key-value pairs."]moduleInteger=structtypenonrect=intletmakei=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 Integer"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleInternalErrorException=structtypenonrect={message:ExceptionMessage.toption[@ocaml.doc"Message returned by InternalErrorException."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Indicates an internal service error."]moduleInvalidLambdaFunctionOutputException=structtypenonrect={message:ExceptionMessage.toption[@ocaml.doc"A message returned when an InvalidLambdaFunctionOutputException occurs"]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The AWS Lambda function returned invalid output or an exception."]moduleInvalidParameterException=structtypenonrect={message:ExceptionMessage.toption[@ocaml.doc"Message returned by InvalidParameterException."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Thrown when a request parameter does not comply with the associated constraints."]moduleLambdaThrottledException=structtypenonrect={message:ExceptionMessage.toption[@ocaml.doc"A message returned when an LambdaThrottledException is thrown"]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"AWS Lambda throttled your account, please contact AWS Support"]moduleLimitExceededException=structtypenonrect={message:ExceptionMessage.toption[@ocaml.doc"Message returned by LimitExceededException."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Thrown when the limit on the number of objects or operations has been exceeded."]moduleNotAuthorizedException=structtypenonrect={message:ExceptionMessage.toption[@ocaml.doc"The message returned by a NotAuthorizedException."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Thrown when a user is not authorized to access the requested resource."]moduleRecordList=structtypenonrect=Record.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Record.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:Record.of_xml)letof_jsonj=list_of_json~kind:"RecordList"~of_json:Record.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleResourceConflictException=structtypenonrect={message:ExceptionMessage.toption[@ocaml.doc"The message returned by a ResourceConflictException."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Thrown if an update can't be applied because the resource was changed by another call and this would result in a conflict."]moduleResourceNotFoundException=structtypenonrect={message:ExceptionMessage.toption[@ocaml.doc"Message returned by a ResourceNotFoundException."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Thrown if the resource doesn't exist."]moduleTooManyRequestsException=structtypenonrect={message:ExceptionMessage.toption[@ocaml.doc"Message returned by a TooManyRequestsException."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Thrown if the request is throttled."]moduleClientContext=structtypenonrect=stringletcontext_="ClientContext"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:"ClientContext"jletto_json=simple_to_jsonto_valueendmoduleDeviceId=structtypenonrect=stringletcontext_="DeviceId"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:"DeviceId"jletto_json=simple_to_jsonto_valueendmoduleRecordPatchList=structtypenonrect=RecordPatch.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:RecordPatch.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:RecordPatch.of_xml)letof_jsonj=list_of_json~kind:"RecordPatchList"~of_json:RecordPatch.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSyncSessionToken=structtypenonrect=stringletcontext_="SyncSessionToken"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:"SyncSessionToken"jletto_json=simple_to_jsonto_valueendmoduleInvalidConfigurationException=structtypenonrect={message:ExceptionMessage.toption[@ocaml.doc"Message returned by InvalidConfigurationException."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevendmoduleCognitoStreams=structtypenonrect={streamName:StreamName.toption[@ocaml.doc"The name of the Cognito stream to receive updates. This stream must be in the developers account and in the same region as the identity pool."];roleArn:AssumeRoleArn.toption[@ocaml.doc"The ARN of the role Amazon Cognito can assume in order to publish to the stream. This role must grant access to Amazon Cognito (cognito-sync) to invoke PutRecord on your Cognito stream."];streamingStatus:StreamingStatus.toption[@ocaml.doc"Status of the Cognito streams. Valid values are: ENABLED - Streaming of updates to identity pool is enabled. DISABLED - Streaming of updates to identity pool is disabled. Bulk publish will also fail if StreamingStatus is DISABLED."]}letmake?streamName=fun?roleArn->fun?streamingStatus->fun()->{streamName;roleArn;streamingStatus}letto_valuex=structure_to_value[("StreamName",(Option.mapx.streamName~f:StreamName.to_value));("RoleArn",(Option.mapx.roleArn~f:AssumeRoleArn.to_value));("StreamingStatus",(Option.mapx.streamingStatus~f:StreamingStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamingStatus=(Option.map~f:StreamingStatus.of_xml)(Xml.childxml_arg0"StreamingStatus")inletroleArn=(Option.map~f:AssumeRoleArn.of_xml)(Xml.childxml_arg0"RoleArn")inletstreamName=(Option.map~f:StreamName.of_xml)(Xml.childxml_arg0"StreamName")inmake?streamingStatus?roleArn?streamName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamingStatus=field_mapjson__"StreamingStatus"StreamingStatus.of_jsoninletroleArn=field_mapjson__"RoleArn"AssumeRoleArn.of_jsoninletstreamName=field_mapjson__"StreamName"StreamName.of_jsoninmake?streamingStatus?roleArn?streamName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration options for configure Cognito streams."]moduleConcurrentModificationException=structtypenonrect={message:String_.toption[@ocaml.doc"The message returned by a ConcurrentModicationException."]}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."]modulePushSync=structtypenonrect={applicationArns:ApplicationArnList.toption[@ocaml.doc"List of SNS platform application ARNs that could be used by clients."];roleArn:AssumeRoleArn.toption[@ocaml.doc"A role configured to allow Cognito to call SNS on behalf of the developer."]}letmake?applicationArns=fun?roleArn->fun()->{applicationArns;roleArn}letto_valuex=structure_to_value[("ApplicationArns",(Option.mapx.applicationArns~f:ApplicationArnList.to_value));("RoleArn",(Option.mapx.roleArn~f:AssumeRoleArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroleArn=(Option.map~f:AssumeRoleArn.of_xml)(Xml.childxml_arg0"RoleArn")inletapplicationArns=(Option.map~f:ApplicationArnList.of_xml)(Xml.childxml_arg0"ApplicationArns")inmake?roleArn?applicationArns()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroleArn=field_mapjson__"RoleArn"AssumeRoleArn.of_jsoninletapplicationArns=field_mapjson__"ApplicationArns"ApplicationArnList.of_jsoninmake?roleArn?applicationArns()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration options to be applied to the identity pool."]moduleEvents=structtypenonrect=(CognitoEventType.t*LambdaFunctionArn.t)listletmakei=letopenResultinok_or_failwith(check_list_maxi~max:1);iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((CognitoEventType.of_stringchopped),(LambdaFunctionArn.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(CognitoEventType.to_valuex)|>(funx->(LambdaFunctionArn.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:CognitoEventType.of_string~of_json:LambdaFunctionArn.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePlatform=structtypenonrect=|APNS|APNS_SANDBOX|GCM|ADM|Non_static_idofstringletmakei=iletto_string=function|APNS->"APNS"|APNS_SANDBOX->"APNS_SANDBOX"|GCM->"GCM"|ADM->"ADM"|Non_static_ids->sletof_string=function|"APNS"->APNS|"APNS_SANDBOX"->APNS_SANDBOX|"GCM"->GCM|"ADM"->ADM|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 Platform"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Platform"j)letto_json=simple_to_jsonto_valueendmodulePushToken=structtypenonrect=stringletcontext_="PushToken"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:"PushToken"jletto_json=simple_to_jsonto_valueendmoduleBoolean=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_valueendmoduleMergedDatasetNameList=structtypenonrect=String_.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.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:String_.of_xml)letof_jsonj=list_of_json~kind:"MergedDatasetNameList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleIntegerString=structtypenonrect=intletmakei=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 IntegerString"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleIdentityPoolUsageList=structtypenonrect=IdentityPoolUsage.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:IdentityPoolUsage.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:IdentityPoolUsage.of_xml)letof_jsonj=list_of_json~kind:"IdentityPoolUsageList"~of_json:IdentityPoolUsage.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDatasetList=structtypenonrect=Dataset.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Dataset.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:Dataset.of_xml)letof_jsonj=list_of_json~kind:"DatasetList"~of_json:Dataset.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBulkPublishStatus=structtypenonrect=|NOT_STARTED|IN_PROGRESS|FAILED|SUCCEEDED|Non_static_idofstringletmakei=iletto_string=function|NOT_STARTED->"NOT_STARTED"|IN_PROGRESS->"IN_PROGRESS"|FAILED->"FAILED"|SUCCEEDED->"SUCCEEDED"|Non_static_ids->sletof_string=function|"NOT_STARTED"->NOT_STARTED|"IN_PROGRESS"->IN_PROGRESS|"FAILED"->FAILED|"SUCCEEDED"->SUCCEEDED|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 BulkPublishStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"BulkPublishStatus"j)letto_json=simple_to_jsonto_valueendmoduleIdentityUsage=structtypenonrect={identityId:IdentityId.toption[@ocaml.doc"A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region."];identityPoolId:IdentityPoolId.toption[@ocaml.doc"A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region."];lastModifiedDate:Date.toption[@ocaml.doc"Date on which the identity was last modified."];datasetCount:Integer.toption[@ocaml.doc"Number of datasets for the identity."];dataStorage:Long.toption[@ocaml.doc"Total data storage for this identity."]}letmake?identityId=fun?identityPoolId->fun?lastModifiedDate->fun?datasetCount->fun?dataStorage->fun()->{identityId;identityPoolId;lastModifiedDate;datasetCount;dataStorage}letto_valuex=structure_to_value[("IdentityId",(Option.mapx.identityId~f:IdentityId.to_value));("IdentityPoolId",(Option.mapx.identityPoolId~f:IdentityPoolId.to_value));("LastModifiedDate",(Option.mapx.lastModifiedDate~f:Date.to_value));("DatasetCount",(Option.mapx.datasetCount~f:Integer.to_value));("DataStorage",(Option.mapx.dataStorage~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdataStorage=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"DataStorage")inletdatasetCount=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"DatasetCount")inletlastModifiedDate=(Option.map~f:Date.of_xml)(Xml.childxml_arg0"LastModifiedDate")inletidentityPoolId=(Option.map~f:IdentityPoolId.of_xml)(Xml.childxml_arg0"IdentityPoolId")inletidentityId=(Option.map~f:IdentityId.of_xml)(Xml.childxml_arg0"IdentityId")inmake?dataStorage?datasetCount?lastModifiedDate?identityPoolId?identityId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdataStorage=field_mapjson__"DataStorage"Long.of_jsoninletdatasetCount=field_mapjson__"DatasetCount"Integer.of_jsoninletlastModifiedDate=field_mapjson__"LastModifiedDate"Date.of_jsoninletidentityPoolId=field_mapjson__"IdentityPoolId"IdentityPoolId.of_jsoninletidentityId=field_mapjson__"IdentityId"IdentityId.of_jsoninmake?dataStorage?datasetCount?lastModifiedDate?identityPoolId?identityId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Usage information for the identity."]moduleAlreadyStreamedException=structtypenonrect={message:ExceptionMessage.toption[@ocaml.doc"The message associated with the AlreadyStreamedException exception."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An exception thrown when a bulk publish operation is requested less than 24 hours after a previous bulk publish operation completed successfully."]moduleDuplicateRequestException=structtypenonrect={message:ExceptionMessage.toption[@ocaml.doc"The message associated with the DuplicateRequestException exception."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An exception thrown when there is an IN_PROGRESS bulk publish operation for the given identity pool."]moduleUpdateRecordsResponse=structtypenonrect={records:RecordList.toption[@ocaml.doc"A list of records that have been updated."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidLambdaFunctionOutputExceptionofInvalidLambdaFunctionOutputException.t|`InvalidParameterExceptionofInvalidParameterException.t|`LambdaThrottledExceptionofLambdaThrottledException.t|`LimitExceededExceptionofLimitExceededException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`ResourceConflictExceptionofResourceConflictException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?records=fun()->{records}leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidLambdaFunctionOutputException"->`InvalidLambdaFunctionOutputException(InvalidLambdaFunctionOutputException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"LambdaThrottledException"->`LambdaThrottledException(LambdaThrottledException.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|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidLambdaFunctionOutputException"->`InvalidLambdaFunctionOutputException(InvalidLambdaFunctionOutputException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"LambdaThrottledException"->`LambdaThrottledException(LambdaThrottledException.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|`InternalErrorExceptione->`Assoc[("error",(`String"InternalErrorException"));("details",(InternalErrorException.to_jsone))]|`InvalidLambdaFunctionOutputExceptione->`Assoc[("error",(`String"InvalidLambdaFunctionOutputException"));("details",(InvalidLambdaFunctionOutputException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`LambdaThrottledExceptione->`Assoc[("error",(`String"LambdaThrottledException"));("details",(LambdaThrottledException.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[("Records",(Option.mapx.records~f:RecordList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrecords=(Option.map~f:RecordList.of_xml)(Xml.childxml_arg0"Records")inmake?records()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrecords=field_mapjson__"Records"RecordList.of_jsoninmake?records()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returned for a successful UpdateRecordsRequest."]moduleUpdateRecordsRequest=structtypenonrect={identityPoolId:IdentityPoolId.t[@ocaml.doc"A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region."];identityId:IdentityId.t[@ocaml.doc"A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region."];datasetName:DatasetName.t[@ocaml.doc"A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (dash), and '.' (dot)."];deviceId:DeviceId.toption[@ocaml.doc"The unique ID generated for this device by Cognito."];recordPatches:RecordPatchList.toption[@ocaml.doc"A list of patch operations."];syncSessionToken:SyncSessionToken.t[@ocaml.doc"The SyncSessionToken returned by a previous call to ListRecords for this dataset and identity."];clientContext:ClientContext.toption[@ocaml.doc"Intended to supply a device ID that will populate the lastModifiedBy field referenced in other methods. The ClientContext field is not yet implemented."]}letcontext_="UpdateRecordsRequest"letmake?deviceId=fun?recordPatches->fun?clientContext->fun~identityPoolId->fun~identityId->fun~datasetName->fun~syncSessionToken->fun()->{deviceId;recordPatches;clientContext;identityPoolId;identityId;datasetName;syncSessionToken}letto_valuex=structure_to_value[("IdentityPoolId",(Some(IdentityPoolId.to_valuex.identityPoolId)));("IdentityId",(Some(IdentityId.to_valuex.identityId)));("DatasetName",(Some(DatasetName.to_valuex.datasetName)));("DeviceId",(Option.mapx.deviceId~f:DeviceId.to_value));("RecordPatches",(Option.mapx.recordPatches~f:RecordPatchList.to_value));("SyncSessionToken",(Some(SyncSessionToken.to_valuex.syncSessionToken)));("x-amz-Client-Context",(Option.mapx.clientContext~f:ClientContext.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientContext=(Option.map~f:ClientContext.of_xml)(Xml.childxml_arg0"x-amz-Client-Context")inletsyncSessionToken=SyncSessionToken.of_xml(Xml.child_exn~context:context_xml_arg0"SyncSessionToken")inletrecordPatches=(Option.map~f:RecordPatchList.of_xml)(Xml.childxml_arg0"RecordPatches")inletdeviceId=(Option.map~f:DeviceId.of_xml)(Xml.childxml_arg0"DeviceId")inletdatasetName=DatasetName.of_xml(Xml.child_exn~context:context_xml_arg0"DatasetName")inletidentityId=IdentityId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityId")inletidentityPoolId=IdentityPoolId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityPoolId")inmake?clientContext~syncSessionToken?recordPatches?deviceId~datasetName~identityId~identityPoolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientContext=field_mapjson__"ClientContext"ClientContext.of_jsoninletsyncSessionToken=field_map_exnjson__"SyncSessionToken"SyncSessionToken.of_jsoninletrecordPatches=field_mapjson__"RecordPatches"RecordPatchList.of_jsoninletdeviceId=field_mapjson__"DeviceId"DeviceId.of_jsoninletdatasetName=field_map_exnjson__"DatasetName"DatasetName.of_jsoninletidentityId=field_map_exnjson__"IdentityId"IdentityId.of_jsoninletidentityPoolId=field_map_exnjson__"IdentityPoolId"IdentityPoolId.of_jsoninmake?clientContext~syncSessionToken?recordPatches?deviceId~datasetName~identityId~identityPoolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A request to post updates to records or add and delete records for a dataset and user."]moduleUnsubscribeFromDatasetResponse=structtypenonrect=unittypenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidConfigurationExceptionofInvalidConfigurationException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidConfigurationException"->`InvalidConfigurationException(InvalidConfigurationException.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)|"InvalidConfigurationException"->`InvalidConfigurationException(InvalidConfigurationException.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))]|`InvalidConfigurationExceptione->`Assoc[("error",(`String"InvalidConfigurationException"));("details",(InvalidConfigurationException.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"Response to an UnsubscribeFromDataset request."]moduleUnsubscribeFromDatasetRequest=structtypenonrect={identityPoolId:IdentityPoolId.t[@ocaml.doc"A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. The ID of the pool to which this identity belongs."];identityId:IdentityId.t[@ocaml.doc"Unique ID for this identity."];datasetName:DatasetName.t[@ocaml.doc"The name of the dataset from which to unsubcribe."];deviceId:DeviceId.t[@ocaml.doc"The unique ID generated for this device by Cognito."]}letcontext_="UnsubscribeFromDatasetRequest"letmake~identityPoolId=fun~identityId->fun~datasetName->fun~deviceId->fun()->{identityPoolId;identityId;datasetName;deviceId}letto_valuex=structure_to_value[("IdentityPoolId",(Some(IdentityPoolId.to_valuex.identityPoolId)));("IdentityId",(Some(IdentityId.to_valuex.identityId)));("DatasetName",(Some(DatasetName.to_valuex.datasetName)));("DeviceId",(Some(DeviceId.to_valuex.deviceId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdeviceId=DeviceId.of_xml(Xml.child_exn~context:context_xml_arg0"DeviceId")inletdatasetName=DatasetName.of_xml(Xml.child_exn~context:context_xml_arg0"DatasetName")inletidentityId=IdentityId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityId")inletidentityPoolId=IdentityPoolId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityPoolId")inmake~deviceId~datasetName~identityId~identityPoolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdeviceId=field_map_exnjson__"DeviceId"DeviceId.of_jsoninletdatasetName=field_map_exnjson__"DatasetName"DatasetName.of_jsoninletidentityId=field_map_exnjson__"IdentityId"IdentityId.of_jsoninletidentityPoolId=field_map_exnjson__"IdentityPoolId"IdentityPoolId.of_jsoninmake~deviceId~datasetName~identityId~identityPoolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A request to UnsubscribeFromDataset."]moduleSubscribeToDatasetResponse=structtypenonrect=unittypenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidConfigurationExceptionofInvalidConfigurationException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidConfigurationException"->`InvalidConfigurationException(InvalidConfigurationException.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)|"InvalidConfigurationException"->`InvalidConfigurationException(InvalidConfigurationException.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))]|`InvalidConfigurationExceptione->`Assoc[("error",(`String"InvalidConfigurationException"));("details",(InvalidConfigurationException.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"Response to a SubscribeToDataset request."]moduleSubscribeToDatasetRequest=structtypenonrect={identityPoolId:IdentityPoolId.t[@ocaml.doc"A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. The ID of the pool to which the identity belongs."];identityId:IdentityId.t[@ocaml.doc"Unique ID for this identity."];datasetName:DatasetName.t[@ocaml.doc"The name of the dataset to subcribe to."];deviceId:DeviceId.t[@ocaml.doc"The unique ID generated for this device by Cognito."]}letcontext_="SubscribeToDatasetRequest"letmake~identityPoolId=fun~identityId->fun~datasetName->fun~deviceId->fun()->{identityPoolId;identityId;datasetName;deviceId}letto_valuex=structure_to_value[("IdentityPoolId",(Some(IdentityPoolId.to_valuex.identityPoolId)));("IdentityId",(Some(IdentityId.to_valuex.identityId)));("DatasetName",(Some(DatasetName.to_valuex.datasetName)));("DeviceId",(Some(DeviceId.to_valuex.deviceId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdeviceId=DeviceId.of_xml(Xml.child_exn~context:context_xml_arg0"DeviceId")inletdatasetName=DatasetName.of_xml(Xml.child_exn~context:context_xml_arg0"DatasetName")inletidentityId=IdentityId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityId")inletidentityPoolId=IdentityPoolId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityPoolId")inmake~deviceId~datasetName~identityId~identityPoolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdeviceId=field_map_exnjson__"DeviceId"DeviceId.of_jsoninletdatasetName=field_map_exnjson__"DatasetName"DatasetName.of_jsoninletidentityId=field_map_exnjson__"IdentityId"IdentityId.of_jsoninletidentityPoolId=field_map_exnjson__"IdentityPoolId"IdentityPoolId.of_jsoninmake~deviceId~datasetName~identityId~identityPoolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A request to SubscribeToDatasetRequest."]moduleSetIdentityPoolConfigurationResponse=structtypenonrect={identityPoolId:IdentityPoolId.toption[@ocaml.doc"A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito."];pushSync:PushSync.toption[@ocaml.doc"Options to apply to this identity pool for push synchronization."];cognitoStreams:CognitoStreams.toption[@ocaml.doc"Options to apply to this identity pool for Amazon Cognito streams."]}typenonrecerror=[`ConcurrentModificationExceptionofConcurrentModificationException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?identityPoolId=fun?pushSync->fun?cognitoStreams->fun()->{identityPoolId;pushSync;cognitoStreams}leterror_of_jsonnamejson=matchnamewith|"ConcurrentModificationException"->`ConcurrentModificationException(ConcurrentModificationException.of_jsonjson)|"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|"ConcurrentModificationException"->`ConcurrentModificationException(ConcurrentModificationException.of_xmlxml)|"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|`ConcurrentModificationExceptione->`Assoc[("error",(`String"ConcurrentModificationException"));("details",(ConcurrentModificationException.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))]|`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));("PushSync",(Option.mapx.pushSync~f:PushSync.to_value));("CognitoStreams",(Option.mapx.cognitoStreams~f:CognitoStreams.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcognitoStreams=(Option.map~f:CognitoStreams.of_xml)(Xml.childxml_arg0"CognitoStreams")inletpushSync=(Option.map~f:PushSync.of_xml)(Xml.childxml_arg0"PushSync")inletidentityPoolId=(Option.map~f:IdentityPoolId.of_xml)(Xml.childxml_arg0"IdentityPoolId")inmake?cognitoStreams?pushSync?identityPoolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcognitoStreams=field_mapjson__"CognitoStreams"CognitoStreams.of_jsoninletpushSync=field_mapjson__"PushSync"PushSync.of_jsoninletidentityPoolId=field_mapjson__"IdentityPoolId"IdentityPoolId.of_jsoninmake?cognitoStreams?pushSync?identityPoolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The output for the SetIdentityPoolConfiguration operation"]moduleSetIdentityPoolConfigurationRequest=structtypenonrect={identityPoolId:IdentityPoolId.t[@ocaml.doc"A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. This is the ID of the pool to modify."];pushSync:PushSync.toption[@ocaml.doc"Options to apply to this identity pool for push synchronization."];cognitoStreams:CognitoStreams.toption[@ocaml.doc"Options to apply to this identity pool for Amazon Cognito streams."]}letcontext_="SetIdentityPoolConfigurationRequest"letmake?pushSync=fun?cognitoStreams->fun~identityPoolId->fun()->{pushSync;cognitoStreams;identityPoolId}letto_valuex=structure_to_value[("IdentityPoolId",(Some(IdentityPoolId.to_valuex.identityPoolId)));("PushSync",(Option.mapx.pushSync~f:PushSync.to_value));("CognitoStreams",(Option.mapx.cognitoStreams~f:CognitoStreams.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcognitoStreams=(Option.map~f:CognitoStreams.of_xml)(Xml.childxml_arg0"CognitoStreams")inletpushSync=(Option.map~f:PushSync.of_xml)(Xml.childxml_arg0"PushSync")inletidentityPoolId=IdentityPoolId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityPoolId")inmake?cognitoStreams?pushSync~identityPoolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcognitoStreams=field_mapjson__"CognitoStreams"CognitoStreams.of_jsoninletpushSync=field_mapjson__"PushSync"PushSync.of_jsoninletidentityPoolId=field_map_exnjson__"IdentityPoolId"IdentityPoolId.of_jsoninmake?cognitoStreams?pushSync~identityPoolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The input for the SetIdentityPoolConfiguration operation."]moduleSetCognitoEventsRequest=structtypenonrect={identityPoolId:IdentityPoolId.t[@ocaml.doc"The Cognito Identity Pool to use when configuring Cognito Events"];events:Events.t[@ocaml.doc"The events to configure"]}letcontext_="SetCognitoEventsRequest"letmake~identityPoolId=fun~events->fun()->{identityPoolId;events}letto_valuex=structure_to_value[("IdentityPoolId",(Some(IdentityPoolId.to_valuex.identityPoolId)));("Events",(Some(Events.to_valuex.events)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letevents=Events.of_xml(Xml.child_exn~context:context_xml_arg0"Events")inletidentityPoolId=IdentityPoolId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityPoolId")inmake~events~identityPoolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letevents=field_map_exnjson__"Events"Events.of_jsoninletidentityPoolId=field_map_exnjson__"IdentityPoolId"IdentityPoolId.of_jsoninmake~events~identityPoolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A request to configure Cognito Events\"\""]moduleRegisterDeviceResponse=structtypenonrect={deviceId:DeviceId.toption[@ocaml.doc"The unique ID generated for this device by Cognito."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidConfigurationExceptionofInvalidConfigurationException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?deviceId=fun()->{deviceId}leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidConfigurationException"->`InvalidConfigurationException(InvalidConfigurationException.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)|"InvalidConfigurationException"->`InvalidConfigurationException(InvalidConfigurationException.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))]|`InvalidConfigurationExceptione->`Assoc[("error",(`String"InvalidConfigurationException"));("details",(InvalidConfigurationException.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[("DeviceId",(Option.mapx.deviceId~f:DeviceId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdeviceId=(Option.map~f:DeviceId.of_xml)(Xml.childxml_arg0"DeviceId")inmake?deviceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdeviceId=field_mapjson__"DeviceId"DeviceId.of_jsoninmake?deviceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response to a RegisterDevice request."]moduleRegisterDeviceRequest=structtypenonrect={identityPoolId:IdentityPoolId.t[@ocaml.doc"A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. Here, the ID of the pool that the identity belongs to."];identityId:IdentityId.t[@ocaml.doc"The unique ID for this identity."];platform:Platform.t[@ocaml.doc"The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX)."];token:PushToken.t[@ocaml.doc"The push token."]}letcontext_="RegisterDeviceRequest"letmake~identityPoolId=fun~identityId->fun~platform->fun~token->fun()->{identityPoolId;identityId;platform;token}letto_valuex=structure_to_value[("IdentityPoolId",(Some(IdentityPoolId.to_valuex.identityPoolId)));("IdentityId",(Some(IdentityId.to_valuex.identityId)));("Platform",(Some(Platform.to_valuex.platform)));("Token",(Some(PushToken.to_valuex.token)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettoken=PushToken.of_xml(Xml.child_exn~context:context_xml_arg0"Token")inletplatform=Platform.of_xml(Xml.child_exn~context:context_xml_arg0"Platform")inletidentityId=IdentityId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityId")inletidentityPoolId=IdentityPoolId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityPoolId")inmake~token~platform~identityId~identityPoolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettoken=field_map_exnjson__"Token"PushToken.of_jsoninletplatform=field_map_exnjson__"Platform"Platform.of_jsoninletidentityId=field_map_exnjson__"IdentityId"IdentityId.of_jsoninletidentityPoolId=field_map_exnjson__"IdentityPoolId"IdentityPoolId.of_jsoninmake~token~platform~identityId~identityPoolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A request to RegisterDevice."]moduleListRecordsResponse=structtypenonrect={records:RecordList.toption[@ocaml.doc"A list of all records."];nextToken:String_.toption[@ocaml.doc"A pagination token for obtaining the next page of results."];count:Integer.toption[@ocaml.doc"Total number of records."];datasetSyncCount:Long.toption[@ocaml.doc"Server sync count for this dataset."];lastModifiedBy:String_.toption[@ocaml.doc"The user/device that made the last change to this record."];mergedDatasetNames:MergedDatasetNameList.toption[@ocaml.doc"Names of merged datasets."];datasetExists:Boolean.toption[@ocaml.doc"Indicates whether the dataset exists."];datasetDeletedAfterRequestedSyncCount:Boolean.toption[@ocaml.doc"A boolean value specifying whether to delete the dataset locally."];syncSessionToken:String_.toption[@ocaml.doc"A token containing a session ID, identity ID, and expiration."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?records=fun?nextToken->fun?count->fun?datasetSyncCount->fun?lastModifiedBy->fun?mergedDatasetNames->fun?datasetExists->fun?datasetDeletedAfterRequestedSyncCount->fun?syncSessionToken->fun()->{records;nextToken;count;datasetSyncCount;lastModifiedBy;mergedDatasetNames;datasetExists;datasetDeletedAfterRequestedSyncCount;syncSessionToken}leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.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)|"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))]|`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[("Records",(Option.mapx.records~f:RecordList.to_value));("NextToken",(Option.mapx.nextToken~f:String_.to_value));("Count",(Option.mapx.count~f:Integer.to_value));("DatasetSyncCount",(Option.mapx.datasetSyncCount~f:Long.to_value));("LastModifiedBy",(Option.mapx.lastModifiedBy~f:String_.to_value));("MergedDatasetNames",(Option.mapx.mergedDatasetNames~f:MergedDatasetNameList.to_value));("DatasetExists",(Option.mapx.datasetExists~f:Boolean.to_value));("DatasetDeletedAfterRequestedSyncCount",(Option.mapx.datasetDeletedAfterRequestedSyncCount~f:Boolean.to_value));("SyncSessionToken",(Option.mapx.syncSessionToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsyncSessionToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"SyncSessionToken")inletdatasetDeletedAfterRequestedSyncCount=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"DatasetDeletedAfterRequestedSyncCount")inletdatasetExists=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"DatasetExists")inletmergedDatasetNames=(Option.map~f:MergedDatasetNameList.of_xml)(Xml.childxml_arg0"MergedDatasetNames")inletlastModifiedBy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"LastModifiedBy")inletdatasetSyncCount=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"DatasetSyncCount")inletcount=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"Count")inletnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NextToken")inletrecords=(Option.map~f:RecordList.of_xml)(Xml.childxml_arg0"Records")inmake?syncSessionToken?datasetDeletedAfterRequestedSyncCount?datasetExists?mergedDatasetNames?lastModifiedBy?datasetSyncCount?count?nextToken?records()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsyncSessionToken=field_mapjson__"SyncSessionToken"String_.of_jsoninletdatasetDeletedAfterRequestedSyncCount=field_mapjson__"DatasetDeletedAfterRequestedSyncCount"Boolean.of_jsoninletdatasetExists=field_mapjson__"DatasetExists"Boolean.of_jsoninletmergedDatasetNames=field_mapjson__"MergedDatasetNames"MergedDatasetNameList.of_jsoninletlastModifiedBy=field_mapjson__"LastModifiedBy"String_.of_jsoninletdatasetSyncCount=field_mapjson__"DatasetSyncCount"Long.of_jsoninletcount=field_mapjson__"Count"Integer.of_jsoninletnextToken=field_mapjson__"NextToken"String_.of_jsoninletrecords=field_mapjson__"Records"RecordList.of_jsoninmake?syncSessionToken?datasetDeletedAfterRequestedSyncCount?datasetExists?mergedDatasetNames?lastModifiedBy?datasetSyncCount?count?nextToken?records()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returned for a successful ListRecordsRequest."]moduleListRecordsRequest=structtypenonrect={identityPoolId:IdentityPoolId.t[@ocaml.doc"A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region."];identityId:IdentityId.t[@ocaml.doc"A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region."];datasetName:DatasetName.t[@ocaml.doc"A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (dash), and '.' (dot)."];lastSyncCount:Long.toption[@ocaml.doc"The last server sync count for this record."];nextToken:String_.toption[@ocaml.doc"A pagination token for obtaining the next page of results."];maxResults:IntegerString.toption[@ocaml.doc"The maximum number of results to be returned."];syncSessionToken:SyncSessionToken.toption[@ocaml.doc"A token containing a session ID, identity ID, and expiration."]}letcontext_="ListRecordsRequest"letmake?lastSyncCount=fun?nextToken->fun?maxResults->fun?syncSessionToken->fun~identityPoolId->fun~identityId->fun~datasetName->fun()->{lastSyncCount;nextToken;maxResults;syncSessionToken;identityPoolId;identityId;datasetName}letto_valuex=structure_to_value[("IdentityPoolId",(Some(IdentityPoolId.to_valuex.identityPoolId)));("IdentityId",(Some(IdentityId.to_valuex.identityId)));("DatasetName",(Some(DatasetName.to_valuex.datasetName)));("lastSyncCount",(Option.mapx.lastSyncCount~f:Long.to_value));("nextToken",(Option.mapx.nextToken~f:String_.to_value));("maxResults",(Option.mapx.maxResults~f:IntegerString.to_value));("syncSessionToken",(Option.mapx.syncSessionToken~f:SyncSessionToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsyncSessionToken=(Option.map~f:SyncSessionToken.of_xml)(Xml.childxml_arg0"syncSessionToken")inletmaxResults=(Option.map~f:IntegerString.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletlastSyncCount=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"lastSyncCount")inletdatasetName=DatasetName.of_xml(Xml.child_exn~context:context_xml_arg0"DatasetName")inletidentityId=IdentityId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityId")inletidentityPoolId=IdentityPoolId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityPoolId")inmake?syncSessionToken?maxResults?nextToken?lastSyncCount~datasetName~identityId~identityPoolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsyncSessionToken=field_mapjson__"SyncSessionToken"SyncSessionToken.of_jsoninletmaxResults=field_mapjson__"MaxResults"IntegerString.of_jsoninletnextToken=field_mapjson__"NextToken"String_.of_jsoninletlastSyncCount=field_mapjson__"LastSyncCount"Long.of_jsoninletdatasetName=field_map_exnjson__"DatasetName"DatasetName.of_jsoninletidentityId=field_map_exnjson__"IdentityId"IdentityId.of_jsoninletidentityPoolId=field_map_exnjson__"IdentityPoolId"IdentityPoolId.of_jsoninmake?syncSessionToken?maxResults?nextToken?lastSyncCount~datasetName~identityId~identityPoolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A request for a list of records."]moduleListIdentityPoolUsageResponse=structtypenonrect={identityPoolUsages:IdentityPoolUsageList.toption[@ocaml.doc"Usage information for the identity pools."];maxResults:Integer.toption[@ocaml.doc"The maximum number of results to be returned."];count:Integer.toption[@ocaml.doc"Total number of identities for the identity pool."];nextToken:String_.toption[@ocaml.doc"A pagination token for obtaining the next page of results."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?identityPoolUsages=fun?maxResults->fun?count->fun?nextToken->fun()->{identityPoolUsages;maxResults;count;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.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)|"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))]|`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[("IdentityPoolUsages",(Option.mapx.identityPoolUsages~f:IdentityPoolUsageList.to_value));("MaxResults",(Option.mapx.maxResults~f:Integer.to_value));("Count",(Option.mapx.count~f:Integer.to_value));("NextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NextToken")inletcount=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"Count")inletmaxResults=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"MaxResults")inletidentityPoolUsages=(Option.map~f:IdentityPoolUsageList.of_xml)(Xml.childxml_arg0"IdentityPoolUsages")inmake?nextToken?count?maxResults?identityPoolUsages()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletcount=field_mapjson__"Count"Integer.of_jsoninletmaxResults=field_mapjson__"MaxResults"Integer.of_jsoninletidentityPoolUsages=field_mapjson__"IdentityPoolUsages"IdentityPoolUsageList.of_jsoninmake?nextToken?count?maxResults?identityPoolUsages()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returned for a successful ListIdentityPoolUsage request."]moduleListIdentityPoolUsageRequest=structtypenonrect={nextToken:String_.toption[@ocaml.doc"A pagination token for obtaining the next page of results."];maxResults:IntegerString.toption[@ocaml.doc"The maximum number of results to be returned."]}letmake?nextToken=fun?maxResults->fun()->{nextToken;maxResults}letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:String_.to_value));("maxResults",(Option.mapx.maxResults~f:IntegerString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:IntegerString.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inmake?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"IntegerString.of_jsoninletnextToken=field_mapjson__"NextToken"String_.of_jsoninmake?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A request for usage information on an identity pool."]moduleListDatasetsResponse=structtypenonrect={datasets:DatasetList.toption[@ocaml.doc"A set of datasets."];count:Integer.toption[@ocaml.doc"Number of datasets returned."];nextToken:String_.toption[@ocaml.doc"A pagination token for obtaining the next page of results."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?datasets=fun?count->fun?nextToken->fun()->{datasets;count;nextToken}leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.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)|"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))]|`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[("Datasets",(Option.mapx.datasets~f:DatasetList.to_value));("Count",(Option.mapx.count~f:Integer.to_value));("NextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NextToken")inletcount=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"Count")inletdatasets=(Option.map~f:DatasetList.of_xml)(Xml.childxml_arg0"Datasets")inmake?nextToken?count?datasets()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletcount=field_mapjson__"Count"Integer.of_jsoninletdatasets=field_mapjson__"Datasets"DatasetList.of_jsoninmake?nextToken?count?datasets()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returned for a successful ListDatasets request."]moduleListDatasetsRequest=structtypenonrect={identityPoolId:IdentityPoolId.t[@ocaml.doc"A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region."];identityId:IdentityId.t[@ocaml.doc"A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region."];nextToken:String_.toption[@ocaml.doc"A pagination token for obtaining the next page of results."];maxResults:IntegerString.toption[@ocaml.doc"The maximum number of results to be returned."]}letcontext_="ListDatasetsRequest"letmake?nextToken=fun?maxResults->fun~identityPoolId->fun~identityId->fun()->{nextToken;maxResults;identityPoolId;identityId}letto_valuex=structure_to_value[("IdentityPoolId",(Some(IdentityPoolId.to_valuex.identityPoolId)));("IdentityId",(Some(IdentityId.to_valuex.identityId)));("nextToken",(Option.mapx.nextToken~f:String_.to_value));("maxResults",(Option.mapx.maxResults~f:IntegerString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:IntegerString.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletidentityId=IdentityId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityId")inletidentityPoolId=IdentityPoolId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityPoolId")inmake?maxResults?nextToken~identityId~identityPoolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"IntegerString.of_jsoninletnextToken=field_mapjson__"NextToken"String_.of_jsoninletidentityId=field_map_exnjson__"IdentityId"IdentityId.of_jsoninletidentityPoolId=field_map_exnjson__"IdentityPoolId"IdentityPoolId.of_jsoninmake?maxResults?nextToken~identityId~identityPoolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request for a list of datasets for an identity."]moduleGetIdentityPoolConfigurationResponse=structtypenonrect={identityPoolId:IdentityPoolId.toption[@ocaml.doc"A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito."];pushSync:PushSync.toption[@ocaml.doc"Options to apply to this identity pool for push synchronization."];cognitoStreams:CognitoStreams.toption[@ocaml.doc"Options to apply to this identity pool for Amazon Cognito streams."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?identityPoolId=fun?pushSync->fun?cognitoStreams->fun()->{identityPoolId;pushSync;cognitoStreams}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));("PushSync",(Option.mapx.pushSync~f:PushSync.to_value));("CognitoStreams",(Option.mapx.cognitoStreams~f:CognitoStreams.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcognitoStreams=(Option.map~f:CognitoStreams.of_xml)(Xml.childxml_arg0"CognitoStreams")inletpushSync=(Option.map~f:PushSync.of_xml)(Xml.childxml_arg0"PushSync")inletidentityPoolId=(Option.map~f:IdentityPoolId.of_xml)(Xml.childxml_arg0"IdentityPoolId")inmake?cognitoStreams?pushSync?identityPoolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcognitoStreams=field_mapjson__"CognitoStreams"CognitoStreams.of_jsoninletpushSync=field_mapjson__"PushSync"PushSync.of_jsoninletidentityPoolId=field_mapjson__"IdentityPoolId"IdentityPoolId.of_jsoninmake?cognitoStreams?pushSync?identityPoolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The output for the GetIdentityPoolConfiguration operation."]moduleGetIdentityPoolConfigurationRequest=structtypenonrect={identityPoolId:IdentityPoolId.t[@ocaml.doc"A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. This is the ID of the pool for which to return a configuration."]}letcontext_="GetIdentityPoolConfigurationRequest"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"The input for the GetIdentityPoolConfiguration operation."]moduleGetCognitoEventsResponse=structtypenonrect={events:Events.toption[@ocaml.doc"The Cognito Events returned from the GetCognitoEvents request"]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?events=fun()->{events}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[("Events",(Option.mapx.events~f:Events.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letevents=(Option.map~f:Events.of_xml)(Xml.childxml_arg0"Events")inmake?events()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letevents=field_mapjson__"Events"Events.of_jsoninmake?events()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response from the GetCognitoEvents request"]moduleGetCognitoEventsRequest=structtypenonrect={identityPoolId:IdentityPoolId.t[@ocaml.doc"The Cognito Identity Pool ID for the request"]}letcontext_="GetCognitoEventsRequest"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"A request for a list of the configured Cognito Events"]moduleGetBulkPublishDetailsResponse=structtypenonrect={identityPoolId:IdentityPoolId.toption[@ocaml.doc"A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region."];bulkPublishStartTime:Date.toption[@ocaml.doc"The date/time at which the last bulk publish was initiated."];bulkPublishCompleteTime:Date.toption[@ocaml.doc"If BulkPublishStatus is SUCCEEDED, the time the last bulk publish operation completed."];bulkPublishStatus:BulkPublishStatus.toption[@ocaml.doc"Status of the last bulk publish operation, valid values are: NOT_STARTED - No bulk publish has been requested for this identity pool IN_PROGRESS - Data is being published to the configured stream SUCCEEDED - All data for the identity pool has been published to the configured stream FAILED - Some portion of the data has failed to publish, check FailureMessage for the cause."];failureMessage:String_.toption[@ocaml.doc"If BulkPublishStatus is FAILED this field will contain the error message that caused the bulk publish to fail."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?identityPoolId=fun?bulkPublishStartTime->fun?bulkPublishCompleteTime->fun?bulkPublishStatus->fun?failureMessage->fun()->{identityPoolId;bulkPublishStartTime;bulkPublishCompleteTime;bulkPublishStatus;failureMessage}leterror_of_jsonnamejson=matchnamewith|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.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)|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))]|`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));("BulkPublishStartTime",(Option.mapx.bulkPublishStartTime~f:Date.to_value));("BulkPublishCompleteTime",(Option.mapx.bulkPublishCompleteTime~f:Date.to_value));("BulkPublishStatus",(Option.mapx.bulkPublishStatus~f:BulkPublishStatus.to_value));("FailureMessage",(Option.mapx.failureMessage~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfailureMessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"FailureMessage")inletbulkPublishStatus=(Option.map~f:BulkPublishStatus.of_xml)(Xml.childxml_arg0"BulkPublishStatus")inletbulkPublishCompleteTime=(Option.map~f:Date.of_xml)(Xml.childxml_arg0"BulkPublishCompleteTime")inletbulkPublishStartTime=(Option.map~f:Date.of_xml)(Xml.childxml_arg0"BulkPublishStartTime")inletidentityPoolId=(Option.map~f:IdentityPoolId.of_xml)(Xml.childxml_arg0"IdentityPoolId")inmake?failureMessage?bulkPublishStatus?bulkPublishCompleteTime?bulkPublishStartTime?identityPoolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfailureMessage=field_mapjson__"FailureMessage"String_.of_jsoninletbulkPublishStatus=field_mapjson__"BulkPublishStatus"BulkPublishStatus.of_jsoninletbulkPublishCompleteTime=field_mapjson__"BulkPublishCompleteTime"Date.of_jsoninletbulkPublishStartTime=field_mapjson__"BulkPublishStartTime"Date.of_jsoninletidentityPoolId=field_mapjson__"IdentityPoolId"IdentityPoolId.of_jsoninmake?failureMessage?bulkPublishStatus?bulkPublishCompleteTime?bulkPublishStartTime?identityPoolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The output for the GetBulkPublishDetails operation."]moduleGetBulkPublishDetailsRequest=structtypenonrect={identityPoolId:IdentityPoolId.t[@ocaml.doc"A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region."]}letcontext_="GetBulkPublishDetailsRequest"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"The input for the GetBulkPublishDetails operation."]moduleDescribeIdentityUsageResponse=structtypenonrect={identityUsage:IdentityUsage.toption[@ocaml.doc"Usage information for the identity."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?identityUsage=fun()->{identityUsage}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[("IdentityUsage",(Option.mapx.identityUsage~f:IdentityUsage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidentityUsage=(Option.map~f:IdentityUsage.of_xml)(Xml.childxml_arg0"IdentityUsage")inmake?identityUsage()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidentityUsage=field_mapjson__"IdentityUsage"IdentityUsage.of_jsoninmake?identityUsage()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response to a successful DescribeIdentityUsage request."]moduleDescribeIdentityUsageRequest=structtypenonrect={identityPoolId:IdentityPoolId.t[@ocaml.doc"A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region."];identityId:IdentityId.t[@ocaml.doc"A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region."]}letcontext_="DescribeIdentityUsageRequest"letmake~identityPoolId=fun~identityId->fun()->{identityPoolId;identityId}letto_valuex=structure_to_value[("IdentityPoolId",(Some(IdentityPoolId.to_valuex.identityPoolId)));("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")inletidentityPoolId=IdentityPoolId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityPoolId")inmake~identityId~identityPoolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidentityId=field_map_exnjson__"IdentityId"IdentityId.of_jsoninletidentityPoolId=field_map_exnjson__"IdentityPoolId"IdentityPoolId.of_jsoninmake~identityId~identityPoolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A request for information about the usage of an identity pool."]moduleDescribeIdentityPoolUsageResponse=structtypenonrect={identityPoolUsage:IdentityPoolUsage.toption[@ocaml.doc"Information about the usage of the identity pool."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?identityPoolUsage=fun()->{identityPoolUsage}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[("IdentityPoolUsage",(Option.mapx.identityPoolUsage~f:IdentityPoolUsage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidentityPoolUsage=(Option.map~f:IdentityPoolUsage.of_xml)(Xml.childxml_arg0"IdentityPoolUsage")inmake?identityPoolUsage()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidentityPoolUsage=field_mapjson__"IdentityPoolUsage"IdentityPoolUsage.of_jsoninmake?identityPoolUsage()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response to a successful DescribeIdentityPoolUsage request."]moduleDescribeIdentityPoolUsageRequest=structtypenonrect={identityPoolId:IdentityPoolId.t[@ocaml.doc"A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region."]}letcontext_="DescribeIdentityPoolUsageRequest"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"A request for usage information about the identity pool."]moduleDescribeDatasetResponse=structtypenonrect={dataset:Dataset.toption[@ocaml.doc"Meta data for a collection of data for an identity. An identity can have multiple datasets. A dataset can be general or associated with a particular entity in an application (like a saved game). Datasets are automatically created if they don't exist. Data is synced by dataset, and a dataset can hold up to 1MB of key-value pairs."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?dataset=fun()->{dataset}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[("Dataset",(Option.mapx.dataset~f:Dataset.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdataset=(Option.map~f:Dataset.of_xml)(Xml.childxml_arg0"Dataset")inmake?dataset()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdataset=field_mapjson__"Dataset"Dataset.of_jsoninmake?dataset()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response to a successful DescribeDataset request."]moduleDescribeDatasetRequest=structtypenonrect={identityPoolId:IdentityPoolId.t[@ocaml.doc"A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region."];identityId:IdentityId.t[@ocaml.doc"A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region."];datasetName:DatasetName.t[@ocaml.doc"A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (dash), and '.' (dot)."]}letcontext_="DescribeDatasetRequest"letmake~identityPoolId=fun~identityId->fun~datasetName->fun()->{identityPoolId;identityId;datasetName}letto_valuex=structure_to_value[("IdentityPoolId",(Some(IdentityPoolId.to_valuex.identityPoolId)));("IdentityId",(Some(IdentityId.to_valuex.identityId)));("DatasetName",(Some(DatasetName.to_valuex.datasetName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdatasetName=DatasetName.of_xml(Xml.child_exn~context:context_xml_arg0"DatasetName")inletidentityId=IdentityId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityId")inletidentityPoolId=IdentityPoolId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityPoolId")inmake~datasetName~identityId~identityPoolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdatasetName=field_map_exnjson__"DatasetName"DatasetName.of_jsoninletidentityId=field_map_exnjson__"IdentityId"IdentityId.of_jsoninletidentityPoolId=field_map_exnjson__"IdentityPoolId"IdentityPoolId.of_jsoninmake~datasetName~identityId~identityPoolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A request for meta data about a dataset (creation date, number of records, size) by owner and dataset name."]moduleDeleteDatasetResponse=structtypenonrect={dataset:Dataset.toption[@ocaml.doc"A collection of data for an identity pool. An identity pool can have multiple datasets. A dataset is per identity and can be general or associated with a particular entity in an application (like a saved game). Datasets are automatically created if they don't exist. Data is synced by dataset, and a dataset can hold up to 1MB of key-value pairs."]}typenonrecerror=[`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`ResourceConflictExceptionofResourceConflictException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?dataset=fun()->{dataset}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[("Dataset",(Option.mapx.dataset~f:Dataset.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdataset=(Option.map~f:Dataset.of_xml)(Xml.childxml_arg0"Dataset")inmake?dataset()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdataset=field_mapjson__"Dataset"Dataset.of_jsoninmake?dataset()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response to a successful DeleteDataset request."]moduleDeleteDatasetRequest=structtypenonrect={identityPoolId:IdentityPoolId.t[@ocaml.doc"A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region."];identityId:IdentityId.t[@ocaml.doc"A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region."];datasetName:DatasetName.t[@ocaml.doc"A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (dash), and '.' (dot)."]}letcontext_="DeleteDatasetRequest"letmake~identityPoolId=fun~identityId->fun~datasetName->fun()->{identityPoolId;identityId;datasetName}letto_valuex=structure_to_value[("IdentityPoolId",(Some(IdentityPoolId.to_valuex.identityPoolId)));("IdentityId",(Some(IdentityId.to_valuex.identityId)));("DatasetName",(Some(DatasetName.to_valuex.datasetName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdatasetName=DatasetName.of_xml(Xml.child_exn~context:context_xml_arg0"DatasetName")inletidentityId=IdentityId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityId")inletidentityPoolId=IdentityPoolId.of_xml(Xml.child_exn~context:context_xml_arg0"IdentityPoolId")inmake~datasetName~identityId~identityPoolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdatasetName=field_map_exnjson__"DatasetName"DatasetName.of_jsoninletidentityId=field_map_exnjson__"IdentityId"IdentityId.of_jsoninletidentityPoolId=field_map_exnjson__"IdentityPoolId"IdentityPoolId.of_jsoninmake~datasetName~identityId~identityPoolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A request to delete the specific dataset."]moduleBulkPublishResponse=structtypenonrect={identityPoolId:IdentityPoolId.toption[@ocaml.doc"A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region."]}typenonrecerror=[`AlreadyStreamedExceptionofAlreadyStreamedException.t|`DuplicateRequestExceptionofDuplicateRequestException.t|`InternalErrorExceptionofInternalErrorException.t|`InvalidParameterExceptionofInvalidParameterException.t|`NotAuthorizedExceptionofNotAuthorizedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?identityPoolId=fun()->{identityPoolId}leterror_of_jsonnamejson=matchnamewith|"AlreadyStreamedException"->`AlreadyStreamedException(AlreadyStreamedException.of_jsonjson)|"DuplicateRequestException"->`DuplicateRequestException(DuplicateRequestException.of_jsonjson)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AlreadyStreamedException"->`AlreadyStreamedException(AlreadyStreamedException.of_xmlxml)|"DuplicateRequestException"->`DuplicateRequestException(DuplicateRequestException.of_xmlxml)|"InternalErrorException"->`InternalErrorException(InternalErrorException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"NotAuthorizedException"->`NotAuthorizedException(NotAuthorizedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AlreadyStreamedExceptione->`Assoc[("error",(`String"AlreadyStreamedException"));("details",(AlreadyStreamedException.to_jsone))]|`DuplicateRequestExceptione->`Assoc[("error",(`String"DuplicateRequestException"));("details",(DuplicateRequestException.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))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.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))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidentityPoolId=(Option.map~f:IdentityPoolId.of_xml)(Xml.childxml_arg0"IdentityPoolId")inmake?identityPoolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidentityPoolId=field_mapjson__"IdentityPoolId"IdentityPoolId.of_jsoninmake?identityPoolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The output for the BulkPublish operation."]moduleBulkPublishRequest=structtypenonrect={identityPoolId:IdentityPoolId.t[@ocaml.doc"A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region."]}letcontext_="BulkPublishRequest"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"The input for the BulkPublish operation."]