123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439(* 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.codeguruprofilerletapiVersion="2019-07-18"letendpointPrefix="codeguru-profiler"letserviceFullName="Amazon CodeGuru Profiler"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[]))])moduleFeedbackType=structtypenonrect=|Positive|Negative|Non_static_idofstringletmakei=iletto_string=function|Positive->"Positive"|Negative->"Negative"|Non_static_ids->sletof_string=function|"Positive"->Positive|"Negative"->Negative|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 FeedbackType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"FeedbackType"j)letto_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_valueendmoduleEventPublisher=structtypenonrect=|AnomalyDetection|Non_static_idofstringletmakei=iletto_string=function|AnomalyDetection->"AnomalyDetection"|Non_static_ids->sletof_string=function|"AnomalyDetection"->AnomalyDetection|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 EventPublisher"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"EventPublisher"j)letto_json=simple_to_jsonto_valueendmoduleAggregationPeriod=structtypenonrect=|PT5M|PT1H|P1D|Non_static_idofstringletmakei=iletto_string=function|PT5M->"PT5M"|PT1H->"PT1H"|P1D->"P1D"|Non_static_ids->sletof_string=function|"PT5M"->PT5M|"PT1H"->PT1H|"P1D"->P1D|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 AggregationPeriod"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AggregationPeriod"j)letto_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_valueendmoduleUserFeedback=structtypenonrect={type_:FeedbackType.toption[@ocaml.doc"Optional Positive or Negative feedback submitted by the user about whether the recommendation is useful or not."]}letmake?type_=fun()->{type_}letto_valuex=structure_to_value[("type",(Option.mapx.type_~f:FeedbackType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettype_=(Option.map~f:FeedbackType.of_xml)(Xml.childxml_arg0"type")inmake?type_()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettype_=field_mapjson__"type"FeedbackType.of_jsoninmake?type_()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Feedback that can be submitted for each instance of an anomaly by the user. Feedback is be used for improvements in generating recommendations for the application."]moduleDouble=structtypenonrect=floatletmakei=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_valueendmoduleInteger=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_valueendmoduleTargetFrame=structtypenonrect=String_.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"TargetFrame"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleChannelId=structtypenonrect=stringletcontext_="ChannelId"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-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:"ChannelId"jletto_json=simple_to_jsonto_valueendmoduleChannelUri=structtypenonrect=string[@@ocaml.doc"Channel URI uniquely identifies a Notification Channel. TopicArn is the uri for an SNS channel, emailId is uri for an email channel etc. Currently we only support SNS channels and thus required to be an ARN"]letcontext_="ChannelUri"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:"ChannelUri"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Channel URI uniquely identifies a Notification Channel. TopicArn is the uri for an SNS channel, emailId is uri for an email channel etc. Currently we only support SNS channels and thus required to be an ARN"]moduleEventPublishers=structtypenonrect=EventPublisher.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:1)>>=(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:EventPublisher.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:EventPublisher.of_xml)letof_jsonj=list_of_json~kind:"EventPublishers"~of_json:EventPublisher.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBoolean=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_valueendmoduleAggregatedProfileTime=structtypenonrect={period:AggregationPeriod.toption[@ocaml.doc"The aggregation period. This indicates the period during which an aggregation profile collects posted agent profiles for a profiling group. Use one of three valid durations that are specified using the ISO 8601 format. P1D \226\128\148 1 day PT1H \226\128\148 1 hour PT5M \226\128\148 5 minutes"];start:Timestamp.toption[@ocaml.doc"The time that aggregation of posted agent profiles for a profiling group starts. The aggregation profile contains profiles posted by the agent starting at this time for an aggregation period specified by the period property of the AggregatedProfileTime object. Specify start using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC."]}letmake?period=fun?start->fun()->{period;start}letto_valuex=structure_to_value[("period",(Option.mapx.period~f:AggregationPeriod.to_value));("start",(Option.mapx.start~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstart=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"start")inletperiod=(Option.map~f:AggregationPeriod.of_xml)(Xml.childxml_arg0"period")inmake?start?period()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstart=field_mapjson__"start"Timestamp.of_jsoninletperiod=field_mapjson__"period"AggregationPeriod.of_jsoninmake?start?period()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies the aggregation period and aggregation start time for an aggregated profile. An aggregated profile is used to collect posted agent profiles during an aggregation period. There are three possible aggregation periods (1 day, 1 hour, or 5 minutes)."]moduleAnomalyInstance=structtypenonrect={endTime:Timestamp.toption[@ocaml.doc"The end time of the period during which the metric is flagged as anomalous. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC."];id:String_.toption[@ocaml.doc"The universally unique identifier (UUID) of an instance of an anomaly in a metric."];startTime:Timestamp.toption[@ocaml.doc"The start time of the period during which the metric is flagged as anomalous. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC."];userFeedback:UserFeedback.toption[@ocaml.doc"Feedback type on a specific instance of anomaly submitted by the user."]}letmake?endTime=fun?id->fun?startTime->fun?userFeedback->fun()->{endTime;id;startTime;userFeedback}letto_valuex=structure_to_value[("endTime",(Option.mapx.endTime~f:Timestamp.to_value));("id",(Option.mapx.id~f:String_.to_value));("startTime",(Option.mapx.startTime~f:Timestamp.to_value));("userFeedback",(Option.mapx.userFeedback~f:UserFeedback.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserFeedback=(Option.map~f:UserFeedback.of_xml)(Xml.childxml_arg0"userFeedback")inletstartTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"startTime")inletid=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"id")inletendTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"endTime")inmake?userFeedback?startTime?id?endTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserFeedback=field_mapjson__"userFeedback"UserFeedback.of_jsoninletstartTime=field_mapjson__"startTime"Timestamp.of_jsoninletid=field_mapjson__"id"String_.of_jsoninletendTime=field_mapjson__"endTime"Timestamp.of_jsoninmake?userFeedback?startTime?id?endTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The specific duration in which the metric is flagged as anomalous."]moduleMetricType=structtypenonrect=|AggregatedRelativeTotalTime|Non_static_idofstringletmakei=iletto_string=function|AggregatedRelativeTotalTime->"AggregatedRelativeTotalTime"|Non_static_ids->sletof_string=function|"AggregatedRelativeTotalTime"->AggregatedRelativeTotalTime|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 MetricType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"MetricType"j)letto_json=simple_to_jsonto_valueendmoduleStrings=structtypenonrect=String_.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"Strings"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMatch=structtypenonrect={frameAddress:String_.toption[@ocaml.doc"The location in the profiling graph that contains a recommendation found during analysis."];targetFramesIndex:Integer.toption[@ocaml.doc"The target frame that triggered a match."];thresholdBreachValue:Double.toption[@ocaml.doc"The value in the profile data that exceeded the recommendation threshold."]}letmake?frameAddress=fun?targetFramesIndex->fun?thresholdBreachValue->fun()->{frameAddress;targetFramesIndex;thresholdBreachValue}letto_valuex=structure_to_value[("frameAddress",(Option.mapx.frameAddress~f:String_.to_value));("targetFramesIndex",(Option.mapx.targetFramesIndex~f:Integer.to_value));("thresholdBreachValue",(Option.mapx.thresholdBreachValue~f:Double.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letthresholdBreachValue=(Option.map~f:Double.of_xml)(Xml.childxml_arg0"thresholdBreachValue")inlettargetFramesIndex=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"targetFramesIndex")inletframeAddress=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"frameAddress")inmake?thresholdBreachValue?targetFramesIndex?frameAddress()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letthresholdBreachValue=field_mapjson__"thresholdBreachValue"Double.of_jsoninlettargetFramesIndex=field_mapjson__"targetFramesIndex"Integer.of_jsoninletframeAddress=field_mapjson__"frameAddress"String_.of_jsoninmake?thresholdBreachValue?targetFramesIndex?frameAddress()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The part of a profile that contains a recommendation found during analysis."]modulePercentage=structtypenonrect=floatletmakei=letopenResultinok_or_failwith((check_float_mini~min:100.)>>=(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_valueendmoduleTargetFrames=structtypenonrect=TargetFrame.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TargetFrame.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:TargetFrame.of_xml)letof_jsonj=list_of_json~kind:"TargetFrames"~of_json:TargetFrame.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleThreadStates=structtypenonrect=String_.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"ThreadStates"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleFrameMetricValue=structtypenonrect=floatletmakei=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_valueendmoduleChannel=structtypenonrect={eventPublishers:EventPublishers.t[@ocaml.doc"List of publishers for different type of events that may be detected in an application from the profile. Anomaly detection is the only event publisher in Profiler."];id:ChannelId.toption[@ocaml.doc"Unique identifier for each Channel in the notification configuration of a Profiling Group. A random UUID for channelId is used when adding a channel to the notification configuration if not specified in the request."];uri:ChannelUri.t[@ocaml.doc"Unique arn of the resource to be used for notifications. We support a valid SNS topic arn as a channel uri."]}letcontext_="Channel"letmake?id=fun~eventPublishers->fun~uri->fun()->{id;eventPublishers;uri}letto_valuex=structure_to_value[("eventPublishers",(Some(EventPublishers.to_valuex.eventPublishers)));("id",(Option.mapx.id~f:ChannelId.to_value));("uri",(Some(ChannelUri.to_valuex.uri)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leturi=ChannelUri.of_xml(Xml.child_exn~context:context_xml_arg0"uri")inletid=(Option.map~f:ChannelId.of_xml)(Xml.childxml_arg0"id")inleteventPublishers=EventPublishers.of_xml(Xml.child_exn~context:context_xml_arg0"eventPublishers")inmake~uri?id~eventPublishers()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leturi=field_map_exnjson__"uri"ChannelUri.of_jsoninletid=field_mapjson__"id"ChannelId.of_jsoninleteventPublishers=field_map_exnjson__"eventPublishers"EventPublishers.of_jsoninmake~uri?id~eventPublishers()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Notification medium for users to get alerted for events that occur in application profile. We support SNS topic as a notification channel."]moduleAgentOrchestrationConfig=structtypenonrect={profilingEnabled:Boolean.t[@ocaml.doc"A Boolean that specifies whether the profiling agent collects profiling data or not. Set to true to enable profiling."]}letcontext_="AgentOrchestrationConfig"letmake~profilingEnabled=fun()->{profilingEnabled}letto_valuex=structure_to_value[("profilingEnabled",(Some(Boolean.to_valuex.profilingEnabled)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprofilingEnabled=Boolean.of_xml(Xml.child_exn~context:context_xml_arg0"profilingEnabled")inmake~profilingEnabled()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprofilingEnabled=field_map_exnjson__"profilingEnabled"Boolean.of_jsoninmake~profilingEnabled()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies whether profiling is enabled or disabled for a profiling group. It is used by ConfigureAgent to enable or disable profiling for a profiling group."]moduleComputePlatform=structtypenonrect=|Default|AWSLambda|Non_static_idofstringletmakei=iletto_string=function|Default->"Default"|AWSLambda->"AWSLambda"|Non_static_ids->sletof_string=function|"Default"->Default|"AWSLambda"->AWSLambda|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 ComputePlatform"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ComputePlatform"j)letto_json=simple_to_jsonto_valueendmoduleProfilingGroupArn=structtypenonrect=stringletcontext_="ProfilingGroupArn"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:"ProfilingGroupArn"jletto_json=simple_to_jsonto_valueendmoduleProfilingGroupName=structtypenonrect=stringletcontext_="ProfilingGroupName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"^[\\w-]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ProfilingGroupName"jletto_json=simple_to_jsonto_valueendmoduleProfilingStatus=structtypenonrect={latestAgentOrchestratedAt:Timestamp.toption[@ocaml.doc"The date and time when the profiling agent most recently pinged back. Specify using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC."];latestAgentProfileReportedAt:Timestamp.toption[@ocaml.doc"The date and time when the most recent profile was received. Specify using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC."];latestAggregatedProfile:AggregatedProfileTime.toption[@ocaml.doc"An AggregatedProfileTime object that contains the aggregation period and start time for an aggregated profile."]}letmake?latestAgentOrchestratedAt=fun?latestAgentProfileReportedAt->fun?latestAggregatedProfile->fun()->{latestAgentOrchestratedAt;latestAgentProfileReportedAt;latestAggregatedProfile}letto_valuex=structure_to_value[("latestAgentOrchestratedAt",(Option.mapx.latestAgentOrchestratedAt~f:Timestamp.to_value));("latestAgentProfileReportedAt",(Option.mapx.latestAgentProfileReportedAt~f:Timestamp.to_value));("latestAggregatedProfile",(Option.mapx.latestAggregatedProfile~f:AggregatedProfileTime.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlatestAggregatedProfile=(Option.map~f:AggregatedProfileTime.of_xml)(Xml.childxml_arg0"latestAggregatedProfile")inletlatestAgentProfileReportedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"latestAgentProfileReportedAt")inletlatestAgentOrchestratedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"latestAgentOrchestratedAt")inmake?latestAggregatedProfile?latestAgentProfileReportedAt?latestAgentOrchestratedAt()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlatestAggregatedProfile=field_mapjson__"latestAggregatedProfile"AggregatedProfileTime.of_jsoninletlatestAgentProfileReportedAt=field_mapjson__"latestAgentProfileReportedAt"Timestamp.of_jsoninletlatestAgentOrchestratedAt=field_mapjson__"latestAgentOrchestratedAt"Timestamp.of_jsoninmake?latestAggregatedProfile?latestAgentProfileReportedAt?latestAgentOrchestratedAt()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Profiling status includes information about the last time a profile agent pinged back, the last time a profile was received, and the aggregation period and start time for the most recent aggregated profile."]moduleTagsMap=structtypenonrect=(String_.t*String_.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((String_.of_stringchopped),(String_.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(String_.to_valuex)|>(funx->(String_.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:String_.of_string~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleFindingsReportId=structtypenonrect=stringletcontext_="FindingsReportId"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-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:"FindingsReportId"jletto_json=simple_to_jsonto_valueendmoduleAnomalyInstances=structtypenonrect=AnomalyInstance.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AnomalyInstance.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:AnomalyInstance.of_xml)letof_jsonj=list_of_json~kind:"AnomalyInstances"~of_json:AnomalyInstance.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMetric=structtypenonrect={frameName:String_.toption[@ocaml.doc"The name of the method that appears as a frame in any stack in a profile."];threadStates:Strings.toption[@ocaml.doc"The list of application runtime thread states that is used to calculate the metric value for the frame."];type_:MetricType.toption[@ocaml.doc"A type that specifies how a metric for a frame is analyzed. The supported value AggregatedRelativeTotalTime is an aggregation of the metric value for one frame that is calculated across the occurences of all frames in a profile."]}letmake?frameName=fun?threadStates->fun?type_->fun()->{frameName;threadStates;type_}letto_valuex=structure_to_value[("frameName",(Option.mapx.frameName~f:String_.to_value));("threadStates",(Option.mapx.threadStates~f:Strings.to_value));("type",(Option.mapx.type_~f:MetricType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettype_=(Option.map~f:MetricType.of_xml)(Xml.childxml_arg0"type")inletthreadStates=(Option.map~f:Strings.of_xml)(Xml.childxml_arg0"threadStates")inletframeName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"frameName")inmake?type_?threadStates?frameName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettype_=field_mapjson__"type"MetricType.of_jsoninletthreadStates=field_mapjson__"threadStates"Strings.of_jsoninletframeName=field_mapjson__"frameName"String_.of_jsoninmake?type_?threadStates?frameName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details about the metric that the analysis used when it detected the anomaly. The metric what is analyzed to create recommendations. It includes the name of the frame that was analyzed and the type and thread states used to derive the metric value for that frame."]moduleMatches=structtypenonrect=Match.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Match.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:Match.of_xml)letof_jsonj=list_of_json~kind:"Matches"~of_json:Match.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePattern=structtypenonrect={countersToAggregate:Strings.toption[@ocaml.doc"A list of the different counters used to determine if there is a match."];description:String_.toption[@ocaml.doc"The description of the recommendation. This explains a potential inefficiency in a profiled application."];id:String_.toption[@ocaml.doc"The universally unique identifier (UUID) of this pattern."];name:String_.toption[@ocaml.doc"The name for this pattern."];resolutionSteps:String_.toption[@ocaml.doc"A string that contains the steps recommended to address the potential inefficiency."];targetFrames:TargetFrames.toption[@ocaml.doc"A list of frame names that were searched during the analysis that generated a recommendation."];thresholdPercent:Percentage.toption[@ocaml.doc"The percentage of time an application spends in one method that triggers a recommendation. The percentage of time is the same as the percentage of the total gathered sample counts during analysis."]}letmake?countersToAggregate=fun?description->fun?id->fun?name->fun?resolutionSteps->fun?targetFrames->fun?thresholdPercent->fun()->{countersToAggregate;description;id;name;resolutionSteps;targetFrames;thresholdPercent}letto_valuex=structure_to_value[("countersToAggregate",(Option.mapx.countersToAggregate~f:Strings.to_value));("description",(Option.mapx.description~f:String_.to_value));("id",(Option.mapx.id~f:String_.to_value));("name",(Option.mapx.name~f:String_.to_value));("resolutionSteps",(Option.mapx.resolutionSteps~f:String_.to_value));("targetFrames",(Option.mapx.targetFrames~f:TargetFrames.to_value));("thresholdPercent",(Option.mapx.thresholdPercent~f:Percentage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letthresholdPercent=(Option.map~f:Percentage.of_xml)(Xml.childxml_arg0"thresholdPercent")inlettargetFrames=(Option.map~f:TargetFrames.of_xml)(Xml.childxml_arg0"targetFrames")inletresolutionSteps=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resolutionSteps")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"name")inletid=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"id")inletdescription=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"description")inletcountersToAggregate=(Option.map~f:Strings.of_xml)(Xml.childxml_arg0"countersToAggregate")inmake?thresholdPercent?targetFrames?resolutionSteps?name?id?description?countersToAggregate()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letthresholdPercent=field_mapjson__"thresholdPercent"Percentage.of_jsoninlettargetFrames=field_mapjson__"targetFrames"TargetFrames.of_jsoninletresolutionSteps=field_mapjson__"resolutionSteps"String_.of_jsoninletname=field_mapjson__"name"String_.of_jsoninletid=field_mapjson__"id"String_.of_jsoninletdescription=field_mapjson__"description"String_.of_jsoninletcountersToAggregate=field_mapjson__"countersToAggregate"Strings.of_jsoninmake?thresholdPercent?targetFrames?resolutionSteps?name?id?description?countersToAggregate()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A set of rules used to make a recommendation during an analysis."]moduleAgentParameterField=structtypenonrect=|SamplingIntervalInMilliseconds|ReportingIntervalInMilliseconds|MinimumTimeForReportingInMilliseconds|MemoryUsageLimitPercent|MaxStackDepth|Non_static_idofstringletmakei=iletto_string=function|SamplingIntervalInMilliseconds->"SamplingIntervalInMilliseconds"|ReportingIntervalInMilliseconds->"ReportingIntervalInMilliseconds"|MinimumTimeForReportingInMilliseconds->"MinimumTimeForReportingInMilliseconds"|MemoryUsageLimitPercent->"MemoryUsageLimitPercent"|MaxStackDepth->"MaxStackDepth"|Non_static_ids->sletof_string=function|"SamplingIntervalInMilliseconds"->SamplingIntervalInMilliseconds|"ReportingIntervalInMilliseconds"->ReportingIntervalInMilliseconds|"MinimumTimeForReportingInMilliseconds"->MinimumTimeForReportingInMilliseconds|"MemoryUsageLimitPercent"->MemoryUsageLimitPercent|"MaxStackDepth"->MaxStackDepth|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 AgentParameterField"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AgentParameterField"j)letto_json=simple_to_jsonto_valueendmoduleFrameMetric=structtypenonrect={frameName:String_.t[@ocaml.doc"Name of the method common across the multiple occurrences of a frame in an application profile."];threadStates:ThreadStates.t[@ocaml.doc"List of application runtime thread states used to get the counts for a frame a derive a metric value."];type_:MetricType.t[@ocaml.doc"A type of aggregation that specifies how a metric for a frame is analyzed. The supported value AggregatedRelativeTotalTime is an aggregation of the metric value for one frame that is calculated across the occurrences of all frames in a profile."]}letcontext_="FrameMetric"letmake~frameName=fun~threadStates->fun~type_->fun()->{frameName;threadStates;type_}letto_valuex=structure_to_value[("frameName",(Some(String_.to_valuex.frameName)));("threadStates",(Some(ThreadStates.to_valuex.threadStates)));("type",(Some(MetricType.to_valuex.type_)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettype_=MetricType.of_xml(Xml.child_exn~context:context_xml_arg0"type")inletthreadStates=ThreadStates.of_xml(Xml.child_exn~context:context_xml_arg0"threadStates")inletframeName=String_.of_xml(Xml.child_exn~context:context_xml_arg0"frameName")inmake~type_~threadStates~frameName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettype_=field_map_exnjson__"type"MetricType.of_jsoninletthreadStates=field_map_exnjson__"threadStates"ThreadStates.of_jsoninletframeName=field_map_exnjson__"frameName"String_.of_jsoninmake~type_~threadStates~frameName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The frame name, metric type, and thread states. These are used to derive the value of the metric for the frame."]moduleFrameMetricValues=structtypenonrect=FrameMetricValue.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:FrameMetricValue.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:FrameMetricValue.of_xml)letof_jsonj=list_of_json~kind:"FrameMetricValues"~of_json:FrameMetricValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTimestampStructure=structtypenonrect={value:Timestamp.toption[@ocaml.doc"A Timestamp. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC."]}letmake?value=fun()->{value}letto_valuex=structure_to_value[("value",(Option.mapx.value~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"value")inmake?value()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_mapjson__"value"Timestamp.of_jsoninmake?value()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A data type that contains a Timestamp object. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC."]moduleChannels=structtypenonrect=Channel.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:2)>>=(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:Channel.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:Channel.of_xml)letof_jsonj=list_of_json~kind:"Channels"~of_json:Channel.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePrincipal=structtypenonrect=stringletcontext_="Principal"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:"Principal"jletto_json=simple_to_jsonto_valueendmoduleProfilingGroupDescription=structtypenonrect={agentOrchestrationConfig:AgentOrchestrationConfig.toption[@ocaml.doc"An AgentOrchestrationConfig object that indicates if the profiling group is enabled for profiled or not."];arn:ProfilingGroupArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) identifying the profiling group resource."];computePlatform:ComputePlatform.toption[@ocaml.doc"The compute platform of the profiling group. If it is set to AWSLambda, then the profiled application runs on AWS Lambda. If it is set to Default, then the profiled application runs on a compute platform that is not AWS Lambda, such an Amazon EC2 instance, an on-premises server, or a different platform. The default is Default."];createdAt:Timestamp.toption[@ocaml.doc"The time when the profiling group was created. Specify using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC."];name:ProfilingGroupName.toption[@ocaml.doc"The name of the profiling group."];profilingStatus:ProfilingStatus.toption[@ocaml.doc"A ProfilingStatus object that includes information about the last time a profile agent pinged back, the last time a profile was received, and the aggregation period and start time for the most recent aggregated profile."];tags:TagsMap.toption[@ocaml.doc"A list of the tags that belong to this profiling group."];updatedAt:Timestamp.toption[@ocaml.doc"The date and time when the profiling group was last updated. Specify using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC."]}letmake?agentOrchestrationConfig=fun?arn->fun?computePlatform->fun?createdAt->fun?name->fun?profilingStatus->fun?tags->fun?updatedAt->fun()->{agentOrchestrationConfig;arn;computePlatform;createdAt;name;profilingStatus;tags;updatedAt}letto_valuex=structure_to_value[("agentOrchestrationConfig",(Option.mapx.agentOrchestrationConfig~f:AgentOrchestrationConfig.to_value));("arn",(Option.mapx.arn~f:ProfilingGroupArn.to_value));("computePlatform",(Option.mapx.computePlatform~f:ComputePlatform.to_value));("createdAt",(Option.mapx.createdAt~f:Timestamp.to_value));("name",(Option.mapx.name~f:ProfilingGroupName.to_value));("profilingStatus",(Option.mapx.profilingStatus~f:ProfilingStatus.to_value));("tags",(Option.mapx.tags~f:TagsMap.to_value));("updatedAt",(Option.mapx.updatedAt~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letupdatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"updatedAt")inlettags=(Option.map~f:TagsMap.of_xml)(Xml.childxml_arg0"tags")inletprofilingStatus=(Option.map~f:ProfilingStatus.of_xml)(Xml.childxml_arg0"profilingStatus")inletname=(Option.map~f:ProfilingGroupName.of_xml)(Xml.childxml_arg0"name")inletcreatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"createdAt")inletcomputePlatform=(Option.map~f:ComputePlatform.of_xml)(Xml.childxml_arg0"computePlatform")inletarn=(Option.map~f:ProfilingGroupArn.of_xml)(Xml.childxml_arg0"arn")inletagentOrchestrationConfig=(Option.map~f:AgentOrchestrationConfig.of_xml)(Xml.childxml_arg0"agentOrchestrationConfig")inmake?updatedAt?tags?profilingStatus?name?createdAt?computePlatform?arn?agentOrchestrationConfig()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letupdatedAt=field_mapjson__"updatedAt"Timestamp.of_jsoninlettags=field_mapjson__"tags"TagsMap.of_jsoninletprofilingStatus=field_mapjson__"profilingStatus"ProfilingStatus.of_jsoninletname=field_mapjson__"name"ProfilingGroupName.of_jsoninletcreatedAt=field_mapjson__"createdAt"Timestamp.of_jsoninletcomputePlatform=field_mapjson__"computePlatform"ComputePlatform.of_jsoninletarn=field_mapjson__"arn"ProfilingGroupArn.of_jsoninletagentOrchestrationConfig=field_mapjson__"agentOrchestrationConfig"AgentOrchestrationConfig.of_jsoninmake?updatedAt?tags?profilingStatus?name?createdAt?computePlatform?arn?agentOrchestrationConfig()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information about a profiling group."]moduleProfileTime=structtypenonrect={start:Timestamp.toption[@ocaml.doc"The start time of a profile. It is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC."]}letmake?start=fun()->{start}letto_valuex=structure_to_value[("start",(Option.mapx.start~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstart=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"start")inmake?start()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstart=field_mapjson__"start"Timestamp.of_jsoninmake?start()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the start time of a profile."]moduleFindingsReportSummary=structtypenonrect={id:FindingsReportId.toption[@ocaml.doc"The universally unique identifier (UUID) of the recommendation report."];profileEndTime:Timestamp.toption[@ocaml.doc"The end time of the period during which the metric is flagged as anomalous. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC."];profileStartTime:Timestamp.toption[@ocaml.doc"The start time of the profile the analysis data is about. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC."];profilingGroupName:String_.toption[@ocaml.doc"The name of the profiling group that is associated with the analysis data."];totalNumberOfFindings:Integer.toption[@ocaml.doc"The total number of different recommendations that were found by the analysis."]}letmake?id=fun?profileEndTime->fun?profileStartTime->fun?profilingGroupName->fun?totalNumberOfFindings->fun()->{id;profileEndTime;profileStartTime;profilingGroupName;totalNumberOfFindings}letto_valuex=structure_to_value[("id",(Option.mapx.id~f:FindingsReportId.to_value));("profileEndTime",(Option.mapx.profileEndTime~f:Timestamp.to_value));("profileStartTime",(Option.mapx.profileStartTime~f:Timestamp.to_value));("profilingGroupName",(Option.mapx.profilingGroupName~f:String_.to_value));("totalNumberOfFindings",(Option.mapx.totalNumberOfFindings~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettotalNumberOfFindings=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"totalNumberOfFindings")inletprofilingGroupName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"profilingGroupName")inletprofileStartTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"profileStartTime")inletprofileEndTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"profileEndTime")inletid=(Option.map~f:FindingsReportId.of_xml)(Xml.childxml_arg0"id")inmake?totalNumberOfFindings?profilingGroupName?profileStartTime?profileEndTime?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettotalNumberOfFindings=field_mapjson__"totalNumberOfFindings"Integer.of_jsoninletprofilingGroupName=field_mapjson__"profilingGroupName"String_.of_jsoninletprofileStartTime=field_mapjson__"profileStartTime"Timestamp.of_jsoninletprofileEndTime=field_mapjson__"profileEndTime"Timestamp.of_jsoninletid=field_mapjson__"id"FindingsReportId.of_jsoninmake?totalNumberOfFindings?profilingGroupName?profileStartTime?profileEndTime?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about potential recommendations that might be created from the analysis of profiling data."]moduleAnomaly=structtypenonrect={instances:AnomalyInstances.toption[@ocaml.doc"A list of the instances of the detected anomalies during the requested period."];metric:Metric.toption[@ocaml.doc"Details about the metric that the analysis used when it detected the anomaly. The metric includes the name of the frame that was analyzed with the type and thread states used to derive the metric value for that frame."];reason:String_.toption[@ocaml.doc"The reason for which metric was flagged as anomalous."]}letmake?instances=fun?metric->fun?reason->fun()->{instances;metric;reason}letto_valuex=structure_to_value[("instances",(Option.mapx.instances~f:AnomalyInstances.to_value));("metric",(Option.mapx.metric~f:Metric.to_value));("reason",(Option.mapx.reason~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreason=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"reason")inletmetric=(Option.map~f:Metric.of_xml)(Xml.childxml_arg0"metric")inletinstances=(Option.map~f:AnomalyInstances.of_xml)(Xml.childxml_arg0"instances")inmake?reason?metric?instances()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreason=field_mapjson__"reason"String_.of_jsoninletmetric=field_mapjson__"metric"Metric.of_jsoninletinstances=field_mapjson__"instances"AnomalyInstances.of_jsoninmake?reason?metric?instances()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details about an anomaly in a specific metric of application profile. The anomaly is detected using analysis of the metric data over a period of time."]moduleRecommendation=structtypenonrect={allMatchesCount:Integer.toption[@ocaml.doc"How many different places in the profile graph triggered a match."];allMatchesSum:Double.toption[@ocaml.doc"How much of the total sample count is potentially affected."];endTime:Timestamp.toption[@ocaml.doc"End time of the profile that was used by this analysis. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC."];pattern:Pattern.toption[@ocaml.doc"The pattern that analysis recognized in the profile to make this recommendation."];startTime:Timestamp.toption[@ocaml.doc"The start time of the profile that was used by this analysis. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC."];topMatches:Matches.toption[@ocaml.doc"List of the matches with most impact."]}letmake?allMatchesCount=fun?allMatchesSum->fun?endTime->fun?pattern->fun?startTime->fun?topMatches->fun()->{allMatchesCount;allMatchesSum;endTime;pattern;startTime;topMatches}letto_valuex=structure_to_value[("allMatchesCount",(Option.mapx.allMatchesCount~f:Integer.to_value));("allMatchesSum",(Option.mapx.allMatchesSum~f:Double.to_value));("endTime",(Option.mapx.endTime~f:Timestamp.to_value));("pattern",(Option.mapx.pattern~f:Pattern.to_value));("startTime",(Option.mapx.startTime~f:Timestamp.to_value));("topMatches",(Option.mapx.topMatches~f:Matches.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettopMatches=(Option.map~f:Matches.of_xml)(Xml.childxml_arg0"topMatches")inletstartTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"startTime")inletpattern=(Option.map~f:Pattern.of_xml)(Xml.childxml_arg0"pattern")inletendTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"endTime")inletallMatchesSum=(Option.map~f:Double.of_xml)(Xml.childxml_arg0"allMatchesSum")inletallMatchesCount=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"allMatchesCount")inmake?topMatches?startTime?pattern?endTime?allMatchesSum?allMatchesCount()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettopMatches=field_mapjson__"topMatches"Matches.of_jsoninletstartTime=field_mapjson__"startTime"Timestamp.of_jsoninletpattern=field_mapjson__"pattern"Pattern.of_jsoninletendTime=field_mapjson__"endTime"Timestamp.of_jsoninletallMatchesSum=field_mapjson__"allMatchesSum"Double.of_jsoninletallMatchesCount=field_mapjson__"allMatchesCount"Integer.of_jsoninmake?topMatches?startTime?pattern?endTime?allMatchesSum?allMatchesCount()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A potential improvement that was found from analyzing the profiling data."]moduleAgentParameters=structtypenonrect=(AgentParameterField.t*String_.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((AgentParameterField.of_stringchopped),(String_.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(AgentParameterField.to_valuex)|>(funx->(String_.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:AgentParameterField.of_string~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMetadataField=structtypenonrect=|ComputePlatform|AgentId|AwsRequestId|ExecutionEnvironment|LambdaFunctionArn|LambdaMemoryLimitInMB|LambdaRemainingTimeInMilliseconds|LambdaTimeGapBetweenInvokesInMilliseconds|LambdaPreviousExecutionTimeInMilliseconds|Non_static_idofstringletmakei=iletto_string=function|ComputePlatform->"ComputePlatform"|AgentId->"AgentId"|AwsRequestId->"AwsRequestId"|ExecutionEnvironment->"ExecutionEnvironment"|LambdaFunctionArn->"LambdaFunctionArn"|LambdaMemoryLimitInMB->"LambdaMemoryLimitInMB"|LambdaRemainingTimeInMilliseconds->"LambdaRemainingTimeInMilliseconds"|LambdaTimeGapBetweenInvokesInMilliseconds->"LambdaTimeGapBetweenInvokesInMilliseconds"|LambdaPreviousExecutionTimeInMilliseconds->"LambdaPreviousExecutionTimeInMilliseconds"|Non_static_ids->sletof_string=function|"ComputePlatform"->ComputePlatform|"AgentId"->AgentId|"AwsRequestId"->AwsRequestId|"ExecutionEnvironment"->ExecutionEnvironment|"LambdaFunctionArn"->LambdaFunctionArn|"LambdaMemoryLimitInMB"->LambdaMemoryLimitInMB|"LambdaRemainingTimeInMilliseconds"->LambdaRemainingTimeInMilliseconds|"LambdaTimeGapBetweenInvokesInMilliseconds"->LambdaTimeGapBetweenInvokesInMilliseconds|"LambdaPreviousExecutionTimeInMilliseconds"->LambdaPreviousExecutionTimeInMilliseconds|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 MetadataField"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"MetadataField"j)letto_json=simple_to_jsonto_valueendmoduleFrameMetricDatum=structtypenonrect={frameMetric:FrameMetric.toption;values:FrameMetricValues.toption[@ocaml.doc"A list of values that are associated with a frame metric."]}letmake?frameMetric=fun?values->fun()->{frameMetric;values}letto_valuex=structure_to_value[("frameMetric",(Option.mapx.frameMetric~f:FrameMetric.to_value));("values",(Option.mapx.values~f:FrameMetricValues.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalues=(Option.map~f:FrameMetricValues.of_xml)(Xml.childxml_arg0"values")inletframeMetric=(Option.map~f:FrameMetric.of_xml)(Xml.childxml_arg0"frameMetric")inmake?values?frameMetric()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalues=field_mapjson__"values"FrameMetricValues.of_jsoninletframeMetric=field_mapjson__"frameMetric"FrameMetric.of_jsoninmake?values?frameMetric()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about a frame metric and its values."]moduleListOfTimestamps=structtypenonrect=TimestampStructure.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TimestampStructure.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:TimestampStructure.of_xml)letof_jsonj=list_of_json~kind:"ListOfTimestamps"~of_json:TimestampStructure.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleConflictException=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 requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request."]moduleInternalServerException=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 server encountered an internal error and is unable to complete the request."]moduleResourceNotFoundException=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 specified in the request does not exist."]moduleThrottlingException=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 request was denied due to request throttling."]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"The parameter is not valid."]moduleTagKeys=structtypenonrect=String_.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"TagKeys"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAnomalyInstanceId=structtypenonrect=stringletcontext_="AnomalyInstanceId"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-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:"AnomalyInstanceId"jletto_json=simple_to_jsonto_valueendmoduleRevisionId=structtypenonrect=stringletcontext_="RevisionId"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-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:"RevisionId"jletto_json=simple_to_jsonto_valueendmoduleActionGroup=structtypenonrect=|AgentPermissions|Non_static_idofstringletmakei=iletto_string=function|AgentPermissions->"agentPermissions"|Non_static_ids->sletof_string=function|"agentPermissions"->AgentPermissions|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 ActionGroup"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ActionGroup"j)letto_json=simple_to_jsonto_valueendmoduleNotificationConfiguration=structtypenonrect={channels:Channels.toption[@ocaml.doc"List of up to two channels to be used for sending notifications for events detected from the application profile."]}letmake?channels=fun()->{channels}letto_valuex=structure_to_value[("channels",(Option.mapx.channels~f:Channels.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letchannels=(Option.map~f:Channels.of_xml)(Xml.childxml_arg0"channels")inmake?channels()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letchannels=field_mapjson__"channels"Channels.of_jsoninmake?channels()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The configuration for notifications stored for each profiling group. This includes up to to two channels and a list of event publishers associated with each channel."]modulePrincipals=structtypenonrect=Principal.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(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:Principal.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:Principal.of_xml)letof_jsonj=list_of_json~kind:"Principals"~of_json:Principal.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAgentProfile=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Blobxletto_queryv=to_queryto_valuevletto_headerx=xletof_xmlxml_arg0=string_of_xml~kind:"a blob"xml_arg0letof_jsonj=string_of_json~kind:"a blob"jletto_json=simple_to_jsonto_valueendmoduleClientToken=structtypenonrect=stringletcontext_="ClientToken"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:64)>>=(fun()->check_patterni~pattern:"^[\\w-]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ClientToken"jletto_json=simple_to_jsonto_valueendmodulePaginationToken=structtypenonrect=stringletcontext_="PaginationToken"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:64)>>=(fun()->check_patterni~pattern:"^[\\w-]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PaginationToken"jletto_json=simple_to_jsonto_valueendmoduleProfilingGroupDescriptions=structtypenonrect=ProfilingGroupDescription.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ProfilingGroupDescription.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:ProfilingGroupDescription.of_xml)letof_jsonj=list_of_json~kind:"ProfilingGroupDescriptions"~of_json:ProfilingGroupDescription.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleProfilingGroupNames=structtypenonrect=ProfilingGroupName.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ProfilingGroupName.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:ProfilingGroupName.of_xml)letof_jsonj=list_of_json~kind:"ProfilingGroupNames"~of_json:ProfilingGroupName.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:1000)>>=(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 MaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleProfileTimes=structtypenonrect=ProfileTime.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ProfileTime.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:ProfileTime.of_xml)letof_jsonj=list_of_json~kind:"ProfileTimes"~of_json:ProfileTime.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleOrderBy=structtypenonrect=|TimestampDescending|TimestampAscending|Non_static_idofstringletmakei=iletto_string=function|TimestampDescending->"TimestampDescending"|TimestampAscending->"TimestampAscending"|Non_static_ids->sletof_string=function|"TimestampDescending"->TimestampDescending|"TimestampAscending"->TimestampAscending|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 OrderBy"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"OrderBy"j)letto_json=simple_to_jsonto_valueendmoduleFindingsReportSummaries=structtypenonrect=FindingsReportSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:FindingsReportSummary.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:FindingsReportSummary.of_xml)letof_jsonj=list_of_json~kind:"FindingsReportSummaries"~of_json:FindingsReportSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAnomalies=structtypenonrect=Anomaly.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Anomaly.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:Anomaly.of_xml)letof_jsonj=list_of_json~kind:"Anomalies"~of_json:Anomaly.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRecommendations=structtypenonrect=Recommendation.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Recommendation.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:Recommendation.of_xml)letof_jsonj=list_of_json~kind:"Recommendations"~of_json:Recommendation.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleLocale=structtypenonrect=string[@@ocaml.doc"BCP47 language code. Supported locales: de-DE, en-GB, en-US, es-ES, fr-FR, it-IT, ja-JP, ko-KR, pt-BR, zh-CN, zh-TW"]letcontext_="Locale"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:"Locale"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"BCP47 language code. Supported locales: de-DE, en-GB, en-US, es-ES, fr-FR, it-IT, ja-JP, ko-KR, pt-BR, zh-CN, zh-TW"]moduleAggregatedProfile=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Blobxletto_queryv=to_queryto_valuevletto_headerx=xletof_xmlxml_arg0=string_of_xml~kind:"a blob"xml_arg0letof_jsonj=string_of_json~kind:"a blob"jletto_json=simple_to_jsonto_valueendmoduleMaxDepth=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:10000)>>=(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 MaxDepth"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmodulePeriod=structtypenonrect=stringletcontext_="Period"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:64)>>=(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:"Period"jletto_json=simple_to_jsonto_valueendmoduleServiceQuotaExceededException=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 have exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use Service Quotas to request a service quota increase."]moduleAgentConfiguration=structtypenonrect={agentParameters:AgentParameters.toption[@ocaml.doc"Parameters used by the profiler. The valid parameters are: MaxStackDepth - The maximum depth of the stacks in the code that is represented in the profile. For example, if CodeGuru Profiler finds a method A, which calls method B, which calls method C, which calls method D, then the depth is 4. If the maxDepth is set to 2, then the profiler evaluates A and B. MemoryUsageLimitPercent - The percentage of memory that is used by the profiler. MinimumTimeForReportingInMilliseconds - The minimum time in milliseconds between sending reports. ReportingIntervalInMilliseconds - The reporting interval in milliseconds used to report profiles. SamplingIntervalInMilliseconds - The sampling interval in milliseconds that is used to profile samples."];periodInSeconds:Integer.toption[@ocaml.doc"How long a profiling agent should send profiling data using ConfigureAgent . For example, if this is set to 300, the profiling agent calls ConfigureAgent every 5 minutes to submit the profiled data collected during that period."];shouldProfile:Boolean.toption[@ocaml.doc"A Boolean that specifies whether the profiling agent collects profiling data or not. Set to true to enable profiling."]}letmake?agentParameters=fun?periodInSeconds->fun?shouldProfile->fun()->{agentParameters;periodInSeconds;shouldProfile}letto_valuex=structure_to_value[("agentParameters",(Option.mapx.agentParameters~f:AgentParameters.to_value));("periodInSeconds",(Option.mapx.periodInSeconds~f:Integer.to_value));("shouldProfile",(Option.mapx.shouldProfile~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letshouldProfile=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"shouldProfile")inletperiodInSeconds=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"periodInSeconds")inletagentParameters=(Option.map~f:AgentParameters.of_xml)(Xml.childxml_arg0"agentParameters")inmake?shouldProfile?periodInSeconds?agentParameters()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letshouldProfile=field_mapjson__"shouldProfile"Boolean.of_jsoninletperiodInSeconds=field_mapjson__"periodInSeconds"Integer.of_jsoninletagentParameters=field_mapjson__"agentParameters"AgentParameters.of_jsoninmake?shouldProfile?periodInSeconds?agentParameters()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The response of ConfigureAgent that specifies if an agent profiles or not and for how long to return profiling data."]moduleFleetInstanceId=structtypenonrect=stringletcontext_="FleetInstanceId"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:"FleetInstanceId"jletto_json=simple_to_jsonto_valueendmoduleMetadata=structtypenonrect=(MetadataField.t*String_.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((MetadataField.of_stringchopped),(String_.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(MetadataField.to_valuex)|>(funx->(String_.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:MetadataField.of_string~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleFrameMetricData=structtypenonrect=FrameMetricDatum.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:FrameMetricDatum.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:FrameMetricDatum.of_xml)letof_jsonj=list_of_json~kind:"FrameMetricData"~of_json:FrameMetricDatum.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUnprocessedEndTimeMap=structtypenonrect=(String_.t*ListOfTimestamps.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->let(_:string)=vinlet(_:string)=choppedinfailwith"no of_header for complex types String ListOfTimestamps"))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(String_.to_valuex)|>(funx->(ListOfTimestamps.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:String_.of_string~of_json:ListOfTimestamps.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleFrameMetrics=structtypenonrect=FrameMetric.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:FrameMetric.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:FrameMetric.of_xml)letof_jsonj=list_of_json~kind:"FrameMetrics"~of_json:FrameMetric.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUpdateProfilingGroupResponse=structtypenonrect={profilingGroup:ProfilingGroupDescription.toption[@ocaml.doc"A ProfilingGroupDescription that contains information about the returned updated profiling group."]}typenonrecerror=[`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?profilingGroup=fun()->{profilingGroup}leterror_of_jsonnamejson=matchnamewith|"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|"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|`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?profilingGroup:(Somepipe)())[@warning"-27"])letto_valuex=structure_to_value[("profilingGroup",(Option.mapx.profilingGroup~f:ProfilingGroupDescription.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprofilingGroup=(Option.map~f:ProfilingGroupDescription.of_xml)(Xml.childxml_arg0"profilingGroup")inmake?profilingGroup()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprofilingGroup=field_mapjson__"profilingGroup"ProfilingGroupDescription.of_jsoninmake?profilingGroup()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the updateProfilingGroupResponse."]moduleUpdateProfilingGroupRequest=structtypenonrect={agentOrchestrationConfig:AgentOrchestrationConfig.t[@ocaml.doc"Specifies whether profiling is enabled or disabled for a profiling group."];profilingGroupName:ProfilingGroupName.t[@ocaml.doc"The name of the profiling group to update."]}letcontext_="UpdateProfilingGroupRequest"letmake~agentOrchestrationConfig=fun~profilingGroupName->fun()->{agentOrchestrationConfig;profilingGroupName}letto_valuex=structure_to_value[("agentOrchestrationConfig",(Some(AgentOrchestrationConfig.to_valuex.agentOrchestrationConfig)));("profilingGroupName",(Some(ProfilingGroupName.to_valuex.profilingGroupName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprofilingGroupName=ProfilingGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"profilingGroupName")inletagentOrchestrationConfig=AgentOrchestrationConfig.of_xml(Xml.child_exn~context:context_xml_arg0"agentOrchestrationConfig")inmake~profilingGroupName~agentOrchestrationConfig()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprofilingGroupName=field_map_exnjson__"profilingGroupName"ProfilingGroupName.of_jsoninletagentOrchestrationConfig=field_map_exnjson__"agentOrchestrationConfig"AgentOrchestrationConfig.of_jsoninmake~profilingGroupName~agentOrchestrationConfig()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the updateProfilingGroupRequest."]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"Use to remove one or more tags from a resource."]moduleUntagResourceRequest=structtypenonrect={resourceArn:ProfilingGroupArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the resource that contains the tags to remove."];tagKeys:TagKeys.t[@ocaml.doc"A list of tag keys. Existing tags of resources with keys in this list are removed from the specified resource."]}letcontext_="UntagResourceRequest"letmake~resourceArn=fun~tagKeys->fun()->{resourceArn;tagKeys}letto_valuex=structure_to_value[("resourceArn",(Some(ProfilingGroupArn.to_valuex.resourceArn)));("tagKeys",(Some(TagKeys.to_valuex.tagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagKeys=TagKeys.of_xml(Xml.child_exn~context:context_xml_arg0"tagKeys")inletresourceArn=ProfilingGroupArn.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"TagKeys.of_jsoninletresourceArn=field_map_exnjson__"resourceArn"ProfilingGroupArn.of_jsoninmake~tagKeys~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Use to remove one or more tags from a 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"Use to assign one or more tags to a resource."]moduleTagResourceRequest=structtypenonrect={resourceArn:ProfilingGroupArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the resource that the tags are added to."];tags:TagsMap.t[@ocaml.doc"The list of tags that are added to the specified resource."]}letcontext_="TagResourceRequest"letmake~resourceArn=fun~tags->fun()->{resourceArn;tags}letto_valuex=structure_to_value[("resourceArn",(Some(ProfilingGroupArn.to_valuex.resourceArn)));("tags",(Some(TagsMap.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=TagsMap.of_xml(Xml.child_exn~context:context_xml_arg0"tags")inletresourceArn=ProfilingGroupArn.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"TagsMap.of_jsoninletresourceArn=field_map_exnjson__"resourceArn"ProfilingGroupArn.of_jsoninmake~tags~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Use to assign one or more tags to a resource."]moduleSubmitFeedbackResponse=structtypenonrect=unittypenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"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|"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|`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"The structure representing the SubmitFeedbackResponse."]moduleSubmitFeedbackRequest=structtypenonrect={anomalyInstanceId:AnomalyInstanceId.t[@ocaml.doc"The universally unique identifier (UUID) of the AnomalyInstance object that is included in the analysis data."];comment:String_.toption[@ocaml.doc"Optional feedback about this anomaly."];profilingGroupName:ProfilingGroupName.t[@ocaml.doc"The name of the profiling group that is associated with the analysis data."];type_:FeedbackType.t[@ocaml.doc"The feedback tpye. Thee are two valid values, Positive and Negative."]}letcontext_="SubmitFeedbackRequest"letmake?comment=fun~anomalyInstanceId->fun~profilingGroupName->fun~type_->fun()->{comment;anomalyInstanceId;profilingGroupName;type_}letto_valuex=structure_to_value[("anomalyInstanceId",(Some(AnomalyInstanceId.to_valuex.anomalyInstanceId)));("comment",(Option.mapx.comment~f:String_.to_value));("profilingGroupName",(Some(ProfilingGroupName.to_valuex.profilingGroupName)));("type",(Some(FeedbackType.to_valuex.type_)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettype_=FeedbackType.of_xml(Xml.child_exn~context:context_xml_arg0"type")inletprofilingGroupName=ProfilingGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"profilingGroupName")inletcomment=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"comment")inletanomalyInstanceId=AnomalyInstanceId.of_xml(Xml.child_exn~context:context_xml_arg0"anomalyInstanceId")inmake~type_~profilingGroupName?comment~anomalyInstanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettype_=field_map_exnjson__"type"FeedbackType.of_jsoninletprofilingGroupName=field_map_exnjson__"profilingGroupName"ProfilingGroupName.of_jsoninletcomment=field_mapjson__"comment"String_.of_jsoninletanomalyInstanceId=field_map_exnjson__"anomalyInstanceId"AnomalyInstanceId.of_jsoninmake~type_~profilingGroupName?comment~anomalyInstanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the SubmitFeedbackRequest."]moduleRemovePermissionResponse=structtypenonrect={policy:String_.toption[@ocaml.doc"The JSON-formatted resource-based policy on the profiling group after the specified permissions were removed."];revisionId:RevisionId.toption[@ocaml.doc"A universally unique identifier (UUID) for the revision of the resource-based policy after the specified permissions were removed. The updated JSON-formatted policy is in the policy element of the response."]}typenonrecerror=[`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?policy=fun?revisionId->fun()->{policy;revisionId}leterror_of_jsonnamejson=matchnamewith|"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|"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|`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[("policy",(Option.mapx.policy~f:String_.to_value));("revisionId",(Option.mapx.revisionId~f:RevisionId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrevisionId=(Option.map~f:RevisionId.of_xml)(Xml.childxml_arg0"revisionId")inletpolicy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"policy")inmake?revisionId?policy()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrevisionId=field_mapjson__"revisionId"RevisionId.of_jsoninletpolicy=field_mapjson__"policy"String_.of_jsoninmake?revisionId?policy()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the removePermissionResponse."]moduleRemovePermissionRequest=structtypenonrect={actionGroup:ActionGroup.t[@ocaml.doc"Specifies an action group that contains the permissions to remove from a profiling group's resource-based policy. One action group is supported, agentPermissions, which grants ConfigureAgent and PostAgentProfile permissions."];profilingGroupName:ProfilingGroupName.t[@ocaml.doc"The name of the profiling group."];revisionId:RevisionId.t[@ocaml.doc"A universally unique identifier (UUID) for the revision of the resource-based policy from which you want to remove permissions."]}letcontext_="RemovePermissionRequest"letmake~actionGroup=fun~profilingGroupName->fun~revisionId->fun()->{actionGroup;profilingGroupName;revisionId}letto_valuex=structure_to_value[("actionGroup",(Some(ActionGroup.to_valuex.actionGroup)));("profilingGroupName",(Some(ProfilingGroupName.to_valuex.profilingGroupName)));("revisionId",(Some(RevisionId.to_valuex.revisionId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrevisionId=RevisionId.of_xml(Xml.child_exn~context:context_xml_arg0"revisionId")inletprofilingGroupName=ProfilingGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"profilingGroupName")inletactionGroup=ActionGroup.of_xml(Xml.child_exn~context:context_xml_arg0"actionGroup")inmake~revisionId~profilingGroupName~actionGroup()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrevisionId=field_map_exnjson__"revisionId"RevisionId.of_jsoninletprofilingGroupName=field_map_exnjson__"profilingGroupName"ProfilingGroupName.of_jsoninletactionGroup=field_map_exnjson__"actionGroup"ActionGroup.of_jsoninmake~revisionId~profilingGroupName~actionGroup()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the <code>removePermissionRequest</code>.</p>"]moduleRemoveNotificationChannelResponse=structtypenonrect={notificationConfiguration:NotificationConfiguration.toption[@ocaml.doc"The new notification configuration for this profiling group."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?notificationConfiguration=fun()->{notificationConfiguration}leterror_of_jsonnamejson=matchnamewith|"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|"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|`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[("notificationConfiguration",(Option.mapx.notificationConfiguration~f:NotificationConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnotificationConfiguration=(Option.map~f:NotificationConfiguration.of_xml)(Xml.childxml_arg0"notificationConfiguration")inmake?notificationConfiguration()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnotificationConfiguration=field_mapjson__"notificationConfiguration"NotificationConfiguration.of_jsoninmake?notificationConfiguration()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the RemoveNotificationChannelResponse."]moduleRemoveNotificationChannelRequest=structtypenonrect={channelId:ChannelId.t[@ocaml.doc"The id of the channel that we want to stop receiving notifications."];profilingGroupName:ProfilingGroupName.t[@ocaml.doc"The name of the profiling group we want to change notification configuration for."]}letcontext_="RemoveNotificationChannelRequest"letmake~channelId=fun~profilingGroupName->fun()->{channelId;profilingGroupName}letto_valuex=structure_to_value[("channelId",(Some(ChannelId.to_valuex.channelId)));("profilingGroupName",(Some(ProfilingGroupName.to_valuex.profilingGroupName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprofilingGroupName=ProfilingGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"profilingGroupName")inletchannelId=ChannelId.of_xml(Xml.child_exn~context:context_xml_arg0"channelId")inmake~profilingGroupName~channelId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprofilingGroupName=field_map_exnjson__"profilingGroupName"ProfilingGroupName.of_jsoninletchannelId=field_map_exnjson__"channelId"ChannelId.of_jsoninmake~profilingGroupName~channelId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the RemoveNotificationChannelRequest."]modulePutPermissionResponse=structtypenonrect={policy:String_.toption[@ocaml.doc"The JSON-formatted resource-based policy on the profiling group that includes the added permissions."];revisionId:RevisionId.toption[@ocaml.doc"A universally unique identifier (UUID) for the revision of the resource-based policy that includes the added permissions. The JSON-formatted policy is in the policy element of the response."]}typenonrecerror=[`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?policy=fun?revisionId->fun()->{policy;revisionId}leterror_of_jsonnamejson=matchnamewith|"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|"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|`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[("policy",(Option.mapx.policy~f:String_.to_value));("revisionId",(Option.mapx.revisionId~f:RevisionId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrevisionId=(Option.map~f:RevisionId.of_xml)(Xml.childxml_arg0"revisionId")inletpolicy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"policy")inmake?revisionId?policy()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrevisionId=field_mapjson__"revisionId"RevisionId.of_jsoninletpolicy=field_mapjson__"policy"String_.of_jsoninmake?revisionId?policy()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the putPermissionResponse."]modulePutPermissionRequest=structtypenonrect={actionGroup:ActionGroup.t[@ocaml.doc"Specifies an action group that contains permissions to add to a profiling group resource. One action group is supported, agentPermissions, which grants permission to perform actions required by the profiling agent, ConfigureAgent and PostAgentProfile permissions."];principals:Principals.t[@ocaml.doc"A list ARNs for the roles and users you want to grant access to the profiling group. Wildcards are not are supported in the ARNs."];profilingGroupName:ProfilingGroupName.t[@ocaml.doc"The name of the profiling group to grant access to."];revisionId:RevisionId.toption[@ocaml.doc"A universally unique identifier (UUID) for the revision of the policy you are adding to the profiling group. Do not specify this when you add permissions to a profiling group for the first time. If a policy already exists on the profiling group, you must specify the revisionId."]}letcontext_="PutPermissionRequest"letmake?revisionId=fun~actionGroup->fun~principals->fun~profilingGroupName->fun()->{revisionId;actionGroup;principals;profilingGroupName}letto_valuex=structure_to_value[("actionGroup",(Some(ActionGroup.to_valuex.actionGroup)));("principals",(Some(Principals.to_valuex.principals)));("profilingGroupName",(Some(ProfilingGroupName.to_valuex.profilingGroupName)));("revisionId",(Option.mapx.revisionId~f:RevisionId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrevisionId=(Option.map~f:RevisionId.of_xml)(Xml.childxml_arg0"revisionId")inletprofilingGroupName=ProfilingGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"profilingGroupName")inletprincipals=Principals.of_xml(Xml.child_exn~context:context_xml_arg0"principals")inletactionGroup=ActionGroup.of_xml(Xml.child_exn~context:context_xml_arg0"actionGroup")inmake?revisionId~profilingGroupName~principals~actionGroup()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrevisionId=field_mapjson__"revisionId"RevisionId.of_jsoninletprofilingGroupName=field_map_exnjson__"profilingGroupName"ProfilingGroupName.of_jsoninletprincipals=field_map_exnjson__"principals"Principals.of_jsoninletactionGroup=field_map_exnjson__"actionGroup"ActionGroup.of_jsoninmake?revisionId~profilingGroupName~principals~actionGroup()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the putPermissionRequest."]modulePostAgentProfileResponse=structtypenonrect=unittypenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"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|"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|`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"The structure representing the postAgentProfileResponse."]modulePostAgentProfileRequest=structtypenonrect={agentProfile:AgentProfile.t[@ocaml.doc"The submitted profiling data."];contentType:String_.t[@ocaml.doc"The format of the submitted profiling data. The format maps to the Accept and Content-Type headers of the HTTP request. You can specify one of the following: or the default . <ul> <li> <p> <code>application/json</code> \226\128\148 standard JSON format </p> </li> <li> <p> <code>application/x-amzn-ion</code> \226\128\148 the Amazon Ion data format. For more information, see <a href=\"http://amzn.github.io/ion-docs/\">Amazon Ion</a>. </p> </li> </ul>"];profileToken:ClientToken.toption[@ocaml.doc"Amazon CodeGuru Profiler uses this universally unique identifier (UUID) to prevent the accidental submission of duplicate profiling data if there are failures and retries."];profilingGroupName:ProfilingGroupName.t[@ocaml.doc"The name of the profiling group with the aggregated profile that receives the submitted profiling data."]}letcontext_="PostAgentProfileRequest"letmake?profileToken=fun~agentProfile->fun~contentType->fun~profilingGroupName->fun()->{profileToken;agentProfile;contentType;profilingGroupName}letof_header_and_body=((fun(xs,pipe)->make~agentProfile:pipe~contentType:(String_.of_string((List.Assoc.find_exn~equal:String.Caseless.equal)xs"Content-Type"))?profileToken:(Option.map((List.Assoc.find~equal:String.Caseless.equal)xs"profileToken")~f:ClientToken.of_string)~profilingGroupName:(ProfilingGroupName.of_string((List.Assoc.find_exn~equal:String.Caseless.equal)xs"profilingGroupName"))())[@warning"-27"])letto_valuex=structure_to_value[("agentProfile",(Some(AgentProfile.to_valuex.agentProfile)));("Content-Type",(Some(String_.to_valuex.contentType)));("profileToken",(Option.mapx.profileToken~f:ClientToken.to_value));("profilingGroupName",(Some(ProfilingGroupName.to_valuex.profilingGroupName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprofilingGroupName=ProfilingGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"profilingGroupName")inletprofileToken=(Option.map~f:ClientToken.of_xml)(Xml.childxml_arg0"profileToken")inletcontentType=String_.of_xml(Xml.child_exn~context:context_xml_arg0"Content-Type")inletagentProfile=AgentProfile.of_xml(Xml.child_exn~context:context_xml_arg0"agentProfile")inmake~profilingGroupName?profileToken~contentType~agentProfile()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprofilingGroupName=field_map_exnjson__"profilingGroupName"ProfilingGroupName.of_jsoninletprofileToken=field_mapjson__"profileToken"ClientToken.of_jsoninletcontentType=field_map_exnjson__"contentType"String_.of_jsoninletagentProfile=field_map_exnjson__"agentProfile"AgentProfile.of_jsoninmake~profilingGroupName?profileToken~contentType~agentProfile()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the postAgentProfileRequest."]moduleListTagsForResourceResponse=structtypenonrect={tags:TagsMap.toption[@ocaml.doc"The list of tags assigned to the specified resource. This is the list of tags returned in the response."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun()->{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[("tags",(Option.mapx.tags~f:TagsMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagsMap.of_xml)(Xml.childxml_arg0"tags")inmake?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"TagsMap.of_jsoninmake?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of the tags that are assigned to a specified resource."]moduleListTagsForResourceRequest=structtypenonrect={resourceArn:ProfilingGroupArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the resource that contains the tags to return."]}letcontext_="ListTagsForResourceRequest"letmake~resourceArn=fun()->{resourceArn}letto_valuex=structure_to_value[("resourceArn",(Some(ProfilingGroupArn.to_valuex.resourceArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=ProfilingGroupArn.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"ProfilingGroupArn.of_jsoninmake~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of the tags that are assigned to a specified resource."]moduleListProfilingGroupsResponse=structtypenonrect={nextToken:PaginationToken.toption[@ocaml.doc"The nextToken value to include in a future ListProfilingGroups request. When the results of a ListProfilingGroups request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return."];profilingGroupNames:ProfilingGroupNames.toption[@ocaml.doc"A returned list of profiling group names. A list of the names is returned only if includeDescription is false, otherwise a list of ProfilingGroupDescription objects is returned."];profilingGroups:ProfilingGroupDescriptions.toption[@ocaml.doc"A returned list ProfilingGroupDescription objects. A list of ProfilingGroupDescription objects is returned only if includeDescription is true, otherwise a list of profiling group names is returned."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?profilingGroupNames->fun?profilingGroups->fun()->{nextToken;profilingGroupNames;profilingGroups}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.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))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.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:PaginationToken.to_value));("profilingGroupNames",(Option.mapx.profilingGroupNames~f:ProfilingGroupNames.to_value));("profilingGroups",(Option.mapx.profilingGroups~f:ProfilingGroupDescriptions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprofilingGroups=(Option.map~f:ProfilingGroupDescriptions.of_xml)(Xml.childxml_arg0"profilingGroups")inletprofilingGroupNames=(Option.map~f:ProfilingGroupNames.of_xml)(Xml.childxml_arg0"profilingGroupNames")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inmake?profilingGroups?profilingGroupNames?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprofilingGroups=field_mapjson__"profilingGroups"ProfilingGroupDescriptions.of_jsoninletprofilingGroupNames=field_mapjson__"profilingGroupNames"ProfilingGroupNames.of_jsoninletnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninmake?profilingGroups?profilingGroupNames?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the listProfilingGroupsResponse."]moduleListProfilingGroupsRequest=structtypenonrect={includeDescription:Boolean.toption[@ocaml.doc"A Boolean value indicating whether to include a description. If true, then a list of ProfilingGroupDescription objects that contain detailed information about profiling groups is returned. If false, then a list of profiling group names is returned."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of profiling groups results returned by ListProfilingGroups in paginated output. When this parameter is used, ListProfilingGroups only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another ListProfilingGroups request with the returned nextToken value."];nextToken:PaginationToken.toption[@ocaml.doc"The nextToken value returned from a previous paginated ListProfilingGroups request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes."]}letmake?includeDescription=fun?maxResults->fun?nextToken->fun()->{includeDescription;maxResults;nextToken}letto_valuex=structure_to_value[("includeDescription",(Option.mapx.includeDescription~f:Boolean.to_value));("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletincludeDescription=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"includeDescription")inmake?nextToken?maxResults?includeDescription()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninletmaxResults=field_mapjson__"maxResults"MaxResults.of_jsoninletincludeDescription=field_mapjson__"includeDescription"Boolean.of_jsoninmake?nextToken?maxResults?includeDescription()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the listProfilingGroupsRequest."]moduleListProfileTimesResponse=structtypenonrect={nextToken:PaginationToken.toption[@ocaml.doc"The nextToken value to include in a future ListProfileTimes request. When the results of a ListProfileTimes request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return."];profileTimes:ProfileTimes.toption[@ocaml.doc"The list of start times of the available profiles for the aggregation period in the specified time range."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?profileTimes->fun()->{nextToken;profileTimes}leterror_of_jsonnamejson=matchnamewith|"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|"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|`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[("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("profileTimes",(Option.mapx.profileTimes~f:ProfileTimes.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprofileTimes=(Option.map~f:ProfileTimes.of_xml)(Xml.childxml_arg0"profileTimes")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inmake?profileTimes?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprofileTimes=field_mapjson__"profileTimes"ProfileTimes.of_jsoninletnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninmake?profileTimes?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the listProfileTimesResponse."]moduleListProfileTimesRequest=structtypenonrect={endTime:Timestamp.t[@ocaml.doc"The end time of the time range from which to list the profiles."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of profile time results returned by ListProfileTimes in paginated output. When this parameter is used, ListProfileTimes only returns maxResults results in a single page with a nextToken response element. The remaining results of the initial request can be seen by sending another ListProfileTimes request with the returned nextToken value."];nextToken:PaginationToken.toption[@ocaml.doc"The nextToken value returned from a previous paginated ListProfileTimes request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes."];orderBy:OrderBy.toption[@ocaml.doc"The order (ascending or descending by start time of the profile) to use when listing profiles. Defaults to TIMESTAMP_DESCENDING."];period:AggregationPeriod.t[@ocaml.doc"The aggregation period. This specifies the period during which an aggregation profile collects posted agent profiles for a profiling group. There are 3 valid values. P1D \226\128\148 1 day PT1H \226\128\148 1 hour PT5M \226\128\148 5 minutes"];profilingGroupName:ProfilingGroupName.t[@ocaml.doc"The name of the profiling group."];startTime:Timestamp.t[@ocaml.doc"The start time of the time range from which to list the profiles."]}letcontext_="ListProfileTimesRequest"letmake?maxResults=fun?nextToken->fun?orderBy->fun~endTime->fun~period->fun~profilingGroupName->fun~startTime->fun()->{maxResults;nextToken;orderBy;endTime;period;profilingGroupName;startTime}letto_valuex=structure_to_value[("endTime",(Some(Timestamp.to_valuex.endTime)));("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("orderBy",(Option.mapx.orderBy~f:OrderBy.to_value));("period",(Some(AggregationPeriod.to_valuex.period)));("profilingGroupName",(Some(ProfilingGroupName.to_valuex.profilingGroupName)));("startTime",(Some(Timestamp.to_valuex.startTime)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstartTime=Timestamp.of_xml(Xml.child_exn~context:context_xml_arg0"startTime")inletprofilingGroupName=ProfilingGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"profilingGroupName")inletperiod=AggregationPeriod.of_xml(Xml.child_exn~context:context_xml_arg0"period")inletorderBy=(Option.map~f:OrderBy.of_xml)(Xml.childxml_arg0"orderBy")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletendTime=Timestamp.of_xml(Xml.child_exn~context:context_xml_arg0"endTime")inmake~startTime~profilingGroupName~period?orderBy?nextToken?maxResults~endTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstartTime=field_map_exnjson__"startTime"Timestamp.of_jsoninletprofilingGroupName=field_map_exnjson__"profilingGroupName"ProfilingGroupName.of_jsoninletperiod=field_map_exnjson__"period"AggregationPeriod.of_jsoninletorderBy=field_mapjson__"orderBy"OrderBy.of_jsoninletnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninletmaxResults=field_mapjson__"maxResults"MaxResults.of_jsoninletendTime=field_map_exnjson__"endTime"Timestamp.of_jsoninmake~startTime~profilingGroupName~period?orderBy?nextToken?maxResults~endTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the listProfileTimesRequest."]moduleListFindingsReportsResponse=structtypenonrect={findingsReportSummaries:FindingsReportSummaries.toption[@ocaml.doc"The list of analysis results summaries."];nextToken:PaginationToken.toption[@ocaml.doc"The nextToken value to include in a future ListFindingsReports request. When the results of a ListFindingsReports request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?findingsReportSummaries=fun?nextToken->fun()->{findingsReportSummaries;nextToken}leterror_of_jsonnamejson=matchnamewith|"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|"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|`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[("findingsReportSummaries",(Option.mapx.findingsReportSummaries~f:FindingsReportSummaries.to_value));("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inletfindingsReportSummaries=(Option.map~f:FindingsReportSummaries.of_xml)(Xml.childxml_arg0"findingsReportSummaries")inmake?nextToken?findingsReportSummaries()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninletfindingsReportSummaries=field_mapjson__"findingsReportSummaries"FindingsReportSummaries.of_jsoninmake?nextToken?findingsReportSummaries()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the ListFindingsReportsResponse."]moduleListFindingsReportsRequest=structtypenonrect={dailyReportsOnly:Boolean.toption[@ocaml.doc"A Boolean value indicating whether to only return reports from daily profiles. If set to True, only analysis data from daily profiles is returned. If set to False, analysis data is returned from smaller time windows (for example, one hour)."];endTime:Timestamp.t[@ocaml.doc"The end time of the profile to get analysis data about. You must specify startTime and endTime. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of report results returned by ListFindingsReports in paginated output. When this parameter is used, ListFindingsReports only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another ListFindingsReports request with the returned nextToken value."];nextToken:PaginationToken.toption[@ocaml.doc"The nextToken value returned from a previous paginated ListFindingsReportsRequest request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes."];profilingGroupName:ProfilingGroupName.t[@ocaml.doc"The name of the profiling group from which to search for analysis data."];startTime:Timestamp.t[@ocaml.doc"The start time of the profile to get analysis data about. You must specify startTime and endTime. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC."]}letcontext_="ListFindingsReportsRequest"letmake?dailyReportsOnly=fun?maxResults->fun?nextToken->fun~endTime->fun~profilingGroupName->fun~startTime->fun()->{dailyReportsOnly;maxResults;nextToken;endTime;profilingGroupName;startTime}letto_valuex=structure_to_value[("dailyReportsOnly",(Option.mapx.dailyReportsOnly~f:Boolean.to_value));("endTime",(Some(Timestamp.to_valuex.endTime)));("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("profilingGroupName",(Some(ProfilingGroupName.to_valuex.profilingGroupName)));("startTime",(Some(Timestamp.to_valuex.startTime)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstartTime=Timestamp.of_xml(Xml.child_exn~context:context_xml_arg0"startTime")inletprofilingGroupName=ProfilingGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"profilingGroupName")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletendTime=Timestamp.of_xml(Xml.child_exn~context:context_xml_arg0"endTime")inletdailyReportsOnly=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"dailyReportsOnly")inmake~startTime~profilingGroupName?nextToken?maxResults~endTime?dailyReportsOnly()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstartTime=field_map_exnjson__"startTime"Timestamp.of_jsoninletprofilingGroupName=field_map_exnjson__"profilingGroupName"ProfilingGroupName.of_jsoninletnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninletmaxResults=field_mapjson__"maxResults"MaxResults.of_jsoninletendTime=field_map_exnjson__"endTime"Timestamp.of_jsoninletdailyReportsOnly=field_mapjson__"dailyReportsOnly"Boolean.of_jsoninmake~startTime~profilingGroupName?nextToken?maxResults~endTime?dailyReportsOnly()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the ListFindingsReportsRequest."]moduleGetRecommendationsResponse=structtypenonrect={anomalies:Anomalies.toption[@ocaml.doc"The list of anomalies that the analysis has found for this profile."];profileEndTime:Timestamp.toption[@ocaml.doc"The end time of the profile the analysis data is about. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC."];profileStartTime:Timestamp.toption[@ocaml.doc"The start time of the profile the analysis data is about. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC."];profilingGroupName:ProfilingGroupName.toption[@ocaml.doc"The name of the profiling group the analysis data is about."];recommendations:Recommendations.toption[@ocaml.doc"The list of recommendations that the analysis found for this profile."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?anomalies=fun?profileEndTime->fun?profileStartTime->fun?profilingGroupName->fun?recommendations->fun()->{anomalies;profileEndTime;profileStartTime;profilingGroupName;recommendations}leterror_of_jsonnamejson=matchnamewith|"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|"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|`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[("anomalies",(Option.mapx.anomalies~f:Anomalies.to_value));("profileEndTime",(Option.mapx.profileEndTime~f:Timestamp.to_value));("profileStartTime",(Option.mapx.profileStartTime~f:Timestamp.to_value));("profilingGroupName",(Option.mapx.profilingGroupName~f:ProfilingGroupName.to_value));("recommendations",(Option.mapx.recommendations~f:Recommendations.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrecommendations=(Option.map~f:Recommendations.of_xml)(Xml.childxml_arg0"recommendations")inletprofilingGroupName=(Option.map~f:ProfilingGroupName.of_xml)(Xml.childxml_arg0"profilingGroupName")inletprofileStartTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"profileStartTime")inletprofileEndTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"profileEndTime")inletanomalies=(Option.map~f:Anomalies.of_xml)(Xml.childxml_arg0"anomalies")inmake?recommendations?profilingGroupName?profileStartTime?profileEndTime?anomalies()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrecommendations=field_mapjson__"recommendations"Recommendations.of_jsoninletprofilingGroupName=field_mapjson__"profilingGroupName"ProfilingGroupName.of_jsoninletprofileStartTime=field_mapjson__"profileStartTime"Timestamp.of_jsoninletprofileEndTime=field_mapjson__"profileEndTime"Timestamp.of_jsoninletanomalies=field_mapjson__"anomalies"Anomalies.of_jsoninmake?recommendations?profilingGroupName?profileStartTime?profileEndTime?anomalies()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the GetRecommendationsResponse."]moduleGetRecommendationsRequest=structtypenonrect={endTime:Timestamp.t[@ocaml.doc"The start time of the profile to get analysis data about. You must specify startTime and endTime. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC."];locale:Locale.toption[@ocaml.doc"The language used to provide analysis. Specify using a string that is one of the following BCP 47 language codes. de-DE - German, Germany en-GB - English, United Kingdom en-US - English, United States es-ES - Spanish, Spain fr-FR - French, France it-IT - Italian, Italy ja-JP - Japanese, Japan ko-KR - Korean, Republic of Korea pt-BR - Portugese, Brazil zh-CN - Chinese, China zh-TW - Chinese, Taiwan"];profilingGroupName:ProfilingGroupName.t[@ocaml.doc"The name of the profiling group to get analysis data about."];startTime:Timestamp.t[@ocaml.doc"The end time of the profile to get analysis data about. You must specify startTime and endTime. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC."]}letcontext_="GetRecommendationsRequest"letmake?locale=fun~endTime->fun~profilingGroupName->fun~startTime->fun()->{locale;endTime;profilingGroupName;startTime}letto_valuex=structure_to_value[("endTime",(Some(Timestamp.to_valuex.endTime)));("locale",(Option.mapx.locale~f:Locale.to_value));("profilingGroupName",(Some(ProfilingGroupName.to_valuex.profilingGroupName)));("startTime",(Some(Timestamp.to_valuex.startTime)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstartTime=Timestamp.of_xml(Xml.child_exn~context:context_xml_arg0"startTime")inletprofilingGroupName=ProfilingGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"profilingGroupName")inletlocale=(Option.map~f:Locale.of_xml)(Xml.childxml_arg0"locale")inletendTime=Timestamp.of_xml(Xml.child_exn~context:context_xml_arg0"endTime")inmake~startTime~profilingGroupName?locale~endTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstartTime=field_map_exnjson__"startTime"Timestamp.of_jsoninletprofilingGroupName=field_map_exnjson__"profilingGroupName"ProfilingGroupName.of_jsoninletlocale=field_mapjson__"locale"Locale.of_jsoninletendTime=field_map_exnjson__"endTime"Timestamp.of_jsoninmake~startTime~profilingGroupName?locale~endTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the GetRecommendationsRequest."]moduleGetProfileResponse=structtypenonrect={contentEncoding:String_.toption[@ocaml.doc"The content encoding of the profile."];contentType:String_.toption[@ocaml.doc"The content type of the profile in the payload. It is either application/json or the default application/x-amzn-ion."];profile:AggregatedProfile.toption[@ocaml.doc"Information about the profile."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?contentEncoding=fun?contentType->fun?profile->fun()->{contentEncoding;contentType;profile}leterror_of_jsonnamejson=matchnamewith|"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|"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|`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?contentEncoding:(Option.map((List.Assoc.find~equal:String.Caseless.equal)xs"Content-Encoding")~f:String_.of_string)?contentType:(Option.map((List.Assoc.find~equal:String.Caseless.equal)xs"Content-Type")~f:String_.of_string)?profile:(Somepipe)())[@warning"-27"])letto_valuex=structure_to_value[("Content-Encoding",(Option.mapx.contentEncoding~f:String_.to_value));("Content-Type",(Option.mapx.contentType~f:String_.to_value));("profile",(Option.mapx.profile~f:AggregatedProfile.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprofile=(Option.map~f:AggregatedProfile.of_xml)(Xml.childxml_arg0"profile")inletcontentType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Content-Type")inletcontentEncoding=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Content-Encoding")inmake?profile?contentType?contentEncoding()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprofile=field_mapjson__"profile"AggregatedProfile.of_jsoninletcontentType=field_mapjson__"contentType"String_.of_jsoninletcontentEncoding=field_mapjson__"contentEncoding"String_.of_jsoninmake?profile?contentType?contentEncoding()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the getProfileResponse."]moduleGetProfileRequest=structtypenonrect={accept:String_.toption[@ocaml.doc"The format of the returned profiling data. The format maps to the Accept and Content-Type headers of the HTTP request. You can specify one of the following: or the default . <ul> <li> <p> <code>application/json</code> \226\128\148 standard JSON format </p> </li> <li> <p> <code>application/x-amzn-ion</code> \226\128\148 the Amazon Ion data format. For more information, see <a href=\"http://amzn.github.io/ion-docs/\">Amazon Ion</a>. </p> </li> </ul>"];endTime:Timestamp.toption[@ocaml.doc"The end time of the requested profile. Specify using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. If you specify endTime, then you must also specify period or startTime, but not both."];maxDepth:MaxDepth.toption[@ocaml.doc"The maximum depth of the stacks in the code that is represented in the aggregated profile. For example, if CodeGuru Profiler finds a method A, which calls method B, which calls method C, which calls method D, then the depth is 4. If the maxDepth is set to 2, then the aggregated profile contains representations of methods A and B."];period:Period.toption[@ocaml.doc"Used with startTime or endTime to specify the time range for the returned aggregated profile. Specify using the ISO 8601 format. For example, P1DT1H1M1S. <p> To get the latest aggregated profile, specify only <code>period</code>. </p>"];profilingGroupName:ProfilingGroupName.t[@ocaml.doc"The name of the profiling group to get."];startTime:Timestamp.toption[@ocaml.doc"The start time of the profile to get. Specify using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. <p> If you specify <code>startTime</code>, then you must also specify <code>period</code> or <code>endTime</code>, but not both. </p>"]}letcontext_="GetProfileRequest"letmake?accept=fun?endTime->fun?maxDepth->fun?period->fun?startTime->fun~profilingGroupName->fun()->{accept;endTime;maxDepth;period;startTime;profilingGroupName}letto_valuex=structure_to_value[("Accept",(Option.mapx.accept~f:String_.to_value));("endTime",(Option.mapx.endTime~f:Timestamp.to_value));("maxDepth",(Option.mapx.maxDepth~f:MaxDepth.to_value));("period",(Option.mapx.period~f:Period.to_value));("profilingGroupName",(Some(ProfilingGroupName.to_valuex.profilingGroupName)));("startTime",(Option.mapx.startTime~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstartTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"startTime")inletprofilingGroupName=ProfilingGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"profilingGroupName")inletperiod=(Option.map~f:Period.of_xml)(Xml.childxml_arg0"period")inletmaxDepth=(Option.map~f:MaxDepth.of_xml)(Xml.childxml_arg0"maxDepth")inletendTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"endTime")inletaccept=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Accept")inmake?startTime~profilingGroupName?period?maxDepth?endTime?accept()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstartTime=field_mapjson__"startTime"Timestamp.of_jsoninletprofilingGroupName=field_map_exnjson__"profilingGroupName"ProfilingGroupName.of_jsoninletperiod=field_mapjson__"period"Period.of_jsoninletmaxDepth=field_mapjson__"maxDepth"MaxDepth.of_jsoninletendTime=field_mapjson__"endTime"Timestamp.of_jsoninletaccept=field_mapjson__"accept"String_.of_jsoninmake?startTime~profilingGroupName?period?maxDepth?endTime?accept()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the getProfileRequest."]moduleGetPolicyResponse=structtypenonrect={policy:String_.toption[@ocaml.doc"The JSON-formatted resource-based policy attached to the ProfilingGroup."];revisionId:RevisionId.toption[@ocaml.doc"A unique identifier for the current revision of the returned policy."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?policy=fun?revisionId->fun()->{policy;revisionId}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.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)|"ThrottlingException"->`ThrottlingException(ThrottlingException.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))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("policy",(Option.mapx.policy~f:String_.to_value));("revisionId",(Option.mapx.revisionId~f:RevisionId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrevisionId=(Option.map~f:RevisionId.of_xml)(Xml.childxml_arg0"revisionId")inletpolicy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"policy")inmake?revisionId?policy()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrevisionId=field_mapjson__"revisionId"RevisionId.of_jsoninletpolicy=field_mapjson__"policy"String_.of_jsoninmake?revisionId?policy()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the getPolicyResponse."]moduleGetPolicyRequest=structtypenonrect={profilingGroupName:ProfilingGroupName.t[@ocaml.doc"The name of the profiling group."]}letcontext_="GetPolicyRequest"letmake~profilingGroupName=fun()->{profilingGroupName}letto_valuex=structure_to_value[("profilingGroupName",(Some(ProfilingGroupName.to_valuex.profilingGroupName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprofilingGroupName=ProfilingGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"profilingGroupName")inmake~profilingGroupName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprofilingGroupName=field_map_exnjson__"profilingGroupName"ProfilingGroupName.of_jsoninmake~profilingGroupName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the getPolicyRequest."]moduleGetNotificationConfigurationResponse=structtypenonrect={notificationConfiguration:NotificationConfiguration.toption[@ocaml.doc"The current notification configuration for this profiling group."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?notificationConfiguration=fun()->{notificationConfiguration}leterror_of_jsonnamejson=matchnamewith|"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|"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|`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[("notificationConfiguration",(Option.mapx.notificationConfiguration~f:NotificationConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnotificationConfiguration=(Option.map~f:NotificationConfiguration.of_xml)(Xml.childxml_arg0"notificationConfiguration")inmake?notificationConfiguration()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnotificationConfiguration=field_mapjson__"notificationConfiguration"NotificationConfiguration.of_jsoninmake?notificationConfiguration()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the GetNotificationConfigurationResponse."]moduleGetNotificationConfigurationRequest=structtypenonrect={profilingGroupName:ProfilingGroupName.t[@ocaml.doc"The name of the profiling group we want to get the notification configuration for."]}letcontext_="GetNotificationConfigurationRequest"letmake~profilingGroupName=fun()->{profilingGroupName}letto_valuex=structure_to_value[("profilingGroupName",(Some(ProfilingGroupName.to_valuex.profilingGroupName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprofilingGroupName=ProfilingGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"profilingGroupName")inmake~profilingGroupName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprofilingGroupName=field_map_exnjson__"profilingGroupName"ProfilingGroupName.of_jsoninmake~profilingGroupName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the GetNotificationConfigurationRequest."]moduleGetFindingsReportAccountSummaryResponse=structtypenonrect={nextToken:PaginationToken.toption[@ocaml.doc"The nextToken value to include in a future GetFindingsReportAccountSummary request. When the results of a GetFindingsReportAccountSummary request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return."];reportSummaries:FindingsReportSummaries.toption[@ocaml.doc"The return list of FindingsReportSummary objects taht contain summaries of analysis results for all profiling groups in your AWS account."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?reportSummaries->fun()->{nextToken;reportSummaries}leterror_of_jsonnamejson=matchnamewith|"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|"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|`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:PaginationToken.to_value));("reportSummaries",(Option.mapx.reportSummaries~f:FindingsReportSummaries.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreportSummaries=(Option.map~f:FindingsReportSummaries.of_xml)(Xml.childxml_arg0"reportSummaries")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inmake?reportSummaries?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreportSummaries=field_mapjson__"reportSummaries"FindingsReportSummaries.of_jsoninletnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninmake?reportSummaries?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the GetFindingsReportAccountSummaryResponse."]moduleGetFindingsReportAccountSummaryRequest=structtypenonrect={dailyReportsOnly:Boolean.toption[@ocaml.doc"A Boolean value indicating whether to only return reports from daily profiles. If set to True, only analysis data from daily profiles is returned. If set to False, analysis data is returned from smaller time windows (for example, one hour)."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of results returned by GetFindingsReportAccountSummary in paginated output. When this parameter is used, GetFindingsReportAccountSummary only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another GetFindingsReportAccountSummary request with the returned nextToken value."];nextToken:PaginationToken.toption[@ocaml.doc"The nextToken value returned from a previous paginated GetFindingsReportAccountSummary request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes."]}letmake?dailyReportsOnly=fun?maxResults->fun?nextToken->fun()->{dailyReportsOnly;maxResults;nextToken}letto_valuex=structure_to_value[("dailyReportsOnly",(Option.mapx.dailyReportsOnly~f:Boolean.to_value));("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletdailyReportsOnly=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"dailyReportsOnly")inmake?nextToken?maxResults?dailyReportsOnly()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninletmaxResults=field_mapjson__"maxResults"MaxResults.of_jsoninletdailyReportsOnly=field_mapjson__"dailyReportsOnly"Boolean.of_jsoninmake?nextToken?maxResults?dailyReportsOnly()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the GetFindingsReportAccountSummaryRequest."]moduleDescribeProfilingGroupResponse=structtypenonrect={profilingGroup:ProfilingGroupDescription.toption[@ocaml.doc"The returned ProfilingGroupDescription object that contains information about the requested profiling group."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?profilingGroup=fun()->{profilingGroup}leterror_of_jsonnamejson=matchnamewith|"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|"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|`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?profilingGroup:(Somepipe)())[@warning"-27"])letto_valuex=structure_to_value[("profilingGroup",(Option.mapx.profilingGroup~f:ProfilingGroupDescription.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprofilingGroup=(Option.map~f:ProfilingGroupDescription.of_xml)(Xml.childxml_arg0"profilingGroup")inmake?profilingGroup()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprofilingGroup=field_mapjson__"profilingGroup"ProfilingGroupDescription.of_jsoninmake?profilingGroup()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the describeProfilingGroupResponse."]moduleDescribeProfilingGroupRequest=structtypenonrect={profilingGroupName:ProfilingGroupName.t[@ocaml.doc"The name of the profiling group to get information about."]}letcontext_="DescribeProfilingGroupRequest"letmake~profilingGroupName=fun()->{profilingGroupName}letto_valuex=structure_to_value[("profilingGroupName",(Some(ProfilingGroupName.to_valuex.profilingGroupName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprofilingGroupName=ProfilingGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"profilingGroupName")inmake~profilingGroupName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprofilingGroupName=field_map_exnjson__"profilingGroupName"ProfilingGroupName.of_jsoninmake~profilingGroupName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the describeProfilingGroupRequest."]moduleDeleteProfilingGroupResponse=structtypenonrect=unittypenonrecerror=[`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"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|"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|`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"The structure representing the deleteProfilingGroupResponse."]moduleDeleteProfilingGroupRequest=structtypenonrect={profilingGroupName:ProfilingGroupName.t[@ocaml.doc"The name of the profiling group to delete."]}letcontext_="DeleteProfilingGroupRequest"letmake~profilingGroupName=fun()->{profilingGroupName}letto_valuex=structure_to_value[("profilingGroupName",(Some(ProfilingGroupName.to_valuex.profilingGroupName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprofilingGroupName=ProfilingGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"profilingGroupName")inmake~profilingGroupName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprofilingGroupName=field_map_exnjson__"profilingGroupName"ProfilingGroupName.of_jsoninmake~profilingGroupName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the deleteProfilingGroupRequest."]moduleCreateProfilingGroupResponse=structtypenonrect={profilingGroup:ProfilingGroupDescription.toption[@ocaml.doc"The returned ProfilingGroupDescription object that contains information about the created profiling group."]}typenonrecerror=[`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?profilingGroup=fun()->{profilingGroup}leterror_of_jsonnamejson=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.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|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.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|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.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?profilingGroup:(Somepipe)())[@warning"-27"])letto_valuex=structure_to_value[("profilingGroup",(Option.mapx.profilingGroup~f:ProfilingGroupDescription.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprofilingGroup=(Option.map~f:ProfilingGroupDescription.of_xml)(Xml.childxml_arg0"profilingGroup")inmake?profilingGroup()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprofilingGroup=field_mapjson__"profilingGroup"ProfilingGroupDescription.of_jsoninmake?profilingGroup()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the createProfilingGroupResponse."]moduleCreateProfilingGroupRequest=structtypenonrect={agentOrchestrationConfig:AgentOrchestrationConfig.toption[@ocaml.doc"Specifies whether profiling is enabled or disabled for the created profiling group."];clientToken:ClientToken.t[@ocaml.doc"Amazon CodeGuru Profiler uses this universally unique identifier (UUID) to prevent the accidental creation of duplicate profiling groups if there are failures and retries."];computePlatform:ComputePlatform.toption[@ocaml.doc"The compute platform of the profiling group. Use AWSLambda if your application runs on AWS Lambda. Use Default if your application runs on a compute platform that is not AWS Lambda, such an Amazon EC2 instance, an on-premises server, or a different platform. If not specified, Default is used."];profilingGroupName:ProfilingGroupName.t[@ocaml.doc"The name of the profiling group to create."];tags:TagsMap.toption[@ocaml.doc"A list of tags to add to the created profiling group."]}letcontext_="CreateProfilingGroupRequest"letmake?agentOrchestrationConfig=fun?computePlatform->fun?tags->fun~clientToken->fun~profilingGroupName->fun()->{agentOrchestrationConfig;computePlatform;tags;clientToken;profilingGroupName}letto_valuex=structure_to_value[("agentOrchestrationConfig",(Option.mapx.agentOrchestrationConfig~f:AgentOrchestrationConfig.to_value));("clientToken",(Some(ClientToken.to_valuex.clientToken)));("computePlatform",(Option.mapx.computePlatform~f:ComputePlatform.to_value));("profilingGroupName",(Some(ProfilingGroupName.to_valuex.profilingGroupName)));("tags",(Option.mapx.tags~f:TagsMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagsMap.of_xml)(Xml.childxml_arg0"tags")inletprofilingGroupName=ProfilingGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"profilingGroupName")inletcomputePlatform=(Option.map~f:ComputePlatform.of_xml)(Xml.childxml_arg0"computePlatform")inletclientToken=ClientToken.of_xml(Xml.child_exn~context:context_xml_arg0"clientToken")inletagentOrchestrationConfig=(Option.map~f:AgentOrchestrationConfig.of_xml)(Xml.childxml_arg0"agentOrchestrationConfig")inmake?tags~profilingGroupName?computePlatform~clientToken?agentOrchestrationConfig()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"TagsMap.of_jsoninletprofilingGroupName=field_map_exnjson__"profilingGroupName"ProfilingGroupName.of_jsoninletcomputePlatform=field_mapjson__"computePlatform"ComputePlatform.of_jsoninletclientToken=field_map_exnjson__"clientToken"ClientToken.of_jsoninletagentOrchestrationConfig=field_mapjson__"agentOrchestrationConfig"AgentOrchestrationConfig.of_jsoninmake?tags~profilingGroupName?computePlatform~clientToken?agentOrchestrationConfig()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the createProfiliingGroupRequest."]moduleConfigureAgentResponse=structtypenonrect={configuration:AgentConfiguration.toption[@ocaml.doc"An AgentConfiguration object that specifies if an agent profiles or not and for how long to return profiling data."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?configuration=fun()->{configuration}leterror_of_jsonnamejson=matchnamewith|"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|"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|`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?configuration:(Somepipe)())[@warning"-27"])letto_valuex=structure_to_value[("configuration",(Option.mapx.configuration~f:AgentConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconfiguration=(Option.map~f:AgentConfiguration.of_xml)(Xml.childxml_arg0"configuration")inmake?configuration()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconfiguration=field_mapjson__"configuration"AgentConfiguration.of_jsoninmake?configuration()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the configureAgentResponse."]moduleConfigureAgentRequest=structtypenonrect={fleetInstanceId:FleetInstanceId.toption[@ocaml.doc"A universally unique identifier (UUID) for a profiling instance. For example, if the profiling instance is an Amazon EC2 instance, it is the instance ID. If it is an AWS Fargate container, it is the container's task ID."];metadata:Metadata.toption[@ocaml.doc"Metadata captured about the compute platform the agent is running on. It includes information about sampling and reporting. The valid fields are: COMPUTE_PLATFORM - The compute platform on which the agent is running AGENT_ID - The ID for an agent instance. AWS_REQUEST_ID - The AWS request ID of a Lambda invocation. EXECUTION_ENVIRONMENT - The execution environment a Lambda function is running on. LAMBDA_FUNCTION_ARN - The Amazon Resource Name (ARN) that is used to invoke a Lambda function. LAMBDA_MEMORY_LIMIT_IN_MB - The memory allocated to a Lambda function. LAMBDA_REMAINING_TIME_IN_MILLISECONDS - The time in milliseconds before execution of a Lambda function times out. LAMBDA_TIME_GAP_BETWEEN_INVOKES_IN_MILLISECONDS - The time in milliseconds between two invocations of a Lambda function. LAMBDA_PREVIOUS_EXECUTION_TIME_IN_MILLISECONDS - The time in milliseconds for the previous Lambda invocation."];profilingGroupName:ProfilingGroupName.t[@ocaml.doc"The name of the profiling group for which the configured agent is collecting profiling data."]}letcontext_="ConfigureAgentRequest"letmake?fleetInstanceId=fun?metadata->fun~profilingGroupName->fun()->{fleetInstanceId;metadata;profilingGroupName}letto_valuex=structure_to_value[("fleetInstanceId",(Option.mapx.fleetInstanceId~f:FleetInstanceId.to_value));("metadata",(Option.mapx.metadata~f:Metadata.to_value));("profilingGroupName",(Some(ProfilingGroupName.to_valuex.profilingGroupName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprofilingGroupName=ProfilingGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"profilingGroupName")inletmetadata=(Option.map~f:Metadata.of_xml)(Xml.childxml_arg0"metadata")inletfleetInstanceId=(Option.map~f:FleetInstanceId.of_xml)(Xml.childxml_arg0"fleetInstanceId")inmake~profilingGroupName?metadata?fleetInstanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprofilingGroupName=field_map_exnjson__"profilingGroupName"ProfilingGroupName.of_jsoninletmetadata=field_mapjson__"metadata"Metadata.of_jsoninletfleetInstanceId=field_mapjson__"fleetInstanceId"FleetInstanceId.of_jsoninmake~profilingGroupName?metadata?fleetInstanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the configureAgentRequest."]moduleBatchGetFrameMetricDataResponse=structtypenonrect={endTime:Timestamp.toption[@ocaml.doc"The end time of the time period for the returned time series values. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC."];endTimes:ListOfTimestamps.toption[@ocaml.doc"List of instances, or time steps, in the time series. For example, if the period is one day (PT24H)), and the resolution is five minutes (PT5M), then there are 288 endTimes in the list that are each five minutes appart."];frameMetricData:FrameMetricData.toption[@ocaml.doc"Details of the metrics to request a time series of values. The metric includes the name of the frame, the aggregation type to calculate the metric value for the frame, and the thread states to use to get the count for the metric value of the frame."];resolution:AggregationPeriod.toption[@ocaml.doc"Resolution or granularity of the profile data used to generate the time series. This is the value used to jump through time steps in a time series. There are 3 valid values. P1D \226\128\148 1 day PT1H \226\128\148 1 hour PT5M \226\128\148 5 minutes"];startTime:Timestamp.toption[@ocaml.doc"The start time of the time period for the returned time series values. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC."];unprocessedEndTimes:UnprocessedEndTimeMap.toption[@ocaml.doc"List of instances which remained unprocessed. This will create a missing time step in the list of end times."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?endTime=fun?endTimes->fun?frameMetricData->fun?resolution->fun?startTime->fun?unprocessedEndTimes->fun()->{endTime;endTimes;frameMetricData;resolution;startTime;unprocessedEndTimes}leterror_of_jsonnamejson=matchnamewith|"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|"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|`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[("endTime",(Option.mapx.endTime~f:Timestamp.to_value));("endTimes",(Option.mapx.endTimes~f:ListOfTimestamps.to_value));("frameMetricData",(Option.mapx.frameMetricData~f:FrameMetricData.to_value));("resolution",(Option.mapx.resolution~f:AggregationPeriod.to_value));("startTime",(Option.mapx.startTime~f:Timestamp.to_value));("unprocessedEndTimes",(Option.mapx.unprocessedEndTimes~f:UnprocessedEndTimeMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letunprocessedEndTimes=(Option.map~f:UnprocessedEndTimeMap.of_xml)(Xml.childxml_arg0"unprocessedEndTimes")inletstartTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"startTime")inletresolution=(Option.map~f:AggregationPeriod.of_xml)(Xml.childxml_arg0"resolution")inletframeMetricData=(Option.map~f:FrameMetricData.of_xml)(Xml.childxml_arg0"frameMetricData")inletendTimes=(Option.map~f:ListOfTimestamps.of_xml)(Xml.childxml_arg0"endTimes")inletendTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"endTime")inmake?unprocessedEndTimes?startTime?resolution?frameMetricData?endTimes?endTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letunprocessedEndTimes=field_mapjson__"unprocessedEndTimes"UnprocessedEndTimeMap.of_jsoninletstartTime=field_mapjson__"startTime"Timestamp.of_jsoninletresolution=field_mapjson__"resolution"AggregationPeriod.of_jsoninletframeMetricData=field_mapjson__"frameMetricData"FrameMetricData.of_jsoninletendTimes=field_mapjson__"endTimes"ListOfTimestamps.of_jsoninletendTime=field_mapjson__"endTime"Timestamp.of_jsoninmake?unprocessedEndTimes?startTime?resolution?frameMetricData?endTimes?endTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the BatchGetFrameMetricDataResponse."]moduleBatchGetFrameMetricDataRequest=structtypenonrect={endTime:Timestamp.toption[@ocaml.doc"The end time of the time period for the returned time series values. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC."];frameMetrics:FrameMetrics.toption[@ocaml.doc"The details of the metrics that are used to request a time series of values. The metric includes the name of the frame, the aggregation type to calculate the metric value for the frame, and the thread states to use to get the count for the metric value of the frame."];period:Period.toption[@ocaml.doc"The duration of the frame metrics used to return the time series values. Specify using the ISO 8601 format. The maximum period duration is one day (PT24H or P1D)."];profilingGroupName:ProfilingGroupName.t[@ocaml.doc"The name of the profiling group associated with the the frame metrics used to return the time series values."];startTime:Timestamp.toption[@ocaml.doc"The start time of the time period for the frame metrics used to return the time series values. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC."];targetResolution:AggregationPeriod.toption[@ocaml.doc"The requested resolution of time steps for the returned time series of values. If the requested target resolution is not available due to data not being retained we provide a best effort result by falling back to the most granular available resolution after the target resolution. There are 3 valid values. P1D \226\128\148 1 day PT1H \226\128\148 1 hour PT5M \226\128\148 5 minutes"]}letcontext_="BatchGetFrameMetricDataRequest"letmake?endTime=fun?frameMetrics->fun?period->fun?startTime->fun?targetResolution->fun~profilingGroupName->fun()->{endTime;frameMetrics;period;startTime;targetResolution;profilingGroupName}letto_valuex=structure_to_value[("endTime",(Option.mapx.endTime~f:Timestamp.to_value));("frameMetrics",(Option.mapx.frameMetrics~f:FrameMetrics.to_value));("period",(Option.mapx.period~f:Period.to_value));("profilingGroupName",(Some(ProfilingGroupName.to_valuex.profilingGroupName)));("startTime",(Option.mapx.startTime~f:Timestamp.to_value));("targetResolution",(Option.mapx.targetResolution~f:AggregationPeriod.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettargetResolution=(Option.map~f:AggregationPeriod.of_xml)(Xml.childxml_arg0"targetResolution")inletstartTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"startTime")inletprofilingGroupName=ProfilingGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"profilingGroupName")inletperiod=(Option.map~f:Period.of_xml)(Xml.childxml_arg0"period")inletframeMetrics=(Option.map~f:FrameMetrics.of_xml)(Xml.childxml_arg0"frameMetrics")inletendTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"endTime")inmake?targetResolution?startTime~profilingGroupName?period?frameMetrics?endTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettargetResolution=field_mapjson__"targetResolution"AggregationPeriod.of_jsoninletstartTime=field_mapjson__"startTime"Timestamp.of_jsoninletprofilingGroupName=field_map_exnjson__"profilingGroupName"ProfilingGroupName.of_jsoninletperiod=field_mapjson__"period"Period.of_jsoninletframeMetrics=field_mapjson__"frameMetrics"FrameMetrics.of_jsoninletendTime=field_mapjson__"endTime"Timestamp.of_jsoninmake?targetResolution?startTime~profilingGroupName?period?frameMetrics?endTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the BatchGetFrameMetricDataRequest."]moduleAddNotificationChannelsResponse=structtypenonrect={notificationConfiguration:NotificationConfiguration.toption[@ocaml.doc"The new notification configuration for this profiling group."]}typenonrecerror=[`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?notificationConfiguration=fun()->{notificationConfiguration}leterror_of_jsonnamejson=matchnamewith|"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|"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|`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[("notificationConfiguration",(Option.mapx.notificationConfiguration~f:NotificationConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnotificationConfiguration=(Option.map~f:NotificationConfiguration.of_xml)(Xml.childxml_arg0"notificationConfiguration")inmake?notificationConfiguration()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnotificationConfiguration=field_mapjson__"notificationConfiguration"NotificationConfiguration.of_jsoninmake?notificationConfiguration()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the AddNotificationChannelsResponse."]moduleAddNotificationChannelsRequest=structtypenonrect={channels:Channels.t[@ocaml.doc"One or 2 channels to report to when anomalies are detected."];profilingGroupName:ProfilingGroupName.t[@ocaml.doc"The name of the profiling group that we are setting up notifications for."]}letcontext_="AddNotificationChannelsRequest"letmake~channels=fun~profilingGroupName->fun()->{channels;profilingGroupName}letto_valuex=structure_to_value[("channels",(Some(Channels.to_valuex.channels)));("profilingGroupName",(Some(ProfilingGroupName.to_valuex.profilingGroupName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprofilingGroupName=ProfilingGroupName.of_xml(Xml.child_exn~context:context_xml_arg0"profilingGroupName")inletchannels=Channels.of_xml(Xml.child_exn~context:context_xml_arg0"channels")inmake~profilingGroupName~channels()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprofilingGroupName=field_map_exnjson__"profilingGroupName"ProfilingGroupName.of_jsoninletchannels=field_map_exnjson__"channels"Channels.of_jsoninmake~profilingGroupName~channels()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The structure representing the AddNotificationChannelsRequest."]