123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678(* 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.mediapackageletapiVersion="2017-10-12"letendpointPrefix="mediapackage"letserviceFullName="AWS Elemental MediaPackage"letsignatureVersion="v4"letprotocol="rest_json"letglobalEndpoint=endpointPrefix^".amazonaws.com"letserviceAbbreviation="MediaPackage"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[]))])modulePresetSpeke20Audio=structtypenonrect=|PRESET_AUDIO_1|PRESET_AUDIO_2|PRESET_AUDIO_3|SHARED|UNENCRYPTED|Non_static_idofstringletmakei=iletto_string=function|PRESET_AUDIO_1->"PRESET-AUDIO-1"|PRESET_AUDIO_2->"PRESET-AUDIO-2"|PRESET_AUDIO_3->"PRESET-AUDIO-3"|SHARED->"SHARED"|UNENCRYPTED->"UNENCRYPTED"|Non_static_ids->sletof_string=function|"PRESET-AUDIO-1"->PRESET_AUDIO_1|"PRESET-AUDIO-2"->PRESET_AUDIO_2|"PRESET-AUDIO-3"->PRESET_AUDIO_3|"SHARED"->SHARED|"UNENCRYPTED"->UNENCRYPTED|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 PresetSpeke20Audio"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"PresetSpeke20Audio"j)letto_json=simple_to_jsonto_valueendmodulePresetSpeke20Video=structtypenonrect=|PRESET_VIDEO_1|PRESET_VIDEO_2|PRESET_VIDEO_3|PRESET_VIDEO_4|PRESET_VIDEO_5|PRESET_VIDEO_6|PRESET_VIDEO_7|PRESET_VIDEO_8|SHARED|UNENCRYPTED|Non_static_idofstringletmakei=iletto_string=function|PRESET_VIDEO_1->"PRESET-VIDEO-1"|PRESET_VIDEO_2->"PRESET-VIDEO-2"|PRESET_VIDEO_3->"PRESET-VIDEO-3"|PRESET_VIDEO_4->"PRESET-VIDEO-4"|PRESET_VIDEO_5->"PRESET-VIDEO-5"|PRESET_VIDEO_6->"PRESET-VIDEO-6"|PRESET_VIDEO_7->"PRESET-VIDEO-7"|PRESET_VIDEO_8->"PRESET-VIDEO-8"|SHARED->"SHARED"|UNENCRYPTED->"UNENCRYPTED"|Non_static_ids->sletof_string=function|"PRESET-VIDEO-1"->PRESET_VIDEO_1|"PRESET-VIDEO-2"->PRESET_VIDEO_2|"PRESET-VIDEO-3"->PRESET_VIDEO_3|"PRESET-VIDEO-4"->PRESET_VIDEO_4|"PRESET-VIDEO-5"->PRESET_VIDEO_5|"PRESET-VIDEO-6"->PRESET_VIDEO_6|"PRESET-VIDEO-7"->PRESET_VIDEO_7|"PRESET-VIDEO-8"->PRESET_VIDEO_8|"SHARED"->SHARED|"UNENCRYPTED"->UNENCRYPTED|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 PresetSpeke20Video"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"PresetSpeke20Video"j)letto_json=simple_to_jsonto_valueendmoduleZz__string=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_valueendmoduleZz__AdTriggersElement=structtypenonrect=|SPLICE_INSERT|BREAK|PROVIDER_ADVERTISEMENT|DISTRIBUTOR_ADVERTISEMENT|PROVIDER_PLACEMENT_OPPORTUNITY|DISTRIBUTOR_PLACEMENT_OPPORTUNITY|PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY|DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY|Non_static_idofstringletmakei=iletto_string=function|SPLICE_INSERT->"SPLICE_INSERT"|BREAK->"BREAK"|PROVIDER_ADVERTISEMENT->"PROVIDER_ADVERTISEMENT"|DISTRIBUTOR_ADVERTISEMENT->"DISTRIBUTOR_ADVERTISEMENT"|PROVIDER_PLACEMENT_OPPORTUNITY->"PROVIDER_PLACEMENT_OPPORTUNITY"|DISTRIBUTOR_PLACEMENT_OPPORTUNITY->"DISTRIBUTOR_PLACEMENT_OPPORTUNITY"|PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY->"PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY"|DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY->"DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY"|Non_static_ids->sletof_string=function|"SPLICE_INSERT"->SPLICE_INSERT|"BREAK"->BREAK|"PROVIDER_ADVERTISEMENT"->PROVIDER_ADVERTISEMENT|"DISTRIBUTOR_ADVERTISEMENT"->DISTRIBUTOR_ADVERTISEMENT|"PROVIDER_PLACEMENT_OPPORTUNITY"->PROVIDER_PLACEMENT_OPPORTUNITY|"DISTRIBUTOR_PLACEMENT_OPPORTUNITY"->DISTRIBUTOR_PLACEMENT_OPPORTUNITY|"PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY"->PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY|"DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY"->DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY|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 __AdTriggersElement"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"__AdTriggersElement"j)letto_json=simple_to_jsonto_valueendmoduleEncryptionContractConfiguration=structtypenonrect={presetSpeke20Audio:PresetSpeke20Audio.t[@ocaml.doc"A collection of audio encryption presets."];presetSpeke20Video:PresetSpeke20Video.t[@ocaml.doc"A collection of video encryption presets."]}letcontext_="EncryptionContractConfiguration"letmake~presetSpeke20Audio=fun~presetSpeke20Video->fun()->{presetSpeke20Audio;presetSpeke20Video}letto_valuex=structure_to_value[("presetSpeke20Audio",(Some(PresetSpeke20Audio.to_valuex.presetSpeke20Audio)));("presetSpeke20Video",(Some(PresetSpeke20Video.to_valuex.presetSpeke20Video)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpresetSpeke20Video=PresetSpeke20Video.of_xml(Xml.child_exn~context:context_xml_arg0"presetSpeke20Video")inletpresetSpeke20Audio=PresetSpeke20Audio.of_xml(Xml.child_exn~context:context_xml_arg0"presetSpeke20Audio")inmake~presetSpeke20Video~presetSpeke20Audio()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpresetSpeke20Video=field_map_exnjson__"PresetSpeke20Video"PresetSpeke20Video.of_jsoninletpresetSpeke20Audio=field_map_exnjson__"PresetSpeke20Audio"PresetSpeke20Audio.of_jsoninmake~presetSpeke20Video~presetSpeke20Audio()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Use encryptionContractConfiguration to configure one or more content encryption keys for your endpoints that use SPEKE 2.0. The encryption contract defines which content keys are used to encrypt the audio and video tracks in your stream. To configure the encryption contract, specify which audio and video encryption presets to use. Note the following considerations when using encryptionContractConfiguration: encryptionContractConfiguration can be used for DASH or CMAF endpoints that use SPEKE 2.0. SPEKE 2.0 relies on the CPIX 2.3 specification. You must disable key rotation for this endpoint by setting keyRotationIntervalSeconds to 0."]moduleZz__listOf__string=structtypenonrect=Zz__string.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Zz__string.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:Zz__string.of_xml)letof_jsonj=list_of_json~kind:"__listOf__string"~of_json:Zz__string.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAdMarkers=structtypenonrect=|NONE|SCTE35_ENHANCED|PASSTHROUGH|DATERANGE|Non_static_idofstringletmakei=iletto_string=function|NONE->"NONE"|SCTE35_ENHANCED->"SCTE35_ENHANCED"|PASSTHROUGH->"PASSTHROUGH"|DATERANGE->"DATERANGE"|Non_static_ids->sletof_string=function|"NONE"->NONE|"SCTE35_ENHANCED"->SCTE35_ENHANCED|"PASSTHROUGH"->PASSTHROUGH|"DATERANGE"->DATERANGE|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 AdMarkers"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AdMarkers"j)letto_json=simple_to_jsonto_valueendmoduleAdTriggers=structtypenonrect=Zz__AdTriggersElement.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Zz__AdTriggersElement.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:Zz__AdTriggersElement.of_xml)letof_jsonj=list_of_json~kind:"AdTriggers"~of_json:Zz__AdTriggersElement.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAdsOnDeliveryRestrictions=structtypenonrect=|NONE|RESTRICTED|UNRESTRICTED|BOTH|Non_static_idofstringletmakei=iletto_string=function|NONE->"NONE"|RESTRICTED->"RESTRICTED"|UNRESTRICTED->"UNRESTRICTED"|BOTH->"BOTH"|Non_static_ids->sletof_string=function|"NONE"->NONE|"RESTRICTED"->RESTRICTED|"UNRESTRICTED"->UNRESTRICTED|"BOTH"->BOTH|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 AdsOnDeliveryRestrictions"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AdsOnDeliveryRestrictions"j)letto_json=simple_to_jsonto_valueendmodulePlaylistType=structtypenonrect=|NONE|EVENT|VOD|Non_static_idofstringletmakei=iletto_string=function|NONE->"NONE"|EVENT->"EVENT"|VOD->"VOD"|Non_static_ids->sletof_string=function|"NONE"->NONE|"EVENT"->EVENT|"VOD"->VOD|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 PlaylistType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"PlaylistType"j)letto_json=simple_to_jsonto_valueendmoduleZz__boolean=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_valueendmoduleZz__integer=structtypenonrect=intletmakei=iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for __integer"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleSensitiveString=structtypenonrect=stringletcontext_="SensitiveString"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:"SensitiveString"jletto_json=simple_to_jsonto_valueendmoduleCmafEncryptionMethod=structtypenonrect=|SAMPLE_AES|AES_CTR|Non_static_idofstringletmakei=iletto_string=function|SAMPLE_AES->"SAMPLE_AES"|AES_CTR->"AES_CTR"|Non_static_ids->sletof_string=function|"SAMPLE_AES"->SAMPLE_AES|"AES_CTR"->AES_CTR|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 CmafEncryptionMethod"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CmafEncryptionMethod"j)letto_json=simple_to_jsonto_valueendmoduleSpekeKeyProvider=structtypenonrect={certificateArn:Zz__string.toption[@ocaml.doc"An Amazon Resource Name (ARN) of a Certificate Manager certificate that MediaPackage will use for enforcing secure end-to-end data transfer with the key provider service."];encryptionContractConfiguration:EncryptionContractConfiguration.toption;resourceId:Zz__string.t[@ocaml.doc"The resource ID to include in key requests."];roleArn:Zz__string.t[@ocaml.doc"An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service."];systemIds:Zz__listOf__string.t[@ocaml.doc"The system IDs to include in key requests."];url:Zz__string.t[@ocaml.doc"The URL of the external key provider service."]}letcontext_="SpekeKeyProvider"letmake?certificateArn=fun?encryptionContractConfiguration->fun~resourceId->fun~roleArn->fun~systemIds->fun~url->fun()->{certificateArn;encryptionContractConfiguration;resourceId;roleArn;systemIds;url}letto_valuex=structure_to_value[("certificateArn",(Option.mapx.certificateArn~f:Zz__string.to_value));("encryptionContractConfiguration",(Option.mapx.encryptionContractConfiguration~f:EncryptionContractConfiguration.to_value));("resourceId",(Some(Zz__string.to_valuex.resourceId)));("roleArn",(Some(Zz__string.to_valuex.roleArn)));("systemIds",(Some(Zz__listOf__string.to_valuex.systemIds)));("url",(Some(Zz__string.to_valuex.url)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leturl=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"url")inletsystemIds=Zz__listOf__string.of_xml(Xml.child_exn~context:context_xml_arg0"systemIds")inletroleArn=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"roleArn")inletresourceId=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"resourceId")inletencryptionContractConfiguration=(Option.map~f:EncryptionContractConfiguration.of_xml)(Xml.childxml_arg0"encryptionContractConfiguration")inletcertificateArn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"certificateArn")inmake~url~systemIds~roleArn~resourceId?encryptionContractConfiguration?certificateArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leturl=field_map_exnjson__"Url"Zz__string.of_jsoninletsystemIds=field_map_exnjson__"SystemIds"Zz__listOf__string.of_jsoninletroleArn=field_map_exnjson__"RoleArn"Zz__string.of_jsoninletresourceId=field_map_exnjson__"ResourceId"Zz__string.of_jsoninletencryptionContractConfiguration=field_mapjson__"EncryptionContractConfiguration"EncryptionContractConfiguration.of_jsoninletcertificateArn=field_mapjson__"CertificateArn"Zz__string.of_jsoninmake~url~systemIds~roleArn~resourceId?encryptionContractConfiguration?certificateArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys."]moduleStreamOrder=structtypenonrect=|ORIGINAL|VIDEO_BITRATE_ASCENDING|VIDEO_BITRATE_DESCENDING|Non_static_idofstringletmakei=iletto_string=function|ORIGINAL->"ORIGINAL"|VIDEO_BITRATE_ASCENDING->"VIDEO_BITRATE_ASCENDING"|VIDEO_BITRATE_DESCENDING->"VIDEO_BITRATE_DESCENDING"|Non_static_ids->sletof_string=function|"ORIGINAL"->ORIGINAL|"VIDEO_BITRATE_ASCENDING"->VIDEO_BITRATE_ASCENDING|"VIDEO_BITRATE_DESCENDING"->VIDEO_BITRATE_DESCENDING|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 StreamOrder"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"StreamOrder"j)letto_json=simple_to_jsonto_valueendmoduleHlsManifest=structtypenonrect={adMarkers:AdMarkers.toption[@ocaml.doc"This setting controls how ad markers are included in the packaged OriginEndpoint. \"NONE\" will omit all SCTE-35 ad markers from the output. \"PASSTHROUGH\" causes the manifest to contain a copy of the SCTE-35 ad markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. \"SCTE35_ENHANCED\" generates ad markers and blackout tags based on SCTE-35 messages in the input source. \"DATERANGE\" inserts EXT-X-DATERANGE tags to signal ad and program transition events in HLS and CMAF manifests. For this option, you must set a programDateTimeIntervalSeconds value that is greater than 0."];id:Zz__string.toption[@ocaml.doc"The ID of the manifest. The ID must be unique within the OriginEndpoint and it cannot be changed after it is created."];includeIframeOnlyStream:Zz__boolean.toption[@ocaml.doc"When enabled, an I-Frame only stream will be included in the output."];manifestName:Zz__string.toption[@ocaml.doc"An optional short string appended to the end of the OriginEndpoint URL. If not specified, defaults to the manifestName for the OriginEndpoint."];playlistType:PlaylistType.toption[@ocaml.doc"The HTTP Live Streaming (HLS) playlist type. When either \"EVENT\" or \"VOD\" is specified, a corresponding EXT-X-PLAYLIST-TYPE entry will be included in the media playlist."];playlistWindowSeconds:Zz__integer.toption[@ocaml.doc"Time window (in seconds) contained in each parent manifest."];programDateTimeIntervalSeconds:Zz__integer.toption[@ocaml.doc"The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally, when an interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the ingest time of the content. If the interval is not specified, or set to 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no ID3Timed Metadata messages will be generated. Note that irrespective of this parameter, if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS output."];url:Zz__string.toption[@ocaml.doc"The URL of the packaged OriginEndpoint for consumption."];adTriggers:AdTriggers.toption;adsOnDeliveryRestrictions:AdsOnDeliveryRestrictions.toption}letmake?adMarkers=fun?id->fun?includeIframeOnlyStream->fun?manifestName->fun?playlistType->fun?playlistWindowSeconds->fun?programDateTimeIntervalSeconds->fun?url->fun?adTriggers->fun?adsOnDeliveryRestrictions->fun()->{adMarkers;id;includeIframeOnlyStream;manifestName;playlistType;playlistWindowSeconds;programDateTimeIntervalSeconds;url;adTriggers;adsOnDeliveryRestrictions}letto_valuex=structure_to_value[("adMarkers",(Option.mapx.adMarkers~f:AdMarkers.to_value));("id",(Option.mapx.id~f:Zz__string.to_value));("includeIframeOnlyStream",(Option.mapx.includeIframeOnlyStream~f:Zz__boolean.to_value));("manifestName",(Option.mapx.manifestName~f:Zz__string.to_value));("playlistType",(Option.mapx.playlistType~f:PlaylistType.to_value));("playlistWindowSeconds",(Option.mapx.playlistWindowSeconds~f:Zz__integer.to_value));("programDateTimeIntervalSeconds",(Option.mapx.programDateTimeIntervalSeconds~f:Zz__integer.to_value));("url",(Option.mapx.url~f:Zz__string.to_value));("adTriggers",(Option.mapx.adTriggers~f:AdTriggers.to_value));("adsOnDeliveryRestrictions",(Option.mapx.adsOnDeliveryRestrictions~f:AdsOnDeliveryRestrictions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letadsOnDeliveryRestrictions=(Option.map~f:AdsOnDeliveryRestrictions.of_xml)(Xml.childxml_arg0"adsOnDeliveryRestrictions")inletadTriggers=(Option.map~f:AdTriggers.of_xml)(Xml.childxml_arg0"adTriggers")inleturl=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"url")inletprogramDateTimeIntervalSeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"programDateTimeIntervalSeconds")inletplaylistWindowSeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"playlistWindowSeconds")inletplaylistType=(Option.map~f:PlaylistType.of_xml)(Xml.childxml_arg0"playlistType")inletmanifestName=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"manifestName")inletincludeIframeOnlyStream=(Option.map~f:Zz__boolean.of_xml)(Xml.childxml_arg0"includeIframeOnlyStream")inletid=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"id")inletadMarkers=(Option.map~f:AdMarkers.of_xml)(Xml.childxml_arg0"adMarkers")inmake?adsOnDeliveryRestrictions?adTriggers?url?programDateTimeIntervalSeconds?playlistWindowSeconds?playlistType?manifestName?includeIframeOnlyStream?id?adMarkers()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letadsOnDeliveryRestrictions=field_mapjson__"AdsOnDeliveryRestrictions"AdsOnDeliveryRestrictions.of_jsoninletadTriggers=field_mapjson__"AdTriggers"AdTriggers.of_jsoninleturl=field_mapjson__"Url"Zz__string.of_jsoninletprogramDateTimeIntervalSeconds=field_mapjson__"ProgramDateTimeIntervalSeconds"Zz__integer.of_jsoninletplaylistWindowSeconds=field_mapjson__"PlaylistWindowSeconds"Zz__integer.of_jsoninletplaylistType=field_mapjson__"PlaylistType"PlaylistType.of_jsoninletmanifestName=field_mapjson__"ManifestName"Zz__string.of_jsoninletincludeIframeOnlyStream=field_mapjson__"IncludeIframeOnlyStream"Zz__boolean.of_jsoninletid=field_mapjson__"Id"Zz__string.of_jsoninletadMarkers=field_mapjson__"AdMarkers"AdMarkers.of_jsoninmake?adsOnDeliveryRestrictions?adTriggers?url?programDateTimeIntervalSeconds?playlistWindowSeconds?playlistType?manifestName?includeIframeOnlyStream?id?adMarkers()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A HTTP Live Streaming (HLS) manifest configuration."]moduleZz__PeriodTriggersElement=structtypenonrect=|ADS|Non_static_idofstringletmakei=iletto_string=function|ADS->"ADS"|Non_static_ids->sletof_string=function|"ADS"->ADS|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 __PeriodTriggersElement"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"__PeriodTriggersElement"j)letto_json=simple_to_jsonto_valueendmoduleEncryptionMethod=structtypenonrect=|AES_128|SAMPLE_AES|Non_static_idofstringletmakei=iletto_string=function|AES_128->"AES_128"|SAMPLE_AES->"SAMPLE_AES"|Non_static_ids->sletof_string=function|"AES_128"->AES_128|"SAMPLE_AES"->SAMPLE_AES|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 EncryptionMethod"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"EncryptionMethod"j)letto_json=simple_to_jsonto_valueendmoduleIngestEndpoint=structtypenonrect={id:Zz__string.toption[@ocaml.doc"The system generated unique identifier for the IngestEndpoint"];password:SensitiveString.toption[@ocaml.doc"The system generated password for ingest authentication."];url:Zz__string.toption[@ocaml.doc"The ingest URL to which the source stream should be sent."];username:SensitiveString.toption[@ocaml.doc"The system generated username for ingest authentication."]}letmake?id=fun?password->fun?url->fun?username->fun()->{id;password;url;username}letto_valuex=structure_to_value[("id",(Option.mapx.id~f:Zz__string.to_value));("password",(Option.mapx.password~f:SensitiveString.to_value));("url",(Option.mapx.url~f:Zz__string.to_value));("username",(Option.mapx.username~f:SensitiveString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letusername=(Option.map~f:SensitiveString.of_xml)(Xml.childxml_arg0"username")inleturl=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"url")inletpassword=(Option.map~f:SensitiveString.of_xml)(Xml.childxml_arg0"password")inletid=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"id")inmake?username?url?password?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letusername=field_mapjson__"Username"SensitiveString.of_jsoninleturl=field_mapjson__"Url"Zz__string.of_jsoninletpassword=field_mapjson__"Password"SensitiveString.of_jsoninletid=field_mapjson__"Id"Zz__string.of_jsoninmake?username?url?password?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An endpoint for ingesting source content for a Channel."]moduleCmafEncryption=structtypenonrect={constantInitializationVector:Zz__string.toption[@ocaml.doc"An optional 128-bit, 16-byte hex value represented by a 32-character string, used in conjunction with the key for encrypting blocks. If you don't specify a value, then MediaPackage creates the constant initialization vector (IV)."];encryptionMethod:CmafEncryptionMethod.toption;keyRotationIntervalSeconds:Zz__integer.toption[@ocaml.doc"Time (in seconds) between each encryption key rotation."];spekeKeyProvider:SpekeKeyProvider.t}letcontext_="CmafEncryption"letmake?constantInitializationVector=fun?encryptionMethod->fun?keyRotationIntervalSeconds->fun~spekeKeyProvider->fun()->{constantInitializationVector;encryptionMethod;keyRotationIntervalSeconds;spekeKeyProvider}letto_valuex=structure_to_value[("constantInitializationVector",(Option.mapx.constantInitializationVector~f:Zz__string.to_value));("encryptionMethod",(Option.mapx.encryptionMethod~f:CmafEncryptionMethod.to_value));("keyRotationIntervalSeconds",(Option.mapx.keyRotationIntervalSeconds~f:Zz__integer.to_value));("spekeKeyProvider",(Some(SpekeKeyProvider.to_valuex.spekeKeyProvider)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letspekeKeyProvider=SpekeKeyProvider.of_xml(Xml.child_exn~context:context_xml_arg0"spekeKeyProvider")inletkeyRotationIntervalSeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"keyRotationIntervalSeconds")inletencryptionMethod=(Option.map~f:CmafEncryptionMethod.of_xml)(Xml.childxml_arg0"encryptionMethod")inletconstantInitializationVector=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"constantInitializationVector")inmake~spekeKeyProvider?keyRotationIntervalSeconds?encryptionMethod?constantInitializationVector()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letspekeKeyProvider=field_map_exnjson__"SpekeKeyProvider"SpekeKeyProvider.of_jsoninletkeyRotationIntervalSeconds=field_mapjson__"KeyRotationIntervalSeconds"Zz__integer.of_jsoninletencryptionMethod=field_mapjson__"EncryptionMethod"CmafEncryptionMethod.of_jsoninletconstantInitializationVector=field_mapjson__"ConstantInitializationVector"Zz__string.of_jsoninmake~spekeKeyProvider?keyRotationIntervalSeconds?encryptionMethod?constantInitializationVector()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A Common Media Application Format (CMAF) encryption configuration."]moduleStreamSelection=structtypenonrect={maxVideoBitsPerSecond:Zz__integer.toption[@ocaml.doc"The maximum video bitrate (bps) to include in output."];minVideoBitsPerSecond:Zz__integer.toption[@ocaml.doc"The minimum video bitrate (bps) to include in output."];streamOrder:StreamOrder.toption[@ocaml.doc"A directive that determines the order of streams in the output."]}letmake?maxVideoBitsPerSecond=fun?minVideoBitsPerSecond->fun?streamOrder->fun()->{maxVideoBitsPerSecond;minVideoBitsPerSecond;streamOrder}letto_valuex=structure_to_value[("maxVideoBitsPerSecond",(Option.mapx.maxVideoBitsPerSecond~f:Zz__integer.to_value));("minVideoBitsPerSecond",(Option.mapx.minVideoBitsPerSecond~f:Zz__integer.to_value));("streamOrder",(Option.mapx.streamOrder~f:StreamOrder.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamOrder=(Option.map~f:StreamOrder.of_xml)(Xml.childxml_arg0"streamOrder")inletminVideoBitsPerSecond=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"minVideoBitsPerSecond")inletmaxVideoBitsPerSecond=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"maxVideoBitsPerSecond")inmake?streamOrder?minVideoBitsPerSecond?maxVideoBitsPerSecond()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamOrder=field_mapjson__"StreamOrder"StreamOrder.of_jsoninletminVideoBitsPerSecond=field_mapjson__"MinVideoBitsPerSecond"Zz__integer.of_jsoninletmaxVideoBitsPerSecond=field_mapjson__"MaxVideoBitsPerSecond"Zz__integer.of_jsoninmake?streamOrder?minVideoBitsPerSecond?maxVideoBitsPerSecond()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A StreamSelection configuration."]moduleZz__listOfHlsManifest=structtypenonrect=HlsManifest.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:HlsManifest.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:HlsManifest.of_xml)letof_jsonj=list_of_json~kind:"__listOfHlsManifest"~of_json:HlsManifest.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDashEncryption=structtypenonrect={keyRotationIntervalSeconds:Zz__integer.toption[@ocaml.doc"Time (in seconds) between each encryption key rotation."];spekeKeyProvider:SpekeKeyProvider.t}letcontext_="DashEncryption"letmake?keyRotationIntervalSeconds=fun~spekeKeyProvider->fun()->{keyRotationIntervalSeconds;spekeKeyProvider}letto_valuex=structure_to_value[("keyRotationIntervalSeconds",(Option.mapx.keyRotationIntervalSeconds~f:Zz__integer.to_value));("spekeKeyProvider",(Some(SpekeKeyProvider.to_valuex.spekeKeyProvider)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letspekeKeyProvider=SpekeKeyProvider.of_xml(Xml.child_exn~context:context_xml_arg0"spekeKeyProvider")inletkeyRotationIntervalSeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"keyRotationIntervalSeconds")inmake~spekeKeyProvider?keyRotationIntervalSeconds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letspekeKeyProvider=field_map_exnjson__"SpekeKeyProvider"SpekeKeyProvider.of_jsoninletkeyRotationIntervalSeconds=field_mapjson__"KeyRotationIntervalSeconds"Zz__integer.of_jsoninmake~spekeKeyProvider?keyRotationIntervalSeconds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A Dynamic Adaptive Streaming over HTTP (DASH) encryption configuration."]moduleManifestLayout=structtypenonrect=|FULL|COMPACT|DRM_TOP_LEVEL_COMPACT|Non_static_idofstringletmakei=iletto_string=function|FULL->"FULL"|COMPACT->"COMPACT"|DRM_TOP_LEVEL_COMPACT->"DRM_TOP_LEVEL_COMPACT"|Non_static_ids->sletof_string=function|"FULL"->FULL|"COMPACT"->COMPACT|"DRM_TOP_LEVEL_COMPACT"->DRM_TOP_LEVEL_COMPACT|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 ManifestLayout"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ManifestLayout"j)letto_json=simple_to_jsonto_valueendmoduleProfile=structtypenonrect=|NONE|HBBTV_1_5|HYBRIDCAST|DVB_DASH_2014|Non_static_idofstringletmakei=iletto_string=function|NONE->"NONE"|HBBTV_1_5->"HBBTV_1_5"|HYBRIDCAST->"HYBRIDCAST"|DVB_DASH_2014->"DVB_DASH_2014"|Non_static_ids->sletof_string=function|"NONE"->NONE|"HBBTV_1_5"->HBBTV_1_5|"HYBRIDCAST"->HYBRIDCAST|"DVB_DASH_2014"->DVB_DASH_2014|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 Profile"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Profile"j)letto_json=simple_to_jsonto_valueendmoduleSegmentTemplateFormat=structtypenonrect=|NUMBER_WITH_TIMELINE|TIME_WITH_TIMELINE|NUMBER_WITH_DURATION|Non_static_idofstringletmakei=iletto_string=function|NUMBER_WITH_TIMELINE->"NUMBER_WITH_TIMELINE"|TIME_WITH_TIMELINE->"TIME_WITH_TIMELINE"|NUMBER_WITH_DURATION->"NUMBER_WITH_DURATION"|Non_static_ids->sletof_string=function|"NUMBER_WITH_TIMELINE"->NUMBER_WITH_TIMELINE|"TIME_WITH_TIMELINE"->TIME_WITH_TIMELINE|"NUMBER_WITH_DURATION"->NUMBER_WITH_DURATION|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 SegmentTemplateFormat"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SegmentTemplateFormat"j)letto_json=simple_to_jsonto_valueendmoduleUtcTiming=structtypenonrect=|NONE|HTTP_HEAD|HTTP_ISO|HTTP_XSDATE|Non_static_idofstringletmakei=iletto_string=function|NONE->"NONE"|HTTP_HEAD->"HTTP-HEAD"|HTTP_ISO->"HTTP-ISO"|HTTP_XSDATE->"HTTP-XSDATE"|Non_static_ids->sletof_string=function|"NONE"->NONE|"HTTP-HEAD"->HTTP_HEAD|"HTTP-ISO"->HTTP_ISO|"HTTP-XSDATE"->HTTP_XSDATE|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 UtcTiming"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"UtcTiming"j)letto_json=simple_to_jsonto_valueendmoduleZz__listOf__PeriodTriggersElement=structtypenonrect=Zz__PeriodTriggersElement.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Zz__PeriodTriggersElement.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:Zz__PeriodTriggersElement.of_xml)letof_jsonj=list_of_json~kind:"__listOf__PeriodTriggersElement"~of_json:Zz__PeriodTriggersElement.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleHlsEncryption=structtypenonrect={constantInitializationVector:Zz__string.toption[@ocaml.doc"A constant initialization vector for encryption (optional). When not specified the initialization vector will be periodically rotated."];encryptionMethod:EncryptionMethod.toption[@ocaml.doc"The encryption method to use."];keyRotationIntervalSeconds:Zz__integer.toption[@ocaml.doc"Interval (in seconds) between each encryption key rotation."];repeatExtXKey:Zz__boolean.toption[@ocaml.doc"When enabled, the EXT-X-KEY tag will be repeated in output manifests."];spekeKeyProvider:SpekeKeyProvider.t}letcontext_="HlsEncryption"letmake?constantInitializationVector=fun?encryptionMethod->fun?keyRotationIntervalSeconds->fun?repeatExtXKey->fun~spekeKeyProvider->fun()->{constantInitializationVector;encryptionMethod;keyRotationIntervalSeconds;repeatExtXKey;spekeKeyProvider}letto_valuex=structure_to_value[("constantInitializationVector",(Option.mapx.constantInitializationVector~f:Zz__string.to_value));("encryptionMethod",(Option.mapx.encryptionMethod~f:EncryptionMethod.to_value));("keyRotationIntervalSeconds",(Option.mapx.keyRotationIntervalSeconds~f:Zz__integer.to_value));("repeatExtXKey",(Option.mapx.repeatExtXKey~f:Zz__boolean.to_value));("spekeKeyProvider",(Some(SpekeKeyProvider.to_valuex.spekeKeyProvider)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letspekeKeyProvider=SpekeKeyProvider.of_xml(Xml.child_exn~context:context_xml_arg0"spekeKeyProvider")inletrepeatExtXKey=(Option.map~f:Zz__boolean.of_xml)(Xml.childxml_arg0"repeatExtXKey")inletkeyRotationIntervalSeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"keyRotationIntervalSeconds")inletencryptionMethod=(Option.map~f:EncryptionMethod.of_xml)(Xml.childxml_arg0"encryptionMethod")inletconstantInitializationVector=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"constantInitializationVector")inmake~spekeKeyProvider?repeatExtXKey?keyRotationIntervalSeconds?encryptionMethod?constantInitializationVector()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letspekeKeyProvider=field_map_exnjson__"SpekeKeyProvider"SpekeKeyProvider.of_jsoninletrepeatExtXKey=field_mapjson__"RepeatExtXKey"Zz__boolean.of_jsoninletkeyRotationIntervalSeconds=field_mapjson__"KeyRotationIntervalSeconds"Zz__integer.of_jsoninletencryptionMethod=field_mapjson__"EncryptionMethod"EncryptionMethod.of_jsoninletconstantInitializationVector=field_mapjson__"ConstantInitializationVector"Zz__string.of_jsoninmake~spekeKeyProvider?repeatExtXKey?keyRotationIntervalSeconds?encryptionMethod?constantInitializationVector()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An HTTP Live Streaming (HLS) encryption configuration."]moduleMssEncryption=structtypenonrect={spekeKeyProvider:SpekeKeyProvider.t}letcontext_="MssEncryption"letmake~spekeKeyProvider=fun()->{spekeKeyProvider}letto_valuex=structure_to_value[("spekeKeyProvider",(Some(SpekeKeyProvider.to_valuex.spekeKeyProvider)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letspekeKeyProvider=SpekeKeyProvider.of_xml(Xml.child_exn~context:context_xml_arg0"spekeKeyProvider")inmake~spekeKeyProvider()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letspekeKeyProvider=field_map_exnjson__"SpekeKeyProvider"SpekeKeyProvider.of_jsoninmake~spekeKeyProvider()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A Microsoft Smooth Streaming (MSS) encryption configuration."]moduleZz__listOfIngestEndpoint=structtypenonrect=IngestEndpoint.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:IngestEndpoint.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:IngestEndpoint.of_xml)letof_jsonj=list_of_json~kind:"__listOfIngestEndpoint"~of_json:IngestEndpoint.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleHlsManifestCreateOrUpdateParameters=structtypenonrect={adMarkers:AdMarkers.toption[@ocaml.doc"This setting controls how ad markers are included in the packaged OriginEndpoint. \"NONE\" will omit all SCTE-35 ad markers from the output. \"PASSTHROUGH\" causes the manifest to contain a copy of the SCTE-35 ad markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. \"SCTE35_ENHANCED\" generates ad markers and blackout tags based on SCTE-35 messages in the input source. \"DATERANGE\" inserts EXT-X-DATERANGE tags to signal ad and program transition events in HLS and CMAF manifests. For this option, you must set a programDateTimeIntervalSeconds value that is greater than 0."];adTriggers:AdTriggers.toption;adsOnDeliveryRestrictions:AdsOnDeliveryRestrictions.toption;id:Zz__string.t[@ocaml.doc"The ID of the manifest. The ID must be unique within the OriginEndpoint and it cannot be changed after it is created."];includeIframeOnlyStream:Zz__boolean.toption[@ocaml.doc"When enabled, an I-Frame only stream will be included in the output."];manifestName:Zz__string.toption[@ocaml.doc"An optional short string appended to the end of the OriginEndpoint URL. If not specified, defaults to the manifestName for the OriginEndpoint."];playlistType:PlaylistType.toption[@ocaml.doc"The HTTP Live Streaming (HLS) playlist type. When either \"EVENT\" or \"VOD\" is specified, a corresponding EXT-X-PLAYLIST-TYPE entry will be included in the media playlist."];playlistWindowSeconds:Zz__integer.toption[@ocaml.doc"Time window (in seconds) contained in each parent manifest."];programDateTimeIntervalSeconds:Zz__integer.toption[@ocaml.doc"The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally, when an interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the ingest time of the content. If the interval is not specified, or set to 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no ID3Timed Metadata messages will be generated. Note that irrespective of this parameter, if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS output."]}letcontext_="HlsManifestCreateOrUpdateParameters"letmake?adMarkers=fun?adTriggers->fun?adsOnDeliveryRestrictions->fun?includeIframeOnlyStream->fun?manifestName->fun?playlistType->fun?playlistWindowSeconds->fun?programDateTimeIntervalSeconds->fun~id->fun()->{adMarkers;adTriggers;adsOnDeliveryRestrictions;includeIframeOnlyStream;manifestName;playlistType;playlistWindowSeconds;programDateTimeIntervalSeconds;id}letto_valuex=structure_to_value[("adMarkers",(Option.mapx.adMarkers~f:AdMarkers.to_value));("adTriggers",(Option.mapx.adTriggers~f:AdTriggers.to_value));("adsOnDeliveryRestrictions",(Option.mapx.adsOnDeliveryRestrictions~f:AdsOnDeliveryRestrictions.to_value));("id",(Some(Zz__string.to_valuex.id)));("includeIframeOnlyStream",(Option.mapx.includeIframeOnlyStream~f:Zz__boolean.to_value));("manifestName",(Option.mapx.manifestName~f:Zz__string.to_value));("playlistType",(Option.mapx.playlistType~f:PlaylistType.to_value));("playlistWindowSeconds",(Option.mapx.playlistWindowSeconds~f:Zz__integer.to_value));("programDateTimeIntervalSeconds",(Option.mapx.programDateTimeIntervalSeconds~f:Zz__integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprogramDateTimeIntervalSeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"programDateTimeIntervalSeconds")inletplaylistWindowSeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"playlistWindowSeconds")inletplaylistType=(Option.map~f:PlaylistType.of_xml)(Xml.childxml_arg0"playlistType")inletmanifestName=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"manifestName")inletincludeIframeOnlyStream=(Option.map~f:Zz__boolean.of_xml)(Xml.childxml_arg0"includeIframeOnlyStream")inletid=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"id")inletadsOnDeliveryRestrictions=(Option.map~f:AdsOnDeliveryRestrictions.of_xml)(Xml.childxml_arg0"adsOnDeliveryRestrictions")inletadTriggers=(Option.map~f:AdTriggers.of_xml)(Xml.childxml_arg0"adTriggers")inletadMarkers=(Option.map~f:AdMarkers.of_xml)(Xml.childxml_arg0"adMarkers")inmake?programDateTimeIntervalSeconds?playlistWindowSeconds?playlistType?manifestName?includeIframeOnlyStream~id?adsOnDeliveryRestrictions?adTriggers?adMarkers()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprogramDateTimeIntervalSeconds=field_mapjson__"ProgramDateTimeIntervalSeconds"Zz__integer.of_jsoninletplaylistWindowSeconds=field_mapjson__"PlaylistWindowSeconds"Zz__integer.of_jsoninletplaylistType=field_mapjson__"PlaylistType"PlaylistType.of_jsoninletmanifestName=field_mapjson__"ManifestName"Zz__string.of_jsoninletincludeIframeOnlyStream=field_mapjson__"IncludeIframeOnlyStream"Zz__boolean.of_jsoninletid=field_map_exnjson__"Id"Zz__string.of_jsoninletadsOnDeliveryRestrictions=field_mapjson__"AdsOnDeliveryRestrictions"AdsOnDeliveryRestrictions.of_jsoninletadTriggers=field_mapjson__"AdTriggers"AdTriggers.of_jsoninletadMarkers=field_mapjson__"AdMarkers"AdMarkers.of_jsoninmake?programDateTimeIntervalSeconds?playlistWindowSeconds?playlistType?manifestName?includeIframeOnlyStream~id?adsOnDeliveryRestrictions?adTriggers?adMarkers()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A HTTP Live Streaming (HLS) manifest configuration."]moduleAuthorization=structtypenonrect={cdnIdentifierSecret:Zz__string.t[@ocaml.doc"The Amazon Resource Name (ARN) for the secret in Secrets Manager that your Content Distribution Network (CDN) uses for authorization to access your endpoint."];secretsRoleArn:Zz__string.t[@ocaml.doc"The Amazon Resource Name (ARN) for the IAM role that allows MediaPackage to communicate with AWS Secrets Manager."]}letcontext_="Authorization"letmake~cdnIdentifierSecret=fun~secretsRoleArn->fun()->{cdnIdentifierSecret;secretsRoleArn}letto_valuex=structure_to_value[("cdnIdentifierSecret",(Some(Zz__string.to_valuex.cdnIdentifierSecret)));("secretsRoleArn",(Some(Zz__string.to_valuex.secretsRoleArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsecretsRoleArn=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"secretsRoleArn")inletcdnIdentifierSecret=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"cdnIdentifierSecret")inmake~secretsRoleArn~cdnIdentifierSecret()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsecretsRoleArn=field_map_exnjson__"SecretsRoleArn"Zz__string.of_jsoninletcdnIdentifierSecret=field_map_exnjson__"CdnIdentifierSecret"Zz__string.of_jsoninmake~secretsRoleArn~cdnIdentifierSecret()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"CDN Authorization credentials"]moduleCmafPackage=structtypenonrect={encryption:CmafEncryption.toption;hlsManifests:Zz__listOfHlsManifest.toption[@ocaml.doc"A list of HLS manifest configurations"];segmentDurationSeconds:Zz__integer.toption[@ocaml.doc"Duration (in seconds) of each segment. Actual segments will be rounded to the nearest multiple of the source segment duration."];segmentPrefix:Zz__string.toption[@ocaml.doc"An optional custom string that is prepended to the name of each segment. If not specified, it defaults to the ChannelId."];streamSelection:StreamSelection.toption}letmake?encryption=fun?hlsManifests->fun?segmentDurationSeconds->fun?segmentPrefix->fun?streamSelection->fun()->{encryption;hlsManifests;segmentDurationSeconds;segmentPrefix;streamSelection}letto_valuex=structure_to_value[("encryption",(Option.mapx.encryption~f:CmafEncryption.to_value));("hlsManifests",(Option.mapx.hlsManifests~f:Zz__listOfHlsManifest.to_value));("segmentDurationSeconds",(Option.mapx.segmentDurationSeconds~f:Zz__integer.to_value));("segmentPrefix",(Option.mapx.segmentPrefix~f:Zz__string.to_value));("streamSelection",(Option.mapx.streamSelection~f:StreamSelection.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamSelection=(Option.map~f:StreamSelection.of_xml)(Xml.childxml_arg0"streamSelection")inletsegmentPrefix=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"segmentPrefix")inletsegmentDurationSeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"segmentDurationSeconds")inlethlsManifests=(Option.map~f:Zz__listOfHlsManifest.of_xml)(Xml.childxml_arg0"hlsManifests")inletencryption=(Option.map~f:CmafEncryption.of_xml)(Xml.childxml_arg0"encryption")inmake?streamSelection?segmentPrefix?segmentDurationSeconds?hlsManifests?encryption()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamSelection=field_mapjson__"StreamSelection"StreamSelection.of_jsoninletsegmentPrefix=field_mapjson__"SegmentPrefix"Zz__string.of_jsoninletsegmentDurationSeconds=field_mapjson__"SegmentDurationSeconds"Zz__integer.of_jsoninlethlsManifests=field_mapjson__"HlsManifests"Zz__listOfHlsManifest.of_jsoninletencryption=field_mapjson__"Encryption"CmafEncryption.of_jsoninmake?streamSelection?segmentPrefix?segmentDurationSeconds?hlsManifests?encryption()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A Common Media Application Format (CMAF) packaging configuration."]moduleDashPackage=structtypenonrect={adTriggers:AdTriggers.toption;adsOnDeliveryRestrictions:AdsOnDeliveryRestrictions.toption;encryption:DashEncryption.toption;includeIframeOnlyStream:Zz__boolean.toption[@ocaml.doc"When enabled, an I-Frame only stream will be included in the output."];manifestLayout:ManifestLayout.toption[@ocaml.doc"Determines the position of some tags in the Media Presentation Description (MPD). When set to FULL, elements like SegmentTemplate and ContentProtection are included in each Representation. When set to COMPACT, duplicate elements are combined and presented at the AdaptationSet level. When set to DRM_TOP_LEVEL_COMPACT, content protection elements are placed the MPD level and referenced at the AdaptationSet level."];manifestWindowSeconds:Zz__integer.toption[@ocaml.doc"Time window (in seconds) contained in each manifest."];minBufferTimeSeconds:Zz__integer.toption[@ocaml.doc"Minimum duration (in seconds) that a player will buffer media before starting the presentation."];minUpdatePeriodSeconds:Zz__integer.toption[@ocaml.doc"Minimum duration (in seconds) between potential changes to the Dynamic Adaptive Streaming over HTTP (DASH) Media Presentation Description (MPD)."];periodTriggers:Zz__listOf__PeriodTriggersElement.toption[@ocaml.doc"A list of triggers that controls when the outgoing Dynamic Adaptive Streaming over HTTP (DASH) Media Presentation Description (MPD) will be partitioned into multiple periods. If empty, the content will not be partitioned into more than one period. If the list contains \"ADS\", new periods will be created where the Channel source contains SCTE-35 ad markers."];profile:Profile.toption[@ocaml.doc"The Dynamic Adaptive Streaming over HTTP (DASH) profile type. When set to \"HBBTV_1_5\", HbbTV 1.5 compliant output is enabled. When set to \"DVB-DASH_2014\", DVB-DASH 2014 compliant output is enabled."];segmentDurationSeconds:Zz__integer.toption[@ocaml.doc"Duration (in seconds) of each segment. Actual segments will be rounded to the nearest multiple of the source segment duration."];segmentTemplateFormat:SegmentTemplateFormat.toption[@ocaml.doc"Determines the type of SegmentTemplate included in the Media Presentation Description (MPD). When set to NUMBER_WITH_TIMELINE, a full timeline is presented in each SegmentTemplate, with $Number$ media URLs. When set to TIME_WITH_TIMELINE, a full timeline is presented in each SegmentTemplate, with $Time$ media URLs. When set to NUMBER_WITH_DURATION, only a duration is included in each SegmentTemplate, with $Number$ media URLs."];streamSelection:StreamSelection.toption;suggestedPresentationDelaySeconds:Zz__integer.toption[@ocaml.doc"Duration (in seconds) to delay live content before presentation."];utcTiming:UtcTiming.toption[@ocaml.doc"Determines the type of UTCTiming included in the Media Presentation Description (MPD)"];utcTimingUri:Zz__string.toption[@ocaml.doc"Specifies the value attribute of the UTCTiming field when utcTiming is set to HTTP-ISO, HTTP-HEAD or HTTP-XSDATE"]}letmake?adTriggers=fun?adsOnDeliveryRestrictions->fun?encryption->fun?includeIframeOnlyStream->fun?manifestLayout->fun?manifestWindowSeconds->fun?minBufferTimeSeconds->fun?minUpdatePeriodSeconds->fun?periodTriggers->fun?profile->fun?segmentDurationSeconds->fun?segmentTemplateFormat->fun?streamSelection->fun?suggestedPresentationDelaySeconds->fun?utcTiming->fun?utcTimingUri->fun()->{adTriggers;adsOnDeliveryRestrictions;encryption;includeIframeOnlyStream;manifestLayout;manifestWindowSeconds;minBufferTimeSeconds;minUpdatePeriodSeconds;periodTriggers;profile;segmentDurationSeconds;segmentTemplateFormat;streamSelection;suggestedPresentationDelaySeconds;utcTiming;utcTimingUri}letto_valuex=structure_to_value[("adTriggers",(Option.mapx.adTriggers~f:AdTriggers.to_value));("adsOnDeliveryRestrictions",(Option.mapx.adsOnDeliveryRestrictions~f:AdsOnDeliveryRestrictions.to_value));("encryption",(Option.mapx.encryption~f:DashEncryption.to_value));("includeIframeOnlyStream",(Option.mapx.includeIframeOnlyStream~f:Zz__boolean.to_value));("manifestLayout",(Option.mapx.manifestLayout~f:ManifestLayout.to_value));("manifestWindowSeconds",(Option.mapx.manifestWindowSeconds~f:Zz__integer.to_value));("minBufferTimeSeconds",(Option.mapx.minBufferTimeSeconds~f:Zz__integer.to_value));("minUpdatePeriodSeconds",(Option.mapx.minUpdatePeriodSeconds~f:Zz__integer.to_value));("periodTriggers",(Option.mapx.periodTriggers~f:Zz__listOf__PeriodTriggersElement.to_value));("profile",(Option.mapx.profile~f:Profile.to_value));("segmentDurationSeconds",(Option.mapx.segmentDurationSeconds~f:Zz__integer.to_value));("segmentTemplateFormat",(Option.mapx.segmentTemplateFormat~f:SegmentTemplateFormat.to_value));("streamSelection",(Option.mapx.streamSelection~f:StreamSelection.to_value));("suggestedPresentationDelaySeconds",(Option.mapx.suggestedPresentationDelaySeconds~f:Zz__integer.to_value));("utcTiming",(Option.mapx.utcTiming~f:UtcTiming.to_value));("utcTimingUri",(Option.mapx.utcTimingUri~f:Zz__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letutcTimingUri=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"utcTimingUri")inletutcTiming=(Option.map~f:UtcTiming.of_xml)(Xml.childxml_arg0"utcTiming")inletsuggestedPresentationDelaySeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"suggestedPresentationDelaySeconds")inletstreamSelection=(Option.map~f:StreamSelection.of_xml)(Xml.childxml_arg0"streamSelection")inletsegmentTemplateFormat=(Option.map~f:SegmentTemplateFormat.of_xml)(Xml.childxml_arg0"segmentTemplateFormat")inletsegmentDurationSeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"segmentDurationSeconds")inletprofile=(Option.map~f:Profile.of_xml)(Xml.childxml_arg0"profile")inletperiodTriggers=(Option.map~f:Zz__listOf__PeriodTriggersElement.of_xml)(Xml.childxml_arg0"periodTriggers")inletminUpdatePeriodSeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"minUpdatePeriodSeconds")inletminBufferTimeSeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"minBufferTimeSeconds")inletmanifestWindowSeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"manifestWindowSeconds")inletmanifestLayout=(Option.map~f:ManifestLayout.of_xml)(Xml.childxml_arg0"manifestLayout")inletincludeIframeOnlyStream=(Option.map~f:Zz__boolean.of_xml)(Xml.childxml_arg0"includeIframeOnlyStream")inletencryption=(Option.map~f:DashEncryption.of_xml)(Xml.childxml_arg0"encryption")inletadsOnDeliveryRestrictions=(Option.map~f:AdsOnDeliveryRestrictions.of_xml)(Xml.childxml_arg0"adsOnDeliveryRestrictions")inletadTriggers=(Option.map~f:AdTriggers.of_xml)(Xml.childxml_arg0"adTriggers")inmake?utcTimingUri?utcTiming?suggestedPresentationDelaySeconds?streamSelection?segmentTemplateFormat?segmentDurationSeconds?profile?periodTriggers?minUpdatePeriodSeconds?minBufferTimeSeconds?manifestWindowSeconds?manifestLayout?includeIframeOnlyStream?encryption?adsOnDeliveryRestrictions?adTriggers()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letutcTimingUri=field_mapjson__"UtcTimingUri"Zz__string.of_jsoninletutcTiming=field_mapjson__"UtcTiming"UtcTiming.of_jsoninletsuggestedPresentationDelaySeconds=field_mapjson__"SuggestedPresentationDelaySeconds"Zz__integer.of_jsoninletstreamSelection=field_mapjson__"StreamSelection"StreamSelection.of_jsoninletsegmentTemplateFormat=field_mapjson__"SegmentTemplateFormat"SegmentTemplateFormat.of_jsoninletsegmentDurationSeconds=field_mapjson__"SegmentDurationSeconds"Zz__integer.of_jsoninletprofile=field_mapjson__"Profile"Profile.of_jsoninletperiodTriggers=field_mapjson__"PeriodTriggers"Zz__listOf__PeriodTriggersElement.of_jsoninletminUpdatePeriodSeconds=field_mapjson__"MinUpdatePeriodSeconds"Zz__integer.of_jsoninletminBufferTimeSeconds=field_mapjson__"MinBufferTimeSeconds"Zz__integer.of_jsoninletmanifestWindowSeconds=field_mapjson__"ManifestWindowSeconds"Zz__integer.of_jsoninletmanifestLayout=field_mapjson__"ManifestLayout"ManifestLayout.of_jsoninletincludeIframeOnlyStream=field_mapjson__"IncludeIframeOnlyStream"Zz__boolean.of_jsoninletencryption=field_mapjson__"Encryption"DashEncryption.of_jsoninletadsOnDeliveryRestrictions=field_mapjson__"AdsOnDeliveryRestrictions"AdsOnDeliveryRestrictions.of_jsoninletadTriggers=field_mapjson__"AdTriggers"AdTriggers.of_jsoninmake?utcTimingUri?utcTiming?suggestedPresentationDelaySeconds?streamSelection?segmentTemplateFormat?segmentDurationSeconds?profile?periodTriggers?minUpdatePeriodSeconds?minBufferTimeSeconds?manifestWindowSeconds?manifestLayout?includeIframeOnlyStream?encryption?adsOnDeliveryRestrictions?adTriggers()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration."]moduleHlsPackage=structtypenonrect={adMarkers:AdMarkers.toption[@ocaml.doc"This setting controls how ad markers are included in the packaged OriginEndpoint. \"NONE\" will omit all SCTE-35 ad markers from the output. \"PASSTHROUGH\" causes the manifest to contain a copy of the SCTE-35 ad markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. \"SCTE35_ENHANCED\" generates ad markers and blackout tags based on SCTE-35 messages in the input source. \"DATERANGE\" inserts EXT-X-DATERANGE tags to signal ad and program transition events in HLS and CMAF manifests. For this option, you must set a programDateTimeIntervalSeconds value that is greater than 0."];adTriggers:AdTriggers.toption;adsOnDeliveryRestrictions:AdsOnDeliveryRestrictions.toption;encryption:HlsEncryption.toption;includeDvbSubtitles:Zz__boolean.toption[@ocaml.doc"When enabled, MediaPackage passes through digital video broadcasting (DVB) subtitles into the output."];includeIframeOnlyStream:Zz__boolean.toption[@ocaml.doc"When enabled, an I-Frame only stream will be included in the output."];playlistType:PlaylistType.toption[@ocaml.doc"The HTTP Live Streaming (HLS) playlist type. When either \"EVENT\" or \"VOD\" is specified, a corresponding EXT-X-PLAYLIST-TYPE entry will be included in the media playlist."];playlistWindowSeconds:Zz__integer.toption[@ocaml.doc"Time window (in seconds) contained in each parent manifest."];programDateTimeIntervalSeconds:Zz__integer.toption[@ocaml.doc"The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally, when an interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the ingest time of the content. If the interval is not specified, or set to 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no ID3Timed Metadata messages will be generated. Note that irrespective of this parameter, if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS output."];segmentDurationSeconds:Zz__integer.toption[@ocaml.doc"Duration (in seconds) of each fragment. Actual fragments will be rounded to the nearest multiple of the source fragment duration."];streamSelection:StreamSelection.toption;useAudioRenditionGroup:Zz__boolean.toption[@ocaml.doc"When enabled, audio streams will be placed in rendition groups in the output."]}letmake?adMarkers=fun?adTriggers->fun?adsOnDeliveryRestrictions->fun?encryption->fun?includeDvbSubtitles->fun?includeIframeOnlyStream->fun?playlistType->fun?playlistWindowSeconds->fun?programDateTimeIntervalSeconds->fun?segmentDurationSeconds->fun?streamSelection->fun?useAudioRenditionGroup->fun()->{adMarkers;adTriggers;adsOnDeliveryRestrictions;encryption;includeDvbSubtitles;includeIframeOnlyStream;playlistType;playlistWindowSeconds;programDateTimeIntervalSeconds;segmentDurationSeconds;streamSelection;useAudioRenditionGroup}letto_valuex=structure_to_value[("adMarkers",(Option.mapx.adMarkers~f:AdMarkers.to_value));("adTriggers",(Option.mapx.adTriggers~f:AdTriggers.to_value));("adsOnDeliveryRestrictions",(Option.mapx.adsOnDeliveryRestrictions~f:AdsOnDeliveryRestrictions.to_value));("encryption",(Option.mapx.encryption~f:HlsEncryption.to_value));("includeDvbSubtitles",(Option.mapx.includeDvbSubtitles~f:Zz__boolean.to_value));("includeIframeOnlyStream",(Option.mapx.includeIframeOnlyStream~f:Zz__boolean.to_value));("playlistType",(Option.mapx.playlistType~f:PlaylistType.to_value));("playlistWindowSeconds",(Option.mapx.playlistWindowSeconds~f:Zz__integer.to_value));("programDateTimeIntervalSeconds",(Option.mapx.programDateTimeIntervalSeconds~f:Zz__integer.to_value));("segmentDurationSeconds",(Option.mapx.segmentDurationSeconds~f:Zz__integer.to_value));("streamSelection",(Option.mapx.streamSelection~f:StreamSelection.to_value));("useAudioRenditionGroup",(Option.mapx.useAudioRenditionGroup~f:Zz__boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuseAudioRenditionGroup=(Option.map~f:Zz__boolean.of_xml)(Xml.childxml_arg0"useAudioRenditionGroup")inletstreamSelection=(Option.map~f:StreamSelection.of_xml)(Xml.childxml_arg0"streamSelection")inletsegmentDurationSeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"segmentDurationSeconds")inletprogramDateTimeIntervalSeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"programDateTimeIntervalSeconds")inletplaylistWindowSeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"playlistWindowSeconds")inletplaylistType=(Option.map~f:PlaylistType.of_xml)(Xml.childxml_arg0"playlistType")inletincludeIframeOnlyStream=(Option.map~f:Zz__boolean.of_xml)(Xml.childxml_arg0"includeIframeOnlyStream")inletincludeDvbSubtitles=(Option.map~f:Zz__boolean.of_xml)(Xml.childxml_arg0"includeDvbSubtitles")inletencryption=(Option.map~f:HlsEncryption.of_xml)(Xml.childxml_arg0"encryption")inletadsOnDeliveryRestrictions=(Option.map~f:AdsOnDeliveryRestrictions.of_xml)(Xml.childxml_arg0"adsOnDeliveryRestrictions")inletadTriggers=(Option.map~f:AdTriggers.of_xml)(Xml.childxml_arg0"adTriggers")inletadMarkers=(Option.map~f:AdMarkers.of_xml)(Xml.childxml_arg0"adMarkers")inmake?useAudioRenditionGroup?streamSelection?segmentDurationSeconds?programDateTimeIntervalSeconds?playlistWindowSeconds?playlistType?includeIframeOnlyStream?includeDvbSubtitles?encryption?adsOnDeliveryRestrictions?adTriggers?adMarkers()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuseAudioRenditionGroup=field_mapjson__"UseAudioRenditionGroup"Zz__boolean.of_jsoninletstreamSelection=field_mapjson__"StreamSelection"StreamSelection.of_jsoninletsegmentDurationSeconds=field_mapjson__"SegmentDurationSeconds"Zz__integer.of_jsoninletprogramDateTimeIntervalSeconds=field_mapjson__"ProgramDateTimeIntervalSeconds"Zz__integer.of_jsoninletplaylistWindowSeconds=field_mapjson__"PlaylistWindowSeconds"Zz__integer.of_jsoninletplaylistType=field_mapjson__"PlaylistType"PlaylistType.of_jsoninletincludeIframeOnlyStream=field_mapjson__"IncludeIframeOnlyStream"Zz__boolean.of_jsoninletincludeDvbSubtitles=field_mapjson__"IncludeDvbSubtitles"Zz__boolean.of_jsoninletencryption=field_mapjson__"Encryption"HlsEncryption.of_jsoninletadsOnDeliveryRestrictions=field_mapjson__"AdsOnDeliveryRestrictions"AdsOnDeliveryRestrictions.of_jsoninletadTriggers=field_mapjson__"AdTriggers"AdTriggers.of_jsoninletadMarkers=field_mapjson__"AdMarkers"AdMarkers.of_jsoninmake?useAudioRenditionGroup?streamSelection?segmentDurationSeconds?programDateTimeIntervalSeconds?playlistWindowSeconds?playlistType?includeIframeOnlyStream?includeDvbSubtitles?encryption?adsOnDeliveryRestrictions?adTriggers?adMarkers()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An HTTP Live Streaming (HLS) packaging configuration."]moduleMssPackage=structtypenonrect={encryption:MssEncryption.toption;manifestWindowSeconds:Zz__integer.toption[@ocaml.doc"The time window (in seconds) contained in each manifest."];segmentDurationSeconds:Zz__integer.toption[@ocaml.doc"The duration (in seconds) of each segment."];streamSelection:StreamSelection.toption}letmake?encryption=fun?manifestWindowSeconds->fun?segmentDurationSeconds->fun?streamSelection->fun()->{encryption;manifestWindowSeconds;segmentDurationSeconds;streamSelection}letto_valuex=structure_to_value[("encryption",(Option.mapx.encryption~f:MssEncryption.to_value));("manifestWindowSeconds",(Option.mapx.manifestWindowSeconds~f:Zz__integer.to_value));("segmentDurationSeconds",(Option.mapx.segmentDurationSeconds~f:Zz__integer.to_value));("streamSelection",(Option.mapx.streamSelection~f:StreamSelection.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamSelection=(Option.map~f:StreamSelection.of_xml)(Xml.childxml_arg0"streamSelection")inletsegmentDurationSeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"segmentDurationSeconds")inletmanifestWindowSeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"manifestWindowSeconds")inletencryption=(Option.map~f:MssEncryption.of_xml)(Xml.childxml_arg0"encryption")inmake?streamSelection?segmentDurationSeconds?manifestWindowSeconds?encryption()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamSelection=field_mapjson__"StreamSelection"StreamSelection.of_jsoninletsegmentDurationSeconds=field_mapjson__"SegmentDurationSeconds"Zz__integer.of_jsoninletmanifestWindowSeconds=field_mapjson__"ManifestWindowSeconds"Zz__integer.of_jsoninletencryption=field_mapjson__"Encryption"MssEncryption.of_jsoninmake?streamSelection?segmentDurationSeconds?manifestWindowSeconds?encryption()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A Microsoft Smooth Streaming (MSS) packaging configuration."]moduleOrigination=structtypenonrect=|ALLOW|DENY|Non_static_idofstringletmakei=iletto_string=function|ALLOW->"ALLOW"|DENY->"DENY"|Non_static_ids->sletof_string=function|"ALLOW"->ALLOW|"DENY"->DENY|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 Origination"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Origination"j)letto_json=simple_to_jsonto_valueendmoduleTags=structtypenonrect=(Zz__string.t*Zz__string.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((Zz__string.of_stringchopped),(Zz__string.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(Zz__string.to_valuex)|>(funx->(Zz__string.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:Zz__string.of_string~of_json:Zz__string.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleS3Destination=structtypenonrect={bucketName:Zz__string.t[@ocaml.doc"The name of an S3 bucket within which harvested content will be exported"];manifestKey:Zz__string.t[@ocaml.doc"The key in the specified S3 bucket where the harvested top-level manifest will be placed."];roleArn:Zz__string.t[@ocaml.doc"The IAM role used to write to the specified S3 bucket"]}letcontext_="S3Destination"letmake~bucketName=fun~manifestKey->fun~roleArn->fun()->{bucketName;manifestKey;roleArn}letto_valuex=structure_to_value[("bucketName",(Some(Zz__string.to_valuex.bucketName)));("manifestKey",(Some(Zz__string.to_valuex.manifestKey)));("roleArn",(Some(Zz__string.to_valuex.roleArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroleArn=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"roleArn")inletmanifestKey=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"manifestKey")inletbucketName=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"bucketName")inmake~roleArn~manifestKey~bucketName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroleArn=field_map_exnjson__"RoleArn"Zz__string.of_jsoninletmanifestKey=field_map_exnjson__"ManifestKey"Zz__string.of_jsoninletbucketName=field_map_exnjson__"BucketName"Zz__string.of_jsoninmake~roleArn~manifestKey~bucketName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration parameters for where in an S3 bucket to place the harvested content"]moduleStatus=structtypenonrect=|IN_PROGRESS|SUCCEEDED|FAILED|Non_static_idofstringletmakei=iletto_string=function|IN_PROGRESS->"IN_PROGRESS"|SUCCEEDED->"SUCCEEDED"|FAILED->"FAILED"|Non_static_ids->sletof_string=function|"IN_PROGRESS"->IN_PROGRESS|"SUCCEEDED"->SUCCEEDED|"FAILED"->FAILED|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 Status"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Status"j)letto_json=simple_to_jsonto_valueendmoduleEgressAccessLogs=structtypenonrect={logGroupName:Zz__string.toption[@ocaml.doc"Customize the log group name."]}letmake?logGroupName=fun()->{logGroupName}letto_valuex=structure_to_value[("logGroupName",(Option.mapx.logGroupName~f:Zz__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlogGroupName=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"logGroupName")inmake?logGroupName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlogGroupName=field_mapjson__"LogGroupName"Zz__string.of_jsoninmake?logGroupName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configure egress access logging."]moduleHlsIngest=structtypenonrect={ingestEndpoints:Zz__listOfIngestEndpoint.toption[@ocaml.doc"A list of endpoints to which the source stream should be sent."]}letmake?ingestEndpoints=fun()->{ingestEndpoints}letto_valuex=structure_to_value[("ingestEndpoints",(Option.mapx.ingestEndpoints~f:Zz__listOfIngestEndpoint.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letingestEndpoints=(Option.map~f:Zz__listOfIngestEndpoint.of_xml)(Xml.childxml_arg0"ingestEndpoints")inmake?ingestEndpoints()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letingestEndpoints=field_mapjson__"IngestEndpoints"Zz__listOfIngestEndpoint.of_jsoninmake?ingestEndpoints()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An HTTP Live Streaming (HLS) ingest resource configuration."]moduleIngressAccessLogs=structtypenonrect={logGroupName:Zz__string.toption[@ocaml.doc"Customize the log group name."]}letmake?logGroupName=fun()->{logGroupName}letto_valuex=structure_to_value[("logGroupName",(Option.mapx.logGroupName~f:Zz__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlogGroupName=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"logGroupName")inmake?logGroupName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlogGroupName=field_mapjson__"LogGroupName"Zz__string.of_jsoninmake?logGroupName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configure ingress access logging."]moduleZz__listOfHlsManifestCreateOrUpdateParameters=structtypenonrect=HlsManifestCreateOrUpdateParameters.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:HlsManifestCreateOrUpdateParameters.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:HlsManifestCreateOrUpdateParameters.of_xml)letof_jsonj=list_of_json~kind:"__listOfHlsManifestCreateOrUpdateParameters"~of_json:HlsManifestCreateOrUpdateParameters.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleOriginEndpoint=structtypenonrect={arn:Zz__string.toption[@ocaml.doc"The Amazon Resource Name (ARN) assigned to the OriginEndpoint."];authorization:Authorization.toption;channelId:Zz__string.toption[@ocaml.doc"The ID of the Channel the OriginEndpoint is associated with."];cmafPackage:CmafPackage.toption;createdAt:Zz__string.toption[@ocaml.doc"The date and time the OriginEndpoint was created."];dashPackage:DashPackage.toption;description:Zz__string.toption[@ocaml.doc"A short text description of the OriginEndpoint."];hlsPackage:HlsPackage.toption;id:Zz__string.toption[@ocaml.doc"The ID of the OriginEndpoint."];manifestName:Zz__string.toption[@ocaml.doc"A short string appended to the end of the OriginEndpoint URL."];mssPackage:MssPackage.toption;origination:Origination.toption[@ocaml.doc"Control whether origination of video is allowed for this OriginEndpoint. If set to ALLOW, the OriginEndpoint may by requested, pursuant to any other form of access control. If set to DENY, the OriginEndpoint may not be requested. This can be helpful for Live to VOD harvesting, or for temporarily disabling origination"];startoverWindowSeconds:Zz__integer.toption[@ocaml.doc"Maximum duration (seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint."];tags:Tags.toption;timeDelaySeconds:Zz__integer.toption[@ocaml.doc"Amount of delay (seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint."];url:Zz__string.toption[@ocaml.doc"The URL of the packaged OriginEndpoint for consumption."];whitelist:Zz__listOf__string.toption[@ocaml.doc"A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint."]}letmake?arn=fun?authorization->fun?channelId->fun?cmafPackage->fun?createdAt->fun?dashPackage->fun?description->fun?hlsPackage->fun?id->fun?manifestName->fun?mssPackage->fun?origination->fun?startoverWindowSeconds->fun?tags->fun?timeDelaySeconds->fun?url->fun?whitelist->fun()->{arn;authorization;channelId;cmafPackage;createdAt;dashPackage;description;hlsPackage;id;manifestName;mssPackage;origination;startoverWindowSeconds;tags;timeDelaySeconds;url;whitelist}letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:Zz__string.to_value));("authorization",(Option.mapx.authorization~f:Authorization.to_value));("channelId",(Option.mapx.channelId~f:Zz__string.to_value));("cmafPackage",(Option.mapx.cmafPackage~f:CmafPackage.to_value));("createdAt",(Option.mapx.createdAt~f:Zz__string.to_value));("dashPackage",(Option.mapx.dashPackage~f:DashPackage.to_value));("description",(Option.mapx.description~f:Zz__string.to_value));("hlsPackage",(Option.mapx.hlsPackage~f:HlsPackage.to_value));("id",(Option.mapx.id~f:Zz__string.to_value));("manifestName",(Option.mapx.manifestName~f:Zz__string.to_value));("mssPackage",(Option.mapx.mssPackage~f:MssPackage.to_value));("origination",(Option.mapx.origination~f:Origination.to_value));("startoverWindowSeconds",(Option.mapx.startoverWindowSeconds~f:Zz__integer.to_value));("tags",(Option.mapx.tags~f:Tags.to_value));("timeDelaySeconds",(Option.mapx.timeDelaySeconds~f:Zz__integer.to_value));("url",(Option.mapx.url~f:Zz__string.to_value));("whitelist",(Option.mapx.whitelist~f:Zz__listOf__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letwhitelist=(Option.map~f:Zz__listOf__string.of_xml)(Xml.childxml_arg0"whitelist")inleturl=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"url")inlettimeDelaySeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"timeDelaySeconds")inlettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletstartoverWindowSeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"startoverWindowSeconds")inletorigination=(Option.map~f:Origination.of_xml)(Xml.childxml_arg0"origination")inletmssPackage=(Option.map~f:MssPackage.of_xml)(Xml.childxml_arg0"mssPackage")inletmanifestName=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"manifestName")inletid=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"id")inlethlsPackage=(Option.map~f:HlsPackage.of_xml)(Xml.childxml_arg0"hlsPackage")inletdescription=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"description")inletdashPackage=(Option.map~f:DashPackage.of_xml)(Xml.childxml_arg0"dashPackage")inletcreatedAt=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"createdAt")inletcmafPackage=(Option.map~f:CmafPackage.of_xml)(Xml.childxml_arg0"cmafPackage")inletchannelId=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"channelId")inletauthorization=(Option.map~f:Authorization.of_xml)(Xml.childxml_arg0"authorization")inletarn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"arn")inmake?whitelist?url?timeDelaySeconds?tags?startoverWindowSeconds?origination?mssPackage?manifestName?id?hlsPackage?description?dashPackage?createdAt?cmafPackage?channelId?authorization?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letwhitelist=field_mapjson__"Whitelist"Zz__listOf__string.of_jsoninleturl=field_mapjson__"Url"Zz__string.of_jsoninlettimeDelaySeconds=field_mapjson__"TimeDelaySeconds"Zz__integer.of_jsoninlettags=field_mapjson__"Tags"Tags.of_jsoninletstartoverWindowSeconds=field_mapjson__"StartoverWindowSeconds"Zz__integer.of_jsoninletorigination=field_mapjson__"Origination"Origination.of_jsoninletmssPackage=field_mapjson__"MssPackage"MssPackage.of_jsoninletmanifestName=field_mapjson__"ManifestName"Zz__string.of_jsoninletid=field_mapjson__"Id"Zz__string.of_jsoninlethlsPackage=field_mapjson__"HlsPackage"HlsPackage.of_jsoninletdescription=field_mapjson__"Description"Zz__string.of_jsoninletdashPackage=field_mapjson__"DashPackage"DashPackage.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"Zz__string.of_jsoninletcmafPackage=field_mapjson__"CmafPackage"CmafPackage.of_jsoninletchannelId=field_mapjson__"ChannelId"Zz__string.of_jsoninletauthorization=field_mapjson__"Authorization"Authorization.of_jsoninletarn=field_mapjson__"Arn"Zz__string.of_jsoninmake?whitelist?url?timeDelaySeconds?tags?startoverWindowSeconds?origination?mssPackage?manifestName?id?hlsPackage?description?dashPackage?createdAt?cmafPackage?channelId?authorization?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An OriginEndpoint resource configuration."]moduleHarvestJob=structtypenonrect={arn:Zz__string.toption[@ocaml.doc"The Amazon Resource Name (ARN) assigned to the HarvestJob."];channelId:Zz__string.toption[@ocaml.doc"The ID of the Channel that the HarvestJob will harvest from."];createdAt:Zz__string.toption[@ocaml.doc"The date and time the HarvestJob was submitted."];endTime:Zz__string.toption[@ocaml.doc"The end of the time-window which will be harvested."];id:Zz__string.toption[@ocaml.doc"The ID of the HarvestJob. The ID must be unique within the region and it cannot be changed after the HarvestJob is submitted."];originEndpointId:Zz__string.toption[@ocaml.doc"The ID of the OriginEndpoint that the HarvestJob will harvest from. This cannot be changed after the HarvestJob is submitted."];s3Destination:S3Destination.toption;startTime:Zz__string.toption[@ocaml.doc"The start of the time-window which will be harvested."];status:Status.toption[@ocaml.doc"The current status of the HarvestJob. Consider setting up a CloudWatch Event to listen for HarvestJobs as they succeed or fail. In the event of failure, the CloudWatch Event will include an explanation of why the HarvestJob failed."]}letmake?arn=fun?channelId->fun?createdAt->fun?endTime->fun?id->fun?originEndpointId->fun?s3Destination->fun?startTime->fun?status->fun()->{arn;channelId;createdAt;endTime;id;originEndpointId;s3Destination;startTime;status}letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:Zz__string.to_value));("channelId",(Option.mapx.channelId~f:Zz__string.to_value));("createdAt",(Option.mapx.createdAt~f:Zz__string.to_value));("endTime",(Option.mapx.endTime~f:Zz__string.to_value));("id",(Option.mapx.id~f:Zz__string.to_value));("originEndpointId",(Option.mapx.originEndpointId~f:Zz__string.to_value));("s3Destination",(Option.mapx.s3Destination~f:S3Destination.to_value));("startTime",(Option.mapx.startTime~f:Zz__string.to_value));("status",(Option.mapx.status~f:Status.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=(Option.map~f:Status.of_xml)(Xml.childxml_arg0"status")inletstartTime=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"startTime")inlets3Destination=(Option.map~f:S3Destination.of_xml)(Xml.childxml_arg0"s3Destination")inletoriginEndpointId=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"originEndpointId")inletid=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"id")inletendTime=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"endTime")inletcreatedAt=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"createdAt")inletchannelId=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"channelId")inletarn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"arn")inmake?status?startTime?s3Destination?originEndpointId?id?endTime?createdAt?channelId?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_mapjson__"Status"Status.of_jsoninletstartTime=field_mapjson__"StartTime"Zz__string.of_jsoninlets3Destination=field_mapjson__"S3Destination"S3Destination.of_jsoninletoriginEndpointId=field_mapjson__"OriginEndpointId"Zz__string.of_jsoninletid=field_mapjson__"Id"Zz__string.of_jsoninletendTime=field_mapjson__"EndTime"Zz__string.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"Zz__string.of_jsoninletchannelId=field_mapjson__"ChannelId"Zz__string.of_jsoninletarn=field_mapjson__"Arn"Zz__string.of_jsoninmake?status?startTime?s3Destination?originEndpointId?id?endTime?createdAt?channelId?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A HarvestJob resource configuration"]moduleChannel=structtypenonrect={arn:Zz__string.toption[@ocaml.doc"The Amazon Resource Name (ARN) assigned to the Channel."];createdAt:Zz__string.toption[@ocaml.doc"The date and time the Channel was created."];description:Zz__string.toption[@ocaml.doc"A short text description of the Channel."];egressAccessLogs:EgressAccessLogs.toption;hlsIngest:HlsIngest.toption;id:Zz__string.toption[@ocaml.doc"The ID of the Channel."];ingressAccessLogs:IngressAccessLogs.toption;tags:Tags.toption}letmake?arn=fun?createdAt->fun?description->fun?egressAccessLogs->fun?hlsIngest->fun?id->fun?ingressAccessLogs->fun?tags->fun()->{arn;createdAt;description;egressAccessLogs;hlsIngest;id;ingressAccessLogs;tags}letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:Zz__string.to_value));("createdAt",(Option.mapx.createdAt~f:Zz__string.to_value));("description",(Option.mapx.description~f:Zz__string.to_value));("egressAccessLogs",(Option.mapx.egressAccessLogs~f:EgressAccessLogs.to_value));("hlsIngest",(Option.mapx.hlsIngest~f:HlsIngest.to_value));("id",(Option.mapx.id~f:Zz__string.to_value));("ingressAccessLogs",(Option.mapx.ingressAccessLogs~f:IngressAccessLogs.to_value));("tags",(Option.mapx.tags~f:Tags.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletingressAccessLogs=(Option.map~f:IngressAccessLogs.of_xml)(Xml.childxml_arg0"ingressAccessLogs")inletid=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"id")inlethlsIngest=(Option.map~f:HlsIngest.of_xml)(Xml.childxml_arg0"hlsIngest")inletegressAccessLogs=(Option.map~f:EgressAccessLogs.of_xml)(Xml.childxml_arg0"egressAccessLogs")inletdescription=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"description")inletcreatedAt=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"createdAt")inletarn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"arn")inmake?tags?ingressAccessLogs?id?hlsIngest?egressAccessLogs?description?createdAt?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"Tags.of_jsoninletingressAccessLogs=field_mapjson__"IngressAccessLogs"IngressAccessLogs.of_jsoninletid=field_mapjson__"Id"Zz__string.of_jsoninlethlsIngest=field_mapjson__"HlsIngest"HlsIngest.of_jsoninletegressAccessLogs=field_mapjson__"EgressAccessLogs"EgressAccessLogs.of_jsoninletdescription=field_mapjson__"Description"Zz__string.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"Zz__string.of_jsoninletarn=field_mapjson__"Arn"Zz__string.of_jsoninmake?tags?ingressAccessLogs?id?hlsIngest?egressAccessLogs?description?createdAt?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A Channel resource configuration."]moduleForbiddenException=structtypenonrect={message:Zz__string.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:Zz__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:Zz__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"Zz__string.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The client is not authorized to access the requested resource."]moduleInternalServerErrorException=structtypenonrect={message:Zz__string.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:Zz__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:Zz__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"Zz__string.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An unexpected error occurred."]moduleNotFoundException=structtypenonrect={message:Zz__string.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:Zz__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:Zz__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"Zz__string.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The requested resource does not exist."]moduleServiceUnavailableException=structtypenonrect={message:Zz__string.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:Zz__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:Zz__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"Zz__string.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An unexpected error occurred."]moduleTooManyRequestsException=structtypenonrect={message:Zz__string.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:Zz__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:Zz__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"Zz__string.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The client has exceeded their resource or throttling limits."]moduleUnprocessableEntityException=structtypenonrect={message:Zz__string.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:Zz__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:Zz__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"Zz__string.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The parameters sent in the request are not valid."]moduleCmafPackageCreateOrUpdateParameters=structtypenonrect={encryption:CmafEncryption.toption;hlsManifests:Zz__listOfHlsManifestCreateOrUpdateParameters.toption[@ocaml.doc"A list of HLS manifest configurations"];segmentDurationSeconds:Zz__integer.toption[@ocaml.doc"Duration (in seconds) of each segment. Actual segments will be rounded to the nearest multiple of the source segment duration."];segmentPrefix:Zz__string.toption[@ocaml.doc"An optional custom string that is prepended to the name of each segment. If not specified, it defaults to the ChannelId."];streamSelection:StreamSelection.toption}letmake?encryption=fun?hlsManifests->fun?segmentDurationSeconds->fun?segmentPrefix->fun?streamSelection->fun()->{encryption;hlsManifests;segmentDurationSeconds;segmentPrefix;streamSelection}letto_valuex=structure_to_value[("encryption",(Option.mapx.encryption~f:CmafEncryption.to_value));("hlsManifests",(Option.mapx.hlsManifests~f:Zz__listOfHlsManifestCreateOrUpdateParameters.to_value));("segmentDurationSeconds",(Option.mapx.segmentDurationSeconds~f:Zz__integer.to_value));("segmentPrefix",(Option.mapx.segmentPrefix~f:Zz__string.to_value));("streamSelection",(Option.mapx.streamSelection~f:StreamSelection.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamSelection=(Option.map~f:StreamSelection.of_xml)(Xml.childxml_arg0"streamSelection")inletsegmentPrefix=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"segmentPrefix")inletsegmentDurationSeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"segmentDurationSeconds")inlethlsManifests=(Option.map~f:Zz__listOfHlsManifestCreateOrUpdateParameters.of_xml)(Xml.childxml_arg0"hlsManifests")inletencryption=(Option.map~f:CmafEncryption.of_xml)(Xml.childxml_arg0"encryption")inmake?streamSelection?segmentPrefix?segmentDurationSeconds?hlsManifests?encryption()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamSelection=field_mapjson__"StreamSelection"StreamSelection.of_jsoninletsegmentPrefix=field_mapjson__"SegmentPrefix"Zz__string.of_jsoninletsegmentDurationSeconds=field_mapjson__"SegmentDurationSeconds"Zz__integer.of_jsoninlethlsManifests=field_mapjson__"HlsManifests"Zz__listOfHlsManifestCreateOrUpdateParameters.of_jsoninletencryption=field_mapjson__"Encryption"CmafEncryption.of_jsoninmake?streamSelection?segmentPrefix?segmentDurationSeconds?hlsManifests?encryption()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A Common Media Application Format (CMAF) packaging configuration."]moduleZz__mapOf__string=structtypenonrect=(Zz__string.t*Zz__string.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((Zz__string.of_stringchopped),(Zz__string.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(Zz__string.to_valuex)|>(funx->(Zz__string.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:Zz__string.of_string~of_json:Zz__string.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleZz__listOfOriginEndpoint=structtypenonrect=OriginEndpoint.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:OriginEndpoint.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:OriginEndpoint.of_xml)letof_jsonj=list_of_json~kind:"__listOfOriginEndpoint"~of_json:OriginEndpoint.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:1000)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleZz__listOfHarvestJob=structtypenonrect=HarvestJob.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:HarvestJob.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:HarvestJob.of_xml)letof_jsonj=list_of_json~kind:"__listOfHarvestJob"~of_json:HarvestJob.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleZz__listOfChannel=structtypenonrect=Channel.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Channel.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:Channel.of_xml)letof_jsonj=list_of_json~kind:"__listOfChannel"~of_json:Channel.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleZz__long=structtypenonrect=Int64.tletmakei=iletof_string=Int64.of_stringletto_valuex=`Longxletto_queryv=to_queryto_valuevletto_headerx=Int64.to_stringxletof_xmlxml_arg0=Int64.of_string(string_of_xml~kind:"a long"xml_arg0)letof_jsonj=Int64.of_float(float_of_json~kind:"a long"j)letto_json=simple_to_jsonto_valueendmoduleZz__double=structtypenonrect=floatletmakei=iletof_string=Float.of_stringletto_valuex=`Doublexletto_queryv=to_queryto_valuevletto_headerx=Stdlib.Float.to_stringxletof_xmlxml_arg0=Float.of_string(string_of_xml~kind:"a double"xml_arg0)letof_jsonj=float_of_json~kind:"a double"jletto_json=simple_to_jsonto_valueendmoduleUpdateOriginEndpointResponse=structtypenonrect={arn:Zz__string.toption[@ocaml.doc"The Amazon Resource Name (ARN) assigned to the OriginEndpoint."];authorization:Authorization.toption;channelId:Zz__string.toption[@ocaml.doc"The ID of the Channel the OriginEndpoint is associated with."];cmafPackage:CmafPackage.toption;createdAt:Zz__string.toption[@ocaml.doc"The date and time the OriginEndpoint was created."];dashPackage:DashPackage.toption;description:Zz__string.toption[@ocaml.doc"A short text description of the OriginEndpoint."];hlsPackage:HlsPackage.toption;id:Zz__string.toption[@ocaml.doc"The ID of the OriginEndpoint."];manifestName:Zz__string.toption[@ocaml.doc"A short string appended to the end of the OriginEndpoint URL."];mssPackage:MssPackage.toption;origination:Origination.toption[@ocaml.doc"Control whether origination of video is allowed for this OriginEndpoint. If set to ALLOW, the OriginEndpoint may by requested, pursuant to any other form of access control. If set to DENY, the OriginEndpoint may not be requested. This can be helpful for Live to VOD harvesting, or for temporarily disabling origination"];startoverWindowSeconds:Zz__integer.toption[@ocaml.doc"Maximum duration (seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint."];tags:Tags.toption;timeDelaySeconds:Zz__integer.toption[@ocaml.doc"Amount of delay (seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint."];url:Zz__string.toption[@ocaml.doc"The URL of the packaged OriginEndpoint for consumption."];whitelist:Zz__listOf__string.toption[@ocaml.doc"A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint."]}typenonrecerror=[`ForbiddenExceptionofForbiddenException.t|`InternalServerErrorExceptionofInternalServerErrorException.t|`NotFoundExceptionofNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`UnprocessableEntityExceptionofUnprocessableEntityException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun?authorization->fun?channelId->fun?cmafPackage->fun?createdAt->fun?dashPackage->fun?description->fun?hlsPackage->fun?id->fun?manifestName->fun?mssPackage->fun?origination->fun?startoverWindowSeconds->fun?tags->fun?timeDelaySeconds->fun?url->fun?whitelist->fun()->{arn;authorization;channelId;cmafPackage;createdAt;dashPackage;description;hlsPackage;id;manifestName;mssPackage;origination;startoverWindowSeconds;tags;timeDelaySeconds;url;whitelist}leterror_of_jsonnamejson=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`InternalServerErrorExceptione->`Assoc[("error",(`String"InternalServerErrorException"));("details",(InternalServerErrorException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`UnprocessableEntityExceptione->`Assoc[("error",(`String"UnprocessableEntityException"));("details",(UnprocessableEntityException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:Zz__string.to_value));("authorization",(Option.mapx.authorization~f:Authorization.to_value));("channelId",(Option.mapx.channelId~f:Zz__string.to_value));("cmafPackage",(Option.mapx.cmafPackage~f:CmafPackage.to_value));("createdAt",(Option.mapx.createdAt~f:Zz__string.to_value));("dashPackage",(Option.mapx.dashPackage~f:DashPackage.to_value));("description",(Option.mapx.description~f:Zz__string.to_value));("hlsPackage",(Option.mapx.hlsPackage~f:HlsPackage.to_value));("id",(Option.mapx.id~f:Zz__string.to_value));("manifestName",(Option.mapx.manifestName~f:Zz__string.to_value));("mssPackage",(Option.mapx.mssPackage~f:MssPackage.to_value));("origination",(Option.mapx.origination~f:Origination.to_value));("startoverWindowSeconds",(Option.mapx.startoverWindowSeconds~f:Zz__integer.to_value));("tags",(Option.mapx.tags~f:Tags.to_value));("timeDelaySeconds",(Option.mapx.timeDelaySeconds~f:Zz__integer.to_value));("url",(Option.mapx.url~f:Zz__string.to_value));("whitelist",(Option.mapx.whitelist~f:Zz__listOf__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letwhitelist=(Option.map~f:Zz__listOf__string.of_xml)(Xml.childxml_arg0"whitelist")inleturl=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"url")inlettimeDelaySeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"timeDelaySeconds")inlettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletstartoverWindowSeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"startoverWindowSeconds")inletorigination=(Option.map~f:Origination.of_xml)(Xml.childxml_arg0"origination")inletmssPackage=(Option.map~f:MssPackage.of_xml)(Xml.childxml_arg0"mssPackage")inletmanifestName=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"manifestName")inletid=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"id")inlethlsPackage=(Option.map~f:HlsPackage.of_xml)(Xml.childxml_arg0"hlsPackage")inletdescription=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"description")inletdashPackage=(Option.map~f:DashPackage.of_xml)(Xml.childxml_arg0"dashPackage")inletcreatedAt=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"createdAt")inletcmafPackage=(Option.map~f:CmafPackage.of_xml)(Xml.childxml_arg0"cmafPackage")inletchannelId=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"channelId")inletauthorization=(Option.map~f:Authorization.of_xml)(Xml.childxml_arg0"authorization")inletarn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"arn")inmake?whitelist?url?timeDelaySeconds?tags?startoverWindowSeconds?origination?mssPackage?manifestName?id?hlsPackage?description?dashPackage?createdAt?cmafPackage?channelId?authorization?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letwhitelist=field_mapjson__"Whitelist"Zz__listOf__string.of_jsoninleturl=field_mapjson__"Url"Zz__string.of_jsoninlettimeDelaySeconds=field_mapjson__"TimeDelaySeconds"Zz__integer.of_jsoninlettags=field_mapjson__"Tags"Tags.of_jsoninletstartoverWindowSeconds=field_mapjson__"StartoverWindowSeconds"Zz__integer.of_jsoninletorigination=field_mapjson__"Origination"Origination.of_jsoninletmssPackage=field_mapjson__"MssPackage"MssPackage.of_jsoninletmanifestName=field_mapjson__"ManifestName"Zz__string.of_jsoninletid=field_mapjson__"Id"Zz__string.of_jsoninlethlsPackage=field_mapjson__"HlsPackage"HlsPackage.of_jsoninletdescription=field_mapjson__"Description"Zz__string.of_jsoninletdashPackage=field_mapjson__"DashPackage"DashPackage.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"Zz__string.of_jsoninletcmafPackage=field_mapjson__"CmafPackage"CmafPackage.of_jsoninletchannelId=field_mapjson__"ChannelId"Zz__string.of_jsoninletauthorization=field_mapjson__"Authorization"Authorization.of_jsoninletarn=field_mapjson__"Arn"Zz__string.of_jsoninmake?whitelist?url?timeDelaySeconds?tags?startoverWindowSeconds?origination?mssPackage?manifestName?id?hlsPackage?description?dashPackage?createdAt?cmafPackage?channelId?authorization?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates an existing OriginEndpoint."]moduleUpdateOriginEndpointRequest=structtypenonrect={authorization:Authorization.toption;cmafPackage:CmafPackageCreateOrUpdateParameters.toption;dashPackage:DashPackage.toption;description:Zz__string.toption[@ocaml.doc"A short text description of the OriginEndpoint."];hlsPackage:HlsPackage.toption;id:Zz__string.t[@ocaml.doc"The ID of the OriginEndpoint to update."];manifestName:Zz__string.toption[@ocaml.doc"A short string that will be appended to the end of the Endpoint URL."];mssPackage:MssPackage.toption;origination:Origination.toption[@ocaml.doc"Control whether origination of video is allowed for this OriginEndpoint. If set to ALLOW, the OriginEndpoint may by requested, pursuant to any other form of access control. If set to DENY, the OriginEndpoint may not be requested. This can be helpful for Live to VOD harvesting, or for temporarily disabling origination"];startoverWindowSeconds:Zz__integer.toption[@ocaml.doc"Maximum duration (in seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint."];timeDelaySeconds:Zz__integer.toption[@ocaml.doc"Amount of delay (in seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint."];whitelist:Zz__listOf__string.toption[@ocaml.doc"A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint."]}letcontext_="UpdateOriginEndpointRequest"letmake?authorization=fun?cmafPackage->fun?dashPackage->fun?description->fun?hlsPackage->fun?manifestName->fun?mssPackage->fun?origination->fun?startoverWindowSeconds->fun?timeDelaySeconds->fun?whitelist->fun~id->fun()->{authorization;cmafPackage;dashPackage;description;hlsPackage;manifestName;mssPackage;origination;startoverWindowSeconds;timeDelaySeconds;whitelist;id}letto_valuex=structure_to_value[("authorization",(Option.mapx.authorization~f:Authorization.to_value));("cmafPackage",(Option.mapx.cmafPackage~f:CmafPackageCreateOrUpdateParameters.to_value));("dashPackage",(Option.mapx.dashPackage~f:DashPackage.to_value));("description",(Option.mapx.description~f:Zz__string.to_value));("hlsPackage",(Option.mapx.hlsPackage~f:HlsPackage.to_value));("id",(Some(Zz__string.to_valuex.id)));("manifestName",(Option.mapx.manifestName~f:Zz__string.to_value));("mssPackage",(Option.mapx.mssPackage~f:MssPackage.to_value));("origination",(Option.mapx.origination~f:Origination.to_value));("startoverWindowSeconds",(Option.mapx.startoverWindowSeconds~f:Zz__integer.to_value));("timeDelaySeconds",(Option.mapx.timeDelaySeconds~f:Zz__integer.to_value));("whitelist",(Option.mapx.whitelist~f:Zz__listOf__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letwhitelist=(Option.map~f:Zz__listOf__string.of_xml)(Xml.childxml_arg0"whitelist")inlettimeDelaySeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"timeDelaySeconds")inletstartoverWindowSeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"startoverWindowSeconds")inletorigination=(Option.map~f:Origination.of_xml)(Xml.childxml_arg0"origination")inletmssPackage=(Option.map~f:MssPackage.of_xml)(Xml.childxml_arg0"mssPackage")inletmanifestName=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"manifestName")inletid=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"id")inlethlsPackage=(Option.map~f:HlsPackage.of_xml)(Xml.childxml_arg0"hlsPackage")inletdescription=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"description")inletdashPackage=(Option.map~f:DashPackage.of_xml)(Xml.childxml_arg0"dashPackage")inletcmafPackage=(Option.map~f:CmafPackageCreateOrUpdateParameters.of_xml)(Xml.childxml_arg0"cmafPackage")inletauthorization=(Option.map~f:Authorization.of_xml)(Xml.childxml_arg0"authorization")inmake?whitelist?timeDelaySeconds?startoverWindowSeconds?origination?mssPackage?manifestName~id?hlsPackage?description?dashPackage?cmafPackage?authorization()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letwhitelist=field_mapjson__"Whitelist"Zz__listOf__string.of_jsoninlettimeDelaySeconds=field_mapjson__"TimeDelaySeconds"Zz__integer.of_jsoninletstartoverWindowSeconds=field_mapjson__"StartoverWindowSeconds"Zz__integer.of_jsoninletorigination=field_mapjson__"Origination"Origination.of_jsoninletmssPackage=field_mapjson__"MssPackage"MssPackage.of_jsoninletmanifestName=field_mapjson__"ManifestName"Zz__string.of_jsoninletid=field_map_exnjson__"Id"Zz__string.of_jsoninlethlsPackage=field_mapjson__"HlsPackage"HlsPackage.of_jsoninletdescription=field_mapjson__"Description"Zz__string.of_jsoninletdashPackage=field_mapjson__"DashPackage"DashPackage.of_jsoninletcmafPackage=field_mapjson__"CmafPackage"CmafPackageCreateOrUpdateParameters.of_jsoninletauthorization=field_mapjson__"Authorization"Authorization.of_jsoninmake?whitelist?timeDelaySeconds?startoverWindowSeconds?origination?mssPackage?manifestName~id?hlsPackage?description?dashPackage?cmafPackage?authorization()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration parameters used to update an existing OriginEndpoint."]moduleUpdateChannelResponse=structtypenonrect={arn:Zz__string.toption[@ocaml.doc"The Amazon Resource Name (ARN) assigned to the Channel."];createdAt:Zz__string.toption[@ocaml.doc"The date and time the Channel was created."];description:Zz__string.toption[@ocaml.doc"A short text description of the Channel."];egressAccessLogs:EgressAccessLogs.toption;hlsIngest:HlsIngest.toption;id:Zz__string.toption[@ocaml.doc"The ID of the Channel."];ingressAccessLogs:IngressAccessLogs.toption;tags:Tags.toption}typenonrecerror=[`ForbiddenExceptionofForbiddenException.t|`InternalServerErrorExceptionofInternalServerErrorException.t|`NotFoundExceptionofNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`UnprocessableEntityExceptionofUnprocessableEntityException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun?createdAt->fun?description->fun?egressAccessLogs->fun?hlsIngest->fun?id->fun?ingressAccessLogs->fun?tags->fun()->{arn;createdAt;description;egressAccessLogs;hlsIngest;id;ingressAccessLogs;tags}leterror_of_jsonnamejson=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`InternalServerErrorExceptione->`Assoc[("error",(`String"InternalServerErrorException"));("details",(InternalServerErrorException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`UnprocessableEntityExceptione->`Assoc[("error",(`String"UnprocessableEntityException"));("details",(UnprocessableEntityException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:Zz__string.to_value));("createdAt",(Option.mapx.createdAt~f:Zz__string.to_value));("description",(Option.mapx.description~f:Zz__string.to_value));("egressAccessLogs",(Option.mapx.egressAccessLogs~f:EgressAccessLogs.to_value));("hlsIngest",(Option.mapx.hlsIngest~f:HlsIngest.to_value));("id",(Option.mapx.id~f:Zz__string.to_value));("ingressAccessLogs",(Option.mapx.ingressAccessLogs~f:IngressAccessLogs.to_value));("tags",(Option.mapx.tags~f:Tags.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletingressAccessLogs=(Option.map~f:IngressAccessLogs.of_xml)(Xml.childxml_arg0"ingressAccessLogs")inletid=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"id")inlethlsIngest=(Option.map~f:HlsIngest.of_xml)(Xml.childxml_arg0"hlsIngest")inletegressAccessLogs=(Option.map~f:EgressAccessLogs.of_xml)(Xml.childxml_arg0"egressAccessLogs")inletdescription=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"description")inletcreatedAt=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"createdAt")inletarn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"arn")inmake?tags?ingressAccessLogs?id?hlsIngest?egressAccessLogs?description?createdAt?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"Tags.of_jsoninletingressAccessLogs=field_mapjson__"IngressAccessLogs"IngressAccessLogs.of_jsoninletid=field_mapjson__"Id"Zz__string.of_jsoninlethlsIngest=field_mapjson__"HlsIngest"HlsIngest.of_jsoninletegressAccessLogs=field_mapjson__"EgressAccessLogs"EgressAccessLogs.of_jsoninletdescription=field_mapjson__"Description"Zz__string.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"Zz__string.of_jsoninletarn=field_mapjson__"Arn"Zz__string.of_jsoninmake?tags?ingressAccessLogs?id?hlsIngest?egressAccessLogs?description?createdAt?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates an existing Channel."]moduleUpdateChannelRequest=structtypenonrect={description:Zz__string.toption[@ocaml.doc"A short text description of the Channel."];id:Zz__string.t[@ocaml.doc"The ID of the Channel to update."]}letcontext_="UpdateChannelRequest"letmake?description=fun~id->fun()->{description;id}letto_valuex=structure_to_value[("description",(Option.mapx.description~f:Zz__string.to_value));("id",(Some(Zz__string.to_valuex.id)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"id")inletdescription=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"description")inmake~id?description()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_map_exnjson__"Id"Zz__string.of_jsoninletdescription=field_mapjson__"Description"Zz__string.of_jsoninmake~id?description()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration parameters used to update the Channel."]moduleUntagResourceRequest=structtypenonrect={resourceArn:Zz__string.t;tagKeys:Zz__listOf__string.t[@ocaml.doc"The key(s) of tag to be deleted"]}letcontext_="UntagResourceRequest"letmake~resourceArn=fun~tagKeys->fun()->{resourceArn;tagKeys}letto_valuex=structure_to_value[("resource-arn",(Some(Zz__string.to_valuex.resourceArn)));("tagKeys",(Some(Zz__listOf__string.to_valuex.tagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagKeys=Zz__listOf__string.of_xml(Xml.child_exn~context:context_xml_arg0"tagKeys")inletresourceArn=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"resource-arn")inmake~tagKeys~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagKeys=field_map_exnjson__"TagKeys"Zz__listOf__string.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"Zz__string.of_jsoninmake~tagKeys~resourceArn()letto_jsonv=composed_to_jsonto_valuevendmoduleTagsModel=structtypenonrect={tags:Zz__mapOf__string.t}letcontext_="TagsModel"letmake~tags=fun()->{tags}letto_valuex=structure_to_value[("tags",(Some(Zz__mapOf__string.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=Zz__mapOf__string.of_xml(Xml.child_exn~context:context_xml_arg0"tags")inmake~tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_map_exnjson__"Tags"Zz__mapOf__string.of_jsoninmake~tags()letto_jsonv=composed_to_jsonto_valuevendmoduleTagResourceRequest=structtypenonrect={resourceArn:Zz__string.t;tags:Zz__mapOf__string.t}letcontext_="TagResourceRequest"letmake~resourceArn=fun~tags->fun()->{resourceArn;tags}letto_valuex=structure_to_value[("resource-arn",(Some(Zz__string.to_valuex.resourceArn)));("tags",(Some(Zz__mapOf__string.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=Zz__mapOf__string.of_xml(Xml.child_exn~context:context_xml_arg0"tags")inletresourceArn=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"resource-arn")inmake~tags~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_map_exnjson__"Tags"Zz__mapOf__string.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"Zz__string.of_jsoninmake~tags~resourceArn()letto_jsonv=composed_to_jsonto_valuevendmoduleRotateIngestEndpointCredentialsResponse=structtypenonrect={arn:Zz__string.toption[@ocaml.doc"The Amazon Resource Name (ARN) assigned to the Channel."];createdAt:Zz__string.toption[@ocaml.doc"The date and time the Channel was created."];description:Zz__string.toption[@ocaml.doc"A short text description of the Channel."];egressAccessLogs:EgressAccessLogs.toption;hlsIngest:HlsIngest.toption;id:Zz__string.toption[@ocaml.doc"The ID of the Channel."];ingressAccessLogs:IngressAccessLogs.toption;tags:Tags.toption}typenonrecerror=[`ForbiddenExceptionofForbiddenException.t|`InternalServerErrorExceptionofInternalServerErrorException.t|`NotFoundExceptionofNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`UnprocessableEntityExceptionofUnprocessableEntityException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun?createdAt->fun?description->fun?egressAccessLogs->fun?hlsIngest->fun?id->fun?ingressAccessLogs->fun?tags->fun()->{arn;createdAt;description;egressAccessLogs;hlsIngest;id;ingressAccessLogs;tags}leterror_of_jsonnamejson=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`InternalServerErrorExceptione->`Assoc[("error",(`String"InternalServerErrorException"));("details",(InternalServerErrorException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`UnprocessableEntityExceptione->`Assoc[("error",(`String"UnprocessableEntityException"));("details",(UnprocessableEntityException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:Zz__string.to_value));("createdAt",(Option.mapx.createdAt~f:Zz__string.to_value));("description",(Option.mapx.description~f:Zz__string.to_value));("egressAccessLogs",(Option.mapx.egressAccessLogs~f:EgressAccessLogs.to_value));("hlsIngest",(Option.mapx.hlsIngest~f:HlsIngest.to_value));("id",(Option.mapx.id~f:Zz__string.to_value));("ingressAccessLogs",(Option.mapx.ingressAccessLogs~f:IngressAccessLogs.to_value));("tags",(Option.mapx.tags~f:Tags.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletingressAccessLogs=(Option.map~f:IngressAccessLogs.of_xml)(Xml.childxml_arg0"ingressAccessLogs")inletid=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"id")inlethlsIngest=(Option.map~f:HlsIngest.of_xml)(Xml.childxml_arg0"hlsIngest")inletegressAccessLogs=(Option.map~f:EgressAccessLogs.of_xml)(Xml.childxml_arg0"egressAccessLogs")inletdescription=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"description")inletcreatedAt=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"createdAt")inletarn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"arn")inmake?tags?ingressAccessLogs?id?hlsIngest?egressAccessLogs?description?createdAt?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"Tags.of_jsoninletingressAccessLogs=field_mapjson__"IngressAccessLogs"IngressAccessLogs.of_jsoninletid=field_mapjson__"Id"Zz__string.of_jsoninlethlsIngest=field_mapjson__"HlsIngest"HlsIngest.of_jsoninletegressAccessLogs=field_mapjson__"EgressAccessLogs"EgressAccessLogs.of_jsoninletdescription=field_mapjson__"Description"Zz__string.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"Zz__string.of_jsoninletarn=field_mapjson__"Arn"Zz__string.of_jsoninmake?tags?ingressAccessLogs?id?hlsIngest?egressAccessLogs?description?createdAt?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Rotate the IngestEndpoint's username and password, as specified by the IngestEndpoint's id."]moduleRotateIngestEndpointCredentialsRequest=structtypenonrect={id:Zz__string.t[@ocaml.doc"The ID of the channel the IngestEndpoint is on."];ingestEndpointId:Zz__string.t[@ocaml.doc"The id of the IngestEndpoint whose credentials should be rotated"]}letcontext_="RotateIngestEndpointCredentialsRequest"letmake~id=fun~ingestEndpointId->fun()->{id;ingestEndpointId}letto_valuex=structure_to_value[("id",(Some(Zz__string.to_valuex.id)));("ingest_endpoint_id",(Some(Zz__string.to_valuex.ingestEndpointId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letingestEndpointId=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"ingest_endpoint_id")inletid=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"id")inmake~ingestEndpointId~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letingestEndpointId=field_map_exnjson__"IngestEndpointId"Zz__string.of_jsoninletid=field_map_exnjson__"Id"Zz__string.of_jsoninmake~ingestEndpointId~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Rotate the IngestEndpoint's username and password, as specified by the IngestEndpoint's id."]moduleRotateChannelCredentialsResponse=structtypenonrect={arn:Zz__string.toption[@ocaml.doc"The Amazon Resource Name (ARN) assigned to the Channel."];createdAt:Zz__string.toption[@ocaml.doc"The date and time the Channel was created."];description:Zz__string.toption[@ocaml.doc"A short text description of the Channel."];egressAccessLogs:EgressAccessLogs.toption;hlsIngest:HlsIngest.toption;id:Zz__string.toption[@ocaml.doc"The ID of the Channel."];ingressAccessLogs:IngressAccessLogs.toption;tags:Tags.toption}typenonrecerror=[`ForbiddenExceptionofForbiddenException.t|`InternalServerErrorExceptionofInternalServerErrorException.t|`NotFoundExceptionofNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`UnprocessableEntityExceptionofUnprocessableEntityException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun?createdAt->fun?description->fun?egressAccessLogs->fun?hlsIngest->fun?id->fun?ingressAccessLogs->fun?tags->fun()->{arn;createdAt;description;egressAccessLogs;hlsIngest;id;ingressAccessLogs;tags}leterror_of_jsonnamejson=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`InternalServerErrorExceptione->`Assoc[("error",(`String"InternalServerErrorException"));("details",(InternalServerErrorException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`UnprocessableEntityExceptione->`Assoc[("error",(`String"UnprocessableEntityException"));("details",(UnprocessableEntityException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:Zz__string.to_value));("createdAt",(Option.mapx.createdAt~f:Zz__string.to_value));("description",(Option.mapx.description~f:Zz__string.to_value));("egressAccessLogs",(Option.mapx.egressAccessLogs~f:EgressAccessLogs.to_value));("hlsIngest",(Option.mapx.hlsIngest~f:HlsIngest.to_value));("id",(Option.mapx.id~f:Zz__string.to_value));("ingressAccessLogs",(Option.mapx.ingressAccessLogs~f:IngressAccessLogs.to_value));("tags",(Option.mapx.tags~f:Tags.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletingressAccessLogs=(Option.map~f:IngressAccessLogs.of_xml)(Xml.childxml_arg0"ingressAccessLogs")inletid=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"id")inlethlsIngest=(Option.map~f:HlsIngest.of_xml)(Xml.childxml_arg0"hlsIngest")inletegressAccessLogs=(Option.map~f:EgressAccessLogs.of_xml)(Xml.childxml_arg0"egressAccessLogs")inletdescription=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"description")inletcreatedAt=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"createdAt")inletarn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"arn")inmake?tags?ingressAccessLogs?id?hlsIngest?egressAccessLogs?description?createdAt?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"Tags.of_jsoninletingressAccessLogs=field_mapjson__"IngressAccessLogs"IngressAccessLogs.of_jsoninletid=field_mapjson__"Id"Zz__string.of_jsoninlethlsIngest=field_mapjson__"HlsIngest"HlsIngest.of_jsoninletegressAccessLogs=field_mapjson__"EgressAccessLogs"EgressAccessLogs.of_jsoninletdescription=field_mapjson__"Description"Zz__string.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"Zz__string.of_jsoninletarn=field_mapjson__"Arn"Zz__string.of_jsoninmake?tags?ingressAccessLogs?id?hlsIngest?egressAccessLogs?description?createdAt?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Changes the Channel's first IngestEndpoint's username and password. WARNING - This API is deprecated. Please use RotateIngestEndpointCredentials instead"]moduleRotateChannelCredentialsRequest=structtypenonrect={id:Zz__string.t[@ocaml.doc"The ID of the channel to update."]}letcontext_="RotateChannelCredentialsRequest"letmake~id=fun()->{id}letto_valuex=structure_to_value[("id",(Some(Zz__string.to_valuex.id)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"id")inmake~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_map_exnjson__"Id"Zz__string.of_jsoninmake~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Changes the Channel's first IngestEndpoint's username and password. WARNING - This API is deprecated. Please use RotateIngestEndpointCredentials instead"]moduleOriginEndpointUpdateParameters=structtypenonrect={authorization:Authorization.toption;cmafPackage:CmafPackageCreateOrUpdateParameters.toption;dashPackage:DashPackage.toption;description:Zz__string.toption[@ocaml.doc"A short text description of the OriginEndpoint."];hlsPackage:HlsPackage.toption;manifestName:Zz__string.toption[@ocaml.doc"A short string that will be appended to the end of the Endpoint URL."];mssPackage:MssPackage.toption;origination:Origination.toption[@ocaml.doc"Control whether origination of video is allowed for this OriginEndpoint. If set to ALLOW, the OriginEndpoint may by requested, pursuant to any other form of access control. If set to DENY, the OriginEndpoint may not be requested. This can be helpful for Live to VOD harvesting, or for temporarily disabling origination"];startoverWindowSeconds:Zz__integer.toption[@ocaml.doc"Maximum duration (in seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint."];timeDelaySeconds:Zz__integer.toption[@ocaml.doc"Amount of delay (in seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint."];whitelist:Zz__listOf__string.toption[@ocaml.doc"A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint."]}letmake?authorization=fun?cmafPackage->fun?dashPackage->fun?description->fun?hlsPackage->fun?manifestName->fun?mssPackage->fun?origination->fun?startoverWindowSeconds->fun?timeDelaySeconds->fun?whitelist->fun()->{authorization;cmafPackage;dashPackage;description;hlsPackage;manifestName;mssPackage;origination;startoverWindowSeconds;timeDelaySeconds;whitelist}letto_valuex=structure_to_value[("authorization",(Option.mapx.authorization~f:Authorization.to_value));("cmafPackage",(Option.mapx.cmafPackage~f:CmafPackageCreateOrUpdateParameters.to_value));("dashPackage",(Option.mapx.dashPackage~f:DashPackage.to_value));("description",(Option.mapx.description~f:Zz__string.to_value));("hlsPackage",(Option.mapx.hlsPackage~f:HlsPackage.to_value));("manifestName",(Option.mapx.manifestName~f:Zz__string.to_value));("mssPackage",(Option.mapx.mssPackage~f:MssPackage.to_value));("origination",(Option.mapx.origination~f:Origination.to_value));("startoverWindowSeconds",(Option.mapx.startoverWindowSeconds~f:Zz__integer.to_value));("timeDelaySeconds",(Option.mapx.timeDelaySeconds~f:Zz__integer.to_value));("whitelist",(Option.mapx.whitelist~f:Zz__listOf__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letwhitelist=(Option.map~f:Zz__listOf__string.of_xml)(Xml.childxml_arg0"whitelist")inlettimeDelaySeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"timeDelaySeconds")inletstartoverWindowSeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"startoverWindowSeconds")inletorigination=(Option.map~f:Origination.of_xml)(Xml.childxml_arg0"origination")inletmssPackage=(Option.map~f:MssPackage.of_xml)(Xml.childxml_arg0"mssPackage")inletmanifestName=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"manifestName")inlethlsPackage=(Option.map~f:HlsPackage.of_xml)(Xml.childxml_arg0"hlsPackage")inletdescription=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"description")inletdashPackage=(Option.map~f:DashPackage.of_xml)(Xml.childxml_arg0"dashPackage")inletcmafPackage=(Option.map~f:CmafPackageCreateOrUpdateParameters.of_xml)(Xml.childxml_arg0"cmafPackage")inletauthorization=(Option.map~f:Authorization.of_xml)(Xml.childxml_arg0"authorization")inmake?whitelist?timeDelaySeconds?startoverWindowSeconds?origination?mssPackage?manifestName?hlsPackage?description?dashPackage?cmafPackage?authorization()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letwhitelist=field_mapjson__"Whitelist"Zz__listOf__string.of_jsoninlettimeDelaySeconds=field_mapjson__"TimeDelaySeconds"Zz__integer.of_jsoninletstartoverWindowSeconds=field_mapjson__"StartoverWindowSeconds"Zz__integer.of_jsoninletorigination=field_mapjson__"Origination"Origination.of_jsoninletmssPackage=field_mapjson__"MssPackage"MssPackage.of_jsoninletmanifestName=field_mapjson__"ManifestName"Zz__string.of_jsoninlethlsPackage=field_mapjson__"HlsPackage"HlsPackage.of_jsoninletdescription=field_mapjson__"Description"Zz__string.of_jsoninletdashPackage=field_mapjson__"DashPackage"DashPackage.of_jsoninletcmafPackage=field_mapjson__"CmafPackage"CmafPackageCreateOrUpdateParameters.of_jsoninletauthorization=field_mapjson__"Authorization"Authorization.of_jsoninmake?whitelist?timeDelaySeconds?startoverWindowSeconds?origination?mssPackage?manifestName?hlsPackage?description?dashPackage?cmafPackage?authorization()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration parameters for updating an existing OriginEndpoint."]moduleOriginEndpointList=structtypenonrect={nextToken:Zz__string.toption[@ocaml.doc"A token that can be used to resume pagination from the end of the collection."];originEndpoints:Zz__listOfOriginEndpoint.toption[@ocaml.doc"A list of OriginEndpoint records."]}letmake?nextToken=fun?originEndpoints->fun()->{nextToken;originEndpoints}letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:Zz__string.to_value));("originEndpoints",(Option.mapx.originEndpoints~f:Zz__listOfOriginEndpoint.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoriginEndpoints=(Option.map~f:Zz__listOfOriginEndpoint.of_xml)(Xml.childxml_arg0"originEndpoints")inletnextToken=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"nextToken")inmake?originEndpoints?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoriginEndpoints=field_mapjson__"OriginEndpoints"Zz__listOfOriginEndpoint.of_jsoninletnextToken=field_mapjson__"NextToken"Zz__string.of_jsoninmake?originEndpoints?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A collection of OriginEndpoint records."]moduleOriginEndpointCreateParameters=structtypenonrect={authorization:Authorization.toption;channelId:Zz__string.t[@ocaml.doc"The ID of the Channel that the OriginEndpoint will be associated with. This cannot be changed after the OriginEndpoint is created."];cmafPackage:CmafPackageCreateOrUpdateParameters.toption;dashPackage:DashPackage.toption;description:Zz__string.toption[@ocaml.doc"A short text description of the OriginEndpoint."];hlsPackage:HlsPackage.toption;id:Zz__string.t[@ocaml.doc"The ID of the OriginEndpoint. The ID must be unique within the region and it cannot be changed after the OriginEndpoint is created."];manifestName:Zz__string.toption[@ocaml.doc"A short string that will be used as the filename of the OriginEndpoint URL (defaults to \"index\")."];mssPackage:MssPackage.toption;origination:Origination.toption[@ocaml.doc"Control whether origination of video is allowed for this OriginEndpoint. If set to ALLOW, the OriginEndpoint may by requested, pursuant to any other form of access control. If set to DENY, the OriginEndpoint may not be requested. This can be helpful for Live to VOD harvesting, or for temporarily disabling origination"];startoverWindowSeconds:Zz__integer.toption[@ocaml.doc"Maximum duration (seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint."];tags:Tags.toption;timeDelaySeconds:Zz__integer.toption[@ocaml.doc"Amount of delay (seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint."];whitelist:Zz__listOf__string.toption[@ocaml.doc"A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint."]}letcontext_="OriginEndpointCreateParameters"letmake?authorization=fun?cmafPackage->fun?dashPackage->fun?description->fun?hlsPackage->fun?manifestName->fun?mssPackage->fun?origination->fun?startoverWindowSeconds->fun?tags->fun?timeDelaySeconds->fun?whitelist->fun~channelId->fun~id->fun()->{authorization;cmafPackage;dashPackage;description;hlsPackage;manifestName;mssPackage;origination;startoverWindowSeconds;tags;timeDelaySeconds;whitelist;channelId;id}letto_valuex=structure_to_value[("authorization",(Option.mapx.authorization~f:Authorization.to_value));("channelId",(Some(Zz__string.to_valuex.channelId)));("cmafPackage",(Option.mapx.cmafPackage~f:CmafPackageCreateOrUpdateParameters.to_value));("dashPackage",(Option.mapx.dashPackage~f:DashPackage.to_value));("description",(Option.mapx.description~f:Zz__string.to_value));("hlsPackage",(Option.mapx.hlsPackage~f:HlsPackage.to_value));("id",(Some(Zz__string.to_valuex.id)));("manifestName",(Option.mapx.manifestName~f:Zz__string.to_value));("mssPackage",(Option.mapx.mssPackage~f:MssPackage.to_value));("origination",(Option.mapx.origination~f:Origination.to_value));("startoverWindowSeconds",(Option.mapx.startoverWindowSeconds~f:Zz__integer.to_value));("tags",(Option.mapx.tags~f:Tags.to_value));("timeDelaySeconds",(Option.mapx.timeDelaySeconds~f:Zz__integer.to_value));("whitelist",(Option.mapx.whitelist~f:Zz__listOf__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letwhitelist=(Option.map~f:Zz__listOf__string.of_xml)(Xml.childxml_arg0"whitelist")inlettimeDelaySeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"timeDelaySeconds")inlettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletstartoverWindowSeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"startoverWindowSeconds")inletorigination=(Option.map~f:Origination.of_xml)(Xml.childxml_arg0"origination")inletmssPackage=(Option.map~f:MssPackage.of_xml)(Xml.childxml_arg0"mssPackage")inletmanifestName=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"manifestName")inletid=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"id")inlethlsPackage=(Option.map~f:HlsPackage.of_xml)(Xml.childxml_arg0"hlsPackage")inletdescription=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"description")inletdashPackage=(Option.map~f:DashPackage.of_xml)(Xml.childxml_arg0"dashPackage")inletcmafPackage=(Option.map~f:CmafPackageCreateOrUpdateParameters.of_xml)(Xml.childxml_arg0"cmafPackage")inletchannelId=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"channelId")inletauthorization=(Option.map~f:Authorization.of_xml)(Xml.childxml_arg0"authorization")inmake?whitelist?timeDelaySeconds?tags?startoverWindowSeconds?origination?mssPackage?manifestName~id?hlsPackage?description?dashPackage?cmafPackage~channelId?authorization()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letwhitelist=field_mapjson__"Whitelist"Zz__listOf__string.of_jsoninlettimeDelaySeconds=field_mapjson__"TimeDelaySeconds"Zz__integer.of_jsoninlettags=field_mapjson__"Tags"Tags.of_jsoninletstartoverWindowSeconds=field_mapjson__"StartoverWindowSeconds"Zz__integer.of_jsoninletorigination=field_mapjson__"Origination"Origination.of_jsoninletmssPackage=field_mapjson__"MssPackage"MssPackage.of_jsoninletmanifestName=field_mapjson__"ManifestName"Zz__string.of_jsoninletid=field_map_exnjson__"Id"Zz__string.of_jsoninlethlsPackage=field_mapjson__"HlsPackage"HlsPackage.of_jsoninletdescription=field_mapjson__"Description"Zz__string.of_jsoninletdashPackage=field_mapjson__"DashPackage"DashPackage.of_jsoninletcmafPackage=field_mapjson__"CmafPackage"CmafPackageCreateOrUpdateParameters.of_jsoninletchannelId=field_map_exnjson__"ChannelId"Zz__string.of_jsoninletauthorization=field_mapjson__"Authorization"Authorization.of_jsoninmake?whitelist?timeDelaySeconds?tags?startoverWindowSeconds?origination?mssPackage?manifestName~id?hlsPackage?description?dashPackage?cmafPackage~channelId?authorization()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration parameters for a new OriginEndpoint."]moduleListTagsForResourceResponse=structtypenonrect={tags:Zz__mapOf__string.toption}typenonrecerror=[`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun()->{tags}leterror_of_jsonnamejson=matchnamewith|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("tags",(Option.mapx.tags~f:Zz__mapOf__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:Zz__mapOf__string.of_xml)(Xml.childxml_arg0"tags")inmake?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"Zz__mapOf__string.of_jsoninmake?tags()letto_jsonv=composed_to_jsonto_valuevendmoduleListTagsForResourceRequest=structtypenonrect={resourceArn:Zz__string.t}letcontext_="ListTagsForResourceRequest"letmake~resourceArn=fun()->{resourceArn}letto_valuex=structure_to_value[("resource-arn",(Some(Zz__string.to_valuex.resourceArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"resource-arn")inmake~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceArn=field_map_exnjson__"ResourceArn"Zz__string.of_jsoninmake~resourceArn()letto_jsonv=composed_to_jsonto_valuevendmoduleListOriginEndpointsResponse=structtypenonrect={nextToken:Zz__string.toption[@ocaml.doc"A token that can be used to resume pagination from the end of the collection."];originEndpoints:Zz__listOfOriginEndpoint.toption[@ocaml.doc"A list of OriginEndpoint records."]}typenonrecerror=[`ForbiddenExceptionofForbiddenException.t|`InternalServerErrorExceptionofInternalServerErrorException.t|`NotFoundExceptionofNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`UnprocessableEntityExceptionofUnprocessableEntityException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?originEndpoints->fun()->{nextToken;originEndpoints}leterror_of_jsonnamejson=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`InternalServerErrorExceptione->`Assoc[("error",(`String"InternalServerErrorException"));("details",(InternalServerErrorException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`UnprocessableEntityExceptione->`Assoc[("error",(`String"UnprocessableEntityException"));("details",(UnprocessableEntityException.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:Zz__string.to_value));("originEndpoints",(Option.mapx.originEndpoints~f:Zz__listOfOriginEndpoint.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoriginEndpoints=(Option.map~f:Zz__listOfOriginEndpoint.of_xml)(Xml.childxml_arg0"originEndpoints")inletnextToken=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"nextToken")inmake?originEndpoints?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoriginEndpoints=field_mapjson__"OriginEndpoints"Zz__listOfOriginEndpoint.of_jsoninletnextToken=field_mapjson__"NextToken"Zz__string.of_jsoninmake?originEndpoints?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a collection of OriginEndpoint records."]moduleListOriginEndpointsRequest=structtypenonrect={channelId:Zz__string.toption[@ocaml.doc"When specified, the request will return only OriginEndpoints associated with the given Channel ID."];maxResults:MaxResults.toption[@ocaml.doc"The upper bound on the number of records to return."];nextToken:Zz__string.toption[@ocaml.doc"A token used to resume pagination from the end of a previous request."]}letmake?channelId=fun?maxResults->fun?nextToken->fun()->{channelId;maxResults;nextToken}letto_valuex=structure_to_value[("channelId",(Option.mapx.channelId~f:Zz__string.to_value));("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("nextToken",(Option.mapx.nextToken~f:Zz__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletchannelId=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"channelId")inmake?nextToken?maxResults?channelId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Zz__string.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletchannelId=field_mapjson__"ChannelId"Zz__string.of_jsoninmake?nextToken?maxResults?channelId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a collection of OriginEndpoint records."]moduleListHarvestJobsResponse=structtypenonrect={harvestJobs:Zz__listOfHarvestJob.toption[@ocaml.doc"A list of HarvestJob records."];nextToken:Zz__string.toption[@ocaml.doc"A token that can be used to resume pagination from the end of the collection."]}typenonrecerror=[`ForbiddenExceptionofForbiddenException.t|`InternalServerErrorExceptionofInternalServerErrorException.t|`NotFoundExceptionofNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`UnprocessableEntityExceptionofUnprocessableEntityException.t|`Unknown_operation_errorof(string*stringoption)]letmake?harvestJobs=fun?nextToken->fun()->{harvestJobs;nextToken}leterror_of_jsonnamejson=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`InternalServerErrorExceptione->`Assoc[("error",(`String"InternalServerErrorException"));("details",(InternalServerErrorException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`UnprocessableEntityExceptione->`Assoc[("error",(`String"UnprocessableEntityException"));("details",(UnprocessableEntityException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("harvestJobs",(Option.mapx.harvestJobs~f:Zz__listOfHarvestJob.to_value));("nextToken",(Option.mapx.nextToken~f:Zz__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"nextToken")inletharvestJobs=(Option.map~f:Zz__listOfHarvestJob.of_xml)(Xml.childxml_arg0"harvestJobs")inmake?nextToken?harvestJobs()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Zz__string.of_jsoninletharvestJobs=field_mapjson__"HarvestJobs"Zz__listOfHarvestJob.of_jsoninmake?nextToken?harvestJobs()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a collection of HarvestJob records."]moduleListHarvestJobsRequest=structtypenonrect={includeChannelId:Zz__string.toption[@ocaml.doc"When specified, the request will return only HarvestJobs associated with the given Channel ID."];includeStatus:Zz__string.toption[@ocaml.doc"When specified, the request will return only HarvestJobs in the given status."];maxResults:MaxResults.toption[@ocaml.doc"The upper bound on the number of records to return."];nextToken:Zz__string.toption[@ocaml.doc"A token used to resume pagination from the end of a previous request."]}letmake?includeChannelId=fun?includeStatus->fun?maxResults->fun?nextToken->fun()->{includeChannelId;includeStatus;maxResults;nextToken}letto_valuex=structure_to_value[("includeChannelId",(Option.mapx.includeChannelId~f:Zz__string.to_value));("includeStatus",(Option.mapx.includeStatus~f:Zz__string.to_value));("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("nextToken",(Option.mapx.nextToken~f:Zz__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletincludeStatus=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"includeStatus")inletincludeChannelId=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"includeChannelId")inmake?nextToken?maxResults?includeStatus?includeChannelId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Zz__string.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletincludeStatus=field_mapjson__"IncludeStatus"Zz__string.of_jsoninletincludeChannelId=field_mapjson__"IncludeChannelId"Zz__string.of_jsoninmake?nextToken?maxResults?includeStatus?includeChannelId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a collection of HarvestJob records."]moduleListChannelsResponse=structtypenonrect={channels:Zz__listOfChannel.toption[@ocaml.doc"A list of Channel records."];nextToken:Zz__string.toption[@ocaml.doc"A token that can be used to resume pagination from the end of the collection."]}typenonrecerror=[`ForbiddenExceptionofForbiddenException.t|`InternalServerErrorExceptionofInternalServerErrorException.t|`NotFoundExceptionofNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`UnprocessableEntityExceptionofUnprocessableEntityException.t|`Unknown_operation_errorof(string*stringoption)]letmake?channels=fun?nextToken->fun()->{channels;nextToken}leterror_of_jsonnamejson=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`InternalServerErrorExceptione->`Assoc[("error",(`String"InternalServerErrorException"));("details",(InternalServerErrorException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`UnprocessableEntityExceptione->`Assoc[("error",(`String"UnprocessableEntityException"));("details",(UnprocessableEntityException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("channels",(Option.mapx.channels~f:Zz__listOfChannel.to_value));("nextToken",(Option.mapx.nextToken~f:Zz__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"nextToken")inletchannels=(Option.map~f:Zz__listOfChannel.of_xml)(Xml.childxml_arg0"channels")inmake?nextToken?channels()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Zz__string.of_jsoninletchannels=field_mapjson__"Channels"Zz__listOfChannel.of_jsoninmake?nextToken?channels()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a collection of Channels."]moduleListChannelsRequest=structtypenonrect={maxResults:MaxResults.toption[@ocaml.doc"Upper bound on number of records to return."];nextToken:Zz__string.toption[@ocaml.doc"A token used to resume pagination from the end of a previous request."]}letmake?maxResults=fun?nextToken->fun()->{maxResults;nextToken}letto_valuex=structure_to_value[("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("nextToken",(Option.mapx.nextToken~f:Zz__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inmake?nextToken?maxResults()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Zz__string.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninmake?nextToken?maxResults()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a collection of Channels."]moduleHarvestJobList=structtypenonrect={harvestJobs:Zz__listOfHarvestJob.toption[@ocaml.doc"A list of HarvestJob records."];nextToken:Zz__string.toption[@ocaml.doc"A token that can be used to resume pagination from the end of the collection."]}letmake?harvestJobs=fun?nextToken->fun()->{harvestJobs;nextToken}letto_valuex=structure_to_value[("harvestJobs",(Option.mapx.harvestJobs~f:Zz__listOfHarvestJob.to_value));("nextToken",(Option.mapx.nextToken~f:Zz__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"nextToken")inletharvestJobs=(Option.map~f:Zz__listOfHarvestJob.of_xml)(Xml.childxml_arg0"harvestJobs")inmake?nextToken?harvestJobs()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Zz__string.of_jsoninletharvestJobs=field_mapjson__"HarvestJobs"Zz__listOfHarvestJob.of_jsoninmake?nextToken?harvestJobs()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A collection of HarvestJob records."]moduleHarvestJobCreateParameters=structtypenonrect={endTime:Zz__string.t[@ocaml.doc"The end of the time-window which will be harvested"];id:Zz__string.t[@ocaml.doc"The ID of the HarvestJob. The ID must be unique within the region and it cannot be changed after the HarvestJob is submitted"];originEndpointId:Zz__string.t[@ocaml.doc"The ID of the OriginEndpoint that the HarvestJob will harvest from. This cannot be changed after the HarvestJob is submitted."];s3Destination:S3Destination.t;startTime:Zz__string.t[@ocaml.doc"The start of the time-window which will be harvested"]}letcontext_="HarvestJobCreateParameters"letmake~endTime=fun~id->fun~originEndpointId->fun~s3Destination->fun~startTime->fun()->{endTime;id;originEndpointId;s3Destination;startTime}letto_valuex=structure_to_value[("endTime",(Some(Zz__string.to_valuex.endTime)));("id",(Some(Zz__string.to_valuex.id)));("originEndpointId",(Some(Zz__string.to_valuex.originEndpointId)));("s3Destination",(Some(S3Destination.to_valuex.s3Destination)));("startTime",(Some(Zz__string.to_valuex.startTime)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstartTime=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"startTime")inlets3Destination=S3Destination.of_xml(Xml.child_exn~context:context_xml_arg0"s3Destination")inletoriginEndpointId=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"originEndpointId")inletid=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"id")inletendTime=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"endTime")inmake~startTime~s3Destination~originEndpointId~id~endTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstartTime=field_map_exnjson__"StartTime"Zz__string.of_jsoninlets3Destination=field_map_exnjson__"S3Destination"S3Destination.of_jsoninletoriginEndpointId=field_map_exnjson__"OriginEndpointId"Zz__string.of_jsoninletid=field_map_exnjson__"Id"Zz__string.of_jsoninletendTime=field_map_exnjson__"EndTime"Zz__string.of_jsoninmake~startTime~s3Destination~originEndpointId~id~endTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration parameters for a new HarvestJob"]moduleDescribeOriginEndpointResponse=structtypenonrect={arn:Zz__string.toption[@ocaml.doc"The Amazon Resource Name (ARN) assigned to the OriginEndpoint."];authorization:Authorization.toption;channelId:Zz__string.toption[@ocaml.doc"The ID of the Channel the OriginEndpoint is associated with."];cmafPackage:CmafPackage.toption;createdAt:Zz__string.toption[@ocaml.doc"The date and time the OriginEndpoint was created."];dashPackage:DashPackage.toption;description:Zz__string.toption[@ocaml.doc"A short text description of the OriginEndpoint."];hlsPackage:HlsPackage.toption;id:Zz__string.toption[@ocaml.doc"The ID of the OriginEndpoint."];manifestName:Zz__string.toption[@ocaml.doc"A short string appended to the end of the OriginEndpoint URL."];mssPackage:MssPackage.toption;origination:Origination.toption[@ocaml.doc"Control whether origination of video is allowed for this OriginEndpoint. If set to ALLOW, the OriginEndpoint may by requested, pursuant to any other form of access control. If set to DENY, the OriginEndpoint may not be requested. This can be helpful for Live to VOD harvesting, or for temporarily disabling origination"];startoverWindowSeconds:Zz__integer.toption[@ocaml.doc"Maximum duration (seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint."];tags:Tags.toption;timeDelaySeconds:Zz__integer.toption[@ocaml.doc"Amount of delay (seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint."];url:Zz__string.toption[@ocaml.doc"The URL of the packaged OriginEndpoint for consumption."];whitelist:Zz__listOf__string.toption[@ocaml.doc"A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint."]}typenonrecerror=[`ForbiddenExceptionofForbiddenException.t|`InternalServerErrorExceptionofInternalServerErrorException.t|`NotFoundExceptionofNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`UnprocessableEntityExceptionofUnprocessableEntityException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun?authorization->fun?channelId->fun?cmafPackage->fun?createdAt->fun?dashPackage->fun?description->fun?hlsPackage->fun?id->fun?manifestName->fun?mssPackage->fun?origination->fun?startoverWindowSeconds->fun?tags->fun?timeDelaySeconds->fun?url->fun?whitelist->fun()->{arn;authorization;channelId;cmafPackage;createdAt;dashPackage;description;hlsPackage;id;manifestName;mssPackage;origination;startoverWindowSeconds;tags;timeDelaySeconds;url;whitelist}leterror_of_jsonnamejson=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`InternalServerErrorExceptione->`Assoc[("error",(`String"InternalServerErrorException"));("details",(InternalServerErrorException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`UnprocessableEntityExceptione->`Assoc[("error",(`String"UnprocessableEntityException"));("details",(UnprocessableEntityException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:Zz__string.to_value));("authorization",(Option.mapx.authorization~f:Authorization.to_value));("channelId",(Option.mapx.channelId~f:Zz__string.to_value));("cmafPackage",(Option.mapx.cmafPackage~f:CmafPackage.to_value));("createdAt",(Option.mapx.createdAt~f:Zz__string.to_value));("dashPackage",(Option.mapx.dashPackage~f:DashPackage.to_value));("description",(Option.mapx.description~f:Zz__string.to_value));("hlsPackage",(Option.mapx.hlsPackage~f:HlsPackage.to_value));("id",(Option.mapx.id~f:Zz__string.to_value));("manifestName",(Option.mapx.manifestName~f:Zz__string.to_value));("mssPackage",(Option.mapx.mssPackage~f:MssPackage.to_value));("origination",(Option.mapx.origination~f:Origination.to_value));("startoverWindowSeconds",(Option.mapx.startoverWindowSeconds~f:Zz__integer.to_value));("tags",(Option.mapx.tags~f:Tags.to_value));("timeDelaySeconds",(Option.mapx.timeDelaySeconds~f:Zz__integer.to_value));("url",(Option.mapx.url~f:Zz__string.to_value));("whitelist",(Option.mapx.whitelist~f:Zz__listOf__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letwhitelist=(Option.map~f:Zz__listOf__string.of_xml)(Xml.childxml_arg0"whitelist")inleturl=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"url")inlettimeDelaySeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"timeDelaySeconds")inlettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletstartoverWindowSeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"startoverWindowSeconds")inletorigination=(Option.map~f:Origination.of_xml)(Xml.childxml_arg0"origination")inletmssPackage=(Option.map~f:MssPackage.of_xml)(Xml.childxml_arg0"mssPackage")inletmanifestName=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"manifestName")inletid=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"id")inlethlsPackage=(Option.map~f:HlsPackage.of_xml)(Xml.childxml_arg0"hlsPackage")inletdescription=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"description")inletdashPackage=(Option.map~f:DashPackage.of_xml)(Xml.childxml_arg0"dashPackage")inletcreatedAt=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"createdAt")inletcmafPackage=(Option.map~f:CmafPackage.of_xml)(Xml.childxml_arg0"cmafPackage")inletchannelId=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"channelId")inletauthorization=(Option.map~f:Authorization.of_xml)(Xml.childxml_arg0"authorization")inletarn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"arn")inmake?whitelist?url?timeDelaySeconds?tags?startoverWindowSeconds?origination?mssPackage?manifestName?id?hlsPackage?description?dashPackage?createdAt?cmafPackage?channelId?authorization?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letwhitelist=field_mapjson__"Whitelist"Zz__listOf__string.of_jsoninleturl=field_mapjson__"Url"Zz__string.of_jsoninlettimeDelaySeconds=field_mapjson__"TimeDelaySeconds"Zz__integer.of_jsoninlettags=field_mapjson__"Tags"Tags.of_jsoninletstartoverWindowSeconds=field_mapjson__"StartoverWindowSeconds"Zz__integer.of_jsoninletorigination=field_mapjson__"Origination"Origination.of_jsoninletmssPackage=field_mapjson__"MssPackage"MssPackage.of_jsoninletmanifestName=field_mapjson__"ManifestName"Zz__string.of_jsoninletid=field_mapjson__"Id"Zz__string.of_jsoninlethlsPackage=field_mapjson__"HlsPackage"HlsPackage.of_jsoninletdescription=field_mapjson__"Description"Zz__string.of_jsoninletdashPackage=field_mapjson__"DashPackage"DashPackage.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"Zz__string.of_jsoninletcmafPackage=field_mapjson__"CmafPackage"CmafPackage.of_jsoninletchannelId=field_mapjson__"ChannelId"Zz__string.of_jsoninletauthorization=field_mapjson__"Authorization"Authorization.of_jsoninletarn=field_mapjson__"Arn"Zz__string.of_jsoninmake?whitelist?url?timeDelaySeconds?tags?startoverWindowSeconds?origination?mssPackage?manifestName?id?hlsPackage?description?dashPackage?createdAt?cmafPackage?channelId?authorization?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets details about an existing OriginEndpoint."]moduleDescribeOriginEndpointRequest=structtypenonrect={id:Zz__string.t[@ocaml.doc"The ID of the OriginEndpoint."]}letcontext_="DescribeOriginEndpointRequest"letmake~id=fun()->{id}letto_valuex=structure_to_value[("id",(Some(Zz__string.to_valuex.id)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"id")inmake~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_map_exnjson__"Id"Zz__string.of_jsoninmake~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets details about an existing OriginEndpoint."]moduleDescribeHarvestJobResponse=structtypenonrect={arn:Zz__string.toption[@ocaml.doc"The Amazon Resource Name (ARN) assigned to the HarvestJob."];channelId:Zz__string.toption[@ocaml.doc"The ID of the Channel that the HarvestJob will harvest from."];createdAt:Zz__string.toption[@ocaml.doc"The date and time the HarvestJob was submitted."];endTime:Zz__string.toption[@ocaml.doc"The end of the time-window which will be harvested."];id:Zz__string.toption[@ocaml.doc"The ID of the HarvestJob. The ID must be unique within the region and it cannot be changed after the HarvestJob is submitted."];originEndpointId:Zz__string.toption[@ocaml.doc"The ID of the OriginEndpoint that the HarvestJob will harvest from. This cannot be changed after the HarvestJob is submitted."];s3Destination:S3Destination.toption;startTime:Zz__string.toption[@ocaml.doc"The start of the time-window which will be harvested."];status:Status.toption[@ocaml.doc"The current status of the HarvestJob. Consider setting up a CloudWatch Event to listen for HarvestJobs as they succeed or fail. In the event of failure, the CloudWatch Event will include an explanation of why the HarvestJob failed."]}typenonrecerror=[`ForbiddenExceptionofForbiddenException.t|`InternalServerErrorExceptionofInternalServerErrorException.t|`NotFoundExceptionofNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`UnprocessableEntityExceptionofUnprocessableEntityException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun?channelId->fun?createdAt->fun?endTime->fun?id->fun?originEndpointId->fun?s3Destination->fun?startTime->fun?status->fun()->{arn;channelId;createdAt;endTime;id;originEndpointId;s3Destination;startTime;status}leterror_of_jsonnamejson=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`InternalServerErrorExceptione->`Assoc[("error",(`String"InternalServerErrorException"));("details",(InternalServerErrorException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`UnprocessableEntityExceptione->`Assoc[("error",(`String"UnprocessableEntityException"));("details",(UnprocessableEntityException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:Zz__string.to_value));("channelId",(Option.mapx.channelId~f:Zz__string.to_value));("createdAt",(Option.mapx.createdAt~f:Zz__string.to_value));("endTime",(Option.mapx.endTime~f:Zz__string.to_value));("id",(Option.mapx.id~f:Zz__string.to_value));("originEndpointId",(Option.mapx.originEndpointId~f:Zz__string.to_value));("s3Destination",(Option.mapx.s3Destination~f:S3Destination.to_value));("startTime",(Option.mapx.startTime~f:Zz__string.to_value));("status",(Option.mapx.status~f:Status.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=(Option.map~f:Status.of_xml)(Xml.childxml_arg0"status")inletstartTime=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"startTime")inlets3Destination=(Option.map~f:S3Destination.of_xml)(Xml.childxml_arg0"s3Destination")inletoriginEndpointId=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"originEndpointId")inletid=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"id")inletendTime=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"endTime")inletcreatedAt=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"createdAt")inletchannelId=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"channelId")inletarn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"arn")inmake?status?startTime?s3Destination?originEndpointId?id?endTime?createdAt?channelId?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_mapjson__"Status"Status.of_jsoninletstartTime=field_mapjson__"StartTime"Zz__string.of_jsoninlets3Destination=field_mapjson__"S3Destination"S3Destination.of_jsoninletoriginEndpointId=field_mapjson__"OriginEndpointId"Zz__string.of_jsoninletid=field_mapjson__"Id"Zz__string.of_jsoninletendTime=field_mapjson__"EndTime"Zz__string.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"Zz__string.of_jsoninletchannelId=field_mapjson__"ChannelId"Zz__string.of_jsoninletarn=field_mapjson__"Arn"Zz__string.of_jsoninmake?status?startTime?s3Destination?originEndpointId?id?endTime?createdAt?channelId?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets details about an existing HarvestJob."]moduleDescribeHarvestJobRequest=structtypenonrect={id:Zz__string.t[@ocaml.doc"The ID of the HarvestJob."]}letcontext_="DescribeHarvestJobRequest"letmake~id=fun()->{id}letto_valuex=structure_to_value[("id",(Some(Zz__string.to_valuex.id)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"id")inmake~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_map_exnjson__"Id"Zz__string.of_jsoninmake~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets details about an existing HarvestJob."]moduleDescribeChannelResponse=structtypenonrect={arn:Zz__string.toption[@ocaml.doc"The Amazon Resource Name (ARN) assigned to the Channel."];createdAt:Zz__string.toption[@ocaml.doc"The date and time the Channel was created."];description:Zz__string.toption[@ocaml.doc"A short text description of the Channel."];egressAccessLogs:EgressAccessLogs.toption;hlsIngest:HlsIngest.toption;id:Zz__string.toption[@ocaml.doc"The ID of the Channel."];ingressAccessLogs:IngressAccessLogs.toption;tags:Tags.toption}typenonrecerror=[`ForbiddenExceptionofForbiddenException.t|`InternalServerErrorExceptionofInternalServerErrorException.t|`NotFoundExceptionofNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`UnprocessableEntityExceptionofUnprocessableEntityException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun?createdAt->fun?description->fun?egressAccessLogs->fun?hlsIngest->fun?id->fun?ingressAccessLogs->fun?tags->fun()->{arn;createdAt;description;egressAccessLogs;hlsIngest;id;ingressAccessLogs;tags}leterror_of_jsonnamejson=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`InternalServerErrorExceptione->`Assoc[("error",(`String"InternalServerErrorException"));("details",(InternalServerErrorException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`UnprocessableEntityExceptione->`Assoc[("error",(`String"UnprocessableEntityException"));("details",(UnprocessableEntityException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:Zz__string.to_value));("createdAt",(Option.mapx.createdAt~f:Zz__string.to_value));("description",(Option.mapx.description~f:Zz__string.to_value));("egressAccessLogs",(Option.mapx.egressAccessLogs~f:EgressAccessLogs.to_value));("hlsIngest",(Option.mapx.hlsIngest~f:HlsIngest.to_value));("id",(Option.mapx.id~f:Zz__string.to_value));("ingressAccessLogs",(Option.mapx.ingressAccessLogs~f:IngressAccessLogs.to_value));("tags",(Option.mapx.tags~f:Tags.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletingressAccessLogs=(Option.map~f:IngressAccessLogs.of_xml)(Xml.childxml_arg0"ingressAccessLogs")inletid=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"id")inlethlsIngest=(Option.map~f:HlsIngest.of_xml)(Xml.childxml_arg0"hlsIngest")inletegressAccessLogs=(Option.map~f:EgressAccessLogs.of_xml)(Xml.childxml_arg0"egressAccessLogs")inletdescription=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"description")inletcreatedAt=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"createdAt")inletarn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"arn")inmake?tags?ingressAccessLogs?id?hlsIngest?egressAccessLogs?description?createdAt?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"Tags.of_jsoninletingressAccessLogs=field_mapjson__"IngressAccessLogs"IngressAccessLogs.of_jsoninletid=field_mapjson__"Id"Zz__string.of_jsoninlethlsIngest=field_mapjson__"HlsIngest"HlsIngest.of_jsoninletegressAccessLogs=field_mapjson__"EgressAccessLogs"EgressAccessLogs.of_jsoninletdescription=field_mapjson__"Description"Zz__string.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"Zz__string.of_jsoninletarn=field_mapjson__"Arn"Zz__string.of_jsoninmake?tags?ingressAccessLogs?id?hlsIngest?egressAccessLogs?description?createdAt?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets details about a Channel."]moduleDescribeChannelRequest=structtypenonrect={id:Zz__string.t[@ocaml.doc"The ID of a Channel."]}letcontext_="DescribeChannelRequest"letmake~id=fun()->{id}letto_valuex=structure_to_value[("id",(Some(Zz__string.to_valuex.id)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"id")inmake~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_map_exnjson__"Id"Zz__string.of_jsoninmake~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets details about a Channel."]moduleDeleteOriginEndpointResponse=structtypenonrect=unittypenonrecerror=[`ForbiddenExceptionofForbiddenException.t|`InternalServerErrorExceptionofInternalServerErrorException.t|`NotFoundExceptionofNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`UnprocessableEntityExceptionofUnprocessableEntityException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`InternalServerErrorExceptione->`Assoc[("error",(`String"InternalServerErrorException"));("details",(InternalServerErrorException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`UnprocessableEntityExceptione->`Assoc[("error",(`String"UnprocessableEntityException"));("details",(UnprocessableEntityException.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 OriginEndpoint."]moduleDeleteOriginEndpointRequest=structtypenonrect={id:Zz__string.t[@ocaml.doc"The ID of the OriginEndpoint to delete."]}letcontext_="DeleteOriginEndpointRequest"letmake~id=fun()->{id}letto_valuex=structure_to_value[("id",(Some(Zz__string.to_valuex.id)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"id")inmake~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_map_exnjson__"Id"Zz__string.of_jsoninmake~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes an existing OriginEndpoint."]moduleDeleteChannelResponse=structtypenonrect=unittypenonrecerror=[`ForbiddenExceptionofForbiddenException.t|`InternalServerErrorExceptionofInternalServerErrorException.t|`NotFoundExceptionofNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`UnprocessableEntityExceptionofUnprocessableEntityException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`InternalServerErrorExceptione->`Assoc[("error",(`String"InternalServerErrorException"));("details",(InternalServerErrorException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`UnprocessableEntityExceptione->`Assoc[("error",(`String"UnprocessableEntityException"));("details",(UnprocessableEntityException.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 Channel."]moduleDeleteChannelRequest=structtypenonrect={id:Zz__string.t[@ocaml.doc"The ID of the Channel to delete."]}letcontext_="DeleteChannelRequest"letmake~id=fun()->{id}letto_valuex=structure_to_value[("id",(Some(Zz__string.to_valuex.id)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"id")inmake~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_map_exnjson__"Id"Zz__string.of_jsoninmake~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes an existing Channel."]moduleCreateOriginEndpointResponse=structtypenonrect={arn:Zz__string.toption[@ocaml.doc"The Amazon Resource Name (ARN) assigned to the OriginEndpoint."];authorization:Authorization.toption;channelId:Zz__string.toption[@ocaml.doc"The ID of the Channel the OriginEndpoint is associated with."];cmafPackage:CmafPackage.toption;createdAt:Zz__string.toption[@ocaml.doc"The date and time the OriginEndpoint was created."];dashPackage:DashPackage.toption;description:Zz__string.toption[@ocaml.doc"A short text description of the OriginEndpoint."];hlsPackage:HlsPackage.toption;id:Zz__string.toption[@ocaml.doc"The ID of the OriginEndpoint."];manifestName:Zz__string.toption[@ocaml.doc"A short string appended to the end of the OriginEndpoint URL."];mssPackage:MssPackage.toption;origination:Origination.toption[@ocaml.doc"Control whether origination of video is allowed for this OriginEndpoint. If set to ALLOW, the OriginEndpoint may by requested, pursuant to any other form of access control. If set to DENY, the OriginEndpoint may not be requested. This can be helpful for Live to VOD harvesting, or for temporarily disabling origination"];startoverWindowSeconds:Zz__integer.toption[@ocaml.doc"Maximum duration (seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint."];tags:Tags.toption;timeDelaySeconds:Zz__integer.toption[@ocaml.doc"Amount of delay (seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint."];url:Zz__string.toption[@ocaml.doc"The URL of the packaged OriginEndpoint for consumption."];whitelist:Zz__listOf__string.toption[@ocaml.doc"A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint."]}typenonrecerror=[`ForbiddenExceptionofForbiddenException.t|`InternalServerErrorExceptionofInternalServerErrorException.t|`NotFoundExceptionofNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`UnprocessableEntityExceptionofUnprocessableEntityException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun?authorization->fun?channelId->fun?cmafPackage->fun?createdAt->fun?dashPackage->fun?description->fun?hlsPackage->fun?id->fun?manifestName->fun?mssPackage->fun?origination->fun?startoverWindowSeconds->fun?tags->fun?timeDelaySeconds->fun?url->fun?whitelist->fun()->{arn;authorization;channelId;cmafPackage;createdAt;dashPackage;description;hlsPackage;id;manifestName;mssPackage;origination;startoverWindowSeconds;tags;timeDelaySeconds;url;whitelist}leterror_of_jsonnamejson=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`InternalServerErrorExceptione->`Assoc[("error",(`String"InternalServerErrorException"));("details",(InternalServerErrorException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`UnprocessableEntityExceptione->`Assoc[("error",(`String"UnprocessableEntityException"));("details",(UnprocessableEntityException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:Zz__string.to_value));("authorization",(Option.mapx.authorization~f:Authorization.to_value));("channelId",(Option.mapx.channelId~f:Zz__string.to_value));("cmafPackage",(Option.mapx.cmafPackage~f:CmafPackage.to_value));("createdAt",(Option.mapx.createdAt~f:Zz__string.to_value));("dashPackage",(Option.mapx.dashPackage~f:DashPackage.to_value));("description",(Option.mapx.description~f:Zz__string.to_value));("hlsPackage",(Option.mapx.hlsPackage~f:HlsPackage.to_value));("id",(Option.mapx.id~f:Zz__string.to_value));("manifestName",(Option.mapx.manifestName~f:Zz__string.to_value));("mssPackage",(Option.mapx.mssPackage~f:MssPackage.to_value));("origination",(Option.mapx.origination~f:Origination.to_value));("startoverWindowSeconds",(Option.mapx.startoverWindowSeconds~f:Zz__integer.to_value));("tags",(Option.mapx.tags~f:Tags.to_value));("timeDelaySeconds",(Option.mapx.timeDelaySeconds~f:Zz__integer.to_value));("url",(Option.mapx.url~f:Zz__string.to_value));("whitelist",(Option.mapx.whitelist~f:Zz__listOf__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letwhitelist=(Option.map~f:Zz__listOf__string.of_xml)(Xml.childxml_arg0"whitelist")inleturl=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"url")inlettimeDelaySeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"timeDelaySeconds")inlettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletstartoverWindowSeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"startoverWindowSeconds")inletorigination=(Option.map~f:Origination.of_xml)(Xml.childxml_arg0"origination")inletmssPackage=(Option.map~f:MssPackage.of_xml)(Xml.childxml_arg0"mssPackage")inletmanifestName=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"manifestName")inletid=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"id")inlethlsPackage=(Option.map~f:HlsPackage.of_xml)(Xml.childxml_arg0"hlsPackage")inletdescription=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"description")inletdashPackage=(Option.map~f:DashPackage.of_xml)(Xml.childxml_arg0"dashPackage")inletcreatedAt=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"createdAt")inletcmafPackage=(Option.map~f:CmafPackage.of_xml)(Xml.childxml_arg0"cmafPackage")inletchannelId=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"channelId")inletauthorization=(Option.map~f:Authorization.of_xml)(Xml.childxml_arg0"authorization")inletarn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"arn")inmake?whitelist?url?timeDelaySeconds?tags?startoverWindowSeconds?origination?mssPackage?manifestName?id?hlsPackage?description?dashPackage?createdAt?cmafPackage?channelId?authorization?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letwhitelist=field_mapjson__"Whitelist"Zz__listOf__string.of_jsoninleturl=field_mapjson__"Url"Zz__string.of_jsoninlettimeDelaySeconds=field_mapjson__"TimeDelaySeconds"Zz__integer.of_jsoninlettags=field_mapjson__"Tags"Tags.of_jsoninletstartoverWindowSeconds=field_mapjson__"StartoverWindowSeconds"Zz__integer.of_jsoninletorigination=field_mapjson__"Origination"Origination.of_jsoninletmssPackage=field_mapjson__"MssPackage"MssPackage.of_jsoninletmanifestName=field_mapjson__"ManifestName"Zz__string.of_jsoninletid=field_mapjson__"Id"Zz__string.of_jsoninlethlsPackage=field_mapjson__"HlsPackage"HlsPackage.of_jsoninletdescription=field_mapjson__"Description"Zz__string.of_jsoninletdashPackage=field_mapjson__"DashPackage"DashPackage.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"Zz__string.of_jsoninletcmafPackage=field_mapjson__"CmafPackage"CmafPackage.of_jsoninletchannelId=field_mapjson__"ChannelId"Zz__string.of_jsoninletauthorization=field_mapjson__"Authorization"Authorization.of_jsoninletarn=field_mapjson__"Arn"Zz__string.of_jsoninmake?whitelist?url?timeDelaySeconds?tags?startoverWindowSeconds?origination?mssPackage?manifestName?id?hlsPackage?description?dashPackage?createdAt?cmafPackage?channelId?authorization?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a new OriginEndpoint record."]moduleCreateOriginEndpointRequest=structtypenonrect={authorization:Authorization.toption;channelId:Zz__string.t[@ocaml.doc"The ID of the Channel that the OriginEndpoint will be associated with. This cannot be changed after the OriginEndpoint is created."];cmafPackage:CmafPackageCreateOrUpdateParameters.toption;dashPackage:DashPackage.toption;description:Zz__string.toption[@ocaml.doc"A short text description of the OriginEndpoint."];hlsPackage:HlsPackage.toption;id:Zz__string.t[@ocaml.doc"The ID of the OriginEndpoint. The ID must be unique within the region and it cannot be changed after the OriginEndpoint is created."];manifestName:Zz__string.toption[@ocaml.doc"A short string that will be used as the filename of the OriginEndpoint URL (defaults to \"index\")."];mssPackage:MssPackage.toption;origination:Origination.toption[@ocaml.doc"Control whether origination of video is allowed for this OriginEndpoint. If set to ALLOW, the OriginEndpoint may by requested, pursuant to any other form of access control. If set to DENY, the OriginEndpoint may not be requested. This can be helpful for Live to VOD harvesting, or for temporarily disabling origination"];startoverWindowSeconds:Zz__integer.toption[@ocaml.doc"Maximum duration (seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint."];tags:Tags.toption;timeDelaySeconds:Zz__integer.toption[@ocaml.doc"Amount of delay (seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint."];whitelist:Zz__listOf__string.toption[@ocaml.doc"A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint."]}letcontext_="CreateOriginEndpointRequest"letmake?authorization=fun?cmafPackage->fun?dashPackage->fun?description->fun?hlsPackage->fun?manifestName->fun?mssPackage->fun?origination->fun?startoverWindowSeconds->fun?tags->fun?timeDelaySeconds->fun?whitelist->fun~channelId->fun~id->fun()->{authorization;cmafPackage;dashPackage;description;hlsPackage;manifestName;mssPackage;origination;startoverWindowSeconds;tags;timeDelaySeconds;whitelist;channelId;id}letto_valuex=structure_to_value[("authorization",(Option.mapx.authorization~f:Authorization.to_value));("channelId",(Some(Zz__string.to_valuex.channelId)));("cmafPackage",(Option.mapx.cmafPackage~f:CmafPackageCreateOrUpdateParameters.to_value));("dashPackage",(Option.mapx.dashPackage~f:DashPackage.to_value));("description",(Option.mapx.description~f:Zz__string.to_value));("hlsPackage",(Option.mapx.hlsPackage~f:HlsPackage.to_value));("id",(Some(Zz__string.to_valuex.id)));("manifestName",(Option.mapx.manifestName~f:Zz__string.to_value));("mssPackage",(Option.mapx.mssPackage~f:MssPackage.to_value));("origination",(Option.mapx.origination~f:Origination.to_value));("startoverWindowSeconds",(Option.mapx.startoverWindowSeconds~f:Zz__integer.to_value));("tags",(Option.mapx.tags~f:Tags.to_value));("timeDelaySeconds",(Option.mapx.timeDelaySeconds~f:Zz__integer.to_value));("whitelist",(Option.mapx.whitelist~f:Zz__listOf__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letwhitelist=(Option.map~f:Zz__listOf__string.of_xml)(Xml.childxml_arg0"whitelist")inlettimeDelaySeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"timeDelaySeconds")inlettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletstartoverWindowSeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"startoverWindowSeconds")inletorigination=(Option.map~f:Origination.of_xml)(Xml.childxml_arg0"origination")inletmssPackage=(Option.map~f:MssPackage.of_xml)(Xml.childxml_arg0"mssPackage")inletmanifestName=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"manifestName")inletid=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"id")inlethlsPackage=(Option.map~f:HlsPackage.of_xml)(Xml.childxml_arg0"hlsPackage")inletdescription=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"description")inletdashPackage=(Option.map~f:DashPackage.of_xml)(Xml.childxml_arg0"dashPackage")inletcmafPackage=(Option.map~f:CmafPackageCreateOrUpdateParameters.of_xml)(Xml.childxml_arg0"cmafPackage")inletchannelId=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"channelId")inletauthorization=(Option.map~f:Authorization.of_xml)(Xml.childxml_arg0"authorization")inmake?whitelist?timeDelaySeconds?tags?startoverWindowSeconds?origination?mssPackage?manifestName~id?hlsPackage?description?dashPackage?cmafPackage~channelId?authorization()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letwhitelist=field_mapjson__"Whitelist"Zz__listOf__string.of_jsoninlettimeDelaySeconds=field_mapjson__"TimeDelaySeconds"Zz__integer.of_jsoninlettags=field_mapjson__"Tags"Tags.of_jsoninletstartoverWindowSeconds=field_mapjson__"StartoverWindowSeconds"Zz__integer.of_jsoninletorigination=field_mapjson__"Origination"Origination.of_jsoninletmssPackage=field_mapjson__"MssPackage"MssPackage.of_jsoninletmanifestName=field_mapjson__"ManifestName"Zz__string.of_jsoninletid=field_map_exnjson__"Id"Zz__string.of_jsoninlethlsPackage=field_mapjson__"HlsPackage"HlsPackage.of_jsoninletdescription=field_mapjson__"Description"Zz__string.of_jsoninletdashPackage=field_mapjson__"DashPackage"DashPackage.of_jsoninletcmafPackage=field_mapjson__"CmafPackage"CmafPackageCreateOrUpdateParameters.of_jsoninletchannelId=field_map_exnjson__"ChannelId"Zz__string.of_jsoninletauthorization=field_mapjson__"Authorization"Authorization.of_jsoninmake?whitelist?timeDelaySeconds?tags?startoverWindowSeconds?origination?mssPackage?manifestName~id?hlsPackage?description?dashPackage?cmafPackage~channelId?authorization()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration parameters used to create a new OriginEndpoint."]moduleCreateHarvestJobResponse=structtypenonrect={arn:Zz__string.toption[@ocaml.doc"The Amazon Resource Name (ARN) assigned to the HarvestJob."];channelId:Zz__string.toption[@ocaml.doc"The ID of the Channel that the HarvestJob will harvest from."];createdAt:Zz__string.toption[@ocaml.doc"The date and time the HarvestJob was submitted."];endTime:Zz__string.toption[@ocaml.doc"The end of the time-window which will be harvested."];id:Zz__string.toption[@ocaml.doc"The ID of the HarvestJob. The ID must be unique within the region and it cannot be changed after the HarvestJob is submitted."];originEndpointId:Zz__string.toption[@ocaml.doc"The ID of the OriginEndpoint that the HarvestJob will harvest from. This cannot be changed after the HarvestJob is submitted."];s3Destination:S3Destination.toption;startTime:Zz__string.toption[@ocaml.doc"The start of the time-window which will be harvested."];status:Status.toption[@ocaml.doc"The current status of the HarvestJob. Consider setting up a CloudWatch Event to listen for HarvestJobs as they succeed or fail. In the event of failure, the CloudWatch Event will include an explanation of why the HarvestJob failed."]}typenonrecerror=[`ForbiddenExceptionofForbiddenException.t|`InternalServerErrorExceptionofInternalServerErrorException.t|`NotFoundExceptionofNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`UnprocessableEntityExceptionofUnprocessableEntityException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun?channelId->fun?createdAt->fun?endTime->fun?id->fun?originEndpointId->fun?s3Destination->fun?startTime->fun?status->fun()->{arn;channelId;createdAt;endTime;id;originEndpointId;s3Destination;startTime;status}leterror_of_jsonnamejson=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`InternalServerErrorExceptione->`Assoc[("error",(`String"InternalServerErrorException"));("details",(InternalServerErrorException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`UnprocessableEntityExceptione->`Assoc[("error",(`String"UnprocessableEntityException"));("details",(UnprocessableEntityException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:Zz__string.to_value));("channelId",(Option.mapx.channelId~f:Zz__string.to_value));("createdAt",(Option.mapx.createdAt~f:Zz__string.to_value));("endTime",(Option.mapx.endTime~f:Zz__string.to_value));("id",(Option.mapx.id~f:Zz__string.to_value));("originEndpointId",(Option.mapx.originEndpointId~f:Zz__string.to_value));("s3Destination",(Option.mapx.s3Destination~f:S3Destination.to_value));("startTime",(Option.mapx.startTime~f:Zz__string.to_value));("status",(Option.mapx.status~f:Status.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=(Option.map~f:Status.of_xml)(Xml.childxml_arg0"status")inletstartTime=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"startTime")inlets3Destination=(Option.map~f:S3Destination.of_xml)(Xml.childxml_arg0"s3Destination")inletoriginEndpointId=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"originEndpointId")inletid=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"id")inletendTime=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"endTime")inletcreatedAt=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"createdAt")inletchannelId=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"channelId")inletarn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"arn")inmake?status?startTime?s3Destination?originEndpointId?id?endTime?createdAt?channelId?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_mapjson__"Status"Status.of_jsoninletstartTime=field_mapjson__"StartTime"Zz__string.of_jsoninlets3Destination=field_mapjson__"S3Destination"S3Destination.of_jsoninletoriginEndpointId=field_mapjson__"OriginEndpointId"Zz__string.of_jsoninletid=field_mapjson__"Id"Zz__string.of_jsoninletendTime=field_mapjson__"EndTime"Zz__string.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"Zz__string.of_jsoninletchannelId=field_mapjson__"ChannelId"Zz__string.of_jsoninletarn=field_mapjson__"Arn"Zz__string.of_jsoninmake?status?startTime?s3Destination?originEndpointId?id?endTime?createdAt?channelId?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a new HarvestJob record."]moduleCreateHarvestJobRequest=structtypenonrect={endTime:Zz__string.t[@ocaml.doc"The end of the time-window which will be harvested"];id:Zz__string.t[@ocaml.doc"The ID of the HarvestJob. The ID must be unique within the region and it cannot be changed after the HarvestJob is submitted"];originEndpointId:Zz__string.t[@ocaml.doc"The ID of the OriginEndpoint that the HarvestJob will harvest from. This cannot be changed after the HarvestJob is submitted."];s3Destination:S3Destination.t;startTime:Zz__string.t[@ocaml.doc"The start of the time-window which will be harvested"]}letcontext_="CreateHarvestJobRequest"letmake~endTime=fun~id->fun~originEndpointId->fun~s3Destination->fun~startTime->fun()->{endTime;id;originEndpointId;s3Destination;startTime}letto_valuex=structure_to_value[("endTime",(Some(Zz__string.to_valuex.endTime)));("id",(Some(Zz__string.to_valuex.id)));("originEndpointId",(Some(Zz__string.to_valuex.originEndpointId)));("s3Destination",(Some(S3Destination.to_valuex.s3Destination)));("startTime",(Some(Zz__string.to_valuex.startTime)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstartTime=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"startTime")inlets3Destination=S3Destination.of_xml(Xml.child_exn~context:context_xml_arg0"s3Destination")inletoriginEndpointId=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"originEndpointId")inletid=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"id")inletendTime=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"endTime")inmake~startTime~s3Destination~originEndpointId~id~endTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstartTime=field_map_exnjson__"StartTime"Zz__string.of_jsoninlets3Destination=field_map_exnjson__"S3Destination"S3Destination.of_jsoninletoriginEndpointId=field_map_exnjson__"OriginEndpointId"Zz__string.of_jsoninletid=field_map_exnjson__"Id"Zz__string.of_jsoninletendTime=field_map_exnjson__"EndTime"Zz__string.of_jsoninmake~startTime~s3Destination~originEndpointId~id~endTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration parameters used to create a new HarvestJob."]moduleCreateChannelResponse=structtypenonrect={arn:Zz__string.toption[@ocaml.doc"The Amazon Resource Name (ARN) assigned to the Channel."];createdAt:Zz__string.toption[@ocaml.doc"The date and time the Channel was created."];description:Zz__string.toption[@ocaml.doc"A short text description of the Channel."];egressAccessLogs:EgressAccessLogs.toption;hlsIngest:HlsIngest.toption;id:Zz__string.toption[@ocaml.doc"The ID of the Channel."];ingressAccessLogs:IngressAccessLogs.toption;tags:Tags.toption}typenonrecerror=[`ForbiddenExceptionofForbiddenException.t|`InternalServerErrorExceptionofInternalServerErrorException.t|`NotFoundExceptionofNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`UnprocessableEntityExceptionofUnprocessableEntityException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun?createdAt->fun?description->fun?egressAccessLogs->fun?hlsIngest->fun?id->fun?ingressAccessLogs->fun?tags->fun()->{arn;createdAt;description;egressAccessLogs;hlsIngest;id;ingressAccessLogs;tags}leterror_of_jsonnamejson=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`InternalServerErrorExceptione->`Assoc[("error",(`String"InternalServerErrorException"));("details",(InternalServerErrorException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`UnprocessableEntityExceptione->`Assoc[("error",(`String"UnprocessableEntityException"));("details",(UnprocessableEntityException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:Zz__string.to_value));("createdAt",(Option.mapx.createdAt~f:Zz__string.to_value));("description",(Option.mapx.description~f:Zz__string.to_value));("egressAccessLogs",(Option.mapx.egressAccessLogs~f:EgressAccessLogs.to_value));("hlsIngest",(Option.mapx.hlsIngest~f:HlsIngest.to_value));("id",(Option.mapx.id~f:Zz__string.to_value));("ingressAccessLogs",(Option.mapx.ingressAccessLogs~f:IngressAccessLogs.to_value));("tags",(Option.mapx.tags~f:Tags.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletingressAccessLogs=(Option.map~f:IngressAccessLogs.of_xml)(Xml.childxml_arg0"ingressAccessLogs")inletid=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"id")inlethlsIngest=(Option.map~f:HlsIngest.of_xml)(Xml.childxml_arg0"hlsIngest")inletegressAccessLogs=(Option.map~f:EgressAccessLogs.of_xml)(Xml.childxml_arg0"egressAccessLogs")inletdescription=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"description")inletcreatedAt=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"createdAt")inletarn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"arn")inmake?tags?ingressAccessLogs?id?hlsIngest?egressAccessLogs?description?createdAt?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"Tags.of_jsoninletingressAccessLogs=field_mapjson__"IngressAccessLogs"IngressAccessLogs.of_jsoninletid=field_mapjson__"Id"Zz__string.of_jsoninlethlsIngest=field_mapjson__"HlsIngest"HlsIngest.of_jsoninletegressAccessLogs=field_mapjson__"EgressAccessLogs"EgressAccessLogs.of_jsoninletdescription=field_mapjson__"Description"Zz__string.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"Zz__string.of_jsoninletarn=field_mapjson__"Arn"Zz__string.of_jsoninmake?tags?ingressAccessLogs?id?hlsIngest?egressAccessLogs?description?createdAt?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a new Channel."]moduleCreateChannelRequest=structtypenonrect={description:Zz__string.toption[@ocaml.doc"A short text description of the Channel."];id:Zz__string.t[@ocaml.doc"The ID of the Channel. The ID must be unique within the region and it cannot be changed after a Channel is created."];tags:Tags.toption}letcontext_="CreateChannelRequest"letmake?description=fun?tags->fun~id->fun()->{description;tags;id}letto_valuex=structure_to_value[("description",(Option.mapx.description~f:Zz__string.to_value));("id",(Some(Zz__string.to_valuex.id)));("tags",(Option.mapx.tags~f:Tags.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletid=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"id")inletdescription=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"description")inmake?tags~id?description()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"Tags.of_jsoninletid=field_map_exnjson__"Id"Zz__string.of_jsoninletdescription=field_mapjson__"Description"Zz__string.of_jsoninmake?tags~id?description()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A new Channel configuration."]moduleConfigureLogsResponse=structtypenonrect={arn:Zz__string.toption[@ocaml.doc"The Amazon Resource Name (ARN) assigned to the Channel."];createdAt:Zz__string.toption[@ocaml.doc"The date and time the Channel was created."];description:Zz__string.toption[@ocaml.doc"A short text description of the Channel."];egressAccessLogs:EgressAccessLogs.toption;hlsIngest:HlsIngest.toption;id:Zz__string.toption[@ocaml.doc"The ID of the Channel."];ingressAccessLogs:IngressAccessLogs.toption;tags:Tags.toption}typenonrecerror=[`ForbiddenExceptionofForbiddenException.t|`InternalServerErrorExceptionofInternalServerErrorException.t|`NotFoundExceptionofNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`UnprocessableEntityExceptionofUnprocessableEntityException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun?createdAt->fun?description->fun?egressAccessLogs->fun?hlsIngest->fun?id->fun?ingressAccessLogs->fun?tags->fun()->{arn;createdAt;description;egressAccessLogs;hlsIngest;id;ingressAccessLogs;tags}leterror_of_jsonnamejson=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`InternalServerErrorExceptione->`Assoc[("error",(`String"InternalServerErrorException"));("details",(InternalServerErrorException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`UnprocessableEntityExceptione->`Assoc[("error",(`String"UnprocessableEntityException"));("details",(UnprocessableEntityException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:Zz__string.to_value));("createdAt",(Option.mapx.createdAt~f:Zz__string.to_value));("description",(Option.mapx.description~f:Zz__string.to_value));("egressAccessLogs",(Option.mapx.egressAccessLogs~f:EgressAccessLogs.to_value));("hlsIngest",(Option.mapx.hlsIngest~f:HlsIngest.to_value));("id",(Option.mapx.id~f:Zz__string.to_value));("ingressAccessLogs",(Option.mapx.ingressAccessLogs~f:IngressAccessLogs.to_value));("tags",(Option.mapx.tags~f:Tags.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletingressAccessLogs=(Option.map~f:IngressAccessLogs.of_xml)(Xml.childxml_arg0"ingressAccessLogs")inletid=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"id")inlethlsIngest=(Option.map~f:HlsIngest.of_xml)(Xml.childxml_arg0"hlsIngest")inletegressAccessLogs=(Option.map~f:EgressAccessLogs.of_xml)(Xml.childxml_arg0"egressAccessLogs")inletdescription=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"description")inletcreatedAt=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"createdAt")inletarn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"arn")inmake?tags?ingressAccessLogs?id?hlsIngest?egressAccessLogs?description?createdAt?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"Tags.of_jsoninletingressAccessLogs=field_mapjson__"IngressAccessLogs"IngressAccessLogs.of_jsoninletid=field_mapjson__"Id"Zz__string.of_jsoninlethlsIngest=field_mapjson__"HlsIngest"HlsIngest.of_jsoninletegressAccessLogs=field_mapjson__"EgressAccessLogs"EgressAccessLogs.of_jsoninletdescription=field_mapjson__"Description"Zz__string.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"Zz__string.of_jsoninletarn=field_mapjson__"Arn"Zz__string.of_jsoninmake?tags?ingressAccessLogs?id?hlsIngest?egressAccessLogs?description?createdAt?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Changes the Channel's properities to configure log subscription"]moduleConfigureLogsRequest=structtypenonrect={egressAccessLogs:EgressAccessLogs.toption;id:Zz__string.t[@ocaml.doc"The ID of the channel to log subscription."];ingressAccessLogs:IngressAccessLogs.toption}letcontext_="ConfigureLogsRequest"letmake?egressAccessLogs=fun?ingressAccessLogs->fun~id->fun()->{egressAccessLogs;ingressAccessLogs;id}letto_valuex=structure_to_value[("egressAccessLogs",(Option.mapx.egressAccessLogs~f:EgressAccessLogs.to_value));("id",(Some(Zz__string.to_valuex.id)));("ingressAccessLogs",(Option.mapx.ingressAccessLogs~f:IngressAccessLogs.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letingressAccessLogs=(Option.map~f:IngressAccessLogs.of_xml)(Xml.childxml_arg0"ingressAccessLogs")inletid=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"id")inletegressAccessLogs=(Option.map~f:EgressAccessLogs.of_xml)(Xml.childxml_arg0"egressAccessLogs")inmake?ingressAccessLogs~id?egressAccessLogs()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letingressAccessLogs=field_mapjson__"IngressAccessLogs"IngressAccessLogs.of_jsoninletid=field_map_exnjson__"Id"Zz__string.of_jsoninletegressAccessLogs=field_mapjson__"EgressAccessLogs"EgressAccessLogs.of_jsoninmake?ingressAccessLogs~id?egressAccessLogs()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"the option to configure log subscription."]moduleConfigureLogsParameters=structtypenonrect={egressAccessLogs:EgressAccessLogs.toption;ingressAccessLogs:IngressAccessLogs.toption}letmake?egressAccessLogs=fun?ingressAccessLogs->fun()->{egressAccessLogs;ingressAccessLogs}letto_valuex=structure_to_value[("egressAccessLogs",(Option.mapx.egressAccessLogs~f:EgressAccessLogs.to_value));("ingressAccessLogs",(Option.mapx.ingressAccessLogs~f:IngressAccessLogs.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letingressAccessLogs=(Option.map~f:IngressAccessLogs.of_xml)(Xml.childxml_arg0"ingressAccessLogs")inletegressAccessLogs=(Option.map~f:EgressAccessLogs.of_xml)(Xml.childxml_arg0"egressAccessLogs")inmake?ingressAccessLogs?egressAccessLogs()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letingressAccessLogs=field_mapjson__"IngressAccessLogs"IngressAccessLogs.of_jsoninletegressAccessLogs=field_mapjson__"EgressAccessLogs"EgressAccessLogs.of_jsoninmake?ingressAccessLogs?egressAccessLogs()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The configuration parameters for ingress and egress access logging."]moduleChannelUpdateParameters=structtypenonrect={description:Zz__string.toption[@ocaml.doc"A short text description of the Channel."]}letmake?description=fun()->{description}letto_valuex=structure_to_value[("description",(Option.mapx.description~f:Zz__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdescription=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"description")inmake?description()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdescription=field_mapjson__"Description"Zz__string.of_jsoninmake?description()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration parameters for updating an existing Channel."]moduleChannelList=structtypenonrect={channels:Zz__listOfChannel.toption[@ocaml.doc"A list of Channel records."];nextToken:Zz__string.toption[@ocaml.doc"A token that can be used to resume pagination from the end of the collection."]}letmake?channels=fun?nextToken->fun()->{channels;nextToken}letto_valuex=structure_to_value[("channels",(Option.mapx.channels~f:Zz__listOfChannel.to_value));("nextToken",(Option.mapx.nextToken~f:Zz__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"nextToken")inletchannels=(Option.map~f:Zz__listOfChannel.of_xml)(Xml.childxml_arg0"channels")inmake?nextToken?channels()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Zz__string.of_jsoninletchannels=field_mapjson__"Channels"Zz__listOfChannel.of_jsoninmake?nextToken?channels()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A collection of Channel records."]moduleChannelCreateParameters=structtypenonrect={description:Zz__string.toption[@ocaml.doc"A short text description of the Channel."];id:Zz__string.t[@ocaml.doc"The ID of the Channel. The ID must be unique within the region and it cannot be changed after a Channel is created."];tags:Tags.toption}letcontext_="ChannelCreateParameters"letmake?description=fun?tags->fun~id->fun()->{description;tags;id}letto_valuex=structure_to_value[("description",(Option.mapx.description~f:Zz__string.to_value));("id",(Some(Zz__string.to_valuex.id)));("tags",(Option.mapx.tags~f:Tags.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletid=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"id")inletdescription=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"description")inmake?tags~id?description()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"Tags.of_jsoninletid=field_map_exnjson__"Id"Zz__string.of_jsoninletdescription=field_mapjson__"Description"Zz__string.of_jsoninmake?tags~id?description()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration parameters for a new Channel."]