123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120(* 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.application_signalsletapiVersion="2024-04-15"letendpointPrefix="application-signals"letserviceFullName="Amazon CloudWatch Application Signals"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[]))])moduleDimensionName=structtypenonrect=stringletcontext_="DimensionName"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:"DimensionName"jletto_json=simple_to_jsonto_valueendmoduleDimensionValue=structtypenonrect=stringletcontext_="DimensionValue"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DimensionValue"jletto_json=simple_to_jsonto_valueendmoduleDimension=structtypenonrect={name:DimensionName.t[@ocaml.doc"The name of the dimension. Dimension names must contain only ASCII characters, must include at least one non-whitespace character, and cannot start with a colon (:). ASCII control characters are not supported as part of dimension names."];value:DimensionValue.t[@ocaml.doc"The value of the dimension. Dimension values must contain only ASCII characters and must include at least one non-whitespace character. ASCII control characters are not supported as part of dimension values."]}letcontext_="Dimension"letmake~name=fun~value->fun()->{name;value}letto_valuex=structure_to_value[("Name",(Some(DimensionName.to_valuex.name)));("Value",(Some(DimensionValue.to_valuex.value)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=DimensionValue.of_xml(Xml.child_exn~context:context_xml_arg0"Value")inletname=DimensionName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake~value~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_map_exnjson__"Value"DimensionValue.of_jsoninletname=field_map_exnjson__"Name"DimensionName.of_jsoninmake~value~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A dimension is a name/value pair that is part of the identity of a metric. Because dimensions are part of the unique identifier for a metric, whenever you add a unique name/value pair to one of your metrics, you are creating a new variation of that metric. For example, many Amazon EC2 metrics publish InstanceId as a dimension name, and the actual instance ID as the value for that dimension. You can assign up to 30 dimensions to a metric."]moduleDimensions=structtypenonrect=Dimension.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:30)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Dimension.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:Dimension.of_xml)letof_jsonj=list_of_json~kind:"Dimensions"~of_json:Dimension.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMetricName=structtypenonrect=stringletcontext_="MetricName"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:255)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"MetricName"jletto_json=simple_to_jsonto_valueendmoduleNamespace=structtypenonrect=stringletcontext_="Namespace"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:".*[^:].*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Namespace"jletto_json=simple_to_jsonto_valueendmoduleMetric=structtypenonrect={namespace:Namespace.toption[@ocaml.doc"The namespace of the metric. For more information, see Namespaces."];metricName:MetricName.toption[@ocaml.doc"The name of the metric to use."];dimensions:Dimensions.toption[@ocaml.doc"An array of one or more dimensions to use to define the metric that you want to use. For more information, see Dimensions."]}letmake?namespace=fun?metricName->fun?dimensions->fun()->{namespace;metricName;dimensions}letto_valuex=structure_to_value[("Namespace",(Option.mapx.namespace~f:Namespace.to_value));("MetricName",(Option.mapx.metricName~f:MetricName.to_value));("Dimensions",(Option.mapx.dimensions~f:Dimensions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdimensions=(Option.map~f:Dimensions.of_xml)(Xml.childxml_arg0"Dimensions")inletmetricName=(Option.map~f:MetricName.of_xml)(Xml.childxml_arg0"MetricName")inletnamespace=(Option.map~f:Namespace.of_xml)(Xml.childxml_arg0"Namespace")inmake?dimensions?metricName?namespace()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdimensions=field_mapjson__"Dimensions"Dimensions.of_jsoninletmetricName=field_mapjson__"MetricName"MetricName.of_jsoninletnamespace=field_mapjson__"Namespace"Namespace.of_jsoninmake?dimensions?metricName?namespace()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This structure defines the metric used for a service level indicator, including the metric name, namespace, and dimensions"]modulePeriod=structtypenonrect=intletmakei=letopenResultinok_or_failwith(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 Period"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleStandardUnit=structtypenonrect=|Microseconds|Milliseconds|Seconds|Bytes|Kilobytes|Megabytes|Gigabytes|Terabytes|Bits|Kilobits|Megabits|Gigabits|Terabits|Percent|Count|Bytes_Second|Kilobytes_Second|Megabytes_Second|Gigabytes_Second|Terabytes_Second|Bits_Second|Kilobits_Second|Megabits_Second|Gigabits_Second|Terabits_Second|Count_Second|None|Non_static_idofstringletmakei=iletto_string=function|Microseconds->"Microseconds"|Milliseconds->"Milliseconds"|Seconds->"Seconds"|Bytes->"Bytes"|Kilobytes->"Kilobytes"|Megabytes->"Megabytes"|Gigabytes->"Gigabytes"|Terabytes->"Terabytes"|Bits->"Bits"|Kilobits->"Kilobits"|Megabits->"Megabits"|Gigabits->"Gigabits"|Terabits->"Terabits"|Percent->"Percent"|Count->"Count"|Bytes_Second->"Bytes/Second"|Kilobytes_Second->"Kilobytes/Second"|Megabytes_Second->"Megabytes/Second"|Gigabytes_Second->"Gigabytes/Second"|Terabytes_Second->"Terabytes/Second"|Bits_Second->"Bits/Second"|Kilobits_Second->"Kilobits/Second"|Megabits_Second->"Megabits/Second"|Gigabits_Second->"Gigabits/Second"|Terabits_Second->"Terabits/Second"|Count_Second->"Count/Second"|None->"None"|Non_static_ids->sletof_string=function|"Microseconds"->Microseconds|"Milliseconds"->Milliseconds|"Seconds"->Seconds|"Bytes"->Bytes|"Kilobytes"->Kilobytes|"Megabytes"->Megabytes|"Gigabytes"->Gigabytes|"Terabytes"->Terabytes|"Bits"->Bits|"Kilobits"->Kilobits|"Megabits"->Megabits|"Gigabits"->Gigabits|"Terabits"->Terabits|"Percent"->Percent|"Count"->Count|"Bytes/Second"->Bytes_Second|"Kilobytes/Second"->Kilobytes_Second|"Megabytes/Second"->Megabytes_Second|"Gigabytes/Second"->Gigabytes_Second|"Terabytes/Second"->Terabytes_Second|"Bits/Second"->Bits_Second|"Kilobits/Second"->Kilobits_Second|"Megabits/Second"->Megabits_Second|"Gigabits/Second"->Gigabits_Second|"Terabits/Second"->Terabits_Second|"Count/Second"->Count_Second|"None"->None|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 StandardUnit"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"StandardUnit"j)letto_json=simple_to_jsonto_valueendmoduleStat=structtypenonrect=stringletcontext_="Stat"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:"Stat"jletto_json=simple_to_jsonto_valueendmoduleOperationName=structtypenonrect=stringletcontext_="OperationName"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:"OperationName"jletto_json=simple_to_jsonto_valueendmoduleAccountId=structtypenonrect=stringletcontext_="AccountId"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:"AccountId"jletto_json=simple_to_jsonto_valueendmoduleMetricExpression=structtypenonrect=stringletcontext_="MetricExpression"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(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:"MetricExpression"jletto_json=simple_to_jsonto_valueendmoduleMetricId=structtypenonrect=stringletcontext_="MetricId"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:"MetricId"jletto_json=simple_to_jsonto_valueendmoduleMetricLabel=structtypenonrect=stringletcontext_="MetricLabel"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:"MetricLabel"jletto_json=simple_to_jsonto_valueendmoduleMetricStat=structtypenonrect={metric:Metric.t[@ocaml.doc"The metric to use as the service level indicator, including the metric name, namespace, and dimensions."];period:Period.t[@ocaml.doc"The granularity, in seconds, to be used for the metric. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a PutMetricData call that includes a StorageResolution of 1 second."];stat:Stat.t[@ocaml.doc"The statistic to use for comparison to the threshold. It can be any CloudWatch statistic or extended statistic. For more information about statistics, see CloudWatch statistics definitions."];unit:StandardUnit.toption[@ocaml.doc"If you omit Unit then all data that was collected with any unit is returned, along with the corresponding units that were specified when the data was reported to CloudWatch. If you specify a unit, the operation returns only data that was collected with that unit specified. If you specify a unit that does not match the data collected, the results of the operation are null. CloudWatch does not perform unit conversions."]}letcontext_="MetricStat"letmake?unit=fun~metric->fun~period->fun~stat->fun()->{unit;metric;period;stat}letto_valuex=structure_to_value[("Metric",(Some(Metric.to_valuex.metric)));("Period",(Some(Period.to_valuex.period)));("Stat",(Some(Stat.to_valuex.stat)));("Unit",(Option.mapx.unit~f:StandardUnit.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letunit=(Option.map~f:StandardUnit.of_xml)(Xml.childxml_arg0"Unit")inletstat=Stat.of_xml(Xml.child_exn~context:context_xml_arg0"Stat")inletperiod=Period.of_xml(Xml.child_exn~context:context_xml_arg0"Period")inletmetric=Metric.of_xml(Xml.child_exn~context:context_xml_arg0"Metric")inmake?unit~stat~period~metric()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letunit=field_mapjson__"Unit"StandardUnit.of_jsoninletstat=field_map_exnjson__"Stat"Stat.of_jsoninletperiod=field_map_exnjson__"Period"Period.of_jsoninletmetric=field_map_exnjson__"Metric"Metric.of_jsoninmake?unit~stat~period~metric()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This structure defines the metric to be used as the service level indicator, along with the statistics, period, and unit."]moduleReturnData=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_valueendmoduleKeyAttributeName=structtypenonrect=stringletcontext_="KeyAttributeName"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-zA-Z]{1,50}");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"KeyAttributeName"jletto_json=simple_to_jsonto_valueendmoduleKeyAttributeValue=structtypenonrect=stringletcontext_="KeyAttributeValue"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1024)>>=(fun()->check_patterni~pattern:"[ -~]*[!-~]+[ -~]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"KeyAttributeValue"jletto_json=simple_to_jsonto_valueendmoduleCompositeSliComponent=structtypenonrect={operationName:OperationName.toption[@ocaml.doc"The name of the operation to include in the composite SLI."]}letmake?operationName=fun()->{operationName}letto_valuex=structure_to_value[("OperationName",(Option.mapx.operationName~f:OperationName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoperationName=(Option.map~f:OperationName.of_xml)(Xml.childxml_arg0"OperationName")inmake?operationName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoperationName=field_mapjson__"OperationName"OperationName.of_jsoninmake?operationName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Identifies a single operation to include in a composite SLI for a service-level SLO. Used as an element of the Components list in CompositeSliConfig."]moduleSelectionPattern=structtypenonrect=stringletcontext_="SelectionPattern"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:".+");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SelectionPattern"jletto_json=simple_to_jsonto_valueendmoduleSelectionType=structtypenonrect=|EXPLICIT|PREFIX|REGEX|Non_static_idofstringletmakei=iletto_string=function|EXPLICIT->"EXPLICIT"|PREFIX->"PREFIX"|REGEX->"REGEX"|Non_static_ids->sletof_string=function|"EXPLICIT"->EXPLICIT|"PREFIX"->PREFIX|"REGEX"->REGEX|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 SelectionType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SelectionType"j)letto_json=simple_to_jsonto_valueendmoduleMetricDataQuery=structtypenonrect={id:MetricId.t[@ocaml.doc"A short name used to tie this object to the results in the response. This Id must be unique within a MetricDataQueries array. If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the metric math expression. The valid characters are letters, numbers, and underscore. The first character must be a lowercase letter."];metricStat:MetricStat.toption[@ocaml.doc"A metric to be used directly for the SLO, or to be used in the math expression that will be used for the SLO. Within one MetricDataQuery object, you must specify either Expression or MetricStat but not both."];expression:MetricExpression.toption[@ocaml.doc"This field can contain a metric math expression to be performed on the other metrics that you are retrieving within this MetricDataQueries structure. A math expression can use the Id of the other metrics or queries to refer to those metrics, and can also use the Id of other expressions to use the result of those expressions. For more information about metric math expressions, see Metric Math Syntax and Functions in the Amazon CloudWatch User Guide. Within each MetricDataQuery object, you must specify either Expression or MetricStat but not both."];label:MetricLabel.toption[@ocaml.doc"A human-readable label for this metric or expression. This is especially useful if this is an expression, so that you know what the value represents. If the metric or expression is shown in a CloudWatch dashboard widget, the label is shown. If Label is omitted, CloudWatch generates a default. You can put dynamic expressions into a label, so that it is more descriptive. For more information, see Using Dynamic Labels."];returnData:ReturnData.toption[@ocaml.doc"Use this only if you are using a metric math expression for the SLO. Specify true for ReturnData for only the one expression result to use as the alarm. For all other metrics and expressions in the same CreateServiceLevelObjective operation, specify ReturnData as false."];period:Period.toption[@ocaml.doc"The granularity, in seconds, of the returned data points for this metric. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a PutMetricData call that includes a StorageResolution of 1 second. If the StartTime parameter specifies a time stamp that is greater than 3 hours ago, you must specify the period as follows or no data points in that time range is returned: Start time between 3 hours and 15 days ago - Use a multiple of 60 seconds (1 minute). Start time between 15 and 63 days ago - Use a multiple of 300 seconds (5 minutes). Start time greater than 63 days ago - Use a multiple of 3600 seconds (1 hour)."];accountId:AccountId.toption[@ocaml.doc"The ID of the account where this metric is located. If you are performing this operation in a monitoring account, use this to specify which source account to retrieve this metric from."]}letcontext_="MetricDataQuery"letmake?metricStat=fun?expression->fun?label->fun?returnData->fun?period->fun?accountId->fun~id->fun()->{metricStat;expression;label;returnData;period;accountId;id}letto_valuex=structure_to_value[("Id",(Some(MetricId.to_valuex.id)));("MetricStat",(Option.mapx.metricStat~f:MetricStat.to_value));("Expression",(Option.mapx.expression~f:MetricExpression.to_value));("Label",(Option.mapx.label~f:MetricLabel.to_value));("ReturnData",(Option.mapx.returnData~f:ReturnData.to_value));("Period",(Option.mapx.period~f:Period.to_value));("AccountId",(Option.mapx.accountId~f:AccountId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaccountId=(Option.map~f:AccountId.of_xml)(Xml.childxml_arg0"AccountId")inletperiod=(Option.map~f:Period.of_xml)(Xml.childxml_arg0"Period")inletreturnData=(Option.map~f:ReturnData.of_xml)(Xml.childxml_arg0"ReturnData")inletlabel=(Option.map~f:MetricLabel.of_xml)(Xml.childxml_arg0"Label")inletexpression=(Option.map~f:MetricExpression.of_xml)(Xml.childxml_arg0"Expression")inletmetricStat=(Option.map~f:MetricStat.of_xml)(Xml.childxml_arg0"MetricStat")inletid=MetricId.of_xml(Xml.child_exn~context:context_xml_arg0"Id")inmake?accountId?period?returnData?label?expression?metricStat~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaccountId=field_mapjson__"AccountId"AccountId.of_jsoninletperiod=field_mapjson__"Period"Period.of_jsoninletreturnData=field_mapjson__"ReturnData"ReturnData.of_jsoninletlabel=field_mapjson__"Label"MetricLabel.of_jsoninletexpression=field_mapjson__"Expression"MetricExpression.of_jsoninletmetricStat=field_mapjson__"MetricStat"MetricStat.of_jsoninletid=field_map_exnjson__"Id"MetricId.of_jsoninmake?accountId?period?returnData?label?expression?metricStat~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Use this structure to define a metric or metric math expression that you want to use as for a service level objective. Each MetricDataQuery in the MetricDataQueries array specifies either a metric to retrieve, or a metric math expression to be performed on retrieved metrics. A single MetricDataQueries array can include as many as 20 MetricDataQuery structures in the array. The 20 structures can include as many as 10 structures that contain a MetricStat parameter to retrieve a metric, and as many as 10 structures that contain the Expression parameter to perform a math expression. Of those Expression structures, exactly one must have true as the value for ReturnData. The result of this expression used for the SLO. For more information about metric math expressions, see CloudWatchUse metric math. Within each MetricDataQuery object, you must specify either Expression or MetricStat but not both."]moduleAttributeFilterValue=structtypenonrect=stringletcontext_="AttributeFilterValue"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[A-Za-z0-9 :/-]+");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AttributeFilterValue"jletto_json=simple_to_jsonto_valueendmoduleString_=structtypenonrect=stringletcontext_="String"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"String"jletto_json=simple_to_jsonto_valueendmoduleConnectionType=structtypenonrect=|INDIRECT|DIRECT|Non_static_idofstringletmakei=iletto_string=function|INDIRECT->"INDIRECT"|DIRECT->"DIRECT"|Non_static_ids->sletof_string=function|"INDIRECT"->INDIRECT|"DIRECT"->DIRECT|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 ConnectionType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ConnectionType"j)letto_json=simple_to_jsonto_valueendmoduleDouble=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_valueendmoduleAttributes=structtypenonrect=(KeyAttributeName.t*KeyAttributeValue.t)listletmakei=letopenResultinok_or_failwith((check_list_maxi~max:4)>>=(fun()->check_list_mini~min:1));iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((KeyAttributeName.of_stringchopped),(KeyAttributeValue.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(KeyAttributeName.to_valuex)|>(funx->(KeyAttributeValue.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:KeyAttributeName.of_string~of_json:KeyAttributeValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCalendarIntervalDuration=structtypenonrect=intletmakei=letopenResultinok_or_failwith(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 CalendarIntervalDuration"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleDurationUnit=structtypenonrect=|MINUTE|HOUR|DAY|MONTH|Non_static_idofstringletmakei=iletto_string=function|MINUTE->"MINUTE"|HOUR->"HOUR"|DAY->"DAY"|MONTH->"MONTH"|Non_static_ids->sletof_string=function|"MINUTE"->MINUTE|"HOUR"->HOUR|"DAY"->DAY|"MONTH"->MONTH|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 DurationUnit"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DurationUnit"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_valueendmoduleRollingIntervalDuration=structtypenonrect=intletmakei=letopenResultinok_or_failwith(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 RollingIntervalDuration"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleCompositeSliComponents=structtypenonrect=CompositeSliComponent.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:20)>>=(fun()->check_list_mini~min:2));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:CompositeSliComponent.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:CompositeSliComponent.of_xml)letof_jsonj=list_of_json~kind:"CompositeSliComponents"~of_json:CompositeSliComponent.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSelectionConfig=structtypenonrect={type_:SelectionType.t;pattern:SelectionPattern.toption[@ocaml.doc"A prefix string or regular expression that specifies which operations to include in a service-level SLO. When SelectionType is PREFIX, this value is a prefix string that matches the beginning of operation names. When SelectionType is REGEX, this value is a regular expression that matches operation names."]}letcontext_="SelectionConfig"letmake?pattern=fun~type_->fun()->{pattern;type_}letto_valuex=structure_to_value[("Type",(Some(SelectionType.to_valuex.type_)));("Pattern",(Option.mapx.pattern~f:SelectionPattern.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpattern=(Option.map~f:SelectionPattern.of_xml)(Xml.childxml_arg0"Pattern")inlettype_=SelectionType.of_xml(Xml.child_exn~context:context_xml_arg0"Type")inmake?pattern~type_()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpattern=field_mapjson__"Pattern"SelectionPattern.of_jsoninlettype_=field_map_exnjson__"Type"SelectionType.of_jsoninmake?pattern~type_()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Defines how operations are selected for a service-level SLO."]moduleMetricDataQueries=structtypenonrect=MetricDataQuery.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:MetricDataQuery.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:MetricDataQuery.of_xml)letof_jsonj=list_of_json~kind:"MetricDataQueries"~of_json:MetricDataQuery.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleGroupingString=structtypenonrect=stringletcontext_="GroupingString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9\\s+\\-=\\._:/@]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"GroupingString"jletto_json=simple_to_jsonto_valueendmoduleAwsAccountId=structtypenonrect=stringletcontext_="AwsAccountId"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[0-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:"AwsAccountId"jletto_json=simple_to_jsonto_valueendmoduleMetricType=structtypenonrect=stringletcontext_="MetricType"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[A-Za-z0-9 -]+");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"MetricType"jletto_json=simple_to_jsonto_valueendmoduleGroupIdentifier=structtypenonrect=stringletcontext_="GroupIdentifier"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"GroupIdentifier"jletto_json=simple_to_jsonto_valueendmoduleGroupName=structtypenonrect=stringletcontext_="GroupName"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:"GroupName"jletto_json=simple_to_jsonto_valueendmoduleGroupSource=structtypenonrect=stringletcontext_="GroupSource"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:"GroupSource"jletto_json=simple_to_jsonto_valueendmoduleGroupValue=structtypenonrect=stringletcontext_="GroupValue"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:"GroupValue"jletto_json=simple_to_jsonto_valueendmoduleAttributeFilterName=structtypenonrect=stringletcontext_="AttributeFilterName"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[A-Za-z0-9 :/-]+");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AttributeFilterName"jletto_json=simple_to_jsonto_valueendmoduleAttributeFilterValues=structtypenonrect=AttributeFilterValue.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:20)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AttributeFilterValue.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:AttributeFilterValue.of_xml)letof_jsonj=list_of_json~kind:"AttributeFilterValues"~of_json:AttributeFilterValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleChangeEventType=structtypenonrect=|DEPLOYMENT|CONFIGURATION|Non_static_idofstringletmakei=iletto_string=function|DEPLOYMENT->"DEPLOYMENT"|CONFIGURATION->"CONFIGURATION"|Non_static_ids->sletof_string=function|"DEPLOYMENT"->DEPLOYMENT|"CONFIGURATION"->CONFIGURATION|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 ChangeEventType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ChangeEventType"j)letto_json=simple_to_jsonto_valueendmoduleAuditorResultDescriptionString=structtypenonrect=stringletcontext_="AuditorResultDescriptionString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:10240)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AuditorResultDescriptionString"jletto_json=simple_to_jsonto_valueendmoduleDataMap=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_valuevendmoduleSeverity=structtypenonrect=|CRITICAL|HIGH|MEDIUM|LOW|NONE|Non_static_idofstringletmakei=iletto_string=function|CRITICAL->"CRITICAL"|HIGH->"HIGH"|MEDIUM->"MEDIUM"|LOW->"LOW"|NONE->"NONE"|Non_static_ids->sletof_string=function|"CRITICAL"->CRITICAL|"HIGH"->HIGH|"MEDIUM"->MEDIUM|"LOW"->LOW|"NONE"->NONE|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 Severity"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Severity"j)letto_json=simple_to_jsonto_valueendmoduleEdge=structtypenonrect={sourceNodeId:String_.toption[@ocaml.doc"The identifier of the source node in this edge connection."];destinationNodeId:String_.toption[@ocaml.doc"The identifier of the destination node in this edge connection."];duration:Double.toption[@ocaml.doc"The duration or latency associated with this connection, if applicable."];connectionType:ConnectionType.toption[@ocaml.doc"The type of connection between the nodes, indicating the nature of the relationship."]}letmake?sourceNodeId=fun?destinationNodeId->fun?duration->fun?connectionType->fun()->{sourceNodeId;destinationNodeId;duration;connectionType}letto_valuex=structure_to_value[("SourceNodeId",(Option.mapx.sourceNodeId~f:String_.to_value));("DestinationNodeId",(Option.mapx.destinationNodeId~f:String_.to_value));("Duration",(Option.mapx.duration~f:Double.to_value));("ConnectionType",(Option.mapx.connectionType~f:ConnectionType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconnectionType=(Option.map~f:ConnectionType.of_xml)(Xml.childxml_arg0"ConnectionType")inletduration=(Option.map~f:Double.of_xml)(Xml.childxml_arg0"Duration")inletdestinationNodeId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"DestinationNodeId")inletsourceNodeId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"SourceNodeId")inmake?connectionType?duration?destinationNodeId?sourceNodeId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconnectionType=field_mapjson__"ConnectionType"ConnectionType.of_jsoninletduration=field_mapjson__"Duration"Double.of_jsoninletdestinationNodeId=field_mapjson__"DestinationNodeId"String_.of_jsoninletsourceNodeId=field_mapjson__"SourceNodeId"String_.of_jsoninmake?connectionType?duration?destinationNodeId?sourceNodeId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that represents a connection between two nodes in a dependency graph, showing the relationship and characteristics of the connection."]moduleNode=structtypenonrect={keyAttributes:Attributes.toption[@ocaml.doc"The key attributes that identify this node, including Type, Name, and Environment information."];name:String_.toption[@ocaml.doc"The name of the entity represented by this node."];nodeId:String_.toption[@ocaml.doc"A unique identifier for this node within the dependency graph."];operation:String_.toption[@ocaml.doc"The operation associated with this node, if applicable."];type_:String_.toption[@ocaml.doc"The type of entity represented by this node, such as Service or Resource."];duration:Double.toption[@ocaml.doc"The duration or processing time associated with this node, if applicable."];status:String_.toption[@ocaml.doc"The status of the entity represented by this node."]}letmake?keyAttributes=fun?name->fun?nodeId->fun?operation->fun?type_->fun?duration->fun?status->fun()->{keyAttributes;name;nodeId;operation;type_;duration;status}letto_valuex=structure_to_value[("KeyAttributes",(Option.mapx.keyAttributes~f:Attributes.to_value));("Name",(Option.mapx.name~f:String_.to_value));("NodeId",(Option.mapx.nodeId~f:String_.to_value));("Operation",(Option.mapx.operation~f:String_.to_value));("Type",(Option.mapx.type_~f:String_.to_value));("Duration",(Option.mapx.duration~f:Double.to_value));("Status",(Option.mapx.status~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Status")inletduration=(Option.map~f:Double.of_xml)(Xml.childxml_arg0"Duration")inlettype_=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Type")inletoperation=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Operation")inletnodeId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"NodeId")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Name")inletkeyAttributes=(Option.map~f:Attributes.of_xml)(Xml.childxml_arg0"KeyAttributes")inmake?status?duration?type_?operation?nodeId?name?keyAttributes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_mapjson__"Status"String_.of_jsoninletduration=field_mapjson__"Duration"Double.of_jsoninlettype_=field_mapjson__"Type"String_.of_jsoninletoperation=field_mapjson__"Operation"String_.of_jsoninletnodeId=field_mapjson__"NodeId"String_.of_jsoninletname=field_mapjson__"Name"String_.of_jsoninletkeyAttributes=field_mapjson__"KeyAttributes"Attributes.of_jsoninmake?status?duration?type_?operation?nodeId?name?keyAttributes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that represents a node in a dependency graph, containing information about a service, resource, or other entity and its characteristics."]moduleServiceEntity=structtypenonrect={type_:String_.toption[@ocaml.doc"The type of the service entity."];name:String_.toption[@ocaml.doc"The name of the service."];environment:String_.toption[@ocaml.doc"The environment where the service is deployed."];awsAccountId:String_.toption[@ocaml.doc"The Amazon Web Services account ID where the service is located. Provide this value only for cross-account access."]}letmake?type_=fun?name->fun?environment->fun?awsAccountId->fun()->{type_;name;environment;awsAccountId}letto_valuex=structure_to_value[("Type",(Option.mapx.type_~f:String_.to_value));("Name",(Option.mapx.name~f:String_.to_value));("Environment",(Option.mapx.environment~f:String_.to_value));("AwsAccountId",(Option.mapx.awsAccountId~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letawsAccountId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"AwsAccountId")inletenvironment=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Environment")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Name")inlettype_=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Type")inmake?awsAccountId?environment?name?type_()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letawsAccountId=field_mapjson__"AwsAccountId"String_.of_jsoninletenvironment=field_mapjson__"Environment"String_.of_jsoninletname=field_mapjson__"Name"String_.of_jsoninlettype_=field_mapjson__"Type"String_.of_jsoninmake?awsAccountId?environment?name?type_()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that contains identifying information for a service entity."]moduleCalendarInterval=structtypenonrect={startTime:Timestamp.t[@ocaml.doc"The date and time when you want the first interval to start. Be sure to choose a time that configures the intervals the way that you want. For example, if you want weekly intervals starting on Mondays at 6 a.m., be sure to specify a start time that is a Monday at 6 a.m. When used in a raw HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 As soon as one calendar interval ends, another automatically begins."];durationUnit:DurationUnit.t[@ocaml.doc"Specifies the calendar interval unit."];duration:CalendarIntervalDuration.t[@ocaml.doc"Specifies the duration of each calendar interval. For example, if Duration is 1 and DurationUnit is MONTH, each interval is one month, aligned with the calendar."]}letcontext_="CalendarInterval"letmake~startTime=fun~durationUnit->fun~duration->fun()->{startTime;durationUnit;duration}letto_valuex=structure_to_value[("StartTime",(Some(Timestamp.to_valuex.startTime)));("DurationUnit",(Some(DurationUnit.to_valuex.durationUnit)));("Duration",(Some(CalendarIntervalDuration.to_valuex.duration)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letduration=CalendarIntervalDuration.of_xml(Xml.child_exn~context:context_xml_arg0"Duration")inletdurationUnit=DurationUnit.of_xml(Xml.child_exn~context:context_xml_arg0"DurationUnit")inletstartTime=Timestamp.of_xml(Xml.child_exn~context:context_xml_arg0"StartTime")inmake~duration~durationUnit~startTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letduration=field_map_exnjson__"Duration"CalendarIntervalDuration.of_jsoninletdurationUnit=field_map_exnjson__"DurationUnit"DurationUnit.of_jsoninletstartTime=field_map_exnjson__"StartTime"Timestamp.of_jsoninmake~duration~durationUnit~startTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"If the interval for this service level objective is a calendar interval, this structure contains the interval specifications."]moduleRollingInterval=structtypenonrect={durationUnit:DurationUnit.t[@ocaml.doc"Specifies the rolling interval unit."];duration:RollingIntervalDuration.t[@ocaml.doc"Specifies the duration of each rolling interval. For example, if Duration is 7 and DurationUnit is DAY, each rolling interval is seven days."]}letcontext_="RollingInterval"letmake~durationUnit=fun~duration->fun()->{durationUnit;duration}letto_valuex=structure_to_value[("DurationUnit",(Some(DurationUnit.to_valuex.durationUnit)));("Duration",(Some(RollingIntervalDuration.to_valuex.duration)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letduration=RollingIntervalDuration.of_xml(Xml.child_exn~context:context_xml_arg0"Duration")inletdurationUnit=DurationUnit.of_xml(Xml.child_exn~context:context_xml_arg0"DurationUnit")inmake~duration~durationUnit()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letduration=field_map_exnjson__"Duration"RollingIntervalDuration.of_jsoninletdurationUnit=field_map_exnjson__"DurationUnit"DurationUnit.of_jsoninmake~duration~durationUnit()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"If the interval for this SLO is a rolling interval, this structure contains the interval specifications."]moduleCompositeSliConfig=structtypenonrect={selectionConfig:SelectionConfig.t[@ocaml.doc"Specifies how operations are selected for this service-level SLO. Operations can be selected explicitly by listing them, by specifying a prefix to match operation names, or by providing a regular expression pattern."];components:CompositeSliComponents.toption[@ocaml.doc"The list of operations included in this composite SLI. You must specify between 2 and 20 components. Each component is a CompositeSliComponent that identifies a single operation by its OperationName."]}letcontext_="CompositeSliConfig"letmake?components=fun~selectionConfig->fun()->{components;selectionConfig}letto_valuex=structure_to_value[("SelectionConfig",(Some(SelectionConfig.to_valuex.selectionConfig)));("Components",(Option.mapx.components~f:CompositeSliComponents.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcomponents=(Option.map~f:CompositeSliComponents.of_xml)(Xml.childxml_arg0"Components")inletselectionConfig=SelectionConfig.of_xml(Xml.child_exn~context:context_xml_arg0"SelectionConfig")inmake?components~selectionConfig()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcomponents=field_mapjson__"Components"CompositeSliComponents.of_jsoninletselectionConfig=field_map_exnjson__"SelectionConfig"SelectionConfig.of_jsoninmake?components~selectionConfig()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This structure contains the configuration for a composite service level indicator (SLI) that aggregates metrics across multiple operations of a service for service-level SLOs."]moduleDependencyConfig=structtypenonrect={dependencyKeyAttributes:Attributes.t[@ocaml.doc"This is a string-to-string map. It can include the following fields. Type designates the type of object this is. ResourceType specifies the type of the resource. This field is used only when the value of the Type field is Resource or AWS::Resource. Name specifies the name of the object. This is used only if the value of the Type field is Service, RemoteService, or AWS::Service. Identifier identifies the resource objects of this resource. This is used only if the value of the Type field is Resource or AWS::Resource. Environment specifies the location where this object is hosted, or what it belongs to."];dependencyOperationName:OperationName.t[@ocaml.doc"The name of the called operation in the dependency."]}letcontext_="DependencyConfig"letmake~dependencyKeyAttributes=fun~dependencyOperationName->fun()->{dependencyKeyAttributes;dependencyOperationName}letto_valuex=structure_to_value[("DependencyKeyAttributes",(Some(Attributes.to_valuex.dependencyKeyAttributes)));("DependencyOperationName",(Some(OperationName.to_valuex.dependencyOperationName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdependencyOperationName=OperationName.of_xml(Xml.child_exn~context:context_xml_arg0"DependencyOperationName")inletdependencyKeyAttributes=Attributes.of_xml(Xml.child_exn~context:context_xml_arg0"DependencyKeyAttributes")inmake~dependencyOperationName~dependencyKeyAttributes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdependencyOperationName=field_map_exnjson__"DependencyOperationName"OperationName.of_jsoninletdependencyKeyAttributes=field_map_exnjson__"DependencyKeyAttributes"Attributes.of_jsoninmake~dependencyOperationName~dependencyKeyAttributes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Identifies the dependency using the DependencyKeyAttributes and DependencyOperationName. When creating a service dependency SLO, you must specify the KeyAttributes of the service, and the DependencyConfig for the dependency. You can specify the OperationName of the service, from which it calls the dependency. Alternatively, you can exclude OperationName and the SLO will monitor all of the service's operations that call the dependency."]moduleMetricSource=structtypenonrect={metricSourceKeyAttributes:Attributes.t[@ocaml.doc"Key attributes that identify the metric source."];metricSourceAttributes:Attributes.toption[@ocaml.doc"Additional attributes for the metric source."]}letcontext_="MetricSource"letmake?metricSourceAttributes=fun~metricSourceKeyAttributes->fun()->{metricSourceAttributes;metricSourceKeyAttributes}letto_valuex=structure_to_value[("MetricSourceKeyAttributes",(Some(Attributes.to_valuex.metricSourceKeyAttributes)));("MetricSourceAttributes",(Option.mapx.metricSourceAttributes~f:Attributes.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmetricSourceAttributes=(Option.map~f:Attributes.of_xml)(Xml.childxml_arg0"MetricSourceAttributes")inletmetricSourceKeyAttributes=Attributes.of_xml(Xml.child_exn~context:context_xml_arg0"MetricSourceKeyAttributes")inmake?metricSourceAttributes~metricSourceKeyAttributes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmetricSourceAttributes=field_mapjson__"MetricSourceAttributes"Attributes.of_jsoninletmetricSourceKeyAttributes=field_map_exnjson__"MetricSourceKeyAttributes"Attributes.of_jsoninmake?metricSourceAttributes~metricSourceKeyAttributes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Identifies the metric source for SLOs on resources other than Application Signals services."]moduleMonitoredRequestCountMetricDataQueries=structtypenonrect={goodCountMetric:MetricDataQueries.toption[@ocaml.doc"If you want to count \"good requests\" to determine the percentage of successful requests for this request-based SLO, specify the metric to use as \"good requests\" in this structure."];badCountMetric:MetricDataQueries.toption[@ocaml.doc"If you want to count \"bad requests\" to determine the percentage of successful requests for this request-based SLO, specify the metric to use as \"bad requests\" in this structure."]}letmake?goodCountMetric=fun?badCountMetric->fun()->{goodCountMetric;badCountMetric}letto_valuex=structure_to_value[("GoodCountMetric",(Option.mapx.goodCountMetric~f:MetricDataQueries.to_value));("BadCountMetric",(Option.mapx.badCountMetric~f:MetricDataQueries.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbadCountMetric=(Option.map~f:MetricDataQueries.of_xml)(Xml.childxml_arg0"BadCountMetric")inletgoodCountMetric=(Option.map~f:MetricDataQueries.of_xml)(Xml.childxml_arg0"GoodCountMetric")inmake?badCountMetric?goodCountMetric()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbadCountMetric=field_mapjson__"BadCountMetric"MetricDataQueries.of_jsoninletgoodCountMetric=field_mapjson__"GoodCountMetric"MetricDataQueries.of_jsoninmake?badCountMetric?goodCountMetric()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This structure defines the metric that is used as the \"good request\" or \"bad request\" value for a request-based SLO. This value observed for the metric defined in TotalRequestCountMetric is divided by the number found for MonitoredRequestCountMetric to determine the percentage of successful requests that this SLO tracks."]moduleServiceLevelIndicatorMetricType=structtypenonrect=|LATENCY|AVAILABILITY|Non_static_idofstringletmakei=iletto_string=function|LATENCY->"LATENCY"|AVAILABILITY->"AVAILABILITY"|Non_static_ids->sletof_string=function|"LATENCY"->LATENCY|"AVAILABILITY"->AVAILABILITY|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 ServiceLevelIndicatorMetricType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ServiceLevelIndicatorMetricType"j)letto_json=simple_to_jsonto_valueendmoduleBurnRateLookBackWindowMinutes=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:10080)>>=(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 BurnRateLookBackWindowMinutes"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleGroupingSourceKeyStringList=structtypenonrect=GroupingString.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:GroupingString.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:GroupingString.of_xml)letof_jsonj=list_of_json~kind:"GroupingSourceKeyStringList"~of_json:GroupingString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAttributeMap=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_valuevendmoduleMetricReference=structtypenonrect={namespace:Namespace.toption[@ocaml.doc"The namespace of the metric. For more information, see CloudWatchNamespaces."];metricType:MetricType.toption[@ocaml.doc"Used to display the appropriate statistics in the CloudWatch console."];dimensions:Dimensions.toption[@ocaml.doc"An array of one or more dimensions that further define the metric. For more information, see CloudWatchDimensions."];metricName:MetricName.toption[@ocaml.doc"The name of the metric."];accountId:AwsAccountId.toption[@ocaml.doc"Amazon Web Services account ID."]}letmake?namespace=fun?metricType->fun?dimensions->fun?metricName->fun?accountId->fun()->{namespace;metricType;dimensions;metricName;accountId}letto_valuex=structure_to_value[("Namespace",(Option.mapx.namespace~f:Namespace.to_value));("MetricType",(Option.mapx.metricType~f:MetricType.to_value));("Dimensions",(Option.mapx.dimensions~f:Dimensions.to_value));("MetricName",(Option.mapx.metricName~f:MetricName.to_value));("AccountId",(Option.mapx.accountId~f:AwsAccountId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaccountId=(Option.map~f:AwsAccountId.of_xml)(Xml.childxml_arg0"AccountId")inletmetricName=(Option.map~f:MetricName.of_xml)(Xml.childxml_arg0"MetricName")inletdimensions=(Option.map~f:Dimensions.of_xml)(Xml.childxml_arg0"Dimensions")inletmetricType=(Option.map~f:MetricType.of_xml)(Xml.childxml_arg0"MetricType")inletnamespace=(Option.map~f:Namespace.of_xml)(Xml.childxml_arg0"Namespace")inmake?accountId?metricName?dimensions?metricType?namespace()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaccountId=field_mapjson__"AccountId"AwsAccountId.of_jsoninletmetricName=field_mapjson__"MetricName"MetricName.of_jsoninletdimensions=field_mapjson__"Dimensions"Dimensions.of_jsoninletmetricType=field_mapjson__"MetricType"MetricType.of_jsoninletnamespace=field_mapjson__"Namespace"Namespace.of_jsoninmake?accountId?metricName?dimensions?metricType?namespace()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This structure contains information about one CloudWatch metric associated with this entity discovered by Application Signals."]moduleServiceGroup=structtypenonrect={groupName:GroupName.toption[@ocaml.doc"The name of the grouping attribute, such as BusinessUnit or Environment."];groupValue:GroupValue.toption[@ocaml.doc"The value of the grouping attribute for this service, such as Payments or Production."];groupSource:GroupSource.toption[@ocaml.doc"The source of the grouping attribute, such as TAG, OTEL, or DEFAULT."];groupIdentifier:GroupIdentifier.toption[@ocaml.doc"A unique identifier for this grouping attribute value, used for filtering and API operations."]}letmake?groupName=fun?groupValue->fun?groupSource->fun?groupIdentifier->fun()->{groupName;groupValue;groupSource;groupIdentifier}letto_valuex=structure_to_value[("GroupName",(Option.mapx.groupName~f:GroupName.to_value));("GroupValue",(Option.mapx.groupValue~f:GroupValue.to_value));("GroupSource",(Option.mapx.groupSource~f:GroupSource.to_value));("GroupIdentifier",(Option.mapx.groupIdentifier~f:GroupIdentifier.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letgroupIdentifier=(Option.map~f:GroupIdentifier.of_xml)(Xml.childxml_arg0"GroupIdentifier")inletgroupSource=(Option.map~f:GroupSource.of_xml)(Xml.childxml_arg0"GroupSource")inletgroupValue=(Option.map~f:GroupValue.of_xml)(Xml.childxml_arg0"GroupValue")inletgroupName=(Option.map~f:GroupName.of_xml)(Xml.childxml_arg0"GroupName")inmake?groupIdentifier?groupSource?groupValue?groupName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letgroupIdentifier=field_mapjson__"GroupIdentifier"GroupIdentifier.of_jsoninletgroupSource=field_mapjson__"GroupSource"GroupSource.of_jsoninletgroupValue=field_mapjson__"GroupValue"GroupValue.of_jsoninletgroupName=field_mapjson__"GroupName"GroupName.of_jsoninmake?groupIdentifier?groupSource?groupValue?groupName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that represents a logical grouping of services based on shared attributes such as business unit, environment, or entry point."]moduleAttributeFilter=structtypenonrect={attributeFilterName:AttributeFilterName.t[@ocaml.doc"The name of the attribute to filter by, such as Platform, Environment, or BusinessUnit."];attributeFilterValues:AttributeFilterValues.t[@ocaml.doc"An array of values to match for the specified attribute. Services that have any of these values for the attribute will be included in the results."]}letcontext_="AttributeFilter"letmake~attributeFilterName=fun~attributeFilterValues->fun()->{attributeFilterName;attributeFilterValues}letto_valuex=structure_to_value[("AttributeFilterName",(Some(AttributeFilterName.to_valuex.attributeFilterName)));("AttributeFilterValues",(Some(AttributeFilterValues.to_valuex.attributeFilterValues)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattributeFilterValues=AttributeFilterValues.of_xml(Xml.child_exn~context:context_xml_arg0"AttributeFilterValues")inletattributeFilterName=AttributeFilterName.of_xml(Xml.child_exn~context:context_xml_arg0"AttributeFilterName")inmake~attributeFilterValues~attributeFilterName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattributeFilterValues=field_map_exnjson__"AttributeFilterValues"AttributeFilterValues.of_jsoninletattributeFilterName=field_map_exnjson__"AttributeFilterName"AttributeFilterName.of_jsoninmake~attributeFilterValues~attributeFilterName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that defines a filter for narrowing down results based on specific attribute values. This can be used to filter services by platform, environment, or other service characteristics."]moduleChangeEvent=structtypenonrect={timestamp:Timestamp.toption[@ocaml.doc"The timestamp when this change event occurred. When used in a raw HTTP Query API, it is formatted as epoch time in seconds."];accountId:AwsAccountId.toption[@ocaml.doc"The Amazon Web Services account ID where this change event occurred."];region:String_.toption[@ocaml.doc"The Amazon Web Services region where this change event occurred."];entity:Attributes.toption[@ocaml.doc"The entity (service or resource) that was affected by this change event, including its key attributes. This is a string-to-string map. It can include the following fields. Type designates the type of object this is. ResourceType specifies the type of the resource. This field is used only when the value of the Type field is Resource or AWS::Resource. Name specifies the name of the object. This is used only if the value of the Type field is Service, RemoteService, or AWS::Service. Identifier identifies the resource objects of this resource. This is used only if the value of the Type field is Resource or AWS::Resource. Environment specifies the location where this object is hosted, or what it belongs to. AwsAccountId specifies the account where this object is in. Below is an example of a service. \\{ \"Type\": \"Service\", \"Name\": \"visits-service\", \"Environment\": \"petclinic-test\" \\} Below is an example of a resource. \\{ \"Type\": \"AWS::Resource\", \"ResourceType\": \"AWS::DynamoDB::Table\", \"Identifier\": \"Customers\" \\}"];changeEventType:ChangeEventType.toption[@ocaml.doc"The type of change event that occurred, such as DEPLOYMENT."];eventId:String_.toption[@ocaml.doc"A unique identifier for this change event. For CloudTrail-based events, this is the CloudTrail event id. For other events, this will be Unknown."];userName:String_.toption[@ocaml.doc"The name of the user who initiated this change event, if available."];eventName:String_.toption[@ocaml.doc"The name or description of this change event."]}letmake?timestamp=fun?accountId->fun?region->fun?entity->fun?changeEventType->fun?eventId->fun?userName->fun?eventName->fun()->{timestamp;accountId;region;entity;changeEventType;eventId;userName;eventName}letto_valuex=structure_to_value[("Timestamp",(Option.mapx.timestamp~f:Timestamp.to_value));("AccountId",(Option.mapx.accountId~f:AwsAccountId.to_value));("Region",(Option.mapx.region~f:String_.to_value));("Entity",(Option.mapx.entity~f:Attributes.to_value));("ChangeEventType",(Option.mapx.changeEventType~f:ChangeEventType.to_value));("EventId",(Option.mapx.eventId~f:String_.to_value));("UserName",(Option.mapx.userName~f:String_.to_value));("EventName",(Option.mapx.eventName~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leteventName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"EventName")inletuserName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"UserName")inleteventId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"EventId")inletchangeEventType=(Option.map~f:ChangeEventType.of_xml)(Xml.childxml_arg0"ChangeEventType")inletentity=(Option.map~f:Attributes.of_xml)(Xml.childxml_arg0"Entity")inletregion=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Region")inletaccountId=(Option.map~f:AwsAccountId.of_xml)(Xml.childxml_arg0"AccountId")inlettimestamp=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"Timestamp")inmake?eventName?userName?eventId?changeEventType?entity?region?accountId?timestamp()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leteventName=field_mapjson__"EventName"String_.of_jsoninletuserName=field_mapjson__"UserName"String_.of_jsoninleteventId=field_mapjson__"EventId"String_.of_jsoninletchangeEventType=field_mapjson__"ChangeEventType"ChangeEventType.of_jsoninletentity=field_mapjson__"Entity"Attributes.of_jsoninletregion=field_mapjson__"Region"String_.of_jsoninletaccountId=field_mapjson__"AccountId"AwsAccountId.of_jsoninlettimestamp=field_mapjson__"Timestamp"Timestamp.of_jsoninmake?eventName?userName?eventId?changeEventType?entity?region?accountId?timestamp()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that contains information about a change event that occurred for a service, such as a deployment or configuration change."]moduleExpression=structtypenonrect=stringletcontext_="Expression"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Expression"jletto_json=simple_to_jsonto_valueendmoduleExclusionDuration=structtypenonrect=intletmakei=letopenResultinok_or_failwith(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 ExclusionDuration"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleAuditorResult=structtypenonrect={auditor:String_.toption[@ocaml.doc"The name of the auditor algorithm that generated this result."];description:AuditorResultDescriptionString.toption[@ocaml.doc"A detailed description of the audit finding, explaining what was observed and potential implications."];data:DataMap.toption[@ocaml.doc"This is a string-to-string map. It contains additional data about the result of an automated audit analysis."];severity:Severity.toption[@ocaml.doc"The severity level of this audit finding, indicating the importance and potential impact of the issue."]}letmake?auditor=fun?description->fun?data->fun?severity->fun()->{auditor;description;data;severity}letto_valuex=structure_to_value[("Auditor",(Option.mapx.auditor~f:String_.to_value));("Description",(Option.mapx.description~f:AuditorResultDescriptionString.to_value));("Data",(Option.mapx.data~f:DataMap.to_value));("Severity",(Option.mapx.severity~f:Severity.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letseverity=(Option.map~f:Severity.of_xml)(Xml.childxml_arg0"Severity")inletdata=(Option.map~f:DataMap.of_xml)(Xml.childxml_arg0"Data")inletdescription=(Option.map~f:AuditorResultDescriptionString.of_xml)(Xml.childxml_arg0"Description")inletauditor=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Auditor")inmake?severity?data?description?auditor()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letseverity=field_mapjson__"Severity"Severity.of_jsoninletdata=field_mapjson__"Data"DataMap.of_jsoninletdescription=field_mapjson__"Description"AuditorResultDescriptionString.of_jsoninletauditor=field_mapjson__"Auditor"String_.of_jsoninmake?severity?data?description?auditor()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that contains the result of an automated audit analysis, including the auditor name, description of findings, additional data, and severity level."]moduleEdges=structtypenonrect=Edge.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Edge.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:Edge.of_xml)letof_jsonj=list_of_json~kind:"Edges"~of_json:Edge.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleNodes=structtypenonrect=Node.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:4)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Node.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:Node.of_xml)letof_jsonj=list_of_json~kind:"Nodes"~of_json:Node.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCanaryEntity=structtypenonrect={canaryName:String_.t[@ocaml.doc"The name of the CloudWatch Synthetics canary."]}letcontext_="CanaryEntity"letmake~canaryName=fun()->{canaryName}letto_valuex=structure_to_value[("CanaryName",(Some(String_.to_valuex.canaryName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcanaryName=String_.of_xml(Xml.child_exn~context:context_xml_arg0"CanaryName")inmake~canaryName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcanaryName=field_map_exnjson__"CanaryName"String_.of_jsoninmake~canaryName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that contains identifying information for a CloudWatch Synthetics canary entity used in audit targeting."]moduleServiceLevelObjectiveEntity=structtypenonrect={sloName:String_.toption[@ocaml.doc"The name of the service level objective."];sloArn:String_.toption[@ocaml.doc"The ARN of the service level objective. The SLO must be provided with ARN for cross-account access."]}letmake?sloName=fun?sloArn->fun()->{sloName;sloArn}letto_valuex=structure_to_value[("SloName",(Option.mapx.sloName~f:String_.to_value));("SloArn",(Option.mapx.sloArn~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsloArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"SloArn")inletsloName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"SloName")inmake?sloArn?sloName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsloArn=field_mapjson__"SloArn"String_.of_jsoninletsloName=field_mapjson__"SloName"String_.of_jsoninmake?sloArn?sloName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that contains identifying information for a service level objective entity."]moduleServiceOperationEntity=structtypenonrect={service:ServiceEntity.toption[@ocaml.doc"The service entity that contains this operation."];operation:String_.toption[@ocaml.doc"The name of the operation."];metricType:String_.toption[@ocaml.doc"The type of metric associated with this service operation."]}letmake?service=fun?operation->fun?metricType->fun()->{service;operation;metricType}letto_valuex=structure_to_value[("Service",(Option.mapx.service~f:ServiceEntity.to_value));("Operation",(Option.mapx.operation~f:String_.to_value));("MetricType",(Option.mapx.metricType~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmetricType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"MetricType")inletoperation=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Operation")inletservice=(Option.map~f:ServiceEntity.of_xml)(Xml.childxml_arg0"Service")inmake?metricType?operation?service()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmetricType=field_mapjson__"MetricType"String_.of_jsoninletoperation=field_mapjson__"Operation"String_.of_jsoninletservice=field_mapjson__"Service"ServiceEntity.of_jsoninmake?metricType?operation?service()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that contains identifying information for a service operation entity."]moduleAttainmentGoal=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_valueendmoduleInterval=structtypenonrect={rollingInterval:RollingInterval.toption[@ocaml.doc"If the interval is a rolling interval, this structure contains the interval specifications."];calendarInterval:CalendarInterval.toption[@ocaml.doc"If the interval is a calendar interval, this structure contains the interval specifications."]}letmake?rollingInterval=fun?calendarInterval->fun()->{rollingInterval;calendarInterval}letto_valuex=structure_to_value[("RollingInterval",(Option.mapx.rollingInterval~f:RollingInterval.to_value));("CalendarInterval",(Option.mapx.calendarInterval~f:CalendarInterval.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcalendarInterval=(Option.map~f:CalendarInterval.of_xml)(Xml.childxml_arg0"CalendarInterval")inletrollingInterval=(Option.map~f:RollingInterval.of_xml)(Xml.childxml_arg0"RollingInterval")inmake?calendarInterval?rollingInterval()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcalendarInterval=field_mapjson__"CalendarInterval"CalendarInterval.of_jsoninletrollingInterval=field_mapjson__"RollingInterval"RollingInterval.of_jsoninmake?calendarInterval?rollingInterval()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The time period used to evaluate the SLO. It can be either a calendar interval or rolling interval."]moduleWarningThreshold=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_valueendmoduleRequestBasedServiceLevelIndicatorMetric=structtypenonrect={keyAttributes:Attributes.toption[@ocaml.doc"This is a string-to-string map that contains information about the type of object that this SLO is related to. It can include the following fields. Type designates the type of object that this SLO is related to. ResourceType specifies the type of the resource. This field is used only when the value of the Type field is Resource or AWS::Resource. Name specifies the name of the object. This is used only if the value of the Type field is Service, RemoteService, or AWS::Service. Identifier identifies the resource objects of this resource. This is used only if the value of the Type field is Resource or AWS::Resource. Environment specifies the location where this object is hosted, or what it belongs to."];operationName:OperationName.toption[@ocaml.doc"If the SLO monitors a specific operation of the service, this field displays that operation name."];metricType:ServiceLevelIndicatorMetricType.toption[@ocaml.doc"If the SLO monitors either the LATENCY or AVAILABILITY metric that Application Signals collects, this field displays which of those metrics is used."];totalRequestCountMetric:MetricDataQueries.toption[@ocaml.doc"This structure defines the metric that is used as the \"total requests\" number for a request-based SLO. The number observed for this metric is divided by the number of \"good requests\" or \"bad requests\" that is observed for the metric defined in MonitoredRequestCountMetric."];monitoredRequestCountMetric:MonitoredRequestCountMetricDataQueries.toption[@ocaml.doc"This structure defines the metric that is used as the \"good request\" or \"bad request\" value for a request-based SLO. This value observed for the metric defined in TotalRequestCountMetric is divided by the number found for MonitoredRequestCountMetric to determine the percentage of successful requests that this SLO tracks."];dependencyConfig:DependencyConfig.toption[@ocaml.doc"Identifies the dependency using the DependencyKeyAttributes and DependencyOperationName."];metricSource:MetricSource.toption[@ocaml.doc"Identifies the metric source for SLOs on resources other than Application Signals services."];compositeSliConfig:CompositeSliConfig.toption[@ocaml.doc"The composite SLI configuration for service-level SLOs that monitor multiple operations of a service."]}letmake?keyAttributes=fun?operationName->fun?metricType->fun?totalRequestCountMetric->fun?monitoredRequestCountMetric->fun?dependencyConfig->fun?metricSource->fun?compositeSliConfig->fun()->{keyAttributes;operationName;metricType;totalRequestCountMetric;monitoredRequestCountMetric;dependencyConfig;metricSource;compositeSliConfig}letto_valuex=structure_to_value[("KeyAttributes",(Option.mapx.keyAttributes~f:Attributes.to_value));("OperationName",(Option.mapx.operationName~f:OperationName.to_value));("MetricType",(Option.mapx.metricType~f:ServiceLevelIndicatorMetricType.to_value));("TotalRequestCountMetric",(Option.mapx.totalRequestCountMetric~f:MetricDataQueries.to_value));("MonitoredRequestCountMetric",(Option.mapx.monitoredRequestCountMetric~f:MonitoredRequestCountMetricDataQueries.to_value));("DependencyConfig",(Option.mapx.dependencyConfig~f:DependencyConfig.to_value));("MetricSource",(Option.mapx.metricSource~f:MetricSource.to_value));("CompositeSliConfig",(Option.mapx.compositeSliConfig~f:CompositeSliConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcompositeSliConfig=(Option.map~f:CompositeSliConfig.of_xml)(Xml.childxml_arg0"CompositeSliConfig")inletmetricSource=(Option.map~f:MetricSource.of_xml)(Xml.childxml_arg0"MetricSource")inletdependencyConfig=(Option.map~f:DependencyConfig.of_xml)(Xml.childxml_arg0"DependencyConfig")inletmonitoredRequestCountMetric=(Option.map~f:MonitoredRequestCountMetricDataQueries.of_xml)(Xml.childxml_arg0"MonitoredRequestCountMetric")inlettotalRequestCountMetric=(Option.map~f:MetricDataQueries.of_xml)(Xml.childxml_arg0"TotalRequestCountMetric")inletmetricType=(Option.map~f:ServiceLevelIndicatorMetricType.of_xml)(Xml.childxml_arg0"MetricType")inletoperationName=(Option.map~f:OperationName.of_xml)(Xml.childxml_arg0"OperationName")inletkeyAttributes=(Option.map~f:Attributes.of_xml)(Xml.childxml_arg0"KeyAttributes")inmake?compositeSliConfig?metricSource?dependencyConfig?monitoredRequestCountMetric?totalRequestCountMetric?metricType?operationName?keyAttributes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcompositeSliConfig=field_mapjson__"CompositeSliConfig"CompositeSliConfig.of_jsoninletmetricSource=field_mapjson__"MetricSource"MetricSource.of_jsoninletdependencyConfig=field_mapjson__"DependencyConfig"DependencyConfig.of_jsoninletmonitoredRequestCountMetric=field_mapjson__"MonitoredRequestCountMetric"MonitoredRequestCountMetricDataQueries.of_jsoninlettotalRequestCountMetric=field_mapjson__"TotalRequestCountMetric"MetricDataQueries.of_jsoninletmetricType=field_mapjson__"MetricType"ServiceLevelIndicatorMetricType.of_jsoninletoperationName=field_mapjson__"OperationName"OperationName.of_jsoninletkeyAttributes=field_mapjson__"KeyAttributes"Attributes.of_jsoninmake?compositeSliConfig?metricSource?dependencyConfig?monitoredRequestCountMetric?totalRequestCountMetric?metricType?operationName?keyAttributes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This structure contains the information about the metric that is used for a request-based SLO."]moduleServiceLevelIndicatorComparisonOperator=structtypenonrect=|GreaterThanOrEqualTo|GreaterThan|LessThan|LessThanOrEqualTo|Non_static_idofstringletmakei=iletto_string=function|GreaterThanOrEqualTo->"GreaterThanOrEqualTo"|GreaterThan->"GreaterThan"|LessThan->"LessThan"|LessThanOrEqualTo->"LessThanOrEqualTo"|Non_static_ids->sletof_string=function|"GreaterThanOrEqualTo"->GreaterThanOrEqualTo|"GreaterThan"->GreaterThan|"LessThan"->LessThan|"LessThanOrEqualTo"->LessThanOrEqualTo|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 ServiceLevelIndicatorComparisonOperator"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ServiceLevelIndicatorComparisonOperator"j)letto_json=simple_to_jsonto_valueendmoduleServiceLevelIndicatorMetricThreshold=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_valueendmoduleServiceLevelIndicatorMetric=structtypenonrect={keyAttributes:Attributes.toption[@ocaml.doc"This is a string-to-string map that contains information about the type of object that this SLO is related to. It can include the following fields. Type designates the type of object that this SLO is related to. ResourceType specifies the type of the resource. This field is used only when the value of the Type field is Resource or AWS::Resource. Name specifies the name of the object. This is used only if the value of the Type field is Service, RemoteService, or AWS::Service. Identifier identifies the resource objects of this resource. This is used only if the value of the Type field is Resource or AWS::Resource. Environment specifies the location where this object is hosted, or what it belongs to."];operationName:OperationName.toption[@ocaml.doc"If the SLO monitors a specific operation of the service, this field displays that operation name."];metricType:ServiceLevelIndicatorMetricType.toption[@ocaml.doc"If the SLO monitors either the LATENCY or AVAILABILITY metric that Application Signals collects, this field displays which of those metrics is used."];metricDataQueries:MetricDataQueries.toption[@ocaml.doc"If this SLO monitors a CloudWatch metric or the result of a CloudWatch metric math expression, this structure includes the information about that metric or expression."];dependencyConfig:DependencyConfig.toption[@ocaml.doc"Identifies the dependency using the DependencyKeyAttributes and DependencyOperationName."];metricSource:MetricSource.toption[@ocaml.doc"Identifies the metric source for SLOs on resources other than Application Signals services."];compositeSliConfig:CompositeSliConfig.toption[@ocaml.doc"The composite SLI configuration for service-level SLOs that monitor multiple operations of a service."]}letmake?keyAttributes=fun?operationName->fun?metricType->fun?metricDataQueries->fun?dependencyConfig->fun?metricSource->fun?compositeSliConfig->fun()->{keyAttributes;operationName;metricType;metricDataQueries;dependencyConfig;metricSource;compositeSliConfig}letto_valuex=structure_to_value[("KeyAttributes",(Option.mapx.keyAttributes~f:Attributes.to_value));("OperationName",(Option.mapx.operationName~f:OperationName.to_value));("MetricType",(Option.mapx.metricType~f:ServiceLevelIndicatorMetricType.to_value));("MetricDataQueries",(Option.mapx.metricDataQueries~f:MetricDataQueries.to_value));("DependencyConfig",(Option.mapx.dependencyConfig~f:DependencyConfig.to_value));("MetricSource",(Option.mapx.metricSource~f:MetricSource.to_value));("CompositeSliConfig",(Option.mapx.compositeSliConfig~f:CompositeSliConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcompositeSliConfig=(Option.map~f:CompositeSliConfig.of_xml)(Xml.childxml_arg0"CompositeSliConfig")inletmetricSource=(Option.map~f:MetricSource.of_xml)(Xml.childxml_arg0"MetricSource")inletdependencyConfig=(Option.map~f:DependencyConfig.of_xml)(Xml.childxml_arg0"DependencyConfig")inletmetricDataQueries=(Option.map~f:MetricDataQueries.of_xml)(Xml.childxml_arg0"MetricDataQueries")inletmetricType=(Option.map~f:ServiceLevelIndicatorMetricType.of_xml)(Xml.childxml_arg0"MetricType")inletoperationName=(Option.map~f:OperationName.of_xml)(Xml.childxml_arg0"OperationName")inletkeyAttributes=(Option.map~f:Attributes.of_xml)(Xml.childxml_arg0"KeyAttributes")inmake?compositeSliConfig?metricSource?dependencyConfig?metricDataQueries?metricType?operationName?keyAttributes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcompositeSliConfig=field_mapjson__"CompositeSliConfig"CompositeSliConfig.of_jsoninletmetricSource=field_mapjson__"MetricSource"MetricSource.of_jsoninletdependencyConfig=field_mapjson__"DependencyConfig"DependencyConfig.of_jsoninletmetricDataQueries=field_mapjson__"MetricDataQueries"MetricDataQueries.of_jsoninletmetricType=field_mapjson__"MetricType"ServiceLevelIndicatorMetricType.of_jsoninletoperationName=field_mapjson__"OperationName"OperationName.of_jsoninletkeyAttributes=field_mapjson__"KeyAttributes"Attributes.of_jsoninmake?compositeSliConfig?metricSource?dependencyConfig?metricDataQueries?metricType?operationName?keyAttributes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This structure contains the information about the metric that is used for a period-based SLO."]moduleBurnRateConfiguration=structtypenonrect={lookBackWindowMinutes:BurnRateLookBackWindowMinutes.t[@ocaml.doc"The number of minutes to use as the look-back window."]}letcontext_="BurnRateConfiguration"letmake~lookBackWindowMinutes=fun()->{lookBackWindowMinutes}letto_valuex=structure_to_value[("LookBackWindowMinutes",(Some(BurnRateLookBackWindowMinutes.to_valuex.lookBackWindowMinutes)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlookBackWindowMinutes=BurnRateLookBackWindowMinutes.of_xml(Xml.child_exn~context:context_xml_arg0"LookBackWindowMinutes")inmake~lookBackWindowMinutes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlookBackWindowMinutes=field_map_exnjson__"LookBackWindowMinutes"BurnRateLookBackWindowMinutes.of_jsoninmake~lookBackWindowMinutes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This object defines the length of the look-back window used to calculate one burn rate metric for this SLO. The burn rate measures how fast the service is consuming the error budget, relative to the attainment goal of the SLO. A burn rate of exactly 1 indicates that the SLO goal will be met exactly. For example, if you specify 60 as the number of minutes in the look-back window, the burn rate is calculated as the following: burn rate = error rate over the look-back window / (100% - attainment goal percentage) For more information about burn rates, see Calculate burn rates."]moduleSLIPeriodSeconds=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:900)>>=(fun()->check_int_mini~min:60));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 SLIPeriodSeconds"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleServiceLevelIndicatorStatistic=structtypenonrect=stringletcontext_="ServiceLevelIndicatorStatistic"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:20)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9.]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ServiceLevelIndicatorStatistic"jletto_json=simple_to_jsonto_valueendmoduleTagKey=structtypenonrect=stringletcontext_="TagKey"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagKey"jletto_json=simple_to_jsonto_valueendmoduleTagValue=structtypenonrect=stringletcontext_="TagValue"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagValue"jletto_json=simple_to_jsonto_valueendmoduleGroupingAttributeDefinition=structtypenonrect={groupingName:GroupingString.t[@ocaml.doc"The friendly name for this grouping attribute, such as BusinessUnit or Environment. This name is used to identify the grouping in the console and APIs."];groupingSourceKeys:GroupingSourceKeyStringList.toption[@ocaml.doc"An array of source keys used to derive the grouping attribute value from telemetry data, Amazon Web Services tags, or other sources. For example, \\[\"business_unit\", \"team\"\\] would look for values in those fields."];defaultGroupingValue:GroupingString.toption[@ocaml.doc"The default value to use for this grouping attribute when no value can be derived from the source keys. This ensures all services have a grouping value even if the source data is missing."]}letcontext_="GroupingAttributeDefinition"letmake?groupingSourceKeys=fun?defaultGroupingValue->fun~groupingName->fun()->{groupingSourceKeys;defaultGroupingValue;groupingName}letto_valuex=structure_to_value[("GroupingName",(Some(GroupingString.to_valuex.groupingName)));("GroupingSourceKeys",(Option.mapx.groupingSourceKeys~f:GroupingSourceKeyStringList.to_value));("DefaultGroupingValue",(Option.mapx.defaultGroupingValue~f:GroupingString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdefaultGroupingValue=(Option.map~f:GroupingString.of_xml)(Xml.childxml_arg0"DefaultGroupingValue")inletgroupingSourceKeys=(Option.map~f:GroupingSourceKeyStringList.of_xml)(Xml.childxml_arg0"GroupingSourceKeys")inletgroupingName=GroupingString.of_xml(Xml.child_exn~context:context_xml_arg0"GroupingName")inmake?defaultGroupingValue?groupingSourceKeys~groupingName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdefaultGroupingValue=field_mapjson__"DefaultGroupingValue"GroupingString.of_jsoninletgroupingSourceKeys=field_mapjson__"GroupingSourceKeys"GroupingSourceKeyStringList.of_jsoninletgroupingName=field_map_exnjson__"GroupingName"GroupingString.of_jsoninmake?defaultGroupingValue?groupingSourceKeys~groupingName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that defines how services should be grouped based on specific attributes. This includes the friendly name for the grouping, the source keys to derive values from, and an optional default value."]moduleAttributeMaps=structtypenonrect=AttributeMap.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AttributeMap.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:AttributeMap.of_xml)letof_jsonj=list_of_json~kind:"AttributeMaps"~of_json:AttributeMap.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMetricReferences=structtypenonrect=MetricReference.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:MetricReference.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:MetricReference.of_xml)letof_jsonj=list_of_json~kind:"MetricReferences"~of_json:MetricReference.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleServiceGroups=structtypenonrect=ServiceGroup.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ServiceGroup.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:ServiceGroup.of_xml)letof_jsonj=list_of_json~kind:"ServiceGroups"~of_json:ServiceGroup.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAttributeFilters=structtypenonrect=AttributeFilter.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:20)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AttributeFilter.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:AttributeFilter.of_xml)letof_jsonj=list_of_json~kind:"AttributeFilters"~of_json:AttributeFilter.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleLatestChangeEvents=structtypenonrect=ChangeEvent.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:ChangeEvent.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:ChangeEvent.of_xml)letof_jsonj=list_of_json~kind:"LatestChangeEvents"~of_json:ChangeEvent.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEvaluationType=structtypenonrect=|PeriodBased|RequestBased|Non_static_idofstringletmakei=iletto_string=function|PeriodBased->"PeriodBased"|RequestBased->"RequestBased"|Non_static_ids->sletof_string=function|"PeriodBased"->PeriodBased|"RequestBased"->RequestBased|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 EvaluationType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"EvaluationType"j)letto_json=simple_to_jsonto_valueendmoduleMetricSourceType=structtypenonrect=|ServiceOperation|CloudWatchMetric|ServiceDependency|AppMonitor|Canary|Service|Non_static_idofstringletmakei=iletto_string=function|ServiceOperation->"ServiceOperation"|CloudWatchMetric->"CloudWatchMetric"|ServiceDependency->"ServiceDependency"|AppMonitor->"AppMonitor"|Canary->"Canary"|Service->"Service"|Non_static_ids->sletof_string=function|"ServiceOperation"->ServiceOperation|"CloudWatchMetric"->CloudWatchMetric|"ServiceDependency"->ServiceDependency|"AppMonitor"->AppMonitor|"Canary"->Canary|"Service"->Service|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 MetricSourceType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"MetricSourceType"j)letto_json=simple_to_jsonto_valueendmoduleServiceLevelObjectiveArn=structtypenonrect=stringletcontext_="ServiceLevelObjectiveArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"arn:(aws|aws-us-gov):application-signals:[^:]*:[^:]*:slo/[0-9A-Za-z][-._0-9A-Za-z ]{0,126}[0-9A-Za-z]")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ServiceLevelObjectiveArn"jletto_json=simple_to_jsonto_valueendmoduleServiceLevelObjectiveName=structtypenonrect=stringletcontext_="ServiceLevelObjectiveName"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[0-9A-Za-z][-._0-9A-Za-z ]{0,126}[0-9A-Za-z]");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ServiceLevelObjectiveName"jletto_json=simple_to_jsonto_valueendmoduleExclusionReason=structtypenonrect=stringletcontext_="ExclusionReason"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ExclusionReason"jletto_json=simple_to_jsonto_valueendmoduleRecurrenceRule=structtypenonrect={expression:Expression.t[@ocaml.doc"A cron or rate expression that specifies the schedule for the exclusion window."]}letcontext_="RecurrenceRule"letmake~expression=fun()->{expression}letto_valuex=structure_to_value[("Expression",(Some(Expression.to_valuex.expression)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexpression=Expression.of_xml(Xml.child_exn~context:context_xml_arg0"Expression")inmake~expression()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexpression=field_map_exnjson__"Expression"Expression.of_jsoninmake~expression()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The recurrence rule for the SLO time window exclusion ."]moduleWindow=structtypenonrect={durationUnit:DurationUnit.t[@ocaml.doc"The unit of time for the exclusion window duration. Valid values: MINUTE, HOUR, DAY, MONTH."];duration:ExclusionDuration.t[@ocaml.doc"The number of time units for the exclusion window length."]}letcontext_="Window"letmake~durationUnit=fun~duration->fun()->{durationUnit;duration}letto_valuex=structure_to_value[("DurationUnit",(Some(DurationUnit.to_valuex.durationUnit)));("Duration",(Some(ExclusionDuration.to_valuex.duration)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letduration=ExclusionDuration.of_xml(Xml.child_exn~context:context_xml_arg0"Duration")inletdurationUnit=DurationUnit.of_xml(Xml.child_exn~context:context_xml_arg0"DurationUnit")inmake~duration~durationUnit()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letduration=field_map_exnjson__"Duration"ExclusionDuration.of_jsoninletdurationUnit=field_map_exnjson__"DurationUnit"DurationUnit.of_jsoninmake~duration~durationUnit()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The object that defines the time length of an exclusion window."]moduleAuditorResults=structtypenonrect=AuditorResult.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:5)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AuditorResult.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:AuditorResult.of_xml)letof_jsonj=list_of_json~kind:"AuditorResults"~of_json:AuditorResult.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDependencyGraph=structtypenonrect={nodes:Nodes.toption[@ocaml.doc"An array of nodes representing the services, resources, or other entities in the dependency graph."];edges:Edges.toption[@ocaml.doc"An array of edges representing the connections and relationships between the nodes in the dependency graph."]}letmake?nodes=fun?edges->fun()->{nodes;edges}letto_valuex=structure_to_value[("Nodes",(Option.mapx.nodes~f:Nodes.to_value));("Edges",(Option.mapx.edges~f:Edges.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letedges=(Option.map~f:Edges.of_xml)(Xml.childxml_arg0"Edges")inletnodes=(Option.map~f:Nodes.of_xml)(Xml.childxml_arg0"Nodes")inmake?edges?nodes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letedges=field_mapjson__"Edges"Edges.of_jsoninletnodes=field_mapjson__"Nodes"Nodes.of_jsoninmake?edges?nodes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that represents the dependency relationships relevant to an audit finding, containing nodes and edges that show how services and resources are connected."]moduleMetricGraph=structtypenonrect={metricDataQueries:MetricDataQueries.toption[@ocaml.doc"An array of metric data queries that define the metrics to be retrieved and analyzed as part of the audit finding context."];startTime:Timestamp.toption[@ocaml.doc"The start time for the metric data included in this graph. When used in a raw HTTP Query API, it is formatted as epoch time in seconds."];endTime:Timestamp.toption[@ocaml.doc"The end time for the metric data included in this graph. When used in a raw HTTP Query API, it is formatted as epoch time in seconds."]}letmake?metricDataQueries=fun?startTime->fun?endTime->fun()->{metricDataQueries;startTime;endTime}letto_valuex=structure_to_value[("MetricDataQueries",(Option.mapx.metricDataQueries~f:MetricDataQueries.to_value));("StartTime",(Option.mapx.startTime~f:Timestamp.to_value));("EndTime",(Option.mapx.endTime~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letendTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"EndTime")inletstartTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"StartTime")inletmetricDataQueries=(Option.map~f:MetricDataQueries.of_xml)(Xml.childxml_arg0"MetricDataQueries")inmake?endTime?startTime?metricDataQueries()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letendTime=field_mapjson__"EndTime"Timestamp.of_jsoninletstartTime=field_mapjson__"StartTime"Timestamp.of_jsoninletmetricDataQueries=field_mapjson__"MetricDataQueries"MetricDataQueries.of_jsoninmake?endTime?startTime?metricDataQueries()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that contains metric data queries and time range information that provides context for audit findings through relevant performance metrics."]moduleAuditTargetEntity=structtypenonrect={service:ServiceEntity.toption[@ocaml.doc"Service entity information when the audit target is a service."];slo:ServiceLevelObjectiveEntity.toption[@ocaml.doc"SLO entity information when the audit target is a service level objective."];serviceOperation:ServiceOperationEntity.toption[@ocaml.doc"Service operation entity information when the audit target is a specific service operation."];canary:CanaryEntity.toption[@ocaml.doc"Canary entity information when the audit target is a CloudWatch Synthetics canary."]}letmake?service=fun?slo->fun?serviceOperation->fun?canary->fun()->{service;slo;serviceOperation;canary}letto_valuex=structure_to_value[("Service",(Option.mapx.service~f:ServiceEntity.to_value));("Slo",(Option.mapx.slo~f:ServiceLevelObjectiveEntity.to_value));("ServiceOperation",(Option.mapx.serviceOperation~f:ServiceOperationEntity.to_value));("Canary",(Option.mapx.canary~f:CanaryEntity.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcanary=(Option.map~f:CanaryEntity.of_xml)(Xml.childxml_arg0"Canary")inletserviceOperation=(Option.map~f:ServiceOperationEntity.of_xml)(Xml.childxml_arg0"ServiceOperation")inletslo=(Option.map~f:ServiceLevelObjectiveEntity.of_xml)(Xml.childxml_arg0"Slo")inletservice=(Option.map~f:ServiceEntity.of_xml)(Xml.childxml_arg0"Service")inmake?canary?serviceOperation?slo?service()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcanary=field_mapjson__"Canary"CanaryEntity.of_jsoninletserviceOperation=field_mapjson__"ServiceOperation"ServiceOperationEntity.of_jsoninletslo=field_mapjson__"Slo"ServiceLevelObjectiveEntity.of_jsoninletservice=field_mapjson__"Service"ServiceEntity.of_jsoninmake?canary?serviceOperation?slo?service()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A union structure that contains the specific entity information for different types of audit targets."]moduleExclusionWindowErrorCode=structtypenonrect=stringletcontext_="ExclusionWindowErrorCode"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:"ExclusionWindowErrorCode"jletto_json=simple_to_jsonto_valueendmoduleExclusionWindowErrorMessage=structtypenonrect=stringletcontext_="ExclusionWindowErrorMessage"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:"ExclusionWindowErrorMessage"jletto_json=simple_to_jsonto_valueendmoduleServiceLevelObjectiveId=structtypenonrect=stringletcontext_="ServiceLevelObjectiveId"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[0-9A-Za-z][-._0-9A-Za-z ]{0,126}[0-9A-Za-z]$|^arn:(aws|aws-us-gov):application-signals:[^:]*:[^:]*:slo/[0-9A-Za-z][-._0-9A-Za-z ]{0,126}[0-9A-Za-z]");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ServiceLevelObjectiveId"jletto_json=simple_to_jsonto_valueendmoduleServiceLevelObjectiveBudgetReportErrorCode=structtypenonrect=stringletcontext_="ServiceLevelObjectiveBudgetReportErrorCode"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:"ServiceLevelObjectiveBudgetReportErrorCode"jletto_json=simple_to_jsonto_valueendmoduleServiceLevelObjectiveBudgetReportErrorMessage=structtypenonrect=stringletcontext_="ServiceLevelObjectiveBudgetReportErrorMessage"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:"ServiceLevelObjectiveBudgetReportErrorMessage"jletto_json=simple_to_jsonto_valueendmoduleAttainment=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_valueendmoduleBudgetRequestsRemaining=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 BudgetRequestsRemaining"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleBudgetSecondsRemaining=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 BudgetSecondsRemaining"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleGoal=structtypenonrect={interval:Interval.toption[@ocaml.doc"The time period used to evaluate the SLO. It can be either a calendar interval or rolling interval. If you omit this parameter, a rolling interval of 7 days is used."];attainmentGoal:AttainmentGoal.toption[@ocaml.doc"The threshold that determines if the goal is being met. If this is a period-based SLO, the attainment goal is the percentage of good periods that meet the threshold requirements to the total periods within the interval. For example, an attainment goal of 99.9% means that within your interval, you are targeting 99.9% of the periods to be in healthy state. If this is a request-based SLO, the attainment goal is the percentage of requests that must be successful to meet the attainment goal. If you omit this parameter, 99 is used to represent 99% as the attainment goal."];warningThreshold:WarningThreshold.toption[@ocaml.doc"The percentage of remaining budget over total budget that you want to get warnings for. If you omit this parameter, the default of 50.0 is used."]}letmake?interval=fun?attainmentGoal->fun?warningThreshold->fun()->{interval;attainmentGoal;warningThreshold}letto_valuex=structure_to_value[("Interval",(Option.mapx.interval~f:Interval.to_value));("AttainmentGoal",(Option.mapx.attainmentGoal~f:AttainmentGoal.to_value));("WarningThreshold",(Option.mapx.warningThreshold~f:WarningThreshold.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letwarningThreshold=(Option.map~f:WarningThreshold.of_xml)(Xml.childxml_arg0"WarningThreshold")inletattainmentGoal=(Option.map~f:AttainmentGoal.of_xml)(Xml.childxml_arg0"AttainmentGoal")inletinterval=(Option.map~f:Interval.of_xml)(Xml.childxml_arg0"Interval")inmake?warningThreshold?attainmentGoal?interval()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letwarningThreshold=field_mapjson__"WarningThreshold"WarningThreshold.of_jsoninletattainmentGoal=field_mapjson__"AttainmentGoal"AttainmentGoal.of_jsoninletinterval=field_mapjson__"Interval"Interval.of_jsoninmake?warningThreshold?attainmentGoal?interval()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This structure contains the attributes that determine the goal of an SLO. This includes the time period for evaluation and the attainment threshold."]moduleRequestBasedServiceLevelIndicator=structtypenonrect={requestBasedSliMetric:RequestBasedServiceLevelIndicatorMetric.toption[@ocaml.doc"A structure that contains information about the metric that the SLO monitors."];metricThreshold:ServiceLevelIndicatorMetricThreshold.toption[@ocaml.doc"This value is the threshold that the observed metric values of the SLI metric are compared to."];comparisonOperator:ServiceLevelIndicatorComparisonOperator.toption[@ocaml.doc"The arithmetic operation used when comparing the specified metric to the threshold."]}letmake?requestBasedSliMetric=fun?metricThreshold->fun?comparisonOperator->fun()->{requestBasedSliMetric;metricThreshold;comparisonOperator}letto_valuex=structure_to_value[("RequestBasedSliMetric",(Option.mapx.requestBasedSliMetric~f:RequestBasedServiceLevelIndicatorMetric.to_value));("MetricThreshold",(Option.mapx.metricThreshold~f:ServiceLevelIndicatorMetricThreshold.to_value));("ComparisonOperator",(Option.mapx.comparisonOperator~f:ServiceLevelIndicatorComparisonOperator.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcomparisonOperator=(Option.map~f:ServiceLevelIndicatorComparisonOperator.of_xml)(Xml.childxml_arg0"ComparisonOperator")inletmetricThreshold=(Option.map~f:ServiceLevelIndicatorMetricThreshold.of_xml)(Xml.childxml_arg0"MetricThreshold")inletrequestBasedSliMetric=(Option.map~f:RequestBasedServiceLevelIndicatorMetric.of_xml)(Xml.childxml_arg0"RequestBasedSliMetric")inmake?comparisonOperator?metricThreshold?requestBasedSliMetric()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcomparisonOperator=field_mapjson__"ComparisonOperator"ServiceLevelIndicatorComparisonOperator.of_jsoninletmetricThreshold=field_mapjson__"MetricThreshold"ServiceLevelIndicatorMetricThreshold.of_jsoninletrequestBasedSliMetric=field_mapjson__"RequestBasedSliMetric"RequestBasedServiceLevelIndicatorMetric.of_jsoninmake?comparisonOperator?metricThreshold?requestBasedSliMetric()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This structure contains information about the performance metric that a request-based SLO monitors."]moduleServiceLevelIndicator=structtypenonrect={sliMetric:ServiceLevelIndicatorMetric.toption[@ocaml.doc"A structure that contains information about the metric that the SLO monitors."];metricThreshold:ServiceLevelIndicatorMetricThreshold.toption[@ocaml.doc"The value that the SLI metric is compared to."];comparisonOperator:ServiceLevelIndicatorComparisonOperator.toption[@ocaml.doc"The arithmetic operation used when comparing the specified metric to the threshold."]}letmake?sliMetric=fun?metricThreshold->fun?comparisonOperator->fun()->{sliMetric;metricThreshold;comparisonOperator}letto_valuex=structure_to_value[("SliMetric",(Option.mapx.sliMetric~f:ServiceLevelIndicatorMetric.to_value));("MetricThreshold",(Option.mapx.metricThreshold~f:ServiceLevelIndicatorMetricThreshold.to_value));("ComparisonOperator",(Option.mapx.comparisonOperator~f:ServiceLevelIndicatorComparisonOperator.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcomparisonOperator=(Option.map~f:ServiceLevelIndicatorComparisonOperator.of_xml)(Xml.childxml_arg0"ComparisonOperator")inletmetricThreshold=(Option.map~f:ServiceLevelIndicatorMetricThreshold.of_xml)(Xml.childxml_arg0"MetricThreshold")inletsliMetric=(Option.map~f:ServiceLevelIndicatorMetric.of_xml)(Xml.childxml_arg0"SliMetric")inmake?comparisonOperator?metricThreshold?sliMetric()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcomparisonOperator=field_mapjson__"ComparisonOperator"ServiceLevelIndicatorComparisonOperator.of_jsoninletmetricThreshold=field_mapjson__"MetricThreshold"ServiceLevelIndicatorMetricThreshold.of_jsoninletsliMetric=field_mapjson__"SliMetric"ServiceLevelIndicatorMetric.of_jsoninmake?comparisonOperator?metricThreshold?sliMetric()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This structure contains information about the performance metric that a period-based SLO monitors."]moduleServiceLevelObjectiveBudgetStatus=structtypenonrect=|OK|WARNING|BREACHED|INSUFFICIENT_DATA|Non_static_idofstringletmakei=iletto_string=function|OK->"OK"|WARNING->"WARNING"|BREACHED->"BREACHED"|INSUFFICIENT_DATA->"INSUFFICIENT_DATA"|Non_static_ids->sletof_string=function|"OK"->OK|"WARNING"->WARNING|"BREACHED"->BREACHED|"INSUFFICIENT_DATA"->INSUFFICIENT_DATA|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 ServiceLevelObjectiveBudgetStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ServiceLevelObjectiveBudgetStatus"j)letto_json=simple_to_jsonto_valueendmoduleTotalBudgetRequests=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 TotalBudgetRequests"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleTotalBudgetSeconds=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 TotalBudgetSeconds"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleFaultDescription=structtypenonrect=stringletcontext_="FaultDescription"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:"FaultDescription"jletto_json=simple_to_jsonto_valueendmoduleResourceId=structtypenonrect=stringletcontext_="ResourceId"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:"ResourceId"jletto_json=simple_to_jsonto_valueendmoduleResourceType=structtypenonrect=stringletcontext_="ResourceType"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:"ResourceType"jletto_json=simple_to_jsonto_valueendmoduleBoolean=structtypenonrect=boolletmakei=iletof_string=Bool.of_stringletto_valuex=`Booleanxletto_queryv=to_queryto_valuevletto_headerx=Bool.to_stringxletof_xmlxml_arg0=Bool.of_string(string_of_xml~kind:"a boolean"xml_arg0)letof_json=bool_of_jsonletto_json=simple_to_jsonto_valueendmoduleBurnRateConfigurations=structtypenonrect=BurnRateConfiguration.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:10)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:BurnRateConfiguration.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:BurnRateConfiguration.of_xml)letof_jsonj=list_of_json~kind:"BurnRateConfigurations"~of_json:BurnRateConfiguration.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleServiceLevelObjectiveDescription=structtypenonrect=stringletcontext_="ServiceLevelObjectiveDescription"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ServiceLevelObjectiveDescription"jletto_json=simple_to_jsonto_valueendmoduleValidationExceptionMessage=structtypenonrect=stringletcontext_="ValidationExceptionMessage"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:"ValidationExceptionMessage"jletto_json=simple_to_jsonto_valueendmoduleRequestBasedServiceLevelIndicatorMetricConfig=structtypenonrect={keyAttributes:Attributes.toption[@ocaml.doc"If this SLO is related to a metric collected by Application Signals, you must use this field to specify which service the SLO metric is related to. To do so, you must specify at least the Type, Name, and Environment attributes. This is a string-to-string map. It can include the following fields. Type designates the type of object this is. ResourceType specifies the type of the resource. This field is used only when the value of the Type field is Resource or AWS::Resource. Name specifies the name of the object. This is used only if the value of the Type field is Service, RemoteService, or AWS::Service. Identifier identifies the resource objects of this resource. This is used only if the value of the Type field is Resource or AWS::Resource. Environment specifies the location where this object is hosted, or what it belongs to."];operationName:OperationName.toption[@ocaml.doc"If the SLO is to monitor a specific operation of the service, use this field to specify the name of that operation."];metricType:ServiceLevelIndicatorMetricType.toption[@ocaml.doc"If the SLO is to monitor either the LATENCY or AVAILABILITY metric that Application Signals collects, use this field to specify which of those metrics is used."];totalRequestCountMetric:MetricDataQueries.toption[@ocaml.doc"Use this structure to define the metric that you want to use as the \"total requests\" number for a request-based SLO. This result will be divided by the \"good request\" or \"bad request\" value defined in MonitoredRequestCountMetric."];monitoredRequestCountMetric:MonitoredRequestCountMetricDataQueries.toption[@ocaml.doc"Use this structure to define the metric that you want to use as the \"good request\" or \"bad request\" value for a request-based SLO. This value observed for the metric defined in TotalRequestCountMetric will be divided by the number found for MonitoredRequestCountMetric to determine the percentage of successful requests that this SLO tracks."];dependencyConfig:DependencyConfig.toption[@ocaml.doc"Identifies the dependency using the DependencyKeyAttributes and DependencyOperationName."];metricSource:MetricSource.toption[@ocaml.doc"Identifies the metric source for SLOs on resources other than Application Signals services."];metricName:MetricName.toption[@ocaml.doc"The name of the metric for SLOs on resources other than Application Signals services."];compositeSliConfig:CompositeSliConfig.toption[@ocaml.doc"The composite SLI configuration for service-level SLOs that monitor multiple operations of a service."]}letmake?keyAttributes=fun?operationName->fun?metricType->fun?totalRequestCountMetric->fun?monitoredRequestCountMetric->fun?dependencyConfig->fun?metricSource->fun?metricName->fun?compositeSliConfig->fun()->{keyAttributes;operationName;metricType;totalRequestCountMetric;monitoredRequestCountMetric;dependencyConfig;metricSource;metricName;compositeSliConfig}letto_valuex=structure_to_value[("KeyAttributes",(Option.mapx.keyAttributes~f:Attributes.to_value));("OperationName",(Option.mapx.operationName~f:OperationName.to_value));("MetricType",(Option.mapx.metricType~f:ServiceLevelIndicatorMetricType.to_value));("TotalRequestCountMetric",(Option.mapx.totalRequestCountMetric~f:MetricDataQueries.to_value));("MonitoredRequestCountMetric",(Option.mapx.monitoredRequestCountMetric~f:MonitoredRequestCountMetricDataQueries.to_value));("DependencyConfig",(Option.mapx.dependencyConfig~f:DependencyConfig.to_value));("MetricSource",(Option.mapx.metricSource~f:MetricSource.to_value));("MetricName",(Option.mapx.metricName~f:MetricName.to_value));("CompositeSliConfig",(Option.mapx.compositeSliConfig~f:CompositeSliConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcompositeSliConfig=(Option.map~f:CompositeSliConfig.of_xml)(Xml.childxml_arg0"CompositeSliConfig")inletmetricName=(Option.map~f:MetricName.of_xml)(Xml.childxml_arg0"MetricName")inletmetricSource=(Option.map~f:MetricSource.of_xml)(Xml.childxml_arg0"MetricSource")inletdependencyConfig=(Option.map~f:DependencyConfig.of_xml)(Xml.childxml_arg0"DependencyConfig")inletmonitoredRequestCountMetric=(Option.map~f:MonitoredRequestCountMetricDataQueries.of_xml)(Xml.childxml_arg0"MonitoredRequestCountMetric")inlettotalRequestCountMetric=(Option.map~f:MetricDataQueries.of_xml)(Xml.childxml_arg0"TotalRequestCountMetric")inletmetricType=(Option.map~f:ServiceLevelIndicatorMetricType.of_xml)(Xml.childxml_arg0"MetricType")inletoperationName=(Option.map~f:OperationName.of_xml)(Xml.childxml_arg0"OperationName")inletkeyAttributes=(Option.map~f:Attributes.of_xml)(Xml.childxml_arg0"KeyAttributes")inmake?compositeSliConfig?metricName?metricSource?dependencyConfig?monitoredRequestCountMetric?totalRequestCountMetric?metricType?operationName?keyAttributes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcompositeSliConfig=field_mapjson__"CompositeSliConfig"CompositeSliConfig.of_jsoninletmetricName=field_mapjson__"MetricName"MetricName.of_jsoninletmetricSource=field_mapjson__"MetricSource"MetricSource.of_jsoninletdependencyConfig=field_mapjson__"DependencyConfig"DependencyConfig.of_jsoninletmonitoredRequestCountMetric=field_mapjson__"MonitoredRequestCountMetric"MonitoredRequestCountMetricDataQueries.of_jsoninlettotalRequestCountMetric=field_mapjson__"TotalRequestCountMetric"MetricDataQueries.of_jsoninletmetricType=field_mapjson__"MetricType"ServiceLevelIndicatorMetricType.of_jsoninletoperationName=field_mapjson__"OperationName"OperationName.of_jsoninletkeyAttributes=field_mapjson__"KeyAttributes"Attributes.of_jsoninmake?compositeSliConfig?metricName?metricSource?dependencyConfig?monitoredRequestCountMetric?totalRequestCountMetric?metricType?operationName?keyAttributes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Use this structure to specify the information for the metric that a period-based SLO will monitor."]moduleServiceLevelIndicatorMetricConfig=structtypenonrect={keyAttributes:Attributes.toption[@ocaml.doc"If this SLO is related to a metric collected by Application Signals, you must use this field to specify which service the SLO metric is related to. To do so, you must specify at least the Type, Name, and Environment attributes. This is a string-to-string map. It can include the following fields. Type designates the type of object this is. ResourceType specifies the type of the resource. This field is used only when the value of the Type field is Resource or AWS::Resource. Name specifies the name of the object. This is used only if the value of the Type field is Service, RemoteService, or AWS::Service. Identifier identifies the resource objects of this resource. This is used only if the value of the Type field is Resource or AWS::Resource. Environment specifies the location where this object is hosted, or what it belongs to."];operationName:OperationName.toption[@ocaml.doc"If the SLO is to monitor a specific operation of the service, use this field to specify the name of that operation."];metricType:ServiceLevelIndicatorMetricType.toption[@ocaml.doc"If the SLO is to monitor either the LATENCY or AVAILABILITY metric that Application Signals collects, use this field to specify which of those metrics is used."];metricName:MetricName.toption[@ocaml.doc"The name of the CloudWatch metric to use for the SLO, when using a custom metric rather than Application Signals standard metrics."];statistic:ServiceLevelIndicatorStatistic.toption[@ocaml.doc"The statistic to use for comparison to the threshold. It can be any CloudWatch statistic or extended statistic. For more information about statistics, see CloudWatch statistics definitions."];periodSeconds:SLIPeriodSeconds.toption[@ocaml.doc"The number of seconds to use as the period for SLO evaluation. Your application's performance is compared to the SLI during each period. For each period, the application is determined to have either achieved or not achieved the necessary performance."];metricSource:MetricSource.toption[@ocaml.doc"Identifies the metric source for SLOs on resources other than Application Signals services."];metricDataQueries:MetricDataQueries.toption[@ocaml.doc"If this SLO monitors a CloudWatch metric or the result of a CloudWatch metric math expression, use this structure to specify that metric or expression."];dependencyConfig:DependencyConfig.toption[@ocaml.doc"Identifies the dependency using the DependencyKeyAttributes and DependencyOperationName."];compositeSliConfig:CompositeSliConfig.toption[@ocaml.doc"The composite SLI configuration for service-level SLOs that monitor multiple operations of a service."]}letmake?keyAttributes=fun?operationName->fun?metricType->fun?metricName->fun?statistic->fun?periodSeconds->fun?metricSource->fun?metricDataQueries->fun?dependencyConfig->fun?compositeSliConfig->fun()->{keyAttributes;operationName;metricType;metricName;statistic;periodSeconds;metricSource;metricDataQueries;dependencyConfig;compositeSliConfig}letto_valuex=structure_to_value[("KeyAttributes",(Option.mapx.keyAttributes~f:Attributes.to_value));("OperationName",(Option.mapx.operationName~f:OperationName.to_value));("MetricType",(Option.mapx.metricType~f:ServiceLevelIndicatorMetricType.to_value));("MetricName",(Option.mapx.metricName~f:MetricName.to_value));("Statistic",(Option.mapx.statistic~f:ServiceLevelIndicatorStatistic.to_value));("PeriodSeconds",(Option.mapx.periodSeconds~f:SLIPeriodSeconds.to_value));("MetricSource",(Option.mapx.metricSource~f:MetricSource.to_value));("MetricDataQueries",(Option.mapx.metricDataQueries~f:MetricDataQueries.to_value));("DependencyConfig",(Option.mapx.dependencyConfig~f:DependencyConfig.to_value));("CompositeSliConfig",(Option.mapx.compositeSliConfig~f:CompositeSliConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcompositeSliConfig=(Option.map~f:CompositeSliConfig.of_xml)(Xml.childxml_arg0"CompositeSliConfig")inletdependencyConfig=(Option.map~f:DependencyConfig.of_xml)(Xml.childxml_arg0"DependencyConfig")inletmetricDataQueries=(Option.map~f:MetricDataQueries.of_xml)(Xml.childxml_arg0"MetricDataQueries")inletmetricSource=(Option.map~f:MetricSource.of_xml)(Xml.childxml_arg0"MetricSource")inletperiodSeconds=(Option.map~f:SLIPeriodSeconds.of_xml)(Xml.childxml_arg0"PeriodSeconds")inletstatistic=(Option.map~f:ServiceLevelIndicatorStatistic.of_xml)(Xml.childxml_arg0"Statistic")inletmetricName=(Option.map~f:MetricName.of_xml)(Xml.childxml_arg0"MetricName")inletmetricType=(Option.map~f:ServiceLevelIndicatorMetricType.of_xml)(Xml.childxml_arg0"MetricType")inletoperationName=(Option.map~f:OperationName.of_xml)(Xml.childxml_arg0"OperationName")inletkeyAttributes=(Option.map~f:Attributes.of_xml)(Xml.childxml_arg0"KeyAttributes")inmake?compositeSliConfig?dependencyConfig?metricDataQueries?metricSource?periodSeconds?statistic?metricName?metricType?operationName?keyAttributes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcompositeSliConfig=field_mapjson__"CompositeSliConfig"CompositeSliConfig.of_jsoninletdependencyConfig=field_mapjson__"DependencyConfig"DependencyConfig.of_jsoninletmetricDataQueries=field_mapjson__"MetricDataQueries"MetricDataQueries.of_jsoninletmetricSource=field_mapjson__"MetricSource"MetricSource.of_jsoninletperiodSeconds=field_mapjson__"PeriodSeconds"SLIPeriodSeconds.of_jsoninletstatistic=field_mapjson__"Statistic"ServiceLevelIndicatorStatistic.of_jsoninletmetricName=field_mapjson__"MetricName"MetricName.of_jsoninletmetricType=field_mapjson__"MetricType"ServiceLevelIndicatorMetricType.of_jsoninletoperationName=field_mapjson__"OperationName"OperationName.of_jsoninletkeyAttributes=field_mapjson__"KeyAttributes"Attributes.of_jsoninmake?compositeSliConfig?dependencyConfig?metricDataQueries?metricSource?periodSeconds?statistic?metricName?metricType?operationName?keyAttributes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Use this structure to specify the information for the metric that a period-based SLO will monitor."]moduleTag=structtypenonrect={key:TagKey.t[@ocaml.doc"A string that you can use to assign a value. The combination of tag keys and values can help you organize and categorize your resources."];value:TagValue.t[@ocaml.doc"The value for the specified tag key."]}letcontext_="Tag"letmake~key=fun~value->fun()->{key;value}letto_valuex=structure_to_value[("Key",(Some(TagKey.to_valuex.key)));("Value",(Some(TagValue.to_valuex.value)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=TagValue.of_xml(Xml.child_exn~context:context_xml_arg0"Value")inletkey=TagKey.of_xml(Xml.child_exn~context:context_xml_arg0"Key")inmake~value~key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_map_exnjson__"Value"TagValue.of_jsoninletkey=field_map_exnjson__"Key"TagKey.of_jsoninmake~value~key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A key-value pair associated with a resource. Tags can help you organize and categorize your resources."]moduleServiceErrorMessage=structtypenonrect=stringletcontext_="ServiceErrorMessage"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:"ServiceErrorMessage"jletto_json=simple_to_jsonto_valueendmoduleGroupingAttributeDefinitions=structtypenonrect=GroupingAttributeDefinition.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:GroupingAttributeDefinition.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:GroupingAttributeDefinition.of_xml)letof_jsonj=list_of_json~kind:"GroupingAttributeDefinitions"~of_json:GroupingAttributeDefinition.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleServiceSummary=structtypenonrect={keyAttributes:Attributes.toption[@ocaml.doc"This is a string-to-string map that help identify the objects discovered by Application Signals. It can include the following fields. Type designates the type of object this is. ResourceType specifies the type of the resource. This field is used only when the value of the Type field is Resource or AWS::Resource. Name specifies the name of the object. This is used only if the value of the Type field is Service, RemoteService, or AWS::Service. Identifier identifies the resource objects of this resource. This is used only if the value of the Type field is Resource or AWS::Resource. Environment specifies the location where this object is hosted, or what it belongs to."];attributeMaps:AttributeMaps.toption[@ocaml.doc"This structure contains one or more string-to-string maps that help identify this service. It can include platform attributes, application attributes, and telemetry attributes. Platform attributes contain information the service's platform. PlatformType defines the hosted-in platform. EKS.Cluster is the name of the Amazon EKS cluster. K8s.Cluster is the name of the self-hosted Kubernetes cluster. K8s.Namespace is the name of the Kubernetes namespace in either Amazon EKS or Kubernetes clusters. K8s.Workload is the name of the Kubernetes workload in either Amazon EKS or Kubernetes clusters. K8s.Node is the name of the Kubernetes node in either Amazon EKS or Kubernetes clusters. K8s.Pod is the name of the Kubernetes pod in either Amazon EKS or Kubernetes clusters. EC2.AutoScalingGroup is the name of the Amazon EC2 Auto Scaling group. EC2.InstanceId is the ID of the Amazon EC2 instance. Host is the name of the host, for all platform types. Application attributes contain information about the application. AWS.Application is the application's name in Amazon Web Services Service Catalog AppRegistry. AWS.Application.ARN is the application's ARN in Amazon Web Services Service Catalog AppRegistry. Telemetry attributes contain telemetry information. Telemetry.SDK is the fingerprint of the OpenTelemetry SDK version for instrumented services. Telemetry.Agent is the fingerprint of the agent used to collect and send telemetry data. Telemetry.Source Specifies the point of application where the telemetry was collected or specifies what was used for the source of telemetry data."];metricReferences:MetricReferences.toption[@ocaml.doc"An array of structures that each contain information about one metric associated with this service."];serviceGroups:ServiceGroups.toption[@ocaml.doc"An array of service groups that this service belongs to, based on the configured grouping attributes."]}letmake?keyAttributes=fun?attributeMaps->fun?metricReferences->fun?serviceGroups->fun()->{keyAttributes;attributeMaps;metricReferences;serviceGroups}letto_valuex=structure_to_value[("KeyAttributes",(Option.mapx.keyAttributes~f:Attributes.to_value));("AttributeMaps",(Option.mapx.attributeMaps~f:AttributeMaps.to_value));("MetricReferences",(Option.mapx.metricReferences~f:MetricReferences.to_value));("ServiceGroups",(Option.mapx.serviceGroups~f:ServiceGroups.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letserviceGroups=(Option.map~f:ServiceGroups.of_xml)(Xml.childxml_arg0"ServiceGroups")inletmetricReferences=(Option.map~f:MetricReferences.of_xml)(Xml.childxml_arg0"MetricReferences")inletattributeMaps=(Option.map~f:AttributeMaps.of_xml)(Xml.childxml_arg0"AttributeMaps")inletkeyAttributes=(Option.map~f:Attributes.of_xml)(Xml.childxml_arg0"KeyAttributes")inmake?serviceGroups?metricReferences?attributeMaps?keyAttributes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letserviceGroups=field_mapjson__"ServiceGroups"ServiceGroups.of_jsoninletmetricReferences=field_mapjson__"MetricReferences"MetricReferences.of_jsoninletattributeMaps=field_mapjson__"AttributeMaps"AttributeMaps.of_jsoninletkeyAttributes=field_mapjson__"KeyAttributes"Attributes.of_jsoninmake?serviceGroups?metricReferences?attributeMaps?keyAttributes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This structure contains information about one of your services that was discovered by Application Signals"]moduleServiceState=structtypenonrect={attributeFilters:AttributeFilters.toption[@ocaml.doc"The attribute filters that were applied when retrieving this service state information."];service:Attributes.toption[@ocaml.doc"The key attributes that identify this service, including Type, Name, and Environment information."];latestChangeEvents:LatestChangeEvents.toption[@ocaml.doc"An array containing the most recent change events for this service, such as deployments, with information about when they occurred and who initiated them."]}letmake?attributeFilters=fun?service->fun?latestChangeEvents->fun()->{attributeFilters;service;latestChangeEvents}letto_valuex=structure_to_value[("AttributeFilters",(Option.mapx.attributeFilters~f:AttributeFilters.to_value));("Service",(Option.mapx.service~f:Attributes.to_value));("LatestChangeEvents",(Option.mapx.latestChangeEvents~f:LatestChangeEvents.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlatestChangeEvents=(Option.map~f:LatestChangeEvents.of_xml)(Xml.childxml_arg0"LatestChangeEvents")inletservice=(Option.map~f:Attributes.of_xml)(Xml.childxml_arg0"Service")inletattributeFilters=(Option.map~f:AttributeFilters.of_xml)(Xml.childxml_arg0"AttributeFilters")inmake?latestChangeEvents?service?attributeFilters()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlatestChangeEvents=field_mapjson__"LatestChangeEvents"LatestChangeEvents.of_jsoninletservice=field_mapjson__"Service"Attributes.of_jsoninletattributeFilters=field_mapjson__"AttributeFilters"AttributeFilters.of_jsoninmake?latestChangeEvents?service?attributeFilters()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that contains information about the current state of a service, including its latest change events such as deployments and other state-changing activities."]moduleServiceOperation=structtypenonrect={name:OperationName.toption[@ocaml.doc"The name of the operation, discovered by Application Signals."];metricReferences:MetricReferences.toption[@ocaml.doc"An array of structures that each contain information about one metric associated with this service operation that was discovered by Application Signals."]}letmake?name=fun?metricReferences->fun()->{name;metricReferences}letto_valuex=structure_to_value[("Name",(Option.mapx.name~f:OperationName.to_value));("MetricReferences",(Option.mapx.metricReferences~f:MetricReferences.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmetricReferences=(Option.map~f:MetricReferences.of_xml)(Xml.childxml_arg0"MetricReferences")inletname=(Option.map~f:OperationName.of_xml)(Xml.childxml_arg0"Name")inmake?metricReferences?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmetricReferences=field_mapjson__"MetricReferences"MetricReferences.of_jsoninletname=field_mapjson__"Name"OperationName.of_jsoninmake?metricReferences?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This structure contains information about an operation discovered by Application Signals. An operation is a specific function performed by a service that was discovered by Application Signals, and is often an API that is called by an upstream dependent."]moduleServiceLevelObjectiveSummary=structtypenonrect={arn:ServiceLevelObjectiveArn.toption[@ocaml.doc"The ARN of this service level objective."];name:ServiceLevelObjectiveName.toption[@ocaml.doc"The name of the service level objective."];keyAttributes:Attributes.toption[@ocaml.doc"This is a string-to-string map. It can include the following fields. Type designates the type of object this service level objective is for. ResourceType specifies the type of the resource. This field is used only when the value of the Type field is Resource or AWS::Resource. Name specifies the name of the object. This is used only if the value of the Type field is Service, RemoteService, or AWS::Service. Identifier identifies the resource objects of this resource. This is used only if the value of the Type field is Resource or AWS::Resource. Environment specifies the location where this object is hosted, or what it belongs to."];operationName:OperationName.toption[@ocaml.doc"If this service level objective is specific to a single operation, this field displays the name of that operation."];dependencyConfig:DependencyConfig.toption[@ocaml.doc"Identifies the dependency using the DependencyKeyAttributes and DependencyOperationName."];createdTime:Timestamp.toption[@ocaml.doc"The date and time that this service level objective was created. It is expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC."];evaluationType:EvaluationType.toption[@ocaml.doc"Displays whether this is a period-based SLO or a request-based SLO."];metricSourceType:MetricSourceType.toption[@ocaml.doc"Displays the SLI metric source type for this SLO. Supported types are: Service operation Service dependency Service CloudWatch metric AppMonitor Canary"];metricSource:MetricSource.toption[@ocaml.doc"Identifies the metric source for SLOs on resources other than Application Signals services."];compositeSliConfig:CompositeSliConfig.toption[@ocaml.doc"The composite SLI configuration for service-level SLOs that monitor multiple operations of a service."]}letmake?arn=fun?name->fun?keyAttributes->fun?operationName->fun?dependencyConfig->fun?createdTime->fun?evaluationType->fun?metricSourceType->fun?metricSource->fun?compositeSliConfig->fun()->{arn;name;keyAttributes;operationName;dependencyConfig;createdTime;evaluationType;metricSourceType;metricSource;compositeSliConfig}letto_valuex=structure_to_value[("Arn",(Option.mapx.arn~f:ServiceLevelObjectiveArn.to_value));("Name",(Option.mapx.name~f:ServiceLevelObjectiveName.to_value));("KeyAttributes",(Option.mapx.keyAttributes~f:Attributes.to_value));("OperationName",(Option.mapx.operationName~f:OperationName.to_value));("DependencyConfig",(Option.mapx.dependencyConfig~f:DependencyConfig.to_value));("CreatedTime",(Option.mapx.createdTime~f:Timestamp.to_value));("EvaluationType",(Option.mapx.evaluationType~f:EvaluationType.to_value));("MetricSourceType",(Option.mapx.metricSourceType~f:MetricSourceType.to_value));("MetricSource",(Option.mapx.metricSource~f:MetricSource.to_value));("CompositeSliConfig",(Option.mapx.compositeSliConfig~f:CompositeSliConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcompositeSliConfig=(Option.map~f:CompositeSliConfig.of_xml)(Xml.childxml_arg0"CompositeSliConfig")inletmetricSource=(Option.map~f:MetricSource.of_xml)(Xml.childxml_arg0"MetricSource")inletmetricSourceType=(Option.map~f:MetricSourceType.of_xml)(Xml.childxml_arg0"MetricSourceType")inletevaluationType=(Option.map~f:EvaluationType.of_xml)(Xml.childxml_arg0"EvaluationType")inletcreatedTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"CreatedTime")inletdependencyConfig=(Option.map~f:DependencyConfig.of_xml)(Xml.childxml_arg0"DependencyConfig")inletoperationName=(Option.map~f:OperationName.of_xml)(Xml.childxml_arg0"OperationName")inletkeyAttributes=(Option.map~f:Attributes.of_xml)(Xml.childxml_arg0"KeyAttributes")inletname=(Option.map~f:ServiceLevelObjectiveName.of_xml)(Xml.childxml_arg0"Name")inletarn=(Option.map~f:ServiceLevelObjectiveArn.of_xml)(Xml.childxml_arg0"Arn")inmake?compositeSliConfig?metricSource?metricSourceType?evaluationType?createdTime?dependencyConfig?operationName?keyAttributes?name?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcompositeSliConfig=field_mapjson__"CompositeSliConfig"CompositeSliConfig.of_jsoninletmetricSource=field_mapjson__"MetricSource"MetricSource.of_jsoninletmetricSourceType=field_mapjson__"MetricSourceType"MetricSourceType.of_jsoninletevaluationType=field_mapjson__"EvaluationType"EvaluationType.of_jsoninletcreatedTime=field_mapjson__"CreatedTime"Timestamp.of_jsoninletdependencyConfig=field_mapjson__"DependencyConfig"DependencyConfig.of_jsoninletoperationName=field_mapjson__"OperationName"OperationName.of_jsoninletkeyAttributes=field_mapjson__"KeyAttributes"Attributes.of_jsoninletname=field_mapjson__"Name"ServiceLevelObjectiveName.of_jsoninletarn=field_mapjson__"Arn"ServiceLevelObjectiveArn.of_jsoninmake?compositeSliConfig?metricSource?metricSourceType?evaluationType?createdTime?dependencyConfig?operationName?keyAttributes?name?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that contains information about one service level objective (SLO) created in Application Signals."]moduleExclusionWindow=structtypenonrect={window:Window.t[@ocaml.doc"The SLO time window exclusion ."];startTime:Timestamp.toption[@ocaml.doc"The start of the SLO time window exclusion. Defaults to current time if not specified."];recurrenceRule:RecurrenceRule.toption[@ocaml.doc"The recurrence rule for the SLO time window exclusion. Supports both cron and rate expressions."];reason:ExclusionReason.toption[@ocaml.doc"A description explaining why this time period should be excluded from SLO calculations."]}letcontext_="ExclusionWindow"letmake?startTime=fun?recurrenceRule->fun?reason->fun~window->fun()->{startTime;recurrenceRule;reason;window}letto_valuex=structure_to_value[("Window",(Some(Window.to_valuex.window)));("StartTime",(Option.mapx.startTime~f:Timestamp.to_value));("RecurrenceRule",(Option.mapx.recurrenceRule~f:RecurrenceRule.to_value));("Reason",(Option.mapx.reason~f:ExclusionReason.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreason=(Option.map~f:ExclusionReason.of_xml)(Xml.childxml_arg0"Reason")inletrecurrenceRule=(Option.map~f:RecurrenceRule.of_xml)(Xml.childxml_arg0"RecurrenceRule")inletstartTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"StartTime")inletwindow=Window.of_xml(Xml.child_exn~context:context_xml_arg0"Window")inmake?reason?recurrenceRule?startTime~window()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreason=field_mapjson__"Reason"ExclusionReason.of_jsoninletrecurrenceRule=field_mapjson__"RecurrenceRule"RecurrenceRule.of_jsoninletstartTime=field_mapjson__"StartTime"Timestamp.of_jsoninletwindow=field_map_exnjson__"Window"Window.of_jsoninmake?reason?recurrenceRule?startTime~window()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The core SLO time window exclusion object that includes Window, StartTime, RecurrenceRule, and Reason."]moduleServiceDependent=structtypenonrect={operationName:OperationName.toption[@ocaml.doc"If the invoked entity is an operation on an entity, the name of that dependent operation is displayed here."];dependentKeyAttributes:Attributes.toption[@ocaml.doc"This is a string-to-string map. It can include the following fields. Type designates the type of object this is. ResourceType specifies the type of the resource. This field is used only when the value of the Type field is Resource or AWS::Resource. Name specifies the name of the object. This is used only if the value of the Type field is Service, RemoteService, or AWS::Service. Identifier identifies the resource objects of this resource. This is used only if the value of the Type field is Resource or AWS::Resource. Environment specifies the location where this object is hosted, or what it belongs to."];dependentOperationName:OperationName.toption[@ocaml.doc"If the dependent invoker was a service that invoked it from an operation, the name of that dependent operation is displayed here."];metricReferences:MetricReferences.toption[@ocaml.doc"An array of structures that each contain information about one metric associated with this service dependent that was discovered by Application Signals."]}letmake?operationName=fun?dependentKeyAttributes->fun?dependentOperationName->fun?metricReferences->fun()->{operationName;dependentKeyAttributes;dependentOperationName;metricReferences}letto_valuex=structure_to_value[("OperationName",(Option.mapx.operationName~f:OperationName.to_value));("DependentKeyAttributes",(Option.mapx.dependentKeyAttributes~f:Attributes.to_value));("DependentOperationName",(Option.mapx.dependentOperationName~f:OperationName.to_value));("MetricReferences",(Option.mapx.metricReferences~f:MetricReferences.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmetricReferences=(Option.map~f:MetricReferences.of_xml)(Xml.childxml_arg0"MetricReferences")inletdependentOperationName=(Option.map~f:OperationName.of_xml)(Xml.childxml_arg0"DependentOperationName")inletdependentKeyAttributes=(Option.map~f:Attributes.of_xml)(Xml.childxml_arg0"DependentKeyAttributes")inletoperationName=(Option.map~f:OperationName.of_xml)(Xml.childxml_arg0"OperationName")inmake?metricReferences?dependentOperationName?dependentKeyAttributes?operationName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmetricReferences=field_mapjson__"MetricReferences"MetricReferences.of_jsoninletdependentOperationName=field_mapjson__"DependentOperationName"OperationName.of_jsoninletdependentKeyAttributes=field_mapjson__"DependentKeyAttributes"Attributes.of_jsoninletoperationName=field_mapjson__"OperationName"OperationName.of_jsoninmake?metricReferences?dependentOperationName?dependentKeyAttributes?operationName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This structure contains information about a service dependent that was discovered by Application Signals. A dependent is an entity that invoked the specified service during the provided time range. Dependents include other services, CloudWatch Synthetics canaries, and clients that are instrumented with CloudWatch RUM app monitors."]moduleServiceDependency=structtypenonrect={operationName:OperationName.toption[@ocaml.doc"The name of the operation in this service that calls the dependency."];dependencyKeyAttributes:Attributes.toption[@ocaml.doc"This is a string-to-string map. It can include the following fields. Type designates the type of object this is. ResourceType specifies the type of the resource. This field is used only when the value of the Type field is Resource or AWS::Resource. Name specifies the name of the object. This is used only if the value of the Type field is Service, RemoteService, or AWS::Service. Identifier identifies the resource objects of this resource. This is used only if the value of the Type field is Resource or AWS::Resource. Environment specifies the location where this object is hosted, or what it belongs to."];dependencyOperationName:OperationName.toption[@ocaml.doc"The name of the called operation in the dependency."];metricReferences:MetricReferences.toption[@ocaml.doc"An array of structures that each contain information about one metric associated with this service dependency that was discovered by Application Signals."]}letmake?operationName=fun?dependencyKeyAttributes->fun?dependencyOperationName->fun?metricReferences->fun()->{operationName;dependencyKeyAttributes;dependencyOperationName;metricReferences}letto_valuex=structure_to_value[("OperationName",(Option.mapx.operationName~f:OperationName.to_value));("DependencyKeyAttributes",(Option.mapx.dependencyKeyAttributes~f:Attributes.to_value));("DependencyOperationName",(Option.mapx.dependencyOperationName~f:OperationName.to_value));("MetricReferences",(Option.mapx.metricReferences~f:MetricReferences.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmetricReferences=(Option.map~f:MetricReferences.of_xml)(Xml.childxml_arg0"MetricReferences")inletdependencyOperationName=(Option.map~f:OperationName.of_xml)(Xml.childxml_arg0"DependencyOperationName")inletdependencyKeyAttributes=(Option.map~f:Attributes.of_xml)(Xml.childxml_arg0"DependencyKeyAttributes")inletoperationName=(Option.map~f:OperationName.of_xml)(Xml.childxml_arg0"OperationName")inmake?metricReferences?dependencyOperationName?dependencyKeyAttributes?operationName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmetricReferences=field_mapjson__"MetricReferences"MetricReferences.of_jsoninletdependencyOperationName=field_mapjson__"DependencyOperationName"OperationName.of_jsoninletdependencyKeyAttributes=field_mapjson__"DependencyKeyAttributes"Attributes.of_jsoninletoperationName=field_mapjson__"OperationName"OperationName.of_jsoninmake?metricReferences?dependencyOperationName?dependencyKeyAttributes?operationName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This structure contains information about one dependency of this service."]moduleAuditFinding=structtypenonrect={keyAttributes:Attributes.toption[@ocaml.doc"The key attributes that identify the service or entity this audit finding relates to. This is a string-to-string map that includes fields like Type, Name, and Environment."];auditorResults:AuditorResults.toption[@ocaml.doc"An array of auditor results that contain the specific findings, descriptions, and severity levels identified by different auditing algorithms."];operation:String_.toption[@ocaml.doc"The name of the operation associated with this audit finding, if the finding is specific to a particular service operation."];metricGraph:MetricGraph.toption[@ocaml.doc"A structure containing metric data queries and time range information that provides context for the audit finding through relevant performance metrics."];dependencyGraph:DependencyGraph.toption[@ocaml.doc"A structure containing nodes and edges that represent the dependency relationships relevant to this audit finding, helping to understand the context and potential impact."];type_:String_.toption[@ocaml.doc"The type of audit finding."]}letmake?keyAttributes=fun?auditorResults->fun?operation->fun?metricGraph->fun?dependencyGraph->fun?type_->fun()->{keyAttributes;auditorResults;operation;metricGraph;dependencyGraph;type_}letto_valuex=structure_to_value[("KeyAttributes",(Option.mapx.keyAttributes~f:Attributes.to_value));("AuditorResults",(Option.mapx.auditorResults~f:AuditorResults.to_value));("Operation",(Option.mapx.operation~f:String_.to_value));("MetricGraph",(Option.mapx.metricGraph~f:MetricGraph.to_value));("DependencyGraph",(Option.mapx.dependencyGraph~f:DependencyGraph.to_value));("Type",(Option.mapx.type_~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettype_=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Type")inletdependencyGraph=(Option.map~f:DependencyGraph.of_xml)(Xml.childxml_arg0"DependencyGraph")inletmetricGraph=(Option.map~f:MetricGraph.of_xml)(Xml.childxml_arg0"MetricGraph")inletoperation=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Operation")inletauditorResults=(Option.map~f:AuditorResults.of_xml)(Xml.childxml_arg0"AuditorResults")inletkeyAttributes=(Option.map~f:Attributes.of_xml)(Xml.childxml_arg0"KeyAttributes")inmake?type_?dependencyGraph?metricGraph?operation?auditorResults?keyAttributes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettype_=field_mapjson__"Type"String_.of_jsoninletdependencyGraph=field_mapjson__"DependencyGraph"DependencyGraph.of_jsoninletmetricGraph=field_mapjson__"MetricGraph"MetricGraph.of_jsoninletoperation=field_mapjson__"Operation"String_.of_jsoninletauditorResults=field_mapjson__"AuditorResults"AuditorResults.of_jsoninletkeyAttributes=field_mapjson__"KeyAttributes"Attributes.of_jsoninmake?type_?dependencyGraph?metricGraph?operation?auditorResults?keyAttributes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that contains information about an audit finding, which represents an automated analysis result about service behavior, performance issues, or potential problems identified through heuristic algorithms."]moduleAuditTarget=structtypenonrect={type_:String_.t[@ocaml.doc"The type of entity being audited, such as service, SLO, service_operation, or canary."];data:AuditTargetEntity.t[@ocaml.doc"The specific data identifying the audit target entity."]}letcontext_="AuditTarget"letmake~type_=fun~data->fun()->{type_;data}letto_valuex=structure_to_value[("Type",(Some(String_.to_valuex.type_)));("Data",(Some(AuditTargetEntity.to_valuex.data)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdata=AuditTargetEntity.of_xml(Xml.child_exn~context:context_xml_arg0"Data")inlettype_=String_.of_xml(Xml.child_exn~context:context_xml_arg0"Type")inmake~data~type_()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdata=field_map_exnjson__"Data"AuditTargetEntity.of_jsoninlettype_=field_map_exnjson__"Type"String_.of_jsoninmake~data~type_()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that specifies the target entity for audit analysis, such as a service, SLO, service_operation, or canary."]moduleLogGroupReferences=structtypenonrect=Attributes.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Attributes.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:Attributes.of_xml)letof_jsonj=list_of_json~kind:"LogGroupReferences"~of_json:Attributes.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBatchUpdateExclusionWindowsError=structtypenonrect={sloId:ServiceLevelObjectiveId.toption[@ocaml.doc"The SLO ID in the error."];errorCode:ExclusionWindowErrorCode.toption[@ocaml.doc"The error code."];errorMessage:ExclusionWindowErrorMessage.toption[@ocaml.doc"The error message."]}letmake?sloId=fun?errorCode->fun?errorMessage->fun()->{sloId;errorCode;errorMessage}letto_valuex=structure_to_value[("SloId",(Option.mapx.sloId~f:ServiceLevelObjectiveId.to_value));("ErrorCode",(Option.mapx.errorCode~f:ExclusionWindowErrorCode.to_value));("ErrorMessage",(Option.mapx.errorMessage~f:ExclusionWindowErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorMessage=(Option.map~f:ExclusionWindowErrorMessage.of_xml)(Xml.childxml_arg0"ErrorMessage")inleterrorCode=(Option.map~f:ExclusionWindowErrorCode.of_xml)(Xml.childxml_arg0"ErrorCode")inletsloId=(Option.map~f:ServiceLevelObjectiveId.of_xml)(Xml.childxml_arg0"SloId")inmake?errorMessage?errorCode?sloId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorMessage=field_mapjson__"ErrorMessage"ExclusionWindowErrorMessage.of_jsoninleterrorCode=field_mapjson__"ErrorCode"ExclusionWindowErrorCode.of_jsoninletsloId=field_mapjson__"SloId"ServiceLevelObjectiveId.of_jsoninmake?errorMessage?errorCode?sloId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An array of structures, where each structure includes an error indicating that one of the requests in the array was not valid."]moduleServiceLevelObjectiveBudgetReportError=structtypenonrect={name:ServiceLevelObjectiveName.toption[@ocaml.doc"The name of the SLO that this error is related to."];arn:ServiceLevelObjectiveArn.toption[@ocaml.doc"The ARN of the SLO that this error is related to."];errorCode:ServiceLevelObjectiveBudgetReportErrorCode.toption[@ocaml.doc"The error code for this error."];errorMessage:ServiceLevelObjectiveBudgetReportErrorMessage.toption[@ocaml.doc"The message for this error."]}letmake?name=fun?arn->fun?errorCode->fun?errorMessage->fun()->{name;arn;errorCode;errorMessage}letto_valuex=structure_to_value[("Name",(Option.mapx.name~f:ServiceLevelObjectiveName.to_value));("Arn",(Option.mapx.arn~f:ServiceLevelObjectiveArn.to_value));("ErrorCode",(Option.mapx.errorCode~f:ServiceLevelObjectiveBudgetReportErrorCode.to_value));("ErrorMessage",(Option.mapx.errorMessage~f:ServiceLevelObjectiveBudgetReportErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrorMessage=(Option.map~f:ServiceLevelObjectiveBudgetReportErrorMessage.of_xml)(Xml.childxml_arg0"ErrorMessage")inleterrorCode=(Option.map~f:ServiceLevelObjectiveBudgetReportErrorCode.of_xml)(Xml.childxml_arg0"ErrorCode")inletarn=(Option.map~f:ServiceLevelObjectiveArn.of_xml)(Xml.childxml_arg0"Arn")inletname=(Option.map~f:ServiceLevelObjectiveName.of_xml)(Xml.childxml_arg0"Name")inmake?errorMessage?errorCode?arn?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrorMessage=field_mapjson__"ErrorMessage"ServiceLevelObjectiveBudgetReportErrorMessage.of_jsoninleterrorCode=field_mapjson__"ErrorCode"ServiceLevelObjectiveBudgetReportErrorCode.of_jsoninletarn=field_mapjson__"Arn"ServiceLevelObjectiveArn.of_jsoninletname=field_mapjson__"Name"ServiceLevelObjectiveName.of_jsoninmake?errorMessage?errorCode?arn?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure containing information about one error that occurred during a BatchGetServiceLevelObjectiveBudgetReport operation."]moduleServiceLevelObjectiveBudgetReport=structtypenonrect={arn:ServiceLevelObjectiveArn.toption[@ocaml.doc"The ARN of the SLO that this report is for."];name:ServiceLevelObjectiveName.toption[@ocaml.doc"The name of the SLO that this report is for."];evaluationType:EvaluationType.toption[@ocaml.doc"Displays whether this budget report is for a period-based SLO or a request-based SLO."];budgetStatus:ServiceLevelObjectiveBudgetStatus.toption[@ocaml.doc"The status of this SLO, as it relates to the error budget for the entire time interval. OK means that the SLO had remaining budget above the warning threshold, as of the time that you specified in TimeStamp. WARNING means that the SLO's remaining budget was below the warning threshold, as of the time that you specified in TimeStamp. BREACHED means that the SLO's budget was exhausted, as of the time that you specified in TimeStamp. INSUFFICIENT_DATA means that the specified start and end times were before the SLO was created, or that attainment data is missing."];attainment:Attainment.toption[@ocaml.doc"A number between 0 and 100 that represents the success percentage of your application compared to the goal set by the SLO. If this is a period-based SLO, the number is the percentage of time periods that the service has attained the SLO's attainment goal, as of the time of the request. If this is a request-based SLO, the number is the number of successful requests divided by the number of total requests, multiplied by 100, during the time range that you specified in your request."];totalBudgetSeconds:TotalBudgetSeconds.toption[@ocaml.doc"The total number of seconds in the error budget for the interval. This field is included only if the SLO is a period-based SLO."];budgetSecondsRemaining:BudgetSecondsRemaining.toption[@ocaml.doc"The budget amount remaining before the SLO status becomes BREACHING, at the time specified in the Timestemp parameter of the request. If this value is negative, then the SLO is already in BREACHING status. This field is included only if the SLO is a period-based SLO."];totalBudgetRequests:TotalBudgetRequests.toption[@ocaml.doc"This field is displayed only for request-based SLOs. It displays the total number of failed requests that can be tolerated during the time range between the start of the interval and the time stamp supplied in the budget report request. It is based on the total number of requests that occurred, and the percentage specified in the attainment goal. If the number of failed requests matches this number or is higher, then this SLO is currently breaching. This number can go up and down between reports with different time stamps, based on both how many total requests occur."];budgetRequestsRemaining:BudgetRequestsRemaining.toption[@ocaml.doc"This field is displayed only for request-based SLOs. It displays the number of failed requests that can be tolerated before any more successful requests occur, and still have the application meet its SLO goal. This number can go up and down between different reports, based on both how many successful requests and how many failed requests occur in that time."];sli:ServiceLevelIndicator.toption[@ocaml.doc"A structure that contains information about the performance metric that this SLO monitors."];requestBasedSli:RequestBasedServiceLevelIndicator.toption;goal:Goal.toption}letmake?arn=fun?name->fun?evaluationType->fun?budgetStatus->fun?attainment->fun?totalBudgetSeconds->fun?budgetSecondsRemaining->fun?totalBudgetRequests->fun?budgetRequestsRemaining->fun?sli->fun?requestBasedSli->fun?goal->fun()->{arn;name;evaluationType;budgetStatus;attainment;totalBudgetSeconds;budgetSecondsRemaining;totalBudgetRequests;budgetRequestsRemaining;sli;requestBasedSli;goal}letto_valuex=structure_to_value[("Arn",(Option.mapx.arn~f:ServiceLevelObjectiveArn.to_value));("Name",(Option.mapx.name~f:ServiceLevelObjectiveName.to_value));("EvaluationType",(Option.mapx.evaluationType~f:EvaluationType.to_value));("BudgetStatus",(Option.mapx.budgetStatus~f:ServiceLevelObjectiveBudgetStatus.to_value));("Attainment",(Option.mapx.attainment~f:Attainment.to_value));("TotalBudgetSeconds",(Option.mapx.totalBudgetSeconds~f:TotalBudgetSeconds.to_value));("BudgetSecondsRemaining",(Option.mapx.budgetSecondsRemaining~f:BudgetSecondsRemaining.to_value));("TotalBudgetRequests",(Option.mapx.totalBudgetRequests~f:TotalBudgetRequests.to_value));("BudgetRequestsRemaining",(Option.mapx.budgetRequestsRemaining~f:BudgetRequestsRemaining.to_value));("Sli",(Option.mapx.sli~f:ServiceLevelIndicator.to_value));("RequestBasedSli",(Option.mapx.requestBasedSli~f:RequestBasedServiceLevelIndicator.to_value));("Goal",(Option.mapx.goal~f:Goal.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letgoal=(Option.map~f:Goal.of_xml)(Xml.childxml_arg0"Goal")inletrequestBasedSli=(Option.map~f:RequestBasedServiceLevelIndicator.of_xml)(Xml.childxml_arg0"RequestBasedSli")inletsli=(Option.map~f:ServiceLevelIndicator.of_xml)(Xml.childxml_arg0"Sli")inletbudgetRequestsRemaining=(Option.map~f:BudgetRequestsRemaining.of_xml)(Xml.childxml_arg0"BudgetRequestsRemaining")inlettotalBudgetRequests=(Option.map~f:TotalBudgetRequests.of_xml)(Xml.childxml_arg0"TotalBudgetRequests")inletbudgetSecondsRemaining=(Option.map~f:BudgetSecondsRemaining.of_xml)(Xml.childxml_arg0"BudgetSecondsRemaining")inlettotalBudgetSeconds=(Option.map~f:TotalBudgetSeconds.of_xml)(Xml.childxml_arg0"TotalBudgetSeconds")inletattainment=(Option.map~f:Attainment.of_xml)(Xml.childxml_arg0"Attainment")inletbudgetStatus=(Option.map~f:ServiceLevelObjectiveBudgetStatus.of_xml)(Xml.childxml_arg0"BudgetStatus")inletevaluationType=(Option.map~f:EvaluationType.of_xml)(Xml.childxml_arg0"EvaluationType")inletname=(Option.map~f:ServiceLevelObjectiveName.of_xml)(Xml.childxml_arg0"Name")inletarn=(Option.map~f:ServiceLevelObjectiveArn.of_xml)(Xml.childxml_arg0"Arn")inmake?goal?requestBasedSli?sli?budgetRequestsRemaining?totalBudgetRequests?budgetSecondsRemaining?totalBudgetSeconds?attainment?budgetStatus?evaluationType?name?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letgoal=field_mapjson__"Goal"Goal.of_jsoninletrequestBasedSli=field_mapjson__"RequestBasedSli"RequestBasedServiceLevelIndicator.of_jsoninletsli=field_mapjson__"Sli"ServiceLevelIndicator.of_jsoninletbudgetRequestsRemaining=field_mapjson__"BudgetRequestsRemaining"BudgetRequestsRemaining.of_jsoninlettotalBudgetRequests=field_mapjson__"TotalBudgetRequests"TotalBudgetRequests.of_jsoninletbudgetSecondsRemaining=field_mapjson__"BudgetSecondsRemaining"BudgetSecondsRemaining.of_jsoninlettotalBudgetSeconds=field_mapjson__"TotalBudgetSeconds"TotalBudgetSeconds.of_jsoninletattainment=field_mapjson__"Attainment"Attainment.of_jsoninletbudgetStatus=field_mapjson__"BudgetStatus"ServiceLevelObjectiveBudgetStatus.of_jsoninletevaluationType=field_mapjson__"EvaluationType"EvaluationType.of_jsoninletname=field_mapjson__"Name"ServiceLevelObjectiveName.of_jsoninletarn=field_mapjson__"Arn"ServiceLevelObjectiveArn.of_jsoninmake?goal?requestBasedSli?sli?budgetRequestsRemaining?totalBudgetRequests?budgetSecondsRemaining?totalBudgetSeconds?attainment?budgetStatus?evaluationType?name?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure containing an SLO budget report that you have requested."]moduleResourceNotFoundException=structtypenonrect={resourceType:ResourceType.toption[@ocaml.doc"The resource type is not valid."];resourceId:ResourceId.toption[@ocaml.doc"Can't find the resource id."];message:FaultDescription.toption}letmake?resourceType=fun?resourceId->fun?message->fun()->{resourceType;resourceId;message}letto_valuex=structure_to_value[("ResourceType",(Option.mapx.resourceType~f:ResourceType.to_value));("ResourceId",(Option.mapx.resourceId~f:ResourceId.to_value));("Message",(Option.mapx.message~f:FaultDescription.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:FaultDescription.of_xml)(Xml.childxml_arg0"Message")inletresourceId=(Option.map~f:ResourceId.of_xml)(Xml.childxml_arg0"ResourceId")inletresourceType=(Option.map~f:ResourceType.of_xml)(Xml.childxml_arg0"ResourceType")inmake?message?resourceId?resourceType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"FaultDescription.of_jsoninletresourceId=field_mapjson__"ResourceId"ResourceId.of_jsoninletresourceType=field_mapjson__"ResourceType"ResourceType.of_jsoninmake?message?resourceId?resourceType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Resource not found."]moduleServiceLevelObjective=structtypenonrect={arn:ServiceLevelObjectiveArn.toption[@ocaml.doc"The ARN of this SLO."];name:ServiceLevelObjectiveName.toption[@ocaml.doc"The name of this SLO."];description:ServiceLevelObjectiveDescription.toption[@ocaml.doc"The description that you created for this SLO."];createdTime:Timestamp.toption[@ocaml.doc"The date and time that this SLO was created. When used in a raw HTTP Query API, it is formatted as yyyy-MM-dd'T'HH:mm:ss. For example, 2019-07-01T23:59:59."];lastUpdatedTime:Timestamp.toption[@ocaml.doc"The time that this SLO was most recently updated. When used in a raw HTTP Query API, it is formatted as yyyy-MM-dd'T'HH:mm:ss. For example, 2019-07-01T23:59:59."];sli:ServiceLevelIndicator.toption[@ocaml.doc"A structure containing information about the performance metric that this SLO monitors, if this is a period-based SLO."];requestBasedSli:RequestBasedServiceLevelIndicator.toption[@ocaml.doc"A structure containing information about the performance metric that this SLO monitors, if this is a request-based SLO."];evaluationType:EvaluationType.toption[@ocaml.doc"Displays whether this is a period-based SLO or a request-based SLO."];goal:Goal.toption;burnRateConfigurations:BurnRateConfigurations.toption[@ocaml.doc"Each object in this array defines the length of the look-back window used to calculate one burn rate metric for this SLO. The burn rate measures how fast the service is consuming the error budget, relative to the attainment goal of the SLO."];metricSourceType:MetricSourceType.toption[@ocaml.doc"Displays the SLI metric source type for this SLO. Supported types are: Service operation Service dependency Service CloudWatch metric AppMonitor Canary"];autoInvestigationEnabled:Boolean.toption[@ocaml.doc"Indicates whether DevOps Agent will automatically investigate this SLO when it is breached"]}letmake?arn=fun?name->fun?description->fun?createdTime->fun?lastUpdatedTime->fun?sli->fun?requestBasedSli->fun?evaluationType->fun?goal->fun?burnRateConfigurations->fun?metricSourceType->fun?autoInvestigationEnabled->fun()->{arn;name;description;createdTime;lastUpdatedTime;sli;requestBasedSli;evaluationType;goal;burnRateConfigurations;metricSourceType;autoInvestigationEnabled}letto_valuex=structure_to_value[("Arn",(Option.mapx.arn~f:ServiceLevelObjectiveArn.to_value));("Name",(Option.mapx.name~f:ServiceLevelObjectiveName.to_value));("Description",(Option.mapx.description~f:ServiceLevelObjectiveDescription.to_value));("CreatedTime",(Option.mapx.createdTime~f:Timestamp.to_value));("LastUpdatedTime",(Option.mapx.lastUpdatedTime~f:Timestamp.to_value));("Sli",(Option.mapx.sli~f:ServiceLevelIndicator.to_value));("RequestBasedSli",(Option.mapx.requestBasedSli~f:RequestBasedServiceLevelIndicator.to_value));("EvaluationType",(Option.mapx.evaluationType~f:EvaluationType.to_value));("Goal",(Option.mapx.goal~f:Goal.to_value));("BurnRateConfigurations",(Option.mapx.burnRateConfigurations~f:BurnRateConfigurations.to_value));("MetricSourceType",(Option.mapx.metricSourceType~f:MetricSourceType.to_value));("AutoInvestigationEnabled",(Option.mapx.autoInvestigationEnabled~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letautoInvestigationEnabled=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"AutoInvestigationEnabled")inletmetricSourceType=(Option.map~f:MetricSourceType.of_xml)(Xml.childxml_arg0"MetricSourceType")inletburnRateConfigurations=(Option.map~f:BurnRateConfigurations.of_xml)(Xml.childxml_arg0"BurnRateConfigurations")inletgoal=(Option.map~f:Goal.of_xml)(Xml.childxml_arg0"Goal")inletevaluationType=(Option.map~f:EvaluationType.of_xml)(Xml.childxml_arg0"EvaluationType")inletrequestBasedSli=(Option.map~f:RequestBasedServiceLevelIndicator.of_xml)(Xml.childxml_arg0"RequestBasedSli")inletsli=(Option.map~f:ServiceLevelIndicator.of_xml)(Xml.childxml_arg0"Sli")inletlastUpdatedTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"LastUpdatedTime")inletcreatedTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"CreatedTime")inletdescription=(Option.map~f:ServiceLevelObjectiveDescription.of_xml)(Xml.childxml_arg0"Description")inletname=(Option.map~f:ServiceLevelObjectiveName.of_xml)(Xml.childxml_arg0"Name")inletarn=(Option.map~f:ServiceLevelObjectiveArn.of_xml)(Xml.childxml_arg0"Arn")inmake?autoInvestigationEnabled?metricSourceType?burnRateConfigurations?goal?evaluationType?requestBasedSli?sli?lastUpdatedTime?createdTime?description?name?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letautoInvestigationEnabled=field_mapjson__"AutoInvestigationEnabled"Boolean.of_jsoninletmetricSourceType=field_mapjson__"MetricSourceType"MetricSourceType.of_jsoninletburnRateConfigurations=field_mapjson__"BurnRateConfigurations"BurnRateConfigurations.of_jsoninletgoal=field_mapjson__"Goal"Goal.of_jsoninletevaluationType=field_mapjson__"EvaluationType"EvaluationType.of_jsoninletrequestBasedSli=field_mapjson__"RequestBasedSli"RequestBasedServiceLevelIndicator.of_jsoninletsli=field_mapjson__"Sli"ServiceLevelIndicator.of_jsoninletlastUpdatedTime=field_mapjson__"LastUpdatedTime"Timestamp.of_jsoninletcreatedTime=field_mapjson__"CreatedTime"Timestamp.of_jsoninletdescription=field_mapjson__"Description"ServiceLevelObjectiveDescription.of_jsoninletname=field_mapjson__"Name"ServiceLevelObjectiveName.of_jsoninletarn=field_mapjson__"Arn"ServiceLevelObjectiveArn.of_jsoninmake?autoInvestigationEnabled?metricSourceType?burnRateConfigurations?goal?evaluationType?requestBasedSli?sli?lastUpdatedTime?createdTime?description?name?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure containing information about one service level objective (SLO) that has been created in Application Signals. Creating SLOs can help you ensure your services are performing to the level that you expect. SLOs help you set and track a specific target level for the reliability and availability of your applications and services. Each SLO uses a service level indicator (SLI), which is a key performance metric, to calculate how much underperformance can be tolerated before the goal that you set for the SLO is not achieved."]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 throttled because of quota limits."]moduleValidationException=structtypenonrect={message:ValidationExceptionMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ValidationExceptionMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ValidationExceptionMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ValidationExceptionMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The resource is not valid."]moduleRequestBasedServiceLevelIndicatorConfig=structtypenonrect={requestBasedSliMetricConfig:RequestBasedServiceLevelIndicatorMetricConfig.t[@ocaml.doc"Use this structure to specify the metric to be used for the SLO."];metricThreshold:ServiceLevelIndicatorMetricThreshold.toption[@ocaml.doc"The value that the SLI metric is compared to. This parameter is required if this SLO is tracking the Latency metric."];comparisonOperator:ServiceLevelIndicatorComparisonOperator.toption[@ocaml.doc"The arithmetic operation to use when comparing the specified metric to the threshold. This parameter is required if this SLO is tracking the Latency metric."]}letcontext_="RequestBasedServiceLevelIndicatorConfig"letmake?metricThreshold=fun?comparisonOperator->fun~requestBasedSliMetricConfig->fun()->{metricThreshold;comparisonOperator;requestBasedSliMetricConfig}letto_valuex=structure_to_value[("RequestBasedSliMetricConfig",(Some(RequestBasedServiceLevelIndicatorMetricConfig.to_valuex.requestBasedSliMetricConfig)));("MetricThreshold",(Option.mapx.metricThreshold~f:ServiceLevelIndicatorMetricThreshold.to_value));("ComparisonOperator",(Option.mapx.comparisonOperator~f:ServiceLevelIndicatorComparisonOperator.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcomparisonOperator=(Option.map~f:ServiceLevelIndicatorComparisonOperator.of_xml)(Xml.childxml_arg0"ComparisonOperator")inletmetricThreshold=(Option.map~f:ServiceLevelIndicatorMetricThreshold.of_xml)(Xml.childxml_arg0"MetricThreshold")inletrequestBasedSliMetricConfig=RequestBasedServiceLevelIndicatorMetricConfig.of_xml(Xml.child_exn~context:context_xml_arg0"RequestBasedSliMetricConfig")inmake?comparisonOperator?metricThreshold~requestBasedSliMetricConfig()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcomparisonOperator=field_mapjson__"ComparisonOperator"ServiceLevelIndicatorComparisonOperator.of_jsoninletmetricThreshold=field_mapjson__"MetricThreshold"ServiceLevelIndicatorMetricThreshold.of_jsoninletrequestBasedSliMetricConfig=field_map_exnjson__"RequestBasedSliMetricConfig"RequestBasedServiceLevelIndicatorMetricConfig.of_jsoninmake?comparisonOperator?metricThreshold~requestBasedSliMetricConfig()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This structure specifies the information about the service and the performance metric that a request-based SLO is to monitor."]moduleServiceLevelIndicatorConfig=structtypenonrect={sliMetricConfig:ServiceLevelIndicatorMetricConfig.t[@ocaml.doc"Use this structure to specify the metric to be used for the SLO."];metricThreshold:ServiceLevelIndicatorMetricThreshold.toption[@ocaml.doc"This parameter is used only when a request-based SLO tracks the Latency metric. Specify the threshold value that the observed Latency metric values are to be compared to. This is not required if CreateRecommendedSlo is set to true."];comparisonOperator:ServiceLevelIndicatorComparisonOperator.toption[@ocaml.doc"The arithmetic operation to use when comparing the specified metric to the threshold. This is not required if CreateRecommendedSlo is set to true."]}letcontext_="ServiceLevelIndicatorConfig"letmake?metricThreshold=fun?comparisonOperator->fun~sliMetricConfig->fun()->{metricThreshold;comparisonOperator;sliMetricConfig}letto_valuex=structure_to_value[("SliMetricConfig",(Some(ServiceLevelIndicatorMetricConfig.to_valuex.sliMetricConfig)));("MetricThreshold",(Option.mapx.metricThreshold~f:ServiceLevelIndicatorMetricThreshold.to_value));("ComparisonOperator",(Option.mapx.comparisonOperator~f:ServiceLevelIndicatorComparisonOperator.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcomparisonOperator=(Option.map~f:ServiceLevelIndicatorComparisonOperator.of_xml)(Xml.childxml_arg0"ComparisonOperator")inletmetricThreshold=(Option.map~f:ServiceLevelIndicatorMetricThreshold.of_xml)(Xml.childxml_arg0"MetricThreshold")inletsliMetricConfig=ServiceLevelIndicatorMetricConfig.of_xml(Xml.child_exn~context:context_xml_arg0"SliMetricConfig")inmake?comparisonOperator?metricThreshold~sliMetricConfig()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcomparisonOperator=field_mapjson__"ComparisonOperator"ServiceLevelIndicatorComparisonOperator.of_jsoninletmetricThreshold=field_mapjson__"MetricThreshold"ServiceLevelIndicatorMetricThreshold.of_jsoninletsliMetricConfig=field_map_exnjson__"SliMetricConfig"ServiceLevelIndicatorMetricConfig.of_jsoninmake?comparisonOperator?metricThreshold~sliMetricConfig()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This structure specifies the information about the service and the performance metric that a period-based SLO is to monitor."]moduleAmazonResourceName=structtypenonrect=stringletcontext_="AmazonResourceName"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AmazonResourceName"jletto_json=simple_to_jsonto_valueendmoduleTagKeyList=structtypenonrect=TagKey.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:200)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TagKey.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:TagKey.of_xml)letof_jsonj=list_of_json~kind:"TagKeyList"~of_json:TagKey.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleServiceQuotaExceededException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This request exceeds a service quota."]moduleTagList=structtypenonrect=Tag.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:200)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Tag.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:Tag.of_xml)letof_jsonj=list_of_json~kind:"TagList"~of_json:Tag.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAccessDeniedException=structtypenonrect={message:ServiceErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:ServiceErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ServiceErrorMessage.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"ServiceErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You don't have sufficient permissions to perform this action."]moduleGroupingConfiguration=structtypenonrect={groupingAttributeDefinitions:GroupingAttributeDefinitions.toption[@ocaml.doc"An array of grouping attribute definitions that specify how services should be grouped based on various attributes and source keys."];updatedAt:Timestamp.toption[@ocaml.doc"The timestamp when this grouping configuration was last updated. When used in a raw HTTP Query API, it is formatted as epoch time in seconds."]}letmake?groupingAttributeDefinitions=fun?updatedAt->fun()->{groupingAttributeDefinitions;updatedAt}letto_valuex=structure_to_value[("GroupingAttributeDefinitions",(Option.mapx.groupingAttributeDefinitions~f:GroupingAttributeDefinitions.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")inletgroupingAttributeDefinitions=(Option.map~f:GroupingAttributeDefinitions.of_xml)(Xml.childxml_arg0"GroupingAttributeDefinitions")inmake?updatedAt?groupingAttributeDefinitions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letupdatedAt=field_mapjson__"UpdatedAt"Timestamp.of_jsoninletgroupingAttributeDefinitions=field_mapjson__"GroupingAttributeDefinitions"GroupingAttributeDefinitions.of_jsoninmake?updatedAt?groupingAttributeDefinitions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A structure that contains the complete grouping configuration for an account, including all defined grouping attributes and metadata about when it was last updated."]moduleNextToken=structtypenonrect=stringletcontext_="NextToken"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:"NextToken"jletto_json=simple_to_jsonto_valueendmoduleServiceSummaries=structtypenonrect=ServiceSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ServiceSummary.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:ServiceSummary.of_xml)letof_jsonj=list_of_json~kind:"ServiceSummaries"~of_json:ServiceSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListServicesMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ListServicesMaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleServiceStates=structtypenonrect=ServiceState.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:250)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ServiceState.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:ServiceState.of_xml)letof_jsonj=list_of_json~kind:"ServiceStates"~of_json:ServiceState.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListServiceStatesMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith(check_int_maxi~max:250);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 ListServiceStatesMaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleServiceOperations=structtypenonrect=ServiceOperation.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:100)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ServiceOperation.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:ServiceOperation.of_xml)letof_jsonj=list_of_json~kind:"ServiceOperations"~of_json:ServiceOperation.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListServiceOperationMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ListServiceOperationMaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleServiceLevelObjectiveSummaries=structtypenonrect=ServiceLevelObjectiveSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ServiceLevelObjectiveSummary.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:ServiceLevelObjectiveSummary.of_xml)letof_jsonj=list_of_json~kind:"ServiceLevelObjectiveSummaries"~of_json:ServiceLevelObjectiveSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListServiceLevelObjectivesMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:50)>>=(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 ListServiceLevelObjectivesMaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleMetricSourceTypes=structtypenonrect=MetricSourceType.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:3)>>=(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:MetricSourceType.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:MetricSourceType.of_xml)letof_jsonj=list_of_json~kind:"MetricSourceTypes"~of_json:MetricSourceType.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleExclusionWindows=structtypenonrect=ExclusionWindow.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:10)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ExclusionWindow.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:ExclusionWindow.of_xml)letof_jsonj=list_of_json~kind:"ExclusionWindows"~of_json:ExclusionWindow.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListServiceLevelObjectiveExclusionWindowsMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:10)>>=(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 ListServiceLevelObjectiveExclusionWindowsMaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleServiceDependents=structtypenonrect=ServiceDependent.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:100)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ServiceDependent.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:ServiceDependent.of_xml)letof_jsonj=list_of_json~kind:"ServiceDependents"~of_json:ServiceDependent.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListServiceDependentsMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ListServiceDependentsMaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleServiceDependencies=structtypenonrect=ServiceDependency.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:100)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ServiceDependency.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:ServiceDependency.of_xml)letof_jsonj=list_of_json~kind:"ServiceDependencies"~of_json:ServiceDependency.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListServiceDependenciesMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ListServiceDependenciesMaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleChangeEvents=structtypenonrect=ChangeEvent.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:250)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ChangeEvent.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:ChangeEvent.of_xml)letof_jsonj=list_of_json~kind:"ChangeEvents"~of_json:ChangeEvent.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListEntityEventsMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:250)>>=(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 ListEntityEventsMaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleAuditFindings=structtypenonrect=AuditFinding.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:10)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AuditFinding.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:AuditFinding.of_xml)letof_jsonj=list_of_json~kind:"AuditFindings"~of_json:AuditFinding.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAuditTargets=structtypenonrect=AuditTarget.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:10)>>=(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:AuditTarget.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:AuditTarget.of_xml)letof_jsonj=list_of_json~kind:"AuditTargets"~of_json:AuditTarget.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAuditors=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:"Auditors"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDetailLevel=structtypenonrect=|BRIEF|DETAILED|Non_static_idofstringletmakei=iletto_string=function|BRIEF->"BRIEF"|DETAILED->"DETAILED"|Non_static_ids->sletof_string=function|"BRIEF"->BRIEF|"DETAILED"->DETAILED|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 DetailLevel"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DetailLevel"j)letto_json=simple_to_jsonto_valueendmoduleListAuditFindingMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:10)>>=(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 ListAuditFindingMaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleService=structtypenonrect={keyAttributes:Attributes.toption[@ocaml.doc"This is a string-to-string map. It can include the following fields. Type designates the type of object this is. ResourceType specifies the type of the resource. This field is used only when the value of the Type field is Resource or AWS::Resource. Name specifies the name of the object. This is used only if the value of the Type field is Service, RemoteService, or AWS::Service. Identifier identifies the resource objects of this resource. This is used only if the value of the Type field is Resource or AWS::Resource. Environment specifies the location where this object is hosted, or what it belongs to."];attributeMaps:AttributeMaps.toption[@ocaml.doc"This structure contains one or more string-to-string maps that help identify this service. It can include platform attributes, application attributes, and telemetry attributes. Platform attributes contain information the service's platform. PlatformType defines the hosted-in platform. EKS.Cluster is the name of the Amazon EKS cluster. K8s.Cluster is the name of the self-hosted Kubernetes cluster. K8s.Namespace is the name of the Kubernetes namespace in either Amazon EKS or Kubernetes clusters. K8s.Workload is the name of the Kubernetes workload in either Amazon EKS or Kubernetes clusters. K8s.Node is the name of the Kubernetes node in either Amazon EKS or Kubernetes clusters. K8s.Pod is the name of the Kubernetes pod in either Amazon EKS or Kubernetes clusters. EC2.AutoScalingGroup is the name of the Amazon EC2 Auto Scaling group. EC2.InstanceId is the ID of the Amazon EC2 instance. Host is the name of the host, for all platform types. Application attributes contain information about the application. AWS.Application is the application's name in Amazon Web Services Service Catalog AppRegistry. AWS.Application.ARN is the application's ARN in Amazon Web Services Service Catalog AppRegistry. Telemetry attributes contain telemetry information. Telemetry.SDK is the fingerprint of the OpenTelemetry SDK version for instrumented services. Telemetry.Agent is the fingerprint of the agent used to collect and send telemetry data. Telemetry.Source Specifies the point of application where the telemetry was collected or specifies what was used for the source of telemetry data."];serviceGroups:ServiceGroups.toption[@ocaml.doc"An array of service groups that this service belongs to, based on the configured grouping attributes."];metricReferences:MetricReferences.toption[@ocaml.doc"An array of structures that each contain information about one metric associated with this service."];logGroupReferences:LogGroupReferences.toption[@ocaml.doc"An array of string-to-string maps that each contain information about one log group associated with this service. Each string-to-string map includes the following fields: \"Type\": \"AWS::Resource\" \"ResourceType\": \"AWS::Logs::LogGroup\" \"Identifier\": \"name-of-log-group\""]}letmake?keyAttributes=fun?attributeMaps->fun?serviceGroups->fun?metricReferences->fun?logGroupReferences->fun()->{keyAttributes;attributeMaps;serviceGroups;metricReferences;logGroupReferences}letto_valuex=structure_to_value[("KeyAttributes",(Option.mapx.keyAttributes~f:Attributes.to_value));("AttributeMaps",(Option.mapx.attributeMaps~f:AttributeMaps.to_value));("ServiceGroups",(Option.mapx.serviceGroups~f:ServiceGroups.to_value));("MetricReferences",(Option.mapx.metricReferences~f:MetricReferences.to_value));("LogGroupReferences",(Option.mapx.logGroupReferences~f:LogGroupReferences.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlogGroupReferences=(Option.map~f:LogGroupReferences.of_xml)(Xml.childxml_arg0"LogGroupReferences")inletmetricReferences=(Option.map~f:MetricReferences.of_xml)(Xml.childxml_arg0"MetricReferences")inletserviceGroups=(Option.map~f:ServiceGroups.of_xml)(Xml.childxml_arg0"ServiceGroups")inletattributeMaps=(Option.map~f:AttributeMaps.of_xml)(Xml.childxml_arg0"AttributeMaps")inletkeyAttributes=(Option.map~f:Attributes.of_xml)(Xml.childxml_arg0"KeyAttributes")inmake?logGroupReferences?metricReferences?serviceGroups?attributeMaps?keyAttributes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlogGroupReferences=field_mapjson__"LogGroupReferences"LogGroupReferences.of_jsoninletmetricReferences=field_mapjson__"MetricReferences"MetricReferences.of_jsoninletserviceGroups=field_mapjson__"ServiceGroups"ServiceGroups.of_jsoninletattributeMaps=field_mapjson__"AttributeMaps"AttributeMaps.of_jsoninletkeyAttributes=field_mapjson__"KeyAttributes"Attributes.of_jsoninmake?logGroupReferences?metricReferences?serviceGroups?attributeMaps?keyAttributes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This structure contains information about one of your services that was discovered by Application Signals."]moduleConflictException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This operation attempted to create a resource that already exists."]moduleBatchUpdateExclusionWindowsErrors=structtypenonrect=BatchUpdateExclusionWindowsError.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:10)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:BatchUpdateExclusionWindowsError.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:BatchUpdateExclusionWindowsError.of_xml)letof_jsonj=list_of_json~kind:"BatchUpdateExclusionWindowsErrors"~of_json:BatchUpdateExclusionWindowsError.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleServiceLevelObjectiveIds=structtypenonrect=String_.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: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:"ServiceLevelObjectiveIds"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleServiceLevelObjectiveBudgetReportErrors=structtypenonrect=ServiceLevelObjectiveBudgetReportError.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ServiceLevelObjectiveBudgetReportError.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:ServiceLevelObjectiveBudgetReportError.of_xml)letof_jsonj=list_of_json~kind:"ServiceLevelObjectiveBudgetReportErrors"~of_json:ServiceLevelObjectiveBudgetReportError.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleServiceLevelObjectiveBudgetReports=structtypenonrect=ServiceLevelObjectiveBudgetReport.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ServiceLevelObjectiveBudgetReport.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:ServiceLevelObjectiveBudgetReport.of_xml)letof_jsonj=list_of_json~kind:"ServiceLevelObjectiveBudgetReports"~of_json:ServiceLevelObjectiveBudgetReport.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUpdateServiceLevelObjectiveOutput=structtypenonrect={slo:ServiceLevelObjective.toption[@ocaml.doc"A structure that contains information about the SLO that you just updated."]}typenonrecerror=[`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?slo=fun()->{slo}leterror_of_jsonnamejson=matchnamewith|"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|"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|`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[("Slo",(Option.mapx.slo~f:ServiceLevelObjective.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letslo=(Option.map~f:ServiceLevelObjective.of_xml)(Xml.childxml_arg0"Slo")inmake?slo()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letslo=field_mapjson__"Slo"ServiceLevelObjective.of_jsoninmake?slo()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates an existing service level objective (SLO). If you omit parameters, the previous values of those parameters are retained. You cannot change from a period-based SLO to a request-based SLO, or change from a request-based SLO to a period-based SLO."]moduleUpdateServiceLevelObjectiveInput=structtypenonrect={id:ServiceLevelObjectiveId.t[@ocaml.doc"The Amazon Resource Name (ARN) or name of the service level objective that you want to update."];description:ServiceLevelObjectiveDescription.toption[@ocaml.doc"An optional description for the SLO."];sliConfig:ServiceLevelIndicatorConfig.toption[@ocaml.doc"If this SLO is a period-based SLO, this structure defines the information about what performance metric this SLO will monitor."];requestBasedSliConfig:RequestBasedServiceLevelIndicatorConfig.toption[@ocaml.doc"If this SLO is a request-based SLO, this structure defines the information about what performance metric this SLO will monitor. You can't specify both SliConfig and RequestBasedSliConfig in the same operation."];goal:Goal.toption[@ocaml.doc"A structure that contains the attributes that determine the goal of the SLO. This includes the time period for evaluation and the attainment threshold."];burnRateConfigurations:BurnRateConfigurations.toption[@ocaml.doc"Use this array to create burn rates for this SLO. Each burn rate is a metric that indicates how fast the service is consuming the error budget, relative to the attainment goal of the SLO."];autoInvestigationEnabled:Boolean.toption[@ocaml.doc"Indicates whether DevOps Agent will automatically investigate this SLO when it is breached"]}letcontext_="UpdateServiceLevelObjectiveInput"letmake?description=fun?sliConfig->fun?requestBasedSliConfig->fun?goal->fun?burnRateConfigurations->fun?autoInvestigationEnabled->fun~id->fun()->{description;sliConfig;requestBasedSliConfig;goal;burnRateConfigurations;autoInvestigationEnabled;id}letto_valuex=structure_to_value[("Id",(Some(ServiceLevelObjectiveId.to_valuex.id)));("Description",(Option.mapx.description~f:ServiceLevelObjectiveDescription.to_value));("SliConfig",(Option.mapx.sliConfig~f:ServiceLevelIndicatorConfig.to_value));("RequestBasedSliConfig",(Option.mapx.requestBasedSliConfig~f:RequestBasedServiceLevelIndicatorConfig.to_value));("Goal",(Option.mapx.goal~f:Goal.to_value));("BurnRateConfigurations",(Option.mapx.burnRateConfigurations~f:BurnRateConfigurations.to_value));("AutoInvestigationEnabled",(Option.mapx.autoInvestigationEnabled~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letautoInvestigationEnabled=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"AutoInvestigationEnabled")inletburnRateConfigurations=(Option.map~f:BurnRateConfigurations.of_xml)(Xml.childxml_arg0"BurnRateConfigurations")inletgoal=(Option.map~f:Goal.of_xml)(Xml.childxml_arg0"Goal")inletrequestBasedSliConfig=(Option.map~f:RequestBasedServiceLevelIndicatorConfig.of_xml)(Xml.childxml_arg0"RequestBasedSliConfig")inletsliConfig=(Option.map~f:ServiceLevelIndicatorConfig.of_xml)(Xml.childxml_arg0"SliConfig")inletdescription=(Option.map~f:ServiceLevelObjectiveDescription.of_xml)(Xml.childxml_arg0"Description")inletid=ServiceLevelObjectiveId.of_xml(Xml.child_exn~context:context_xml_arg0"Id")inmake?autoInvestigationEnabled?burnRateConfigurations?goal?requestBasedSliConfig?sliConfig?description~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letautoInvestigationEnabled=field_mapjson__"AutoInvestigationEnabled"Boolean.of_jsoninletburnRateConfigurations=field_mapjson__"BurnRateConfigurations"BurnRateConfigurations.of_jsoninletgoal=field_mapjson__"Goal"Goal.of_jsoninletrequestBasedSliConfig=field_mapjson__"RequestBasedSliConfig"RequestBasedServiceLevelIndicatorConfig.of_jsoninletsliConfig=field_mapjson__"SliConfig"ServiceLevelIndicatorConfig.of_jsoninletdescription=field_mapjson__"Description"ServiceLevelObjectiveDescription.of_jsoninletid=field_map_exnjson__"Id"ServiceLevelObjectiveId.of_jsoninmake?autoInvestigationEnabled?burnRateConfigurations?goal?requestBasedSliConfig?sliConfig?description~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates an existing service level objective (SLO). If you omit parameters, the previous values of those parameters are retained. You cannot change from a period-based SLO to a request-based SLO, or change from a request-based SLO to a period-based SLO."]moduleUntagResourceResponse=structtypenonrect=unittypenonrecerror=[`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"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|`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))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes one or more tags from the specified resource."]moduleUntagResourceRequest=structtypenonrect={resourceArn:AmazonResourceName.t[@ocaml.doc"The Amazon Resource Name (ARN) of the CloudWatch resource that you want to delete tags from. The ARN format of an Application Signals SLO is arn:aws:cloudwatch:Region:account-id:slo:slo-name For more information about ARN format, see Resource Types Defined by Amazon CloudWatch in the Amazon Web Services General Reference."];tagKeys:TagKeyList.t[@ocaml.doc"The list of tag keys to remove from the resource."]}letcontext_="UntagResourceRequest"letmake~resourceArn=fun~tagKeys->fun()->{resourceArn;tagKeys}letto_valuex=structure_to_value[("ResourceArn",(Some(AmazonResourceName.to_valuex.resourceArn)));("TagKeys",(Some(TagKeyList.to_valuex.tagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagKeys=TagKeyList.of_xml(Xml.child_exn~context:context_xml_arg0"TagKeys")inletresourceArn=AmazonResourceName.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceArn")inmake~tagKeys~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagKeys=field_map_exnjson__"TagKeys"TagKeyList.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"AmazonResourceName.of_jsoninmake~tagKeys~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes one or more tags from the specified resource."]moduleTagResourceResponse=structtypenonrect=unittypenonrecerror=[`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.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|`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))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Assigns one or more tags (key-value pairs) to the specified CloudWatch resource, such as a service level objective. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values. Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters. You can use the TagResource action with an alarm that already has tags. If you specify a new tag key for the alarm, this tag is appended to the list of tags associated with the alarm. If you specify a tag key that is already associated with the alarm, the new tag value that you specify replaces the previous value for that tag. You can associate as many as 50 tags with a CloudWatch resource."]moduleTagResourceRequest=structtypenonrect={resourceArn:AmazonResourceName.t[@ocaml.doc"The Amazon Resource Name (ARN) of the CloudWatch resource that you want to set tags for. The ARN format of an Application Signals SLO is arn:aws:cloudwatch:Region:account-id:slo:slo-name For more information about ARN format, see Resource Types Defined by Amazon CloudWatch in the Amazon Web Services General Reference."];tags:TagList.t[@ocaml.doc"The list of key-value pairs to associate with the alarm."]}letcontext_="TagResourceRequest"letmake~resourceArn=fun~tags->fun()->{resourceArn;tags}letto_valuex=structure_to_value[("ResourceArn",(Some(AmazonResourceName.to_valuex.resourceArn)));("Tags",(Some(TagList.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=TagList.of_xml(Xml.child_exn~context:context_xml_arg0"Tags")inletresourceArn=AmazonResourceName.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"TagList.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"AmazonResourceName.of_jsoninmake~tags~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Assigns one or more tags (key-value pairs) to the specified CloudWatch resource, such as a service level objective. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values. Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters. You can use the TagResource action with an alarm that already has tags. If you specify a new tag key for the alarm, this tag is appended to the list of tags associated with the alarm. If you specify a tag key that is already associated with the alarm, the new tag value that you specify replaces the previous value for that tag. You can associate as many as 50 tags with a CloudWatch resource."]moduleStartDiscoveryOutput=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`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"Enables this Amazon Web Services account to be able to use CloudWatch Application Signals by creating the AWSServiceRoleForCloudWatchApplicationSignals service-linked role. This service- linked role has the following permissions: xray:GetServiceGraph logs:StartQuery logs:GetQueryResults cloudwatch:GetMetricData cloudwatch:ListMetrics tag:GetResources autoscaling:DescribeAutoScalingGroups A service-linked CloudTrail event channel is created to process CloudTrail events and return change event information. This includes last deployment time, userName, eventName, and other event metadata. After completing this step, you still need to instrument your Java and Python applications to send data to Application Signals. For more information, see Enabling Application Signals."]moduleStartDiscoveryInput=structtypenonrect=unitletmake()=()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"Enables this Amazon Web Services account to be able to use CloudWatch Application Signals by creating the AWSServiceRoleForCloudWatchApplicationSignals service-linked role. This service- linked role has the following permissions: xray:GetServiceGraph logs:StartQuery logs:GetQueryResults cloudwatch:GetMetricData cloudwatch:ListMetrics tag:GetResources autoscaling:DescribeAutoScalingGroups A service-linked CloudTrail event channel is created to process CloudTrail events and return change event information. This includes last deployment time, userName, eventName, and other event metadata. After completing this step, you still need to instrument your Java and Python applications to send data to Application Signals. For more information, see Enabling Application Signals."]modulePutGroupingConfigurationOutput=structtypenonrect={groupingConfiguration:GroupingConfiguration.toption[@ocaml.doc"A structure containing the updated grouping configuration, including all grouping attribute definitions and the timestamp when it was last updated."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?groupingConfiguration=fun()->{groupingConfiguration}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`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[("GroupingConfiguration",(Option.mapx.groupingConfiguration~f:GroupingConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letgroupingConfiguration=(Option.map~f:GroupingConfiguration.of_xml)(Xml.childxml_arg0"GroupingConfiguration")inmake?groupingConfiguration()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letgroupingConfiguration=field_mapjson__"GroupingConfiguration"GroupingConfiguration.of_jsoninmake?groupingConfiguration()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates or updates the grouping configuration for this account. This operation allows you to define custom grouping attributes that determine how services are logically grouped based on telemetry attributes, Amazon Web Services tags, or predefined mappings. These grouping attributes can then be used to organize and filter services in the Application Signals console and APIs."]modulePutGroupingConfigurationInput=structtypenonrect={groupingAttributeDefinitions:GroupingAttributeDefinitions.t[@ocaml.doc"An array of grouping attribute definitions that specify how services should be grouped. Each definition includes a friendly name, source keys to derive the grouping value from, and an optional default value."]}letcontext_="PutGroupingConfigurationInput"letmake~groupingAttributeDefinitions=fun()->{groupingAttributeDefinitions}letto_valuex=structure_to_value[("GroupingAttributeDefinitions",(Some(GroupingAttributeDefinitions.to_valuex.groupingAttributeDefinitions)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letgroupingAttributeDefinitions=GroupingAttributeDefinitions.of_xml(Xml.child_exn~context:context_xml_arg0"GroupingAttributeDefinitions")inmake~groupingAttributeDefinitions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letgroupingAttributeDefinitions=field_map_exnjson__"GroupingAttributeDefinitions"GroupingAttributeDefinitions.of_jsoninmake~groupingAttributeDefinitions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates or updates the grouping configuration for this account. This operation allows you to define custom grouping attributes that determine how services are logically grouped based on telemetry attributes, Amazon Web Services tags, or predefined mappings. These grouping attributes can then be used to organize and filter services in the Application Signals console and APIs."]moduleListTagsForResourceResponse=structtypenonrect={tags:TagList.toption[@ocaml.doc"The list of tag keys and values associated with the resource you specified."]}typenonrecerror=[`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun()->{tags}leterror_of_jsonnamejson=matchnamewith|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"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|`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[("Tags",(Option.mapx.tags~f:TagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inmake?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagList.of_jsoninmake?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Displays the tags associated with a CloudWatch resource. Tags can be assigned to service level objectives."]moduleListTagsForResourceRequest=structtypenonrect={resourceArn:AmazonResourceName.t[@ocaml.doc"The Amazon Resource Name (ARN) of the CloudWatch resource that you want to view tags for. The ARN format of an Application Signals SLO is arn:aws:cloudwatch:Region:account-id:slo:slo-name For more information about ARN format, see Resource Types Defined by Amazon CloudWatch in the Amazon Web Services General Reference."]}letcontext_="ListTagsForResourceRequest"letmake~resourceArn=fun()->{resourceArn}letto_valuex=structure_to_value[("ResourceArn",(Some(AmazonResourceName.to_valuex.resourceArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=AmazonResourceName.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"AmazonResourceName.of_jsoninmake~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Displays the tags associated with a CloudWatch resource. Tags can be assigned to service level objectives."]moduleListServicesOutput=structtypenonrect={startTime:Timestamp.toption[@ocaml.doc"The start of the time period that the returned information applies to. When used in a raw HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 This displays the time that Application Signals used for the request. It might not match your request exactly, because it was rounded to the nearest hour."];endTime:Timestamp.toption[@ocaml.doc"The end of the time period that the returned information applies to. When used in a raw HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 This displays the time that Application Signals used for the request. It might not match your request exactly, because it was rounded to the nearest hour."];serviceSummaries:ServiceSummaries.toption[@ocaml.doc"An array of structures, where each structure contains some information about a service. To get complete information about a service, use GetService."];nextToken:NextToken.toption[@ocaml.doc"Include this value in your next use of this API to get next set of services."]}typenonrecerror=[`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?startTime=fun?endTime->fun?serviceSummaries->fun?nextToken->fun()->{startTime;endTime;serviceSummaries;nextToken}leterror_of_jsonnamejson=matchnamewith|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"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|`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[("StartTime",(Option.mapx.startTime~f:Timestamp.to_value));("EndTime",(Option.mapx.endTime~f:Timestamp.to_value));("ServiceSummaries",(Option.mapx.serviceSummaries~f:ServiceSummaries.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletserviceSummaries=(Option.map~f:ServiceSummaries.of_xml)(Xml.childxml_arg0"ServiceSummaries")inletendTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"EndTime")inletstartTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"StartTime")inmake?nextToken?serviceSummaries?endTime?startTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletserviceSummaries=field_mapjson__"ServiceSummaries"ServiceSummaries.of_jsoninletendTime=field_mapjson__"EndTime"Timestamp.of_jsoninletstartTime=field_mapjson__"StartTime"Timestamp.of_jsoninmake?nextToken?serviceSummaries?endTime?startTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of services that have been discovered by Application Signals. A service represents a minimum logical and transactional unit that completes a business function. Services are discovered through Application Signals instrumentation."]moduleListServicesInput=structtypenonrect={startTime:Timestamp.t[@ocaml.doc"The start of the time period to retrieve information about. When used in a raw HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 Your requested start time will be rounded to the nearest hour."];endTime:Timestamp.t[@ocaml.doc"The end of the time period to retrieve information about. When used in a raw HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 Your requested start time will be rounded to the nearest hour."];maxResults:ListServicesMaxResults.toption[@ocaml.doc"The maximum number of results to return in one operation. If you omit this parameter, the default of 50 is used."];nextToken:NextToken.toption[@ocaml.doc"Include this value, if it was returned by the previous operation, to get the next set of services."];includeLinkedAccounts:Boolean.toption[@ocaml.doc"If you are using this operation in a monitoring account, specify true to include services from source accounts in the returned data."];awsAccountId:AwsAccountId.toption[@ocaml.doc"Amazon Web Services Account ID."]}letcontext_="ListServicesInput"letmake?maxResults=fun?nextToken->fun?includeLinkedAccounts->fun?awsAccountId->fun~startTime->fun~endTime->fun()->{maxResults;nextToken;includeLinkedAccounts;awsAccountId;startTime;endTime}letto_valuex=structure_to_value[("StartTime",(Some(Timestamp.to_valuex.startTime)));("EndTime",(Some(Timestamp.to_valuex.endTime)));("MaxResults",(Option.mapx.maxResults~f:ListServicesMaxResults.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value));("IncludeLinkedAccounts",(Option.mapx.includeLinkedAccounts~f:Boolean.to_value));("AwsAccountId",(Option.mapx.awsAccountId~f:AwsAccountId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letawsAccountId=(Option.map~f:AwsAccountId.of_xml)(Xml.childxml_arg0"AwsAccountId")inletincludeLinkedAccounts=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"IncludeLinkedAccounts")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:ListServicesMaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletendTime=Timestamp.of_xml(Xml.child_exn~context:context_xml_arg0"EndTime")inletstartTime=Timestamp.of_xml(Xml.child_exn~context:context_xml_arg0"StartTime")inmake?awsAccountId?includeLinkedAccounts?nextToken?maxResults~endTime~startTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letawsAccountId=field_mapjson__"AwsAccountId"AwsAccountId.of_jsoninletincludeLinkedAccounts=field_mapjson__"IncludeLinkedAccounts"Boolean.of_jsoninletnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"MaxResults"ListServicesMaxResults.of_jsoninletendTime=field_map_exnjson__"EndTime"Timestamp.of_jsoninletstartTime=field_map_exnjson__"StartTime"Timestamp.of_jsoninmake?awsAccountId?includeLinkedAccounts?nextToken?maxResults~endTime~startTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of services that have been discovered by Application Signals. A service represents a minimum logical and transactional unit that completes a business function. Services are discovered through Application Signals instrumentation."]moduleListServiceStatesOutput=structtypenonrect={startTime:Timestamp.toption[@ocaml.doc"The start of the time period that the returned information applies to. When used in a raw HTTP Query API, it is formatted as epoch time in seconds. For example, 1698778057."];endTime:Timestamp.toption[@ocaml.doc"The end of the time period that the returned information applies to. When used in a raw HTTP Query API, it is formatted as epoch time in seconds. For example, 1698778057."];serviceStates:ServiceStates.toption[@ocaml.doc"An array of structures, where each structure contains information about the state of one service, including its latest change events such as deployments."];nextToken:NextToken.toption[@ocaml.doc"Include this value in your next use of this API to get the next set of service states."]}typenonrecerror=[`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?startTime=fun?endTime->fun?serviceStates->fun?nextToken->fun()->{startTime;endTime;serviceStates;nextToken}leterror_of_jsonnamejson=matchnamewith|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"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|`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[("StartTime",(Option.mapx.startTime~f:Timestamp.to_value));("EndTime",(Option.mapx.endTime~f:Timestamp.to_value));("ServiceStates",(Option.mapx.serviceStates~f:ServiceStates.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletserviceStates=(Option.map~f:ServiceStates.of_xml)(Xml.childxml_arg0"ServiceStates")inletendTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"EndTime")inletstartTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"StartTime")inmake?nextToken?serviceStates?endTime?startTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletserviceStates=field_mapjson__"ServiceStates"ServiceStates.of_jsoninletendTime=field_mapjson__"EndTime"Timestamp.of_jsoninletstartTime=field_mapjson__"StartTime"Timestamp.of_jsoninmake?nextToken?serviceStates?endTime?startTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns information about the last deployment and other change states of services. This API provides visibility into recent changes that may have affected service performance, helping with troubleshooting and change correlation."]moduleListServiceStatesInput=structtypenonrect={startTime:Timestamp.t[@ocaml.doc"The start of the time period to retrieve service state information for. When used in a raw HTTP Query API, it is formatted as epoch time in seconds. For example, 1698778057."];endTime:Timestamp.t[@ocaml.doc"The end of the time period to retrieve service state information for. When used in a raw HTTP Query API, it is formatted as epoch time in seconds. For example, 1698778057."];maxResults:ListServiceStatesMaxResults.toption[@ocaml.doc"The maximum number of service states to return in one operation. If you omit this parameter, the default of 20 is used."];nextToken:NextToken.toption[@ocaml.doc"Include this value, if it was returned by the previous operation, to get the next set of service states."];includeLinkedAccounts:Boolean.toption[@ocaml.doc"If you are using this operation in a monitoring account, specify true to include service states from source accounts in the returned data."];awsAccountId:AwsAccountId.toption[@ocaml.doc"The Amazon Web Services account ID to filter service states by. Use this to limit results to services from a specific account."];attributeFilters:AttributeFilters.toption[@ocaml.doc"A list of attribute filters to narrow down the services. You can filter by platform, environment, or other service attributes."]}letcontext_="ListServiceStatesInput"letmake?maxResults=fun?nextToken->fun?includeLinkedAccounts->fun?awsAccountId->fun?attributeFilters->fun~startTime->fun~endTime->fun()->{maxResults;nextToken;includeLinkedAccounts;awsAccountId;attributeFilters;startTime;endTime}letto_valuex=structure_to_value[("StartTime",(Some(Timestamp.to_valuex.startTime)));("EndTime",(Some(Timestamp.to_valuex.endTime)));("MaxResults",(Option.mapx.maxResults~f:ListServiceStatesMaxResults.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value));("IncludeLinkedAccounts",(Option.mapx.includeLinkedAccounts~f:Boolean.to_value));("AwsAccountId",(Option.mapx.awsAccountId~f:AwsAccountId.to_value));("AttributeFilters",(Option.mapx.attributeFilters~f:AttributeFilters.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattributeFilters=(Option.map~f:AttributeFilters.of_xml)(Xml.childxml_arg0"AttributeFilters")inletawsAccountId=(Option.map~f:AwsAccountId.of_xml)(Xml.childxml_arg0"AwsAccountId")inletincludeLinkedAccounts=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"IncludeLinkedAccounts")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:ListServiceStatesMaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletendTime=Timestamp.of_xml(Xml.child_exn~context:context_xml_arg0"EndTime")inletstartTime=Timestamp.of_xml(Xml.child_exn~context:context_xml_arg0"StartTime")inmake?attributeFilters?awsAccountId?includeLinkedAccounts?nextToken?maxResults~endTime~startTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattributeFilters=field_mapjson__"AttributeFilters"AttributeFilters.of_jsoninletawsAccountId=field_mapjson__"AwsAccountId"AwsAccountId.of_jsoninletincludeLinkedAccounts=field_mapjson__"IncludeLinkedAccounts"Boolean.of_jsoninletnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"MaxResults"ListServiceStatesMaxResults.of_jsoninletendTime=field_map_exnjson__"EndTime"Timestamp.of_jsoninletstartTime=field_map_exnjson__"StartTime"Timestamp.of_jsoninmake?attributeFilters?awsAccountId?includeLinkedAccounts?nextToken?maxResults~endTime~startTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns information about the last deployment and other change states of services. This API provides visibility into recent changes that may have affected service performance, helping with troubleshooting and change correlation."]moduleListServiceOperationsOutput=structtypenonrect={startTime:Timestamp.toption[@ocaml.doc"The start of the time period that the returned information applies to. When used in a raw HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 This displays the time that Application Signals used for the request. It might not match your request exactly, because it was rounded to the nearest hour."];endTime:Timestamp.toption[@ocaml.doc"The end of the time period that the returned information applies to. When used in a raw HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 This displays the time that Application Signals used for the request. It might not match your request exactly, because it was rounded to the nearest hour."];serviceOperations:ServiceOperations.toption[@ocaml.doc"An array of structures that each contain information about one operation of this service."];nextToken:NextToken.toption[@ocaml.doc"Include this value in your next use of this API to get next set of service operations."]}typenonrecerror=[`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?startTime=fun?endTime->fun?serviceOperations->fun?nextToken->fun()->{startTime;endTime;serviceOperations;nextToken}leterror_of_jsonnamejson=matchnamewith|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"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|`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[("StartTime",(Option.mapx.startTime~f:Timestamp.to_value));("EndTime",(Option.mapx.endTime~f:Timestamp.to_value));("ServiceOperations",(Option.mapx.serviceOperations~f:ServiceOperations.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletserviceOperations=(Option.map~f:ServiceOperations.of_xml)(Xml.childxml_arg0"ServiceOperations")inletendTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"EndTime")inletstartTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"StartTime")inmake?nextToken?serviceOperations?endTime?startTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletserviceOperations=field_mapjson__"ServiceOperations"ServiceOperations.of_jsoninletendTime=field_mapjson__"EndTime"Timestamp.of_jsoninletstartTime=field_mapjson__"StartTime"Timestamp.of_jsoninmake?nextToken?serviceOperations?endTime?startTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of the operations of this service that have been discovered by Application Signals. Only the operations that were invoked during the specified time range are returned."]moduleListServiceOperationsInput=structtypenonrect={startTime:Timestamp.t[@ocaml.doc"The start of the time period to retrieve information about. When used in a raw HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 Your requested start time will be rounded to the nearest hour."];endTime:Timestamp.t[@ocaml.doc"The end of the time period to retrieve information about. When used in a raw HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 Your requested end time will be rounded to the nearest hour."];keyAttributes:Attributes.t[@ocaml.doc"Use this field to specify which service you want to retrieve information for. You must specify at least the Type, Name, and Environment attributes. This is a string-to-string map. It can include the following fields. Type designates the type of object this is. ResourceType specifies the type of the resource. This field is used only when the value of the Type field is Resource or AWS::Resource. Name specifies the name of the object. This is used only if the value of the Type field is Service, RemoteService, or AWS::Service. Identifier identifies the resource objects of this resource. This is used only if the value of the Type field is Resource or AWS::Resource. Environment specifies the location where this object is hosted, or what it belongs to."];maxResults:ListServiceOperationMaxResults.toption[@ocaml.doc"The maximum number of results to return in one operation. If you omit this parameter, the default of 50 is used."];nextToken:NextToken.toption[@ocaml.doc"Include this value, if it was returned by the previous operation, to get the next set of service operations."]}letcontext_="ListServiceOperationsInput"letmake?maxResults=fun?nextToken->fun~startTime->fun~endTime->fun~keyAttributes->fun()->{maxResults;nextToken;startTime;endTime;keyAttributes}letto_valuex=structure_to_value[("StartTime",(Some(Timestamp.to_valuex.startTime)));("EndTime",(Some(Timestamp.to_valuex.endTime)));("KeyAttributes",(Some(Attributes.to_valuex.keyAttributes)));("MaxResults",(Option.mapx.maxResults~f:ListServiceOperationMaxResults.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:ListServiceOperationMaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletkeyAttributes=Attributes.of_xml(Xml.child_exn~context:context_xml_arg0"KeyAttributes")inletendTime=Timestamp.of_xml(Xml.child_exn~context:context_xml_arg0"EndTime")inletstartTime=Timestamp.of_xml(Xml.child_exn~context:context_xml_arg0"StartTime")inmake?nextToken?maxResults~keyAttributes~endTime~startTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"MaxResults"ListServiceOperationMaxResults.of_jsoninletkeyAttributes=field_map_exnjson__"KeyAttributes"Attributes.of_jsoninletendTime=field_map_exnjson__"EndTime"Timestamp.of_jsoninletstartTime=field_map_exnjson__"StartTime"Timestamp.of_jsoninmake?nextToken?maxResults~keyAttributes~endTime~startTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of the operations of this service that have been discovered by Application Signals. Only the operations that were invoked during the specified time range are returned."]moduleListServiceLevelObjectivesOutput=structtypenonrect={sloSummaries:ServiceLevelObjectiveSummaries.toption[@ocaml.doc"An array of structures, where each structure contains information about one SLO."];nextToken:NextToken.toption[@ocaml.doc"Include this value in your next use of this API to get next set of service level objectives."]}typenonrecerror=[`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?sloSummaries=fun?nextToken->fun()->{sloSummaries;nextToken}leterror_of_jsonnamejson=matchnamewith|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"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|`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[("SloSummaries",(Option.mapx.sloSummaries~f:ServiceLevelObjectiveSummaries.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletsloSummaries=(Option.map~f:ServiceLevelObjectiveSummaries.of_xml)(Xml.childxml_arg0"SloSummaries")inmake?nextToken?sloSummaries()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletsloSummaries=field_mapjson__"SloSummaries"ServiceLevelObjectiveSummaries.of_jsoninmake?nextToken?sloSummaries()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of SLOs created in this account."]moduleListServiceLevelObjectivesInput=structtypenonrect={keyAttributes:Attributes.toption[@ocaml.doc"You can use this optional field to specify which services you want to retrieve SLO information for. This is a string-to-string map. It can include the following fields. Type designates the type of object this is. ResourceType specifies the type of the resource. This field is used only when the value of the Type field is Resource or AWS::Resource. Name specifies the name of the object. This is used only if the value of the Type field is Service, RemoteService, or AWS::Service. Identifier identifies the resource objects of this resource. This is used only if the value of the Type field is Resource or AWS::Resource. Environment specifies the location where this object is hosted, or what it belongs to."];operationName:OperationName.toption[@ocaml.doc"The name of the operation that this SLO is associated with."];dependencyConfig:DependencyConfig.toption[@ocaml.doc"Identifies the dependency using the DependencyKeyAttributes and DependencyOperationName."];maxResults:ListServiceLevelObjectivesMaxResults.toption[@ocaml.doc"The maximum number of results to return in one operation. If you omit this parameter, the default of 50 is used."];nextToken:NextToken.toption[@ocaml.doc"Include this value, if it was returned by the previous operation, to get the next set of service level objectives."];metricSourceTypes:MetricSourceTypes.toption[@ocaml.doc"Use this optional field to only include SLOs with the specified metric source types in the output. Supported types are: Service operation Service dependency Service CloudWatch metric AppMonitor Canary"];includeLinkedAccounts:Boolean.toption[@ocaml.doc"If you are using this operation in a monitoring account, specify true to include SLO from source accounts in the returned data. When you are monitoring an account, you can use Amazon Web Services account ID in KeyAttribute filter for service source account and SloOwnerawsaccountID for SLO source account with IncludeLinkedAccounts to filter the returned data to only a single source account."];sloOwnerAwsAccountId:AwsAccountId.toption[@ocaml.doc"SLO's Amazon Web Services account ID."];metricSource:MetricSource.toption[@ocaml.doc"Identifies the metric source to filter SLOs by."]}letmake?keyAttributes=fun?operationName->fun?dependencyConfig->fun?maxResults->fun?nextToken->fun?metricSourceTypes->fun?includeLinkedAccounts->fun?sloOwnerAwsAccountId->fun?metricSource->fun()->{keyAttributes;operationName;dependencyConfig;maxResults;nextToken;metricSourceTypes;includeLinkedAccounts;sloOwnerAwsAccountId;metricSource}letto_valuex=structure_to_value[("KeyAttributes",(Option.mapx.keyAttributes~f:Attributes.to_value));("OperationName",(Option.mapx.operationName~f:OperationName.to_value));("DependencyConfig",(Option.mapx.dependencyConfig~f:DependencyConfig.to_value));("MaxResults",(Option.mapx.maxResults~f:ListServiceLevelObjectivesMaxResults.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value));("MetricSourceTypes",(Option.mapx.metricSourceTypes~f:MetricSourceTypes.to_value));("IncludeLinkedAccounts",(Option.mapx.includeLinkedAccounts~f:Boolean.to_value));("SloOwnerAwsAccountId",(Option.mapx.sloOwnerAwsAccountId~f:AwsAccountId.to_value));("MetricSource",(Option.mapx.metricSource~f:MetricSource.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmetricSource=(Option.map~f:MetricSource.of_xml)(Xml.childxml_arg0"MetricSource")inletsloOwnerAwsAccountId=(Option.map~f:AwsAccountId.of_xml)(Xml.childxml_arg0"SloOwnerAwsAccountId")inletincludeLinkedAccounts=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"IncludeLinkedAccounts")inletmetricSourceTypes=(Option.map~f:MetricSourceTypes.of_xml)(Xml.childxml_arg0"MetricSourceTypes")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:ListServiceLevelObjectivesMaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletdependencyConfig=(Option.map~f:DependencyConfig.of_xml)(Xml.childxml_arg0"DependencyConfig")inletoperationName=(Option.map~f:OperationName.of_xml)(Xml.childxml_arg0"OperationName")inletkeyAttributes=(Option.map~f:Attributes.of_xml)(Xml.childxml_arg0"KeyAttributes")inmake?metricSource?sloOwnerAwsAccountId?includeLinkedAccounts?metricSourceTypes?nextToken?maxResults?dependencyConfig?operationName?keyAttributes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmetricSource=field_mapjson__"MetricSource"MetricSource.of_jsoninletsloOwnerAwsAccountId=field_mapjson__"SloOwnerAwsAccountId"AwsAccountId.of_jsoninletincludeLinkedAccounts=field_mapjson__"IncludeLinkedAccounts"Boolean.of_jsoninletmetricSourceTypes=field_mapjson__"MetricSourceTypes"MetricSourceTypes.of_jsoninletnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"MaxResults"ListServiceLevelObjectivesMaxResults.of_jsoninletdependencyConfig=field_mapjson__"DependencyConfig"DependencyConfig.of_jsoninletoperationName=field_mapjson__"OperationName"OperationName.of_jsoninletkeyAttributes=field_mapjson__"KeyAttributes"Attributes.of_jsoninmake?metricSource?sloOwnerAwsAccountId?includeLinkedAccounts?metricSourceTypes?nextToken?maxResults?dependencyConfig?operationName?keyAttributes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of SLOs created in this account."]moduleListServiceLevelObjectiveExclusionWindowsOutput=structtypenonrect={exclusionWindows:ExclusionWindows.toption[@ocaml.doc"A list of exclusion windows configured for the SLO."];nextToken:NextToken.toption[@ocaml.doc"Include this value, if it was returned by the previous operation, to get the next set of service level objectives."]}typenonrecerror=[`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?exclusionWindows=fun?nextToken->fun()->{exclusionWindows;nextToken}leterror_of_jsonnamejson=matchnamewith|"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|"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|`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[("ExclusionWindows",(Option.mapx.exclusionWindows~f:ExclusionWindows.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletexclusionWindows=(Option.map~f:ExclusionWindows.of_xml)(Xml.childxml_arg0"ExclusionWindows")inmake?nextToken?exclusionWindows()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletexclusionWindows=field_mapjson__"ExclusionWindows"ExclusionWindows.of_jsoninmake?nextToken?exclusionWindows()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves all exclusion windows configured for a specific SLO."]moduleListServiceLevelObjectiveExclusionWindowsInput=structtypenonrect={id:ServiceLevelObjectiveId.t[@ocaml.doc"The ID of the SLO to list exclusion windows for."];maxResults:ListServiceLevelObjectiveExclusionWindowsMaxResults.toption[@ocaml.doc"The maximum number of results to return in one operation. If you omit this parameter, the default of 50 is used."];nextToken:NextToken.toption[@ocaml.doc"Include this value, if it was returned by the previous operation, to get the next set of service level objectives."]}letcontext_="ListServiceLevelObjectiveExclusionWindowsInput"letmake?maxResults=fun?nextToken->fun~id->fun()->{maxResults;nextToken;id}letto_valuex=structure_to_value[("Id",(Some(ServiceLevelObjectiveId.to_valuex.id)));("MaxResults",(Option.mapx.maxResults~f:ListServiceLevelObjectiveExclusionWindowsMaxResults.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:ListServiceLevelObjectiveExclusionWindowsMaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletid=ServiceLevelObjectiveId.of_xml(Xml.child_exn~context:context_xml_arg0"Id")inmake?nextToken?maxResults~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"MaxResults"ListServiceLevelObjectiveExclusionWindowsMaxResults.of_jsoninletid=field_map_exnjson__"Id"ServiceLevelObjectiveId.of_jsoninmake?nextToken?maxResults~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves all exclusion windows configured for a specific SLO."]moduleListServiceDependentsOutput=structtypenonrect={startTime:Timestamp.toption[@ocaml.doc"The start of the time period that the returned information applies to. When used in a raw HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 This displays the time that Application Signals used for the request. It might not match your request exactly, because it was rounded to the nearest hour."];endTime:Timestamp.toption[@ocaml.doc"The end of the time period that the returned information applies to. When used in a raw HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 This displays the time that Application Signals used for the request. It might not match your request exactly, because it was rounded to the nearest hour."];serviceDependents:ServiceDependents.toption[@ocaml.doc"An array, where each object in the array contains information about one of the dependents of this service."];nextToken:NextToken.toption[@ocaml.doc"Include this value in your next use of this API to get next set of service dependents."]}typenonrecerror=[`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?startTime=fun?endTime->fun?serviceDependents->fun?nextToken->fun()->{startTime;endTime;serviceDependents;nextToken}leterror_of_jsonnamejson=matchnamewith|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"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|`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[("StartTime",(Option.mapx.startTime~f:Timestamp.to_value));("EndTime",(Option.mapx.endTime~f:Timestamp.to_value));("ServiceDependents",(Option.mapx.serviceDependents~f:ServiceDependents.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletserviceDependents=(Option.map~f:ServiceDependents.of_xml)(Xml.childxml_arg0"ServiceDependents")inletendTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"EndTime")inletstartTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"StartTime")inmake?nextToken?serviceDependents?endTime?startTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletserviceDependents=field_mapjson__"ServiceDependents"ServiceDependents.of_jsoninletendTime=field_mapjson__"EndTime"Timestamp.of_jsoninletstartTime=field_mapjson__"StartTime"Timestamp.of_jsoninmake?nextToken?serviceDependents?endTime?startTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the list of dependents that invoked the specified service during the provided time range. Dependents include other services, CloudWatch Synthetics canaries, and clients that are instrumented with CloudWatch RUM app monitors."]moduleListServiceDependentsInput=structtypenonrect={startTime:Timestamp.t[@ocaml.doc"The start of the time period to retrieve information about. When used in a raw HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 Your requested start time will be rounded to the nearest hour."];endTime:Timestamp.t[@ocaml.doc"The end of the time period to retrieve information about. When used in a raw HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 Your requested start time will be rounded to the nearest hour."];keyAttributes:Attributes.t[@ocaml.doc"Use this field to specify which service you want to retrieve information for. You must specify at least the Type, Name, and Environment attributes. This is a string-to-string map. It can include the following fields. Type designates the type of object this is. ResourceType specifies the type of the resource. This field is used only when the value of the Type field is Resource or AWS::Resource. Name specifies the name of the object. This is used only if the value of the Type field is Service, RemoteService, or AWS::Service. Identifier identifies the resource objects of this resource. This is used only if the value of the Type field is Resource or AWS::Resource. Environment specifies the location where this object is hosted, or what it belongs to."];maxResults:ListServiceDependentsMaxResults.toption[@ocaml.doc"The maximum number of results to return in one operation. If you omit this parameter, the default of 50 is used."];nextToken:NextToken.toption[@ocaml.doc"Include this value, if it was returned by the previous operation, to get the next set of service dependents."]}letcontext_="ListServiceDependentsInput"letmake?maxResults=fun?nextToken->fun~startTime->fun~endTime->fun~keyAttributes->fun()->{maxResults;nextToken;startTime;endTime;keyAttributes}letto_valuex=structure_to_value[("StartTime",(Some(Timestamp.to_valuex.startTime)));("EndTime",(Some(Timestamp.to_valuex.endTime)));("KeyAttributes",(Some(Attributes.to_valuex.keyAttributes)));("MaxResults",(Option.mapx.maxResults~f:ListServiceDependentsMaxResults.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:ListServiceDependentsMaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletkeyAttributes=Attributes.of_xml(Xml.child_exn~context:context_xml_arg0"KeyAttributes")inletendTime=Timestamp.of_xml(Xml.child_exn~context:context_xml_arg0"EndTime")inletstartTime=Timestamp.of_xml(Xml.child_exn~context:context_xml_arg0"StartTime")inmake?nextToken?maxResults~keyAttributes~endTime~startTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"MaxResults"ListServiceDependentsMaxResults.of_jsoninletkeyAttributes=field_map_exnjson__"KeyAttributes"Attributes.of_jsoninletendTime=field_map_exnjson__"EndTime"Timestamp.of_jsoninletstartTime=field_map_exnjson__"StartTime"Timestamp.of_jsoninmake?nextToken?maxResults~keyAttributes~endTime~startTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the list of dependents that invoked the specified service during the provided time range. Dependents include other services, CloudWatch Synthetics canaries, and clients that are instrumented with CloudWatch RUM app monitors."]moduleListServiceDependenciesOutput=structtypenonrect={startTime:Timestamp.toption[@ocaml.doc"The start of the time period that the returned information applies to. When used in a raw HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 This displays the time that Application Signals used for the request. It might not match your request exactly, because it was rounded to the nearest hour."];endTime:Timestamp.toption[@ocaml.doc"The end of the time period that the returned information applies to. When used in a raw HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 This displays the time that Application Signals used for the request. It might not match your request exactly, because it was rounded to the nearest hour."];serviceDependencies:ServiceDependencies.toption[@ocaml.doc"An array, where each object in the array contains information about one of the dependencies of this service."];nextToken:NextToken.toption[@ocaml.doc"Include this value in your next use of this API to get next set of service dependencies."]}typenonrecerror=[`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?startTime=fun?endTime->fun?serviceDependencies->fun?nextToken->fun()->{startTime;endTime;serviceDependencies;nextToken}leterror_of_jsonnamejson=matchnamewith|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"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|`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[("StartTime",(Option.mapx.startTime~f:Timestamp.to_value));("EndTime",(Option.mapx.endTime~f:Timestamp.to_value));("ServiceDependencies",(Option.mapx.serviceDependencies~f:ServiceDependencies.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletserviceDependencies=(Option.map~f:ServiceDependencies.of_xml)(Xml.childxml_arg0"ServiceDependencies")inletendTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"EndTime")inletstartTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"StartTime")inmake?nextToken?serviceDependencies?endTime?startTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletserviceDependencies=field_mapjson__"ServiceDependencies"ServiceDependencies.of_jsoninletendTime=field_mapjson__"EndTime"Timestamp.of_jsoninletstartTime=field_mapjson__"StartTime"Timestamp.of_jsoninmake?nextToken?serviceDependencies?endTime?startTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of service dependencies of the service that you specify. A dependency is an infrastructure component that an operation of this service connects with. Dependencies can include Amazon Web Services services, Amazon Web Services resources, and third-party services."]moduleListServiceDependenciesInput=structtypenonrect={startTime:Timestamp.t[@ocaml.doc"The start of the time period to retrieve information about. When used in a raw HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 Your requested start time will be rounded to the nearest hour."];endTime:Timestamp.t[@ocaml.doc"The end of the time period to retrieve information about. When used in a raw HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 Your requested end time will be rounded to the nearest hour."];keyAttributes:Attributes.t[@ocaml.doc"Use this field to specify which service you want to retrieve information for. You must specify at least the Type, Name, and Environment attributes. This is a string-to-string map. It can include the following fields. Type designates the type of object this is. ResourceType specifies the type of the resource. This field is used only when the value of the Type field is Resource or AWS::Resource. Name specifies the name of the object. This is used only if the value of the Type field is Service, RemoteService, or AWS::Service. Identifier identifies the resource objects of this resource. This is used only if the value of the Type field is Resource or AWS::Resource. Environment specifies the location where this object is hosted, or what it belongs to."];maxResults:ListServiceDependenciesMaxResults.toption[@ocaml.doc"The maximum number of results to return in one operation. If you omit this parameter, the default of 50 is used."];nextToken:NextToken.toption[@ocaml.doc"Include this value, if it was returned by the previous operation, to get the next set of service dependencies."]}letcontext_="ListServiceDependenciesInput"letmake?maxResults=fun?nextToken->fun~startTime->fun~endTime->fun~keyAttributes->fun()->{maxResults;nextToken;startTime;endTime;keyAttributes}letto_valuex=structure_to_value[("StartTime",(Some(Timestamp.to_valuex.startTime)));("EndTime",(Some(Timestamp.to_valuex.endTime)));("KeyAttributes",(Some(Attributes.to_valuex.keyAttributes)));("MaxResults",(Option.mapx.maxResults~f:ListServiceDependenciesMaxResults.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:ListServiceDependenciesMaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletkeyAttributes=Attributes.of_xml(Xml.child_exn~context:context_xml_arg0"KeyAttributes")inletendTime=Timestamp.of_xml(Xml.child_exn~context:context_xml_arg0"EndTime")inletstartTime=Timestamp.of_xml(Xml.child_exn~context:context_xml_arg0"StartTime")inmake?nextToken?maxResults~keyAttributes~endTime~startTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"MaxResults"ListServiceDependenciesMaxResults.of_jsoninletkeyAttributes=field_map_exnjson__"KeyAttributes"Attributes.of_jsoninletendTime=field_map_exnjson__"EndTime"Timestamp.of_jsoninletstartTime=field_map_exnjson__"StartTime"Timestamp.of_jsoninmake?nextToken?maxResults~keyAttributes~endTime~startTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of service dependencies of the service that you specify. A dependency is an infrastructure component that an operation of this service connects with. Dependencies can include Amazon Web Services services, Amazon Web Services resources, and third-party services."]moduleListGroupingAttributeDefinitionsOutput=structtypenonrect={groupingAttributeDefinitions:GroupingAttributeDefinitions.toption[@ocaml.doc"An array of structures, where each structure contains information about one grouping attribute definition, including the grouping name, source keys, and default values."];updatedAt:Timestamp.toption[@ocaml.doc"The timestamp when the grouping configuration was last updated. When used in a raw HTTP Query API, it is formatted as epoch time in seconds."];nextToken:NextToken.toption[@ocaml.doc"Include this value in your next use of this API to get the next set of grouping attribute definitions."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?groupingAttributeDefinitions=fun?updatedAt->fun?nextToken->fun()->{groupingAttributeDefinitions;updatedAt;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`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[("GroupingAttributeDefinitions",(Option.mapx.groupingAttributeDefinitions~f:GroupingAttributeDefinitions.to_value));("UpdatedAt",(Option.mapx.updatedAt~f:Timestamp.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletupdatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"UpdatedAt")inletgroupingAttributeDefinitions=(Option.map~f:GroupingAttributeDefinitions.of_xml)(Xml.childxml_arg0"GroupingAttributeDefinitions")inmake?nextToken?updatedAt?groupingAttributeDefinitions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletupdatedAt=field_mapjson__"UpdatedAt"Timestamp.of_jsoninletgroupingAttributeDefinitions=field_mapjson__"GroupingAttributeDefinitions"GroupingAttributeDefinitions.of_jsoninmake?nextToken?updatedAt?groupingAttributeDefinitions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the current grouping configuration for this account, including all custom grouping attribute definitions that have been configured. These definitions determine how services are logically grouped based on telemetry attributes, Amazon Web Services tags, or predefined mappings."]moduleListGroupingAttributeDefinitionsInput=structtypenonrect={nextToken:NextToken.toption[@ocaml.doc"Include this value, if it was returned by the previous operation, to get the next set of grouping attribute definitions."];awsAccountId:AwsAccountId.toption[@ocaml.doc"The Amazon Web Services account ID to retrieve grouping attribute definitions for. Use this when accessing grouping configurations from a different account in cross-account monitoring scenarios."];includeLinkedAccounts:Boolean.toption[@ocaml.doc"If you are using this operation in a monitoring account, specify true to include grouping attributes from source accounts in the returned data."]}letmake?nextToken=fun?awsAccountId->fun?includeLinkedAccounts->fun()->{nextToken;awsAccountId;includeLinkedAccounts}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:NextToken.to_value));("AwsAccountId",(Option.mapx.awsAccountId~f:AwsAccountId.to_value));("IncludeLinkedAccounts",(Option.mapx.includeLinkedAccounts~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letincludeLinkedAccounts=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"IncludeLinkedAccounts")inletawsAccountId=(Option.map~f:AwsAccountId.of_xml)(Xml.childxml_arg0"AwsAccountId")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inmake?includeLinkedAccounts?awsAccountId?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letincludeLinkedAccounts=field_mapjson__"IncludeLinkedAccounts"Boolean.of_jsoninletawsAccountId=field_mapjson__"AwsAccountId"AwsAccountId.of_jsoninletnextToken=field_mapjson__"NextToken"NextToken.of_jsoninmake?includeLinkedAccounts?awsAccountId?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the current grouping configuration for this account, including all custom grouping attribute definitions that have been configured. These definitions determine how services are logically grouped based on telemetry attributes, Amazon Web Services tags, or predefined mappings."]moduleListEntityEventsOutput=structtypenonrect={startTime:Timestamp.toption[@ocaml.doc"The start of the time period that the returned change events apply to. When used in a raw HTTP Query API, it is formatted as epoch time in seconds. For example: 1698778057"];endTime:Timestamp.toption[@ocaml.doc"The end of the time period that the returned change events apply to. When used in a raw HTTP Query API, it is formatted as epoch time in seconds. For example: 1698778057"];changeEvents:ChangeEvents.toption[@ocaml.doc"An array of structures, where each structure contains information about one change event that occurred for the specified entity during the requested time period."];nextToken:NextToken.toption[@ocaml.doc"Include this value in your next use of this API to get the next set of change events."]}typenonrecerror=[`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?startTime=fun?endTime->fun?changeEvents->fun?nextToken->fun()->{startTime;endTime;changeEvents;nextToken}leterror_of_jsonnamejson=matchnamewith|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"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|`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[("StartTime",(Option.mapx.startTime~f:Timestamp.to_value));("EndTime",(Option.mapx.endTime~f:Timestamp.to_value));("ChangeEvents",(Option.mapx.changeEvents~f:ChangeEvents.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletchangeEvents=(Option.map~f:ChangeEvents.of_xml)(Xml.childxml_arg0"ChangeEvents")inletendTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"EndTime")inletstartTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"StartTime")inmake?nextToken?changeEvents?endTime?startTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletchangeEvents=field_mapjson__"ChangeEvents"ChangeEvents.of_jsoninletendTime=field_mapjson__"EndTime"Timestamp.of_jsoninletstartTime=field_mapjson__"StartTime"Timestamp.of_jsoninmake?nextToken?changeEvents?endTime?startTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of change events for a specific entity, such as deployments, configuration changes, or other state-changing activities. This operation helps track the history of changes that may have affected service performance."]moduleListEntityEventsInput=structtypenonrect={entity:Attributes.t[@ocaml.doc"The entity for which to retrieve change events. This specifies the service, resource, or other entity whose event history you want to examine. This is a string-to-string map. It can include the following fields. Type designates the type of object this is. ResourceType specifies the type of the resource. This field is used only when the value of the Type field is Resource or AWS::Resource. Name specifies the name of the object. This is used only if the value of the Type field is Service, RemoteService, or AWS::Service. Identifier identifies the resource objects of this resource. This is used only if the value of the Type field is Resource or AWS::Resource. Environment specifies the location where this object is hosted, or what it belongs to. AwsAccountId specifies the account where this object is in. Below is an example of a service. \\{ \"Type\": \"Service\", \"Name\": \"visits-service\", \"Environment\": \"petclinic-test\" \\} Below is an example of a resource. \\{ \"Type\": \"AWS::Resource\", \"ResourceType\": \"AWS::DynamoDB::Table\", \"Identifier\": \"Customers\" \\}"];startTime:Timestamp.t[@ocaml.doc"The start of the time period to retrieve change events for. When used in a raw HTTP Query API, it is formatted as epoch time in seconds. For example: 1698778057"];endTime:Timestamp.t[@ocaml.doc"The end of the time period to retrieve change events for. When used in a raw HTTP Query API, it is formatted as epoch time in seconds. For example: 1698778057"];maxResults:ListEntityEventsMaxResults.toption[@ocaml.doc"The maximum number of change events to return in one operation. If you omit this parameter, the default of 50 is used."];nextToken:NextToken.toption[@ocaml.doc"Include this value, if it was returned by the previous operation, to get the next set of change events."]}letcontext_="ListEntityEventsInput"letmake?maxResults=fun?nextToken->fun~entity->fun~startTime->fun~endTime->fun()->{maxResults;nextToken;entity;startTime;endTime}letto_valuex=structure_to_value[("Entity",(Some(Attributes.to_valuex.entity)));("StartTime",(Some(Timestamp.to_valuex.startTime)));("EndTime",(Some(Timestamp.to_valuex.endTime)));("MaxResults",(Option.mapx.maxResults~f:ListEntityEventsMaxResults.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:ListEntityEventsMaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletendTime=Timestamp.of_xml(Xml.child_exn~context:context_xml_arg0"EndTime")inletstartTime=Timestamp.of_xml(Xml.child_exn~context:context_xml_arg0"StartTime")inletentity=Attributes.of_xml(Xml.child_exn~context:context_xml_arg0"Entity")inmake?nextToken?maxResults~endTime~startTime~entity()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"MaxResults"ListEntityEventsMaxResults.of_jsoninletendTime=field_map_exnjson__"EndTime"Timestamp.of_jsoninletstartTime=field_map_exnjson__"StartTime"Timestamp.of_jsoninletentity=field_map_exnjson__"Entity"Attributes.of_jsoninmake?nextToken?maxResults~endTime~startTime~entity()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of change events for a specific entity, such as deployments, configuration changes, or other state-changing activities. This operation helps track the history of changes that may have affected service performance."]moduleListAuditFindingsOutput=structtypenonrect={startTime:Timestamp.toption[@ocaml.doc"The start of the time period that the returned audit findings apply to. When used in a raw HTTP Query API, it is formatted as epoch time in seconds. For example, 1698778057"];endTime:Timestamp.toption[@ocaml.doc"The end of the time period that the returned audit findings apply to. When used in a raw HTTP Query API, it is formatted as epoch time in seconds. For example, 1698778057"];auditFindings:AuditFindings.toption[@ocaml.doc"An array of structures, where each structure contains information about one audit finding, including the auditor results, severity, and associated metric and dependency graphs."];nextToken:NextToken.toption[@ocaml.doc"Include this value in your next use of this API to get the next set of audit findings."]}typenonrecerror=[`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?startTime=fun?endTime->fun?auditFindings->fun?nextToken->fun()->{startTime;endTime;auditFindings;nextToken}leterror_of_jsonnamejson=matchnamewith|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"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|`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[("StartTime",(Option.mapx.startTime~f:Timestamp.to_value));("EndTime",(Option.mapx.endTime~f:Timestamp.to_value));("AuditFindings",(Option.mapx.auditFindings~f:AuditFindings.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletauditFindings=(Option.map~f:AuditFindings.of_xml)(Xml.childxml_arg0"AuditFindings")inletendTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"EndTime")inletstartTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"StartTime")inmake?nextToken?auditFindings?endTime?startTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletauditFindings=field_mapjson__"AuditFindings"AuditFindings.of_jsoninletendTime=field_mapjson__"EndTime"Timestamp.of_jsoninletstartTime=field_mapjson__"StartTime"Timestamp.of_jsoninmake?nextToken?auditFindings?endTime?startTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of audit findings that provide automated analysis of service behavior and root cause analysis. These findings help identify the most significant observations about your services, including performance issues, anomalies, and potential problems. The findings are generated using heuristic algorithms based on established troubleshooting patterns."]moduleListAuditFindingsInput=structtypenonrect={startTime:Timestamp.t[@ocaml.doc"The start of the time period to retrieve audit findings for. When used in a raw HTTP Query API, it is formatted as epoch time in seconds. For example, 1698778057"];endTime:Timestamp.t[@ocaml.doc"The end of the time period to retrieve audit findings for. When used in a raw HTTP Query API, it is formatted as epoch time in seconds. For example, 1698778057"];auditors:Auditors.toption[@ocaml.doc"A list of auditor names to filter the findings by. Only findings generated by the specified auditors will be returned. The following auditors are available for configuration: slo - SloAuditor: Identifies SLO violations and detects breached thresholds during the Assessment phase. operation_metric - OperationMetricAuditor: Detects anomalies in service operation metrics from Application Signals RED metrics during the Assessment phase Anomaly detection is not supported for sparse metrics (those missing more than 80% of datapoints within the given time period). service_quota - ServiceQuotaAuditor: Monitors resource utilization against service quotas during the Assessment phase trace - TraceAuditor: Performs deep-dive analysis of distributed traces, correlating traces with breached SLOs or abnormal RED metrics during the Analysis phase dependency_metric - CriticalPathAuditor: Analyzes service dependency impacts and maps dependency relationships from Application Signals RED metrics during the Analysis phase top_contributor - TopContributorAuditor: Identifies infrastructure-level contributors to issues by analyzing EMF logs of Application Signals RED metrics during the Analysis phase log - LogAuditor: Extracts insights from application logs, categorizing error types and ranking severity by frequency during the Analysis phase change_indicator - ChangeIndicatorAuditor: Detects change events (deployments, configuration changes) that occurred within 10 minutes before and during a detected anomaly, and surfaces them as findings with deployment timestamps in the Analysis phase. When changes are detected, the top_contributor auditor skips its analysis to avoid redundancy. InitAuditor and Summarizer auditors are not configurable as they are automatically triggered during the audit process."];auditTargets:AuditTargets.t[@ocaml.doc"A list of audit targets to filter the findings by. You can specify services, SLOs, or service operations to limit the audit findings to specific entities."];detailLevel:DetailLevel.toption[@ocaml.doc"The level of details of the audit findings. Supported values: BRIEF, DETAILED."];nextToken:NextToken.toption[@ocaml.doc"Include this value, if it was returned by the previous operation, to get the next set of audit findings."];maxResults:ListAuditFindingMaxResults.toption[@ocaml.doc"The maximum number of audit findings to return in one operation. If you omit this parameter, the default of 10 is used."]}letcontext_="ListAuditFindingsInput"letmake?auditors=fun?detailLevel->fun?nextToken->fun?maxResults->fun~startTime->fun~endTime->fun~auditTargets->fun()->{auditors;detailLevel;nextToken;maxResults;startTime;endTime;auditTargets}letto_valuex=structure_to_value[("StartTime",(Some(Timestamp.to_valuex.startTime)));("EndTime",(Some(Timestamp.to_valuex.endTime)));("Auditors",(Option.mapx.auditors~f:Auditors.to_value));("AuditTargets",(Some(AuditTargets.to_valuex.auditTargets)));("DetailLevel",(Option.mapx.detailLevel~f:DetailLevel.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value));("MaxResults",(Option.mapx.maxResults~f:ListAuditFindingMaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:ListAuditFindingMaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletdetailLevel=(Option.map~f:DetailLevel.of_xml)(Xml.childxml_arg0"DetailLevel")inletauditTargets=AuditTargets.of_xml(Xml.child_exn~context:context_xml_arg0"AuditTargets")inletauditors=(Option.map~f:Auditors.of_xml)(Xml.childxml_arg0"Auditors")inletendTime=Timestamp.of_xml(Xml.child_exn~context:context_xml_arg0"EndTime")inletstartTime=Timestamp.of_xml(Xml.child_exn~context:context_xml_arg0"StartTime")inmake?maxResults?nextToken?detailLevel~auditTargets?auditors~endTime~startTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"ListAuditFindingMaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletdetailLevel=field_mapjson__"DetailLevel"DetailLevel.of_jsoninletauditTargets=field_map_exnjson__"AuditTargets"AuditTargets.of_jsoninletauditors=field_mapjson__"Auditors"Auditors.of_jsoninletendTime=field_map_exnjson__"EndTime"Timestamp.of_jsoninletstartTime=field_map_exnjson__"StartTime"Timestamp.of_jsoninmake?maxResults?nextToken?detailLevel~auditTargets?auditors~endTime~startTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of audit findings that provide automated analysis of service behavior and root cause analysis. These findings help identify the most significant observations about your services, including performance issues, anomalies, and potential problems. The findings are generated using heuristic algorithms based on established troubleshooting patterns."]moduleGetServiceOutput=structtypenonrect={service:Service.toption[@ocaml.doc"A structure containing information about the service."];startTime:Timestamp.toption[@ocaml.doc"The start time of the data included in the response. In a raw HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057. This displays the time that Application Signals used for the request. It might not match your request exactly, because it was rounded to the nearest hour."];endTime:Timestamp.toption[@ocaml.doc"The end time of the data included in the response. In a raw HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057. This displays the time that Application Signals used for the request. It might not match your request exactly, because it was rounded to the nearest hour."];logGroupReferences:LogGroupReferences.toption[@ocaml.doc"An array of string-to-string maps that each contain information about one log group associated with this service. Each string-to-string map includes the following fields: \"Type\": \"AWS::Resource\" \"ResourceType\": \"AWS::Logs::LogGroup\" \"Identifier\": \"name-of-log-group\""]}typenonrecerror=[`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?service=fun?startTime->fun?endTime->fun?logGroupReferences->fun()->{service;startTime;endTime;logGroupReferences}leterror_of_jsonnamejson=matchnamewith|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"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|`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[("Service",(Option.mapx.service~f:Service.to_value));("StartTime",(Option.mapx.startTime~f:Timestamp.to_value));("EndTime",(Option.mapx.endTime~f:Timestamp.to_value));("LogGroupReferences",(Option.mapx.logGroupReferences~f:LogGroupReferences.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlogGroupReferences=(Option.map~f:LogGroupReferences.of_xml)(Xml.childxml_arg0"LogGroupReferences")inletendTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"EndTime")inletstartTime=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"StartTime")inletservice=(Option.map~f:Service.of_xml)(Xml.childxml_arg0"Service")inmake?logGroupReferences?endTime?startTime?service()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlogGroupReferences=field_mapjson__"LogGroupReferences"LogGroupReferences.of_jsoninletendTime=field_mapjson__"EndTime"Timestamp.of_jsoninletstartTime=field_mapjson__"StartTime"Timestamp.of_jsoninletservice=field_mapjson__"Service"Service.of_jsoninmake?logGroupReferences?endTime?startTime?service()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns information about a service discovered by Application Signals."]moduleGetServiceLevelObjectiveOutput=structtypenonrect={slo:ServiceLevelObjective.toption[@ocaml.doc"A structure containing the information about the SLO."]}typenonrecerror=[`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?slo=fun()->{slo}leterror_of_jsonnamejson=matchnamewith|"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|"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|`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[("Slo",(Option.mapx.slo~f:ServiceLevelObjective.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letslo=(Option.map~f:ServiceLevelObjective.of_xml)(Xml.childxml_arg0"Slo")inmake?slo()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letslo=field_mapjson__"Slo"ServiceLevelObjective.of_jsoninmake?slo()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns information about one SLO created in the account."]moduleGetServiceLevelObjectiveInput=structtypenonrect={id:ServiceLevelObjectiveId.t[@ocaml.doc"The ARN or name of the SLO that you want to retrieve information about. You can find the ARNs of SLOs by using the ListServiceLevelObjectives operation."]}letcontext_="GetServiceLevelObjectiveInput"letmake~id=fun()->{id}letto_valuex=structure_to_value[("Id",(Some(ServiceLevelObjectiveId.to_valuex.id)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=ServiceLevelObjectiveId.of_xml(Xml.child_exn~context:context_xml_arg0"Id")inmake~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_map_exnjson__"Id"ServiceLevelObjectiveId.of_jsoninmake~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns information about one SLO created in the account."]moduleGetServiceInput=structtypenonrect={startTime:Timestamp.t[@ocaml.doc"The start of the time period to retrieve information about. When used in a raw HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 Your requested start time will be rounded to the nearest hour."];endTime:Timestamp.t[@ocaml.doc"The end of the time period to retrieve information about. When used in a raw HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 Your requested start time will be rounded to the nearest hour."];keyAttributes:Attributes.t[@ocaml.doc"Use this field to specify which service you want to retrieve information for. You must specify at least the Type, Name, and Environment attributes. This is a string-to-string map. It can include the following fields. Type designates the type of object this is. ResourceType specifies the type of the resource. This field is used only when the value of the Type field is Resource or AWS::Resource. Name specifies the name of the object. This is used only if the value of the Type field is Service, RemoteService, or AWS::Service. Identifier identifies the resource objects of this resource. This is used only if the value of the Type field is Resource or AWS::Resource. Environment specifies the location where this object is hosted, or what it belongs to."]}letcontext_="GetServiceInput"letmake~startTime=fun~endTime->fun~keyAttributes->fun()->{startTime;endTime;keyAttributes}letto_valuex=structure_to_value[("StartTime",(Some(Timestamp.to_valuex.startTime)));("EndTime",(Some(Timestamp.to_valuex.endTime)));("KeyAttributes",(Some(Attributes.to_valuex.keyAttributes)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkeyAttributes=Attributes.of_xml(Xml.child_exn~context:context_xml_arg0"KeyAttributes")inletendTime=Timestamp.of_xml(Xml.child_exn~context:context_xml_arg0"EndTime")inletstartTime=Timestamp.of_xml(Xml.child_exn~context:context_xml_arg0"StartTime")inmake~keyAttributes~endTime~startTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkeyAttributes=field_map_exnjson__"KeyAttributes"Attributes.of_jsoninletendTime=field_map_exnjson__"EndTime"Timestamp.of_jsoninletstartTime=field_map_exnjson__"StartTime"Timestamp.of_jsoninmake~keyAttributes~endTime~startTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns information about a service discovered by Application Signals."]moduleDeleteServiceLevelObjectiveOutput=structtypenonrect=unittypenonrecerror=[`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"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|"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|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the specified service level objective."]moduleDeleteServiceLevelObjectiveInput=structtypenonrect={id:ServiceLevelObjectiveId.t[@ocaml.doc"The ARN or name of the service level objective to delete."]}letcontext_="DeleteServiceLevelObjectiveInput"letmake~id=fun()->{id}letto_valuex=structure_to_value[("Id",(Some(ServiceLevelObjectiveId.to_valuex.id)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=ServiceLevelObjectiveId.of_xml(Xml.child_exn~context:context_xml_arg0"Id")inmake~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_map_exnjson__"Id"ServiceLevelObjectiveId.of_jsoninmake~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the specified service level objective."]moduleDeleteGroupingConfigurationOutput=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the grouping configuration for this account. This removes all custom grouping attribute definitions that were previously configured."]moduleCreateServiceLevelObjectiveOutput=structtypenonrect={slo:ServiceLevelObjective.toption[@ocaml.doc"A structure that contains information about the SLO that you just created."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?slo=fun()->{slo}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`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[("Slo",(Option.mapx.slo~f:ServiceLevelObjective.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letslo=(Option.map~f:ServiceLevelObjective.of_xml)(Xml.childxml_arg0"Slo")inmake?slo()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letslo=field_mapjson__"Slo"ServiceLevelObjective.of_jsoninmake?slo()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a service level objective (SLO), which can help you ensure that your critical business operations are meeting customer expectations. Use SLOs to set and track specific target levels for the reliability and availability of your applications and services. SLOs use service level indicators (SLIs) to calculate whether the application is performing at the level that you want. Create an SLO to set a target for a service or operation\226\128\153s availability or latency. CloudWatch measures this target frequently you can find whether it has been breached. The target performance quality that is defined for an SLO is the attainment goal. You can set SLO targets for your applications that are discovered by Application Signals, using critical metrics such as latency and availability. You can also set SLOs against any CloudWatch metric or math expression that produces a time series. You can't create an SLO for a service operation that was discovered by Application Signals until after that operation has reported standard metrics to Application Signals. When you create an SLO, you specify whether it is a period-based SLO or a request-based SLO. Each type of SLO has a different way of evaluating your application's performance against its attainment goal. A period-based SLO uses defined periods of time within a specified total time interval. For each period of time, Application Signals determines whether the application met its goal. The attainment rate is calculated as the number of good periods/number of total periods. For example, for a period-based SLO, meeting an attainment goal of 99.9% means that within your interval, your application must meet its performance goal during at least 99.9% of the time periods. A request-based SLO doesn't use pre-defined periods of time. Instead, the SLO measures number of good requests/number of total requests during the interval. At any time, you can find the ratio of good requests to total requests for the interval up to the time stamp that you specify, and measure that ratio against the goal set in your SLO. After you have created an SLO, you can retrieve error budget reports for it. An error budget is the amount of time or amount of requests that your application can be non-compliant with the SLO's goal, and still have your application meet the goal. For a period-based SLO, the error budget starts at a number defined by the highest number of periods that can fail to meet the threshold, while still meeting the overall goal. The remaining error budget decreases with every failed period that is recorded. The error budget within one interval can never increase. For example, an SLO with a threshold that 99.95% of requests must be completed under 2000ms every month translates to an error budget of 21.9 minutes of downtime per month. For a request-based SLO, the remaining error budget is dynamic and can increase or decrease, depending on the ratio of good requests to total requests. For more information about SLOs, see Service level objectives (SLOs). When you perform a CreateServiceLevelObjective operation, Application Signals creates the AWSServiceRoleForCloudWatchApplicationSignals service-linked role, if it doesn't already exist in your account. This service- linked role has the following permissions: xray:GetServiceGraph logs:StartQuery logs:GetQueryResults cloudwatch:GetMetricData cloudwatch:ListMetrics tag:GetResources autoscaling:DescribeAutoScalingGroups"]moduleCreateServiceLevelObjectiveInput=structtypenonrect={name:ServiceLevelObjectiveName.t[@ocaml.doc"A name for this SLO."];description:ServiceLevelObjectiveDescription.toption[@ocaml.doc"An optional description for this SLO."];sliConfig:ServiceLevelIndicatorConfig.toption[@ocaml.doc"If this SLO is a period-based SLO, this structure defines the information about what performance metric this SLO will monitor. You can't specify both RequestBasedSliConfig and SliConfig in the same operation."];requestBasedSliConfig:RequestBasedServiceLevelIndicatorConfig.toption[@ocaml.doc"If this SLO is a request-based SLO, this structure defines the information about what performance metric this SLO will monitor. You can't specify both RequestBasedSliConfig and SliConfig in the same operation."];goal:Goal.toption[@ocaml.doc"This structure contains the attributes that determine the goal of the SLO."];tags:TagList.toption[@ocaml.doc"A list of key-value pairs to associate with the SLO. You can associate as many as 50 tags with an SLO. To be able to associate tags with the SLO when you create the SLO, you must have the cloudwatch:TagResource permission. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values."];burnRateConfigurations:BurnRateConfigurations.toption[@ocaml.doc"Use this array to create burn rates for this SLO. Each burn rate is a metric that indicates how fast the service is consuming the error budget, relative to the attainment goal of the SLO."];createRecommendedSlo:Boolean.toption[@ocaml.doc"Set this to true to create a recommended SLO out of the box. When set to true, you don't need to specify the MetricThreshold or ComparisonOperator in the SliConfig or RequestBasedSliConfig. The default value is false. This is supported for SLOs on a service, service operation, or a dependency."];autoInvestigationEnabled:Boolean.toption[@ocaml.doc"Indicates whether DevOps Agent will automatically investigate this SLO when it is breached"]}letcontext_="CreateServiceLevelObjectiveInput"letmake?description=fun?sliConfig->fun?requestBasedSliConfig->fun?goal->fun?tags->fun?burnRateConfigurations->fun?createRecommendedSlo->fun?autoInvestigationEnabled->fun~name->fun()->{description;sliConfig;requestBasedSliConfig;goal;tags;burnRateConfigurations;createRecommendedSlo;autoInvestigationEnabled;name}letto_valuex=structure_to_value[("Name",(Some(ServiceLevelObjectiveName.to_valuex.name)));("Description",(Option.mapx.description~f:ServiceLevelObjectiveDescription.to_value));("SliConfig",(Option.mapx.sliConfig~f:ServiceLevelIndicatorConfig.to_value));("RequestBasedSliConfig",(Option.mapx.requestBasedSliConfig~f:RequestBasedServiceLevelIndicatorConfig.to_value));("Goal",(Option.mapx.goal~f:Goal.to_value));("Tags",(Option.mapx.tags~f:TagList.to_value));("BurnRateConfigurations",(Option.mapx.burnRateConfigurations~f:BurnRateConfigurations.to_value));("CreateRecommendedSlo",(Option.mapx.createRecommendedSlo~f:Boolean.to_value));("AutoInvestigationEnabled",(Option.mapx.autoInvestigationEnabled~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letautoInvestigationEnabled=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"AutoInvestigationEnabled")inletcreateRecommendedSlo=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"CreateRecommendedSlo")inletburnRateConfigurations=(Option.map~f:BurnRateConfigurations.of_xml)(Xml.childxml_arg0"BurnRateConfigurations")inlettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"Tags")inletgoal=(Option.map~f:Goal.of_xml)(Xml.childxml_arg0"Goal")inletrequestBasedSliConfig=(Option.map~f:RequestBasedServiceLevelIndicatorConfig.of_xml)(Xml.childxml_arg0"RequestBasedSliConfig")inletsliConfig=(Option.map~f:ServiceLevelIndicatorConfig.of_xml)(Xml.childxml_arg0"SliConfig")inletdescription=(Option.map~f:ServiceLevelObjectiveDescription.of_xml)(Xml.childxml_arg0"Description")inletname=ServiceLevelObjectiveName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake?autoInvestigationEnabled?createRecommendedSlo?burnRateConfigurations?tags?goal?requestBasedSliConfig?sliConfig?description~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letautoInvestigationEnabled=field_mapjson__"AutoInvestigationEnabled"Boolean.of_jsoninletcreateRecommendedSlo=field_mapjson__"CreateRecommendedSlo"Boolean.of_jsoninletburnRateConfigurations=field_mapjson__"BurnRateConfigurations"BurnRateConfigurations.of_jsoninlettags=field_mapjson__"Tags"TagList.of_jsoninletgoal=field_mapjson__"Goal"Goal.of_jsoninletrequestBasedSliConfig=field_mapjson__"RequestBasedSliConfig"RequestBasedServiceLevelIndicatorConfig.of_jsoninletsliConfig=field_mapjson__"SliConfig"ServiceLevelIndicatorConfig.of_jsoninletdescription=field_mapjson__"Description"ServiceLevelObjectiveDescription.of_jsoninletname=field_map_exnjson__"Name"ServiceLevelObjectiveName.of_jsoninmake?autoInvestigationEnabled?createRecommendedSlo?burnRateConfigurations?tags?goal?requestBasedSliConfig?sliConfig?description~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a service level objective (SLO), which can help you ensure that your critical business operations are meeting customer expectations. Use SLOs to set and track specific target levels for the reliability and availability of your applications and services. SLOs use service level indicators (SLIs) to calculate whether the application is performing at the level that you want. Create an SLO to set a target for a service or operation\226\128\153s availability or latency. CloudWatch measures this target frequently you can find whether it has been breached. The target performance quality that is defined for an SLO is the attainment goal. You can set SLO targets for your applications that are discovered by Application Signals, using critical metrics such as latency and availability. You can also set SLOs against any CloudWatch metric or math expression that produces a time series. You can't create an SLO for a service operation that was discovered by Application Signals until after that operation has reported standard metrics to Application Signals. When you create an SLO, you specify whether it is a period-based SLO or a request-based SLO. Each type of SLO has a different way of evaluating your application's performance against its attainment goal. A period-based SLO uses defined periods of time within a specified total time interval. For each period of time, Application Signals determines whether the application met its goal. The attainment rate is calculated as the number of good periods/number of total periods. For example, for a period-based SLO, meeting an attainment goal of 99.9% means that within your interval, your application must meet its performance goal during at least 99.9% of the time periods. A request-based SLO doesn't use pre-defined periods of time. Instead, the SLO measures number of good requests/number of total requests during the interval. At any time, you can find the ratio of good requests to total requests for the interval up to the time stamp that you specify, and measure that ratio against the goal set in your SLO. After you have created an SLO, you can retrieve error budget reports for it. An error budget is the amount of time or amount of requests that your application can be non-compliant with the SLO's goal, and still have your application meet the goal. For a period-based SLO, the error budget starts at a number defined by the highest number of periods that can fail to meet the threshold, while still meeting the overall goal. The remaining error budget decreases with every failed period that is recorded. The error budget within one interval can never increase. For example, an SLO with a threshold that 99.95% of requests must be completed under 2000ms every month translates to an error budget of 21.9 minutes of downtime per month. For a request-based SLO, the remaining error budget is dynamic and can increase or decrease, depending on the ratio of good requests to total requests. For more information about SLOs, see Service level objectives (SLOs). When you perform a CreateServiceLevelObjective operation, Application Signals creates the AWSServiceRoleForCloudWatchApplicationSignals service-linked role, if it doesn't already exist in your account. This service- linked role has the following permissions: xray:GetServiceGraph logs:StartQuery logs:GetQueryResults cloudwatch:GetMetricData cloudwatch:ListMetrics tag:GetResources autoscaling:DescribeAutoScalingGroups"]moduleBatchUpdateExclusionWindowsOutput=structtypenonrect={sloIds:ServiceLevelObjectiveIds.toption[@ocaml.doc"The list of SLO IDs that were successfully processed."];errors:BatchUpdateExclusionWindowsErrors.toption[@ocaml.doc"A list of errors that occurred while processing the request."]}typenonrecerror=[`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?sloIds=fun?errors->fun()->{sloIds;errors}leterror_of_jsonnamejson=matchnamewith|"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|"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|`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[("SloIds",(Option.mapx.sloIds~f:ServiceLevelObjectiveIds.to_value));("Errors",(Option.mapx.errors~f:BatchUpdateExclusionWindowsErrors.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrors=(Option.map~f:BatchUpdateExclusionWindowsErrors.of_xml)(Xml.childxml_arg0"Errors")inletsloIds=(Option.map~f:ServiceLevelObjectiveIds.of_xml)(Xml.childxml_arg0"SloIds")inmake?errors?sloIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrors=field_mapjson__"Errors"BatchUpdateExclusionWindowsErrors.of_jsoninletsloIds=field_mapjson__"SloIds"ServiceLevelObjectiveIds.of_jsoninmake?errors?sloIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Add or remove time window exclusions for one or more Service Level Objectives (SLOs)."]moduleBatchUpdateExclusionWindowsInput=structtypenonrect={sloIds:ServiceLevelObjectiveIds.t[@ocaml.doc"The list of SLO IDs to add or remove exclusion windows from."];addExclusionWindows:ExclusionWindows.toption[@ocaml.doc"A list of exclusion windows to add to the specified SLOs. You can add up to 10 exclusion windows per SLO."];removeExclusionWindows:ExclusionWindows.toption[@ocaml.doc"A list of exclusion windows to remove from the specified SLOs. The window configuration must match an existing exclusion window."]}letcontext_="BatchUpdateExclusionWindowsInput"letmake?addExclusionWindows=fun?removeExclusionWindows->fun~sloIds->fun()->{addExclusionWindows;removeExclusionWindows;sloIds}letto_valuex=structure_to_value[("SloIds",(Some(ServiceLevelObjectiveIds.to_valuex.sloIds)));("AddExclusionWindows",(Option.mapx.addExclusionWindows~f:ExclusionWindows.to_value));("RemoveExclusionWindows",(Option.mapx.removeExclusionWindows~f:ExclusionWindows.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letremoveExclusionWindows=(Option.map~f:ExclusionWindows.of_xml)(Xml.childxml_arg0"RemoveExclusionWindows")inletaddExclusionWindows=(Option.map~f:ExclusionWindows.of_xml)(Xml.childxml_arg0"AddExclusionWindows")inletsloIds=ServiceLevelObjectiveIds.of_xml(Xml.child_exn~context:context_xml_arg0"SloIds")inmake?removeExclusionWindows?addExclusionWindows~sloIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letremoveExclusionWindows=field_mapjson__"RemoveExclusionWindows"ExclusionWindows.of_jsoninletaddExclusionWindows=field_mapjson__"AddExclusionWindows"ExclusionWindows.of_jsoninletsloIds=field_map_exnjson__"SloIds"ServiceLevelObjectiveIds.of_jsoninmake?removeExclusionWindows?addExclusionWindows~sloIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Add or remove time window exclusions for one or more Service Level Objectives (SLOs)."]moduleBatchGetServiceLevelObjectiveBudgetReportOutput=structtypenonrect={timestamp:Timestamp.toption[@ocaml.doc"The date and time that the report is for. It is expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC."];reports:ServiceLevelObjectiveBudgetReports.toption[@ocaml.doc"An array of structures, where each structure is one budget report."];errors:ServiceLevelObjectiveBudgetReportErrors.toption[@ocaml.doc"An array of structures, where each structure includes an error indicating that one of the requests in the array was not valid."]}typenonrecerror=[`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?timestamp=fun?reports->fun?errors->fun()->{timestamp;reports;errors}leterror_of_jsonnamejson=matchnamewith|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"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|`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[("Timestamp",(Option.mapx.timestamp~f:Timestamp.to_value));("Reports",(Option.mapx.reports~f:ServiceLevelObjectiveBudgetReports.to_value));("Errors",(Option.mapx.errors~f:ServiceLevelObjectiveBudgetReportErrors.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrors=(Option.map~f:ServiceLevelObjectiveBudgetReportErrors.of_xml)(Xml.childxml_arg0"Errors")inletreports=(Option.map~f:ServiceLevelObjectiveBudgetReports.of_xml)(Xml.childxml_arg0"Reports")inlettimestamp=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"Timestamp")inmake?errors?reports?timestamp()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrors=field_mapjson__"Errors"ServiceLevelObjectiveBudgetReportErrors.of_jsoninletreports=field_mapjson__"Reports"ServiceLevelObjectiveBudgetReports.of_jsoninlettimestamp=field_mapjson__"Timestamp"Timestamp.of_jsoninmake?errors?reports?timestamp()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Use this operation to retrieve one or more service level objective (SLO) budget reports. An error budget is the amount of time or requests in an unhealthy state that your service can accumulate during an interval before your overall SLO budget health is breached and the SLO is considered to be unmet. For example, an SLO with a threshold of 99.95% and a monthly interval translates to an error budget of 21.9 minutes of downtime in a 30-day month. Budget reports include a health indicator, the attainment value, and remaining budget. For more information about SLO error budgets, see SLO concepts."]moduleBatchGetServiceLevelObjectiveBudgetReportInput=structtypenonrect={timestamp:Timestamp.t[@ocaml.doc"The date and time that you want the report to be for. It is expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC."];sloIds:ServiceLevelObjectiveIds.t[@ocaml.doc"An array containing the IDs of the service level objectives that you want to include in the report."]}letcontext_="BatchGetServiceLevelObjectiveBudgetReportInput"letmake~timestamp=fun~sloIds->fun()->{timestamp;sloIds}letto_valuex=structure_to_value[("Timestamp",(Some(Timestamp.to_valuex.timestamp)));("SloIds",(Some(ServiceLevelObjectiveIds.to_valuex.sloIds)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsloIds=ServiceLevelObjectiveIds.of_xml(Xml.child_exn~context:context_xml_arg0"SloIds")inlettimestamp=Timestamp.of_xml(Xml.child_exn~context:context_xml_arg0"Timestamp")inmake~sloIds~timestamp()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsloIds=field_map_exnjson__"SloIds"ServiceLevelObjectiveIds.of_jsoninlettimestamp=field_map_exnjson__"Timestamp"Timestamp.of_jsoninmake~sloIds~timestamp()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Use this operation to retrieve one or more service level objective (SLO) budget reports. An error budget is the amount of time or requests in an unhealthy state that your service can accumulate during an interval before your overall SLO budget health is breached and the SLO is considered to be unmet. For example, an SLO with a threshold of 99.95% and a monthly interval translates to an error budget of 21.9 minutes of downtime in a 30-day month. Budget reports include a health indicator, the attainment value, and remaining budget. For more information about SLO error budgets, see SLO concepts."]