123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589(* 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.rumletapiVersion="2018-05-10"letendpointPrefix="rum"letserviceFullName="CloudWatch RUM"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[]))])moduleDimensionKey=structtypenonrect=stringletcontext_="DimensionKey"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:280)>>=(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:"DimensionKey"jletto_json=simple_to_jsonto_valueendmoduleDimensionName=structtypenonrect=stringletcontext_="DimensionName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"(?!:).*[^\\s].*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DimensionName"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_valueendmoduleUrl=structtypenonrect=stringletcontext_="Url"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1260)>>=(fun()->check_patterni~pattern:".*https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-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:"Url"jletto_json=simple_to_jsonto_valueendmoduleTelemetry=structtypenonrect=|Errors|Performance|Http|Non_static_idofstringletmakei=iletto_string=function|Errors->"errors"|Performance->"performance"|Http->"http"|Non_static_ids->sletof_string=function|"errors"->Errors|"performance"->Performance|"http"->Http|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 Telemetry"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Telemetry"j)letto_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_valueendmoduleDeobfuscationS3Uri=structtypenonrect=stringletcontext_="DeobfuscationS3Uri"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1024)>>=(fun()->check_patterni~pattern:"s3://[a-z0-9][-.a-z0-9]{1,62}(?:/[-!_*'().a-z0-9A-Z]+(?:/[-!_*'().a-z0-9A-Z]+)*)?/?")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DeobfuscationS3Uri"jletto_json=simple_to_jsonto_valueendmoduleDeobfuscationStatus=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 DeobfuscationStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DeobfuscationStatus"j)letto_json=simple_to_jsonto_valueendmoduleQueryFilterValue=structtypenonrect=stringletcontext_="QueryFilterValue"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:"QueryFilterValue"jletto_json=simple_to_jsonto_valueendmoduleDimensionKeysMap=structtypenonrect=(DimensionKey.t*DimensionName.t)listletmakei=letopenResultinok_or_failwith((check_list_maxi~max:29)>>=(fun()->check_list_mini~min:0));iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((DimensionKey.of_stringchopped),(DimensionName.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(DimensionKey.to_valuex)|>(funx->(DimensionName.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:DimensionKey.of_string~of_json:DimensionName.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEventPattern=structtypenonrect=stringletcontext_="EventPattern"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:4000)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"EventPattern"jletto_json=simple_to_jsonto_valueendmoduleMetricName=structtypenonrect=stringletcontext_="MetricName"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:255)>>=(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:"MetricName"jletto_json=simple_to_jsonto_valueendmoduleNamespace=structtypenonrect=stringletcontext_="Namespace"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:237)>>=(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:"Namespace"jletto_json=simple_to_jsonto_valueendmoduleUnitLabel=structtypenonrect=stringletcontext_="UnitLabel"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:"UnitLabel"jletto_json=simple_to_jsonto_valueendmoduleValueKey=structtypenonrect=stringletcontext_="ValueKey"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:280)>>=(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:"ValueKey"jletto_json=simple_to_jsonto_valueendmoduleJsonValue=structtypenonrect=stringletcontext_="JsonValue"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:"JsonValue"jletto_json=simple_to_jsonto_valueendmoduleRumEventIdString=structtypenonrect=stringletcontext_="RumEventIdString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:36)>>=(fun()->(check_string_maxi~max:36)>>=(fun()->check_patterni~pattern:"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"RumEventIdString"jletto_json=simple_to_jsonto_valueendmoduleTimestamp=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_valueendmoduleDestinationArn=structtypenonrect=stringletcontext_="DestinationArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:".*arn:[^:]*:[^:]*:[^:]*:[^:]*:.*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DestinationArn"jletto_json=simple_to_jsonto_valueendmoduleIamRoleArn=structtypenonrect=stringletcontext_="IamRoleArn"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:".*arn:[^:]*:[^:]*:[^:]*:[^:]*:.*");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"IamRoleArn"jletto_json=simple_to_jsonto_valueendmoduleMetricDestination=structtypenonrect=|CloudWatch|Evidently|Non_static_idofstringletmakei=iletto_string=function|CloudWatch->"CloudWatch"|Evidently->"Evidently"|Non_static_ids->sletof_string=function|"CloudWatch"->CloudWatch|"Evidently"->Evidently|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 MetricDestination"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"MetricDestination"j)letto_json=simple_to_jsonto_valueendmoduleAppMonitorId=structtypenonrect=stringletcontext_="AppMonitorId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:36)>>=(fun()->(check_string_maxi~max:36)>>=(fun()->check_patterni~pattern:"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AppMonitorId"jletto_json=simple_to_jsonto_valueendmoduleAppMonitorName=structtypenonrect=stringletcontext_="AppMonitorName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(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:"AppMonitorName"jletto_json=simple_to_jsonto_valueendmoduleAppMonitorPlatform=structtypenonrect=|Web|Android|IOS|Non_static_idofstringletmakei=iletto_string=function|Web->"Web"|Android->"Android"|IOS->"iOS"|Non_static_ids->sletof_string=function|"Web"->Web|"Android"->Android|"iOS"->IOS|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 AppMonitorPlatform"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AppMonitorPlatform"j)letto_json=simple_to_jsonto_valueendmoduleISOTimestampString=structtypenonrect=stringletcontext_="ISOTimestampString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:19)>>=(fun()->check_string_mini~min:19));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ISOTimestampString"jletto_json=simple_to_jsonto_valueendmoduleStateEnum=structtypenonrect=|CREATED|DELETING|ACTIVE|Non_static_idofstringletmakei=iletto_string=function|CREATED->"CREATED"|DELETING->"DELETING"|ACTIVE->"ACTIVE"|Non_static_ids->sletof_string=function|"CREATED"->CREATED|"DELETING"->DELETING|"ACTIVE"->ACTIVE|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 StateEnum"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"StateEnum"j)letto_json=simple_to_jsonto_valueendmoduleArn=structtypenonrect=stringletcontext_="Arn"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:".*arn:[^:]*:[^:]*:[^:]*:[^:]*:.*");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Arn"jletto_json=simple_to_jsonto_valueendmoduleFavoritePages=structtypenonrect=String_.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:0));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:"FavoritePages"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleIdentityPoolId=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_valueendmodulePages=structtypenonrect=Url.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Url.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:Url.of_xml)letof_jsonj=list_of_json~kind:"Pages"~of_json:Url.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSessionSampleRate=structtypenonrect=floatletmakei=letopenResultinok_or_failwith((check_float_mini~min:1.)>>=(fun()->check_float_mini~min:0.));iletof_string=Float.of_stringletto_valuex=`Doublexletto_queryv=to_queryto_valuevletto_headerx=Stdlib.Float.to_stringxletof_xmlxml_arg0=Float.of_string(string_of_xml~kind:"a double"xml_arg0)letof_jsonj=float_of_json~kind:"a double"jletto_json=simple_to_jsonto_valueendmoduleTelemetries=structtypenonrect=Telemetry.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Telemetry.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:Telemetry.of_xml)letof_jsonj=list_of_json~kind:"Telemetries"~of_json:Telemetry.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAppMonitorDomain=structtypenonrect=stringletcontext_="AppMonitorDomain"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:253)>>=(fun()->check_patterni~pattern:"(localhost)$|^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$|(?=^[a-zA-Z0-9\\.\\*-]{4,253}$)(?!.*\\.-)(?!.*-\\.)(?!.*\\.\\.)(?!.*[^\\.]{64,})^(\\*\\.)?(?![-\\.\\*])[^\\*]{1,}\\.(\\*|(?!.*--)(?=.*[a-zA-Z])[^\\*]{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:"AppMonitorDomain"jletto_json=simple_to_jsonto_valueendmoduleCustomEventsStatus=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 CustomEventsStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CustomEventsStatus"j)letto_json=simple_to_jsonto_valueendmoduleCwLog=structtypenonrect={cwLogEnabled:Boolean.toption[@ocaml.doc"Indicated whether the app monitor stores copies of the data that RUM collects in CloudWatch Logs."];cwLogGroup:String_.toption[@ocaml.doc"The name of the log group where the copies are stored."]}letmake?cwLogEnabled=fun?cwLogGroup->fun()->{cwLogEnabled;cwLogGroup}letto_valuex=structure_to_value[("CwLogEnabled",(Option.mapx.cwLogEnabled~f:Boolean.to_value));("CwLogGroup",(Option.mapx.cwLogGroup~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcwLogGroup=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"CwLogGroup")inletcwLogEnabled=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"CwLogEnabled")inmake?cwLogGroup?cwLogEnabled()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcwLogGroup=field_mapjson__"CwLogGroup"String_.of_jsoninletcwLogEnabled=field_mapjson__"CwLogEnabled"Boolean.of_jsoninmake?cwLogGroup?cwLogEnabled()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that contains the information about whether the app monitor stores copies of the data that RUM collects in CloudWatch Logs. If it does, this structure also contains the name of the log group."]moduleJavaScriptSourceMaps=structtypenonrect={status:DeobfuscationStatus.t[@ocaml.doc"Specifies whether JavaScript error stack traces should be unminified for this app monitor. The default is for JavaScript error stack trace unminification to be DISABLED."];s3Uri:DeobfuscationS3Uri.toption[@ocaml.doc"The S3Uri of the bucket or folder that stores the source map files. It is required if status is ENABLED."]}letcontext_="JavaScriptSourceMaps"letmake?s3Uri=fun~status->fun()->{s3Uri;status}letto_valuex=structure_to_value[("Status",(Some(DeobfuscationStatus.to_valuex.status)));("S3Uri",(Option.mapx.s3Uri~f:DeobfuscationS3Uri.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lets3Uri=(Option.map~f:DeobfuscationS3Uri.of_xml)(Xml.childxml_arg0"S3Uri")inletstatus=DeobfuscationStatus.of_xml(Xml.child_exn~context:context_xml_arg0"Status")inmake?s3Uri~status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lets3Uri=field_mapjson__"S3Uri"DeobfuscationS3Uri.of_jsoninletstatus=field_map_exnjson__"Status"DeobfuscationStatus.of_jsoninmake?s3Uri~status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that contains the configuration for how an app monitor can unminify JavaScript error stack traces using source maps."]moduleTagKey=structtypenonrect=stringletcontext_="TagKey"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"(?!aws:)[a-zA-Z+-=._:/]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagKey"jletto_json=simple_to_jsonto_valueendmoduleTagValue=structtypenonrect=stringletcontext_="TagValue"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagValue"jletto_json=simple_to_jsonto_valueendmoduleQueryFilterKey=structtypenonrect=stringletcontext_="QueryFilterKey"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:"QueryFilterKey"jletto_json=simple_to_jsonto_valueendmoduleQueryFilterValueList=structtypenonrect=QueryFilterValue.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:QueryFilterValue.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:QueryFilterValue.of_xml)letof_jsonj=list_of_json~kind:"QueryFilterValueList"~of_json:QueryFilterValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMetricDefinitionId=structtypenonrect=stringletcontext_="MetricDefinitionId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:255)>>=(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:"MetricDefinitionId"jletto_json=simple_to_jsonto_valueendmoduleMetricDefinitionRequest=structtypenonrect={name:MetricName.t[@ocaml.doc"The name for the metric that is defined in this structure. For custom metrics, you can specify any name that you like. For extended metrics, valid values are the following: PerformanceNavigationDuration PerformanceResourceDuration NavigationSatisfiedTransaction NavigationToleratedTransaction NavigationFrustratedTransaction WebVitalsCumulativeLayoutShift WebVitalsFirstInputDelay WebVitalsLargestContentfulPaint JsErrorCount HttpErrorCount SessionCount"];valueKey:ValueKey.toption[@ocaml.doc"The field within the event object that the metric value is sourced from. If you omit this field, a hardcoded value of 1 is pushed as the metric value. This is useful if you want to count the number of events that the filter catches. If this metric is sent to CloudWatch Evidently, this field will be passed to Evidently raw. Evidently will handle data extraction from the event."];unitLabel:UnitLabel.toption[@ocaml.doc"The CloudWatch metric unit to use for this metric. If you omit this field, the metric is recorded with no unit."];dimensionKeys:DimensionKeysMap.toption[@ocaml.doc"Use this field only if you are sending the metric to CloudWatch. This field is a map of field paths to dimension names. It defines the dimensions to associate with this metric in CloudWatch. For extended metrics, valid values for the entries in this field are the following: \"metadata.pageId\": \"PageId\" \"metadata.browserName\": \"BrowserName\" \"metadata.deviceType\": \"DeviceType\" \"metadata.osName\": \"OSName\" \"metadata.countryCode\": \"CountryCode\" \"event_details.fileType\": \"FileType\" For both extended metrics and custom metrics, all dimensions listed in this field must also be included in EventPattern."];eventPattern:EventPattern.toption[@ocaml.doc"The pattern that defines the metric, specified as a JSON object. RUM checks events that happen in a user's session against the pattern, and events that match the pattern are sent to the metric destination. When you define extended metrics, the metric definition is not valid if EventPattern is omitted. Example event patterns: '\\{ \"event_type\": \\[\"com.amazon.rum.js_error_event\"\\], \"metadata\": \\{ \"browserName\": \\[ \"Chrome\", \"Safari\" \\], \\} \\}' '\\{ \"event_type\": \\[\"com.amazon.rum.performance_navigation_event\"\\], \"metadata\": \\{ \"browserName\": \\[ \"Chrome\", \"Firefox\" \\] \\}, \"event_details\": \\{ \"duration\": \\[\\{ \"numeric\": \\[ \"<\", 2000 \\] \\}\\] \\} \\}' '\\{ \"event_type\": \\[\"com.amazon.rum.performance_navigation_event\"\\], \"metadata\": \\{ \"browserName\": \\[ \"Chrome\", \"Safari\" \\], \"countryCode\": \\[ \"US\" \\] \\}, \"event_details\": \\{ \"duration\": \\[\\{ \"numeric\": \\[ \">=\", 2000, \"<\", 8000 \\] \\}\\] \\} \\}' If the metrics destination is CloudWatch and the event also matches a value in DimensionKeys, then the metric is published with the specified dimensions."];namespace:Namespace.toption[@ocaml.doc"If this structure is for a custom metric instead of an extended metrics, use this parameter to define the metric namespace for that custom metric. Do not specify this parameter if this structure is for an extended metric. You cannot use any string that starts with AWS/ for your namespace."]}letcontext_="MetricDefinitionRequest"letmake?valueKey=fun?unitLabel->fun?dimensionKeys->fun?eventPattern->fun?namespace->fun~name->fun()->{valueKey;unitLabel;dimensionKeys;eventPattern;namespace;name}letto_valuex=structure_to_value[("Name",(Some(MetricName.to_valuex.name)));("ValueKey",(Option.mapx.valueKey~f:ValueKey.to_value));("UnitLabel",(Option.mapx.unitLabel~f:UnitLabel.to_value));("DimensionKeys",(Option.mapx.dimensionKeys~f:DimensionKeysMap.to_value));("EventPattern",(Option.mapx.eventPattern~f:EventPattern.to_value));("Namespace",(Option.mapx.namespace~f:Namespace.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnamespace=(Option.map~f:Namespace.of_xml)(Xml.childxml_arg0"Namespace")inleteventPattern=(Option.map~f:EventPattern.of_xml)(Xml.childxml_arg0"EventPattern")inletdimensionKeys=(Option.map~f:DimensionKeysMap.of_xml)(Xml.childxml_arg0"DimensionKeys")inletunitLabel=(Option.map~f:UnitLabel.of_xml)(Xml.childxml_arg0"UnitLabel")inletvalueKey=(Option.map~f:ValueKey.of_xml)(Xml.childxml_arg0"ValueKey")inletname=MetricName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake?namespace?eventPattern?dimensionKeys?unitLabel?valueKey~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnamespace=field_mapjson__"Namespace"Namespace.of_jsoninleteventPattern=field_mapjson__"EventPattern"EventPattern.of_jsoninletdimensionKeys=field_mapjson__"DimensionKeys"DimensionKeysMap.of_jsoninletunitLabel=field_mapjson__"UnitLabel"UnitLabel.of_jsoninletvalueKey=field_mapjson__"ValueKey"ValueKey.of_jsoninletname=field_map_exnjson__"Name"MetricName.of_jsoninmake?namespace?eventPattern?dimensionKeys?unitLabel?valueKey~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Use this structure to define one extended metric or custom metric that RUM will send to CloudWatch or CloudWatch Evidently. For more information, see Custom metrics and extended metrics that you can send to CloudWatch and CloudWatch Evidently. This structure is validated differently for extended metrics and custom metrics. For extended metrics that are sent to the AWS/RUM namespace, the following validations apply: The Namespace parameter must be omitted or set to AWS/RUM. Only certain combinations of values for Name, ValueKey, and EventPattern are valid. In addition to what is displayed in the following list, the EventPattern can also include information used by the DimensionKeys field. If Name is PerformanceNavigationDuration, then ValueKeymust be event_details.duration and the EventPattern must include \\{\"event_type\":\\[\"com.amazon.rum.performance_navigation_event\"\\]\\} If Name is PerformanceResourceDuration, then ValueKeymust be event_details.duration and the EventPattern must include \\{\"event_type\":\\[\"com.amazon.rum.performance_resource_event\"\\]\\} If Name is NavigationSatisfiedTransaction, then ValueKeymust be null and the EventPattern must include \\{ \"event_type\": \\[\"com.amazon.rum.performance_navigation_event\"\\], \"event_details\": \\{ \"duration\": \\[\\{ \"numeric\": \\[\">\",2000\\] \\}\\] \\} \\} If Name is NavigationToleratedTransaction, then ValueKeymust be null and the EventPattern must include \\{ \"event_type\": \\[\"com.amazon.rum.performance_navigation_event\"\\], \"event_details\": \\{ \"duration\": \\[\\{ \"numeric\": \\[\">=\",2000,\"<\"8000\\] \\}\\] \\} \\} If Name is NavigationFrustratedTransaction, then ValueKeymust be null and the EventPattern must include \\{ \"event_type\": \\[\"com.amazon.rum.performance_navigation_event\"\\], \"event_details\": \\{ \"duration\": \\[\\{ \"numeric\": \\[\">=\",8000\\] \\}\\] \\} \\} If Name is WebVitalsCumulativeLayoutShift, then ValueKeymust be event_details.value and the EventPattern must include \\{\"event_type\":\\[\"com.amazon.rum.cumulative_layout_shift_event\"\\]\\} If Name is WebVitalsFirstInputDelay, then ValueKeymust be event_details.value and the EventPattern must include \\{\"event_type\":\\[\"com.amazon.rum.first_input_delay_event\"\\]\\} If Name is WebVitalsLargestContentfulPaint, then ValueKeymust be event_details.value and the EventPattern must include \\{\"event_type\":\\[\"com.amazon.rum.largest_contentful_paint_event\"\\]\\} If Name is JsErrorCount, then ValueKeymust be null and the EventPattern must include \\{\"event_type\":\\[\"com.amazon.rum.js_error_event\"\\]\\} If Name is HttpErrorCount, then ValueKeymust be null and the EventPattern must include \\{\"event_type\":\\[\"com.amazon.rum.http_event\"\\]\\} If Name is SessionCount, then ValueKeymust be null and the EventPattern must include \\{\"event_type\":\\[\"com.amazon.rum.session_start_event\"\\]\\} If Name is PageViewCount, then ValueKeymust be null and the EventPattern must include \\{\"event_type\":\\[\"com.amazon.rum.page_view_event\"\\]\\} If Name is Http4xxCount, then ValueKeymust be null and the EventPattern must include \\{\"event_type\": \\[\"com.amazon.rum.http_event\"\\],\"event_details\":\\{\"response\":\\{\"status\":\\[\\{\"numeric\":\\[\">=\",400,\"<\",500\\]\\}\\]\\}\\}\\} \\} If Name is Http5xxCount, then ValueKeymust be null and the EventPattern must include \\{\"event_type\": \\[\"com.amazon.rum.http_event\"\\],\"event_details\":\\{\"response\":\\{\"status\":\\[\\{\"numeric\":\\[\">=\",500,\"<=\",599\\]\\}\\]\\}\\}\\} \\} For custom metrics, the following validation rules apply: The namespace can't be omitted and can't be AWS/RUM. You can use the AWS/RUM namespace only for extended metrics. All dimensions listed in the DimensionKeys field must be present in the value of EventPattern. The values that you specify for ValueKey, EventPattern, and DimensionKeys must be fields in RUM events, so all first-level keys in these fields must be one of the keys in the list later in this section. If you set a value for EventPattern, it must be a JSON object. For every non-empty event_details, there must be a non-empty event_type. If EventPattern contains an event_details field, it must also contain an event_type. For every built-in event_type that you use, you must use a value for event_details that corresponds to that event_type. For information about event details that correspond to event types, see RUM event details. In EventPattern, any JSON array must contain only one value. Valid key values for first-level keys in the ValueKey, EventPattern, and DimensionKeys fields: account_id application_Id application_version application_name batch_id event_details event_id event_interaction event_timestamp event_type event_version log_stream metadata sessionId user_details userId"]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_valueendmoduleRumEvent=structtypenonrect={id:RumEventIdString.t[@ocaml.doc"A unique ID for this event."];timestamp:Timestamp.t[@ocaml.doc"The exact time that this event occurred."];type_:String_.t[@ocaml.doc"The JSON schema that denotes the type of event this is, such as a page load or a new session."];metadata:JsonValue.toption[@ocaml.doc"Metadata about this event, which contains a JSON serialization of the identity of the user for this session. The user information comes from information such as the HTTP user-agent request header and document interface."];details:JsonValue.t[@ocaml.doc"A string containing details about the event."]}letcontext_="RumEvent"letmake?metadata=fun~id->fun~timestamp->fun~type_->fun~details->fun()->{metadata;id;timestamp;type_;details}letto_valuex=structure_to_value[("id",(Some(RumEventIdString.to_valuex.id)));("timestamp",(Some(Timestamp.to_valuex.timestamp)));("type",(Some(String_.to_valuex.type_)));("metadata",(Option.mapx.metadata~f:JsonValue.to_value));("details",(Some(JsonValue.to_valuex.details)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdetails=JsonValue.of_xml(Xml.child_exn~context:context_xml_arg0"details")inletmetadata=(Option.map~f:JsonValue.of_xml)(Xml.childxml_arg0"metadata")inlettype_=String_.of_xml(Xml.child_exn~context:context_xml_arg0"type")inlettimestamp=Timestamp.of_xml(Xml.child_exn~context:context_xml_arg0"timestamp")inletid=RumEventIdString.of_xml(Xml.child_exn~context:context_xml_arg0"id")inmake~details?metadata~type_~timestamp~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdetails=field_map_exnjson__"details"JsonValue.of_jsoninletmetadata=field_mapjson__"metadata"JsonValue.of_jsoninlettype_=field_map_exnjson__"type"String_.of_jsoninlettimestamp=field_map_exnjson__"timestamp"Timestamp.of_jsoninletid=field_map_exnjson__"id"RumEventIdString.of_jsoninmake~details?metadata~type_~timestamp~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that contains the information for one performance event that RUM collects from a user session with your application."]moduleUserDetailsSessionIdString=structtypenonrect=stringletcontext_="UserDetailsSessionIdString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:36)>>=(fun()->(check_string_maxi~max:36)>>=(fun()->check_patterni~pattern:"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"UserDetailsSessionIdString"jletto_json=simple_to_jsonto_valueendmoduleUserDetailsUserIdString=structtypenonrect=stringletcontext_="UserDetailsUserIdString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:36)>>=(fun()->(check_string_maxi~max:36)>>=(fun()->check_patterni~pattern:"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"UserDetailsUserIdString"jletto_json=simple_to_jsonto_valueendmoduleMetricDestinationSummary=structtypenonrect={destination:MetricDestination.toption[@ocaml.doc"Specifies whether the destination is CloudWatch or Evidently."];destinationArn:DestinationArn.toption[@ocaml.doc"If the destination is Evidently, this specifies the ARN of the Evidently experiment that receives the metrics."];iamRoleArn:IamRoleArn.toption[@ocaml.doc"This field appears only when the destination is Evidently. It specifies the ARN of the IAM role that is used to write to the Evidently experiment that receives the metrics."]}letmake?destination=fun?destinationArn->fun?iamRoleArn->fun()->{destination;destinationArn;iamRoleArn}letto_valuex=structure_to_value[("Destination",(Option.mapx.destination~f:MetricDestination.to_value));("DestinationArn",(Option.mapx.destinationArn~f:DestinationArn.to_value));("IamRoleArn",(Option.mapx.iamRoleArn~f:IamRoleArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letiamRoleArn=(Option.map~f:IamRoleArn.of_xml)(Xml.childxml_arg0"IamRoleArn")inletdestinationArn=(Option.map~f:DestinationArn.of_xml)(Xml.childxml_arg0"DestinationArn")inletdestination=(Option.map~f:MetricDestination.of_xml)(Xml.childxml_arg0"Destination")inmake?iamRoleArn?destinationArn?destination()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letiamRoleArn=field_mapjson__"IamRoleArn"IamRoleArn.of_jsoninletdestinationArn=field_mapjson__"DestinationArn"DestinationArn.of_jsoninletdestination=field_mapjson__"Destination"MetricDestination.of_jsoninmake?iamRoleArn?destinationArn?destination()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that displays information about one destination that CloudWatch RUM sends extended metrics to."]moduleAppMonitorSummary=structtypenonrect={name:AppMonitorName.toption[@ocaml.doc"The name of this app monitor."];id:AppMonitorId.toption[@ocaml.doc"The unique ID of this app monitor."];created:ISOTimestampString.toption[@ocaml.doc"The date and time that the app monitor was created."];lastModified:ISOTimestampString.toption[@ocaml.doc"The date and time of the most recent changes to this app monitor's configuration."];state:StateEnum.toption[@ocaml.doc"The current state of this app monitor."];platform:AppMonitorPlatform.toption[@ocaml.doc"The platform type for this app monitor. Valid values are Web for web applications, Android for Android applications, and iOS for IOS applications."]}letmake?name=fun?id->fun?created->fun?lastModified->fun?state->fun?platform->fun()->{name;id;created;lastModified;state;platform}letto_valuex=structure_to_value[("Name",(Option.mapx.name~f:AppMonitorName.to_value));("Id",(Option.mapx.id~f:AppMonitorId.to_value));("Created",(Option.mapx.created~f:ISOTimestampString.to_value));("LastModified",(Option.mapx.lastModified~f:ISOTimestampString.to_value));("State",(Option.mapx.state~f:StateEnum.to_value));("Platform",(Option.mapx.platform~f:AppMonitorPlatform.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letplatform=(Option.map~f:AppMonitorPlatform.of_xml)(Xml.childxml_arg0"Platform")inletstate=(Option.map~f:StateEnum.of_xml)(Xml.childxml_arg0"State")inletlastModified=(Option.map~f:ISOTimestampString.of_xml)(Xml.childxml_arg0"LastModified")inletcreated=(Option.map~f:ISOTimestampString.of_xml)(Xml.childxml_arg0"Created")inletid=(Option.map~f:AppMonitorId.of_xml)(Xml.childxml_arg0"Id")inletname=(Option.map~f:AppMonitorName.of_xml)(Xml.childxml_arg0"Name")inmake?platform?state?lastModified?created?id?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letplatform=field_mapjson__"Platform"AppMonitorPlatform.of_jsoninletstate=field_mapjson__"State"StateEnum.of_jsoninletlastModified=field_mapjson__"LastModified"ISOTimestampString.of_jsoninletcreated=field_mapjson__"Created"ISOTimestampString.of_jsoninletid=field_mapjson__"Id"AppMonitorId.of_jsoninletname=field_mapjson__"Name"AppMonitorName.of_jsoninmake?platform?state?lastModified?created?id?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that includes some data about app monitors and their settings."]moduleAppMonitorConfiguration=structtypenonrect={identityPoolId:IdentityPoolId.toption[@ocaml.doc"The ID of the Amazon Cognito identity pool that is used to authorize the sending of data to RUM."];excludedPages:Pages.toption[@ocaml.doc"A list of URLs in your website or application to exclude from RUM data collection. You can't include both ExcludedPages and IncludedPages in the same operation."];includedPages:Pages.toption[@ocaml.doc"If this app monitor is to collect data from only certain pages in your application, this structure lists those pages. You can't include both ExcludedPages and IncludedPages in the same operation."];favoritePages:FavoritePages.toption[@ocaml.doc"A list of pages in your application that are to be displayed with a \"favorite\" icon in the CloudWatch RUM console."];sessionSampleRate:SessionSampleRate.toption[@ocaml.doc"Specifies the portion of user sessions to use for RUM data collection. Choosing a higher portion gives you more data but also incurs more costs. The range for this value is 0 to 1 inclusive. Setting this to 1 means that 100% of user sessions are sampled, and setting it to 0.1 means that 10% of user sessions are sampled. If you omit this parameter, the default of 0.1 is used, and 10% of sessions will be sampled."];guestRoleArn:Arn.toption[@ocaml.doc"The ARN of the guest IAM role that is attached to the Amazon Cognito identity pool that is used to authorize the sending of data to RUM. It is possible that an app monitor does not have a value for GuestRoleArn. For example, this can happen when you use the console to create an app monitor and you allow CloudWatch RUM to create a new identity pool for Authorization. In this case, GuestRoleArn is not present in the GetAppMonitor response because it is not stored by the service. If this issue affects you, you can take one of the following steps: Use the Cloud Development Kit (CDK) to create an identity pool and the associated IAM role, and use that for your app monitor. Make a separate GetIdentityPoolRoles call to Amazon Cognito to retrieve the GuestRoleArn."];allowCookies:Boolean.toption[@ocaml.doc"If you set this to true, the RUM web client sets two cookies, a session cookie and a user cookie. The cookies allow the RUM web client to collect data relating to the number of users an application has and the behavior of the application across a sequence of events. Cookies are stored in the top-level domain of the current page."];telemetries:Telemetries.toption[@ocaml.doc"An array that lists the types of telemetry data that this app monitor is to collect. errors indicates that RUM collects data about unhandled JavaScript errors raised by your application. performance indicates that RUM collects performance data about how your application and its resources are loaded and rendered. This includes Core Web Vitals. http indicates that RUM collects data about HTTP errors thrown by your application."];enableXRay:Boolean.toption[@ocaml.doc"If you set this to true, RUM enables X-Ray tracing for the user sessions that RUM samples. RUM adds an X-Ray trace header to allowed HTTP requests. It also records an X-Ray segment for allowed HTTP requests. You can see traces and segments from these user sessions in the X-Ray console and the CloudWatch ServiceLens console. For more information, see What is X-Ray?"]}letmake?identityPoolId=fun?excludedPages->fun?includedPages->fun?favoritePages->fun?sessionSampleRate->fun?guestRoleArn->fun?allowCookies->fun?telemetries->fun?enableXRay->fun()->{identityPoolId;excludedPages;includedPages;favoritePages;sessionSampleRate;guestRoleArn;allowCookies;telemetries;enableXRay}letto_valuex=structure_to_value[("IdentityPoolId",(Option.mapx.identityPoolId~f:IdentityPoolId.to_value));("ExcludedPages",(Option.mapx.excludedPages~f:Pages.to_value));("IncludedPages",(Option.mapx.includedPages~f:Pages.to_value));("FavoritePages",(Option.mapx.favoritePages~f:FavoritePages.to_value));("SessionSampleRate",(Option.mapx.sessionSampleRate~f:SessionSampleRate.to_value));("GuestRoleArn",(Option.mapx.guestRoleArn~f:Arn.to_value));("AllowCookies",(Option.mapx.allowCookies~f:Boolean.to_value));("Telemetries",(Option.mapx.telemetries~f:Telemetries.to_value));("EnableXRay",(Option.mapx.enableXRay~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letenableXRay=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"EnableXRay")inlettelemetries=(Option.map~f:Telemetries.of_xml)(Xml.childxml_arg0"Telemetries")inletallowCookies=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"AllowCookies")inletguestRoleArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"GuestRoleArn")inletsessionSampleRate=(Option.map~f:SessionSampleRate.of_xml)(Xml.childxml_arg0"SessionSampleRate")inletfavoritePages=(Option.map~f:FavoritePages.of_xml)(Xml.childxml_arg0"FavoritePages")inletincludedPages=(Option.map~f:Pages.of_xml)(Xml.childxml_arg0"IncludedPages")inletexcludedPages=(Option.map~f:Pages.of_xml)(Xml.childxml_arg0"ExcludedPages")inletidentityPoolId=(Option.map~f:IdentityPoolId.of_xml)(Xml.childxml_arg0"IdentityPoolId")inmake?enableXRay?telemetries?allowCookies?guestRoleArn?sessionSampleRate?favoritePages?includedPages?excludedPages?identityPoolId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letenableXRay=field_mapjson__"EnableXRay"Boolean.of_jsoninlettelemetries=field_mapjson__"Telemetries"Telemetries.of_jsoninletallowCookies=field_mapjson__"AllowCookies"Boolean.of_jsoninletguestRoleArn=field_mapjson__"GuestRoleArn"Arn.of_jsoninletsessionSampleRate=field_mapjson__"SessionSampleRate"SessionSampleRate.of_jsoninletfavoritePages=field_mapjson__"FavoritePages"FavoritePages.of_jsoninletincludedPages=field_mapjson__"IncludedPages"Pages.of_jsoninletexcludedPages=field_mapjson__"ExcludedPages"Pages.of_jsoninletidentityPoolId=field_mapjson__"IdentityPoolId"IdentityPoolId.of_jsoninmake?enableXRay?telemetries?allowCookies?guestRoleArn?sessionSampleRate?favoritePages?includedPages?excludedPages?identityPoolId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This structure contains much of the configuration data for the app monitor."]moduleAppMonitorDomainList=structtypenonrect=AppMonitorDomain.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:5)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AppMonitorDomain.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:AppMonitorDomain.of_xml)letof_jsonj=list_of_json~kind:"AppMonitorDomainList"~of_json:AppMonitorDomain.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCustomEvents=structtypenonrect={status:CustomEventsStatus.toption[@ocaml.doc"Specifies whether this app monitor allows the web client to define and send custom events. The default is for custom events to be DISABLED."]}letmake?status=fun()->{status}letto_valuex=structure_to_value[("Status",(Option.mapx.status~f:CustomEventsStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=(Option.map~f:CustomEventsStatus.of_xml)(Xml.childxml_arg0"Status")inmake?status()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_mapjson__"Status"CustomEventsStatus.of_jsoninmake?status()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that contains information about custom events for this app monitor."]moduleDataStorage=structtypenonrect={cwLog:CwLog.toption[@ocaml.doc"A structure that contains the information about whether the app monitor stores copies of the data that RUM collects in CloudWatch Logs. If it does, this structure also contains the name of the log group."]}letmake?cwLog=fun()->{cwLog}letto_valuex=structure_to_value[("CwLog",(Option.mapx.cwLog~f:CwLog.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcwLog=(Option.map~f:CwLog.of_xml)(Xml.childxml_arg0"CwLog")inmake?cwLog()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcwLog=field_mapjson__"CwLog"CwLog.of_jsoninmake?cwLog()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that contains information about whether this app monitor stores a copy of the telemetry data that RUM collects using CloudWatch Logs."]moduleDeobfuscationConfiguration=structtypenonrect={javaScriptSourceMaps:JavaScriptSourceMaps.toption[@ocaml.doc"A structure that contains the configuration for how an app monitor can unminify JavaScript error stack traces using source maps."]}letmake?javaScriptSourceMaps=fun()->{javaScriptSourceMaps}letto_valuex=structure_to_value[("JavaScriptSourceMaps",(Option.mapx.javaScriptSourceMaps~f:JavaScriptSourceMaps.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letjavaScriptSourceMaps=(Option.map~f:JavaScriptSourceMaps.of_xml)(Xml.childxml_arg0"JavaScriptSourceMaps")inmake?javaScriptSourceMaps()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letjavaScriptSourceMaps=field_mapjson__"JavaScriptSourceMaps"JavaScriptSourceMaps.of_jsoninmake?javaScriptSourceMaps()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that contains the configuration for how an app monitor can deobfuscate stack traces."]moduleTagMap=structtypenonrect=(TagKey.t*TagValue.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((TagKey.of_stringchopped),(TagValue.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(TagKey.to_valuex)|>(funx->(TagValue.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:TagKey.of_string~of_json:TagValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEventData=structtypenonrect=stringletcontext_="EventData"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:"EventData"jletto_json=simple_to_jsonto_valueendmoduleQueryFilter=structtypenonrect={name:QueryFilterKey.toption[@ocaml.doc"The name of a key to search for. The filter returns only the events that match the Name and Values that you specify. Valid values for Name are Browser | Device | Country | Page | OS | EventType | Invert"];values:QueryFilterValueList.toption[@ocaml.doc"The values of the Name that are to be be included in the returned results."]}letmake?name=fun?values->fun()->{name;values}letto_valuex=structure_to_value[("Name",(Option.mapx.name~f:QueryFilterKey.to_value));("Values",(Option.mapx.values~f:QueryFilterValueList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalues=(Option.map~f:QueryFilterValueList.of_xml)(Xml.childxml_arg0"Values")inletname=(Option.map~f:QueryFilterKey.of_xml)(Xml.childxml_arg0"Name")inmake?values?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalues=field_mapjson__"Values"QueryFilterValueList.of_jsoninletname=field_mapjson__"Name"QueryFilterKey.of_jsoninmake?values?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that defines a key and values that you can use to filter the results. The only performance events that are returned are those that have values matching the ones that you specify in one of your QueryFilter structures. For example, you could specify Browser as the Name and specify Chrome,Firefox as the Values to return events generated only from those browsers. Specifying Invert as the Name works as a \"not equal to\" filter. For example, specify Invert as the Name and specify Chrome as the value to return all events except events from user sessions with the Chrome browser."]moduleQueryTimestamp=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_valueendmoduleMetricDefinition=structtypenonrect={metricDefinitionId:MetricDefinitionId.toption[@ocaml.doc"The ID of this metric definition."];name:MetricName.toption[@ocaml.doc"The name of the metric that is defined in this structure."];valueKey:ValueKey.toption[@ocaml.doc"The field within the event object that the metric value is sourced from."];unitLabel:UnitLabel.toption[@ocaml.doc"Use this field only if you are sending this metric to CloudWatch. It defines the CloudWatch metric unit that this metric is measured in."];dimensionKeys:DimensionKeysMap.toption[@ocaml.doc"This field is a map of field paths to dimension names. It defines the dimensions to associate with this metric in CloudWatch The value of this field is used only if the metric destination is CloudWatch. If the metric destination is Evidently, the value of DimensionKeys is ignored."];eventPattern:EventPattern.toption[@ocaml.doc"The pattern that defines the metric. RUM checks events that happen in a user's session against the pattern, and events that match the pattern are sent to the metric destination. If the metrics destination is CloudWatch and the event also matches a value in DimensionKeys, then the metric is published with the specified dimensions."];namespace:Namespace.toption[@ocaml.doc"If this metric definition is for a custom metric instead of an extended metric, this field displays the metric namespace that the custom metric is published to."]}letmake?metricDefinitionId=fun?name->fun?valueKey->fun?unitLabel->fun?dimensionKeys->fun?eventPattern->fun?namespace->fun()->{metricDefinitionId;name;valueKey;unitLabel;dimensionKeys;eventPattern;namespace}letto_valuex=structure_to_value[("MetricDefinitionId",(Option.mapx.metricDefinitionId~f:MetricDefinitionId.to_value));("Name",(Option.mapx.name~f:MetricName.to_value));("ValueKey",(Option.mapx.valueKey~f:ValueKey.to_value));("UnitLabel",(Option.mapx.unitLabel~f:UnitLabel.to_value));("DimensionKeys",(Option.mapx.dimensionKeys~f:DimensionKeysMap.to_value));("EventPattern",(Option.mapx.eventPattern~f:EventPattern.to_value));("Namespace",(Option.mapx.namespace~f:Namespace.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnamespace=(Option.map~f:Namespace.of_xml)(Xml.childxml_arg0"Namespace")inleteventPattern=(Option.map~f:EventPattern.of_xml)(Xml.childxml_arg0"EventPattern")inletdimensionKeys=(Option.map~f:DimensionKeysMap.of_xml)(Xml.childxml_arg0"DimensionKeys")inletunitLabel=(Option.map~f:UnitLabel.of_xml)(Xml.childxml_arg0"UnitLabel")inletvalueKey=(Option.map~f:ValueKey.of_xml)(Xml.childxml_arg0"ValueKey")inletname=(Option.map~f:MetricName.of_xml)(Xml.childxml_arg0"Name")inletmetricDefinitionId=(Option.map~f:MetricDefinitionId.of_xml)(Xml.childxml_arg0"MetricDefinitionId")inmake?namespace?eventPattern?dimensionKeys?unitLabel?valueKey?name?metricDefinitionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnamespace=field_mapjson__"Namespace"Namespace.of_jsoninleteventPattern=field_mapjson__"EventPattern"EventPattern.of_jsoninletdimensionKeys=field_mapjson__"DimensionKeys"DimensionKeysMap.of_jsoninletunitLabel=field_mapjson__"UnitLabel"UnitLabel.of_jsoninletvalueKey=field_mapjson__"ValueKey"ValueKey.of_jsoninletname=field_mapjson__"Name"MetricName.of_jsoninletmetricDefinitionId=field_mapjson__"MetricDefinitionId"MetricDefinitionId.of_jsoninmake?namespace?eventPattern?dimensionKeys?unitLabel?valueKey?name?metricDefinitionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that displays the definition of one extended metric that RUM sends to CloudWatch or CloudWatch Evidently. For more information, see Additional metrics that you can send to CloudWatch and CloudWatch Evidently."]moduleBatchDeleteRumMetricDefinitionsError=structtypenonrect={metricDefinitionId:MetricDefinitionId.toption[@ocaml.doc"The ID of the metric definition that caused this error."];errorCode:String_.toption[@ocaml.doc"The error code."];errorMessage:String_.toption[@ocaml.doc"The error message for this metric definition."]}letmake?metricDefinitionId=fun?errorCode->fun?errorMessage->fun()->{metricDefinitionId;errorCode;errorMessage}letto_valuex=structure_to_value[("MetricDefinitionId",(Option.mapx.metricDefinitionId~f:MetricDefinitionId.to_value));("ErrorCode",(Option.mapx.errorCode~f:String_.to_value));("ErrorMessage",(Option.mapx.errorMessage~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorMessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ErrorMessage")inleterrorCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ErrorCode")inletmetricDefinitionId=(Option.map~f:MetricDefinitionId.of_xml)(Xml.childxml_arg0"MetricDefinitionId")inmake?errorMessage?errorCode?metricDefinitionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorMessage=field_mapjson__"ErrorMessage"String_.of_jsoninleterrorCode=field_mapjson__"ErrorCode"String_.of_jsoninletmetricDefinitionId=field_mapjson__"MetricDefinitionId"MetricDefinitionId.of_jsoninmake?errorMessage?errorCode?metricDefinitionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that defines one error caused by a BatchCreateRumMetricsDefinitions operation."]moduleBatchCreateRumMetricDefinitionsError=structtypenonrect={metricDefinition:MetricDefinitionRequest.toption[@ocaml.doc"The metric definition that caused this error."];errorCode:String_.toption[@ocaml.doc"The error code."];errorMessage:String_.toption[@ocaml.doc"The error message for this metric definition."]}letmake?metricDefinition=fun?errorCode->fun?errorMessage->fun()->{metricDefinition;errorCode;errorMessage}letto_valuex=structure_to_value[("MetricDefinition",(Option.mapx.metricDefinition~f:MetricDefinitionRequest.to_value));("ErrorCode",(Option.mapx.errorCode~f:String_.to_value));("ErrorMessage",(Option.mapx.errorMessage~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorMessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ErrorMessage")inleterrorCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ErrorCode")inletmetricDefinition=(Option.map~f:MetricDefinitionRequest.of_xml)(Xml.childxml_arg0"MetricDefinition")inmake?errorMessage?errorCode?metricDefinition()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorMessage=field_mapjson__"ErrorMessage"String_.of_jsoninleterrorCode=field_mapjson__"ErrorCode"String_.of_jsoninletmetricDefinition=field_mapjson__"MetricDefinition"MetricDefinitionRequest.of_jsoninmake?errorMessage?errorCode?metricDefinition()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that defines one error caused by a BatchCreateRumMetricsDefinitions operation."]moduleAccessDeniedException=structtypenonrect={message:String_.toption}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"You don't have sufficient permissions to perform this action."]moduleConflictException=structtypenonrect={message:String_.toption;resourceName:String_.toption[@ocaml.doc"The name of the resource that is associated with the error."];resourceType:String_.toption[@ocaml.doc"The type of the resource that is associated with the error."]}letmake?message=fun?resourceName->fun?resourceType->fun()->{message;resourceName;resourceType}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("resourceName",(Option.mapx.resourceName~f:String_.to_value));("resourceType",(Option.mapx.resourceType~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceType")inletresourceName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceName")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?resourceType?resourceName?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceType=field_mapjson__"resourceType"String_.of_jsoninletresourceName=field_mapjson__"resourceName"String_.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?resourceType?resourceName?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This operation attempted to create a resource that already exists."]moduleInternalServerException=structtypenonrect={message:String_.toption;retryAfterSeconds:Integer.toption[@ocaml.doc"The value of a parameter in the request caused an error."]}letmake?message=fun?retryAfterSeconds->fun()->{message;retryAfterSeconds}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("Retry-After",(Option.mapx.retryAfterSeconds~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letretryAfterSeconds=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"Retry-After")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?retryAfterSeconds?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letretryAfterSeconds=field_mapjson__"retryAfterSeconds"Integer.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?retryAfterSeconds?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Internal service exception."]moduleResourceNotFoundException=structtypenonrect={message:String_.toption;resourceName:String_.toption[@ocaml.doc"The name of the resource that is associated with the error."];resourceType:String_.toption[@ocaml.doc"The type of the resource that is associated with the error."]}letmake?message=fun?resourceName->fun?resourceType->fun()->{message;resourceName;resourceType}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("resourceName",(Option.mapx.resourceName~f:String_.to_value));("resourceType",(Option.mapx.resourceType~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceType")inletresourceName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceName")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?resourceType?resourceName?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceType=field_mapjson__"resourceType"String_.of_jsoninletresourceName=field_mapjson__"resourceName"String_.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?resourceType?resourceName?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Resource not found."]moduleServiceQuotaExceededException=structtypenonrect={message:String_.toption}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"This request exceeds a service quota."]moduleThrottlingException=structtypenonrect={message:String_.toption;serviceCode:String_.toption[@ocaml.doc"The ID of the service that is associated with the error."];quotaCode:String_.toption[@ocaml.doc"The ID of the service quota that was exceeded."];retryAfterSeconds:Integer.toption[@ocaml.doc"The value of a parameter in the request caused an error."]}letmake?message=fun?serviceCode->fun?quotaCode->fun?retryAfterSeconds->fun()->{message;serviceCode;quotaCode;retryAfterSeconds}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("serviceCode",(Option.mapx.serviceCode~f:String_.to_value));("quotaCode",(Option.mapx.quotaCode~f:String_.to_value));("Retry-After",(Option.mapx.retryAfterSeconds~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letretryAfterSeconds=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"Retry-After")inletquotaCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"quotaCode")inletserviceCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"serviceCode")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?retryAfterSeconds?quotaCode?serviceCode?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letretryAfterSeconds=field_mapjson__"retryAfterSeconds"Integer.of_jsoninletquotaCode=field_mapjson__"quotaCode"String_.of_jsoninletserviceCode=field_mapjson__"serviceCode"String_.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?retryAfterSeconds?quotaCode?serviceCode?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request was throttled because of quota limits."]moduleValidationException=structtypenonrect={message:String_.toption}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"One of the arguments for the request is not valid."]moduleTagKeyList=structtypenonrect=TagKey.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TagKey.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:TagKey.of_xml)letof_jsonj=list_of_json~kind:"TagKeyList"~of_json:TagKey.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAlias=structtypenonrect=stringletcontext_="Alias"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:255)>>=(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:"Alias"jletto_json=simple_to_jsonto_valueendmoduleAppMonitorDetails=structtypenonrect={name:String_.toption[@ocaml.doc"The name of the app monitor."];id:String_.toption[@ocaml.doc"The unique ID of the app monitor."];version:String_.toption[@ocaml.doc"The version of the app monitor."]}letmake?name=fun?id->fun?version->fun()->{name;id;version}letto_valuex=structure_to_value[("name",(Option.mapx.name~f:String_.to_value));("id",(Option.mapx.id~f:String_.to_value));("version",(Option.mapx.version~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letversion=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"version")inletid=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"id")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"name")inmake?version?id?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letversion=field_mapjson__"version"String_.of_jsoninletid=field_mapjson__"id"String_.of_jsoninletname=field_mapjson__"name"String_.of_jsoninmake?version?id?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that contains information about the RUM app monitor."]modulePutRumEventsRequestBatchIdString=structtypenonrect=stringletcontext_="PutRumEventsRequestBatchIdString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:36)>>=(fun()->(check_string_maxi~max:36)>>=(fun()->check_patterni~pattern:"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PutRumEventsRequestBatchIdString"jletto_json=simple_to_jsonto_valueendmodulePutRumEventsRequestIdString=structtypenonrect=stringletcontext_="PutRumEventsRequestIdString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:36)>>=(fun()->(check_string_maxi~max:36)>>=(fun()->check_patterni~pattern:"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PutRumEventsRequestIdString"jletto_json=simple_to_jsonto_valueendmoduleRumEventList=structtypenonrect=RumEvent.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:RumEvent.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:RumEvent.of_xml)letof_jsonj=list_of_json~kind:"RumEventList"~of_json:RumEvent.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUserDetails=structtypenonrect={userId:UserDetailsUserIdString.toption[@ocaml.doc"The ID of the user for this user session. This ID is generated by RUM and does not include any personally identifiable information about the user."];sessionId:UserDetailsSessionIdString.toption[@ocaml.doc"The session ID that the performance events are from."]}letmake?userId=fun?sessionId->fun()->{userId;sessionId}letto_valuex=structure_to_value[("userId",(Option.mapx.userId~f:UserDetailsUserIdString.to_value));("sessionId",(Option.mapx.sessionId~f:UserDetailsSessionIdString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsessionId=(Option.map~f:UserDetailsSessionIdString.of_xml)(Xml.childxml_arg0"sessionId")inletuserId=(Option.map~f:UserDetailsUserIdString.of_xml)(Xml.childxml_arg0"userId")inmake?sessionId?userId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsessionId=field_mapjson__"sessionId"UserDetailsSessionIdString.of_jsoninletuserId=field_mapjson__"userId"UserDetailsUserIdString.of_jsoninmake?sessionId?userId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that contains information about the user session that this batch of events was collected from."]moduleInvalidPolicyRevisionIdException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The policy revision ID that you provided doeesn't match the latest policy revision ID."]moduleMalformedPolicyDocumentException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The policy document that you specified is not formatted correctly."]modulePolicyRevisionId=structtypenonrect=stringletcontext_="PolicyRevisionId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:255)>>=(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:"PolicyRevisionId"jletto_json=simple_to_jsonto_valueendmodulePolicySizeLimitExceededException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The policy document is too large. The limit is 4 KB."]moduleMetricDestinationSummaryList=structtypenonrect=MetricDestinationSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:MetricDestinationSummary.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:MetricDestinationSummary.of_xml)letof_jsonj=list_of_json~kind:"MetricDestinationSummaryList"~of_json:MetricDestinationSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMaxResultsInteger=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MaxResultsInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleAppMonitorSummaryList=structtypenonrect=AppMonitorSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AppMonitorSummary.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:AppMonitorSummary.of_xml)letof_jsonj=list_of_json~kind:"AppMonitorSummaryList"~of_json:AppMonitorSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePolicyNotFoundException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The resource-based policy doesn't exist on this app monitor."]moduleAppMonitor=structtypenonrect={name:AppMonitorName.toption[@ocaml.doc"The name of the app monitor."];domain:AppMonitorDomain.toption[@ocaml.doc"The top-level internet domain name for which your application has administrative authority."];domainList:AppMonitorDomainList.toption[@ocaml.doc"List the domain names for which your application has administrative authority."];id:AppMonitorId.toption[@ocaml.doc"The unique ID of this app monitor."];created:ISOTimestampString.toption[@ocaml.doc"The date and time that this app monitor was created."];lastModified:ISOTimestampString.toption[@ocaml.doc"The date and time of the most recent changes to this app monitor's configuration."];tags:TagMap.toption[@ocaml.doc"The list of tag keys and values associated with this app monitor."];state:StateEnum.toption[@ocaml.doc"The current state of the app monitor."];appMonitorConfiguration:AppMonitorConfiguration.toption[@ocaml.doc"A structure that contains much of the configuration data for the app monitor."];dataStorage:DataStorage.toption[@ocaml.doc"A structure that contains information about whether this app monitor stores a copy of the telemetry data that RUM collects using CloudWatch Logs."];customEvents:CustomEvents.toption[@ocaml.doc"Specifies whether this app monitor allows the web client to define and send custom events. For more information about custom events, see Send custom events."];deobfuscationConfiguration:DeobfuscationConfiguration.toption[@ocaml.doc"A structure that contains the configuration for how an app monitor can deobfuscate stack traces."];platform:AppMonitorPlatform.toption[@ocaml.doc"The platform type for this app monitor. Valid values are Web for web applications , Android for Android applications, and iOS for IOS applications."]}letmake?name=fun?domain->fun?domainList->fun?id->fun?created->fun?lastModified->fun?tags->fun?state->fun?appMonitorConfiguration->fun?dataStorage->fun?customEvents->fun?deobfuscationConfiguration->fun?platform->fun()->{name;domain;domainList;id;created;lastModified;tags;state;appMonitorConfiguration;dataStorage;customEvents;deobfuscationConfiguration;platform}letto_valuex=structure_to_value[("Name",(Option.mapx.name~f:AppMonitorName.to_value));("Domain",(Option.mapx.domain~f:AppMonitorDomain.to_value));("DomainList",(Option.mapx.domainList~f:AppMonitorDomainList.to_value));("Id",(Option.mapx.id~f:AppMonitorId.to_value));("Created",(Option.mapx.created~f:ISOTimestampString.to_value));("LastModified",(Option.mapx.lastModified~f:ISOTimestampString.to_value));("Tags",(Option.mapx.tags~f:TagMap.to_value));("State",(Option.mapx.state~f:StateEnum.to_value));("AppMonitorConfiguration",(Option.mapx.appMonitorConfiguration~f:AppMonitorConfiguration.to_value));("DataStorage",(Option.mapx.dataStorage~f:DataStorage.to_value));("CustomEvents",(Option.mapx.customEvents~f:CustomEvents.to_value));("DeobfuscationConfiguration",(Option.mapx.deobfuscationConfiguration~f:DeobfuscationConfiguration.to_value));("Platform",(Option.mapx.platform~f:AppMonitorPlatform.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letplatform=(Option.map~f:AppMonitorPlatform.of_xml)(Xml.childxml_arg0"Platform")inletdeobfuscationConfiguration=(Option.map~f:DeobfuscationConfiguration.of_xml)(Xml.childxml_arg0"DeobfuscationConfiguration")inletcustomEvents=(Option.map~f:CustomEvents.of_xml)(Xml.childxml_arg0"CustomEvents")inletdataStorage=(Option.map~f:DataStorage.of_xml)(Xml.childxml_arg0"DataStorage")inletappMonitorConfiguration=(Option.map~f:AppMonitorConfiguration.of_xml)(Xml.childxml_arg0"AppMonitorConfiguration")inletstate=(Option.map~f:StateEnum.of_xml)(Xml.childxml_arg0"State")inlettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"Tags")inletlastModified=(Option.map~f:ISOTimestampString.of_xml)(Xml.childxml_arg0"LastModified")inletcreated=(Option.map~f:ISOTimestampString.of_xml)(Xml.childxml_arg0"Created")inletid=(Option.map~f:AppMonitorId.of_xml)(Xml.childxml_arg0"Id")inletdomainList=(Option.map~f:AppMonitorDomainList.of_xml)(Xml.childxml_arg0"DomainList")inletdomain=(Option.map~f:AppMonitorDomain.of_xml)(Xml.childxml_arg0"Domain")inletname=(Option.map~f:AppMonitorName.of_xml)(Xml.childxml_arg0"Name")inmake?platform?deobfuscationConfiguration?customEvents?dataStorage?appMonitorConfiguration?state?tags?lastModified?created?id?domainList?domain?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letplatform=field_mapjson__"Platform"AppMonitorPlatform.of_jsoninletdeobfuscationConfiguration=field_mapjson__"DeobfuscationConfiguration"DeobfuscationConfiguration.of_jsoninletcustomEvents=field_mapjson__"CustomEvents"CustomEvents.of_jsoninletdataStorage=field_mapjson__"DataStorage"DataStorage.of_jsoninletappMonitorConfiguration=field_mapjson__"AppMonitorConfiguration"AppMonitorConfiguration.of_jsoninletstate=field_mapjson__"State"StateEnum.of_jsoninlettags=field_mapjson__"Tags"TagMap.of_jsoninletlastModified=field_mapjson__"LastModified"ISOTimestampString.of_jsoninletcreated=field_mapjson__"Created"ISOTimestampString.of_jsoninletid=field_mapjson__"Id"AppMonitorId.of_jsoninletdomainList=field_mapjson__"DomainList"AppMonitorDomainList.of_jsoninletdomain=field_mapjson__"Domain"AppMonitorDomain.of_jsoninletname=field_mapjson__"Name"AppMonitorName.of_jsoninmake?platform?deobfuscationConfiguration?customEvents?dataStorage?appMonitorConfiguration?state?tags?lastModified?created?id?domainList?domain?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A RUM app monitor collects telemetry data from your application and sends that data to RUM. The data includes performance and reliability information such as page load time, client-side errors, and user behavior."]moduleEventDataList=structtypenonrect=EventData.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:EventData.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:EventData.of_xml)letof_jsonj=list_of_json~kind:"EventDataList"~of_json:EventData.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleToken=structtypenonrect=stringletcontext_="Token"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:"Token"jletto_json=simple_to_jsonto_valueendmoduleMaxQueryResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:0));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 MaxQueryResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleQueryFilters=structtypenonrect=QueryFilter.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:QueryFilter.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:QueryFilter.of_xml)letof_jsonj=list_of_json~kind:"QueryFilters"~of_json:QueryFilter.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTimeRange=structtypenonrect={after:QueryTimestamp.t[@ocaml.doc"The beginning of the time range to retrieve performance events from."];before:QueryTimestamp.toption[@ocaml.doc"The end of the time range to retrieve performance events from. If you omit this, the time range extends to the time that this operation is performed."]}letcontext_="TimeRange"letmake?before=fun~after->fun()->{before;after}letto_valuex=structure_to_value[("After",(Some(QueryTimestamp.to_valuex.after)));("Before",(Option.mapx.before~f:QueryTimestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbefore=(Option.map~f:QueryTimestamp.of_xml)(Xml.childxml_arg0"Before")inletafter=QueryTimestamp.of_xml(Xml.child_exn~context:context_xml_arg0"After")inmake?before~after()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbefore=field_mapjson__"Before"QueryTimestamp.of_jsoninletafter=field_map_exnjson__"After"QueryTimestamp.of_jsoninmake?before~after()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that defines the time range that you want to retrieve results from."]moduleMetricDefinitions=structtypenonrect=MetricDefinition.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:MetricDefinition.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:MetricDefinition.of_xml)letof_jsonj=list_of_json~kind:"MetricDefinitions"~of_json:MetricDefinition.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBatchDeleteRumMetricDefinitionsErrors=structtypenonrect=BatchDeleteRumMetricDefinitionsError.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:BatchDeleteRumMetricDefinitionsError.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:BatchDeleteRumMetricDefinitionsError.of_xml)letof_jsonj=list_of_json~kind:"BatchDeleteRumMetricDefinitionsErrors"~of_json:BatchDeleteRumMetricDefinitionsError.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMetricDefinitionIds=structtypenonrect=MetricDefinitionId.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:MetricDefinitionId.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:MetricDefinitionId.of_xml)letof_jsonj=list_of_json~kind:"MetricDefinitionIds"~of_json:MetricDefinitionId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBatchCreateRumMetricDefinitionsErrors=structtypenonrect=BatchCreateRumMetricDefinitionsError.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:BatchCreateRumMetricDefinitionsError.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:BatchCreateRumMetricDefinitionsError.of_xml)letof_jsonj=list_of_json~kind:"BatchCreateRumMetricDefinitionsErrors"~of_json:BatchCreateRumMetricDefinitionsError.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMetricDefinitionsRequest=structtypenonrect=MetricDefinitionRequest.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:MetricDefinitionRequest.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:MetricDefinitionRequest.of_xml)letof_jsonj=list_of_json~kind:"MetricDefinitionsRequest"~of_json:MetricDefinitionRequest.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUpdateRumMetricDefinitionResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.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"Modifies one existing metric definition for CloudWatch RUM extended metrics. For more information about extended metrics, see BatchCreateRumMetricsDefinitions."]moduleUpdateRumMetricDefinitionRequest=structtypenonrect={appMonitorName:AppMonitorName.t[@ocaml.doc"The name of the CloudWatch RUM app monitor that sends these metrics."];destination:MetricDestination.t[@ocaml.doc"The destination to send the metrics to. Valid values are CloudWatch and Evidently. If you specify Evidently, you must also specify the ARN of the CloudWatchEvidently experiment that will receive the metrics and an IAM role that has permission to write to the experiment."];destinationArn:DestinationArn.toption[@ocaml.doc"This parameter is required if Destination is Evidently. If Destination is CloudWatch, do not use this parameter. This parameter specifies the ARN of the Evidently experiment that is to receive the metrics. You must have already defined this experiment as a valid destination. For more information, see PutRumMetricsDestination."];metricDefinition:MetricDefinitionRequest.t[@ocaml.doc"A structure that contains the new definition that you want to use for this metric."];metricDefinitionId:MetricDefinitionId.t[@ocaml.doc"The ID of the metric definition to update."]}letcontext_="UpdateRumMetricDefinitionRequest"letmake?destinationArn=fun~appMonitorName->fun~destination->fun~metricDefinition->fun~metricDefinitionId->fun()->{destinationArn;appMonitorName;destination;metricDefinition;metricDefinitionId}letto_valuex=structure_to_value[("AppMonitorName",(Some(AppMonitorName.to_valuex.appMonitorName)));("Destination",(Some(MetricDestination.to_valuex.destination)));("DestinationArn",(Option.mapx.destinationArn~f:DestinationArn.to_value));("MetricDefinition",(Some(MetricDefinitionRequest.to_valuex.metricDefinition)));("MetricDefinitionId",(Some(MetricDefinitionId.to_valuex.metricDefinitionId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmetricDefinitionId=MetricDefinitionId.of_xml(Xml.child_exn~context:context_xml_arg0"MetricDefinitionId")inletmetricDefinition=MetricDefinitionRequest.of_xml(Xml.child_exn~context:context_xml_arg0"MetricDefinition")inletdestinationArn=(Option.map~f:DestinationArn.of_xml)(Xml.childxml_arg0"DestinationArn")inletdestination=MetricDestination.of_xml(Xml.child_exn~context:context_xml_arg0"Destination")inletappMonitorName=AppMonitorName.of_xml(Xml.child_exn~context:context_xml_arg0"AppMonitorName")inmake~metricDefinitionId~metricDefinition?destinationArn~destination~appMonitorName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmetricDefinitionId=field_map_exnjson__"MetricDefinitionId"MetricDefinitionId.of_jsoninletmetricDefinition=field_map_exnjson__"MetricDefinition"MetricDefinitionRequest.of_jsoninletdestinationArn=field_mapjson__"DestinationArn"DestinationArn.of_jsoninletdestination=field_map_exnjson__"Destination"MetricDestination.of_jsoninletappMonitorName=field_map_exnjson__"AppMonitorName"AppMonitorName.of_jsoninmake~metricDefinitionId~metricDefinition?destinationArn~destination~appMonitorName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Modifies one existing metric definition for CloudWatch RUM extended metrics. For more information about extended metrics, see BatchCreateRumMetricsDefinitions."]moduleUpdateAppMonitorResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.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"Updates the configuration of an existing app monitor. When you use this operation, only the parts of the app monitor configuration that you specify in this operation are changed. For any parameters that you omit, the existing values are kept. You can't use this operation to change the tags of an existing app monitor. To change the tags of an existing app monitor, use TagResource. To create a new app monitor, use CreateAppMonitor. After you update an app monitor, sign in to the CloudWatch RUM console to get the updated JavaScript code snippet to add to your web application. For more information, see How do I find a code snippet that I've already generated?"]moduleUpdateAppMonitorRequest=structtypenonrect={name:AppMonitorName.t[@ocaml.doc"The name of the app monitor to update."];domain:AppMonitorDomain.toption[@ocaml.doc"The top-level internet domain name for which your application has administrative authority."];domainList:AppMonitorDomainList.toption[@ocaml.doc"List the domain names for which your application has administrative authority. The UpdateAppMonitor allows either the domain or the domain list."];appMonitorConfiguration:AppMonitorConfiguration.toption[@ocaml.doc"A structure that contains much of the configuration data for the app monitor. If you are using Amazon Cognito for authorization, you must include this structure in your request, and it must include the ID of the Amazon Cognito identity pool to use for authorization. If you don't include AppMonitorConfiguration, you must set up your own authorization method. For more information, see Authorize your application to send data to Amazon Web Services."];cwLogEnabled:Boolean.toption[@ocaml.doc"Data collected by RUM is kept by RUM for 30 days and then deleted. This parameter specifies whether RUM sends a copy of this telemetry data to Amazon CloudWatch Logs in your account. This enables you to keep the telemetry data for more than 30 days, but it does incur Amazon CloudWatch Logs charges."];customEvents:CustomEvents.toption[@ocaml.doc"Specifies whether this app monitor allows the web client to define and send custom events. The default is for custom events to be DISABLED. For more information about custom events, see Send custom events."];deobfuscationConfiguration:DeobfuscationConfiguration.toption[@ocaml.doc"A structure that contains the configuration for how an app monitor can deobfuscate stack traces."]}letcontext_="UpdateAppMonitorRequest"letmake?domain=fun?domainList->fun?appMonitorConfiguration->fun?cwLogEnabled->fun?customEvents->fun?deobfuscationConfiguration->fun~name->fun()->{domain;domainList;appMonitorConfiguration;cwLogEnabled;customEvents;deobfuscationConfiguration;name}letto_valuex=structure_to_value[("Name",(Some(AppMonitorName.to_valuex.name)));("Domain",(Option.mapx.domain~f:AppMonitorDomain.to_value));("DomainList",(Option.mapx.domainList~f:AppMonitorDomainList.to_value));("AppMonitorConfiguration",(Option.mapx.appMonitorConfiguration~f:AppMonitorConfiguration.to_value));("CwLogEnabled",(Option.mapx.cwLogEnabled~f:Boolean.to_value));("CustomEvents",(Option.mapx.customEvents~f:CustomEvents.to_value));("DeobfuscationConfiguration",(Option.mapx.deobfuscationConfiguration~f:DeobfuscationConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdeobfuscationConfiguration=(Option.map~f:DeobfuscationConfiguration.of_xml)(Xml.childxml_arg0"DeobfuscationConfiguration")inletcustomEvents=(Option.map~f:CustomEvents.of_xml)(Xml.childxml_arg0"CustomEvents")inletcwLogEnabled=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"CwLogEnabled")inletappMonitorConfiguration=(Option.map~f:AppMonitorConfiguration.of_xml)(Xml.childxml_arg0"AppMonitorConfiguration")inletdomainList=(Option.map~f:AppMonitorDomainList.of_xml)(Xml.childxml_arg0"DomainList")inletdomain=(Option.map~f:AppMonitorDomain.of_xml)(Xml.childxml_arg0"Domain")inletname=AppMonitorName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake?deobfuscationConfiguration?customEvents?cwLogEnabled?appMonitorConfiguration?domainList?domain~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdeobfuscationConfiguration=field_mapjson__"DeobfuscationConfiguration"DeobfuscationConfiguration.of_jsoninletcustomEvents=field_mapjson__"CustomEvents"CustomEvents.of_jsoninletcwLogEnabled=field_mapjson__"CwLogEnabled"Boolean.of_jsoninletappMonitorConfiguration=field_mapjson__"AppMonitorConfiguration"AppMonitorConfiguration.of_jsoninletdomainList=field_mapjson__"DomainList"AppMonitorDomainList.of_jsoninletdomain=field_mapjson__"Domain"AppMonitorDomain.of_jsoninletname=field_map_exnjson__"Name"AppMonitorName.of_jsoninmake?deobfuscationConfiguration?customEvents?cwLogEnabled?appMonitorConfiguration?domainList?domain~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the configuration of an existing app monitor. When you use this operation, only the parts of the app monitor configuration that you specify in this operation are changed. For any parameters that you omit, the existing values are kept. You can't use this operation to change the tags of an existing app monitor. To change the tags of an existing app monitor, use TagResource. To create a new app monitor, use CreateAppMonitor. After you update an app monitor, sign in to the CloudWatch RUM console to get the updated JavaScript code snippet to add to your web application. For more information, see How do I find a code snippet that I've already generated?"]moduleUntagResourceResponse=structtypenonrect=unittypenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes one or more tags from the specified resource."]moduleUntagResourceRequest=structtypenonrect={resourceArn:Arn.t[@ocaml.doc"The ARN of the CloudWatch RUM resource that you're removing tags from."];tagKeys:TagKeyList.t[@ocaml.doc"The list of tag keys to remove from the resource."]}letcontext_="UntagResourceRequest"letmake~resourceArn=fun~tagKeys->fun()->{resourceArn;tagKeys}letto_valuex=structure_to_value[("ResourceArn",(Some(Arn.to_valuex.resourceArn)));("tagKeys",(Some(TagKeyList.to_valuex.tagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagKeys=TagKeyList.of_xml(Xml.child_exn~context:context_xml_arg0"tagKeys")inletresourceArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inmake~tagKeys~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagKeys=field_map_exnjson__"TagKeys"TagKeyList.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"Arn.of_jsoninmake~tagKeys~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes one or more tags from the specified resource."]moduleTagResourceResponse=structtypenonrect=unittypenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Assigns one or more tags (key-value pairs) to the specified CloudWatch RUM resource. Currently, the only resources that can be tagged app monitors. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values. Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters. You can use the TagResource action with a resource that already has tags. If you specify a new tag key for the resource, this tag is appended to the list of tags associated with the alarm. If you specify a tag key that is already associated with the resource, the new tag value that you specify replaces the previous value for that tag. You can associate as many as 50 tags with a resource. For more information, see Tagging Amazon Web Services resources."]moduleTagResourceRequest=structtypenonrect={resourceArn:Arn.t[@ocaml.doc"The ARN of the CloudWatch RUM resource that you're adding tags to."];tags:TagMap.t[@ocaml.doc"The list of key-value pairs to associate with the resource."]}letcontext_="TagResourceRequest"letmake~resourceArn=fun~tags->fun()->{resourceArn;tags}letto_valuex=structure_to_value[("ResourceArn",(Some(Arn.to_valuex.resourceArn)));("Tags",(Some(TagMap.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=TagMap.of_xml(Xml.child_exn~context:context_xml_arg0"Tags")inletresourceArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inmake~tags~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_map_exnjson__"Tags"TagMap.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"Arn.of_jsoninmake~tags~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Assigns one or more tags (key-value pairs) to the specified CloudWatch RUM resource. Currently, the only resources that can be tagged app monitors. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values. Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters. You can use the TagResource action with a resource that already has tags. If you specify a new tag key for the resource, this tag is appended to the list of tags associated with the alarm. If you specify a tag key that is already associated with the resource, the new tag value that you specify replaces the previous value for that tag. You can associate as many as 50 tags with a resource. For more information, see Tagging Amazon Web Services resources."]modulePutRumMetricsDestinationResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.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"Creates or updates a destination to receive extended metrics from CloudWatch RUM. You can send extended metrics to CloudWatch or to a CloudWatch Evidently experiment. For more information about extended metrics, see BatchCreateRumMetricDefinitions."]modulePutRumMetricsDestinationRequest=structtypenonrect={appMonitorName:AppMonitorName.t[@ocaml.doc"The name of the CloudWatch RUM app monitor that will send the metrics."];destination:MetricDestination.t[@ocaml.doc"Defines the destination to send the metrics to. Valid values are CloudWatch and Evidently. If you specify Evidently, you must also specify the ARN of the CloudWatchEvidently experiment that is to be the destination and an IAM role that has permission to write to the experiment."];destinationArn:DestinationArn.toption[@ocaml.doc"Use this parameter only if Destination is Evidently. This parameter specifies the ARN of the Evidently experiment that will receive the extended metrics."];iamRoleArn:IamRoleArn.toption[@ocaml.doc"This parameter is required if Destination is Evidently. If Destination is CloudWatch, don't use this parameter. This parameter specifies the ARN of an IAM role that RUM will assume to write to the Evidently experiment that you are sending metrics to. This role must have permission to write to that experiment. If you specify this parameter, you must be signed on to a role that has PassRole permissions attached to it, to allow the role to be passed. The CloudWatchAmazonCloudWatchRUMFullAccess policy doesn't include PassRole permissions."]}letcontext_="PutRumMetricsDestinationRequest"letmake?destinationArn=fun?iamRoleArn->fun~appMonitorName->fun~destination->fun()->{destinationArn;iamRoleArn;appMonitorName;destination}letto_valuex=structure_to_value[("AppMonitorName",(Some(AppMonitorName.to_valuex.appMonitorName)));("Destination",(Some(MetricDestination.to_valuex.destination)));("DestinationArn",(Option.mapx.destinationArn~f:DestinationArn.to_value));("IamRoleArn",(Option.mapx.iamRoleArn~f:IamRoleArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letiamRoleArn=(Option.map~f:IamRoleArn.of_xml)(Xml.childxml_arg0"IamRoleArn")inletdestinationArn=(Option.map~f:DestinationArn.of_xml)(Xml.childxml_arg0"DestinationArn")inletdestination=MetricDestination.of_xml(Xml.child_exn~context:context_xml_arg0"Destination")inletappMonitorName=AppMonitorName.of_xml(Xml.child_exn~context:context_xml_arg0"AppMonitorName")inmake?iamRoleArn?destinationArn~destination~appMonitorName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letiamRoleArn=field_mapjson__"IamRoleArn"IamRoleArn.of_jsoninletdestinationArn=field_mapjson__"DestinationArn"DestinationArn.of_jsoninletdestination=field_map_exnjson__"Destination"MetricDestination.of_jsoninletappMonitorName=field_map_exnjson__"AppMonitorName"AppMonitorName.of_jsoninmake?iamRoleArn?destinationArn~destination~appMonitorName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates or updates a destination to receive extended metrics from CloudWatch RUM. You can send extended metrics to CloudWatch or to a CloudWatch Evidently experiment. For more information about extended metrics, see BatchCreateRumMetricDefinitions."]modulePutRumEventsResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.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"Sends telemetry events about your application performance and user behavior to CloudWatch RUM. The code snippet that RUM generates for you to add to your application includes PutRumEvents operations to send this data to RUM. Each PutRumEvents operation can send a batch of events from one user session."]modulePutRumEventsRequest=structtypenonrect={id:PutRumEventsRequestIdString.t[@ocaml.doc"The ID of the app monitor that is sending this data."];batchId:PutRumEventsRequestBatchIdString.t[@ocaml.doc"A unique identifier for this batch of RUM event data."];appMonitorDetails:AppMonitorDetails.t[@ocaml.doc"A structure that contains information about the app monitor that collected this telemetry information."];userDetails:UserDetails.t[@ocaml.doc"A structure that contains information about the user session that this batch of events was collected from."];rumEvents:RumEventList.t[@ocaml.doc"An array of structures that contain the telemetry event data."];alias:Alias.toption[@ocaml.doc"If the app monitor uses a resource-based policy that requires PutRumEvents requests to specify a certain alias, specify that alias here. This alias will be compared to the rum:alias context key in the resource-based policy. For more information, see Using resource-based policies with CloudWatch RUM."]}letcontext_="PutRumEventsRequest"letmake?alias=fun~id->fun~batchId->fun~appMonitorDetails->fun~userDetails->fun~rumEvents->fun()->{alias;id;batchId;appMonitorDetails;userDetails;rumEvents}letto_valuex=structure_to_value[("Id",(Some(PutRumEventsRequestIdString.to_valuex.id)));("BatchId",(Some(PutRumEventsRequestBatchIdString.to_valuex.batchId)));("AppMonitorDetails",(Some(AppMonitorDetails.to_valuex.appMonitorDetails)));("UserDetails",(Some(UserDetails.to_valuex.userDetails)));("RumEvents",(Some(RumEventList.to_valuex.rumEvents)));("Alias",(Option.mapx.alias~f:Alias.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letalias=(Option.map~f:Alias.of_xml)(Xml.childxml_arg0"Alias")inletrumEvents=RumEventList.of_xml(Xml.child_exn~context:context_xml_arg0"RumEvents")inletuserDetails=UserDetails.of_xml(Xml.child_exn~context:context_xml_arg0"UserDetails")inletappMonitorDetails=AppMonitorDetails.of_xml(Xml.child_exn~context:context_xml_arg0"AppMonitorDetails")inletbatchId=PutRumEventsRequestBatchIdString.of_xml(Xml.child_exn~context:context_xml_arg0"BatchId")inletid=PutRumEventsRequestIdString.of_xml(Xml.child_exn~context:context_xml_arg0"Id")inmake?alias~rumEvents~userDetails~appMonitorDetails~batchId~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letalias=field_mapjson__"Alias"Alias.of_jsoninletrumEvents=field_map_exnjson__"RumEvents"RumEventList.of_jsoninletuserDetails=field_map_exnjson__"UserDetails"UserDetails.of_jsoninletappMonitorDetails=field_map_exnjson__"AppMonitorDetails"AppMonitorDetails.of_jsoninletbatchId=field_map_exnjson__"BatchId"PutRumEventsRequestBatchIdString.of_jsoninletid=field_map_exnjson__"Id"PutRumEventsRequestIdString.of_jsoninmake?alias~rumEvents~userDetails~appMonitorDetails~batchId~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Sends telemetry events about your application performance and user behavior to CloudWatch RUM. The code snippet that RUM generates for you to add to your application includes PutRumEvents operations to send this data to RUM. Each PutRumEvents operation can send a batch of events from one user session."]modulePutResourcePolicyResponse=structtypenonrect={policyDocument:String_.toption[@ocaml.doc"The JSON policy document that you specified."];policyRevisionId:PolicyRevisionId.toption[@ocaml.doc"The policy revision ID information that you specified."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`InvalidPolicyRevisionIdExceptionofInvalidPolicyRevisionIdException.t|`MalformedPolicyDocumentExceptionofMalformedPolicyDocumentException.t|`PolicySizeLimitExceededExceptionofPolicySizeLimitExceededException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?policyDocument=fun?policyRevisionId->fun()->{policyDocument;policyRevisionId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidPolicyRevisionIdException"->`InvalidPolicyRevisionIdException(InvalidPolicyRevisionIdException.of_jsonjson)|"MalformedPolicyDocumentException"->`MalformedPolicyDocumentException(MalformedPolicyDocumentException.of_jsonjson)|"PolicySizeLimitExceededException"->`PolicySizeLimitExceededException(PolicySizeLimitExceededException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidPolicyRevisionIdException"->`InvalidPolicyRevisionIdException(InvalidPolicyRevisionIdException.of_xmlxml)|"MalformedPolicyDocumentException"->`MalformedPolicyDocumentException(MalformedPolicyDocumentException.of_xmlxml)|"PolicySizeLimitExceededException"->`PolicySizeLimitExceededException(PolicySizeLimitExceededException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidPolicyRevisionIdExceptione->`Assoc[("error",(`String"InvalidPolicyRevisionIdException"));("details",(InvalidPolicyRevisionIdException.to_jsone))]|`MalformedPolicyDocumentExceptione->`Assoc[("error",(`String"MalformedPolicyDocumentException"));("details",(MalformedPolicyDocumentException.to_jsone))]|`PolicySizeLimitExceededExceptione->`Assoc[("error",(`String"PolicySizeLimitExceededException"));("details",(PolicySizeLimitExceededException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("PolicyDocument",(Option.mapx.policyDocument~f:String_.to_value));("PolicyRevisionId",(Option.mapx.policyRevisionId~f:PolicyRevisionId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpolicyRevisionId=(Option.map~f:PolicyRevisionId.of_xml)(Xml.childxml_arg0"PolicyRevisionId")inletpolicyDocument=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"PolicyDocument")inmake?policyRevisionId?policyDocument()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpolicyRevisionId=field_mapjson__"PolicyRevisionId"PolicyRevisionId.of_jsoninletpolicyDocument=field_mapjson__"PolicyDocument"String_.of_jsoninmake?policyRevisionId?policyDocument()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Use this operation to assign a resource-based policy to a CloudWatch RUM app monitor to control access to it. Each app monitor can have one resource-based policy. The maximum size of the policy is 4 KB. To learn more about using resource policies with RUM, see Using resource-based policies with CloudWatch RUM."]modulePutResourcePolicyRequest=structtypenonrect={name:AppMonitorName.t[@ocaml.doc"The name of the app monitor that you want to apply this resource-based policy to. To find the names of your app monitors, you can use the ListAppMonitors operation."];policyDocument:String_.t[@ocaml.doc"The JSON to use as the resource policy. The document can be up to 4 KB in size. For more information about the contents and syntax for this policy, see Using resource-based policies with CloudWatch RUM."];policyRevisionId:PolicyRevisionId.toption[@ocaml.doc"A string value that you can use to conditionally update your policy. You can provide the revision ID of your existing policy to make mutating requests against that policy. When you assign a policy revision ID, then later requests about that policy will be rejected with an InvalidPolicyRevisionIdException error if they don't provide the correct current revision ID."]}letcontext_="PutResourcePolicyRequest"letmake?policyRevisionId=fun~name->fun~policyDocument->fun()->{policyRevisionId;name;policyDocument}letto_valuex=structure_to_value[("Name",(Some(AppMonitorName.to_valuex.name)));("PolicyDocument",(Some(String_.to_valuex.policyDocument)));("PolicyRevisionId",(Option.mapx.policyRevisionId~f:PolicyRevisionId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpolicyRevisionId=(Option.map~f:PolicyRevisionId.of_xml)(Xml.childxml_arg0"PolicyRevisionId")inletpolicyDocument=String_.of_xml(Xml.child_exn~context:context_xml_arg0"PolicyDocument")inletname=AppMonitorName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake?policyRevisionId~policyDocument~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpolicyRevisionId=field_mapjson__"PolicyRevisionId"PolicyRevisionId.of_jsoninletpolicyDocument=field_map_exnjson__"PolicyDocument"String_.of_jsoninletname=field_map_exnjson__"Name"AppMonitorName.of_jsoninmake?policyRevisionId~policyDocument~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Use this operation to assign a resource-based policy to a CloudWatch RUM app monitor to control access to it. Each app monitor can have one resource-based policy. The maximum size of the policy is 4 KB. To learn more about using resource policies with RUM, see Using resource-based policies with CloudWatch RUM."]moduleListTagsForResourceResponse=structtypenonrect={resourceArn:Arn.toption[@ocaml.doc"The ARN of the resource that you are viewing."];tags:TagMap.toption[@ocaml.doc"The list of tag keys and values associated with the resource you specified."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?resourceArn=fun?tags->fun()->{resourceArn;tags}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ResourceArn",(Option.mapx.resourceArn~f:Arn.to_value));("Tags",(Option.mapx.tags~f:TagMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"Tags")inletresourceArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"ResourceArn")inmake?tags?resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagMap.of_jsoninletresourceArn=field_mapjson__"ResourceArn"Arn.of_jsoninmake?tags?resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Displays the tags associated with a CloudWatch RUM resource."]moduleListTagsForResourceRequest=structtypenonrect={resourceArn:Arn.t[@ocaml.doc"The ARN of the resource that you want to see the tags of."]}letcontext_="ListTagsForResourceRequest"letmake~resourceArn=fun()->{resourceArn}letto_valuex=structure_to_value[("ResourceArn",(Some(Arn.to_valuex.resourceArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inmake~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceArn=field_map_exnjson__"ResourceArn"Arn.of_jsoninmake~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Displays the tags associated with a CloudWatch RUM resource."]moduleListRumMetricsDestinationsResponse=structtypenonrect={destinations:MetricDestinationSummaryList.toption[@ocaml.doc"The list of CloudWatch RUM extended metrics destinations associated with the app monitor that you specified."];nextToken:String_.toption[@ocaml.doc"A token that you can use in a subsequent operation to retrieve the next set of results."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?destinations=fun?nextToken->fun()->{destinations;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Destinations",(Option.mapx.destinations~f:MetricDestinationSummaryList.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")inletdestinations=(Option.map~f:MetricDestinationSummaryList.of_xml)(Xml.childxml_arg0"Destinations")inmake?nextToken?destinations()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletdestinations=field_mapjson__"Destinations"MetricDestinationSummaryList.of_jsoninmake?nextToken?destinations()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of destinations that you have created to receive RUM extended metrics, for the specified app monitor. For more information about extended metrics, see AddRumMetrics."]moduleListRumMetricsDestinationsRequest=structtypenonrect={appMonitorName:AppMonitorName.t[@ocaml.doc"The name of the app monitor associated with the destinations that you want to retrieve."];maxResults:MaxResultsInteger.toption[@ocaml.doc"The maximum number of results to return in one operation. The default is 50. The maximum that you can specify is 100. To retrieve the remaining results, make another call with the returned NextToken value."];nextToken:String_.toption[@ocaml.doc"Use the token returned by the previous operation to request the next page of results."]}letcontext_="ListRumMetricsDestinationsRequest"letmake?maxResults=fun?nextToken->fun~appMonitorName->fun()->{maxResults;nextToken;appMonitorName}letto_valuex=structure_to_value[("AppMonitorName",(Some(AppMonitorName.to_valuex.appMonitorName)));("maxResults",(Option.mapx.maxResults~f:MaxResultsInteger.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")inletmaxResults=(Option.map~f:MaxResultsInteger.of_xml)(Xml.childxml_arg0"maxResults")inletappMonitorName=AppMonitorName.of_xml(Xml.child_exn~context:context_xml_arg0"AppMonitorName")inmake?nextToken?maxResults~appMonitorName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResultsInteger.of_jsoninletappMonitorName=field_map_exnjson__"AppMonitorName"AppMonitorName.of_jsoninmake?nextToken?maxResults~appMonitorName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of destinations that you have created to receive RUM extended metrics, for the specified app monitor. For more information about extended metrics, see AddRumMetrics."]moduleListAppMonitorsResponse=structtypenonrect={nextToken:String_.toption[@ocaml.doc"A token that you can use in a subsequent operation to retrieve the next set of results."];appMonitorSummaries:AppMonitorSummaryList.toption[@ocaml.doc"An array of structures that contain information about the returned app monitors."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?appMonitorSummaries->fun()->{nextToken;appMonitorSummaries}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:String_.to_value));("AppMonitorSummaries",(Option.mapx.appMonitorSummaries~f:AppMonitorSummaryList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letappMonitorSummaries=(Option.map~f:AppMonitorSummaryList.of_xml)(Xml.childxml_arg0"AppMonitorSummaries")inletnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NextToken")inmake?appMonitorSummaries?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letappMonitorSummaries=field_mapjson__"AppMonitorSummaries"AppMonitorSummaryList.of_jsoninletnextToken=field_mapjson__"NextToken"String_.of_jsoninmake?appMonitorSummaries?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of the Amazon CloudWatch RUM app monitors in the account."]moduleListAppMonitorsRequest=structtypenonrect={maxResults:MaxResultsInteger.toption[@ocaml.doc"The maximum number of results to return in one operation. The default is 50. The maximum that you can specify is 100."];nextToken:String_.toption[@ocaml.doc"Use the token returned by the previous operation to request the next page of results."]}letmake?maxResults=fun?nextToken->fun()->{maxResults;nextToken}letto_valuex=structure_to_value[("maxResults",(Option.mapx.maxResults~f:MaxResultsInteger.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")inletmaxResults=(Option.map~f:MaxResultsInteger.of_xml)(Xml.childxml_arg0"maxResults")inmake?nextToken?maxResults()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResultsInteger.of_jsoninmake?nextToken?maxResults()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of the Amazon CloudWatch RUM app monitors in the account."]moduleGetResourcePolicyResponse=structtypenonrect={policyDocument:String_.toption[@ocaml.doc"The JSON policy document that you requested."];policyRevisionId:PolicyRevisionId.toption[@ocaml.doc"The revision ID information for this version of the policy document that you requested."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`PolicyNotFoundExceptionofPolicyNotFoundException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?policyDocument=fun?policyRevisionId->fun()->{policyDocument;policyRevisionId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"PolicyNotFoundException"->`PolicyNotFoundException(PolicyNotFoundException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"PolicyNotFoundException"->`PolicyNotFoundException(PolicyNotFoundException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`PolicyNotFoundExceptione->`Assoc[("error",(`String"PolicyNotFoundException"));("details",(PolicyNotFoundException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("PolicyDocument",(Option.mapx.policyDocument~f:String_.to_value));("PolicyRevisionId",(Option.mapx.policyRevisionId~f:PolicyRevisionId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpolicyRevisionId=(Option.map~f:PolicyRevisionId.of_xml)(Xml.childxml_arg0"PolicyRevisionId")inletpolicyDocument=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"PolicyDocument")inmake?policyRevisionId?policyDocument()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpolicyRevisionId=field_mapjson__"PolicyRevisionId"PolicyRevisionId.of_jsoninletpolicyDocument=field_mapjson__"PolicyDocument"String_.of_jsoninmake?policyRevisionId?policyDocument()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Use this operation to retrieve information about a resource-based policy that is attached to an app monitor."]moduleGetResourcePolicyRequest=structtypenonrect={name:AppMonitorName.t[@ocaml.doc"The name of the app monitor that is associated with the resource-based policy that you want to view."]}letcontext_="GetResourcePolicyRequest"letmake~name=fun()->{name}letto_valuex=structure_to_value[("Name",(Some(AppMonitorName.to_valuex.name)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=AppMonitorName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_map_exnjson__"Name"AppMonitorName.of_jsoninmake~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Use this operation to retrieve information about a resource-based policy that is attached to an app monitor."]moduleGetAppMonitorResponse=structtypenonrect={appMonitor:AppMonitor.toption[@ocaml.doc"A structure containing all the configuration information for the app monitor."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?appMonitor=fun()->{appMonitor}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("AppMonitor",(Option.mapx.appMonitor~f:AppMonitor.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letappMonitor=(Option.map~f:AppMonitor.of_xml)(Xml.childxml_arg0"AppMonitor")inmake?appMonitor()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letappMonitor=field_mapjson__"AppMonitor"AppMonitor.of_jsoninmake?appMonitor()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the complete configuration information for one app monitor."]moduleGetAppMonitorRequest=structtypenonrect={name:AppMonitorName.t[@ocaml.doc"The app monitor to retrieve information for."]}letcontext_="GetAppMonitorRequest"letmake~name=fun()->{name}letto_valuex=structure_to_value[("Name",(Some(AppMonitorName.to_valuex.name)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=AppMonitorName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_map_exnjson__"Name"AppMonitorName.of_jsoninmake~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the complete configuration information for one app monitor."]moduleGetAppMonitorDataResponse=structtypenonrect={events:EventDataList.toption[@ocaml.doc"The events that RUM collected that match your request."];nextToken:Token.toption[@ocaml.doc"A token that you can use in a subsequent operation to retrieve the next set of results."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?events=fun?nextToken->fun()->{events;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.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:EventDataList.to_value));("NextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inletevents=(Option.map~f:EventDataList.of_xml)(Xml.childxml_arg0"Events")inmake?nextToken?events()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Token.of_jsoninletevents=field_mapjson__"Events"EventDataList.of_jsoninmake?nextToken?events()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the raw performance events that RUM has collected from your web application, so that you can do your own processing or analysis of this data."]moduleGetAppMonitorDataRequest=structtypenonrect={name:AppMonitorName.t[@ocaml.doc"The name of the app monitor that collected the data that you want to retrieve."];timeRange:TimeRange.t[@ocaml.doc"A structure that defines the time range that you want to retrieve results from."];filters:QueryFilters.toption[@ocaml.doc"An array of structures that you can use to filter the results to those that match one or more sets of key-value pairs that you specify."];maxResults:MaxQueryResults.toption[@ocaml.doc"The maximum number of results to return in one operation."];nextToken:Token.toption[@ocaml.doc"Use the token returned by the previous operation to request the next page of results."]}letcontext_="GetAppMonitorDataRequest"letmake?filters=fun?maxResults->fun?nextToken->fun~name->fun~timeRange->fun()->{filters;maxResults;nextToken;name;timeRange}letto_valuex=structure_to_value[("Name",(Some(AppMonitorName.to_valuex.name)));("TimeRange",(Some(TimeRange.to_valuex.timeRange)));("Filters",(Option.mapx.filters~f:QueryFilters.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxQueryResults.to_value));("NextToken",(Option.mapx.nextToken~f:Token.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Token.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:MaxQueryResults.of_xml)(Xml.childxml_arg0"MaxResults")inletfilters=(Option.map~f:QueryFilters.of_xml)(Xml.childxml_arg0"Filters")inlettimeRange=TimeRange.of_xml(Xml.child_exn~context:context_xml_arg0"TimeRange")inletname=AppMonitorName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake?nextToken?maxResults?filters~timeRange~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Token.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxQueryResults.of_jsoninletfilters=field_mapjson__"Filters"QueryFilters.of_jsoninlettimeRange=field_map_exnjson__"TimeRange"TimeRange.of_jsoninletname=field_map_exnjson__"Name"AppMonitorName.of_jsoninmake?nextToken?maxResults?filters~timeRange~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the raw performance events that RUM has collected from your web application, so that you can do your own processing or analysis of this data."]moduleDeleteRumMetricsDestinationResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.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"Deletes a destination for CloudWatch RUM extended metrics, so that the specified app monitor stops sending extended metrics to that destination."]moduleDeleteRumMetricsDestinationRequest=structtypenonrect={appMonitorName:AppMonitorName.t[@ocaml.doc"The name of the app monitor that is sending metrics to the destination that you want to delete."];destination:MetricDestination.t[@ocaml.doc"The type of destination to delete. Valid values are CloudWatch and Evidently."];destinationArn:DestinationArn.toption[@ocaml.doc"This parameter is required if Destination is Evidently. If Destination is CloudWatch, do not use this parameter. This parameter specifies the ARN of the Evidently experiment that corresponds to the destination to delete."]}letcontext_="DeleteRumMetricsDestinationRequest"letmake?destinationArn=fun~appMonitorName->fun~destination->fun()->{destinationArn;appMonitorName;destination}letto_valuex=structure_to_value[("AppMonitorName",(Some(AppMonitorName.to_valuex.appMonitorName)));("destination",(Some(MetricDestination.to_valuex.destination)));("destinationArn",(Option.mapx.destinationArn~f:DestinationArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdestinationArn=(Option.map~f:DestinationArn.of_xml)(Xml.childxml_arg0"destinationArn")inletdestination=MetricDestination.of_xml(Xml.child_exn~context:context_xml_arg0"destination")inletappMonitorName=AppMonitorName.of_xml(Xml.child_exn~context:context_xml_arg0"AppMonitorName")inmake?destinationArn~destination~appMonitorName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdestinationArn=field_mapjson__"DestinationArn"DestinationArn.of_jsoninletdestination=field_map_exnjson__"Destination"MetricDestination.of_jsoninletappMonitorName=field_map_exnjson__"AppMonitorName"AppMonitorName.of_jsoninmake?destinationArn~destination~appMonitorName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a destination for CloudWatch RUM extended metrics, so that the specified app monitor stops sending extended metrics to that destination."]moduleDeleteResourcePolicyResponse=structtypenonrect={policyRevisionId:PolicyRevisionId.toption[@ocaml.doc"The revision ID of the policy that was removed, if it had one."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`InvalidPolicyRevisionIdExceptionofInvalidPolicyRevisionIdException.t|`PolicyNotFoundExceptionofPolicyNotFoundException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?policyRevisionId=fun()->{policyRevisionId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidPolicyRevisionIdException"->`InvalidPolicyRevisionIdException(InvalidPolicyRevisionIdException.of_jsonjson)|"PolicyNotFoundException"->`PolicyNotFoundException(PolicyNotFoundException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidPolicyRevisionIdException"->`InvalidPolicyRevisionIdException(InvalidPolicyRevisionIdException.of_xmlxml)|"PolicyNotFoundException"->`PolicyNotFoundException(PolicyNotFoundException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidPolicyRevisionIdExceptione->`Assoc[("error",(`String"InvalidPolicyRevisionIdException"));("details",(InvalidPolicyRevisionIdException.to_jsone))]|`PolicyNotFoundExceptione->`Assoc[("error",(`String"PolicyNotFoundException"));("details",(PolicyNotFoundException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("PolicyRevisionId",(Option.mapx.policyRevisionId~f:PolicyRevisionId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpolicyRevisionId=(Option.map~f:PolicyRevisionId.of_xml)(Xml.childxml_arg0"PolicyRevisionId")inmake?policyRevisionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpolicyRevisionId=field_mapjson__"PolicyRevisionId"PolicyRevisionId.of_jsoninmake?policyRevisionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes the association of a resource-based policy from an app monitor."]moduleDeleteResourcePolicyRequest=structtypenonrect={name:AppMonitorName.t[@ocaml.doc"The app monitor that you want to remove the resource policy from."];policyRevisionId:PolicyRevisionId.toption[@ocaml.doc"Specifies a specific policy revision to delete. Provide a PolicyRevisionId to ensure an atomic delete operation. If the revision ID that you provide doesn't match the latest policy revision ID, the request will be rejected with an InvalidPolicyRevisionIdException error."]}letcontext_="DeleteResourcePolicyRequest"letmake?policyRevisionId=fun~name->fun()->{policyRevisionId;name}letto_valuex=structure_to_value[("Name",(Some(AppMonitorName.to_valuex.name)));("policyRevisionId",(Option.mapx.policyRevisionId~f:PolicyRevisionId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpolicyRevisionId=(Option.map~f:PolicyRevisionId.of_xml)(Xml.childxml_arg0"policyRevisionId")inletname=AppMonitorName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake?policyRevisionId~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpolicyRevisionId=field_mapjson__"PolicyRevisionId"PolicyRevisionId.of_jsoninletname=field_map_exnjson__"Name"AppMonitorName.of_jsoninmake?policyRevisionId~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes the association of a resource-based policy from an app monitor."]moduleDeleteAppMonitorResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.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"Deletes an existing app monitor. This immediately stops the collection of data."]moduleDeleteAppMonitorRequest=structtypenonrect={name:AppMonitorName.t[@ocaml.doc"The name of the app monitor to delete."]}letcontext_="DeleteAppMonitorRequest"letmake~name=fun()->{name}letto_valuex=structure_to_value[("Name",(Some(AppMonitorName.to_valuex.name)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=AppMonitorName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_map_exnjson__"Name"AppMonitorName.of_jsoninmake~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes an existing app monitor. This immediately stops the collection of data."]moduleCreateAppMonitorResponse=structtypenonrect={id:AppMonitorId.toption[@ocaml.doc"The unique ID of the new app monitor."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?id=fun()->{id}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Id",(Option.mapx.id~f:AppMonitorId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=(Option.map~f:AppMonitorId.of_xml)(Xml.childxml_arg0"Id")inmake?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_mapjson__"Id"AppMonitorId.of_jsoninmake?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a Amazon CloudWatch RUM app monitor, which collects telemetry data from your application and sends that data to RUM. The data includes performance and reliability information such as page load time, client-side errors, and user behavior. You use this operation only to create a new app monitor. To update an existing app monitor, use UpdateAppMonitor instead. After you create an app monitor, sign in to the CloudWatch RUM console to get the JavaScript code snippet to add to your web application. For more information, see How do I find a code snippet that I've already generated?"]moduleCreateAppMonitorRequest=structtypenonrect={name:AppMonitorName.t[@ocaml.doc"A name for the app monitor."];domain:AppMonitorDomain.toption[@ocaml.doc"The top-level internet domain name for which your application has administrative authority."];domainList:AppMonitorDomainList.toption[@ocaml.doc"List the domain names for which your application has administrative authority. The CreateAppMonitor requires either the domain or the domain list."];tags:TagMap.toption[@ocaml.doc"Assigns one or more tags (key-value pairs) to the app monitor. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values. Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters. You can associate as many as 50 tags with an app monitor. For more information, see Tagging Amazon Web Services resources."];appMonitorConfiguration:AppMonitorConfiguration.toption[@ocaml.doc"A structure that contains much of the configuration data for the app monitor. If you are using Amazon Cognito for authorization, you must include this structure in your request, and it must include the ID of the Amazon Cognito identity pool to use for authorization. If you don't include AppMonitorConfiguration, you must set up your own authorization method. For more information, see Authorize your application to send data to Amazon Web Services. If you omit this argument, the sample rate used for RUM is set to 10% of the user sessions."];cwLogEnabled:Boolean.toption[@ocaml.doc"Data collected by RUM is kept by RUM for 30 days and then deleted. This parameter specifies whether RUM sends a copy of this telemetry data to Amazon CloudWatch Logs in your account. This enables you to keep the telemetry data for more than 30 days, but it does incur Amazon CloudWatch Logs charges. If you omit this parameter, the default is false."];customEvents:CustomEvents.toption[@ocaml.doc"Specifies whether this app monitor allows the web client to define and send custom events. If you omit this parameter, custom events are DISABLED. For more information about custom events, see Send custom events."];deobfuscationConfiguration:DeobfuscationConfiguration.toption[@ocaml.doc"A structure that contains the configuration for how an app monitor can deobfuscate stack traces."];platform:AppMonitorPlatform.toption[@ocaml.doc"The platform type for the app monitor. Valid values are Web for web applications, Android for Android applications, and iOS for IOS applications. If you omit this parameter, the default is Web."]}letcontext_="CreateAppMonitorRequest"letmake?domain=fun?domainList->fun?tags->fun?appMonitorConfiguration->fun?cwLogEnabled->fun?customEvents->fun?deobfuscationConfiguration->fun?platform->fun~name->fun()->{domain;domainList;tags;appMonitorConfiguration;cwLogEnabled;customEvents;deobfuscationConfiguration;platform;name}letto_valuex=structure_to_value[("Name",(Some(AppMonitorName.to_valuex.name)));("Domain",(Option.mapx.domain~f:AppMonitorDomain.to_value));("DomainList",(Option.mapx.domainList~f:AppMonitorDomainList.to_value));("Tags",(Option.mapx.tags~f:TagMap.to_value));("AppMonitorConfiguration",(Option.mapx.appMonitorConfiguration~f:AppMonitorConfiguration.to_value));("CwLogEnabled",(Option.mapx.cwLogEnabled~f:Boolean.to_value));("CustomEvents",(Option.mapx.customEvents~f:CustomEvents.to_value));("DeobfuscationConfiguration",(Option.mapx.deobfuscationConfiguration~f:DeobfuscationConfiguration.to_value));("Platform",(Option.mapx.platform~f:AppMonitorPlatform.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letplatform=(Option.map~f:AppMonitorPlatform.of_xml)(Xml.childxml_arg0"Platform")inletdeobfuscationConfiguration=(Option.map~f:DeobfuscationConfiguration.of_xml)(Xml.childxml_arg0"DeobfuscationConfiguration")inletcustomEvents=(Option.map~f:CustomEvents.of_xml)(Xml.childxml_arg0"CustomEvents")inletcwLogEnabled=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"CwLogEnabled")inletappMonitorConfiguration=(Option.map~f:AppMonitorConfiguration.of_xml)(Xml.childxml_arg0"AppMonitorConfiguration")inlettags=(Option.map~f:TagMap.of_xml)(Xml.childxml_arg0"Tags")inletdomainList=(Option.map~f:AppMonitorDomainList.of_xml)(Xml.childxml_arg0"DomainList")inletdomain=(Option.map~f:AppMonitorDomain.of_xml)(Xml.childxml_arg0"Domain")inletname=AppMonitorName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake?platform?deobfuscationConfiguration?customEvents?cwLogEnabled?appMonitorConfiguration?tags?domainList?domain~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letplatform=field_mapjson__"Platform"AppMonitorPlatform.of_jsoninletdeobfuscationConfiguration=field_mapjson__"DeobfuscationConfiguration"DeobfuscationConfiguration.of_jsoninletcustomEvents=field_mapjson__"CustomEvents"CustomEvents.of_jsoninletcwLogEnabled=field_mapjson__"CwLogEnabled"Boolean.of_jsoninletappMonitorConfiguration=field_mapjson__"AppMonitorConfiguration"AppMonitorConfiguration.of_jsoninlettags=field_mapjson__"Tags"TagMap.of_jsoninletdomainList=field_mapjson__"DomainList"AppMonitorDomainList.of_jsoninletdomain=field_mapjson__"Domain"AppMonitorDomain.of_jsoninletname=field_map_exnjson__"Name"AppMonitorName.of_jsoninmake?platform?deobfuscationConfiguration?customEvents?cwLogEnabled?appMonitorConfiguration?tags?domainList?domain~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a Amazon CloudWatch RUM app monitor, which collects telemetry data from your application and sends that data to RUM. The data includes performance and reliability information such as page load time, client-side errors, and user behavior. You use this operation only to create a new app monitor. To update an existing app monitor, use UpdateAppMonitor instead. After you create an app monitor, sign in to the CloudWatch RUM console to get the JavaScript code snippet to add to your web application. For more information, see How do I find a code snippet that I've already generated?"]moduleBatchGetRumMetricDefinitionsResponse=structtypenonrect={metricDefinitions:MetricDefinitions.toption[@ocaml.doc"An array of structures that display information about the metrics that are sent by the specified app monitor to the specified destination."];nextToken:String_.toption[@ocaml.doc"A token that you can use in a subsequent operation to retrieve the next set of results."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?metricDefinitions=fun?nextToken->fun()->{metricDefinitions;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("MetricDefinitions",(Option.mapx.metricDefinitions~f:MetricDefinitions.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")inletmetricDefinitions=(Option.map~f:MetricDefinitions.of_xml)(Xml.childxml_arg0"MetricDefinitions")inmake?nextToken?metricDefinitions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletmetricDefinitions=field_mapjson__"MetricDefinitions"MetricDefinitions.of_jsoninmake?nextToken?metricDefinitions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the list of metrics and dimensions that a RUM app monitor is sending to a single destination."]moduleBatchGetRumMetricDefinitionsRequest=structtypenonrect={appMonitorName:AppMonitorName.t[@ocaml.doc"The name of the CloudWatch RUM app monitor that is sending the metrics."];destination:MetricDestination.t[@ocaml.doc"The type of destination that you want to view metrics for. Valid values are CloudWatch and Evidently."];destinationArn:DestinationArn.toption[@ocaml.doc"This parameter is required if Destination is Evidently. If Destination is CloudWatch, do not use this parameter. This parameter specifies the ARN of the Evidently experiment that corresponds to the destination."];maxResults:MaxResultsInteger.toption[@ocaml.doc"The maximum number of results to return in one operation. The default is 50. The maximum that you can specify is 100. To retrieve the remaining results, make another call with the returned NextToken value."];nextToken:String_.toption[@ocaml.doc"Use the token returned by the previous operation to request the next page of results."]}letcontext_="BatchGetRumMetricDefinitionsRequest"letmake?destinationArn=fun?maxResults->fun?nextToken->fun~appMonitorName->fun~destination->fun()->{destinationArn;maxResults;nextToken;appMonitorName;destination}letto_valuex=structure_to_value[("AppMonitorName",(Some(AppMonitorName.to_valuex.appMonitorName)));("destination",(Some(MetricDestination.to_valuex.destination)));("destinationArn",(Option.mapx.destinationArn~f:DestinationArn.to_value));("maxResults",(Option.mapx.maxResults~f:MaxResultsInteger.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")inletmaxResults=(Option.map~f:MaxResultsInteger.of_xml)(Xml.childxml_arg0"maxResults")inletdestinationArn=(Option.map~f:DestinationArn.of_xml)(Xml.childxml_arg0"destinationArn")inletdestination=MetricDestination.of_xml(Xml.child_exn~context:context_xml_arg0"destination")inletappMonitorName=AppMonitorName.of_xml(Xml.child_exn~context:context_xml_arg0"AppMonitorName")inmake?nextToken?maxResults?destinationArn~destination~appMonitorName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"String_.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResultsInteger.of_jsoninletdestinationArn=field_mapjson__"DestinationArn"DestinationArn.of_jsoninletdestination=field_map_exnjson__"Destination"MetricDestination.of_jsoninletappMonitorName=field_map_exnjson__"AppMonitorName"AppMonitorName.of_jsoninmake?nextToken?maxResults?destinationArn~destination~appMonitorName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the list of metrics and dimensions that a RUM app monitor is sending to a single destination."]moduleBatchDeleteRumMetricDefinitionsResponse=structtypenonrect={errors:BatchDeleteRumMetricDefinitionsErrors.toption[@ocaml.doc"An array of error objects, if the operation caused any errors."];metricDefinitionIds:MetricDefinitionIds.toption[@ocaml.doc"The IDs of the metric definitions that were deleted."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?errors=fun?metricDefinitionIds->fun()->{errors;metricDefinitionIds}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Errors",(Option.mapx.errors~f:BatchDeleteRumMetricDefinitionsErrors.to_value));("MetricDefinitionIds",(Option.mapx.metricDefinitionIds~f:MetricDefinitionIds.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmetricDefinitionIds=(Option.map~f:MetricDefinitionIds.of_xml)(Xml.childxml_arg0"MetricDefinitionIds")inleterrors=(Option.map~f:BatchDeleteRumMetricDefinitionsErrors.of_xml)(Xml.childxml_arg0"Errors")inmake?metricDefinitionIds?errors()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmetricDefinitionIds=field_mapjson__"MetricDefinitionIds"MetricDefinitionIds.of_jsoninleterrors=field_mapjson__"Errors"BatchDeleteRumMetricDefinitionsErrors.of_jsoninmake?metricDefinitionIds?errors()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes the specified metrics from being sent to an extended metrics destination. If some metric definition IDs specified in a BatchDeleteRumMetricDefinitions operations are not valid, those metric definitions fail and return errors, but all valid metric definition IDs in the same operation are still deleted. The maximum number of metric definitions that you can specify in one BatchDeleteRumMetricDefinitions operation is 200."]moduleBatchDeleteRumMetricDefinitionsRequest=structtypenonrect={appMonitorName:AppMonitorName.t[@ocaml.doc"The name of the CloudWatch RUM app monitor that is sending these metrics."];destination:MetricDestination.t[@ocaml.doc"Defines the destination where you want to stop sending the specified metrics. Valid values are CloudWatch and Evidently. If you specify Evidently, you must also specify the ARN of the CloudWatchEvidently experiment that is to be the destination and an IAM role that has permission to write to the experiment."];destinationArn:DestinationArn.toption[@ocaml.doc"This parameter is required if Destination is Evidently. If Destination is CloudWatch, do not use this parameter. This parameter specifies the ARN of the Evidently experiment that was receiving the metrics that are being deleted."];metricDefinitionIds:MetricDefinitionIds.t[@ocaml.doc"An array of structures which define the metrics that you want to stop sending."]}letcontext_="BatchDeleteRumMetricDefinitionsRequest"letmake?destinationArn=fun~appMonitorName->fun~destination->fun~metricDefinitionIds->fun()->{destinationArn;appMonitorName;destination;metricDefinitionIds}letto_valuex=structure_to_value[("AppMonitorName",(Some(AppMonitorName.to_valuex.appMonitorName)));("destination",(Some(MetricDestination.to_valuex.destination)));("destinationArn",(Option.mapx.destinationArn~f:DestinationArn.to_value));("metricDefinitionIds",(Some(MetricDefinitionIds.to_valuex.metricDefinitionIds)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmetricDefinitionIds=MetricDefinitionIds.of_xml(Xml.child_exn~context:context_xml_arg0"metricDefinitionIds")inletdestinationArn=(Option.map~f:DestinationArn.of_xml)(Xml.childxml_arg0"destinationArn")inletdestination=MetricDestination.of_xml(Xml.child_exn~context:context_xml_arg0"destination")inletappMonitorName=AppMonitorName.of_xml(Xml.child_exn~context:context_xml_arg0"AppMonitorName")inmake~metricDefinitionIds?destinationArn~destination~appMonitorName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmetricDefinitionIds=field_map_exnjson__"MetricDefinitionIds"MetricDefinitionIds.of_jsoninletdestinationArn=field_mapjson__"DestinationArn"DestinationArn.of_jsoninletdestination=field_map_exnjson__"Destination"MetricDestination.of_jsoninletappMonitorName=field_map_exnjson__"AppMonitorName"AppMonitorName.of_jsoninmake~metricDefinitionIds?destinationArn~destination~appMonitorName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes the specified metrics from being sent to an extended metrics destination. If some metric definition IDs specified in a BatchDeleteRumMetricDefinitions operations are not valid, those metric definitions fail and return errors, but all valid metric definition IDs in the same operation are still deleted. The maximum number of metric definitions that you can specify in one BatchDeleteRumMetricDefinitions operation is 200."]moduleBatchCreateRumMetricDefinitionsResponse=structtypenonrect={errors:BatchCreateRumMetricDefinitionsErrors.toption[@ocaml.doc"An array of error objects, if the operation caused any errors."];metricDefinitions:MetricDefinitions.toption[@ocaml.doc"An array of structures that define the extended metrics."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?errors=fun?metricDefinitions->fun()->{errors;metricDefinitions}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Errors",(Option.mapx.errors~f:BatchCreateRumMetricDefinitionsErrors.to_value));("MetricDefinitions",(Option.mapx.metricDefinitions~f:MetricDefinitions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmetricDefinitions=(Option.map~f:MetricDefinitions.of_xml)(Xml.childxml_arg0"MetricDefinitions")inleterrors=(Option.map~f:BatchCreateRumMetricDefinitionsErrors.of_xml)(Xml.childxml_arg0"Errors")inmake?metricDefinitions?errors()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmetricDefinitions=field_mapjson__"MetricDefinitions"MetricDefinitions.of_jsoninleterrors=field_mapjson__"Errors"BatchCreateRumMetricDefinitionsErrors.of_jsoninmake?metricDefinitions?errors()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies the extended metrics and custom metrics that you want a CloudWatch RUM app monitor to send to a destination. Valid destinations include CloudWatch and Evidently. By default, RUM app monitors send some metrics to CloudWatch. These default metrics are listed in CloudWatch metrics that you can collect with CloudWatch RUM. In addition to these default metrics, you can choose to send extended metrics, custom metrics, or both. Extended metrics let you send metrics with additional dimensions that aren't included in the default metrics. You can also send extended metrics to both Evidently and CloudWatch. The valid dimension names for the additional dimensions for extended metrics are BrowserName, CountryCode, DeviceType, FileType, OSName, and PageId. For more information, see Extended metrics that you can send to CloudWatch and CloudWatch Evidently. Custom metrics are metrics that you define. You can send custom metrics to CloudWatch. CloudWatch Evidently, or both. With custom metrics, you can use any metric name and namespace. To derive the metrics, you can use any custom events, built-in events, custom attributes, or default attributes. You can't send custom metrics to the AWS/RUM namespace. You must send custom metrics to a custom namespace that you define. The namespace that you use can't start with AWS/. CloudWatch RUM prepends RUM/CustomMetrics/ to the custom namespace that you define, so the final namespace for your metrics in CloudWatch is RUM/CustomMetrics/your-custom-namespace . The maximum number of metric definitions that you can specify in one BatchCreateRumMetricDefinitions operation is 200. The maximum number of metric definitions that one destination can contain is 2000. Extended metrics sent to CloudWatch and RUM custom metrics are charged as CloudWatch custom metrics. Each combination of additional dimension name and dimension value counts as a custom metric. For more information, see Amazon CloudWatch Pricing. You must have already created a destination for the metrics before you send them. For more information, see PutRumMetricsDestination. If some metric definitions specified in a BatchCreateRumMetricDefinitions operations are not valid, those metric definitions fail and return errors, but all valid metric definitions in the same operation still succeed."]moduleBatchCreateRumMetricDefinitionsRequest=structtypenonrect={appMonitorName:AppMonitorName.t[@ocaml.doc"The name of the CloudWatch RUM app monitor that is to send the metrics."];destination:MetricDestination.t[@ocaml.doc"The destination to send the metrics to. Valid values are CloudWatch and Evidently. If you specify Evidently, you must also specify the Amazon Resource Name (ARN) of the CloudWatchEvidently experiment that will receive the metrics and an IAM role that has permission to write to the experiment."];destinationArn:DestinationArn.toption[@ocaml.doc"This parameter is required if Destination is Evidently. If Destination is CloudWatch, do not use this parameter. This parameter specifies the ARN of the Evidently experiment that is to receive the metrics. You must have already defined this experiment as a valid destination. For more information, see PutRumMetricsDestination."];metricDefinitions:MetricDefinitionsRequest.t[@ocaml.doc"An array of structures which define the metrics that you want to send."]}letcontext_="BatchCreateRumMetricDefinitionsRequest"letmake?destinationArn=fun~appMonitorName->fun~destination->fun~metricDefinitions->fun()->{destinationArn;appMonitorName;destination;metricDefinitions}letto_valuex=structure_to_value[("AppMonitorName",(Some(AppMonitorName.to_valuex.appMonitorName)));("Destination",(Some(MetricDestination.to_valuex.destination)));("DestinationArn",(Option.mapx.destinationArn~f:DestinationArn.to_value));("MetricDefinitions",(Some(MetricDefinitionsRequest.to_valuex.metricDefinitions)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmetricDefinitions=MetricDefinitionsRequest.of_xml(Xml.child_exn~context:context_xml_arg0"MetricDefinitions")inletdestinationArn=(Option.map~f:DestinationArn.of_xml)(Xml.childxml_arg0"DestinationArn")inletdestination=MetricDestination.of_xml(Xml.child_exn~context:context_xml_arg0"Destination")inletappMonitorName=AppMonitorName.of_xml(Xml.child_exn~context:context_xml_arg0"AppMonitorName")inmake~metricDefinitions?destinationArn~destination~appMonitorName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmetricDefinitions=field_map_exnjson__"MetricDefinitions"MetricDefinitionsRequest.of_jsoninletdestinationArn=field_mapjson__"DestinationArn"DestinationArn.of_jsoninletdestination=field_map_exnjson__"Destination"MetricDestination.of_jsoninletappMonitorName=field_map_exnjson__"AppMonitorName"AppMonitorName.of_jsoninmake~metricDefinitions?destinationArn~destination~appMonitorName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies the extended metrics and custom metrics that you want a CloudWatch RUM app monitor to send to a destination. Valid destinations include CloudWatch and Evidently. By default, RUM app monitors send some metrics to CloudWatch. These default metrics are listed in CloudWatch metrics that you can collect with CloudWatch RUM. In addition to these default metrics, you can choose to send extended metrics, custom metrics, or both. Extended metrics let you send metrics with additional dimensions that aren't included in the default metrics. You can also send extended metrics to both Evidently and CloudWatch. The valid dimension names for the additional dimensions for extended metrics are BrowserName, CountryCode, DeviceType, FileType, OSName, and PageId. For more information, see Extended metrics that you can send to CloudWatch and CloudWatch Evidently. Custom metrics are metrics that you define. You can send custom metrics to CloudWatch. CloudWatch Evidently, or both. With custom metrics, you can use any metric name and namespace. To derive the metrics, you can use any custom events, built-in events, custom attributes, or default attributes. You can't send custom metrics to the AWS/RUM namespace. You must send custom metrics to a custom namespace that you define. The namespace that you use can't start with AWS/. CloudWatch RUM prepends RUM/CustomMetrics/ to the custom namespace that you define, so the final namespace for your metrics in CloudWatch is RUM/CustomMetrics/your-custom-namespace . The maximum number of metric definitions that you can specify in one BatchCreateRumMetricDefinitions operation is 200. The maximum number of metric definitions that one destination can contain is 2000. Extended metrics sent to CloudWatch and RUM custom metrics are charged as CloudWatch custom metrics. Each combination of additional dimension name and dimension value counts as a custom metric. For more information, see Amazon CloudWatch Pricing. You must have already created a destination for the metrics before you send them. For more information, see PutRumMetricsDestination. If some metric definitions specified in a BatchCreateRumMetricDefinitions operations are not valid, those metric definitions fail and return errors, but all valid metric definitions in the same operation still succeed."]