123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916(* 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.ssm_contactsletapiVersion="2021-05-03"letendpointPrefix="ssm-contacts"letserviceFullName="AWS Systems Manager Incident Manager Contacts"letsignatureVersion="v4"letprotocol="json"letglobalEndpoint=endpointPrefix^".amazonaws.com"letserviceAbbreviation="SSM Contacts"lettargetPrefix="SSMContacts"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[]))])moduleHourOfDay=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:23)>>=(fun()->check_int_mini~min:0));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for HourOfDay"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleMinuteOfHour=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:59)>>=(fun()->check_int_mini~min:0));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MinuteOfHour"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleRetryIntervalInMinutes=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:60)>>=(fun()->check_int_mini~min:0));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for RetryIntervalInMinutes"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleSsmContactsArn=structtypenonrect=stringletcontext_="SsmContactsArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"arn:(aws|aws-cn|aws-us-gov):ssm-contacts:[-\\w+=\\/,.@]*:[0-9]+:([\\w+=\\/,.@:-]+)*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SsmContactsArn"jletto_json=simple_to_jsonto_valueendmoduleIsEssential=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_valueendmoduleHandOffTime=structtypenonrect={hourOfDay:HourOfDay.t[@ocaml.doc"The hour when an on-call rotation shift begins or ends."];minuteOfHour:MinuteOfHour.t[@ocaml.doc"The minute when an on-call rotation shift begins or ends."]}letcontext_="HandOffTime"letmake~hourOfDay=fun~minuteOfHour->fun()->{hourOfDay;minuteOfHour}letto_valuex=structure_to_value[("HourOfDay",(Some(HourOfDay.to_valuex.hourOfDay)));("MinuteOfHour",(Some(MinuteOfHour.to_valuex.minuteOfHour)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letminuteOfHour=MinuteOfHour.of_xml(Xml.child_exn~context:context_xml_arg0"MinuteOfHour")inlethourOfDay=HourOfDay.of_xml(Xml.child_exn~context:context_xml_arg0"HourOfDay")inmake~minuteOfHour~hourOfDay()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letminuteOfHour=field_map_exnjson__"MinuteOfHour"MinuteOfHour.of_jsoninlethourOfDay=field_map_exnjson__"HourOfDay"HourOfDay.of_jsoninmake~minuteOfHour~hourOfDay()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details about when an on-call rotation shift begins or ends."]moduleChannelTargetInfo=structtypenonrect={contactChannelId:SsmContactsArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the contact channel."];retryIntervalInMinutes:RetryIntervalInMinutes.toption[@ocaml.doc"The number of minutes to wait before retrying to send engagement if the engagement initially failed."]}letcontext_="ChannelTargetInfo"letmake?retryIntervalInMinutes=fun~contactChannelId->fun()->{retryIntervalInMinutes;contactChannelId}letto_valuex=structure_to_value[("ContactChannelId",(Some(SsmContactsArn.to_valuex.contactChannelId)));("RetryIntervalInMinutes",(Option.mapx.retryIntervalInMinutes~f:RetryIntervalInMinutes.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letretryIntervalInMinutes=(Option.map~f:RetryIntervalInMinutes.of_xml)(Xml.childxml_arg0"RetryIntervalInMinutes")inletcontactChannelId=SsmContactsArn.of_xml(Xml.child_exn~context:context_xml_arg0"ContactChannelId")inmake?retryIntervalInMinutes~contactChannelId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letretryIntervalInMinutes=field_mapjson__"RetryIntervalInMinutes"RetryIntervalInMinutes.of_jsoninletcontactChannelId=field_map_exnjson__"ContactChannelId"SsmContactsArn.of_jsoninmake?retryIntervalInMinutes~contactChannelId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about the contact channel that Incident Manager uses to engage the contact."]moduleContactTargetInfo=structtypenonrect={contactId:SsmContactsArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the contact."];isEssential:IsEssential.t[@ocaml.doc"A Boolean value determining if the contact's acknowledgement stops the progress of stages in the plan."]}letcontext_="ContactTargetInfo"letmake?contactId=fun~isEssential->fun()->{contactId;isEssential}letto_valuex=structure_to_value[("ContactId",(Option.mapx.contactId~f:SsmContactsArn.to_value));("IsEssential",(Some(IsEssential.to_valuex.isEssential)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letisEssential=IsEssential.of_xml(Xml.child_exn~context:context_xml_arg0"IsEssential")inletcontactId=(Option.map~f:SsmContactsArn.of_xml)(Xml.childxml_arg0"ContactId")inmake~isEssential?contactId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letisEssential=field_map_exnjson__"IsEssential"IsEssential.of_jsoninletcontactId=field_mapjson__"ContactId"SsmContactsArn.of_jsoninmake~isEssential?contactId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The contact that Incident Manager is engaging during an incident."]moduleDayOfMonth=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:31)>>=(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 DayOfMonth"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleCoverageTime=structtypenonrect={start:HandOffTime.toption[@ocaml.doc"Information about when the on-call rotation shift begins."];end_:HandOffTime.toption[@ocaml.doc"Information about when the on-call rotation shift ends."]}letmake?start=fun?end_->fun()->{start;end_}letto_valuex=structure_to_value[("Start",(Option.mapx.start~f:HandOffTime.to_value));("End",(Option.mapx.end_~f:HandOffTime.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letend_=(Option.map~f:HandOffTime.of_xml)(Xml.childxml_arg0"End")inletstart=(Option.map~f:HandOffTime.of_xml)(Xml.childxml_arg0"Start")inmake?end_?start()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letend_=field_mapjson__"End"HandOffTime.of_jsoninletstart=field_mapjson__"Start"HandOffTime.of_jsoninmake?end_?start()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about when an on-call shift begins and ends."]moduleDayOfWeek=structtypenonrect=|MON|TUE|WED|THU|FRI|SAT|SUN|Non_static_idofstringletmakei=iletto_string=function|MON->"MON"|TUE->"TUE"|WED->"WED"|THU->"THU"|FRI->"FRI"|SAT->"SAT"|SUN->"SUN"|Non_static_ids->sletof_string=function|"MON"->MON|"TUE"->TUE|"WED"->WED|"THU"->THU|"FRI"->FRI|"SAT"->SAT|"SUN"->SUN|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 DayOfWeek"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DayOfWeek"j)letto_json=simple_to_jsonto_valueendmoduleTarget=structtypenonrect={channelTargetInfo:ChannelTargetInfo.toption[@ocaml.doc"Information about the contact channel that Incident Manager engages."];contactTargetInfo:ContactTargetInfo.toption[@ocaml.doc"Information about the contact that Incident Manager engages."]}letmake?channelTargetInfo=fun?contactTargetInfo->fun()->{channelTargetInfo;contactTargetInfo}letto_valuex=structure_to_value[("ChannelTargetInfo",(Option.mapx.channelTargetInfo~f:ChannelTargetInfo.to_value));("ContactTargetInfo",(Option.mapx.contactTargetInfo~f:ContactTargetInfo.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcontactTargetInfo=(Option.map~f:ContactTargetInfo.of_xml)(Xml.childxml_arg0"ContactTargetInfo")inletchannelTargetInfo=(Option.map~f:ChannelTargetInfo.of_xml)(Xml.childxml_arg0"ChannelTargetInfo")inmake?contactTargetInfo?channelTargetInfo()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcontactTargetInfo=field_mapjson__"ContactTargetInfo"ContactTargetInfo.of_jsoninletchannelTargetInfo=field_mapjson__"ChannelTargetInfo"ChannelTargetInfo.of_jsoninmake?contactTargetInfo?channelTargetInfo()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The contact or contact channel that's being engaged."]moduleMonthlySetting=structtypenonrect={dayOfMonth:DayOfMonth.t[@ocaml.doc"The day of the month when monthly recurring on-call rotations begin."];handOffTime:HandOffTime.t[@ocaml.doc"The time of day when a monthly recurring on-call shift rotation begins."]}letcontext_="MonthlySetting"letmake~dayOfMonth=fun~handOffTime->fun()->{dayOfMonth;handOffTime}letto_valuex=structure_to_value[("DayOfMonth",(Some(DayOfMonth.to_valuex.dayOfMonth)));("HandOffTime",(Some(HandOffTime.to_valuex.handOffTime)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lethandOffTime=HandOffTime.of_xml(Xml.child_exn~context:context_xml_arg0"HandOffTime")inletdayOfMonth=DayOfMonth.of_xml(Xml.child_exn~context:context_xml_arg0"DayOfMonth")inmake~handOffTime~dayOfMonth()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lethandOffTime=field_map_exnjson__"HandOffTime"HandOffTime.of_jsoninletdayOfMonth=field_map_exnjson__"DayOfMonth"DayOfMonth.of_jsoninmake~handOffTime~dayOfMonth()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about on-call rotations that recur monthly."]moduleCoverageTimes=structtypenonrect=CoverageTime.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:CoverageTime.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:CoverageTime.of_xml)letof_jsonj=list_of_json~kind:"CoverageTimes"~of_json:CoverageTime.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleWeeklySetting=structtypenonrect={dayOfWeek:DayOfWeek.t[@ocaml.doc"The day of the week when weekly recurring on-call shift rotations begins."];handOffTime:HandOffTime.t[@ocaml.doc"The time of day when a weekly recurring on-call shift rotation begins."]}letcontext_="WeeklySetting"letmake~dayOfWeek=fun~handOffTime->fun()->{dayOfWeek;handOffTime}letto_valuex=structure_to_value[("DayOfWeek",(Some(DayOfWeek.to_valuex.dayOfWeek)));("HandOffTime",(Some(HandOffTime.to_valuex.handOffTime)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lethandOffTime=HandOffTime.of_xml(Xml.child_exn~context:context_xml_arg0"HandOffTime")inletdayOfWeek=DayOfWeek.of_xml(Xml.child_exn~context:context_xml_arg0"DayOfWeek")inmake~handOffTime~dayOfWeek()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lethandOffTime=field_map_exnjson__"HandOffTime"HandOffTime.of_jsoninletdayOfWeek=field_map_exnjson__"DayOfWeek"DayOfWeek.of_jsoninmake~handOffTime~dayOfWeek()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about rotations that recur weekly."]moduleSsmContactsArnList=structtypenonrect=SsmContactsArn.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:25)>>=(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:SsmContactsArn.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:SsmContactsArn.of_xml)letof_jsonj=list_of_json~kind:"SsmContactsArnList"~of_json:SsmContactsArn.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleString_=structtypenonrect=stringletcontext_="String"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"String"jletto_json=simple_to_jsonto_valueendmoduleStageDurationInMins=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:30)>>=(fun()->check_int_mini~min:0));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for StageDurationInMins"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleTargetsList=structtypenonrect=Target.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Target.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:Target.of_xml)letof_jsonj=list_of_json~kind:"TargetsList"~of_json:Target.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDailySettings=structtypenonrect=HandOffTime.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:HandOffTime.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:HandOffTime.of_xml)letof_jsonj=list_of_json~kind:"DailySettings"~of_json:HandOffTime.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMonthlySettings=structtypenonrect=MonthlySetting.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:MonthlySetting.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:MonthlySetting.of_xml)letof_jsonj=list_of_json~kind:"MonthlySettings"~of_json:MonthlySetting.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleNumberOfOnCalls=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 NumberOfOnCalls"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleRecurrenceMultiplier=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 RecurrenceMultiplier"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleShiftCoveragesMap=structtypenonrect=(DayOfWeek.t*CoverageTimes.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->let(_:string)=vinlet(_:string)=choppedinfailwith"no of_header for complex types DayOfWeek CoverageTimes"))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(DayOfWeek.to_valuex)|>(funx->(CoverageTimes.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:DayOfWeek.of_string~of_json:CoverageTimes.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleWeeklySettings=structtypenonrect=WeeklySetting.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:WeeklySetting.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:WeeklySetting.of_xml)letof_jsonj=list_of_json~kind:"WeeklySettings"~of_json:WeeklySetting.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMember=structtypenonrect=stringletcontext_="Member"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:512)>>=(fun()->check_patterni~pattern:".*\\S.*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Member"jletto_json=simple_to_jsonto_valueendmoduleSimpleAddress=structtypenonrect=stringletcontext_="SimpleAddress"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:320)>>=(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:"SimpleAddress"jletto_json=simple_to_jsonto_valueendmoduleDependentEntity=structtypenonrect={relationType:String_.toption[@ocaml.doc"The type of relationship between one resource and the other resource that it is related to or depends on."];dependentResourceIds:SsmContactsArnList.toption[@ocaml.doc"The Amazon Resource Names (ARNs) of the dependent resources."]}letmake?relationType=fun?dependentResourceIds->fun()->{relationType;dependentResourceIds}letto_valuex=structure_to_value[("RelationType",(Option.mapx.relationType~f:String_.to_value));("DependentResourceIds",(Option.mapx.dependentResourceIds~f:SsmContactsArnList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdependentResourceIds=(Option.map~f:SsmContactsArnList.of_xml)(Xml.childxml_arg0"DependentResourceIds")inletrelationType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"RelationType")inmake?dependentResourceIds?relationType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdependentResourceIds=field_mapjson__"DependentResourceIds"SsmContactsArnList.of_jsoninletrelationType=field_mapjson__"RelationType"String_.of_jsoninmake?dependentResourceIds?relationType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about a resource that another resource is related to or depends on. For example, if a contact is a member of a rotation, the rotation is a dependent entity of the contact."]moduleValidationExceptionField=structtypenonrect={name:String_.toption[@ocaml.doc"The name of the field that caused the exception."];message:String_.toption[@ocaml.doc"Information about what caused the field to cause an exception."]}letmake?name=fun?message->fun()->{name;message}letto_valuex=structure_to_value[("Name",(Option.mapx.name~f:String_.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")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Name")inmake?message?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninletname=field_mapjson__"Name"String_.of_jsoninmake?message?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides information about which field caused the exception."]moduleStage=structtypenonrect={durationInMinutes:StageDurationInMins.t[@ocaml.doc"The time to wait until beginning the next stage. The duration can only be set to 0 if a target is specified."];targets:TargetsList.t[@ocaml.doc"The contacts or contact methods that the escalation plan or engagement plan is engaging."]}letcontext_="Stage"letmake~durationInMinutes=fun~targets->fun()->{durationInMinutes;targets}letto_valuex=structure_to_value[("DurationInMinutes",(Some(StageDurationInMins.to_valuex.durationInMinutes)));("Targets",(Some(TargetsList.to_valuex.targets)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettargets=TargetsList.of_xml(Xml.child_exn~context:context_xml_arg0"Targets")inletdurationInMinutes=StageDurationInMins.of_xml(Xml.child_exn~context:context_xml_arg0"DurationInMinutes")inmake~targets~durationInMinutes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettargets=field_map_exnjson__"Targets"TargetsList.of_jsoninletdurationInMinutes=field_map_exnjson__"DurationInMinutes"StageDurationInMins.of_jsoninmake~targets~durationInMinutes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A set amount of time that an escalation plan or engagement plan engages the specified contacts or contact methods."]moduleTagKey=structtypenonrect=stringletcontext_="TagKey"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"^[\\\\\\/a-zA-Z0-9_+=\\-]*$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagKey"jletto_json=simple_to_jsonto_valueendmoduleTagValue=structtypenonrect=stringletcontext_="TagValue"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:256)>>=(fun()->check_patterni~pattern:"^[\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@]*$")));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_valueendmoduleDateTime=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_valueendmoduleRecurrenceSettings=structtypenonrect={monthlySettings:MonthlySettings.toption[@ocaml.doc"Information about on-call rotations that recur monthly."];weeklySettings:WeeklySettings.toption[@ocaml.doc"Information about on-call rotations that recur weekly."];dailySettings:DailySettings.toption[@ocaml.doc"Information about on-call rotations that recur daily."];numberOfOnCalls:NumberOfOnCalls.t[@ocaml.doc"The number of contacts, or shift team members designated to be on call concurrently during a shift. For example, in an on-call schedule that contains ten contacts, a value of 2 designates that two of them are on call at any given time."];shiftCoverages:ShiftCoveragesMap.toption[@ocaml.doc"Information about the days of the week that the on-call rotation coverage includes."];recurrenceMultiplier:RecurrenceMultiplier.t[@ocaml.doc"The number of days, weeks, or months a single rotation lasts."]}letcontext_="RecurrenceSettings"letmake?monthlySettings=fun?weeklySettings->fun?dailySettings->fun?shiftCoverages->fun~numberOfOnCalls->fun~recurrenceMultiplier->fun()->{monthlySettings;weeklySettings;dailySettings;shiftCoverages;numberOfOnCalls;recurrenceMultiplier}letto_valuex=structure_to_value[("MonthlySettings",(Option.mapx.monthlySettings~f:MonthlySettings.to_value));("WeeklySettings",(Option.mapx.weeklySettings~f:WeeklySettings.to_value));("DailySettings",(Option.mapx.dailySettings~f:DailySettings.to_value));("NumberOfOnCalls",(Some(NumberOfOnCalls.to_valuex.numberOfOnCalls)));("ShiftCoverages",(Option.mapx.shiftCoverages~f:ShiftCoveragesMap.to_value));("RecurrenceMultiplier",(Some(RecurrenceMultiplier.to_valuex.recurrenceMultiplier)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrecurrenceMultiplier=RecurrenceMultiplier.of_xml(Xml.child_exn~context:context_xml_arg0"RecurrenceMultiplier")inletshiftCoverages=(Option.map~f:ShiftCoveragesMap.of_xml)(Xml.childxml_arg0"ShiftCoverages")inletnumberOfOnCalls=NumberOfOnCalls.of_xml(Xml.child_exn~context:context_xml_arg0"NumberOfOnCalls")inletdailySettings=(Option.map~f:DailySettings.of_xml)(Xml.childxml_arg0"DailySettings")inletweeklySettings=(Option.map~f:WeeklySettings.of_xml)(Xml.childxml_arg0"WeeklySettings")inletmonthlySettings=(Option.map~f:MonthlySettings.of_xml)(Xml.childxml_arg0"MonthlySettings")inmake~recurrenceMultiplier?shiftCoverages~numberOfOnCalls?dailySettings?weeklySettings?monthlySettings()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrecurrenceMultiplier=field_map_exnjson__"RecurrenceMultiplier"RecurrenceMultiplier.of_jsoninletshiftCoverages=field_mapjson__"ShiftCoverages"ShiftCoveragesMap.of_jsoninletnumberOfOnCalls=field_map_exnjson__"NumberOfOnCalls"NumberOfOnCalls.of_jsoninletdailySettings=field_mapjson__"DailySettings"DailySettings.of_jsoninletweeklySettings=field_mapjson__"WeeklySettings"WeeklySettings.of_jsoninletmonthlySettings=field_mapjson__"MonthlySettings"MonthlySettings.of_jsoninmake~recurrenceMultiplier?shiftCoverages~numberOfOnCalls?dailySettings?weeklySettings?monthlySettings()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about when an on-call rotation is in effect and how long the rotation period lasts."]moduleRotationName=structtypenonrect=stringletcontext_="RotationName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(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:"RotationName"jletto_json=simple_to_jsonto_valueendmoduleTimeZoneId=structtypenonrect=stringletcontext_="TimeZoneId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(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:"TimeZoneId"jletto_json=simple_to_jsonto_valueendmoduleShiftDetails=structtypenonrect={overriddenContactIds:SsmContactsArnList.toption[@ocaml.doc"The Amazon Resources Names (ARNs) of the contacts who were replaced in a shift when an override was created. If the override is deleted, these contacts are restored to the shift."]}letmake?overriddenContactIds=fun()->{overriddenContactIds}letto_valuex=structure_to_value[("OverriddenContactIds",(Option.mapx.overriddenContactIds~f:SsmContactsArnList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoverriddenContactIds=(Option.map~f:SsmContactsArnList.of_xml)(Xml.childxml_arg0"OverriddenContactIds")inmake?overriddenContactIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoverriddenContactIds=field_mapjson__"OverriddenContactIds"SsmContactsArnList.of_jsoninmake?overriddenContactIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about overrides to an on-call rotation shift."]moduleShiftType=structtypenonrect=|REGULAR|OVERRIDDEN|Non_static_idofstringletmakei=iletto_string=function|REGULAR->"REGULAR"|OVERRIDDEN->"OVERRIDDEN"|Non_static_ids->sletof_string=function|"REGULAR"->REGULAR|"OVERRIDDEN"->OVERRIDDEN|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 ShiftType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ShiftType"j)letto_json=simple_to_jsonto_valueendmoduleUuid=structtypenonrect=stringletcontext_="Uuid"letmakei=letopenResultinok_or_failwith((check_string_mini~min:36)>>=(fun()->(check_string_maxi~max:39)>>=(fun()->check_patterni~pattern:"([a-fA-Z0-9]{8,11}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}){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:"Uuid"jletto_json=simple_to_jsonto_valueendmoduleRotationOverridePreviewMemberList=structtypenonrect=Member.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:Member.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:Member.of_xml)letof_jsonj=list_of_json~kind:"RotationOverridePreviewMemberList"~of_json:Member.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleIncidentId=structtypenonrect=stringletcontext_="IncidentId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(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:"IncidentId"jletto_json=simple_to_jsonto_valueendmoduleSender=structtypenonrect=stringletcontext_="Sender"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:255)>>=(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:"Sender"jletto_json=simple_to_jsonto_valueendmoduleContactType=structtypenonrect=|PERSONAL|ESCALATION|ONCALL_SCHEDULE|Non_static_idofstringletmakei=iletto_string=function|PERSONAL->"PERSONAL"|ESCALATION->"ESCALATION"|ONCALL_SCHEDULE->"ONCALL_SCHEDULE"|Non_static_ids->sletof_string=function|"PERSONAL"->PERSONAL|"ESCALATION"->ESCALATION|"ONCALL_SCHEDULE"->ONCALL_SCHEDULE|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 ContactType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ContactType"j)letto_json=simple_to_jsonto_valueendmoduleStageIndex=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:0));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for StageIndex"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleReceiptInfo=structtypenonrect=stringletcontext_="ReceiptInfo"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"^[.\\s\\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:"ReceiptInfo"jletto_json=simple_to_jsonto_valueendmoduleReceiptType=structtypenonrect=|DELIVERED|ERROR|READ|SENT|STOP|Non_static_idofstringletmakei=iletto_string=function|DELIVERED->"DELIVERED"|ERROR->"ERROR"|READ->"READ"|SENT->"SENT"|STOP->"STOP"|Non_static_ids->sletof_string=function|"DELIVERED"->DELIVERED|"ERROR"->ERROR|"READ"->READ|"SENT"->SENT|"STOP"->STOP|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 ReceiptType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ReceiptType"j)letto_json=simple_to_jsonto_valueendmoduleContactAlias=structtypenonrect=stringletcontext_="ContactAlias"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"^[a-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:"ContactAlias"jletto_json=simple_to_jsonto_valueendmoduleContactName=structtypenonrect=stringletcontext_="ContactName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"^[\\p{L}\\p{Z}\\p{N}_.\\-]*$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ContactName"jletto_json=simple_to_jsonto_valueendmoduleActivationStatus=structtypenonrect=|ACTIVATED|NOT_ACTIVATED|Non_static_idofstringletmakei=iletto_string=function|ACTIVATED->"ACTIVATED"|NOT_ACTIVATED->"NOT_ACTIVATED"|Non_static_ids->sletof_string=function|"ACTIVATED"->ACTIVATED|"NOT_ACTIVATED"->NOT_ACTIVATED|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 ActivationStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ActivationStatus"j)letto_json=simple_to_jsonto_valueendmoduleChannelName=structtypenonrect=stringletcontext_="ChannelName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"^[\\p{L}\\p{Z}\\p{N}_.\\-]*$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ChannelName"jletto_json=simple_to_jsonto_valueendmoduleChannelType=structtypenonrect=|SMS|VOICE|EMAIL|Non_static_idofstringletmakei=iletto_string=function|SMS->"SMS"|VOICE->"VOICE"|EMAIL->"EMAIL"|Non_static_ids->sletof_string=function|"SMS"->SMS|"VOICE"->VOICE|"EMAIL"->EMAIL|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 ChannelType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ChannelType"j)letto_json=simple_to_jsonto_valueendmoduleContactChannelAddress=structtypenonrect={simpleAddress:SimpleAddress.toption[@ocaml.doc"The format is dependent on the type of the contact channel. The following are the expected formats: SMS - '+' followed by the country code and phone number VOICE - '+' followed by the country code and phone number EMAIL - any standard email format"]}letmake?simpleAddress=fun()->{simpleAddress}letto_valuex=structure_to_value[("SimpleAddress",(Option.mapx.simpleAddress~f:SimpleAddress.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsimpleAddress=(Option.map~f:SimpleAddress.of_xml)(Xml.childxml_arg0"SimpleAddress")inmake?simpleAddress()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsimpleAddress=field_mapjson__"SimpleAddress"SimpleAddress.of_jsoninmake?simpleAddress()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The details that Incident Manager uses when trying to engage the contact channel."]moduleDependentEntityList=structtypenonrect=DependentEntity.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DependentEntity.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:DependentEntity.of_xml)letof_jsonj=list_of_json~kind:"DependentEntityList"~of_json:DependentEntity.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRetryAfterSeconds=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 RetryAfterSeconds"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleValidationExceptionFieldList=structtypenonrect=ValidationExceptionField.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ValidationExceptionField.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:ValidationExceptionField.of_xml)letof_jsonj=list_of_json~kind:"ValidationExceptionFieldList"~of_json:ValidationExceptionField.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleValidationExceptionReason=structtypenonrect=|UNKNOWN_OPERATION|CANNOT_PARSE|FIELD_VALIDATION_FAILED|OTHER|Non_static_idofstringletmakei=iletto_string=function|UNKNOWN_OPERATION->"UNKNOWN_OPERATION"|CANNOT_PARSE->"CANNOT_PARSE"|FIELD_VALIDATION_FAILED->"FIELD_VALIDATION_FAILED"|OTHER->"OTHER"|Non_static_ids->sletof_string=function|"UNKNOWN_OPERATION"->UNKNOWN_OPERATION|"CANNOT_PARSE"->CANNOT_PARSE|"FIELD_VALIDATION_FAILED"->FIELD_VALIDATION_FAILED|"OTHER"->OTHER|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 ValidationExceptionReason"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ValidationExceptionReason"j)letto_json=simple_to_jsonto_valueendmoduleStagesList=structtypenonrect=Stage.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Stage.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:Stage.of_xml)letof_jsonj=list_of_json~kind:"StagesList"~of_json:Stage.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTag=structtypenonrect={key:TagKey.toption[@ocaml.doc"Name of the object key."];value:TagValue.toption[@ocaml.doc"Value of the tag."]}letmake?key=fun?value->fun()->{key;value}letto_valuex=structure_to_value[("Key",(Option.mapx.key~f:TagKey.to_value));("Value",(Option.mapx.value~f:TagValue.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=(Option.map~f:TagValue.of_xml)(Xml.childxml_arg0"Value")inletkey=(Option.map~f:TagKey.of_xml)(Xml.childxml_arg0"Key")inmake?value?key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_mapjson__"Value"TagValue.of_jsoninletkey=field_mapjson__"Key"TagKey.of_jsoninmake?value?key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A container of a key-value name pair."]moduleRotation=structtypenonrect={rotationArn:SsmContactsArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the rotation."];name:RotationName.toption[@ocaml.doc"The name of the rotation."];contactIds:SsmContactsArnList.toption[@ocaml.doc"The Amazon Resource Names (ARNs) of the contacts assigned to the rotation team."];startTime:DateTime.toption[@ocaml.doc"The date and time the rotation becomes active."];timeZoneId:TimeZoneId.toption[@ocaml.doc"The time zone the rotation\226\128\153s activity is based on, in Internet Assigned Numbers Authority (IANA) format. For example: \"America/Los_Angeles\", \"UTC\", or \"Asia/Seoul\"."];recurrence:RecurrenceSettings.toption[@ocaml.doc"Information about when an on-call rotation is in effect and how long the rotation period lasts."]}letmake?rotationArn=fun?name->fun?contactIds->fun?startTime->fun?timeZoneId->fun?recurrence->fun()->{rotationArn;name;contactIds;startTime;timeZoneId;recurrence}letto_valuex=structure_to_value[("RotationArn",(Option.mapx.rotationArn~f:SsmContactsArn.to_value));("Name",(Option.mapx.name~f:RotationName.to_value));("ContactIds",(Option.mapx.contactIds~f:SsmContactsArnList.to_value));("StartTime",(Option.mapx.startTime~f:DateTime.to_value));("TimeZoneId",(Option.mapx.timeZoneId~f:TimeZoneId.to_value));("Recurrence",(Option.mapx.recurrence~f:RecurrenceSettings.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrecurrence=(Option.map~f:RecurrenceSettings.of_xml)(Xml.childxml_arg0"Recurrence")inlettimeZoneId=(Option.map~f:TimeZoneId.of_xml)(Xml.childxml_arg0"TimeZoneId")inletstartTime=(Option.map~f:DateTime.of_xml)(Xml.childxml_arg0"StartTime")inletcontactIds=(Option.map~f:SsmContactsArnList.of_xml)(Xml.childxml_arg0"ContactIds")inletname=(Option.map~f:RotationName.of_xml)(Xml.childxml_arg0"Name")inletrotationArn=(Option.map~f:SsmContactsArn.of_xml)(Xml.childxml_arg0"RotationArn")inmake?recurrence?timeZoneId?startTime?contactIds?name?rotationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrecurrence=field_mapjson__"Recurrence"RecurrenceSettings.of_jsoninlettimeZoneId=field_mapjson__"TimeZoneId"TimeZoneId.of_jsoninletstartTime=field_mapjson__"StartTime"DateTime.of_jsoninletcontactIds=field_mapjson__"ContactIds"SsmContactsArnList.of_jsoninletname=field_mapjson__"Name"RotationName.of_jsoninletrotationArn=field_mapjson__"RotationArn"SsmContactsArn.of_jsoninmake?recurrence?timeZoneId?startTime?contactIds?name?rotationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about a rotation in an on-call schedule."]moduleRotationShift=structtypenonrect={contactIds:SsmContactsArnList.toption[@ocaml.doc"The Amazon Resource Names (ARNs) of the contacts who are part of the shift rotation."];startTime:DateTime.toption[@ocaml.doc"The time a shift rotation begins."];endTime:DateTime.toption[@ocaml.doc"The time a shift rotation ends."];type_:ShiftType.toption[@ocaml.doc"The type of shift rotation."];shiftDetails:ShiftDetails.toption[@ocaml.doc"Additional information about an on-call rotation shift."]}letmake?contactIds=fun?startTime->fun?endTime->fun?type_->fun?shiftDetails->fun()->{contactIds;startTime;endTime;type_;shiftDetails}letto_valuex=structure_to_value[("ContactIds",(Option.mapx.contactIds~f:SsmContactsArnList.to_value));("StartTime",(Option.mapx.startTime~f:DateTime.to_value));("EndTime",(Option.mapx.endTime~f:DateTime.to_value));("Type",(Option.mapx.type_~f:ShiftType.to_value));("ShiftDetails",(Option.mapx.shiftDetails~f:ShiftDetails.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letshiftDetails=(Option.map~f:ShiftDetails.of_xml)(Xml.childxml_arg0"ShiftDetails")inlettype_=(Option.map~f:ShiftType.of_xml)(Xml.childxml_arg0"Type")inletendTime=(Option.map~f:DateTime.of_xml)(Xml.childxml_arg0"EndTime")inletstartTime=(Option.map~f:DateTime.of_xml)(Xml.childxml_arg0"StartTime")inletcontactIds=(Option.map~f:SsmContactsArnList.of_xml)(Xml.childxml_arg0"ContactIds")inmake?shiftDetails?type_?endTime?startTime?contactIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letshiftDetails=field_mapjson__"ShiftDetails"ShiftDetails.of_jsoninlettype_=field_mapjson__"Type"ShiftType.of_jsoninletendTime=field_mapjson__"EndTime"DateTime.of_jsoninletstartTime=field_mapjson__"StartTime"DateTime.of_jsoninletcontactIds=field_mapjson__"ContactIds"SsmContactsArnList.of_jsoninmake?shiftDetails?type_?endTime?startTime?contactIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about a shift that belongs to an on-call rotation."]moduleRotationOverride=structtypenonrect={rotationOverrideId:Uuid.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the override to an on-call rotation."];newContactIds:SsmContactsArnList.toption[@ocaml.doc"The Amazon Resource Names (ARNs) of the contacts assigned to the override of the on-call rotation."];startTime:DateTime.toption[@ocaml.doc"The time a rotation override begins."];endTime:DateTime.toption[@ocaml.doc"The time a rotation override ends."];createTime:DateTime.toption[@ocaml.doc"The time a rotation override was created."]}letmake?rotationOverrideId=fun?newContactIds->fun?startTime->fun?endTime->fun?createTime->fun()->{rotationOverrideId;newContactIds;startTime;endTime;createTime}letto_valuex=structure_to_value[("RotationOverrideId",(Option.mapx.rotationOverrideId~f:Uuid.to_value));("NewContactIds",(Option.mapx.newContactIds~f:SsmContactsArnList.to_value));("StartTime",(Option.mapx.startTime~f:DateTime.to_value));("EndTime",(Option.mapx.endTime~f:DateTime.to_value));("CreateTime",(Option.mapx.createTime~f:DateTime.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcreateTime=(Option.map~f:DateTime.of_xml)(Xml.childxml_arg0"CreateTime")inletendTime=(Option.map~f:DateTime.of_xml)(Xml.childxml_arg0"EndTime")inletstartTime=(Option.map~f:DateTime.of_xml)(Xml.childxml_arg0"StartTime")inletnewContactIds=(Option.map~f:SsmContactsArnList.of_xml)(Xml.childxml_arg0"NewContactIds")inletrotationOverrideId=(Option.map~f:Uuid.of_xml)(Xml.childxml_arg0"RotationOverrideId")inmake?createTime?endTime?startTime?newContactIds?rotationOverrideId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcreateTime=field_mapjson__"CreateTime"DateTime.of_jsoninletendTime=field_mapjson__"EndTime"DateTime.of_jsoninletstartTime=field_mapjson__"StartTime"DateTime.of_jsoninletnewContactIds=field_mapjson__"NewContactIds"SsmContactsArnList.of_jsoninletrotationOverrideId=field_mapjson__"RotationOverrideId"Uuid.of_jsoninmake?createTime?endTime?startTime?newContactIds?rotationOverrideId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about an override specified for an on-call rotation."]modulePreviewOverride=structtypenonrect={newMembers:RotationOverridePreviewMemberList.toption[@ocaml.doc"Information about contacts to add to an on-call rotation override."];startTime:DateTime.toption[@ocaml.doc"Information about the time a rotation override would begin."];endTime:DateTime.toption[@ocaml.doc"Information about the time a rotation override would end."]}letmake?newMembers=fun?startTime->fun?endTime->fun()->{newMembers;startTime;endTime}letto_valuex=structure_to_value[("NewMembers",(Option.mapx.newMembers~f:RotationOverridePreviewMemberList.to_value));("StartTime",(Option.mapx.startTime~f:DateTime.to_value));("EndTime",(Option.mapx.endTime~f:DateTime.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letendTime=(Option.map~f:DateTime.of_xml)(Xml.childxml_arg0"EndTime")inletstartTime=(Option.map~f:DateTime.of_xml)(Xml.childxml_arg0"StartTime")inletnewMembers=(Option.map~f:RotationOverridePreviewMemberList.of_xml)(Xml.childxml_arg0"NewMembers")inmake?endTime?startTime?newMembers()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letendTime=field_mapjson__"EndTime"DateTime.of_jsoninletstartTime=field_mapjson__"StartTime"DateTime.of_jsoninletnewMembers=field_mapjson__"NewMembers"RotationOverridePreviewMemberList.of_jsoninmake?endTime?startTime?newMembers()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about contacts and times that an on-call override replaces."]modulePage=structtypenonrect={pageArn:SsmContactsArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the page to the contact channel."];engagementArn:SsmContactsArn.toption[@ocaml.doc"The ARN of the engagement that this page is part of."];contactArn:SsmContactsArn.toption[@ocaml.doc"The ARN of the contact that Incident Manager is engaging."];sender:Sender.toption[@ocaml.doc"The user that started the engagement."];incidentId:IncidentId.toption[@ocaml.doc"The ARN of the incident that's engaging the contact channel."];sentTime:DateTime.toption[@ocaml.doc"The time that Incident Manager engaged the contact channel."];deliveryTime:DateTime.toption[@ocaml.doc"The time the message was delivered to the contact channel."];readTime:DateTime.toption[@ocaml.doc"The time that the contact channel acknowledged engagement."]}letmake?pageArn=fun?engagementArn->fun?contactArn->fun?sender->fun?incidentId->fun?sentTime->fun?deliveryTime->fun?readTime->fun()->{pageArn;engagementArn;contactArn;sender;incidentId;sentTime;deliveryTime;readTime}letto_valuex=structure_to_value[("PageArn",(Option.mapx.pageArn~f:SsmContactsArn.to_value));("EngagementArn",(Option.mapx.engagementArn~f:SsmContactsArn.to_value));("ContactArn",(Option.mapx.contactArn~f:SsmContactsArn.to_value));("Sender",(Option.mapx.sender~f:Sender.to_value));("IncidentId",(Option.mapx.incidentId~f:IncidentId.to_value));("SentTime",(Option.mapx.sentTime~f:DateTime.to_value));("DeliveryTime",(Option.mapx.deliveryTime~f:DateTime.to_value));("ReadTime",(Option.mapx.readTime~f:DateTime.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreadTime=(Option.map~f:DateTime.of_xml)(Xml.childxml_arg0"ReadTime")inletdeliveryTime=(Option.map~f:DateTime.of_xml)(Xml.childxml_arg0"DeliveryTime")inletsentTime=(Option.map~f:DateTime.of_xml)(Xml.childxml_arg0"SentTime")inletincidentId=(Option.map~f:IncidentId.of_xml)(Xml.childxml_arg0"IncidentId")inletsender=(Option.map~f:Sender.of_xml)(Xml.childxml_arg0"Sender")inletcontactArn=(Option.map~f:SsmContactsArn.of_xml)(Xml.childxml_arg0"ContactArn")inletengagementArn=(Option.map~f:SsmContactsArn.of_xml)(Xml.childxml_arg0"EngagementArn")inletpageArn=(Option.map~f:SsmContactsArn.of_xml)(Xml.childxml_arg0"PageArn")inmake?readTime?deliveryTime?sentTime?incidentId?sender?contactArn?engagementArn?pageArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreadTime=field_mapjson__"ReadTime"DateTime.of_jsoninletdeliveryTime=field_mapjson__"DeliveryTime"DateTime.of_jsoninletsentTime=field_mapjson__"SentTime"DateTime.of_jsoninletincidentId=field_mapjson__"IncidentId"IncidentId.of_jsoninletsender=field_mapjson__"Sender"Sender.of_jsoninletcontactArn=field_mapjson__"ContactArn"SsmContactsArn.of_jsoninletengagementArn=field_mapjson__"EngagementArn"SsmContactsArn.of_jsoninletpageArn=field_mapjson__"PageArn"SsmContactsArn.of_jsoninmake?readTime?deliveryTime?sentTime?incidentId?sender?contactArn?engagementArn?pageArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Incident Manager engaging a contact's contact channel."]moduleResolutionContact=structtypenonrect={contactArn:SsmContactsArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of a contact in the engagement resolution process."];type_:ContactType.toption[@ocaml.doc"The type of contact for a resolution step."];stageIndex:StageIndex.toption[@ocaml.doc"The stage in the escalation plan that resolves to this contact."]}letmake?contactArn=fun?type_->fun?stageIndex->fun()->{contactArn;type_;stageIndex}letto_valuex=structure_to_value[("ContactArn",(Option.mapx.contactArn~f:SsmContactsArn.to_value));("Type",(Option.mapx.type_~f:ContactType.to_value));("StageIndex",(Option.mapx.stageIndex~f:StageIndex.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstageIndex=(Option.map~f:StageIndex.of_xml)(Xml.childxml_arg0"StageIndex")inlettype_=(Option.map~f:ContactType.of_xml)(Xml.childxml_arg0"Type")inletcontactArn=(Option.map~f:SsmContactsArn.of_xml)(Xml.childxml_arg0"ContactArn")inmake?stageIndex?type_?contactArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstageIndex=field_mapjson__"StageIndex"StageIndex.of_jsoninlettype_=field_mapjson__"Type"ContactType.of_jsoninletcontactArn=field_mapjson__"ContactArn"SsmContactsArn.of_jsoninmake?stageIndex?type_?contactArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about the engagement resolution steps. The resolution starts from the first contact, which can be an escalation plan, then resolves to an on-call rotation, and finally to a personal contact. The ResolutionContact structure describes the information for each node or step in that process. It contains information about different contact types, such as the escalation, rotation, and personal contacts."]moduleReceipt=structtypenonrect={contactChannelArn:SsmContactsArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the contact channel Incident Manager engaged."];receiptType:ReceiptType.toption[@ocaml.doc"The type follows the engagement cycle, SENT, DELIVERED, and READ."];receiptInfo:ReceiptInfo.toption[@ocaml.doc"Information provided during the page acknowledgement."];receiptTime:DateTime.toption[@ocaml.doc"The time receipt was SENT, DELIVERED, or READ."]}letmake?contactChannelArn=fun?receiptType->fun?receiptInfo->fun?receiptTime->fun()->{contactChannelArn;receiptType;receiptInfo;receiptTime}letto_valuex=structure_to_value[("ContactChannelArn",(Option.mapx.contactChannelArn~f:SsmContactsArn.to_value));("ReceiptType",(Option.mapx.receiptType~f:ReceiptType.to_value));("ReceiptInfo",(Option.mapx.receiptInfo~f:ReceiptInfo.to_value));("ReceiptTime",(Option.mapx.receiptTime~f:DateTime.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreceiptTime=(Option.map~f:DateTime.of_xml)(Xml.childxml_arg0"ReceiptTime")inletreceiptInfo=(Option.map~f:ReceiptInfo.of_xml)(Xml.childxml_arg0"ReceiptInfo")inletreceiptType=(Option.map~f:ReceiptType.of_xml)(Xml.childxml_arg0"ReceiptType")inletcontactChannelArn=(Option.map~f:SsmContactsArn.of_xml)(Xml.childxml_arg0"ContactChannelArn")inmake?receiptTime?receiptInfo?receiptType?contactChannelArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreceiptTime=field_mapjson__"ReceiptTime"DateTime.of_jsoninletreceiptInfo=field_mapjson__"ReceiptInfo"ReceiptInfo.of_jsoninletreceiptType=field_mapjson__"ReceiptType"ReceiptType.of_jsoninletcontactChannelArn=field_mapjson__"ContactChannelArn"SsmContactsArn.of_jsoninmake?receiptTime?receiptInfo?receiptType?contactChannelArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Records events during an engagement."]moduleEngagement=structtypenonrect={engagementArn:SsmContactsArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the engagement."];contactArn:SsmContactsArn.toption[@ocaml.doc"The ARN of the escalation plan or contact that Incident Manager is engaging."];sender:Sender.toption[@ocaml.doc"The user that started the engagement."];incidentId:IncidentId.toption[@ocaml.doc"The ARN of the incident that's engaging the contact."];startTime:DateTime.toption[@ocaml.doc"The time that the engagement began."];stopTime:DateTime.toption[@ocaml.doc"The time that the engagement ended."]}letmake?engagementArn=fun?contactArn->fun?sender->fun?incidentId->fun?startTime->fun?stopTime->fun()->{engagementArn;contactArn;sender;incidentId;startTime;stopTime}letto_valuex=structure_to_value[("EngagementArn",(Option.mapx.engagementArn~f:SsmContactsArn.to_value));("ContactArn",(Option.mapx.contactArn~f:SsmContactsArn.to_value));("Sender",(Option.mapx.sender~f:Sender.to_value));("IncidentId",(Option.mapx.incidentId~f:IncidentId.to_value));("StartTime",(Option.mapx.startTime~f:DateTime.to_value));("StopTime",(Option.mapx.stopTime~f:DateTime.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstopTime=(Option.map~f:DateTime.of_xml)(Xml.childxml_arg0"StopTime")inletstartTime=(Option.map~f:DateTime.of_xml)(Xml.childxml_arg0"StartTime")inletincidentId=(Option.map~f:IncidentId.of_xml)(Xml.childxml_arg0"IncidentId")inletsender=(Option.map~f:Sender.of_xml)(Xml.childxml_arg0"Sender")inletcontactArn=(Option.map~f:SsmContactsArn.of_xml)(Xml.childxml_arg0"ContactArn")inletengagementArn=(Option.map~f:SsmContactsArn.of_xml)(Xml.childxml_arg0"EngagementArn")inmake?stopTime?startTime?incidentId?sender?contactArn?engagementArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstopTime=field_mapjson__"StopTime"DateTime.of_jsoninletstartTime=field_mapjson__"StartTime"DateTime.of_jsoninletincidentId=field_mapjson__"IncidentId"IncidentId.of_jsoninletsender=field_mapjson__"Sender"Sender.of_jsoninletcontactArn=field_mapjson__"ContactArn"SsmContactsArn.of_jsoninletengagementArn=field_mapjson__"EngagementArn"SsmContactsArn.of_jsoninmake?stopTime?startTime?incidentId?sender?contactArn?engagementArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Incident Manager reaching out to a contact or escalation plan to engage contact during an incident."]moduleContact=structtypenonrect={contactArn:SsmContactsArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the contact or escalation plan."];alias:ContactAlias.toption[@ocaml.doc"The unique and identifiable alias of the contact or escalation plan."];displayName:ContactName.toption[@ocaml.doc"The full name of the contact or escalation plan."];type_:ContactType.toption[@ocaml.doc"The type of contact. PERSONAL: A single, individual contact. ESCALATION: An escalation plan. ONCALL_SCHEDULE: An on-call schedule."]}letmake?contactArn=fun?alias->fun?displayName->fun?type_->fun()->{contactArn;alias;displayName;type_}letto_valuex=structure_to_value[("ContactArn",(Option.mapx.contactArn~f:SsmContactsArn.to_value));("Alias",(Option.mapx.alias~f:ContactAlias.to_value));("DisplayName",(Option.mapx.displayName~f:ContactName.to_value));("Type",(Option.mapx.type_~f:ContactType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettype_=(Option.map~f:ContactType.of_xml)(Xml.childxml_arg0"Type")inletdisplayName=(Option.map~f:ContactName.of_xml)(Xml.childxml_arg0"DisplayName")inletalias=(Option.map~f:ContactAlias.of_xml)(Xml.childxml_arg0"Alias")inletcontactArn=(Option.map~f:SsmContactsArn.of_xml)(Xml.childxml_arg0"ContactArn")inmake?type_?displayName?alias?contactArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettype_=field_mapjson__"Type"ContactType.of_jsoninletdisplayName=field_mapjson__"DisplayName"ContactName.of_jsoninletalias=field_mapjson__"Alias"ContactAlias.of_jsoninletcontactArn=field_mapjson__"ContactArn"SsmContactsArn.of_jsoninmake?type_?displayName?alias?contactArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A personal contact or escalation plan that Incident Manager engages during an incident."]moduleContactChannel=structtypenonrect={contactChannelArn:SsmContactsArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the contact channel."];contactArn:SsmContactsArn.toption[@ocaml.doc"The ARN of the contact that contains the contact channel."];name:ChannelName.toption[@ocaml.doc"The name of the contact channel."];type_:ChannelType.toption[@ocaml.doc"The type of the contact channel. Incident Manager supports three contact methods: SMS VOICE EMAIL"];deliveryAddress:ContactChannelAddress.toption[@ocaml.doc"The details that Incident Manager uses when trying to engage the contact channel."];activationStatus:ActivationStatus.toption[@ocaml.doc"A Boolean value describing if the contact channel has been activated or not. If the contact channel isn't activated, Incident Manager can't engage the contact through it."]}letmake?contactChannelArn=fun?contactArn->fun?name->fun?type_->fun?deliveryAddress->fun?activationStatus->fun()->{contactChannelArn;contactArn;name;type_;deliveryAddress;activationStatus}letto_valuex=structure_to_value[("ContactChannelArn",(Option.mapx.contactChannelArn~f:SsmContactsArn.to_value));("ContactArn",(Option.mapx.contactArn~f:SsmContactsArn.to_value));("Name",(Option.mapx.name~f:ChannelName.to_value));("Type",(Option.mapx.type_~f:ChannelType.to_value));("DeliveryAddress",(Option.mapx.deliveryAddress~f:ContactChannelAddress.to_value));("ActivationStatus",(Option.mapx.activationStatus~f:ActivationStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letactivationStatus=(Option.map~f:ActivationStatus.of_xml)(Xml.childxml_arg0"ActivationStatus")inletdeliveryAddress=(Option.map~f:ContactChannelAddress.of_xml)(Xml.childxml_arg0"DeliveryAddress")inlettype_=(Option.map~f:ChannelType.of_xml)(Xml.childxml_arg0"Type")inletname=(Option.map~f:ChannelName.of_xml)(Xml.childxml_arg0"Name")inletcontactArn=(Option.map~f:SsmContactsArn.of_xml)(Xml.childxml_arg0"ContactArn")inletcontactChannelArn=(Option.map~f:SsmContactsArn.of_xml)(Xml.childxml_arg0"ContactChannelArn")inmake?activationStatus?deliveryAddress?type_?name?contactArn?contactChannelArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letactivationStatus=field_mapjson__"ActivationStatus"ActivationStatus.of_jsoninletdeliveryAddress=field_mapjson__"DeliveryAddress"ContactChannelAddress.of_jsoninlettype_=field_mapjson__"Type"ChannelType.of_jsoninletname=field_mapjson__"Name"ChannelName.of_jsoninletcontactArn=field_mapjson__"ContactArn"SsmContactsArn.of_jsoninletcontactChannelArn=field_mapjson__"ContactChannelArn"SsmContactsArn.of_jsoninmake?activationStatus?deliveryAddress?type_?name?contactArn?contactChannelArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The method that Incident Manager uses to engage a contact."]moduleAccessDeniedException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You don't have sufficient access to perform this operation."]moduleConflictException=structtypenonrect={message:String_.toption;resourceId:String_.toption[@ocaml.doc"Identifier of the resource in use"];resourceType:String_.toption[@ocaml.doc"Type of the resource in use"];dependentEntities:DependentEntityList.toption[@ocaml.doc"List of dependent entities containing information on relation type and resourceArns linked to the resource in use"]}letmake?message=fun?resourceId->fun?resourceType->fun?dependentEntities->fun()->{message;resourceId;resourceType;dependentEntities}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:String_.to_value));("ResourceId",(Option.mapx.resourceId~f:String_.to_value));("ResourceType",(Option.mapx.resourceType~f:String_.to_value));("DependentEntities",(Option.mapx.dependentEntities~f:DependentEntityList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdependentEntities=(Option.map~f:DependentEntityList.of_xml)(Xml.childxml_arg0"DependentEntities")inletresourceType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ResourceType")inletresourceId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ResourceId")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inmake?dependentEntities?resourceType?resourceId?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdependentEntities=field_mapjson__"DependentEntities"DependentEntityList.of_jsoninletresourceType=field_mapjson__"ResourceType"String_.of_jsoninletresourceId=field_mapjson__"ResourceId"String_.of_jsoninletmessage=field_mapjson__"Message"String_.of_jsoninmake?dependentEntities?resourceType?resourceId?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updating or deleting a resource causes an inconsistent state."]moduleInternalServerException=structtypenonrect={message:String_.toption;retryAfterSeconds:RetryAfterSeconds.toption[@ocaml.doc"Advice to clients on when the call can be safely retried"]}letmake?message=fun?retryAfterSeconds->fun()->{message;retryAfterSeconds}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:String_.to_value));("RetryAfterSeconds",(Option.mapx.retryAfterSeconds~f:RetryAfterSeconds.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letretryAfterSeconds=(Option.map~f:RetryAfterSeconds.of_xml)(Xml.childxml_arg0"RetryAfterSeconds")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inmake?retryAfterSeconds?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letretryAfterSeconds=field_mapjson__"RetryAfterSeconds"RetryAfterSeconds.of_jsoninletmessage=field_mapjson__"Message"String_.of_jsoninmake?retryAfterSeconds?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Unexpected error occurred while processing the request."]moduleResourceNotFoundException=structtypenonrect={message:String_.toption;resourceId:String_.toption[@ocaml.doc"Hypothetical resource identifier that was not found"];resourceType:String_.toption[@ocaml.doc"Hypothetical resource type that was not found"]}letmake?message=fun?resourceId->fun?resourceType->fun()->{message;resourceId;resourceType}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:String_.to_value));("ResourceId",(Option.mapx.resourceId~f:String_.to_value));("ResourceType",(Option.mapx.resourceType~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ResourceType")inletresourceId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ResourceId")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inmake?resourceType?resourceId?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceType=field_mapjson__"ResourceType"String_.of_jsoninletresourceId=field_mapjson__"ResourceId"String_.of_jsoninletmessage=field_mapjson__"Message"String_.of_jsoninmake?resourceType?resourceId?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request references a resource that doesn't exist."]moduleThrottlingException=structtypenonrect={message:String_.toption;quotaCode:String_.toption[@ocaml.doc"Service Quotas requirement to identify originating service"];serviceCode:String_.toption[@ocaml.doc"Service Quotas requirement to identify originating quota"];retryAfterSeconds:RetryAfterSeconds.toption[@ocaml.doc"Advice to clients on when the call can be safely retried"]}letmake?message=fun?quotaCode->fun?serviceCode->fun?retryAfterSeconds->fun()->{message;quotaCode;serviceCode;retryAfterSeconds}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:String_.to_value));("QuotaCode",(Option.mapx.quotaCode~f:String_.to_value));("ServiceCode",(Option.mapx.serviceCode~f:String_.to_value));("RetryAfterSeconds",(Option.mapx.retryAfterSeconds~f:RetryAfterSeconds.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letretryAfterSeconds=(Option.map~f:RetryAfterSeconds.of_xml)(Xml.childxml_arg0"RetryAfterSeconds")inletserviceCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ServiceCode")inletquotaCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"QuotaCode")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inmake?retryAfterSeconds?serviceCode?quotaCode?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letretryAfterSeconds=field_mapjson__"RetryAfterSeconds"RetryAfterSeconds.of_jsoninletserviceCode=field_mapjson__"ServiceCode"String_.of_jsoninletquotaCode=field_mapjson__"QuotaCode"String_.of_jsoninletmessage=field_mapjson__"Message"String_.of_jsoninmake?retryAfterSeconds?serviceCode?quotaCode?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request was denied due to request throttling."]moduleValidationException=structtypenonrect={message:String_.toption;reason:ValidationExceptionReason.toption[@ocaml.doc"Reason the request failed validation"];fields:ValidationExceptionFieldList.toption[@ocaml.doc"The fields that caused the error"]}letmake?message=fun?reason->fun?fields->fun()->{message;reason;fields}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:String_.to_value));("Reason",(Option.mapx.reason~f:ValidationExceptionReason.to_value));("Fields",(Option.mapx.fields~f:ValidationExceptionFieldList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfields=(Option.map~f:ValidationExceptionFieldList.of_xml)(Xml.childxml_arg0"Fields")inletreason=(Option.map~f:ValidationExceptionReason.of_xml)(Xml.childxml_arg0"Reason")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inmake?fields?reason?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfields=field_mapjson__"Fields"ValidationExceptionFieldList.of_jsoninletreason=field_mapjson__"Reason"ValidationExceptionReason.of_jsoninletmessage=field_mapjson__"Message"String_.of_jsoninmake?fields?reason?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The input fails to satisfy the constraints specified by an Amazon Web Services service."]moduleRotationContactsArnList=structtypenonrect=SsmContactsArn.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:30)>>=(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:SsmContactsArn.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:SsmContactsArn.of_xml)letof_jsonj=list_of_json~kind:"RotationContactsArnList"~of_json:SsmContactsArn.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDataEncryptionException=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 operation failed to due an encryption key error."]moduleServiceQuotaExceededException=structtypenonrect={message:String_.toption;resourceId:String_.toption[@ocaml.doc"Identifier of the resource affected"];resourceType:String_.toption[@ocaml.doc"Type of the resource affected"];quotaCode:String_.toption[@ocaml.doc"Service Quotas requirement to identify originating service"];serviceCode:String_.toption[@ocaml.doc"Service Quotas requirement to identify originating quota"]}letmake?message=fun?resourceId->fun?resourceType->fun?quotaCode->fun?serviceCode->fun()->{message;resourceId;resourceType;quotaCode;serviceCode}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:String_.to_value));("ResourceId",(Option.mapx.resourceId~f:String_.to_value));("ResourceType",(Option.mapx.resourceType~f:String_.to_value));("QuotaCode",(Option.mapx.quotaCode~f:String_.to_value));("ServiceCode",(Option.mapx.serviceCode~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letserviceCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ServiceCode")inletquotaCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"QuotaCode")inletresourceType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ResourceType")inletresourceId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ResourceId")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Message")inmake?serviceCode?quotaCode?resourceType?resourceId?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letserviceCode=field_mapjson__"ServiceCode"String_.of_jsoninletquotaCode=field_mapjson__"QuotaCode"String_.of_jsoninletresourceType=field_mapjson__"ResourceType"String_.of_jsoninletresourceId=field_mapjson__"ResourceId"String_.of_jsoninletmessage=field_mapjson__"Message"String_.of_jsoninmake?serviceCode?quotaCode?resourceType?resourceId?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request would cause a service quota to be exceeded."]modulePlan=structtypenonrect={stages:StagesList.toption[@ocaml.doc"A list of stages that the escalation plan or engagement plan uses to engage contacts and contact methods."];rotationIds:SsmContactsArnList.toption[@ocaml.doc"The Amazon Resource Names (ARNs) of the on-call rotations associated with the plan."]}letmake?stages=fun?rotationIds->fun()->{stages;rotationIds}letto_valuex=structure_to_value[("Stages",(Option.mapx.stages~f:StagesList.to_value));("RotationIds",(Option.mapx.rotationIds~f:SsmContactsArnList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrotationIds=(Option.map~f:SsmContactsArnList.of_xml)(Xml.childxml_arg0"RotationIds")inletstages=(Option.map~f:StagesList.of_xml)(Xml.childxml_arg0"Stages")inmake?rotationIds?stages()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrotationIds=field_mapjson__"RotationIds"SsmContactsArnList.of_jsoninletstages=field_mapjson__"Stages"StagesList.of_jsoninmake?rotationIds?stages()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about the stages and on-call rotation teams associated with an escalation plan or engagement plan."]moduleAmazonResourceName=structtypenonrect=stringletcontext_="AmazonResourceName"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1011)>>=(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:50)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TagKey.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:TagKey.of_xml)letof_jsonj=list_of_json~kind:"TagKeyList"~of_json:TagKey.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTagsList=structtypenonrect=Tag.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: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:"TagsList"~of_json:Tag.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleStopReason=structtypenonrect=stringletcontext_="StopReason"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"^[.\\s\\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:"StopReason"jletto_json=simple_to_jsonto_valueendmoduleContent=structtypenonrect=stringletcontext_="Content"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:8192)>>=(fun()->check_patterni~pattern:"^[.\\s\\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:"Content"jletto_json=simple_to_jsonto_valueendmoduleIdempotencyToken=structtypenonrect=stringletcontext_="IdempotencyToken"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(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:"IdempotencyToken"jletto_json=simple_to_jsonto_valueendmodulePublicContent=structtypenonrect=stringletcontext_="PublicContent"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:8192)>>=(fun()->check_patterni~pattern:"^[.\\s\\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:"PublicContent"jletto_json=simple_to_jsonto_valueendmodulePublicSubject=structtypenonrect=stringletcontext_="PublicSubject"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"^[.\\s\\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:"PublicSubject"jletto_json=simple_to_jsonto_valueendmoduleSubject=structtypenonrect=stringletcontext_="Subject"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"^[.\\s\\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:"Subject"jletto_json=simple_to_jsonto_valueendmodulePolicy=structtypenonrect=stringletcontext_="Policy"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:395000)>>=(fun()->check_patterni~pattern:".*\\S.*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Policy"jletto_json=simple_to_jsonto_valueendmodulePaginationToken=structtypenonrect=stringletcontext_="PaginationToken"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(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:"PaginationToken"jletto_json=simple_to_jsonto_valueendmoduleRotations=structtypenonrect=Rotation.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Rotation.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:Rotation.of_xml)letof_jsonj=list_of_json~kind:"Rotations"~of_json:Rotation.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:1024)>>=(fun()->check_int_mini~min:0));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleRotationShifts=structtypenonrect=RotationShift.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:RotationShift.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:RotationShift.of_xml)letof_jsonj=list_of_json~kind:"RotationShifts"~of_json:RotationShift.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRotationOverrides=structtypenonrect=RotationOverride.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:RotationOverride.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:RotationOverride.of_xml)letof_jsonj=list_of_json~kind:"RotationOverrides"~of_json:RotationOverride.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleOverrideList=structtypenonrect=PreviewOverride.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PreviewOverride.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:PreviewOverride.of_xml)letof_jsonj=list_of_json~kind:"OverrideList"~of_json:PreviewOverride.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRotationPreviewMemberList=structtypenonrect=Member.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:30)>>=(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:Member.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:Member.of_xml)letof_jsonj=list_of_json~kind:"RotationPreviewMemberList"~of_json:Member.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePagesList=structtypenonrect=Page.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Page.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:Page.of_xml)letof_jsonj=list_of_json~kind:"PagesList"~of_json:Page.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleResolutionList=structtypenonrect=ResolutionContact.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ResolutionContact.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:ResolutionContact.of_xml)letof_jsonj=list_of_json~kind:"ResolutionList"~of_json:ResolutionContact.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleReceiptsList=structtypenonrect=Receipt.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Receipt.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:Receipt.of_xml)letof_jsonj=list_of_json~kind:"ReceiptsList"~of_json:Receipt.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEngagementsList=structtypenonrect=Engagement.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Engagement.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:Engagement.of_xml)letof_jsonj=list_of_json~kind:"EngagementsList"~of_json:Engagement.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTimeRange=structtypenonrect={startTime:DateTime.toption[@ocaml.doc"The start of the time range."];endTime:DateTime.toption[@ocaml.doc"The end of the time range."]}letmake?startTime=fun?endTime->fun()->{startTime;endTime}letto_valuex=structure_to_value[("StartTime",(Option.mapx.startTime~f:DateTime.to_value));("EndTime",(Option.mapx.endTime~f:DateTime.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letendTime=(Option.map~f:DateTime.of_xml)(Xml.childxml_arg0"EndTime")inletstartTime=(Option.map~f:DateTime.of_xml)(Xml.childxml_arg0"StartTime")inmake?endTime?startTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letendTime=field_mapjson__"EndTime"DateTime.of_jsoninletstartTime=field_mapjson__"StartTime"DateTime.of_jsoninmake?endTime?startTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A range of between two set times"]moduleContactsList=structtypenonrect=Contact.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Contact.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:Contact.of_xml)letof_jsonj=list_of_json~kind:"ContactsList"~of_json:Contact.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleContactChannelList=structtypenonrect=ContactChannel.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ContactChannel.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:ContactChannel.of_xml)letof_jsonj=list_of_json~kind:"ContactChannelList"~of_json:ContactChannel.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRotationOverrideContactsArnList=structtypenonrect=SsmContactsArn.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:SsmContactsArn.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:SsmContactsArn.of_xml)letof_jsonj=list_of_json~kind:"RotationOverrideContactsArnList"~of_json:SsmContactsArn.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDeferActivation=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_valueendmoduleActivationCode=structtypenonrect=stringletcontext_="ActivationCode"letmakei=letopenResultinok_or_failwith((check_string_mini~min:6)>>=(fun()->(check_string_maxi~max:10)>>=(fun()->check_patterni~pattern:"^[0-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:"ActivationCode"jletto_json=simple_to_jsonto_valueendmoduleAcceptCode=structtypenonrect=stringletcontext_="AcceptCode"letmakei=letopenResultinok_or_failwith((check_string_mini~min:6)>>=(fun()->(check_string_maxi~max:10)>>=(fun()->check_patterni~pattern:"^[0-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:"AcceptCode"jletto_json=simple_to_jsonto_valueendmoduleAcceptCodeValidation=structtypenonrect=|IGNORE|ENFORCE|Non_static_idofstringletmakei=iletto_string=function|IGNORE->"IGNORE"|ENFORCE->"ENFORCE"|Non_static_ids->sletof_string=function|"IGNORE"->IGNORE|"ENFORCE"->ENFORCE|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 AcceptCodeValidation"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AcceptCodeValidation"j)letto_json=simple_to_jsonto_valueendmoduleAcceptType=structtypenonrect=|DELIVERED|READ|Non_static_idofstringletmakei=iletto_string=function|DELIVERED->"DELIVERED"|READ->"READ"|Non_static_ids->sletof_string=function|"DELIVERED"->DELIVERED|"READ"->READ|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 AcceptType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AcceptType"j)letto_json=simple_to_jsonto_valueendmoduleUpdateRotationResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the information specified for an on-call rotation."]moduleUpdateRotationRequest=structtypenonrect={rotationId:SsmContactsArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the rotation to update."];contactIds:RotationContactsArnList.toption[@ocaml.doc"The Amazon Resource Names (ARNs) of the contacts to include in the updated rotation. Only the PERSONAL contact type is supported. The contact types ESCALATION and ONCALL_SCHEDULE are not supported for this operation. The order in which you list the contacts is their shift order in the rotation schedule."];startTime:DateTime.toption[@ocaml.doc"The date and time the rotation goes into effect."];timeZoneId:TimeZoneId.toption[@ocaml.doc"The time zone to base the updated rotation\226\128\153s activity on, in Internet Assigned Numbers Authority (IANA) format. For example: \"America/Los_Angeles\", \"UTC\", or \"Asia/Seoul\". For more information, see the Time Zone Database on the IANA website. Designators for time zones that don\226\128\153t support Daylight Savings Time Rules, such as Pacific Standard Time (PST), aren't supported."];recurrence:RecurrenceSettings.t[@ocaml.doc"Information about how long the updated rotation lasts before restarting at the beginning of the shift order."]}letcontext_="UpdateRotationRequest"letmake?contactIds=fun?startTime->fun?timeZoneId->fun~rotationId->fun~recurrence->fun()->{contactIds;startTime;timeZoneId;rotationId;recurrence}letto_valuex=structure_to_value[("RotationId",(Some(SsmContactsArn.to_valuex.rotationId)));("ContactIds",(Option.mapx.contactIds~f:RotationContactsArnList.to_value));("StartTime",(Option.mapx.startTime~f:DateTime.to_value));("TimeZoneId",(Option.mapx.timeZoneId~f:TimeZoneId.to_value));("Recurrence",(Some(RecurrenceSettings.to_valuex.recurrence)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrecurrence=RecurrenceSettings.of_xml(Xml.child_exn~context:context_xml_arg0"Recurrence")inlettimeZoneId=(Option.map~f:TimeZoneId.of_xml)(Xml.childxml_arg0"TimeZoneId")inletstartTime=(Option.map~f:DateTime.of_xml)(Xml.childxml_arg0"StartTime")inletcontactIds=(Option.map~f:RotationContactsArnList.of_xml)(Xml.childxml_arg0"ContactIds")inletrotationId=SsmContactsArn.of_xml(Xml.child_exn~context:context_xml_arg0"RotationId")inmake~recurrence?timeZoneId?startTime?contactIds~rotationId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrecurrence=field_map_exnjson__"Recurrence"RecurrenceSettings.of_jsoninlettimeZoneId=field_mapjson__"TimeZoneId"TimeZoneId.of_jsoninletstartTime=field_mapjson__"StartTime"DateTime.of_jsoninletcontactIds=field_mapjson__"ContactIds"RotationContactsArnList.of_jsoninletrotationId=field_map_exnjson__"RotationId"SsmContactsArn.of_jsoninmake~recurrence?timeZoneId?startTime?contactIds~rotationId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the information specified for an on-call rotation."]moduleUpdateContactResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DataEncryptionExceptionofDataEncryptionException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DataEncryptionException"->`DataEncryptionException(DataEncryptionException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"DataEncryptionException"->`DataEncryptionException(DataEncryptionException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`DataEncryptionExceptione->`Assoc[("error",(`String"DataEncryptionException"));("details",(DataEncryptionException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the contact or escalation plan specified."]moduleUpdateContactRequest=structtypenonrect={contactId:SsmContactsArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the contact or escalation plan you're updating."];displayName:ContactName.toption[@ocaml.doc"The full name of the contact or escalation plan."];plan:Plan.toption[@ocaml.doc"A list of stages. A contact has an engagement plan with stages for specified contact channels. An escalation plan uses these stages to contact specified contacts."]}letcontext_="UpdateContactRequest"letmake?displayName=fun?plan->fun~contactId->fun()->{displayName;plan;contactId}letto_valuex=structure_to_value[("ContactId",(Some(SsmContactsArn.to_valuex.contactId)));("DisplayName",(Option.mapx.displayName~f:ContactName.to_value));("Plan",(Option.mapx.plan~f:Plan.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letplan=(Option.map~f:Plan.of_xml)(Xml.childxml_arg0"Plan")inletdisplayName=(Option.map~f:ContactName.of_xml)(Xml.childxml_arg0"DisplayName")inletcontactId=SsmContactsArn.of_xml(Xml.child_exn~context:context_xml_arg0"ContactId")inmake?plan?displayName~contactId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letplan=field_mapjson__"Plan"Plan.of_jsoninletdisplayName=field_mapjson__"DisplayName"ContactName.of_jsoninletcontactId=field_map_exnjson__"ContactId"SsmContactsArn.of_jsoninmake?plan?displayName~contactId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the contact or escalation plan specified."]moduleUpdateContactChannelResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`DataEncryptionExceptionofDataEncryptionException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"DataEncryptionException"->`DataEncryptionException(DataEncryptionException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"DataEncryptionException"->`DataEncryptionException(DataEncryptionException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`DataEncryptionExceptione->`Assoc[("error",(`String"DataEncryptionException"));("details",(DataEncryptionException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates a contact's contact channel."]moduleUpdateContactChannelRequest=structtypenonrect={contactChannelId:SsmContactsArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the contact channel you want to update."];name:ChannelName.toption[@ocaml.doc"The name of the contact channel."];deliveryAddress:ContactChannelAddress.toption[@ocaml.doc"The details that Incident Manager uses when trying to engage the contact channel."]}letcontext_="UpdateContactChannelRequest"letmake?name=fun?deliveryAddress->fun~contactChannelId->fun()->{name;deliveryAddress;contactChannelId}letto_valuex=structure_to_value[("ContactChannelId",(Some(SsmContactsArn.to_valuex.contactChannelId)));("Name",(Option.mapx.name~f:ChannelName.to_value));("DeliveryAddress",(Option.mapx.deliveryAddress~f:ContactChannelAddress.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdeliveryAddress=(Option.map~f:ContactChannelAddress.of_xml)(Xml.childxml_arg0"DeliveryAddress")inletname=(Option.map~f:ChannelName.of_xml)(Xml.childxml_arg0"Name")inletcontactChannelId=SsmContactsArn.of_xml(Xml.child_exn~context:context_xml_arg0"ContactChannelId")inmake?deliveryAddress?name~contactChannelId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdeliveryAddress=field_mapjson__"DeliveryAddress"ContactChannelAddress.of_jsoninletname=field_mapjson__"Name"ChannelName.of_jsoninletcontactChannelId=field_map_exnjson__"ContactChannelId"SsmContactsArn.of_jsoninmake?deliveryAddress?name~contactChannelId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates a contact's contact channel."]moduleUntagResourceResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes tags from the specified resource."]moduleUntagResourceRequest=structtypenonrect={resourceARN:AmazonResourceName.t[@ocaml.doc"The Amazon Resource Name (ARN) of the contact or escalation plan."];tagKeys:TagKeyList.t[@ocaml.doc"The key of the tag that you want to remove."]}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 tags from the specified resource."]moduleTagResourceResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Tags a contact or escalation plan. You can tag only contacts and escalation plans in the first region of your replication set."]moduleTagResourceRequest=structtypenonrect={resourceARN:AmazonResourceName.t[@ocaml.doc"The Amazon Resource Name (ARN) of the contact or escalation plan."];tags:TagsList.t[@ocaml.doc"A list of tags that you are adding to the contact or escalation plan."]}letcontext_="TagResourceRequest"letmake~resourceARN=fun~tags->fun()->{resourceARN;tags}letto_valuex=structure_to_value[("ResourceARN",(Some(AmazonResourceName.to_valuex.resourceARN)));("Tags",(Some(TagsList.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=TagsList.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"TagsList.of_jsoninletresourceARN=field_map_exnjson__"ResourceARN"AmazonResourceName.of_jsoninmake~tags~resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Tags a contact or escalation plan. You can tag only contacts and escalation plans in the first region of your replication set."]moduleStopEngagementResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Stops an engagement before it finishes the final stage of the escalation plan or engagement plan. Further contacts aren't engaged."]moduleStopEngagementRequest=structtypenonrect={engagementId:SsmContactsArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the engagement."];reason:StopReason.toption[@ocaml.doc"The reason that you're stopping the engagement."]}letcontext_="StopEngagementRequest"letmake?reason=fun~engagementId->fun()->{reason;engagementId}letto_valuex=structure_to_value[("EngagementId",(Some(SsmContactsArn.to_valuex.engagementId)));("Reason",(Option.mapx.reason~f:StopReason.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreason=(Option.map~f:StopReason.of_xml)(Xml.childxml_arg0"Reason")inletengagementId=SsmContactsArn.of_xml(Xml.child_exn~context:context_xml_arg0"EngagementId")inmake?reason~engagementId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreason=field_mapjson__"Reason"StopReason.of_jsoninletengagementId=field_map_exnjson__"EngagementId"SsmContactsArn.of_jsoninmake?reason~engagementId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Stops an engagement before it finishes the final stage of the escalation plan or engagement plan. Further contacts aren't engaged."]moduleStartEngagementResult=structtypenonrect={engagementArn:SsmContactsArn.toption[@ocaml.doc"The ARN of the engagement."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DataEncryptionExceptionofDataEncryptionException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?engagementArn=fun()->{engagementArn}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DataEncryptionException"->`DataEncryptionException(DataEncryptionException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"DataEncryptionException"->`DataEncryptionException(DataEncryptionException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`DataEncryptionExceptione->`Assoc[("error",(`String"DataEncryptionException"));("details",(DataEncryptionException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("EngagementArn",(Option.mapx.engagementArn~f:SsmContactsArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letengagementArn=(Option.map~f:SsmContactsArn.of_xml)(Xml.childxml_arg0"EngagementArn")inmake?engagementArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letengagementArn=field_mapjson__"EngagementArn"SsmContactsArn.of_jsoninmake?engagementArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Starts an engagement to a contact or escalation plan. The engagement engages each contact specified in the incident."]moduleStartEngagementRequest=structtypenonrect={contactId:SsmContactsArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the contact being engaged."];sender:Sender.t[@ocaml.doc"The user that started the engagement."];subject:Subject.t[@ocaml.doc"The secure subject of the message that was sent to the contact. Use this field for engagements to VOICE or EMAIL."];content:Content.t[@ocaml.doc"The secure content of the message that was sent to the contact. Use this field for engagements to VOICE or EMAIL."];publicSubject:PublicSubject.toption[@ocaml.doc"The insecure subject of the message that was sent to the contact. Use this field for engagements to SMS."];publicContent:PublicContent.toption[@ocaml.doc"The insecure content of the message that was sent to the contact. Use this field for engagements to SMS."];incidentId:IncidentId.toption[@ocaml.doc"The ARN of the incident that the engagement is part of."];idempotencyToken:IdempotencyToken.toption[@ocaml.doc"A token ensuring that the operation is called only once with the specified details."]}letcontext_="StartEngagementRequest"letmake?publicSubject=fun?publicContent->fun?incidentId->fun?idempotencyToken->fun~contactId->fun~sender->fun~subject->fun~content->fun()->{publicSubject;publicContent;incidentId;idempotencyToken;contactId;sender;subject;content}letto_valuex=structure_to_value[("ContactId",(Some(SsmContactsArn.to_valuex.contactId)));("Sender",(Some(Sender.to_valuex.sender)));("Subject",(Some(Subject.to_valuex.subject)));("Content",(Some(Content.to_valuex.content)));("PublicSubject",(Option.mapx.publicSubject~f:PublicSubject.to_value));("PublicContent",(Option.mapx.publicContent~f:PublicContent.to_value));("IncidentId",(Option.mapx.incidentId~f:IncidentId.to_value));("IdempotencyToken",(Option.mapx.idempotencyToken~f:IdempotencyToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidempotencyToken=(Option.map~f:IdempotencyToken.of_xml)(Xml.childxml_arg0"IdempotencyToken")inletincidentId=(Option.map~f:IncidentId.of_xml)(Xml.childxml_arg0"IncidentId")inletpublicContent=(Option.map~f:PublicContent.of_xml)(Xml.childxml_arg0"PublicContent")inletpublicSubject=(Option.map~f:PublicSubject.of_xml)(Xml.childxml_arg0"PublicSubject")inletcontent=Content.of_xml(Xml.child_exn~context:context_xml_arg0"Content")inletsubject=Subject.of_xml(Xml.child_exn~context:context_xml_arg0"Subject")inletsender=Sender.of_xml(Xml.child_exn~context:context_xml_arg0"Sender")inletcontactId=SsmContactsArn.of_xml(Xml.child_exn~context:context_xml_arg0"ContactId")inmake?idempotencyToken?incidentId?publicContent?publicSubject~content~subject~sender~contactId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidempotencyToken=field_mapjson__"IdempotencyToken"IdempotencyToken.of_jsoninletincidentId=field_mapjson__"IncidentId"IncidentId.of_jsoninletpublicContent=field_mapjson__"PublicContent"PublicContent.of_jsoninletpublicSubject=field_mapjson__"PublicSubject"PublicSubject.of_jsoninletcontent=field_map_exnjson__"Content"Content.of_jsoninletsubject=field_map_exnjson__"Subject"Subject.of_jsoninletsender=field_map_exnjson__"Sender"Sender.of_jsoninletcontactId=field_map_exnjson__"ContactId"SsmContactsArn.of_jsoninmake?idempotencyToken?incidentId?publicContent?publicSubject~content~subject~sender~contactId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Starts an engagement to a contact or escalation plan. The engagement engages each contact specified in the incident."]moduleSendActivationCodeResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DataEncryptionExceptionofDataEncryptionException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DataEncryptionException"->`DataEncryptionException(DataEncryptionException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"DataEncryptionException"->`DataEncryptionException(DataEncryptionException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`DataEncryptionExceptione->`Assoc[("error",(`String"DataEncryptionException"));("details",(DataEncryptionException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Sends an activation code to a contact channel. The contact can use this code to activate the contact channel in the console or with the ActivateChannel operation. Incident Manager can't engage a contact channel until it has been activated."]moduleSendActivationCodeRequest=structtypenonrect={contactChannelId:SsmContactsArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the contact channel."]}letcontext_="SendActivationCodeRequest"letmake~contactChannelId=fun()->{contactChannelId}letto_valuex=structure_to_value[("ContactChannelId",(Some(SsmContactsArn.to_valuex.contactChannelId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcontactChannelId=SsmContactsArn.of_xml(Xml.child_exn~context:context_xml_arg0"ContactChannelId")inmake~contactChannelId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcontactChannelId=field_map_exnjson__"ContactChannelId"SsmContactsArn.of_jsoninmake~contactChannelId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Sends an activation code to a contact channel. The contact can use this code to activate the contact channel in the console or with the ActivateChannel operation. Incident Manager can't engage a contact channel until it has been activated."]modulePutContactPolicyResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds a resource policy to the specified contact or escalation plan. The resource policy is used to share the contact or escalation plan using Resource Access Manager (RAM). For more information about cross-account sharing, see Setting up cross-account functionality."]modulePutContactPolicyRequest=structtypenonrect={contactArn:SsmContactsArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the contact or escalation plan."];policy:Policy.t[@ocaml.doc"Details of the resource policy."]}letcontext_="PutContactPolicyRequest"letmake~contactArn=fun~policy->fun()->{contactArn;policy}letto_valuex=structure_to_value[("ContactArn",(Some(SsmContactsArn.to_valuex.contactArn)));("Policy",(Some(Policy.to_valuex.policy)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpolicy=Policy.of_xml(Xml.child_exn~context:context_xml_arg0"Policy")inletcontactArn=SsmContactsArn.of_xml(Xml.child_exn~context:context_xml_arg0"ContactArn")inmake~policy~contactArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpolicy=field_map_exnjson__"Policy"Policy.of_jsoninletcontactArn=field_map_exnjson__"ContactArn"SsmContactsArn.of_jsoninmake~policy~contactArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds a resource policy to the specified contact or escalation plan. The resource policy is used to share the contact or escalation plan using Resource Access Manager (RAM). For more information about cross-account sharing, see Setting up cross-account functionality."]moduleListTagsForResourceResult=structtypenonrect={tags:TagsList.toption[@ocaml.doc"The tags related to the contact or escalation plan."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun()->{tags}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Tags",(Option.mapx.tags~f:TagsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagsList.of_xml)(Xml.childxml_arg0"Tags")inmake?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"TagsList.of_jsoninmake?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the tags of a contact, escalation plan, rotation, or on-call schedule."]moduleListTagsForResourceRequest=structtypenonrect={resourceARN:AmazonResourceName.t[@ocaml.doc"The Amazon Resource Name (ARN) of the contact, escalation plan, rotation, or on-call schedule."]}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"Lists the tags of a contact, escalation plan, rotation, or on-call schedule."]moduleListRotationsResult=structtypenonrect={nextToken:PaginationToken.toption[@ocaml.doc"The token for the next set of items to return. Use this token to get the next set of results."];rotations:Rotations.toption[@ocaml.doc"Information about rotations that meet the filter criteria."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?rotations->fun()->{nextToken;rotations}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("Rotations",(Option.mapx.rotations~f:Rotations.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrotations=(Option.map~f:Rotations.of_xml)(Xml.childxml_arg0"Rotations")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inmake?rotations?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrotations=field_mapjson__"Rotations"Rotations.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninmake?rotations?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list of on-call rotations."]moduleListRotationsRequest=structtypenonrect={rotationNamePrefix:RotationName.toption[@ocaml.doc"A filter to include rotations in list results based on their common prefix. For example, entering prod returns a list of all rotation names that begin with prod, such as production and prod-1."];nextToken:PaginationToken.toption[@ocaml.doc"A token to start the list. Use this token to get the next set of results."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results."]}letmake?rotationNamePrefix=fun?nextToken->fun?maxResults->fun()->{rotationNamePrefix;nextToken;maxResults}letto_valuex=structure_to_value[("RotationNamePrefix",(Option.mapx.rotationNamePrefix~f:RotationName.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletrotationNamePrefix=(Option.map~f:RotationName.of_xml)(Xml.childxml_arg0"RotationNamePrefix")inmake?maxResults?nextToken?rotationNamePrefix()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletrotationNamePrefix=field_mapjson__"RotationNamePrefix"RotationName.of_jsoninmake?maxResults?nextToken?rotationNamePrefix()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list of on-call rotations."]moduleListRotationShiftsResult=structtypenonrect={rotationShifts:RotationShifts.toption[@ocaml.doc"Information about shifts that meet the filter criteria."];nextToken:PaginationToken.toption[@ocaml.doc"The token for the next set of items to return. Use this token to get the next set of results."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?rotationShifts=fun?nextToken->fun()->{rotationShifts;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("RotationShifts",(Option.mapx.rotationShifts~f:RotationShifts.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletrotationShifts=(Option.map~f:RotationShifts.of_xml)(Xml.childxml_arg0"RotationShifts")inmake?nextToken?rotationShifts()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletrotationShifts=field_mapjson__"RotationShifts"RotationShifts.of_jsoninmake?nextToken?rotationShifts()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of shifts generated by an existing rotation in the system."]moduleListRotationShiftsRequest=structtypenonrect={rotationId:SsmContactsArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the rotation to retrieve shift information about."];startTime:DateTime.toption[@ocaml.doc"The date and time for the beginning of the time range to list shifts for."];endTime:DateTime.t[@ocaml.doc"The date and time for the end of the time range to list shifts for."];nextToken:PaginationToken.toption[@ocaml.doc"A token to start the list. Use this token to get the next set of results."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results."]}letcontext_="ListRotationShiftsRequest"letmake?startTime=fun?nextToken->fun?maxResults->fun~rotationId->fun~endTime->fun()->{startTime;nextToken;maxResults;rotationId;endTime}letto_valuex=structure_to_value[("RotationId",(Some(SsmContactsArn.to_valuex.rotationId)));("StartTime",(Option.mapx.startTime~f:DateTime.to_value));("EndTime",(Some(DateTime.to_valuex.endTime)));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletendTime=DateTime.of_xml(Xml.child_exn~context:context_xml_arg0"EndTime")inletstartTime=(Option.map~f:DateTime.of_xml)(Xml.childxml_arg0"StartTime")inletrotationId=SsmContactsArn.of_xml(Xml.child_exn~context:context_xml_arg0"RotationId")inmake?maxResults?nextToken~endTime?startTime~rotationId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletendTime=field_map_exnjson__"EndTime"DateTime.of_jsoninletstartTime=field_mapjson__"StartTime"DateTime.of_jsoninletrotationId=field_map_exnjson__"RotationId"SsmContactsArn.of_jsoninmake?maxResults?nextToken~endTime?startTime~rotationId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of shifts generated by an existing rotation in the system."]moduleListRotationOverridesResult=structtypenonrect={rotationOverrides:RotationOverrides.toption[@ocaml.doc"A list of rotation overrides in the specified time range."];nextToken:PaginationToken.toption[@ocaml.doc"The token for the next set of items to return. Use this token to get the next set of results."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?rotationOverrides=fun?nextToken->fun()->{rotationOverrides;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("RotationOverrides",(Option.mapx.rotationOverrides~f:RotationOverrides.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletrotationOverrides=(Option.map~f:RotationOverrides.of_xml)(Xml.childxml_arg0"RotationOverrides")inmake?nextToken?rotationOverrides()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletrotationOverrides=field_mapjson__"RotationOverrides"RotationOverrides.of_jsoninmake?nextToken?rotationOverrides()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list of overrides currently specified for an on-call rotation."]moduleListRotationOverridesRequest=structtypenonrect={rotationId:SsmContactsArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the rotation to retrieve information about."];startTime:DateTime.t[@ocaml.doc"The date and time for the beginning of a time range for listing overrides."];endTime:DateTime.t[@ocaml.doc"The date and time for the end of a time range for listing overrides."];nextToken:PaginationToken.toption[@ocaml.doc"A token to start the list. Use this token to get the next set of results."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results."]}letcontext_="ListRotationOverridesRequest"letmake?nextToken=fun?maxResults->fun~rotationId->fun~startTime->fun~endTime->fun()->{nextToken;maxResults;rotationId;startTime;endTime}letto_valuex=structure_to_value[("RotationId",(Some(SsmContactsArn.to_valuex.rotationId)));("StartTime",(Some(DateTime.to_valuex.startTime)));("EndTime",(Some(DateTime.to_valuex.endTime)));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletendTime=DateTime.of_xml(Xml.child_exn~context:context_xml_arg0"EndTime")inletstartTime=DateTime.of_xml(Xml.child_exn~context:context_xml_arg0"StartTime")inletrotationId=SsmContactsArn.of_xml(Xml.child_exn~context:context_xml_arg0"RotationId")inmake?maxResults?nextToken~endTime~startTime~rotationId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletendTime=field_map_exnjson__"EndTime"DateTime.of_jsoninletstartTime=field_map_exnjson__"StartTime"DateTime.of_jsoninletrotationId=field_map_exnjson__"RotationId"SsmContactsArn.of_jsoninmake?maxResults?nextToken~endTime~startTime~rotationId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a list of overrides currently specified for an on-call rotation."]moduleListPreviewRotationShiftsResult=structtypenonrect={rotationShifts:RotationShifts.toption[@ocaml.doc"Details about a rotation shift, including times, types, and contacts."];nextToken:PaginationToken.toption[@ocaml.doc"The token for the next set of items to return. This token is used to get the next set of results."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?rotationShifts=fun?nextToken->fun()->{rotationShifts;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("RotationShifts",(Option.mapx.rotationShifts~f:RotationShifts.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletrotationShifts=(Option.map~f:RotationShifts.of_xml)(Xml.childxml_arg0"RotationShifts")inmake?nextToken?rotationShifts()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletrotationShifts=field_mapjson__"RotationShifts"RotationShifts.of_jsoninmake?nextToken?rotationShifts()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of shifts based on rotation configuration parameters. The Incident Manager primarily uses this operation to populate the Preview calendar. It is not typically run by end users."]moduleListPreviewRotationShiftsRequest=structtypenonrect={rotationStartTime:DateTime.toption[@ocaml.doc"The date and time a rotation would begin. The first shift is calculated from this date and time."];startTime:DateTime.toption[@ocaml.doc"Used to filter the range of calculated shifts before sending the response back to the user."];endTime:DateTime.t[@ocaml.doc"The date and time a rotation shift would end."];members:RotationPreviewMemberList.t[@ocaml.doc"The contacts that would be assigned to a rotation."];timeZoneId:TimeZoneId.t[@ocaml.doc"The time zone the rotation\226\128\153s activity would be based on, in Internet Assigned Numbers Authority (IANA) format. For example: \"America/Los_Angeles\", \"UTC\", or \"Asia/Seoul\"."];recurrence:RecurrenceSettings.t[@ocaml.doc"Information about how long a rotation would last before restarting at the beginning of the shift order."];overrides:OverrideList.toption[@ocaml.doc"Information about changes that would be made in a rotation override."];nextToken:PaginationToken.toption[@ocaml.doc"A token to start the list. This token is used to get the next set of results."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of items to return for this call. The call also returns a token that can be specified in a subsequent call to get the next set of results."]}letcontext_="ListPreviewRotationShiftsRequest"letmake?rotationStartTime=fun?startTime->fun?overrides->fun?nextToken->fun?maxResults->fun~endTime->fun~members->fun~timeZoneId->fun~recurrence->fun()->{rotationStartTime;startTime;overrides;nextToken;maxResults;endTime;members;timeZoneId;recurrence}letto_valuex=structure_to_value[("RotationStartTime",(Option.mapx.rotationStartTime~f:DateTime.to_value));("StartTime",(Option.mapx.startTime~f:DateTime.to_value));("EndTime",(Some(DateTime.to_valuex.endTime)));("Members",(Some(RotationPreviewMemberList.to_valuex.members)));("TimeZoneId",(Some(TimeZoneId.to_valuex.timeZoneId)));("Recurrence",(Some(RecurrenceSettings.to_valuex.recurrence)));("Overrides",(Option.mapx.overrides~f:OverrideList.to_value));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletoverrides=(Option.map~f:OverrideList.of_xml)(Xml.childxml_arg0"Overrides")inletrecurrence=RecurrenceSettings.of_xml(Xml.child_exn~context:context_xml_arg0"Recurrence")inlettimeZoneId=TimeZoneId.of_xml(Xml.child_exn~context:context_xml_arg0"TimeZoneId")inletmembers=RotationPreviewMemberList.of_xml(Xml.child_exn~context:context_xml_arg0"Members")inletendTime=DateTime.of_xml(Xml.child_exn~context:context_xml_arg0"EndTime")inletstartTime=(Option.map~f:DateTime.of_xml)(Xml.childxml_arg0"StartTime")inletrotationStartTime=(Option.map~f:DateTime.of_xml)(Xml.childxml_arg0"RotationStartTime")inmake?maxResults?nextToken?overrides~recurrence~timeZoneId~members~endTime?startTime?rotationStartTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletoverrides=field_mapjson__"Overrides"OverrideList.of_jsoninletrecurrence=field_map_exnjson__"Recurrence"RecurrenceSettings.of_jsoninlettimeZoneId=field_map_exnjson__"TimeZoneId"TimeZoneId.of_jsoninletmembers=field_map_exnjson__"Members"RotationPreviewMemberList.of_jsoninletendTime=field_map_exnjson__"EndTime"DateTime.of_jsoninletstartTime=field_mapjson__"StartTime"DateTime.of_jsoninletrotationStartTime=field_mapjson__"RotationStartTime"DateTime.of_jsoninmake?maxResults?nextToken?overrides~recurrence~timeZoneId~members~endTime?startTime?rotationStartTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of shifts based on rotation configuration parameters. The Incident Manager primarily uses this operation to populate the Preview calendar. It is not typically run by end users."]moduleListPagesByEngagementResult=structtypenonrect={nextToken:PaginationToken.toption[@ocaml.doc"The pagination token to continue to the next page of results."];pages:PagesList.toption[@ocaml.doc"The list of engagements to contact channels."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?pages->fun()->{nextToken;pages}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("Pages",(Option.mapx.pages~f:PagesList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpages=(Option.map~f:PagesList.of_xml)(Xml.childxml_arg0"Pages")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inmake?pages?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpages=field_mapjson__"Pages"PagesList.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninmake?pages?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the engagements to contact channels that occurred by engaging a contact."]moduleListPagesByEngagementRequest=structtypenonrect={engagementId:SsmContactsArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the engagement."];nextToken:PaginationToken.toption[@ocaml.doc"The pagination token to continue to the next page of results."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of engagements to contact channels to list per page of results."]}letcontext_="ListPagesByEngagementRequest"letmake?nextToken=fun?maxResults->fun~engagementId->fun()->{nextToken;maxResults;engagementId}letto_valuex=structure_to_value[("EngagementId",(Some(SsmContactsArn.to_valuex.engagementId)));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletengagementId=SsmContactsArn.of_xml(Xml.child_exn~context:context_xml_arg0"EngagementId")inmake?maxResults?nextToken~engagementId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletengagementId=field_map_exnjson__"EngagementId"SsmContactsArn.of_jsoninmake?maxResults?nextToken~engagementId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the engagements to contact channels that occurred by engaging a contact."]moduleListPagesByContactResult=structtypenonrect={nextToken:PaginationToken.toption[@ocaml.doc"The pagination token to continue to the next page of results."];pages:PagesList.toption[@ocaml.doc"The list of engagements to a contact's contact channel."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?pages->fun()->{nextToken;pages}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("Pages",(Option.mapx.pages~f:PagesList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpages=(Option.map~f:PagesList.of_xml)(Xml.childxml_arg0"Pages")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inmake?pages?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpages=field_mapjson__"Pages"PagesList.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninmake?pages?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the engagements to a contact's contact channels."]moduleListPagesByContactRequest=structtypenonrect={contactId:SsmContactsArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the contact you are retrieving engagements for."];nextToken:PaginationToken.toption[@ocaml.doc"The pagination token to continue to the next page of results."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of engagements to contact channels to list per page of results."]}letcontext_="ListPagesByContactRequest"letmake?nextToken=fun?maxResults->fun~contactId->fun()->{nextToken;maxResults;contactId}letto_valuex=structure_to_value[("ContactId",(Some(SsmContactsArn.to_valuex.contactId)));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletcontactId=SsmContactsArn.of_xml(Xml.child_exn~context:context_xml_arg0"ContactId")inmake?maxResults?nextToken~contactId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletcontactId=field_map_exnjson__"ContactId"SsmContactsArn.of_jsoninmake?maxResults?nextToken~contactId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the engagements to a contact's contact channels."]moduleListPageResolutionsResult=structtypenonrect={nextToken:PaginationToken.toption[@ocaml.doc"The token for the next set of items to return. Use this token to get the next set of results."];pageResolutions:ResolutionList.toption[@ocaml.doc"Information about the resolution for an engagement."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?pageResolutions->fun()->{nextToken;pageResolutions}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("PageResolutions",(Option.mapx.pageResolutions~f:ResolutionList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpageResolutions=(Option.map~f:ResolutionList.of_xml)(Xml.childxml_arg0"PageResolutions")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inmake?pageResolutions?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpageResolutions=field_mapjson__"PageResolutions"ResolutionList.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninmake?pageResolutions?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the resolution path of an engagement. For example, the escalation plan engaged in an incident might target an on-call schedule that includes several contacts in a rotation, but just one contact on-call when the incident starts. The resolution path indicates the hierarchy of escalation plan > on-call schedule > contact."]moduleListPageResolutionsRequest=structtypenonrect={nextToken:PaginationToken.toption[@ocaml.doc"A token to start the list. Use this token to get the next set of results."];pageId:SsmContactsArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the contact engaged for the incident."]}letcontext_="ListPageResolutionsRequest"letmake?nextToken=fun~pageId->fun()->{nextToken;pageId}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("PageId",(Some(SsmContactsArn.to_valuex.pageId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpageId=SsmContactsArn.of_xml(Xml.child_exn~context:context_xml_arg0"PageId")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inmake~pageId?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpageId=field_map_exnjson__"PageId"SsmContactsArn.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninmake~pageId?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the resolution path of an engagement. For example, the escalation plan engaged in an incident might target an on-call schedule that includes several contacts in a rotation, but just one contact on-call when the incident starts. The resolution path indicates the hierarchy of escalation plan > on-call schedule > contact."]moduleListPageReceiptsResult=structtypenonrect={nextToken:PaginationToken.toption[@ocaml.doc"The pagination token to continue to the next page of results."];receipts:ReceiptsList.toption[@ocaml.doc"A list of each acknowledgement."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?receipts->fun()->{nextToken;receipts}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("Receipts",(Option.mapx.receipts~f:ReceiptsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreceipts=(Option.map~f:ReceiptsList.of_xml)(Xml.childxml_arg0"Receipts")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inmake?receipts?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreceipts=field_mapjson__"Receipts"ReceiptsList.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninmake?receipts?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all of the engagements to contact channels that have been acknowledged."]moduleListPageReceiptsRequest=structtypenonrect={pageId:SsmContactsArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the engagement to a specific contact channel."];nextToken:PaginationToken.toption[@ocaml.doc"The pagination token to continue to the next page of results."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of acknowledgements per page of results."]}letcontext_="ListPageReceiptsRequest"letmake?nextToken=fun?maxResults->fun~pageId->fun()->{nextToken;maxResults;pageId}letto_valuex=structure_to_value[("PageId",(Some(SsmContactsArn.to_valuex.pageId)));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletpageId=SsmContactsArn.of_xml(Xml.child_exn~context:context_xml_arg0"PageId")inmake?maxResults?nextToken~pageId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletpageId=field_map_exnjson__"PageId"SsmContactsArn.of_jsoninmake?maxResults?nextToken~pageId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all of the engagements to contact channels that have been acknowledged."]moduleListEngagementsResult=structtypenonrect={nextToken:PaginationToken.toption[@ocaml.doc"The pagination token to continue to the next page of results."];engagements:EngagementsList.toption[@ocaml.doc"A list of each engagement that occurred during the specified time range of an incident."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?engagements->fun()->{nextToken;engagements}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("Engagements",(Option.mapx.engagements~f:EngagementsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letengagements=(Option.map~f:EngagementsList.of_xml)(Xml.childxml_arg0"Engagements")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inmake?engagements?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letengagements=field_mapjson__"Engagements"EngagementsList.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninmake?engagements?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all engagements that have happened in an incident."]moduleListEngagementsRequest=structtypenonrect={nextToken:PaginationToken.toption[@ocaml.doc"The pagination token to continue to the next page of results."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of engagements per page of results."];incidentId:IncidentId.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the incident you're listing engagements for."];timeRangeValue:TimeRange.toption[@ocaml.doc"The time range to lists engagements for an incident."]}letmake?nextToken=fun?maxResults->fun?incidentId->fun?timeRangeValue->fun()->{nextToken;maxResults;incidentId;timeRangeValue}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("IncidentId",(Option.mapx.incidentId~f:IncidentId.to_value));("TimeRangeValue",(Option.mapx.timeRangeValue~f:TimeRange.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettimeRangeValue=(Option.map~f:TimeRange.of_xml)(Xml.childxml_arg0"TimeRangeValue")inletincidentId=(Option.map~f:IncidentId.of_xml)(Xml.childxml_arg0"IncidentId")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inmake?timeRangeValue?incidentId?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettimeRangeValue=field_mapjson__"TimeRangeValue"TimeRange.of_jsoninletincidentId=field_mapjson__"IncidentId"IncidentId.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninmake?timeRangeValue?incidentId?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all engagements that have happened in an incident."]moduleListContactsResult=structtypenonrect={nextToken:PaginationToken.toption[@ocaml.doc"The pagination token to continue to the next page of results."];contacts:ContactsList.toption[@ocaml.doc"A list of the contacts and escalation plans in your Incident Manager account."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?contacts->fun()->{nextToken;contacts}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("Contacts",(Option.mapx.contacts~f:ContactsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcontacts=(Option.map~f:ContactsList.of_xml)(Xml.childxml_arg0"Contacts")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inmake?contacts?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcontacts=field_mapjson__"Contacts"ContactsList.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninmake?contacts?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all contacts and escalation plans in Incident Manager."]moduleListContactsRequest=structtypenonrect={nextToken:PaginationToken.toption[@ocaml.doc"The pagination token to continue to the next page of results."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of contacts and escalation plans per page of results."];aliasPrefix:ContactAlias.toption[@ocaml.doc"Used to list only contacts who's aliases start with the specified prefix."];type_:ContactType.toption[@ocaml.doc"The type of contact."]}letmake?nextToken=fun?maxResults->fun?aliasPrefix->fun?type_->fun()->{nextToken;maxResults;aliasPrefix;type_}letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("AliasPrefix",(Option.mapx.aliasPrefix~f:ContactAlias.to_value));("Type",(Option.mapx.type_~f:ContactType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettype_=(Option.map~f:ContactType.of_xml)(Xml.childxml_arg0"Type")inletaliasPrefix=(Option.map~f:ContactAlias.of_xml)(Xml.childxml_arg0"AliasPrefix")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inmake?type_?aliasPrefix?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettype_=field_mapjson__"Type"ContactType.of_jsoninletaliasPrefix=field_mapjson__"AliasPrefix"ContactAlias.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninmake?type_?aliasPrefix?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all contacts and escalation plans in Incident Manager."]moduleListContactChannelsResult=structtypenonrect={nextToken:PaginationToken.toption[@ocaml.doc"The pagination token to continue to the next page of results."];contactChannels:ContactChannelList.toption[@ocaml.doc"A list of contact channels related to the specified contact."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DataEncryptionExceptionofDataEncryptionException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?contactChannels->fun()->{nextToken;contactChannels}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DataEncryptionException"->`DataEncryptionException(DataEncryptionException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"DataEncryptionException"->`DataEncryptionException(DataEncryptionException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`DataEncryptionExceptione->`Assoc[("error",(`String"DataEncryptionException"));("details",(DataEncryptionException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("ContactChannels",(Option.mapx.contactChannels~f:ContactChannelList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcontactChannels=(Option.map~f:ContactChannelList.of_xml)(Xml.childxml_arg0"ContactChannels")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inmake?contactChannels?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcontactChannels=field_mapjson__"ContactChannels"ContactChannelList.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninmake?contactChannels?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all contact channels for the specified contact."]moduleListContactChannelsRequest=structtypenonrect={contactId:SsmContactsArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the contact."];nextToken:PaginationToken.toption[@ocaml.doc"The pagination token to continue to the next page of results."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of contact channels per page."]}letcontext_="ListContactChannelsRequest"letmake?nextToken=fun?maxResults->fun~contactId->fun()->{nextToken;maxResults;contactId}letto_valuex=structure_to_value[("ContactId",(Some(SsmContactsArn.to_valuex.contactId)));("NextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"NextToken")inletcontactId=SsmContactsArn.of_xml(Xml.child_exn~context:context_xml_arg0"ContactId")inmake?maxResults?nextToken~contactId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"NextToken"PaginationToken.of_jsoninletcontactId=field_map_exnjson__"ContactId"SsmContactsArn.of_jsoninmake?maxResults?nextToken~contactId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all contact channels for the specified contact."]moduleGetRotationResult=structtypenonrect={rotationArn:SsmContactsArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the on-call rotation."];name:RotationName.toption[@ocaml.doc"The name of the on-call rotation."];contactIds:RotationContactsArnList.toption[@ocaml.doc"The Amazon Resource Names (ARNs) of the contacts assigned to the on-call rotation team."];startTime:DateTime.toption[@ocaml.doc"The specified start time for the on-call rotation."];timeZoneId:TimeZoneId.toption[@ocaml.doc"The time zone that the rotation\226\128\153s activity is based on, in Internet Assigned Numbers Authority (IANA) format."];recurrence:RecurrenceSettings.toption[@ocaml.doc"Specifies how long a rotation lasts before restarting at the beginning of the shift order."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?rotationArn=fun?name->fun?contactIds->fun?startTime->fun?timeZoneId->fun?recurrence->fun()->{rotationArn;name;contactIds;startTime;timeZoneId;recurrence}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("RotationArn",(Option.mapx.rotationArn~f:SsmContactsArn.to_value));("Name",(Option.mapx.name~f:RotationName.to_value));("ContactIds",(Option.mapx.contactIds~f:RotationContactsArnList.to_value));("StartTime",(Option.mapx.startTime~f:DateTime.to_value));("TimeZoneId",(Option.mapx.timeZoneId~f:TimeZoneId.to_value));("Recurrence",(Option.mapx.recurrence~f:RecurrenceSettings.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrecurrence=(Option.map~f:RecurrenceSettings.of_xml)(Xml.childxml_arg0"Recurrence")inlettimeZoneId=(Option.map~f:TimeZoneId.of_xml)(Xml.childxml_arg0"TimeZoneId")inletstartTime=(Option.map~f:DateTime.of_xml)(Xml.childxml_arg0"StartTime")inletcontactIds=(Option.map~f:RotationContactsArnList.of_xml)(Xml.childxml_arg0"ContactIds")inletname=(Option.map~f:RotationName.of_xml)(Xml.childxml_arg0"Name")inletrotationArn=(Option.map~f:SsmContactsArn.of_xml)(Xml.childxml_arg0"RotationArn")inmake?recurrence?timeZoneId?startTime?contactIds?name?rotationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrecurrence=field_mapjson__"Recurrence"RecurrenceSettings.of_jsoninlettimeZoneId=field_mapjson__"TimeZoneId"TimeZoneId.of_jsoninletstartTime=field_mapjson__"StartTime"DateTime.of_jsoninletcontactIds=field_mapjson__"ContactIds"RotationContactsArnList.of_jsoninletname=field_mapjson__"Name"RotationName.of_jsoninletrotationArn=field_mapjson__"RotationArn"SsmContactsArn.of_jsoninmake?recurrence?timeZoneId?startTime?contactIds?name?rotationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves information about an on-call rotation."]moduleGetRotationRequest=structtypenonrect={rotationId:SsmContactsArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the on-call rotation to retrieve information about."]}letcontext_="GetRotationRequest"letmake~rotationId=fun()->{rotationId}letto_valuex=structure_to_value[("RotationId",(Some(SsmContactsArn.to_valuex.rotationId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrotationId=SsmContactsArn.of_xml(Xml.child_exn~context:context_xml_arg0"RotationId")inmake~rotationId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrotationId=field_map_exnjson__"RotationId"SsmContactsArn.of_jsoninmake~rotationId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves information about an on-call rotation."]moduleGetRotationOverrideResult=structtypenonrect={rotationOverrideId:Uuid.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the override to an on-call rotation."];rotationArn:SsmContactsArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the on-call rotation that was overridden."];newContactIds:SsmContactsArnList.toption[@ocaml.doc"The Amazon Resource Names (ARNs) of the contacts assigned to the override of the on-call rotation."];startTime:DateTime.toption[@ocaml.doc"The date and time when the override goes into effect."];endTime:DateTime.toption[@ocaml.doc"The date and time when the override ends."];createTime:DateTime.toption[@ocaml.doc"The date and time when the override was created."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?rotationOverrideId=fun?rotationArn->fun?newContactIds->fun?startTime->fun?endTime->fun?createTime->fun()->{rotationOverrideId;rotationArn;newContactIds;startTime;endTime;createTime}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("RotationOverrideId",(Option.mapx.rotationOverrideId~f:Uuid.to_value));("RotationArn",(Option.mapx.rotationArn~f:SsmContactsArn.to_value));("NewContactIds",(Option.mapx.newContactIds~f:SsmContactsArnList.to_value));("StartTime",(Option.mapx.startTime~f:DateTime.to_value));("EndTime",(Option.mapx.endTime~f:DateTime.to_value));("CreateTime",(Option.mapx.createTime~f:DateTime.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcreateTime=(Option.map~f:DateTime.of_xml)(Xml.childxml_arg0"CreateTime")inletendTime=(Option.map~f:DateTime.of_xml)(Xml.childxml_arg0"EndTime")inletstartTime=(Option.map~f:DateTime.of_xml)(Xml.childxml_arg0"StartTime")inletnewContactIds=(Option.map~f:SsmContactsArnList.of_xml)(Xml.childxml_arg0"NewContactIds")inletrotationArn=(Option.map~f:SsmContactsArn.of_xml)(Xml.childxml_arg0"RotationArn")inletrotationOverrideId=(Option.map~f:Uuid.of_xml)(Xml.childxml_arg0"RotationOverrideId")inmake?createTime?endTime?startTime?newContactIds?rotationArn?rotationOverrideId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcreateTime=field_mapjson__"CreateTime"DateTime.of_jsoninletendTime=field_mapjson__"EndTime"DateTime.of_jsoninletstartTime=field_mapjson__"StartTime"DateTime.of_jsoninletnewContactIds=field_mapjson__"NewContactIds"SsmContactsArnList.of_jsoninletrotationArn=field_mapjson__"RotationArn"SsmContactsArn.of_jsoninletrotationOverrideId=field_mapjson__"RotationOverrideId"Uuid.of_jsoninmake?createTime?endTime?startTime?newContactIds?rotationArn?rotationOverrideId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves information about an override to an on-call rotation."]moduleGetRotationOverrideRequest=structtypenonrect={rotationId:SsmContactsArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the overridden rotation to retrieve information about."];rotationOverrideId:Uuid.t[@ocaml.doc"The Amazon Resource Name (ARN) of the on-call rotation override to retrieve information about."]}letcontext_="GetRotationOverrideRequest"letmake~rotationId=fun~rotationOverrideId->fun()->{rotationId;rotationOverrideId}letto_valuex=structure_to_value[("RotationId",(Some(SsmContactsArn.to_valuex.rotationId)));("RotationOverrideId",(Some(Uuid.to_valuex.rotationOverrideId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrotationOverrideId=Uuid.of_xml(Xml.child_exn~context:context_xml_arg0"RotationOverrideId")inletrotationId=SsmContactsArn.of_xml(Xml.child_exn~context:context_xml_arg0"RotationId")inmake~rotationOverrideId~rotationId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrotationOverrideId=field_map_exnjson__"RotationOverrideId"Uuid.of_jsoninletrotationId=field_map_exnjson__"RotationId"SsmContactsArn.of_jsoninmake~rotationOverrideId~rotationId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves information about an override to an on-call rotation."]moduleGetContactResult=structtypenonrect={contactArn:SsmContactsArn.toption[@ocaml.doc"The ARN of the contact or escalation plan."];alias:ContactAlias.toption[@ocaml.doc"The alias of the contact or escalation plan. The alias is unique and identifiable."];displayName:ContactName.toption[@ocaml.doc"The full name of the contact or escalation plan."];type_:ContactType.toption[@ocaml.doc"The type of contact."];plan:Plan.toption[@ocaml.doc"Details about the specific timing or stages and targets of the escalation plan or engagement plan."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DataEncryptionExceptionofDataEncryptionException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?contactArn=fun?alias->fun?displayName->fun?type_->fun?plan->fun()->{contactArn;alias;displayName;type_;plan}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DataEncryptionException"->`DataEncryptionException(DataEncryptionException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"DataEncryptionException"->`DataEncryptionException(DataEncryptionException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`DataEncryptionExceptione->`Assoc[("error",(`String"DataEncryptionException"));("details",(DataEncryptionException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ContactArn",(Option.mapx.contactArn~f:SsmContactsArn.to_value));("Alias",(Option.mapx.alias~f:ContactAlias.to_value));("DisplayName",(Option.mapx.displayName~f:ContactName.to_value));("Type",(Option.mapx.type_~f:ContactType.to_value));("Plan",(Option.mapx.plan~f:Plan.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letplan=(Option.map~f:Plan.of_xml)(Xml.childxml_arg0"Plan")inlettype_=(Option.map~f:ContactType.of_xml)(Xml.childxml_arg0"Type")inletdisplayName=(Option.map~f:ContactName.of_xml)(Xml.childxml_arg0"DisplayName")inletalias=(Option.map~f:ContactAlias.of_xml)(Xml.childxml_arg0"Alias")inletcontactArn=(Option.map~f:SsmContactsArn.of_xml)(Xml.childxml_arg0"ContactArn")inmake?plan?type_?displayName?alias?contactArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letplan=field_mapjson__"Plan"Plan.of_jsoninlettype_=field_mapjson__"Type"ContactType.of_jsoninletdisplayName=field_mapjson__"DisplayName"ContactName.of_jsoninletalias=field_mapjson__"Alias"ContactAlias.of_jsoninletcontactArn=field_mapjson__"ContactArn"SsmContactsArn.of_jsoninmake?plan?type_?displayName?alias?contactArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves information about the specified contact or escalation plan."]moduleGetContactRequest=structtypenonrect={contactId:SsmContactsArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the contact or escalation plan."]}letcontext_="GetContactRequest"letmake~contactId=fun()->{contactId}letto_valuex=structure_to_value[("ContactId",(Some(SsmContactsArn.to_valuex.contactId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcontactId=SsmContactsArn.of_xml(Xml.child_exn~context:context_xml_arg0"ContactId")inmake~contactId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcontactId=field_map_exnjson__"ContactId"SsmContactsArn.of_jsoninmake~contactId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves information about the specified contact or escalation plan."]moduleGetContactPolicyResult=structtypenonrect={contactArn:SsmContactsArn.toption[@ocaml.doc"The ARN of the contact or escalation plan."];policy:Policy.toption[@ocaml.doc"Details about the resource policy attached to the contact or escalation plan."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?contactArn=fun?policy->fun()->{contactArn;policy}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ContactArn",(Option.mapx.contactArn~f:SsmContactsArn.to_value));("Policy",(Option.mapx.policy~f:Policy.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpolicy=(Option.map~f:Policy.of_xml)(Xml.childxml_arg0"Policy")inletcontactArn=(Option.map~f:SsmContactsArn.of_xml)(Xml.childxml_arg0"ContactArn")inmake?policy?contactArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpolicy=field_mapjson__"Policy"Policy.of_jsoninletcontactArn=field_mapjson__"ContactArn"SsmContactsArn.of_jsoninmake?policy?contactArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the resource policies attached to the specified contact or escalation plan."]moduleGetContactPolicyRequest=structtypenonrect={contactArn:SsmContactsArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the contact or escalation plan."]}letcontext_="GetContactPolicyRequest"letmake~contactArn=fun()->{contactArn}letto_valuex=structure_to_value[("ContactArn",(Some(SsmContactsArn.to_valuex.contactArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcontactArn=SsmContactsArn.of_xml(Xml.child_exn~context:context_xml_arg0"ContactArn")inmake~contactArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcontactArn=field_map_exnjson__"ContactArn"SsmContactsArn.of_jsoninmake~contactArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the resource policies attached to the specified contact or escalation plan."]moduleGetContactChannelResult=structtypenonrect={contactArn:SsmContactsArn.toption[@ocaml.doc"The ARN of the contact that the channel belongs to."];contactChannelArn:SsmContactsArn.toption[@ocaml.doc"The ARN of the contact channel."];name:ChannelName.toption[@ocaml.doc"The name of the contact channel"];type_:ChannelType.toption[@ocaml.doc"The type of contact channel. The type is SMS, VOICE, or EMAIL."];deliveryAddress:ContactChannelAddress.toption[@ocaml.doc"The details that Incident Manager uses when trying to engage the contact channel."];activationStatus:ActivationStatus.toption[@ocaml.doc"A Boolean value indicating if the contact channel has been activated or not."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DataEncryptionExceptionofDataEncryptionException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?contactArn=fun?contactChannelArn->fun?name->fun?type_->fun?deliveryAddress->fun?activationStatus->fun()->{contactArn;contactChannelArn;name;type_;deliveryAddress;activationStatus}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DataEncryptionException"->`DataEncryptionException(DataEncryptionException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"DataEncryptionException"->`DataEncryptionException(DataEncryptionException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`DataEncryptionExceptione->`Assoc[("error",(`String"DataEncryptionException"));("details",(DataEncryptionException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ContactArn",(Option.mapx.contactArn~f:SsmContactsArn.to_value));("ContactChannelArn",(Option.mapx.contactChannelArn~f:SsmContactsArn.to_value));("Name",(Option.mapx.name~f:ChannelName.to_value));("Type",(Option.mapx.type_~f:ChannelType.to_value));("DeliveryAddress",(Option.mapx.deliveryAddress~f:ContactChannelAddress.to_value));("ActivationStatus",(Option.mapx.activationStatus~f:ActivationStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letactivationStatus=(Option.map~f:ActivationStatus.of_xml)(Xml.childxml_arg0"ActivationStatus")inletdeliveryAddress=(Option.map~f:ContactChannelAddress.of_xml)(Xml.childxml_arg0"DeliveryAddress")inlettype_=(Option.map~f:ChannelType.of_xml)(Xml.childxml_arg0"Type")inletname=(Option.map~f:ChannelName.of_xml)(Xml.childxml_arg0"Name")inletcontactChannelArn=(Option.map~f:SsmContactsArn.of_xml)(Xml.childxml_arg0"ContactChannelArn")inletcontactArn=(Option.map~f:SsmContactsArn.of_xml)(Xml.childxml_arg0"ContactArn")inmake?activationStatus?deliveryAddress?type_?name?contactChannelArn?contactArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letactivationStatus=field_mapjson__"ActivationStatus"ActivationStatus.of_jsoninletdeliveryAddress=field_mapjson__"DeliveryAddress"ContactChannelAddress.of_jsoninlettype_=field_mapjson__"Type"ChannelType.of_jsoninletname=field_mapjson__"Name"ChannelName.of_jsoninletcontactChannelArn=field_mapjson__"ContactChannelArn"SsmContactsArn.of_jsoninletcontactArn=field_mapjson__"ContactArn"SsmContactsArn.of_jsoninmake?activationStatus?deliveryAddress?type_?name?contactChannelArn?contactArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"List details about a specific contact channel."]moduleGetContactChannelRequest=structtypenonrect={contactChannelId:SsmContactsArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the contact channel you want information about."]}letcontext_="GetContactChannelRequest"letmake~contactChannelId=fun()->{contactChannelId}letto_valuex=structure_to_value[("ContactChannelId",(Some(SsmContactsArn.to_valuex.contactChannelId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcontactChannelId=SsmContactsArn.of_xml(Xml.child_exn~context:context_xml_arg0"ContactChannelId")inmake~contactChannelId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcontactChannelId=field_map_exnjson__"ContactChannelId"SsmContactsArn.of_jsoninmake~contactChannelId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"List details about a specific contact channel."]moduleDescribePageResult=structtypenonrect={pageArn:SsmContactsArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the engagement to a contact channel."];engagementArn:SsmContactsArn.toption[@ocaml.doc"The ARN of the engagement that engaged the contact channel."];contactArn:SsmContactsArn.toption[@ocaml.doc"The ARN of the contact that was engaged."];sender:Sender.toption[@ocaml.doc"The user that started the engagement."];subject:Subject.toption[@ocaml.doc"The secure subject of the message that was sent to the contact. Use this field for engagements to VOICE and EMAIL."];content:Content.toption[@ocaml.doc"The secure content of the message that was sent to the contact. Use this field for engagements to VOICE and EMAIL."];publicSubject:PublicSubject.toption[@ocaml.doc"The insecure subject of the message that was sent to the contact. Use this field for engagements to SMS."];publicContent:PublicContent.toption[@ocaml.doc"The insecure content of the message that was sent to the contact. Use this field for engagements to SMS."];incidentId:IncidentId.toption[@ocaml.doc"The ARN of the incident that engaged the contact channel."];sentTime:DateTime.toption[@ocaml.doc"The time the engagement was sent to the contact channel."];readTime:DateTime.toption[@ocaml.doc"The time that the contact channel acknowledged the engagement."];deliveryTime:DateTime.toption[@ocaml.doc"The time that the contact channel received the engagement."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DataEncryptionExceptionofDataEncryptionException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?pageArn=fun?engagementArn->fun?contactArn->fun?sender->fun?subject->fun?content->fun?publicSubject->fun?publicContent->fun?incidentId->fun?sentTime->fun?readTime->fun?deliveryTime->fun()->{pageArn;engagementArn;contactArn;sender;subject;content;publicSubject;publicContent;incidentId;sentTime;readTime;deliveryTime}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DataEncryptionException"->`DataEncryptionException(DataEncryptionException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"DataEncryptionException"->`DataEncryptionException(DataEncryptionException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`DataEncryptionExceptione->`Assoc[("error",(`String"DataEncryptionException"));("details",(DataEncryptionException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("PageArn",(Option.mapx.pageArn~f:SsmContactsArn.to_value));("EngagementArn",(Option.mapx.engagementArn~f:SsmContactsArn.to_value));("ContactArn",(Option.mapx.contactArn~f:SsmContactsArn.to_value));("Sender",(Option.mapx.sender~f:Sender.to_value));("Subject",(Option.mapx.subject~f:Subject.to_value));("Content",(Option.mapx.content~f:Content.to_value));("PublicSubject",(Option.mapx.publicSubject~f:PublicSubject.to_value));("PublicContent",(Option.mapx.publicContent~f:PublicContent.to_value));("IncidentId",(Option.mapx.incidentId~f:IncidentId.to_value));("SentTime",(Option.mapx.sentTime~f:DateTime.to_value));("ReadTime",(Option.mapx.readTime~f:DateTime.to_value));("DeliveryTime",(Option.mapx.deliveryTime~f:DateTime.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdeliveryTime=(Option.map~f:DateTime.of_xml)(Xml.childxml_arg0"DeliveryTime")inletreadTime=(Option.map~f:DateTime.of_xml)(Xml.childxml_arg0"ReadTime")inletsentTime=(Option.map~f:DateTime.of_xml)(Xml.childxml_arg0"SentTime")inletincidentId=(Option.map~f:IncidentId.of_xml)(Xml.childxml_arg0"IncidentId")inletpublicContent=(Option.map~f:PublicContent.of_xml)(Xml.childxml_arg0"PublicContent")inletpublicSubject=(Option.map~f:PublicSubject.of_xml)(Xml.childxml_arg0"PublicSubject")inletcontent=(Option.map~f:Content.of_xml)(Xml.childxml_arg0"Content")inletsubject=(Option.map~f:Subject.of_xml)(Xml.childxml_arg0"Subject")inletsender=(Option.map~f:Sender.of_xml)(Xml.childxml_arg0"Sender")inletcontactArn=(Option.map~f:SsmContactsArn.of_xml)(Xml.childxml_arg0"ContactArn")inletengagementArn=(Option.map~f:SsmContactsArn.of_xml)(Xml.childxml_arg0"EngagementArn")inletpageArn=(Option.map~f:SsmContactsArn.of_xml)(Xml.childxml_arg0"PageArn")inmake?deliveryTime?readTime?sentTime?incidentId?publicContent?publicSubject?content?subject?sender?contactArn?engagementArn?pageArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdeliveryTime=field_mapjson__"DeliveryTime"DateTime.of_jsoninletreadTime=field_mapjson__"ReadTime"DateTime.of_jsoninletsentTime=field_mapjson__"SentTime"DateTime.of_jsoninletincidentId=field_mapjson__"IncidentId"IncidentId.of_jsoninletpublicContent=field_mapjson__"PublicContent"PublicContent.of_jsoninletpublicSubject=field_mapjson__"PublicSubject"PublicSubject.of_jsoninletcontent=field_mapjson__"Content"Content.of_jsoninletsubject=field_mapjson__"Subject"Subject.of_jsoninletsender=field_mapjson__"Sender"Sender.of_jsoninletcontactArn=field_mapjson__"ContactArn"SsmContactsArn.of_jsoninletengagementArn=field_mapjson__"EngagementArn"SsmContactsArn.of_jsoninletpageArn=field_mapjson__"PageArn"SsmContactsArn.of_jsoninmake?deliveryTime?readTime?sentTime?incidentId?publicContent?publicSubject?content?subject?sender?contactArn?engagementArn?pageArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists details of the engagement to a contact channel."]moduleDescribePageRequest=structtypenonrect={pageId:SsmContactsArn.t[@ocaml.doc"The ID of the engagement to a contact channel."]}letcontext_="DescribePageRequest"letmake~pageId=fun()->{pageId}letto_valuex=structure_to_value[("PageId",(Some(SsmContactsArn.to_valuex.pageId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpageId=SsmContactsArn.of_xml(Xml.child_exn~context:context_xml_arg0"PageId")inmake~pageId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpageId=field_map_exnjson__"PageId"SsmContactsArn.of_jsoninmake~pageId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists details of the engagement to a contact channel."]moduleDescribeEngagementResult=structtypenonrect={contactArn:SsmContactsArn.toption[@ocaml.doc"The ARN of the escalation plan or contacts involved in the engagement."];engagementArn:SsmContactsArn.toption[@ocaml.doc"The ARN of the engagement."];sender:Sender.toption[@ocaml.doc"The user that started the engagement."];subject:Subject.toption[@ocaml.doc"The secure subject of the message that was sent to the contact. Use this field for engagements to VOICE and EMAIL."];content:Content.toption[@ocaml.doc"The secure content of the message that was sent to the contact. Use this field for engagements to VOICE and EMAIL."];publicSubject:PublicSubject.toption[@ocaml.doc"The insecure subject of the message that was sent to the contact. Use this field for engagements to SMS."];publicContent:PublicContent.toption[@ocaml.doc"The insecure content of the message that was sent to the contact. Use this field for engagements to SMS."];incidentId:IncidentId.toption[@ocaml.doc"The ARN of the incident in which the engagement occurred."];startTime:DateTime.toption[@ocaml.doc"The time that the engagement started."];stopTime:DateTime.toption[@ocaml.doc"The time that the engagement ended."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DataEncryptionExceptionofDataEncryptionException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?contactArn=fun?engagementArn->fun?sender->fun?subject->fun?content->fun?publicSubject->fun?publicContent->fun?incidentId->fun?startTime->fun?stopTime->fun()->{contactArn;engagementArn;sender;subject;content;publicSubject;publicContent;incidentId;startTime;stopTime}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DataEncryptionException"->`DataEncryptionException(DataEncryptionException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"DataEncryptionException"->`DataEncryptionException(DataEncryptionException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`DataEncryptionExceptione->`Assoc[("error",(`String"DataEncryptionException"));("details",(DataEncryptionException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ContactArn",(Option.mapx.contactArn~f:SsmContactsArn.to_value));("EngagementArn",(Option.mapx.engagementArn~f:SsmContactsArn.to_value));("Sender",(Option.mapx.sender~f:Sender.to_value));("Subject",(Option.mapx.subject~f:Subject.to_value));("Content",(Option.mapx.content~f:Content.to_value));("PublicSubject",(Option.mapx.publicSubject~f:PublicSubject.to_value));("PublicContent",(Option.mapx.publicContent~f:PublicContent.to_value));("IncidentId",(Option.mapx.incidentId~f:IncidentId.to_value));("StartTime",(Option.mapx.startTime~f:DateTime.to_value));("StopTime",(Option.mapx.stopTime~f:DateTime.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstopTime=(Option.map~f:DateTime.of_xml)(Xml.childxml_arg0"StopTime")inletstartTime=(Option.map~f:DateTime.of_xml)(Xml.childxml_arg0"StartTime")inletincidentId=(Option.map~f:IncidentId.of_xml)(Xml.childxml_arg0"IncidentId")inletpublicContent=(Option.map~f:PublicContent.of_xml)(Xml.childxml_arg0"PublicContent")inletpublicSubject=(Option.map~f:PublicSubject.of_xml)(Xml.childxml_arg0"PublicSubject")inletcontent=(Option.map~f:Content.of_xml)(Xml.childxml_arg0"Content")inletsubject=(Option.map~f:Subject.of_xml)(Xml.childxml_arg0"Subject")inletsender=(Option.map~f:Sender.of_xml)(Xml.childxml_arg0"Sender")inletengagementArn=(Option.map~f:SsmContactsArn.of_xml)(Xml.childxml_arg0"EngagementArn")inletcontactArn=(Option.map~f:SsmContactsArn.of_xml)(Xml.childxml_arg0"ContactArn")inmake?stopTime?startTime?incidentId?publicContent?publicSubject?content?subject?sender?engagementArn?contactArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstopTime=field_mapjson__"StopTime"DateTime.of_jsoninletstartTime=field_mapjson__"StartTime"DateTime.of_jsoninletincidentId=field_mapjson__"IncidentId"IncidentId.of_jsoninletpublicContent=field_mapjson__"PublicContent"PublicContent.of_jsoninletpublicSubject=field_mapjson__"PublicSubject"PublicSubject.of_jsoninletcontent=field_mapjson__"Content"Content.of_jsoninletsubject=field_mapjson__"Subject"Subject.of_jsoninletsender=field_mapjson__"Sender"Sender.of_jsoninletengagementArn=field_mapjson__"EngagementArn"SsmContactsArn.of_jsoninletcontactArn=field_mapjson__"ContactArn"SsmContactsArn.of_jsoninmake?stopTime?startTime?incidentId?publicContent?publicSubject?content?subject?sender?engagementArn?contactArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Incident Manager uses engagements to engage contacts and escalation plans during an incident. Use this command to describe the engagement that occurred during an incident."]moduleDescribeEngagementRequest=structtypenonrect={engagementId:SsmContactsArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the engagement you want the details of."]}letcontext_="DescribeEngagementRequest"letmake~engagementId=fun()->{engagementId}letto_valuex=structure_to_value[("EngagementId",(Some(SsmContactsArn.to_valuex.engagementId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letengagementId=SsmContactsArn.of_xml(Xml.child_exn~context:context_xml_arg0"EngagementId")inmake~engagementId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letengagementId=field_map_exnjson__"EngagementId"SsmContactsArn.of_jsoninmake~engagementId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Incident Manager uses engagements to engage contacts and escalation plans during an incident. Use this command to describe the engagement that occurred during an incident."]moduleDeleteRotationResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a rotation from the system. If a rotation belongs to more than one on-call schedule, this operation deletes it from all of them."]moduleDeleteRotationRequest=structtypenonrect={rotationId:SsmContactsArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the on-call rotation to delete."]}letcontext_="DeleteRotationRequest"letmake~rotationId=fun()->{rotationId}letto_valuex=structure_to_value[("RotationId",(Some(SsmContactsArn.to_valuex.rotationId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrotationId=SsmContactsArn.of_xml(Xml.child_exn~context:context_xml_arg0"RotationId")inmake~rotationId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrotationId=field_map_exnjson__"RotationId"SsmContactsArn.of_jsoninmake~rotationId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a rotation from the system. If a rotation belongs to more than one on-call schedule, this operation deletes it from all of them."]moduleDeleteRotationOverrideResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes an existing override for an on-call rotation."]moduleDeleteRotationOverrideRequest=structtypenonrect={rotationId:SsmContactsArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the rotation that was overridden."];rotationOverrideId:Uuid.t[@ocaml.doc"The Amazon Resource Name (ARN) of the on-call rotation override to delete."]}letcontext_="DeleteRotationOverrideRequest"letmake~rotationId=fun~rotationOverrideId->fun()->{rotationId;rotationOverrideId}letto_valuex=structure_to_value[("RotationId",(Some(SsmContactsArn.to_valuex.rotationId)));("RotationOverrideId",(Some(Uuid.to_valuex.rotationOverrideId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrotationOverrideId=Uuid.of_xml(Xml.child_exn~context:context_xml_arg0"RotationOverrideId")inletrotationId=SsmContactsArn.of_xml(Xml.child_exn~context:context_xml_arg0"RotationId")inmake~rotationOverrideId~rotationId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrotationOverrideId=field_map_exnjson__"RotationOverrideId"Uuid.of_jsoninletrotationId=field_map_exnjson__"RotationId"SsmContactsArn.of_jsoninmake~rotationOverrideId~rotationId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes an existing override for an on-call rotation."]moduleDeleteContactResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"To remove a contact from Incident Manager, you can delete the contact. However, deleting a contact does not remove it from escalation plans and related response plans. Deleting an escalation plan also does not remove it from all related response plans. To modify an escalation plan, we recommend using the UpdateContact action to specify a different existing contact."]moduleDeleteContactRequest=structtypenonrect={contactId:SsmContactsArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the contact that you're deleting."]}letcontext_="DeleteContactRequest"letmake~contactId=fun()->{contactId}letto_valuex=structure_to_value[("ContactId",(Some(SsmContactsArn.to_valuex.contactId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcontactId=SsmContactsArn.of_xml(Xml.child_exn~context:context_xml_arg0"ContactId")inmake~contactId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcontactId=field_map_exnjson__"ContactId"SsmContactsArn.of_jsoninmake~contactId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"To remove a contact from Incident Manager, you can delete the contact. However, deleting a contact does not remove it from escalation plans and related response plans. Deleting an escalation plan also does not remove it from all related response plans. To modify an escalation plan, we recommend using the UpdateContact action to specify a different existing contact."]moduleDeleteContactChannelResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"To stop receiving engagements on a contact channel, you can delete the channel from a contact. Deleting the contact channel does not remove it from the contact's engagement plan, but the stage that includes the channel will be ignored. If you delete the only contact channel for a contact, you'll no longer be able to engage that contact during an incident."]moduleDeleteContactChannelRequest=structtypenonrect={contactChannelId:SsmContactsArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the contact channel."]}letcontext_="DeleteContactChannelRequest"letmake~contactChannelId=fun()->{contactChannelId}letto_valuex=structure_to_value[("ContactChannelId",(Some(SsmContactsArn.to_valuex.contactChannelId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcontactChannelId=SsmContactsArn.of_xml(Xml.child_exn~context:context_xml_arg0"ContactChannelId")inmake~contactChannelId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcontactChannelId=field_map_exnjson__"ContactChannelId"SsmContactsArn.of_jsoninmake~contactChannelId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"To stop receiving engagements on a contact channel, you can delete the channel from a contact. Deleting the contact channel does not remove it from the contact's engagement plan, but the stage that includes the channel will be ignored. If you delete the only contact channel for a contact, you'll no longer be able to engage that contact during an incident."]moduleDeactivateContactChannelResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"To no longer receive Incident Manager engagements to a contact channel, you can deactivate the channel."]moduleDeactivateContactChannelRequest=structtypenonrect={contactChannelId:SsmContactsArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the contact channel you're deactivating."]}letcontext_="DeactivateContactChannelRequest"letmake~contactChannelId=fun()->{contactChannelId}letto_valuex=structure_to_value[("ContactChannelId",(Some(SsmContactsArn.to_valuex.contactChannelId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcontactChannelId=SsmContactsArn.of_xml(Xml.child_exn~context:context_xml_arg0"ContactChannelId")inmake~contactChannelId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcontactChannelId=field_map_exnjson__"ContactChannelId"SsmContactsArn.of_jsoninmake~contactChannelId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"To no longer receive Incident Manager engagements to a contact channel, you can deactivate the channel."]moduleCreateRotationResult=structtypenonrect={rotationArn:SsmContactsArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the created rotation."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?rotationArn=fun()->{rotationArn}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("RotationArn",(Option.mapx.rotationArn~f:SsmContactsArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrotationArn=(Option.map~f:SsmContactsArn.of_xml)(Xml.childxml_arg0"RotationArn")inmake?rotationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrotationArn=field_mapjson__"RotationArn"SsmContactsArn.of_jsoninmake?rotationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a rotation in an on-call schedule."]moduleCreateRotationRequest=structtypenonrect={name:RotationName.t[@ocaml.doc"The name of the rotation."];contactIds:RotationContactsArnList.t[@ocaml.doc"The Amazon Resource Names (ARNs) of the contacts to add to the rotation. Only the PERSONAL contact type is supported. The contact types ESCALATION and ONCALL_SCHEDULE are not supported for this operation. The order that you list the contacts in is their shift order in the rotation schedule. To change the order of the contact's shifts, use the UpdateRotation operation."];startTime:DateTime.toption[@ocaml.doc"The date and time that the rotation goes into effect."];timeZoneId:TimeZoneId.t[@ocaml.doc"The time zone to base the rotation\226\128\153s activity on in Internet Assigned Numbers Authority (IANA) format. For example: \"America/Los_Angeles\", \"UTC\", or \"Asia/Seoul\". For more information, see the Time Zone Database on the IANA website. Designators for time zones that don\226\128\153t support Daylight Savings Time rules, such as Pacific Standard Time (PST), are not supported."];recurrence:RecurrenceSettings.t[@ocaml.doc"Information about the rule that specifies when a shift's team members rotate."];tags:TagsList.toption[@ocaml.doc"Optional metadata to assign to the rotation. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For more information, see Tagging Incident Manager resources in the Incident Manager User Guide."];idempotencyToken:IdempotencyToken.toption[@ocaml.doc"A token that ensures that the operation is called only once with the specified details."]}letcontext_="CreateRotationRequest"letmake?startTime=fun?tags->fun?idempotencyToken->fun~name->fun~contactIds->fun~timeZoneId->fun~recurrence->fun()->{startTime;tags;idempotencyToken;name;contactIds;timeZoneId;recurrence}letto_valuex=structure_to_value[("Name",(Some(RotationName.to_valuex.name)));("ContactIds",(Some(RotationContactsArnList.to_valuex.contactIds)));("StartTime",(Option.mapx.startTime~f:DateTime.to_value));("TimeZoneId",(Some(TimeZoneId.to_valuex.timeZoneId)));("Recurrence",(Some(RecurrenceSettings.to_valuex.recurrence)));("Tags",(Option.mapx.tags~f:TagsList.to_value));("IdempotencyToken",(Option.mapx.idempotencyToken~f:IdempotencyToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidempotencyToken=(Option.map~f:IdempotencyToken.of_xml)(Xml.childxml_arg0"IdempotencyToken")inlettags=(Option.map~f:TagsList.of_xml)(Xml.childxml_arg0"Tags")inletrecurrence=RecurrenceSettings.of_xml(Xml.child_exn~context:context_xml_arg0"Recurrence")inlettimeZoneId=TimeZoneId.of_xml(Xml.child_exn~context:context_xml_arg0"TimeZoneId")inletstartTime=(Option.map~f:DateTime.of_xml)(Xml.childxml_arg0"StartTime")inletcontactIds=RotationContactsArnList.of_xml(Xml.child_exn~context:context_xml_arg0"ContactIds")inletname=RotationName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake?idempotencyToken?tags~recurrence~timeZoneId?startTime~contactIds~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidempotencyToken=field_mapjson__"IdempotencyToken"IdempotencyToken.of_jsoninlettags=field_mapjson__"Tags"TagsList.of_jsoninletrecurrence=field_map_exnjson__"Recurrence"RecurrenceSettings.of_jsoninlettimeZoneId=field_map_exnjson__"TimeZoneId"TimeZoneId.of_jsoninletstartTime=field_mapjson__"StartTime"DateTime.of_jsoninletcontactIds=field_map_exnjson__"ContactIds"RotationContactsArnList.of_jsoninletname=field_map_exnjson__"Name"RotationName.of_jsoninmake?idempotencyToken?tags~recurrence~timeZoneId?startTime~contactIds~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a rotation in an on-call schedule."]moduleCreateRotationOverrideResult=structtypenonrect={rotationOverrideId:Uuid.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the created rotation override."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?rotationOverrideId=fun()->{rotationOverrideId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("RotationOverrideId",(Option.mapx.rotationOverrideId~f:Uuid.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrotationOverrideId=(Option.map~f:Uuid.of_xml)(Xml.childxml_arg0"RotationOverrideId")inmake?rotationOverrideId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrotationOverrideId=field_mapjson__"RotationOverrideId"Uuid.of_jsoninmake?rotationOverrideId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an override for a rotation in an on-call schedule."]moduleCreateRotationOverrideRequest=structtypenonrect={rotationId:SsmContactsArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the rotation to create an override for."];newContactIds:RotationOverrideContactsArnList.t[@ocaml.doc"The Amazon Resource Names (ARNs) of the contacts to replace those in the current on-call rotation with. If you want to include any current team members in the override shift, you must include their ARNs in the new contact ID list."];startTime:DateTime.t[@ocaml.doc"The date and time when the override goes into effect."];endTime:DateTime.t[@ocaml.doc"The date and time when the override ends."];idempotencyToken:IdempotencyToken.toption[@ocaml.doc"A token that ensures that the operation is called only once with the specified details."]}letcontext_="CreateRotationOverrideRequest"letmake?idempotencyToken=fun~rotationId->fun~newContactIds->fun~startTime->fun~endTime->fun()->{idempotencyToken;rotationId;newContactIds;startTime;endTime}letto_valuex=structure_to_value[("RotationId",(Some(SsmContactsArn.to_valuex.rotationId)));("NewContactIds",(Some(RotationOverrideContactsArnList.to_valuex.newContactIds)));("StartTime",(Some(DateTime.to_valuex.startTime)));("EndTime",(Some(DateTime.to_valuex.endTime)));("IdempotencyToken",(Option.mapx.idempotencyToken~f:IdempotencyToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidempotencyToken=(Option.map~f:IdempotencyToken.of_xml)(Xml.childxml_arg0"IdempotencyToken")inletendTime=DateTime.of_xml(Xml.child_exn~context:context_xml_arg0"EndTime")inletstartTime=DateTime.of_xml(Xml.child_exn~context:context_xml_arg0"StartTime")inletnewContactIds=RotationOverrideContactsArnList.of_xml(Xml.child_exn~context:context_xml_arg0"NewContactIds")inletrotationId=SsmContactsArn.of_xml(Xml.child_exn~context:context_xml_arg0"RotationId")inmake?idempotencyToken~endTime~startTime~newContactIds~rotationId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidempotencyToken=field_mapjson__"IdempotencyToken"IdempotencyToken.of_jsoninletendTime=field_map_exnjson__"EndTime"DateTime.of_jsoninletstartTime=field_map_exnjson__"StartTime"DateTime.of_jsoninletnewContactIds=field_map_exnjson__"NewContactIds"RotationOverrideContactsArnList.of_jsoninletrotationId=field_map_exnjson__"RotationId"SsmContactsArn.of_jsoninmake?idempotencyToken~endTime~startTime~newContactIds~rotationId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an override for a rotation in an on-call schedule."]moduleCreateContactResult=structtypenonrect={contactArn:SsmContactsArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the created contact or escalation plan."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`DataEncryptionExceptionofDataEncryptionException.t|`InternalServerExceptionofInternalServerException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?contactArn=fun()->{contactArn}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"DataEncryptionException"->`DataEncryptionException(DataEncryptionException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"DataEncryptionException"->`DataEncryptionException(DataEncryptionException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`DataEncryptionExceptione->`Assoc[("error",(`String"DataEncryptionException"));("details",(DataEncryptionException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ContactArn",(Option.mapx.contactArn~f:SsmContactsArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcontactArn=(Option.map~f:SsmContactsArn.of_xml)(Xml.childxml_arg0"ContactArn")inmake?contactArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcontactArn=field_mapjson__"ContactArn"SsmContactsArn.of_jsoninmake?contactArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contacts are either the contacts that Incident Manager engages during an incident or the escalation plans that Incident Manager uses to engage contacts in phases during an incident."]moduleCreateContactRequest=structtypenonrect={alias:ContactAlias.t[@ocaml.doc"The short name to quickly identify a contact or escalation plan. The contact alias must be unique and identifiable."];displayName:ContactName.toption[@ocaml.doc"The full name of the contact or escalation plan."];type_:ContactType.t[@ocaml.doc"The type of contact to create. PERSONAL: A single, individual contact. ESCALATION: An escalation plan. ONCALL_SCHEDULE: An on-call schedule."];plan:Plan.t[@ocaml.doc"A list of stages. A contact has an engagement plan with stages that contact specified contact channels. An escalation plan uses stages that contact specified contacts."];tags:TagsList.toption[@ocaml.doc"Adds a tag to the target. You can only tag resources created in the first Region of your replication set."];idempotencyToken:IdempotencyToken.toption[@ocaml.doc"A token ensuring that the operation is called only once with the specified details."]}letcontext_="CreateContactRequest"letmake?displayName=fun?tags->fun?idempotencyToken->fun~alias->fun~type_->fun~plan->fun()->{displayName;tags;idempotencyToken;alias;type_;plan}letto_valuex=structure_to_value[("Alias",(Some(ContactAlias.to_valuex.alias)));("DisplayName",(Option.mapx.displayName~f:ContactName.to_value));("Type",(Some(ContactType.to_valuex.type_)));("Plan",(Some(Plan.to_valuex.plan)));("Tags",(Option.mapx.tags~f:TagsList.to_value));("IdempotencyToken",(Option.mapx.idempotencyToken~f:IdempotencyToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidempotencyToken=(Option.map~f:IdempotencyToken.of_xml)(Xml.childxml_arg0"IdempotencyToken")inlettags=(Option.map~f:TagsList.of_xml)(Xml.childxml_arg0"Tags")inletplan=Plan.of_xml(Xml.child_exn~context:context_xml_arg0"Plan")inlettype_=ContactType.of_xml(Xml.child_exn~context:context_xml_arg0"Type")inletdisplayName=(Option.map~f:ContactName.of_xml)(Xml.childxml_arg0"DisplayName")inletalias=ContactAlias.of_xml(Xml.child_exn~context:context_xml_arg0"Alias")inmake?idempotencyToken?tags~plan~type_?displayName~alias()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidempotencyToken=field_mapjson__"IdempotencyToken"IdempotencyToken.of_jsoninlettags=field_mapjson__"Tags"TagsList.of_jsoninletplan=field_map_exnjson__"Plan"Plan.of_jsoninlettype_=field_map_exnjson__"Type"ContactType.of_jsoninletdisplayName=field_mapjson__"DisplayName"ContactName.of_jsoninletalias=field_map_exnjson__"Alias"ContactAlias.of_jsoninmake?idempotencyToken?tags~plan~type_?displayName~alias()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contacts are either the contacts that Incident Manager engages during an incident or the escalation plans that Incident Manager uses to engage contacts in phases during an incident."]moduleCreateContactChannelResult=structtypenonrect={contactChannelArn:SsmContactsArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the contact channel."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`DataEncryptionExceptionofDataEncryptionException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?contactChannelArn=fun()->{contactChannelArn}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"DataEncryptionException"->`DataEncryptionException(DataEncryptionException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"DataEncryptionException"->`DataEncryptionException(DataEncryptionException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`DataEncryptionExceptione->`Assoc[("error",(`String"DataEncryptionException"));("details",(DataEncryptionException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ContactChannelArn",(Option.mapx.contactChannelArn~f:SsmContactsArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcontactChannelArn=(Option.map~f:SsmContactsArn.of_xml)(Xml.childxml_arg0"ContactChannelArn")inmake?contactChannelArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcontactChannelArn=field_mapjson__"ContactChannelArn"SsmContactsArn.of_jsoninmake?contactChannelArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A contact channel is the method that Incident Manager uses to engage your contact."]moduleCreateContactChannelRequest=structtypenonrect={contactId:SsmContactsArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the contact you are adding the contact channel to."];name:ChannelName.t[@ocaml.doc"The name of the contact channel."];type_:ChannelType.t[@ocaml.doc"Incident Manager supports three types of contact channels: SMS VOICE EMAIL"];deliveryAddress:ContactChannelAddress.t[@ocaml.doc"The details that Incident Manager uses when trying to engage the contact channel. The format is dependent on the type of the contact channel. The following are the expected formats: SMS - '+' followed by the country code and phone number VOICE - '+' followed by the country code and phone number EMAIL - any standard email format"];deferActivation:DeferActivation.toption[@ocaml.doc"If you want to activate the channel at a later time, you can choose to defer activation. Incident Manager can't engage your contact channel until it has been activated."];idempotencyToken:IdempotencyToken.toption[@ocaml.doc"A token ensuring that the operation is called only once with the specified details."]}letcontext_="CreateContactChannelRequest"letmake?deferActivation=fun?idempotencyToken->fun~contactId->fun~name->fun~type_->fun~deliveryAddress->fun()->{deferActivation;idempotencyToken;contactId;name;type_;deliveryAddress}letto_valuex=structure_to_value[("ContactId",(Some(SsmContactsArn.to_valuex.contactId)));("Name",(Some(ChannelName.to_valuex.name)));("Type",(Some(ChannelType.to_valuex.type_)));("DeliveryAddress",(Some(ContactChannelAddress.to_valuex.deliveryAddress)));("DeferActivation",(Option.mapx.deferActivation~f:DeferActivation.to_value));("IdempotencyToken",(Option.mapx.idempotencyToken~f:IdempotencyToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidempotencyToken=(Option.map~f:IdempotencyToken.of_xml)(Xml.childxml_arg0"IdempotencyToken")inletdeferActivation=(Option.map~f:DeferActivation.of_xml)(Xml.childxml_arg0"DeferActivation")inletdeliveryAddress=ContactChannelAddress.of_xml(Xml.child_exn~context:context_xml_arg0"DeliveryAddress")inlettype_=ChannelType.of_xml(Xml.child_exn~context:context_xml_arg0"Type")inletname=ChannelName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inletcontactId=SsmContactsArn.of_xml(Xml.child_exn~context:context_xml_arg0"ContactId")inmake?idempotencyToken?deferActivation~deliveryAddress~type_~name~contactId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidempotencyToken=field_mapjson__"IdempotencyToken"IdempotencyToken.of_jsoninletdeferActivation=field_mapjson__"DeferActivation"DeferActivation.of_jsoninletdeliveryAddress=field_map_exnjson__"DeliveryAddress"ContactChannelAddress.of_jsoninlettype_=field_map_exnjson__"Type"ChannelType.of_jsoninletname=field_map_exnjson__"Name"ChannelName.of_jsoninletcontactId=field_map_exnjson__"ContactId"SsmContactsArn.of_jsoninmake?idempotencyToken?deferActivation~deliveryAddress~type_~name~contactId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A contact channel is the method that Incident Manager uses to engage your contact."]moduleActivateContactChannelResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Activates a contact's contact channel. Incident Manager can't engage a contact until the contact channel has been activated."]moduleActivateContactChannelRequest=structtypenonrect={contactChannelId:SsmContactsArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the contact channel."];activationCode:ActivationCode.t[@ocaml.doc"The code sent to the contact channel when it was created in the contact."]}letcontext_="ActivateContactChannelRequest"letmake~contactChannelId=fun~activationCode->fun()->{contactChannelId;activationCode}letto_valuex=structure_to_value[("ContactChannelId",(Some(SsmContactsArn.to_valuex.contactChannelId)));("ActivationCode",(Some(ActivationCode.to_valuex.activationCode)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letactivationCode=ActivationCode.of_xml(Xml.child_exn~context:context_xml_arg0"ActivationCode")inletcontactChannelId=SsmContactsArn.of_xml(Xml.child_exn~context:context_xml_arg0"ContactChannelId")inmake~activationCode~contactChannelId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letactivationCode=field_map_exnjson__"ActivationCode"ActivationCode.of_jsoninletcontactChannelId=field_map_exnjson__"ContactChannelId"SsmContactsArn.of_jsoninmake~activationCode~contactChannelId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Activates a contact's contact channel. Incident Manager can't engage a contact until the contact channel has been activated."]moduleAcceptPageResult=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Used to acknowledge an engagement to a contact channel during an incident."]moduleAcceptPageRequest=structtypenonrect={pageId:SsmContactsArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the engagement to a contact channel."];contactChannelId:SsmContactsArn.toption[@ocaml.doc"The ARN of the contact channel."];acceptType:AcceptType.t[@ocaml.doc"The type indicates if the page was DELIVERED or READ."];note:ReceiptInfo.toption[@ocaml.doc"Information provided by the user when the user acknowledges the page."];acceptCode:AcceptCode.t[@ocaml.doc"A 6-digit code used to acknowledge the page."];acceptCodeValidation:AcceptCodeValidation.toption[@ocaml.doc"An optional field that Incident Manager uses to ENFORCE AcceptCode validation when acknowledging an page. Acknowledgement can occur by replying to a page, or when entering the AcceptCode in the console. Enforcing AcceptCode validation causes Incident Manager to verify that the code entered by the user matches the code sent by Incident Manager with the page. Incident Manager can also IGNORE AcceptCode validation. Ignoring AcceptCode validation causes Incident Manager to accept any value entered for the AcceptCode."]}letcontext_="AcceptPageRequest"letmake?contactChannelId=fun?note->fun?acceptCodeValidation->fun~pageId->fun~acceptType->fun~acceptCode->fun()->{contactChannelId;note;acceptCodeValidation;pageId;acceptType;acceptCode}letto_valuex=structure_to_value[("PageId",(Some(SsmContactsArn.to_valuex.pageId)));("ContactChannelId",(Option.mapx.contactChannelId~f:SsmContactsArn.to_value));("AcceptType",(Some(AcceptType.to_valuex.acceptType)));("Note",(Option.mapx.note~f:ReceiptInfo.to_value));("AcceptCode",(Some(AcceptCode.to_valuex.acceptCode)));("AcceptCodeValidation",(Option.mapx.acceptCodeValidation~f:AcceptCodeValidation.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letacceptCodeValidation=(Option.map~f:AcceptCodeValidation.of_xml)(Xml.childxml_arg0"AcceptCodeValidation")inletacceptCode=AcceptCode.of_xml(Xml.child_exn~context:context_xml_arg0"AcceptCode")inletnote=(Option.map~f:ReceiptInfo.of_xml)(Xml.childxml_arg0"Note")inletacceptType=AcceptType.of_xml(Xml.child_exn~context:context_xml_arg0"AcceptType")inletcontactChannelId=(Option.map~f:SsmContactsArn.of_xml)(Xml.childxml_arg0"ContactChannelId")inletpageId=SsmContactsArn.of_xml(Xml.child_exn~context:context_xml_arg0"PageId")inmake?acceptCodeValidation~acceptCode?note~acceptType?contactChannelId~pageId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letacceptCodeValidation=field_mapjson__"AcceptCodeValidation"AcceptCodeValidation.of_jsoninletacceptCode=field_map_exnjson__"AcceptCode"AcceptCode.of_jsoninletnote=field_mapjson__"Note"ReceiptInfo.of_jsoninletacceptType=field_map_exnjson__"AcceptType"AcceptType.of_jsoninletcontactChannelId=field_mapjson__"ContactChannelId"SsmContactsArn.of_jsoninletpageId=field_map_exnjson__"PageId"SsmContactsArn.of_jsoninmake?acceptCodeValidation~acceptCode?note~acceptType?contactChannelId~pageId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Used to acknowledge an engagement to a contact channel during an incident."]