123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867(* 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.ivsletapiVersion="2020-07-14"letendpointPrefix="ivs"letserviceFullName="Amazon Interactive Video Service"letsignatureVersion="v4"letprotocol="rest_json"letglobalEndpoint=endpointPrefix^".amazonaws.com"letserviceAbbreviation="Amazon IVS"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[]))])moduleS3DestinationBucketName=structtypenonrect=stringletcontext_="S3DestinationBucketName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:3)>>=(fun()->(check_string_maxi~max:63)>>=(fun()->check_patterni~pattern:"[a-z0-9-.]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"S3DestinationBucketName"jletto_json=simple_to_jsonto_valueendmoduleMediaTailorPlaybackConfigurationArn=structtypenonrect=stringletcontext_="MediaTailorPlaybackConfigurationArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"arn:aws:mediatailor:[a-z0-9-]+:[0-9]+:playbackConfiguration/[a-zA-Z0-9-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"MediaTailorPlaybackConfigurationArn"jletto_json=simple_to_jsonto_valueendmoduleInteger=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_valueendmoduleString_=structtypenonrect=stringletcontext_="String"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"String"jletto_json=simple_to_jsonto_valueendmoduleRenditionConfigurationRendition=structtypenonrect=|SD|HD|FULL_HD|LOWEST_RESOLUTION|Non_static_idofstringletmakei=iletto_string=function|SD->"SD"|HD->"HD"|FULL_HD->"FULL_HD"|LOWEST_RESOLUTION->"LOWEST_RESOLUTION"|Non_static_ids->sletof_string=function|"SD"->SD|"HD"->HD|"FULL_HD"->FULL_HD|"LOWEST_RESOLUTION"->LOWEST_RESOLUTION|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 RenditionConfigurationRendition"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"RenditionConfigurationRendition"j)letto_json=simple_to_jsonto_valueendmoduleThumbnailConfigurationStorage=structtypenonrect=|SEQUENTIAL|LATEST|Non_static_idofstringletmakei=iletto_string=function|SEQUENTIAL->"SEQUENTIAL"|LATEST->"LATEST"|Non_static_ids->sletof_string=function|"SEQUENTIAL"->SEQUENTIAL|"LATEST"->LATEST|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 ThumbnailConfigurationStorage"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ThumbnailConfigurationStorage"j)letto_json=simple_to_jsonto_valueendmoduleTagKey=structtypenonrect=stringletcontext_="TagKey"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]+)")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagKey"jletto_json=simple_to_jsonto_valueendmoduleTagValue=structtypenonrect=stringletcontext_="TagValue"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:256)>>=(fun()->check_patterni~pattern:"([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagValue"jletto_json=simple_to_jsonto_valueendmoduleS3DestinationConfiguration=structtypenonrect={bucketName:S3DestinationBucketName.t[@ocaml.doc"Location (S3 bucket name) where recorded videos will be stored."]}letcontext_="S3DestinationConfiguration"letmake~bucketName=fun()->{bucketName}letto_valuex=structure_to_value[("bucketName",(Some(S3DestinationBucketName.to_valuex.bucketName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbucketName=S3DestinationBucketName.of_xml(Xml.child_exn~context:context_xml_arg0"bucketName")inmake~bucketName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbucketName=field_map_exnjson__"bucketName"S3DestinationBucketName.of_jsoninmake~bucketName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A complex type that describes an S3 location where recorded videos will be stored."]modulePlaybackRestrictionPolicyAllowedCountry=structtypenonrect=stringletcontext_="PlaybackRestrictionPolicyAllowedCountry"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2)>>=(fun()->check_string_mini~min:2));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PlaybackRestrictionPolicyAllowedCountry"jletto_json=simple_to_jsonto_valueendmodulePlaybackRestrictionPolicyAllowedOrigin=structtypenonrect=stringletcontext_="PlaybackRestrictionPolicyAllowedOrigin"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PlaybackRestrictionPolicyAllowedOrigin"jletto_json=simple_to_jsonto_valueendmoduleMediaTailorPlaybackConfiguration=structtypenonrect={playbackConfigurationArn:MediaTailorPlaybackConfigurationArn.toption[@ocaml.doc"ARN of the customer-created EMT PlaybackConfiguration resource in the same region and account."]}letmake?playbackConfigurationArn=fun()->{playbackConfigurationArn}letto_valuex=structure_to_value[("playbackConfigurationArn",(Option.mapx.playbackConfigurationArn~f:MediaTailorPlaybackConfigurationArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letplaybackConfigurationArn=(Option.map~f:MediaTailorPlaybackConfigurationArn.of_xml)(Xml.childxml_arg0"playbackConfigurationArn")inmake?playbackConfigurationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letplaybackConfigurationArn=field_mapjson__"playbackConfigurationArn"MediaTailorPlaybackConfigurationArn.of_jsoninmake?playbackConfigurationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Object specifying a configuration for integration with an AWS Elemental MediaTailor (EMT)."]moduleIsMultitrackInputEnabled=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_valueendmoduleMultitrackMaximumResolution=structtypenonrect=|SD|HD|FULL_HD|Non_static_idofstringletmakei=iletto_string=function|SD->"SD"|HD->"HD"|FULL_HD->"FULL_HD"|Non_static_ids->sletof_string=function|"SD"->SD|"HD"->HD|"FULL_HD"->FULL_HD|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 MultitrackMaximumResolution"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"MultitrackMaximumResolution"j)letto_json=simple_to_jsonto_valueendmoduleMultitrackPolicy=structtypenonrect=|ALLOW|REQUIRE|Non_static_idofstringletmakei=iletto_string=function|ALLOW->"ALLOW"|REQUIRE->"REQUIRE"|Non_static_ids->sletof_string=function|"ALLOW"->ALLOW|"REQUIRE"->REQUIRE|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 MultitrackPolicy"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"MultitrackPolicy"j)letto_json=simple_to_jsonto_valueendmoduleSrtEndpoint=structtypenonrect=stringletcontext_="SrtEndpoint"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:"SrtEndpoint"jletto_json=simple_to_jsonto_valueendmoduleSrtPassphrase=structtypenonrect=stringletcontext_="SrtPassphrase"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:"SrtPassphrase"jletto_json=simple_to_jsonto_valueendmoduleAudioConfiguration=structtypenonrect={codec:String_.toption[@ocaml.doc"Codec used for the audio encoding."];targetBitrate:Integer.toption[@ocaml.doc"The expected ingest bitrate (bits per second). This is configured in the encoder."];sampleRate:Integer.toption[@ocaml.doc"Number of audio samples recorded per second."];channels:Integer.toption[@ocaml.doc"Number of audio channels."];track:String_.toption[@ocaml.doc"Name of the audio track (if the stream has an audio track). If multitrack is not enabled, this is Track0 (the sole track)."]}letmake?codec=fun?targetBitrate->fun?sampleRate->fun?channels->fun?track->fun()->{codec;targetBitrate;sampleRate;channels;track}letto_valuex=structure_to_value[("codec",(Option.mapx.codec~f:String_.to_value));("targetBitrate",(Option.mapx.targetBitrate~f:Integer.to_value));("sampleRate",(Option.mapx.sampleRate~f:Integer.to_value));("channels",(Option.mapx.channels~f:Integer.to_value));("track",(Option.mapx.track~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettrack=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"track")inletchannels=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"channels")inletsampleRate=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"sampleRate")inlettargetBitrate=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"targetBitrate")inletcodec=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"codec")inmake?track?channels?sampleRate?targetBitrate?codec()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettrack=field_mapjson__"track"String_.of_jsoninletchannels=field_mapjson__"channels"Integer.of_jsoninletsampleRate=field_mapjson__"sampleRate"Integer.of_jsoninlettargetBitrate=field_mapjson__"targetBitrate"Integer.of_jsoninletcodec=field_mapjson__"codec"String_.of_jsoninmake?track?channels?sampleRate?targetBitrate?codec()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Object specifying a stream\226\128\153s audio configuration, as set up by the broadcaster (usually in an encoder). This is part of the IngestConfigurations object and the deprecated IngestConfiguration object. It is used for monitoring stream health."]moduleVideoConfiguration=structtypenonrect={avcProfile:String_.toption[@ocaml.doc"(Deprecated) Indicates to the decoder the requirements for decoding the stream. For definitions of the valid values, see the H.264 specification. This is populated only when VideoConfiguration is part of the deprecated IngestConfiguration; otherwise, this is an empty string."];avcLevel:String_.toption[@ocaml.doc"(Deprecated) Indicates the degree of required decoder performance for a profile. Normally this is set automatically by the encoder. For details, see the H.264 specification. This is populated only when VideoConfiguration is part of the deprecated IngestConfiguration; otherwise, this is an empty string."];codec:String_.toption[@ocaml.doc"Codec used for the video encoding."];encoder:String_.toption[@ocaml.doc"Software or hardware used to encode the video."];targetBitrate:Integer.toption[@ocaml.doc"The expected ingest bitrate (bits per second). This is configured in the encoder."];targetFramerate:Integer.toption[@ocaml.doc"The expected ingest framerate. This is configured in the encoder."];videoHeight:Integer.toption[@ocaml.doc"Video-resolution height in pixels."];videoWidth:Integer.toption[@ocaml.doc"Video-resolution width in pixels."];level:String_.toption[@ocaml.doc"Indicates the degree of required decoder performance for a profile. Normally this is set automatically by the encoder. When an AVC codec is used, this field has the same value as avcLevel."];track:String_.toption[@ocaml.doc"Name of the video track. If multitrack is not enabled, this is Track0 (the sole track)."];profile:String_.toption[@ocaml.doc"Indicates to the decoder the requirements for decoding the stream. When an AVC codec is used, this field has the same value as avcProfile."]}letmake?avcProfile=fun?avcLevel->fun?codec->fun?encoder->fun?targetBitrate->fun?targetFramerate->fun?videoHeight->fun?videoWidth->fun?level->fun?track->fun?profile->fun()->{avcProfile;avcLevel;codec;encoder;targetBitrate;targetFramerate;videoHeight;videoWidth;level;track;profile}letto_valuex=structure_to_value[("avcProfile",(Option.mapx.avcProfile~f:String_.to_value));("avcLevel",(Option.mapx.avcLevel~f:String_.to_value));("codec",(Option.mapx.codec~f:String_.to_value));("encoder",(Option.mapx.encoder~f:String_.to_value));("targetBitrate",(Option.mapx.targetBitrate~f:Integer.to_value));("targetFramerate",(Option.mapx.targetFramerate~f:Integer.to_value));("videoHeight",(Option.mapx.videoHeight~f:Integer.to_value));("videoWidth",(Option.mapx.videoWidth~f:Integer.to_value));("level",(Option.mapx.level~f:String_.to_value));("track",(Option.mapx.track~f:String_.to_value));("profile",(Option.mapx.profile~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprofile=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"profile")inlettrack=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"track")inletlevel=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"level")inletvideoWidth=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"videoWidth")inletvideoHeight=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"videoHeight")inlettargetFramerate=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"targetFramerate")inlettargetBitrate=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"targetBitrate")inletencoder=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"encoder")inletcodec=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"codec")inletavcLevel=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"avcLevel")inletavcProfile=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"avcProfile")inmake?profile?track?level?videoWidth?videoHeight?targetFramerate?targetBitrate?encoder?codec?avcLevel?avcProfile()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprofile=field_mapjson__"profile"String_.of_jsoninlettrack=field_mapjson__"track"String_.of_jsoninletlevel=field_mapjson__"level"String_.of_jsoninletvideoWidth=field_mapjson__"videoWidth"Integer.of_jsoninletvideoHeight=field_mapjson__"videoHeight"Integer.of_jsoninlettargetFramerate=field_mapjson__"targetFramerate"Integer.of_jsoninlettargetBitrate=field_mapjson__"targetBitrate"Integer.of_jsoninletencoder=field_mapjson__"encoder"String_.of_jsoninletcodec=field_mapjson__"codec"String_.of_jsoninletavcLevel=field_mapjson__"avcLevel"String_.of_jsoninletavcProfile=field_mapjson__"avcProfile"String_.of_jsoninmake?profile?track?level?videoWidth?videoHeight?targetFramerate?targetBitrate?encoder?codec?avcLevel?avcProfile()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Object specifying a stream\226\128\153s video configuration, as set up by the broadcaster (usually in an encoder). This is part of the IngestConfigurations object and the deprecated IngestConfiguration object. It is used for monitoring stream health."]moduleRenditionConfigurationRenditionList=structtypenonrect=RenditionConfigurationRendition.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:RenditionConfigurationRendition.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:RenditionConfigurationRendition.of_xml)letof_jsonj=list_of_json~kind:"RenditionConfigurationRenditionList"~of_json:RenditionConfigurationRendition.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRenditionConfigurationRenditionSelection=structtypenonrect=|ALL|NONE|CUSTOM|Non_static_idofstringletmakei=iletto_string=function|ALL->"ALL"|NONE->"NONE"|CUSTOM->"CUSTOM"|Non_static_ids->sletof_string=function|"ALL"->ALL|"NONE"->NONE|"CUSTOM"->CUSTOM|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 RenditionConfigurationRenditionSelection"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"RenditionConfigurationRenditionSelection"j)letto_json=simple_to_jsonto_valueendmoduleRecordingMode=structtypenonrect=|DISABLED|INTERVAL|Non_static_idofstringletmakei=iletto_string=function|DISABLED->"DISABLED"|INTERVAL->"INTERVAL"|Non_static_ids->sletof_string=function|"DISABLED"->DISABLED|"INTERVAL"->INTERVAL|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 RecordingMode"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"RecordingMode"j)letto_json=simple_to_jsonto_valueendmoduleTargetIntervalSeconds=structtypenonrect=Int64.tletmakei=letopenResultinok_or_failwith((check_int64_maxi~max:60L)>>=(fun()->check_int64_mini~min:1L));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_valueendmoduleThumbnailConfigurationResolution=structtypenonrect=|SD|HD|FULL_HD|LOWEST_RESOLUTION|Non_static_idofstringletmakei=iletto_string=function|SD->"SD"|HD->"HD"|FULL_HD->"FULL_HD"|LOWEST_RESOLUTION->"LOWEST_RESOLUTION"|Non_static_ids->sletof_string=function|"SD"->SD|"HD"->HD|"FULL_HD"->FULL_HD|"LOWEST_RESOLUTION"->LOWEST_RESOLUTION|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 ThumbnailConfigurationResolution"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ThumbnailConfigurationResolution"j)letto_json=simple_to_jsonto_valueendmoduleThumbnailConfigurationStorageList=structtypenonrect=ThumbnailConfigurationStorage.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ThumbnailConfigurationStorage.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:ThumbnailConfigurationStorage.of_xml)letof_jsonj=list_of_json~kind:"ThumbnailConfigurationStorageList"~of_json:ThumbnailConfigurationStorage.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTime=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Timestampxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=string_of_xml~kind:"a timestamp"letof_json=timestamp_of_jsonletto_json=simple_to_jsonto_valueendmoduleChannelArn=structtypenonrect=stringletcontext_="ChannelArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"arn:aws:ivs:[a-z0-9-]+:[0-9]+:channel/[a-zA-Z0-9-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ChannelArn"jletto_json=simple_to_jsonto_valueendmoduleStreamHealth=structtypenonrect=|HEALTHY|STARVING|UNKNOWN|Non_static_idofstringletmakei=iletto_string=function|HEALTHY->"HEALTHY"|STARVING->"STARVING"|UNKNOWN->"UNKNOWN"|Non_static_ids->sletof_string=function|"HEALTHY"->HEALTHY|"STARVING"->STARVING|"UNKNOWN"->UNKNOWN|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 StreamHealth"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"StreamHealth"j)letto_json=simple_to_jsonto_valueendmoduleStreamId=structtypenonrect=stringletcontext_="StreamId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:26)>>=(fun()->(check_string_maxi~max:26)>>=(fun()->check_patterni~pattern:"st-[a-zA-Z0-9]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"StreamId"jletto_json=simple_to_jsonto_valueendmoduleStreamStartTime=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Timestampxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=string_of_xml~kind:"a timestamp"letof_json=timestamp_of_jsonletto_json=simple_to_jsonto_valueendmoduleStreamState=structtypenonrect=|LIVE|OFFLINE|Non_static_idofstringletmakei=iletto_string=function|LIVE->"LIVE"|OFFLINE->"OFFLINE"|Non_static_ids->sletof_string=function|"LIVE"->LIVE|"OFFLINE"->OFFLINE|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 StreamState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"StreamState"j)letto_json=simple_to_jsonto_valueendmoduleStreamViewerCount=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_valueendmoduleBoolean=structtypenonrect=boolletmakei=iletof_string=Bool.of_stringletto_valuex=`Booleanxletto_queryv=to_queryto_valuevletto_headerx=Bool.to_stringxletof_xmlxml_arg0=Bool.of_string(string_of_xml~kind:"a boolean"xml_arg0)letof_json=bool_of_jsonletto_json=simple_to_jsonto_valueendmoduleStreamKeyArn=structtypenonrect=stringletcontext_="StreamKeyArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"arn:aws:ivs:[a-z0-9-]+:[0-9]+:stream-key/[a-zA-Z0-9-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"StreamKeyArn"jletto_json=simple_to_jsonto_valueendmoduleTags=structtypenonrect=(TagKey.t*TagValue.t)listletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:0));iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((TagKey.of_stringchopped),(TagValue.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(TagKey.to_valuex)|>(funx->(TagValue.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:TagKey.of_string~of_json:TagValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDestinationConfiguration=structtypenonrect={s3:S3DestinationConfiguration.toption[@ocaml.doc"An S3 destination configuration where recorded videos will be stored."]}letmake?s3=fun()->{s3}letto_valuex=structure_to_value[("s3",(Option.mapx.s3~f:S3DestinationConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lets3=(Option.map~f:S3DestinationConfiguration.of_xml)(Xml.childxml_arg0"s3")inmake?s3()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lets3=field_mapjson__"s3"S3DestinationConfiguration.of_jsoninmake?s3()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A complex type that describes a location where recorded videos will be stored. Each member represents a type of destination configuration. For recording, you define one and only one type of destination configuration."]moduleRecordingConfigurationArn=structtypenonrect=stringletcontext_="RecordingConfigurationArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"arn:aws:ivs:[a-z0-9-]+:[0-9]+:recording-configuration/[a-zA-Z0-9-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"RecordingConfigurationArn"jletto_json=simple_to_jsonto_valueendmoduleRecordingConfigurationName=structtypenonrect=stringletcontext_="RecordingConfigurationName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9-_]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"RecordingConfigurationName"jletto_json=simple_to_jsonto_valueendmoduleRecordingConfigurationState=structtypenonrect=|CREATING|CREATE_FAILED|ACTIVE|Non_static_idofstringletmakei=iletto_string=function|CREATING->"CREATING"|CREATE_FAILED->"CREATE_FAILED"|ACTIVE->"ACTIVE"|Non_static_ids->sletof_string=function|"CREATING"->CREATING|"CREATE_FAILED"->CREATE_FAILED|"ACTIVE"->ACTIVE|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration RecordingConfigurationState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"RecordingConfigurationState"j)letto_json=simple_to_jsonto_valueendmodulePlaybackRestrictionPolicyAllowedCountryList=structtypenonrect=PlaybackRestrictionPolicyAllowedCountry.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PlaybackRestrictionPolicyAllowedCountry.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:PlaybackRestrictionPolicyAllowedCountry.of_xml)letof_jsonj=list_of_json~kind:"PlaybackRestrictionPolicyAllowedCountryList"~of_json:PlaybackRestrictionPolicyAllowedCountry.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePlaybackRestrictionPolicyAllowedOriginList=structtypenonrect=PlaybackRestrictionPolicyAllowedOrigin.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PlaybackRestrictionPolicyAllowedOrigin.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:PlaybackRestrictionPolicyAllowedOrigin.of_xml)letof_jsonj=list_of_json~kind:"PlaybackRestrictionPolicyAllowedOriginList"~of_json:PlaybackRestrictionPolicyAllowedOrigin.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePlaybackRestrictionPolicyArn=structtypenonrect=stringletcontext_="PlaybackRestrictionPolicyArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"arn:aws:ivs:[a-z0-9-]+:[0-9]+:playback-restriction-policy/[a-zA-Z0-9-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PlaybackRestrictionPolicyArn"jletto_json=simple_to_jsonto_valueendmodulePlaybackRestrictionPolicyEnableStrictOriginEnforcement=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_valueendmodulePlaybackRestrictionPolicyName=structtypenonrect=stringletcontext_="PlaybackRestrictionPolicyName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9-_]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PlaybackRestrictionPolicyName"jletto_json=simple_to_jsonto_valueendmodulePlaybackKeyPairArn=structtypenonrect=stringletcontext_="PlaybackKeyPairArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"arn:aws:ivs:[a-z0-9-]+:[0-9]+:playback-key/[a-zA-Z0-9-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PlaybackKeyPairArn"jletto_json=simple_to_jsonto_valueendmodulePlaybackKeyPairName=structtypenonrect=stringletcontext_="PlaybackKeyPairName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9-_]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PlaybackKeyPairName"jletto_json=simple_to_jsonto_valueendmoduleChannelAdConfigurationArn=structtypenonrect=stringletcontext_="ChannelAdConfigurationArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"^$|^arn:aws:ivs:[a-z0-9-]+:[0-9]+:ad-configuration/[a-zA-Z0-9-]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ChannelAdConfigurationArn"jletto_json=simple_to_jsonto_valueendmoduleChannelLatencyMode=structtypenonrect=|NORMAL|LOW|Non_static_idofstringletmakei=iletto_string=function|NORMAL->"NORMAL"|LOW->"LOW"|Non_static_ids->sletof_string=function|"NORMAL"->NORMAL|"LOW"->LOW|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 ChannelLatencyMode"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ChannelLatencyMode"j)letto_json=simple_to_jsonto_valueendmoduleChannelName=structtypenonrect=stringletcontext_="ChannelName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9-_]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ChannelName"jletto_json=simple_to_jsonto_valueendmoduleChannelPlaybackRestrictionPolicyArn=structtypenonrect=stringletcontext_="ChannelPlaybackRestrictionPolicyArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"^$|^arn:aws:ivs:[a-z0-9-]+:[0-9]+:playback-restriction-policy/[a-zA-Z0-9-]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ChannelPlaybackRestrictionPolicyArn"jletto_json=simple_to_jsonto_valueendmoduleChannelRecordingConfigurationArn=structtypenonrect=stringletcontext_="ChannelRecordingConfigurationArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"^$|^arn:aws:ivs:[a-z0-9-]+:[0-9]+:recording-configuration/[a-zA-Z0-9-]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ChannelRecordingConfigurationArn"jletto_json=simple_to_jsonto_valueendmoduleChannelType=structtypenonrect=|BASIC|STANDARD|ADVANCED_SD|ADVANCED_HD|Non_static_idofstringletmakei=iletto_string=function|BASIC->"BASIC"|STANDARD->"STANDARD"|ADVANCED_SD->"ADVANCED_SD"|ADVANCED_HD->"ADVANCED_HD"|Non_static_ids->sletof_string=function|"BASIC"->BASIC|"STANDARD"->STANDARD|"ADVANCED_SD"->ADVANCED_SD|"ADVANCED_HD"->ADVANCED_HD|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration ChannelType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ChannelType"j)letto_json=simple_to_jsonto_valueendmoduleInsecureIngest=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_valueendmoduleIsAuthorized=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_valueendmoduleTranscodePreset=structtypenonrect=|HIGHER_BANDWIDTH_DELIVERY|CONSTRAINED_BANDWIDTH_DELIVERY|Non_static_idofstringletmakei=iletto_string=function|HIGHER_BANDWIDTH_DELIVERY->"HIGHER_BANDWIDTH_DELIVERY"|CONSTRAINED_BANDWIDTH_DELIVERY->"CONSTRAINED_BANDWIDTH_DELIVERY"|Non_static_ids->sletof_string=function|"HIGHER_BANDWIDTH_DELIVERY"->HIGHER_BANDWIDTH_DELIVERY|"CONSTRAINED_BANDWIDTH_DELIVERY"->CONSTRAINED_BANDWIDTH_DELIVERY|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 TranscodePreset"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"TranscodePreset"j)letto_json=simple_to_jsonto_valueendmoduleAdConfigurationArn=structtypenonrect=stringletcontext_="AdConfigurationArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"arn:aws:ivs:[a-z0-9-]+:[0-9]+:ad-configuration/[a-zA-Z0-9-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AdConfigurationArn"jletto_json=simple_to_jsonto_valueendmoduleAdConfigurationName=structtypenonrect=stringletcontext_="AdConfigurationName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9-_]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AdConfigurationName"jletto_json=simple_to_jsonto_valueendmoduleMediaTailorPlaybackConfigurationsList=structtypenonrect=MediaTailorPlaybackConfiguration.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:1)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:MediaTailorPlaybackConfiguration.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:MediaTailorPlaybackConfiguration.of_xml)letof_jsonj=list_of_json~kind:"MediaTailorPlaybackConfigurationsList"~of_json:MediaTailorPlaybackConfiguration.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleContainerFormat=structtypenonrect=|TS|FRAGMENTED_MP4|Non_static_idofstringletmakei=iletto_string=function|TS->"TS"|FRAGMENTED_MP4->"FRAGMENTED_MP4"|Non_static_ids->sletof_string=function|"TS"->TS|"FRAGMENTED_MP4"->FRAGMENTED_MP4|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 ContainerFormat"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ContainerFormat"j)letto_json=simple_to_jsonto_valueendmoduleIngestEndpoint=structtypenonrect=stringletcontext_="IngestEndpoint"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:"IngestEndpoint"jletto_json=simple_to_jsonto_valueendmoduleMultitrackInputConfiguration=structtypenonrect={enabled:IsMultitrackInputEnabled.toption[@ocaml.doc"Indicates whether multitrack input is enabled. Can be set to true only if channel type is STANDARD. Setting enabled to true with any other channel type will cause an exception. If true, then policy, maximumResolution, and containerFormat are required, and containerFormat must be set to FRAGMENTED_MP4. Default: false."];policy:MultitrackPolicy.toption[@ocaml.doc"Indicates whether multitrack input is allowed or required. Required if enabled is true."];maximumResolution:MultitrackMaximumResolution.toption[@ocaml.doc"Maximum resolution for multitrack input. Required if enabled is true."]}letmake?enabled=fun?policy->fun?maximumResolution->fun()->{enabled;policy;maximumResolution}letto_valuex=structure_to_value[("enabled",(Option.mapx.enabled~f:IsMultitrackInputEnabled.to_value));("policy",(Option.mapx.policy~f:MultitrackPolicy.to_value));("maximumResolution",(Option.mapx.maximumResolution~f:MultitrackMaximumResolution.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaximumResolution=(Option.map~f:MultitrackMaximumResolution.of_xml)(Xml.childxml_arg0"maximumResolution")inletpolicy=(Option.map~f:MultitrackPolicy.of_xml)(Xml.childxml_arg0"policy")inletenabled=(Option.map~f:IsMultitrackInputEnabled.of_xml)(Xml.childxml_arg0"enabled")inmake?maximumResolution?policy?enabled()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaximumResolution=field_mapjson__"maximumResolution"MultitrackMaximumResolution.of_jsoninletpolicy=field_mapjson__"policy"MultitrackPolicy.of_jsoninletenabled=field_mapjson__"enabled"IsMultitrackInputEnabled.of_jsoninmake?maximumResolution?policy?enabled()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A complex type that specifies multitrack input configuration."]modulePlaybackURL=structtypenonrect=stringletcontext_="PlaybackURL"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:"PlaybackURL"jletto_json=simple_to_jsonto_valueendmoduleSrt=structtypenonrect={endpoint:SrtEndpoint.toption[@ocaml.doc"The endpoint to be used when streaming with IVS using the SRT protocol."];passphrase:SrtPassphrase.toption[@ocaml.doc"Auto-generated passphrase to enable encryption. This field is applicable only if the end user has not enabled the insecureIngest option for the channel."]}letmake?endpoint=fun?passphrase->fun()->{endpoint;passphrase}letto_valuex=structure_to_value[("endpoint",(Option.mapx.endpoint~f:SrtEndpoint.to_value));("passphrase",(Option.mapx.passphrase~f:SrtPassphrase.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpassphrase=(Option.map~f:SrtPassphrase.of_xml)(Xml.childxml_arg0"passphrase")inletendpoint=(Option.map~f:SrtEndpoint.of_xml)(Xml.childxml_arg0"endpoint")inmake?passphrase?endpoint()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpassphrase=field_mapjson__"passphrase"SrtPassphrase.of_jsoninletendpoint=field_mapjson__"endpoint"SrtEndpoint.of_jsoninmake?passphrase?endpoint()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies information needed to stream using the SRT protocol."]moduleAudioConfigurationList=structtypenonrect=AudioConfiguration.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AudioConfiguration.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:AudioConfiguration.of_xml)letof_jsonj=list_of_json~kind:"AudioConfigurationList"~of_json:AudioConfiguration.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleVideoConfigurationList=structtypenonrect=VideoConfiguration.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:VideoConfiguration.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:VideoConfiguration.of_xml)letof_jsonj=list_of_json~kind:"VideoConfigurationList"~of_json:VideoConfiguration.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRecordingReconnectWindowSeconds=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:300)>>=(fun()->check_int_mini~min:0));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for RecordingReconnectWindowSeconds"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleRenditionConfiguration=structtypenonrect={renditionSelection:RenditionConfigurationRenditionSelection.toption[@ocaml.doc"Indicates which set of renditions are recorded for a stream. For BASIC channels, the CUSTOM value has no effect. If CUSTOM is specified, a set of renditions must be specified in the renditions field. Default: ALL."];renditions:RenditionConfigurationRenditionList.toption[@ocaml.doc"Indicates which renditions are recorded for a stream, if renditionSelection is CUSTOM; otherwise, this field is irrelevant. The selected renditions are recorded if they are available during the stream. If a selected rendition is unavailable, the best available rendition is recorded. For details on the resolution dimensions of each rendition, see Auto-Record to Amazon S3."]}letmake?renditionSelection=fun?renditions->fun()->{renditionSelection;renditions}letto_valuex=structure_to_value[("renditionSelection",(Option.mapx.renditionSelection~f:RenditionConfigurationRenditionSelection.to_value));("renditions",(Option.mapx.renditions~f:RenditionConfigurationRenditionList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrenditions=(Option.map~f:RenditionConfigurationRenditionList.of_xml)(Xml.childxml_arg0"renditions")inletrenditionSelection=(Option.map~f:RenditionConfigurationRenditionSelection.of_xml)(Xml.childxml_arg0"renditionSelection")inmake?renditions?renditionSelection()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrenditions=field_mapjson__"renditions"RenditionConfigurationRenditionList.of_jsoninletrenditionSelection=field_mapjson__"renditionSelection"RenditionConfigurationRenditionSelection.of_jsoninmake?renditions?renditionSelection()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Object that describes which renditions should be recorded for a stream."]moduleThumbnailConfiguration=structtypenonrect={recordingMode:RecordingMode.toption[@ocaml.doc"Thumbnail recording mode. Default: INTERVAL."];targetIntervalSeconds:TargetIntervalSeconds.toption[@ocaml.doc"The targeted thumbnail-generation interval in seconds. This is configurable (and required) only if recordingMode is INTERVAL. Default: 60. Important: For the BASIC channel type, or the STANDARD channel type with multitrack input, setting a value for targetIntervalSeconds does not guarantee that thumbnails are generated at the specified interval. For thumbnails to be generated at the targetIntervalSeconds interval, the IDR/Keyframe value for the input video must be less than the targetIntervalSeconds value. See Amazon IVS Streaming Configuration for information on setting IDR/Keyframe to the recommended value in video-encoder settings."];resolution:ThumbnailConfigurationResolution.toption[@ocaml.doc"Indicates the desired resolution of recorded thumbnails. Thumbnails are recorded at the selected resolution if the corresponding rendition is available during the stream; otherwise, they are recorded at source resolution. For more information about resolution values and their corresponding height and width dimensions, see Auto-Record to Amazon S3. Default: Null (source resolution is returned)."];storage:ThumbnailConfigurationStorageList.toption[@ocaml.doc"Indicates the format in which thumbnails are recorded. SEQUENTIAL records all generated thumbnails in a serial manner, to the media/thumbnails directory. LATEST saves the latest thumbnail in media/latest_thumbnail/thumb.jpg and overwrites it at the interval specified by targetIntervalSeconds. You can enable both SEQUENTIAL and LATEST. Default: SEQUENTIAL."]}letmake?recordingMode=fun?targetIntervalSeconds->fun?resolution->fun?storage->fun()->{recordingMode;targetIntervalSeconds;resolution;storage}letto_valuex=structure_to_value[("recordingMode",(Option.mapx.recordingMode~f:RecordingMode.to_value));("targetIntervalSeconds",(Option.mapx.targetIntervalSeconds~f:TargetIntervalSeconds.to_value));("resolution",(Option.mapx.resolution~f:ThumbnailConfigurationResolution.to_value));("storage",(Option.mapx.storage~f:ThumbnailConfigurationStorageList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstorage=(Option.map~f:ThumbnailConfigurationStorageList.of_xml)(Xml.childxml_arg0"storage")inletresolution=(Option.map~f:ThumbnailConfigurationResolution.of_xml)(Xml.childxml_arg0"resolution")inlettargetIntervalSeconds=(Option.map~f:TargetIntervalSeconds.of_xml)(Xml.childxml_arg0"targetIntervalSeconds")inletrecordingMode=(Option.map~f:RecordingMode.of_xml)(Xml.childxml_arg0"recordingMode")inmake?storage?resolution?targetIntervalSeconds?recordingMode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstorage=field_mapjson__"storage"ThumbnailConfigurationStorageList.of_jsoninletresolution=field_mapjson__"resolution"ThumbnailConfigurationResolution.of_jsoninlettargetIntervalSeconds=field_mapjson__"targetIntervalSeconds"TargetIntervalSeconds.of_jsoninletrecordingMode=field_mapjson__"recordingMode"RecordingMode.of_jsoninmake?storage?resolution?targetIntervalSeconds?recordingMode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object representing a configuration of thumbnails for recorded video."]moduleStreamEvent=structtypenonrect={name:String_.toption[@ocaml.doc"Name that identifies the stream event within a type."];type_:String_.toption[@ocaml.doc"Logical group for certain events."];eventTime:Time.toption[@ocaml.doc"Time when the event occurred. This is an ISO 8601 timestamp; note that this is returned as a string."];code:String_.toption[@ocaml.doc"Provides additional details about the stream event. There are several values; the long descriptions are provided in the IVS console but not delivered through the IVS API or EventBridge. Multitrack-related codes are used only for certain Session Ended events. MultitrackInputNotAllowed \226\128\148 The broadcast client attempted to connect with multitrack input, but multitrack input was not enabled on the channel. Check your broadcast software settings or set MultitrackInputConfiguration.Policy to ALLOW or REQUIRE. MultitrackInputRequired \226\128\148 The broadcast client attempted to connect with single-track video, but multitrack input is required on this channel. Enable multitrack video in your broadcast software or configure the channel\226\128\153s MultitrackInputConfiguration.Policy to ALLOW. InvalidGetClientConfigurationStreamKey \226\128\148 The broadcast client attempted to connect with an invalid, expired, or corrupt stream key. GetClientConfigurationStreamKeyRequired \226\128\148 The broadcast client attempted to stream multitrack video without providing an authenticated stream key from GetClientConfiguration. InvalidMultitrackInputTrackCount \226\128\148 The multitrack input stream contained an invalid number of tracks. InvalidMultitrackInputVideoTrackMediaProperties \226\128\148 The multitrack input stream contained one or more tracks with an invalid codec, resolution, bitrate, or framerate. StreamTakeoverMediaMismatch \226\128\148 The broadcast client attempted to take over with different media properties (e.g., codec, resolution, or video track type) from the original stream. StreamTakeoverInvalidPriority \226\128\148 The broadcast client attempted a takeover with either a priority integer value equal to or lower than the original stream's value or a value outside the allowed range of 1 to 2,147,483,647. StreamTakeoverLimitBreached \226\128\148 The broadcast client reached the maximum allowed takeover attempts for this stream."]}letmake?name=fun?type_->fun?eventTime->fun?code->fun()->{name;type_;eventTime;code}letto_valuex=structure_to_value[("name",(Option.mapx.name~f:String_.to_value));("type",(Option.mapx.type_~f:String_.to_value));("eventTime",(Option.mapx.eventTime~f:Time.to_value));("code",(Option.mapx.code~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"code")inleteventTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"eventTime")inlettype_=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"type")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"name")inmake?code?eventTime?type_?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcode=field_mapjson__"code"String_.of_jsoninleteventTime=field_mapjson__"eventTime"Time.of_jsoninlettype_=field_mapjson__"type"String_.of_jsoninletname=field_mapjson__"name"String_.of_jsoninmake?code?eventTime?type_?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Object specifying a stream\226\128\153s events. For a list of events, see Using Amazon EventBridge with Amazon IVS."]moduleViewerId=structtypenonrect=stringletcontext_="ViewerId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:40)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ViewerId"jletto_json=simple_to_jsonto_valueendmoduleErrorCode=structtypenonrect=stringletcontext_="errorCode"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:"errorCode"jletto_json=simple_to_jsonto_valueendmoduleErrorMessage=structtypenonrect=stringletcontext_="errorMessage"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:"errorMessage"jletto_json=simple_to_jsonto_valueendmoduleViewerSessionVersion=structtypenonrect=intletmakei=letopenResultinok_or_failwith(check_int_mini~min:0);iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ViewerSessionVersion"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleResourceArn=structtypenonrect=stringletcontext_="ResourceArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"arn:aws:ivs:[a-z0-9-]+:[0-9]+:[a-z-]/[a-zA-Z0-9-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ResourceArn"jletto_json=simple_to_jsonto_valueendmoduleStreamKeyValue=structtypenonrect=stringletcontext_="StreamKeyValue"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:"StreamKeyValue"jletto_json=simple_to_jsonto_valueendmoduleStreamSummary=structtypenonrect={channelArn:ChannelArn.toption[@ocaml.doc"Channel ARN for the stream."];streamId:StreamId.toption[@ocaml.doc"Unique identifier for a live or previously live stream in the specified channel."];state:StreamState.toption[@ocaml.doc"The stream\226\128\153s state. Do not rely on the OFFLINE state, as the API may not return it; instead, a \"NotBroadcasting\" error will indicate that the stream is not live."];health:StreamHealth.toption[@ocaml.doc"The stream\226\128\153s health."];viewerCount:StreamViewerCount.toption[@ocaml.doc"A count of concurrent views of the stream. Typically, a new view appears in viewerCount within 15 seconds of when video playback starts and a view is removed from viewerCount within 1 minute of when video playback ends. A value of -1 indicates that the request timed out; in this case, retry."];startTime:StreamStartTime.toption[@ocaml.doc"Time of the stream\226\128\153s start. This is an ISO 8601 timestamp; note that this is returned as a string."]}letmake?channelArn=fun?streamId->fun?state->fun?health->fun?viewerCount->fun?startTime->fun()->{channelArn;streamId;state;health;viewerCount;startTime}letto_valuex=structure_to_value[("channelArn",(Option.mapx.channelArn~f:ChannelArn.to_value));("streamId",(Option.mapx.streamId~f:StreamId.to_value));("state",(Option.mapx.state~f:StreamState.to_value));("health",(Option.mapx.health~f:StreamHealth.to_value));("viewerCount",(Option.mapx.viewerCount~f:StreamViewerCount.to_value));("startTime",(Option.mapx.startTime~f:StreamStartTime.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstartTime=(Option.map~f:StreamStartTime.of_xml)(Xml.childxml_arg0"startTime")inletviewerCount=(Option.map~f:StreamViewerCount.of_xml)(Xml.childxml_arg0"viewerCount")inlethealth=(Option.map~f:StreamHealth.of_xml)(Xml.childxml_arg0"health")inletstate=(Option.map~f:StreamState.of_xml)(Xml.childxml_arg0"state")inletstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"streamId")inletchannelArn=(Option.map~f:ChannelArn.of_xml)(Xml.childxml_arg0"channelArn")inmake?startTime?viewerCount?health?state?streamId?channelArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstartTime=field_mapjson__"startTime"StreamStartTime.of_jsoninletviewerCount=field_mapjson__"viewerCount"StreamViewerCount.of_jsoninlethealth=field_mapjson__"health"StreamHealth.of_jsoninletstate=field_mapjson__"state"StreamState.of_jsoninletstreamId=field_mapjson__"streamId"StreamId.of_jsoninletchannelArn=field_mapjson__"channelArn"ChannelArn.of_jsoninmake?startTime?viewerCount?health?state?streamId?channelArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Summary information about a stream."]moduleStreamSessionSummary=structtypenonrect={streamId:StreamId.toption[@ocaml.doc"Unique identifier for a live or previously live stream in the specified channel."];startTime:Time.toption[@ocaml.doc"Time when the channel went live. This is an ISO 8601 timestamp; note that this is returned as a string."];endTime:Time.toption[@ocaml.doc"Time when the channel went offline. This is an ISO 8601 timestamp; note that this is returned as a string. For live streams, this is NULL."];hasErrorEvent:Boolean.toption[@ocaml.doc"If true, this stream encountered a quota breach or failure."]}letmake?streamId=fun?startTime->fun?endTime->fun?hasErrorEvent->fun()->{streamId;startTime;endTime;hasErrorEvent}letto_valuex=structure_to_value[("streamId",(Option.mapx.streamId~f:StreamId.to_value));("startTime",(Option.mapx.startTime~f:Time.to_value));("endTime",(Option.mapx.endTime~f:Time.to_value));("hasErrorEvent",(Option.mapx.hasErrorEvent~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lethasErrorEvent=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"hasErrorEvent")inletendTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"endTime")inletstartTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"startTime")inletstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"streamId")inmake?hasErrorEvent?endTime?startTime?streamId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lethasErrorEvent=field_mapjson__"hasErrorEvent"Boolean.of_jsoninletendTime=field_mapjson__"endTime"Time.of_jsoninletstartTime=field_mapjson__"startTime"Time.of_jsoninletstreamId=field_mapjson__"streamId"StreamId.of_jsoninmake?hasErrorEvent?endTime?startTime?streamId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Summary information about a stream session."]moduleStreamKeySummary=structtypenonrect={arn:StreamKeyArn.toption[@ocaml.doc"Stream-key ARN."];channelArn:ChannelArn.toption[@ocaml.doc"Channel ARN for the stream."];tags:Tags.toption[@ocaml.doc"Tags attached to the resource. Array of 1-50 maps, each of the form string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and \"Tag naming limits and requirements\"; Amazon IVS has no service-specific constraints beyond what is documented there."]}letmake?arn=fun?channelArn->fun?tags->fun()->{arn;channelArn;tags}letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:StreamKeyArn.to_value));("channelArn",(Option.mapx.channelArn~f:ChannelArn.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")inletchannelArn=(Option.map~f:ChannelArn.of_xml)(Xml.childxml_arg0"channelArn")inletarn=(Option.map~f:StreamKeyArn.of_xml)(Xml.childxml_arg0"arn")inmake?tags?channelArn?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninletchannelArn=field_mapjson__"channelArn"ChannelArn.of_jsoninletarn=field_mapjson__"arn"StreamKeyArn.of_jsoninmake?tags?channelArn?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Summary information about a stream key."]moduleRecordingConfigurationSummary=structtypenonrect={arn:RecordingConfigurationArn.toption[@ocaml.doc"Recording-configuration ARN."];name:RecordingConfigurationName.toption[@ocaml.doc"Recording-configuration name. The value does not need to be unique."];destinationConfiguration:DestinationConfiguration.toption[@ocaml.doc"A complex type that contains information about where recorded video will be stored."];state:RecordingConfigurationState.toption[@ocaml.doc"Indicates the current state of the recording configuration. When the state is ACTIVE, the configuration is ready for recording a channel stream."];tags:Tags.toption[@ocaml.doc"Tags attached to the resource. Array of 1-50 maps, each of the form string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and \"Tag naming limits and requirements\"; Amazon IVS has no service-specific constraints beyond what is documented there."]}letmake?arn=fun?name->fun?destinationConfiguration->fun?state->fun?tags->fun()->{arn;name;destinationConfiguration;state;tags}letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:RecordingConfigurationArn.to_value));("name",(Option.mapx.name~f:RecordingConfigurationName.to_value));("destinationConfiguration",(Option.mapx.destinationConfiguration~f:DestinationConfiguration.to_value));("state",(Option.mapx.state~f:RecordingConfigurationState.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")inletstate=(Option.map~f:RecordingConfigurationState.of_xml)(Xml.childxml_arg0"state")inletdestinationConfiguration=(Option.map~f:DestinationConfiguration.of_xml)(Xml.childxml_arg0"destinationConfiguration")inletname=(Option.map~f:RecordingConfigurationName.of_xml)(Xml.childxml_arg0"name")inletarn=(Option.map~f:RecordingConfigurationArn.of_xml)(Xml.childxml_arg0"arn")inmake?tags?state?destinationConfiguration?name?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninletstate=field_mapjson__"state"RecordingConfigurationState.of_jsoninletdestinationConfiguration=field_mapjson__"destinationConfiguration"DestinationConfiguration.of_jsoninletname=field_mapjson__"name"RecordingConfigurationName.of_jsoninletarn=field_mapjson__"arn"RecordingConfigurationArn.of_jsoninmake?tags?state?destinationConfiguration?name?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Summary information about a RecordingConfiguration."]modulePlaybackRestrictionPolicySummary=structtypenonrect={arn:PlaybackRestrictionPolicyArn.toption[@ocaml.doc"Playback-restriction-policy ARN"];allowedCountries:PlaybackRestrictionPolicyAllowedCountryList.toption[@ocaml.doc"A list of country codes that control geoblocking restriction. Allowed values are the officially assigned ISO 3166-1 alpha-2 codes. Default: All countries (an empty array)."];allowedOrigins:PlaybackRestrictionPolicyAllowedOriginList.toption[@ocaml.doc"A list of origin sites that control CORS restriction. Allowed values are the same as valid values of the Origin header defined at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin. Default: All origins (an empty array)."];enableStrictOriginEnforcement:PlaybackRestrictionPolicyEnableStrictOriginEnforcement.toption[@ocaml.doc"Whether channel playback is constrained by origin site. Default: false."];name:PlaybackRestrictionPolicyName.toption[@ocaml.doc"Playback-restriction-policy name. The value does not need to be unique."];tags:Tags.toption[@ocaml.doc"Tags attached to the resource. Array of 1-50 maps, each of the form string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and \"Tag naming limits and requirements\"; Amazon IVS has no service-specific constraints beyond what is documented there."]}letmake?arn=fun?allowedCountries->fun?allowedOrigins->fun?enableStrictOriginEnforcement->fun?name->fun?tags->fun()->{arn;allowedCountries;allowedOrigins;enableStrictOriginEnforcement;name;tags}letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:PlaybackRestrictionPolicyArn.to_value));("allowedCountries",(Option.mapx.allowedCountries~f:PlaybackRestrictionPolicyAllowedCountryList.to_value));("allowedOrigins",(Option.mapx.allowedOrigins~f:PlaybackRestrictionPolicyAllowedOriginList.to_value));("enableStrictOriginEnforcement",(Option.mapx.enableStrictOriginEnforcement~f:PlaybackRestrictionPolicyEnableStrictOriginEnforcement.to_value));("name",(Option.mapx.name~f:PlaybackRestrictionPolicyName.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")inletname=(Option.map~f:PlaybackRestrictionPolicyName.of_xml)(Xml.childxml_arg0"name")inletenableStrictOriginEnforcement=(Option.map~f:PlaybackRestrictionPolicyEnableStrictOriginEnforcement.of_xml)(Xml.childxml_arg0"enableStrictOriginEnforcement")inletallowedOrigins=(Option.map~f:PlaybackRestrictionPolicyAllowedOriginList.of_xml)(Xml.childxml_arg0"allowedOrigins")inletallowedCountries=(Option.map~f:PlaybackRestrictionPolicyAllowedCountryList.of_xml)(Xml.childxml_arg0"allowedCountries")inletarn=(Option.map~f:PlaybackRestrictionPolicyArn.of_xml)(Xml.childxml_arg0"arn")inmake?tags?name?enableStrictOriginEnforcement?allowedOrigins?allowedCountries?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninletname=field_mapjson__"name"PlaybackRestrictionPolicyName.of_jsoninletenableStrictOriginEnforcement=field_mapjson__"enableStrictOriginEnforcement"PlaybackRestrictionPolicyEnableStrictOriginEnforcement.of_jsoninletallowedOrigins=field_mapjson__"allowedOrigins"PlaybackRestrictionPolicyAllowedOriginList.of_jsoninletallowedCountries=field_mapjson__"allowedCountries"PlaybackRestrictionPolicyAllowedCountryList.of_jsoninletarn=field_mapjson__"arn"PlaybackRestrictionPolicyArn.of_jsoninmake?tags?name?enableStrictOriginEnforcement?allowedOrigins?allowedCountries?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Summary information about a PlaybackRestrictionPolicy."]modulePlaybackKeyPairSummary=structtypenonrect={arn:PlaybackKeyPairArn.toption[@ocaml.doc"Key-pair ARN."];name:PlaybackKeyPairName.toption[@ocaml.doc"Playback-key-pair name. The value does not need to be unique."];tags:Tags.toption[@ocaml.doc"Tags attached to the resource. Array of 1-50 maps, each of the form string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and \"Tag naming limits and requirements\"; Amazon IVS has no service-specific constraints beyond what is documented there."]}letmake?arn=fun?name->fun?tags->fun()->{arn;name;tags}letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:PlaybackKeyPairArn.to_value));("name",(Option.mapx.name~f:PlaybackKeyPairName.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")inletname=(Option.map~f:PlaybackKeyPairName.of_xml)(Xml.childxml_arg0"name")inletarn=(Option.map~f:PlaybackKeyPairArn.of_xml)(Xml.childxml_arg0"arn")inmake?tags?name?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninletname=field_mapjson__"name"PlaybackKeyPairName.of_jsoninletarn=field_mapjson__"arn"PlaybackKeyPairArn.of_jsoninmake?tags?name?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Summary information about a playback key pair."]moduleChannelSummary=structtypenonrect={arn:ChannelArn.toption[@ocaml.doc"Channel ARN."];name:ChannelName.toption[@ocaml.doc"Channel name."];latencyMode:ChannelLatencyMode.toption[@ocaml.doc"Channel latency mode. Use NORMAL to broadcast and deliver live video up to Full HD. Use LOW for near-real-time interaction with viewers. Default: LOW."];authorized:IsAuthorized.toption[@ocaml.doc"Whether the channel is private (enabled for playback authorization). Default: false."];recordingConfigurationArn:ChannelRecordingConfigurationArn.toption[@ocaml.doc"Recording-configuration ARN. A valid ARN value here both specifies the ARN and enables recording. Default: \"\" (empty string, recording is disabled)."];tags:Tags.toption[@ocaml.doc"Tags attached to the resource. Array of 1-50 maps, each of the form string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and \"Tag naming limits and requirements\"; Amazon IVS has no service-specific constraints beyond what is documented there."];insecureIngest:InsecureIngest.toption[@ocaml.doc"Whether the channel allows insecure RTMP ingest. Default: false."];type_:ChannelType.toption[@ocaml.doc"Channel type, which determines the allowable resolution and bitrate. If you exceed the allowable input resolution or bitrate, the stream probably will disconnect immediately. Default: STANDARD. For details, see Channel Types."];preset:TranscodePreset.toption[@ocaml.doc"Optional transcode preset for the channel. This is selectable only for ADVANCED_HD and ADVANCED_SD channel types. For those channel types, the default preset is HIGHER_BANDWIDTH_DELIVERY. For other channel types (BASIC and STANDARD), preset is the empty string (\"\")."];playbackRestrictionPolicyArn:ChannelPlaybackRestrictionPolicyArn.toption[@ocaml.doc"Playback-restriction-policy ARN. A valid ARN value here both specifies the ARN and enables playback restriction. Default: \"\" (empty string, no playback restriction policy is applied)."];adConfigurationArn:ChannelAdConfigurationArn.toption[@ocaml.doc"ARN of the ad configuration associated with the channel."]}letmake?arn=fun?name->fun?latencyMode->fun?authorized->fun?recordingConfigurationArn->fun?tags->fun?insecureIngest->fun?type_->fun?preset->fun?playbackRestrictionPolicyArn->fun?adConfigurationArn->fun()->{arn;name;latencyMode;authorized;recordingConfigurationArn;tags;insecureIngest;type_;preset;playbackRestrictionPolicyArn;adConfigurationArn}letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:ChannelArn.to_value));("name",(Option.mapx.name~f:ChannelName.to_value));("latencyMode",(Option.mapx.latencyMode~f:ChannelLatencyMode.to_value));("authorized",(Option.mapx.authorized~f:IsAuthorized.to_value));("recordingConfigurationArn",(Option.mapx.recordingConfigurationArn~f:ChannelRecordingConfigurationArn.to_value));("tags",(Option.mapx.tags~f:Tags.to_value));("insecureIngest",(Option.mapx.insecureIngest~f:InsecureIngest.to_value));("type",(Option.mapx.type_~f:ChannelType.to_value));("preset",(Option.mapx.preset~f:TranscodePreset.to_value));("playbackRestrictionPolicyArn",(Option.mapx.playbackRestrictionPolicyArn~f:ChannelPlaybackRestrictionPolicyArn.to_value));("adConfigurationArn",(Option.mapx.adConfigurationArn~f:ChannelAdConfigurationArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letadConfigurationArn=(Option.map~f:ChannelAdConfigurationArn.of_xml)(Xml.childxml_arg0"adConfigurationArn")inletplaybackRestrictionPolicyArn=(Option.map~f:ChannelPlaybackRestrictionPolicyArn.of_xml)(Xml.childxml_arg0"playbackRestrictionPolicyArn")inletpreset=(Option.map~f:TranscodePreset.of_xml)(Xml.childxml_arg0"preset")inlettype_=(Option.map~f:ChannelType.of_xml)(Xml.childxml_arg0"type")inletinsecureIngest=(Option.map~f:InsecureIngest.of_xml)(Xml.childxml_arg0"insecureIngest")inlettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletrecordingConfigurationArn=(Option.map~f:ChannelRecordingConfigurationArn.of_xml)(Xml.childxml_arg0"recordingConfigurationArn")inletauthorized=(Option.map~f:IsAuthorized.of_xml)(Xml.childxml_arg0"authorized")inletlatencyMode=(Option.map~f:ChannelLatencyMode.of_xml)(Xml.childxml_arg0"latencyMode")inletname=(Option.map~f:ChannelName.of_xml)(Xml.childxml_arg0"name")inletarn=(Option.map~f:ChannelArn.of_xml)(Xml.childxml_arg0"arn")inmake?adConfigurationArn?playbackRestrictionPolicyArn?preset?type_?insecureIngest?tags?recordingConfigurationArn?authorized?latencyMode?name?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letadConfigurationArn=field_mapjson__"adConfigurationArn"ChannelAdConfigurationArn.of_jsoninletplaybackRestrictionPolicyArn=field_mapjson__"playbackRestrictionPolicyArn"ChannelPlaybackRestrictionPolicyArn.of_jsoninletpreset=field_mapjson__"preset"TranscodePreset.of_jsoninlettype_=field_mapjson__"type"ChannelType.of_jsoninletinsecureIngest=field_mapjson__"insecureIngest"InsecureIngest.of_jsoninlettags=field_mapjson__"tags"Tags.of_jsoninletrecordingConfigurationArn=field_mapjson__"recordingConfigurationArn"ChannelRecordingConfigurationArn.of_jsoninletauthorized=field_mapjson__"authorized"IsAuthorized.of_jsoninletlatencyMode=field_mapjson__"latencyMode"ChannelLatencyMode.of_jsoninletname=field_mapjson__"name"ChannelName.of_jsoninletarn=field_mapjson__"arn"ChannelArn.of_jsoninmake?adConfigurationArn?playbackRestrictionPolicyArn?preset?type_?insecureIngest?tags?recordingConfigurationArn?authorized?latencyMode?name?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Summary information about a channel."]moduleAdConfigurationSummary=structtypenonrect={arn:AdConfigurationArn.toption[@ocaml.doc"Ad configuration ARN."];name:AdConfigurationName.toption[@ocaml.doc"Ad configuration name. Defaults to \226\128\156\226\128\157."];mediaTailorPlaybackConfigurations:MediaTailorPlaybackConfigurationsList.toption[@ocaml.doc"List of integration configurations with media tailor resources."];tags:Tags.toption[@ocaml.doc"Tags attached to the resource. Array of 1-50 maps, each of the form string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and \"Tag naming limits and requirements\"; Amazon IVS has no service-specific constraints beyond what is documented there."]}letmake?arn=fun?name->fun?mediaTailorPlaybackConfigurations->fun?tags->fun()->{arn;name;mediaTailorPlaybackConfigurations;tags}letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:AdConfigurationArn.to_value));("name",(Option.mapx.name~f:AdConfigurationName.to_value));("mediaTailorPlaybackConfigurations",(Option.mapx.mediaTailorPlaybackConfigurations~f:MediaTailorPlaybackConfigurationsList.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")inletmediaTailorPlaybackConfigurations=(Option.map~f:MediaTailorPlaybackConfigurationsList.of_xml)(Xml.childxml_arg0"mediaTailorPlaybackConfigurations")inletname=(Option.map~f:AdConfigurationName.of_xml)(Xml.childxml_arg0"name")inletarn=(Option.map~f:AdConfigurationArn.of_xml)(Xml.childxml_arg0"arn")inmake?tags?mediaTailorPlaybackConfigurations?name?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninletmediaTailorPlaybackConfigurations=field_mapjson__"mediaTailorPlaybackConfigurations"MediaTailorPlaybackConfigurationsList.of_jsoninletname=field_mapjson__"name"AdConfigurationName.of_jsoninletarn=field_mapjson__"arn"AdConfigurationArn.of_jsoninmake?tags?mediaTailorPlaybackConfigurations?name?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Summary information about an ad configuration."]modulePlaybackKeyPairFingerprint=structtypenonrect=stringletcontext_="PlaybackKeyPairFingerprint"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:"PlaybackKeyPairFingerprint"jletto_json=simple_to_jsonto_valueendmoduleChannel=structtypenonrect={arn:ChannelArn.toption[@ocaml.doc"Channel ARN."];name:ChannelName.toption[@ocaml.doc"Channel name."];latencyMode:ChannelLatencyMode.toption[@ocaml.doc"Channel latency mode. Use NORMAL to broadcast and deliver live video up to Full HD. Use LOW for near-real-time interaction with viewers. Default: LOW."];type_:ChannelType.toption[@ocaml.doc"Channel type, which determines the allowable resolution and bitrate. If you exceed the allowable input resolution or bitrate, the stream probably will disconnect immediately. Default: STANDARD. For details, see Channel Types."];recordingConfigurationArn:ChannelRecordingConfigurationArn.toption[@ocaml.doc"Recording-configuration ARN. A valid ARN value here both specifies the ARN and enables recording. Default: \"\" (empty string, recording is disabled)."];ingestEndpoint:IngestEndpoint.toption[@ocaml.doc"Channel ingest endpoint, part of the definition of an ingest server, used when you set up streaming software."];playbackUrl:PlaybackURL.toption[@ocaml.doc"Channel playback URL."];authorized:IsAuthorized.toption[@ocaml.doc"Whether the channel is private (enabled for playback authorization). Default: false."];tags:Tags.toption[@ocaml.doc"Tags attached to the resource. Array of 1-50 maps, each of the form string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and \"Tag naming limits and requirements\"; Amazon IVS has no service-specific constraints beyond what is documented there."];insecureIngest:InsecureIngest.toption[@ocaml.doc"Whether the channel allows insecure RTMP ingest. Default: false."];preset:TranscodePreset.toption[@ocaml.doc"Optional transcode preset for the channel. This is selectable only for ADVANCED_HD and ADVANCED_SD channel types. For those channel types, the default preset is HIGHER_BANDWIDTH_DELIVERY. For other channel types (BASIC and STANDARD), preset is the empty string (\"\")."];srt:Srt.toption[@ocaml.doc"Specifies the endpoint and optional passphrase for streaming with the SRT protocol."];playbackRestrictionPolicyArn:ChannelPlaybackRestrictionPolicyArn.toption[@ocaml.doc"Playback-restriction-policy ARN. A valid ARN value here both specifies the ARN and enables playback restriction. Default: \"\" (empty string, no playback restriction policy is applied)."];multitrackInputConfiguration:MultitrackInputConfiguration.toption[@ocaml.doc"Object specifying multitrack input configuration. Default: no multitrack input configuration is specified."];containerFormat:ContainerFormat.toption[@ocaml.doc"Indicates which content-packaging format is used (MPEG-TS or fMP4). If multitrackInputConfiguration is specified and enabled is true, then containerFormat is required and must be set to FRAGMENTED_MP4. Otherwise, containerFormat may be set to TS or FRAGMENTED_MP4. Default: TS."];adConfigurationArn:ChannelAdConfigurationArn.toption[@ocaml.doc"ARN of the ad configuration associated with the channel."]}letmake?arn=fun?name->fun?latencyMode->fun?type_->fun?recordingConfigurationArn->fun?ingestEndpoint->fun?playbackUrl->fun?authorized->fun?tags->fun?insecureIngest->fun?preset->fun?srt->fun?playbackRestrictionPolicyArn->fun?multitrackInputConfiguration->fun?containerFormat->fun?adConfigurationArn->fun()->{arn;name;latencyMode;type_;recordingConfigurationArn;ingestEndpoint;playbackUrl;authorized;tags;insecureIngest;preset;srt;playbackRestrictionPolicyArn;multitrackInputConfiguration;containerFormat;adConfigurationArn}letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:ChannelArn.to_value));("name",(Option.mapx.name~f:ChannelName.to_value));("latencyMode",(Option.mapx.latencyMode~f:ChannelLatencyMode.to_value));("type",(Option.mapx.type_~f:ChannelType.to_value));("recordingConfigurationArn",(Option.mapx.recordingConfigurationArn~f:ChannelRecordingConfigurationArn.to_value));("ingestEndpoint",(Option.mapx.ingestEndpoint~f:IngestEndpoint.to_value));("playbackUrl",(Option.mapx.playbackUrl~f:PlaybackURL.to_value));("authorized",(Option.mapx.authorized~f:IsAuthorized.to_value));("tags",(Option.mapx.tags~f:Tags.to_value));("insecureIngest",(Option.mapx.insecureIngest~f:InsecureIngest.to_value));("preset",(Option.mapx.preset~f:TranscodePreset.to_value));("srt",(Option.mapx.srt~f:Srt.to_value));("playbackRestrictionPolicyArn",(Option.mapx.playbackRestrictionPolicyArn~f:ChannelPlaybackRestrictionPolicyArn.to_value));("multitrackInputConfiguration",(Option.mapx.multitrackInputConfiguration~f:MultitrackInputConfiguration.to_value));("containerFormat",(Option.mapx.containerFormat~f:ContainerFormat.to_value));("adConfigurationArn",(Option.mapx.adConfigurationArn~f:ChannelAdConfigurationArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letadConfigurationArn=(Option.map~f:ChannelAdConfigurationArn.of_xml)(Xml.childxml_arg0"adConfigurationArn")inletcontainerFormat=(Option.map~f:ContainerFormat.of_xml)(Xml.childxml_arg0"containerFormat")inletmultitrackInputConfiguration=(Option.map~f:MultitrackInputConfiguration.of_xml)(Xml.childxml_arg0"multitrackInputConfiguration")inletplaybackRestrictionPolicyArn=(Option.map~f:ChannelPlaybackRestrictionPolicyArn.of_xml)(Xml.childxml_arg0"playbackRestrictionPolicyArn")inletsrt=(Option.map~f:Srt.of_xml)(Xml.childxml_arg0"srt")inletpreset=(Option.map~f:TranscodePreset.of_xml)(Xml.childxml_arg0"preset")inletinsecureIngest=(Option.map~f:InsecureIngest.of_xml)(Xml.childxml_arg0"insecureIngest")inlettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletauthorized=(Option.map~f:IsAuthorized.of_xml)(Xml.childxml_arg0"authorized")inletplaybackUrl=(Option.map~f:PlaybackURL.of_xml)(Xml.childxml_arg0"playbackUrl")inletingestEndpoint=(Option.map~f:IngestEndpoint.of_xml)(Xml.childxml_arg0"ingestEndpoint")inletrecordingConfigurationArn=(Option.map~f:ChannelRecordingConfigurationArn.of_xml)(Xml.childxml_arg0"recordingConfigurationArn")inlettype_=(Option.map~f:ChannelType.of_xml)(Xml.childxml_arg0"type")inletlatencyMode=(Option.map~f:ChannelLatencyMode.of_xml)(Xml.childxml_arg0"latencyMode")inletname=(Option.map~f:ChannelName.of_xml)(Xml.childxml_arg0"name")inletarn=(Option.map~f:ChannelArn.of_xml)(Xml.childxml_arg0"arn")inmake?adConfigurationArn?containerFormat?multitrackInputConfiguration?playbackRestrictionPolicyArn?srt?preset?insecureIngest?tags?authorized?playbackUrl?ingestEndpoint?recordingConfigurationArn?type_?latencyMode?name?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letadConfigurationArn=field_mapjson__"adConfigurationArn"ChannelAdConfigurationArn.of_jsoninletcontainerFormat=field_mapjson__"containerFormat"ContainerFormat.of_jsoninletmultitrackInputConfiguration=field_mapjson__"multitrackInputConfiguration"MultitrackInputConfiguration.of_jsoninletplaybackRestrictionPolicyArn=field_mapjson__"playbackRestrictionPolicyArn"ChannelPlaybackRestrictionPolicyArn.of_jsoninletsrt=field_mapjson__"srt"Srt.of_jsoninletpreset=field_mapjson__"preset"TranscodePreset.of_jsoninletinsecureIngest=field_mapjson__"insecureIngest"InsecureIngest.of_jsoninlettags=field_mapjson__"tags"Tags.of_jsoninletauthorized=field_mapjson__"authorized"IsAuthorized.of_jsoninletplaybackUrl=field_mapjson__"playbackUrl"PlaybackURL.of_jsoninletingestEndpoint=field_mapjson__"ingestEndpoint"IngestEndpoint.of_jsoninletrecordingConfigurationArn=field_mapjson__"recordingConfigurationArn"ChannelRecordingConfigurationArn.of_jsoninlettype_=field_mapjson__"type"ChannelType.of_jsoninletlatencyMode=field_mapjson__"latencyMode"ChannelLatencyMode.of_jsoninletname=field_mapjson__"name"ChannelName.of_jsoninletarn=field_mapjson__"arn"ChannelArn.of_jsoninmake?adConfigurationArn?containerFormat?multitrackInputConfiguration?playbackRestrictionPolicyArn?srt?preset?insecureIngest?tags?authorized?playbackUrl?ingestEndpoint?recordingConfigurationArn?type_?latencyMode?name?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Object specifying a channel."]moduleIngestConfiguration=structtypenonrect={video:VideoConfiguration.toption[@ocaml.doc"Encoder settings for video."];audio:AudioConfiguration.toption[@ocaml.doc"Encoder settings for audio."]}letmake?video=fun?audio->fun()->{video;audio}letto_valuex=structure_to_value[("video",(Option.mapx.video~f:VideoConfiguration.to_value));("audio",(Option.mapx.audio~f:AudioConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaudio=(Option.map~f:AudioConfiguration.of_xml)(Xml.childxml_arg0"audio")inletvideo=(Option.map~f:VideoConfiguration.of_xml)(Xml.childxml_arg0"video")inmake?audio?video()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaudio=field_mapjson__"audio"AudioConfiguration.of_jsoninletvideo=field_mapjson__"video"VideoConfiguration.of_jsoninmake?audio?video()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Object specifying the ingest configuration set up by the broadcaster, usually in an encoder. Note: IngestConfiguration is deprecated in favor of IngestConfigurations but retained to ensure backward compatibility. If multitrack is not enabled, IngestConfiguration and IngestConfigurations contain the same data, namely information about Track0 (the sole track). If multitrack is enabled, IngestConfiguration contains data for only the first track (Track0) and IngestConfigurations contains data for all tracks."]moduleIngestConfigurations=structtypenonrect={videoConfigurations:VideoConfigurationList.toption[@ocaml.doc"Encoder settings for video"];audioConfigurations:AudioConfigurationList.toption[@ocaml.doc"Encoder settings for audio."]}letmake?videoConfigurations=fun?audioConfigurations->fun()->{videoConfigurations;audioConfigurations}letto_valuex=structure_to_value[("videoConfigurations",(Option.mapx.videoConfigurations~f:VideoConfigurationList.to_value));("audioConfigurations",(Option.mapx.audioConfigurations~f:AudioConfigurationList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaudioConfigurations=(Option.map~f:AudioConfigurationList.of_xml)(Xml.childxml_arg0"audioConfigurations")inletvideoConfigurations=(Option.map~f:VideoConfigurationList.of_xml)(Xml.childxml_arg0"videoConfigurations")inmake?audioConfigurations?videoConfigurations()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaudioConfigurations=field_mapjson__"audioConfigurations"AudioConfigurationList.of_jsoninletvideoConfigurations=field_mapjson__"videoConfigurations"VideoConfigurationList.of_jsoninmake?audioConfigurations?videoConfigurations()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Object specifying the ingest configuration set up by the broadcaster, usually in an encoder. Note: Use IngestConfigurations instead of IngestConfiguration (which is deprecated). If multitrack is not enabled, IngestConfiguration and IngestConfigurations contain the same data, namely information about Track0 (the sole track). If multitrack is enabled, IngestConfiguration contains data for only the first track (Track0) and IngestConfigurations contains data for all tracks."]moduleRecordingConfiguration=structtypenonrect={arn:RecordingConfigurationArn.toption[@ocaml.doc"Recording-configuration ARN."];name:RecordingConfigurationName.toption[@ocaml.doc"Recording-configuration name. The value does not need to be unique."];destinationConfiguration:DestinationConfiguration.toption[@ocaml.doc"A complex type that contains information about where recorded video will be stored."];state:RecordingConfigurationState.toption[@ocaml.doc"Indicates the current state of the recording configuration. When the state is ACTIVE, the configuration is ready for recording a channel stream."];tags:Tags.toption[@ocaml.doc"Tags attached to the resource. Array of 1-50 maps, each of the form string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and \"Tag naming limits and requirements\"; Amazon IVS has no service-specific constraints beyond what is documented there."];thumbnailConfiguration:ThumbnailConfiguration.toption[@ocaml.doc"A complex type that allows you to enable/disable the recording of thumbnails for a live session and modify the interval at which thumbnails are generated for the live session."];recordingReconnectWindowSeconds:RecordingReconnectWindowSeconds.toption[@ocaml.doc"If a broadcast disconnects and then reconnects within the specified interval, the multiple streams will be considered a single broadcast and merged together. Default: 0."];renditionConfiguration:RenditionConfiguration.toption[@ocaml.doc"Object that describes which renditions should be recorded for a stream."]}letmake?arn=fun?name->fun?destinationConfiguration->fun?state->fun?tags->fun?thumbnailConfiguration->fun?recordingReconnectWindowSeconds->fun?renditionConfiguration->fun()->{arn;name;destinationConfiguration;state;tags;thumbnailConfiguration;recordingReconnectWindowSeconds;renditionConfiguration}letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:RecordingConfigurationArn.to_value));("name",(Option.mapx.name~f:RecordingConfigurationName.to_value));("destinationConfiguration",(Option.mapx.destinationConfiguration~f:DestinationConfiguration.to_value));("state",(Option.mapx.state~f:RecordingConfigurationState.to_value));("tags",(Option.mapx.tags~f:Tags.to_value));("thumbnailConfiguration",(Option.mapx.thumbnailConfiguration~f:ThumbnailConfiguration.to_value));("recordingReconnectWindowSeconds",(Option.mapx.recordingReconnectWindowSeconds~f:RecordingReconnectWindowSeconds.to_value));("renditionConfiguration",(Option.mapx.renditionConfiguration~f:RenditionConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrenditionConfiguration=(Option.map~f:RenditionConfiguration.of_xml)(Xml.childxml_arg0"renditionConfiguration")inletrecordingReconnectWindowSeconds=(Option.map~f:RecordingReconnectWindowSeconds.of_xml)(Xml.childxml_arg0"recordingReconnectWindowSeconds")inletthumbnailConfiguration=(Option.map~f:ThumbnailConfiguration.of_xml)(Xml.childxml_arg0"thumbnailConfiguration")inlettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletstate=(Option.map~f:RecordingConfigurationState.of_xml)(Xml.childxml_arg0"state")inletdestinationConfiguration=(Option.map~f:DestinationConfiguration.of_xml)(Xml.childxml_arg0"destinationConfiguration")inletname=(Option.map~f:RecordingConfigurationName.of_xml)(Xml.childxml_arg0"name")inletarn=(Option.map~f:RecordingConfigurationArn.of_xml)(Xml.childxml_arg0"arn")inmake?renditionConfiguration?recordingReconnectWindowSeconds?thumbnailConfiguration?tags?state?destinationConfiguration?name?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrenditionConfiguration=field_mapjson__"renditionConfiguration"RenditionConfiguration.of_jsoninletrecordingReconnectWindowSeconds=field_mapjson__"recordingReconnectWindowSeconds"RecordingReconnectWindowSeconds.of_jsoninletthumbnailConfiguration=field_mapjson__"thumbnailConfiguration"ThumbnailConfiguration.of_jsoninlettags=field_mapjson__"tags"Tags.of_jsoninletstate=field_mapjson__"state"RecordingConfigurationState.of_jsoninletdestinationConfiguration=field_mapjson__"destinationConfiguration"DestinationConfiguration.of_jsoninletname=field_mapjson__"name"RecordingConfigurationName.of_jsoninletarn=field_mapjson__"arn"RecordingConfigurationArn.of_jsoninmake?renditionConfiguration?recordingReconnectWindowSeconds?thumbnailConfiguration?tags?state?destinationConfiguration?name?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object representing a configuration to record a channel stream."]moduleStreamEvents=structtypenonrect=StreamEvent.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:500)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:StreamEvent.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:StreamEvent.of_xml)letof_jsonj=list_of_json~kind:"StreamEvents"~of_json:StreamEvent.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBatchStartViewerSessionRevocationError=structtypenonrect={channelArn:ChannelArn.toption[@ocaml.doc"Channel ARN."];viewerId:ViewerId.toption[@ocaml.doc"The ID of the viewer session to revoke."];code:ErrorCode.toption[@ocaml.doc"Error code."];message:ErrorMessage.toption[@ocaml.doc"Error message, determined by the application."]}letmake?channelArn=fun?viewerId->fun?code->fun?message->fun()->{channelArn;viewerId;code;message}letto_valuex=structure_to_value[("channelArn",(Option.mapx.channelArn~f:ChannelArn.to_value));("viewerId",(Option.mapx.viewerId~f:ViewerId.to_value));("code",(Option.mapx.code~f:ErrorCode.to_value));("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inletcode=(Option.map~f:ErrorCode.of_xml)(Xml.childxml_arg0"code")inletviewerId=(Option.map~f:ViewerId.of_xml)(Xml.childxml_arg0"viewerId")inletchannelArn=(Option.map~f:ChannelArn.of_xml)(Xml.childxml_arg0"channelArn")inmake?message?code?viewerId?channelArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninletcode=field_mapjson__"code"ErrorCode.of_jsoninletviewerId=field_mapjson__"viewerId"ViewerId.of_jsoninletchannelArn=field_mapjson__"channelArn"ChannelArn.of_jsoninmake?message?code?viewerId?channelArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Error for a request in the batch for BatchStartViewerSessionRevocation. Each error is related to a specific channel-ARN and viewer-ID pair."]moduleBatchStartViewerSessionRevocationViewerSession=structtypenonrect={channelArn:ChannelArn.t[@ocaml.doc"The ARN of the channel associated with the viewer session to revoke."];viewerId:ViewerId.t[@ocaml.doc"The ID of the viewer associated with the viewer session to revoke. Do not use this field for personally identifying, confidential, or sensitive information."];viewerSessionVersionsLessThanOrEqualTo:ViewerSessionVersion.toption[@ocaml.doc"An optional filter on which versions of the viewer session to revoke. All versions less than or equal to the specified version will be revoked. Default: 0."]}letcontext_="BatchStartViewerSessionRevocationViewerSession"letmake?viewerSessionVersionsLessThanOrEqualTo=fun~channelArn->fun~viewerId->fun()->{viewerSessionVersionsLessThanOrEqualTo;channelArn;viewerId}letto_valuex=structure_to_value[("channelArn",(Some(ChannelArn.to_valuex.channelArn)));("viewerId",(Some(ViewerId.to_valuex.viewerId)));("viewerSessionVersionsLessThanOrEqualTo",(Option.mapx.viewerSessionVersionsLessThanOrEqualTo~f:ViewerSessionVersion.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letviewerSessionVersionsLessThanOrEqualTo=(Option.map~f:ViewerSessionVersion.of_xml)(Xml.childxml_arg0"viewerSessionVersionsLessThanOrEqualTo")inletviewerId=ViewerId.of_xml(Xml.child_exn~context:context_xml_arg0"viewerId")inletchannelArn=ChannelArn.of_xml(Xml.child_exn~context:context_xml_arg0"channelArn")inmake?viewerSessionVersionsLessThanOrEqualTo~viewerId~channelArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letviewerSessionVersionsLessThanOrEqualTo=field_mapjson__"viewerSessionVersionsLessThanOrEqualTo"ViewerSessionVersion.of_jsoninletviewerId=field_map_exnjson__"viewerId"ViewerId.of_jsoninletchannelArn=field_map_exnjson__"channelArn"ChannelArn.of_jsoninmake?viewerSessionVersionsLessThanOrEqualTo~viewerId~channelArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A viewer session to revoke in the call to BatchStartViewerSessionRevocation."]moduleBatchError=structtypenonrect={arn:ResourceArn.toption[@ocaml.doc"ARN of an IVS resource; e.g., channel."];code:ErrorCode.toption[@ocaml.doc"Error code."];message:ErrorMessage.toption[@ocaml.doc"Error message, determined by the application."]}letmake?arn=fun?code->fun?message->fun()->{arn;code;message}letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:ResourceArn.to_value));("code",(Option.mapx.code~f:ErrorCode.to_value));("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inletcode=(Option.map~f:ErrorCode.of_xml)(Xml.childxml_arg0"code")inletarn=(Option.map~f:ResourceArn.of_xml)(Xml.childxml_arg0"arn")inmake?message?code?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninletcode=field_mapjson__"code"ErrorCode.of_jsoninletarn=field_mapjson__"arn"ResourceArn.of_jsoninmake?message?code?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Error related to a specific channel, specified by its ARN."]moduleStreamKey=structtypenonrect={arn:StreamKeyArn.toption[@ocaml.doc"Stream-key ARN."];value:StreamKeyValue.toption[@ocaml.doc"Stream-key value."];channelArn:ChannelArn.toption[@ocaml.doc"Channel ARN for the stream."];tags:Tags.toption[@ocaml.doc"Tags attached to the resource. Array of 1-50 maps, each of the form string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and \"Tag naming limits and requirements\"; Amazon IVS has no service-specific constraints beyond what is documented there."]}letmake?arn=fun?value->fun?channelArn->fun?tags->fun()->{arn;value;channelArn;tags}letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:StreamKeyArn.to_value));("value",(Option.mapx.value~f:StreamKeyValue.to_value));("channelArn",(Option.mapx.channelArn~f:ChannelArn.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")inletchannelArn=(Option.map~f:ChannelArn.of_xml)(Xml.childxml_arg0"channelArn")inletvalue=(Option.map~f:StreamKeyValue.of_xml)(Xml.childxml_arg0"value")inletarn=(Option.map~f:StreamKeyArn.of_xml)(Xml.childxml_arg0"arn")inmake?tags?channelArn?value?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninletchannelArn=field_mapjson__"channelArn"ChannelArn.of_jsoninletvalue=field_mapjson__"value"StreamKeyValue.of_jsoninletarn=field_mapjson__"arn"StreamKeyArn.of_jsoninmake?tags?channelArn?value?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Object specifying a stream key."]moduleAccessDeniedException=structtypenonrect={accessControlAllowOrigin:String_.toption;accessControlExposeHeaders:String_.toption;cacheControl:String_.toption;contentSecurityPolicy:String_.toption;strictTransportSecurity:String_.toption;xContentTypeOptions:String_.toption;xFrameOptions:String_.toption;xAmznErrorType:String_.toption;exceptionMessage:ErrorMessage.toption[@ocaml.doc"User does not have sufficient access to perform this action."]}letmake?accessControlAllowOrigin=fun?accessControlExposeHeaders->fun?cacheControl->fun?contentSecurityPolicy->fun?strictTransportSecurity->fun?xContentTypeOptions->fun?xFrameOptions->fun?xAmznErrorType->fun?exceptionMessage->fun()->{accessControlAllowOrigin;accessControlExposeHeaders;cacheControl;contentSecurityPolicy;strictTransportSecurity;xContentTypeOptions;xFrameOptions;xAmznErrorType;exceptionMessage}letto_valuex=structure_to_value[("Access-Control-Allow-Origin",(Option.mapx.accessControlAllowOrigin~f:String_.to_value));("Access-Control-Expose-Headers",(Option.mapx.accessControlExposeHeaders~f:String_.to_value));("Cache-Control",(Option.mapx.cacheControl~f:String_.to_value));("Content-Security-Policy",(Option.mapx.contentSecurityPolicy~f:String_.to_value));("Strict-Transport-Security",(Option.mapx.strictTransportSecurity~f:String_.to_value));("X-Content-Type-Options",(Option.mapx.xContentTypeOptions~f:String_.to_value));("X-Frame-Options",(Option.mapx.xFrameOptions~f:String_.to_value));("x-amzn-ErrorType",(Option.mapx.xAmznErrorType~f:String_.to_value));("exceptionMessage",(Option.mapx.exceptionMessage~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexceptionMessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"exceptionMessage")inletxAmznErrorType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"x-amzn-ErrorType")inletxFrameOptions=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"X-Frame-Options")inletxContentTypeOptions=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"X-Content-Type-Options")inletstrictTransportSecurity=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Strict-Transport-Security")inletcontentSecurityPolicy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Content-Security-Policy")inletcacheControl=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Cache-Control")inletaccessControlExposeHeaders=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Access-Control-Expose-Headers")inletaccessControlAllowOrigin=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Access-Control-Allow-Origin")inmake?exceptionMessage?xAmznErrorType?xFrameOptions?xContentTypeOptions?strictTransportSecurity?contentSecurityPolicy?cacheControl?accessControlExposeHeaders?accessControlAllowOrigin()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexceptionMessage=field_mapjson__"exceptionMessage"ErrorMessage.of_jsoninletxAmznErrorType=field_mapjson__"xAmznErrorType"String_.of_jsoninletxFrameOptions=field_mapjson__"xFrameOptions"String_.of_jsoninletxContentTypeOptions=field_mapjson__"xContentTypeOptions"String_.of_jsoninletstrictTransportSecurity=field_mapjson__"strictTransportSecurity"String_.of_jsoninletcontentSecurityPolicy=field_mapjson__"contentSecurityPolicy"String_.of_jsoninletcacheControl=field_mapjson__"cacheControl"String_.of_jsoninletaccessControlExposeHeaders=field_mapjson__"accessControlExposeHeaders"String_.of_jsoninletaccessControlAllowOrigin=field_mapjson__"accessControlAllowOrigin"String_.of_jsoninmake?exceptionMessage?xAmznErrorType?xFrameOptions?xContentTypeOptions?strictTransportSecurity?contentSecurityPolicy?cacheControl?accessControlExposeHeaders?accessControlAllowOrigin()letto_jsonv=composed_to_jsonto_valuevendmoduleConflictException=structtypenonrect={accessControlAllowOrigin:String_.toption;accessControlExposeHeaders:String_.toption;cacheControl:String_.toption;contentSecurityPolicy:String_.toption;strictTransportSecurity:String_.toption;xContentTypeOptions:String_.toption;xFrameOptions:String_.toption;xAmznErrorType:String_.toption;exceptionMessage:ErrorMessage.toption[@ocaml.doc"Updating or deleting a resource can cause an inconsistent state."]}letmake?accessControlAllowOrigin=fun?accessControlExposeHeaders->fun?cacheControl->fun?contentSecurityPolicy->fun?strictTransportSecurity->fun?xContentTypeOptions->fun?xFrameOptions->fun?xAmznErrorType->fun?exceptionMessage->fun()->{accessControlAllowOrigin;accessControlExposeHeaders;cacheControl;contentSecurityPolicy;strictTransportSecurity;xContentTypeOptions;xFrameOptions;xAmznErrorType;exceptionMessage}letto_valuex=structure_to_value[("Access-Control-Allow-Origin",(Option.mapx.accessControlAllowOrigin~f:String_.to_value));("Access-Control-Expose-Headers",(Option.mapx.accessControlExposeHeaders~f:String_.to_value));("Cache-Control",(Option.mapx.cacheControl~f:String_.to_value));("Content-Security-Policy",(Option.mapx.contentSecurityPolicy~f:String_.to_value));("Strict-Transport-Security",(Option.mapx.strictTransportSecurity~f:String_.to_value));("X-Content-Type-Options",(Option.mapx.xContentTypeOptions~f:String_.to_value));("X-Frame-Options",(Option.mapx.xFrameOptions~f:String_.to_value));("x-amzn-ErrorType",(Option.mapx.xAmznErrorType~f:String_.to_value));("exceptionMessage",(Option.mapx.exceptionMessage~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexceptionMessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"exceptionMessage")inletxAmznErrorType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"x-amzn-ErrorType")inletxFrameOptions=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"X-Frame-Options")inletxContentTypeOptions=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"X-Content-Type-Options")inletstrictTransportSecurity=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Strict-Transport-Security")inletcontentSecurityPolicy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Content-Security-Policy")inletcacheControl=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Cache-Control")inletaccessControlExposeHeaders=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Access-Control-Expose-Headers")inletaccessControlAllowOrigin=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Access-Control-Allow-Origin")inmake?exceptionMessage?xAmznErrorType?xFrameOptions?xContentTypeOptions?strictTransportSecurity?contentSecurityPolicy?cacheControl?accessControlExposeHeaders?accessControlAllowOrigin()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexceptionMessage=field_mapjson__"exceptionMessage"ErrorMessage.of_jsoninletxAmznErrorType=field_mapjson__"xAmznErrorType"String_.of_jsoninletxFrameOptions=field_mapjson__"xFrameOptions"String_.of_jsoninletxContentTypeOptions=field_mapjson__"xContentTypeOptions"String_.of_jsoninletstrictTransportSecurity=field_mapjson__"strictTransportSecurity"String_.of_jsoninletcontentSecurityPolicy=field_mapjson__"contentSecurityPolicy"String_.of_jsoninletcacheControl=field_mapjson__"cacheControl"String_.of_jsoninletaccessControlExposeHeaders=field_mapjson__"accessControlExposeHeaders"String_.of_jsoninletaccessControlAllowOrigin=field_mapjson__"accessControlAllowOrigin"String_.of_jsoninmake?exceptionMessage?xAmznErrorType?xFrameOptions?xContentTypeOptions?strictTransportSecurity?contentSecurityPolicy?cacheControl?accessControlExposeHeaders?accessControlAllowOrigin()letto_jsonv=composed_to_jsonto_valuevendmodulePendingVerification=structtypenonrect={accessControlAllowOrigin:String_.toption;accessControlExposeHeaders:String_.toption;cacheControl:String_.toption;contentSecurityPolicy:String_.toption;strictTransportSecurity:String_.toption;xContentTypeOptions:String_.toption;xFrameOptions:String_.toption;xAmznErrorType:String_.toption;exceptionMessage:ErrorMessage.toption[@ocaml.doc"Your account is pending verification."]}letmake?accessControlAllowOrigin=fun?accessControlExposeHeaders->fun?cacheControl->fun?contentSecurityPolicy->fun?strictTransportSecurity->fun?xContentTypeOptions->fun?xFrameOptions->fun?xAmznErrorType->fun?exceptionMessage->fun()->{accessControlAllowOrigin;accessControlExposeHeaders;cacheControl;contentSecurityPolicy;strictTransportSecurity;xContentTypeOptions;xFrameOptions;xAmznErrorType;exceptionMessage}letto_valuex=structure_to_value[("Access-Control-Allow-Origin",(Option.mapx.accessControlAllowOrigin~f:String_.to_value));("Access-Control-Expose-Headers",(Option.mapx.accessControlExposeHeaders~f:String_.to_value));("Cache-Control",(Option.mapx.cacheControl~f:String_.to_value));("Content-Security-Policy",(Option.mapx.contentSecurityPolicy~f:String_.to_value));("Strict-Transport-Security",(Option.mapx.strictTransportSecurity~f:String_.to_value));("X-Content-Type-Options",(Option.mapx.xContentTypeOptions~f:String_.to_value));("X-Frame-Options",(Option.mapx.xFrameOptions~f:String_.to_value));("x-amzn-ErrorType",(Option.mapx.xAmznErrorType~f:String_.to_value));("exceptionMessage",(Option.mapx.exceptionMessage~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexceptionMessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"exceptionMessage")inletxAmznErrorType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"x-amzn-ErrorType")inletxFrameOptions=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"X-Frame-Options")inletxContentTypeOptions=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"X-Content-Type-Options")inletstrictTransportSecurity=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Strict-Transport-Security")inletcontentSecurityPolicy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Content-Security-Policy")inletcacheControl=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Cache-Control")inletaccessControlExposeHeaders=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Access-Control-Expose-Headers")inletaccessControlAllowOrigin=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Access-Control-Allow-Origin")inmake?exceptionMessage?xAmznErrorType?xFrameOptions?xContentTypeOptions?strictTransportSecurity?contentSecurityPolicy?cacheControl?accessControlExposeHeaders?accessControlAllowOrigin()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexceptionMessage=field_mapjson__"exceptionMessage"ErrorMessage.of_jsoninletxAmznErrorType=field_mapjson__"xAmznErrorType"String_.of_jsoninletxFrameOptions=field_mapjson__"xFrameOptions"String_.of_jsoninletxContentTypeOptions=field_mapjson__"xContentTypeOptions"String_.of_jsoninletstrictTransportSecurity=field_mapjson__"strictTransportSecurity"String_.of_jsoninletcontentSecurityPolicy=field_mapjson__"contentSecurityPolicy"String_.of_jsoninletcacheControl=field_mapjson__"cacheControl"String_.of_jsoninletaccessControlExposeHeaders=field_mapjson__"accessControlExposeHeaders"String_.of_jsoninletaccessControlAllowOrigin=field_mapjson__"accessControlAllowOrigin"String_.of_jsoninmake?exceptionMessage?xAmznErrorType?xFrameOptions?xContentTypeOptions?strictTransportSecurity?contentSecurityPolicy?cacheControl?accessControlExposeHeaders?accessControlAllowOrigin()letto_jsonv=composed_to_jsonto_valuevendmodulePlaybackRestrictionPolicy=structtypenonrect={arn:PlaybackRestrictionPolicyArn.toption[@ocaml.doc"Playback-restriction-policy ARN"];allowedCountries:PlaybackRestrictionPolicyAllowedCountryList.toption[@ocaml.doc"A list of country codes that control geoblocking restriction. Allowed values are the officially assigned ISO 3166-1 alpha-2 codes. Default: All countries (an empty array)."];allowedOrigins:PlaybackRestrictionPolicyAllowedOriginList.toption[@ocaml.doc"A list of origin sites that control CORS restriction. Allowed values are the same as valid values of the Origin header defined at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin. Default: All origins (an empty array)."];enableStrictOriginEnforcement:PlaybackRestrictionPolicyEnableStrictOriginEnforcement.toption[@ocaml.doc"Whether channel playback is constrained by origin site. Default: false."];name:PlaybackRestrictionPolicyName.toption[@ocaml.doc"Playback-restriction-policy name. The value does not need to be unique."];tags:Tags.toption[@ocaml.doc"Tags attached to the resource. Array of 1-50 maps, each of the form string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and \"Tag naming limits and requirements\"; Amazon IVS has no service-specific constraints beyond what is documented there."]}letmake?arn=fun?allowedCountries->fun?allowedOrigins->fun?enableStrictOriginEnforcement->fun?name->fun?tags->fun()->{arn;allowedCountries;allowedOrigins;enableStrictOriginEnforcement;name;tags}letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:PlaybackRestrictionPolicyArn.to_value));("allowedCountries",(Option.mapx.allowedCountries~f:PlaybackRestrictionPolicyAllowedCountryList.to_value));("allowedOrigins",(Option.mapx.allowedOrigins~f:PlaybackRestrictionPolicyAllowedOriginList.to_value));("enableStrictOriginEnforcement",(Option.mapx.enableStrictOriginEnforcement~f:PlaybackRestrictionPolicyEnableStrictOriginEnforcement.to_value));("name",(Option.mapx.name~f:PlaybackRestrictionPolicyName.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")inletname=(Option.map~f:PlaybackRestrictionPolicyName.of_xml)(Xml.childxml_arg0"name")inletenableStrictOriginEnforcement=(Option.map~f:PlaybackRestrictionPolicyEnableStrictOriginEnforcement.of_xml)(Xml.childxml_arg0"enableStrictOriginEnforcement")inletallowedOrigins=(Option.map~f:PlaybackRestrictionPolicyAllowedOriginList.of_xml)(Xml.childxml_arg0"allowedOrigins")inletallowedCountries=(Option.map~f:PlaybackRestrictionPolicyAllowedCountryList.of_xml)(Xml.childxml_arg0"allowedCountries")inletarn=(Option.map~f:PlaybackRestrictionPolicyArn.of_xml)(Xml.childxml_arg0"arn")inmake?tags?name?enableStrictOriginEnforcement?allowedOrigins?allowedCountries?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninletname=field_mapjson__"name"PlaybackRestrictionPolicyName.of_jsoninletenableStrictOriginEnforcement=field_mapjson__"enableStrictOriginEnforcement"PlaybackRestrictionPolicyEnableStrictOriginEnforcement.of_jsoninletallowedOrigins=field_mapjson__"allowedOrigins"PlaybackRestrictionPolicyAllowedOriginList.of_jsoninletallowedCountries=field_mapjson__"allowedCountries"PlaybackRestrictionPolicyAllowedCountryList.of_jsoninletarn=field_mapjson__"arn"PlaybackRestrictionPolicyArn.of_jsoninmake?tags?name?enableStrictOriginEnforcement?allowedOrigins?allowedCountries?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object representing a policy to constrain playback by country and/or origin sites."]moduleResourceNotFoundException=structtypenonrect={accessControlAllowOrigin:String_.toption;accessControlExposeHeaders:String_.toption;cacheControl:String_.toption;contentSecurityPolicy:String_.toption;strictTransportSecurity:String_.toption;xContentTypeOptions:String_.toption;xFrameOptions:String_.toption;xAmznErrorType:String_.toption;exceptionMessage:ErrorMessage.toption[@ocaml.doc"Request references a resource which does not exist."]}letmake?accessControlAllowOrigin=fun?accessControlExposeHeaders->fun?cacheControl->fun?contentSecurityPolicy->fun?strictTransportSecurity->fun?xContentTypeOptions->fun?xFrameOptions->fun?xAmznErrorType->fun?exceptionMessage->fun()->{accessControlAllowOrigin;accessControlExposeHeaders;cacheControl;contentSecurityPolicy;strictTransportSecurity;xContentTypeOptions;xFrameOptions;xAmznErrorType;exceptionMessage}letto_valuex=structure_to_value[("Access-Control-Allow-Origin",(Option.mapx.accessControlAllowOrigin~f:String_.to_value));("Access-Control-Expose-Headers",(Option.mapx.accessControlExposeHeaders~f:String_.to_value));("Cache-Control",(Option.mapx.cacheControl~f:String_.to_value));("Content-Security-Policy",(Option.mapx.contentSecurityPolicy~f:String_.to_value));("Strict-Transport-Security",(Option.mapx.strictTransportSecurity~f:String_.to_value));("X-Content-Type-Options",(Option.mapx.xContentTypeOptions~f:String_.to_value));("X-Frame-Options",(Option.mapx.xFrameOptions~f:String_.to_value));("x-amzn-ErrorType",(Option.mapx.xAmznErrorType~f:String_.to_value));("exceptionMessage",(Option.mapx.exceptionMessage~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexceptionMessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"exceptionMessage")inletxAmznErrorType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"x-amzn-ErrorType")inletxFrameOptions=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"X-Frame-Options")inletxContentTypeOptions=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"X-Content-Type-Options")inletstrictTransportSecurity=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Strict-Transport-Security")inletcontentSecurityPolicy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Content-Security-Policy")inletcacheControl=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Cache-Control")inletaccessControlExposeHeaders=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Access-Control-Expose-Headers")inletaccessControlAllowOrigin=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Access-Control-Allow-Origin")inmake?exceptionMessage?xAmznErrorType?xFrameOptions?xContentTypeOptions?strictTransportSecurity?contentSecurityPolicy?cacheControl?accessControlExposeHeaders?accessControlAllowOrigin()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexceptionMessage=field_mapjson__"exceptionMessage"ErrorMessage.of_jsoninletxAmznErrorType=field_mapjson__"xAmznErrorType"String_.of_jsoninletxFrameOptions=field_mapjson__"xFrameOptions"String_.of_jsoninletxContentTypeOptions=field_mapjson__"xContentTypeOptions"String_.of_jsoninletstrictTransportSecurity=field_mapjson__"strictTransportSecurity"String_.of_jsoninletcontentSecurityPolicy=field_mapjson__"contentSecurityPolicy"String_.of_jsoninletcacheControl=field_mapjson__"cacheControl"String_.of_jsoninletaccessControlExposeHeaders=field_mapjson__"accessControlExposeHeaders"String_.of_jsoninletaccessControlAllowOrigin=field_mapjson__"accessControlAllowOrigin"String_.of_jsoninmake?exceptionMessage?xAmznErrorType?xFrameOptions?xContentTypeOptions?strictTransportSecurity?contentSecurityPolicy?cacheControl?accessControlExposeHeaders?accessControlAllowOrigin()letto_jsonv=composed_to_jsonto_valuevendmoduleValidationException=structtypenonrect={accessControlAllowOrigin:String_.toption;accessControlExposeHeaders:String_.toption;cacheControl:String_.toption;contentSecurityPolicy:String_.toption;strictTransportSecurity:String_.toption;xContentTypeOptions:String_.toption;xFrameOptions:String_.toption;xAmznErrorType:String_.toption;exceptionMessage:ErrorMessage.toption[@ocaml.doc"The input fails to satisfy the constraints specified by an Amazon Web Services service."]}letmake?accessControlAllowOrigin=fun?accessControlExposeHeaders->fun?cacheControl->fun?contentSecurityPolicy->fun?strictTransportSecurity->fun?xContentTypeOptions->fun?xFrameOptions->fun?xAmznErrorType->fun?exceptionMessage->fun()->{accessControlAllowOrigin;accessControlExposeHeaders;cacheControl;contentSecurityPolicy;strictTransportSecurity;xContentTypeOptions;xFrameOptions;xAmznErrorType;exceptionMessage}letto_valuex=structure_to_value[("Access-Control-Allow-Origin",(Option.mapx.accessControlAllowOrigin~f:String_.to_value));("Access-Control-Expose-Headers",(Option.mapx.accessControlExposeHeaders~f:String_.to_value));("Cache-Control",(Option.mapx.cacheControl~f:String_.to_value));("Content-Security-Policy",(Option.mapx.contentSecurityPolicy~f:String_.to_value));("Strict-Transport-Security",(Option.mapx.strictTransportSecurity~f:String_.to_value));("X-Content-Type-Options",(Option.mapx.xContentTypeOptions~f:String_.to_value));("X-Frame-Options",(Option.mapx.xFrameOptions~f:String_.to_value));("x-amzn-ErrorType",(Option.mapx.xAmznErrorType~f:String_.to_value));("exceptionMessage",(Option.mapx.exceptionMessage~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexceptionMessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"exceptionMessage")inletxAmznErrorType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"x-amzn-ErrorType")inletxFrameOptions=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"X-Frame-Options")inletxContentTypeOptions=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"X-Content-Type-Options")inletstrictTransportSecurity=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Strict-Transport-Security")inletcontentSecurityPolicy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Content-Security-Policy")inletcacheControl=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Cache-Control")inletaccessControlExposeHeaders=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Access-Control-Expose-Headers")inletaccessControlAllowOrigin=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Access-Control-Allow-Origin")inmake?exceptionMessage?xAmznErrorType?xFrameOptions?xContentTypeOptions?strictTransportSecurity?contentSecurityPolicy?cacheControl?accessControlExposeHeaders?accessControlAllowOrigin()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexceptionMessage=field_mapjson__"exceptionMessage"ErrorMessage.of_jsoninletxAmznErrorType=field_mapjson__"xAmznErrorType"String_.of_jsoninletxFrameOptions=field_mapjson__"xFrameOptions"String_.of_jsoninletxContentTypeOptions=field_mapjson__"xContentTypeOptions"String_.of_jsoninletstrictTransportSecurity=field_mapjson__"strictTransportSecurity"String_.of_jsoninletcontentSecurityPolicy=field_mapjson__"contentSecurityPolicy"String_.of_jsoninletcacheControl=field_mapjson__"cacheControl"String_.of_jsoninletaccessControlExposeHeaders=field_mapjson__"accessControlExposeHeaders"String_.of_jsoninletaccessControlAllowOrigin=field_mapjson__"accessControlAllowOrigin"String_.of_jsoninmake?exceptionMessage?xAmznErrorType?xFrameOptions?xContentTypeOptions?strictTransportSecurity?contentSecurityPolicy?cacheControl?accessControlExposeHeaders?accessControlAllowOrigin()letto_jsonv=composed_to_jsonto_valuevendmoduleInternalServerException=structtypenonrect={accessControlAllowOrigin:String_.toption;accessControlExposeHeaders:String_.toption;cacheControl:String_.toption;contentSecurityPolicy:String_.toption;strictTransportSecurity:String_.toption;xContentTypeOptions:String_.toption;xFrameOptions:String_.toption;xAmznErrorType:String_.toption;exceptionMessage:ErrorMessage.toption[@ocaml.doc"Unexpected error during processing of request."]}letmake?accessControlAllowOrigin=fun?accessControlExposeHeaders->fun?cacheControl->fun?contentSecurityPolicy->fun?strictTransportSecurity->fun?xContentTypeOptions->fun?xFrameOptions->fun?xAmznErrorType->fun?exceptionMessage->fun()->{accessControlAllowOrigin;accessControlExposeHeaders;cacheControl;contentSecurityPolicy;strictTransportSecurity;xContentTypeOptions;xFrameOptions;xAmznErrorType;exceptionMessage}letto_valuex=structure_to_value[("Access-Control-Allow-Origin",(Option.mapx.accessControlAllowOrigin~f:String_.to_value));("Access-Control-Expose-Headers",(Option.mapx.accessControlExposeHeaders~f:String_.to_value));("Cache-Control",(Option.mapx.cacheControl~f:String_.to_value));("Content-Security-Policy",(Option.mapx.contentSecurityPolicy~f:String_.to_value));("Strict-Transport-Security",(Option.mapx.strictTransportSecurity~f:String_.to_value));("X-Content-Type-Options",(Option.mapx.xContentTypeOptions~f:String_.to_value));("X-Frame-Options",(Option.mapx.xFrameOptions~f:String_.to_value));("x-amzn-ErrorType",(Option.mapx.xAmznErrorType~f:String_.to_value));("exceptionMessage",(Option.mapx.exceptionMessage~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexceptionMessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"exceptionMessage")inletxAmznErrorType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"x-amzn-ErrorType")inletxFrameOptions=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"X-Frame-Options")inletxContentTypeOptions=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"X-Content-Type-Options")inletstrictTransportSecurity=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Strict-Transport-Security")inletcontentSecurityPolicy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Content-Security-Policy")inletcacheControl=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Cache-Control")inletaccessControlExposeHeaders=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Access-Control-Expose-Headers")inletaccessControlAllowOrigin=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Access-Control-Allow-Origin")inmake?exceptionMessage?xAmznErrorType?xFrameOptions?xContentTypeOptions?strictTransportSecurity?contentSecurityPolicy?cacheControl?accessControlExposeHeaders?accessControlAllowOrigin()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexceptionMessage=field_mapjson__"exceptionMessage"ErrorMessage.of_jsoninletxAmznErrorType=field_mapjson__"xAmznErrorType"String_.of_jsoninletxFrameOptions=field_mapjson__"xFrameOptions"String_.of_jsoninletxContentTypeOptions=field_mapjson__"xContentTypeOptions"String_.of_jsoninletstrictTransportSecurity=field_mapjson__"strictTransportSecurity"String_.of_jsoninletcontentSecurityPolicy=field_mapjson__"contentSecurityPolicy"String_.of_jsoninletcacheControl=field_mapjson__"cacheControl"String_.of_jsoninletaccessControlExposeHeaders=field_mapjson__"accessControlExposeHeaders"String_.of_jsoninletaccessControlAllowOrigin=field_mapjson__"accessControlAllowOrigin"String_.of_jsoninmake?exceptionMessage?xAmznErrorType?xFrameOptions?xContentTypeOptions?strictTransportSecurity?contentSecurityPolicy?cacheControl?accessControlExposeHeaders?accessControlAllowOrigin()letto_jsonv=composed_to_jsonto_valuevendmoduleTagKeyList=structtypenonrect=TagKey.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TagKey.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:TagKey.of_xml)letof_jsonj=list_of_json~kind:"TagKeyList"~of_json:TagKey.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleChannelNotBroadcasting=structtypenonrect={accessControlAllowOrigin:String_.toption;accessControlExposeHeaders:String_.toption;cacheControl:String_.toption;contentSecurityPolicy:String_.toption;strictTransportSecurity:String_.toption;xContentTypeOptions:String_.toption;xFrameOptions:String_.toption;xAmznErrorType:String_.toption;exceptionMessage:ErrorMessage.toption[@ocaml.doc"The stream is offline for the given channel ARN."]}letmake?accessControlAllowOrigin=fun?accessControlExposeHeaders->fun?cacheControl->fun?contentSecurityPolicy->fun?strictTransportSecurity->fun?xContentTypeOptions->fun?xFrameOptions->fun?xAmznErrorType->fun?exceptionMessage->fun()->{accessControlAllowOrigin;accessControlExposeHeaders;cacheControl;contentSecurityPolicy;strictTransportSecurity;xContentTypeOptions;xFrameOptions;xAmznErrorType;exceptionMessage}letto_valuex=structure_to_value[("Access-Control-Allow-Origin",(Option.mapx.accessControlAllowOrigin~f:String_.to_value));("Access-Control-Expose-Headers",(Option.mapx.accessControlExposeHeaders~f:String_.to_value));("Cache-Control",(Option.mapx.cacheControl~f:String_.to_value));("Content-Security-Policy",(Option.mapx.contentSecurityPolicy~f:String_.to_value));("Strict-Transport-Security",(Option.mapx.strictTransportSecurity~f:String_.to_value));("X-Content-Type-Options",(Option.mapx.xContentTypeOptions~f:String_.to_value));("X-Frame-Options",(Option.mapx.xFrameOptions~f:String_.to_value));("x-amzn-ErrorType",(Option.mapx.xAmznErrorType~f:String_.to_value));("exceptionMessage",(Option.mapx.exceptionMessage~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexceptionMessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"exceptionMessage")inletxAmznErrorType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"x-amzn-ErrorType")inletxFrameOptions=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"X-Frame-Options")inletxContentTypeOptions=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"X-Content-Type-Options")inletstrictTransportSecurity=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Strict-Transport-Security")inletcontentSecurityPolicy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Content-Security-Policy")inletcacheControl=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Cache-Control")inletaccessControlExposeHeaders=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Access-Control-Expose-Headers")inletaccessControlAllowOrigin=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Access-Control-Allow-Origin")inmake?exceptionMessage?xAmznErrorType?xFrameOptions?xContentTypeOptions?strictTransportSecurity?contentSecurityPolicy?cacheControl?accessControlExposeHeaders?accessControlAllowOrigin()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexceptionMessage=field_mapjson__"exceptionMessage"ErrorMessage.of_jsoninletxAmznErrorType=field_mapjson__"xAmznErrorType"String_.of_jsoninletxFrameOptions=field_mapjson__"xFrameOptions"String_.of_jsoninletxContentTypeOptions=field_mapjson__"xContentTypeOptions"String_.of_jsoninletstrictTransportSecurity=field_mapjson__"strictTransportSecurity"String_.of_jsoninletcontentSecurityPolicy=field_mapjson__"contentSecurityPolicy"String_.of_jsoninletcacheControl=field_mapjson__"cacheControl"String_.of_jsoninletaccessControlExposeHeaders=field_mapjson__"accessControlExposeHeaders"String_.of_jsoninletaccessControlAllowOrigin=field_mapjson__"accessControlAllowOrigin"String_.of_jsoninmake?exceptionMessage?xAmznErrorType?xFrameOptions?xContentTypeOptions?strictTransportSecurity?contentSecurityPolicy?cacheControl?accessControlExposeHeaders?accessControlAllowOrigin()letto_jsonv=composed_to_jsonto_valuevendmoduleStreamUnavailable=structtypenonrect={accessControlAllowOrigin:String_.toption;accessControlExposeHeaders:String_.toption;cacheControl:String_.toption;contentSecurityPolicy:String_.toption;strictTransportSecurity:String_.toption;xContentTypeOptions:String_.toption;xFrameOptions:String_.toption;xAmznErrorType:String_.toption;exceptionMessage:ErrorMessage.toption[@ocaml.doc"The stream is temporarily unavailable."]}letmake?accessControlAllowOrigin=fun?accessControlExposeHeaders->fun?cacheControl->fun?contentSecurityPolicy->fun?strictTransportSecurity->fun?xContentTypeOptions->fun?xFrameOptions->fun?xAmznErrorType->fun?exceptionMessage->fun()->{accessControlAllowOrigin;accessControlExposeHeaders;cacheControl;contentSecurityPolicy;strictTransportSecurity;xContentTypeOptions;xFrameOptions;xAmznErrorType;exceptionMessage}letto_valuex=structure_to_value[("Access-Control-Allow-Origin",(Option.mapx.accessControlAllowOrigin~f:String_.to_value));("Access-Control-Expose-Headers",(Option.mapx.accessControlExposeHeaders~f:String_.to_value));("Cache-Control",(Option.mapx.cacheControl~f:String_.to_value));("Content-Security-Policy",(Option.mapx.contentSecurityPolicy~f:String_.to_value));("Strict-Transport-Security",(Option.mapx.strictTransportSecurity~f:String_.to_value));("X-Content-Type-Options",(Option.mapx.xContentTypeOptions~f:String_.to_value));("X-Frame-Options",(Option.mapx.xFrameOptions~f:String_.to_value));("x-amzn-ErrorType",(Option.mapx.xAmznErrorType~f:String_.to_value));("exceptionMessage",(Option.mapx.exceptionMessage~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexceptionMessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"exceptionMessage")inletxAmznErrorType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"x-amzn-ErrorType")inletxFrameOptions=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"X-Frame-Options")inletxContentTypeOptions=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"X-Content-Type-Options")inletstrictTransportSecurity=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Strict-Transport-Security")inletcontentSecurityPolicy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Content-Security-Policy")inletcacheControl=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Cache-Control")inletaccessControlExposeHeaders=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Access-Control-Expose-Headers")inletaccessControlAllowOrigin=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Access-Control-Allow-Origin")inmake?exceptionMessage?xAmznErrorType?xFrameOptions?xContentTypeOptions?strictTransportSecurity?contentSecurityPolicy?cacheControl?accessControlExposeHeaders?accessControlAllowOrigin()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexceptionMessage=field_mapjson__"exceptionMessage"ErrorMessage.of_jsoninletxAmznErrorType=field_mapjson__"xAmznErrorType"String_.of_jsoninletxFrameOptions=field_mapjson__"xFrameOptions"String_.of_jsoninletxContentTypeOptions=field_mapjson__"xContentTypeOptions"String_.of_jsoninletstrictTransportSecurity=field_mapjson__"strictTransportSecurity"String_.of_jsoninletcontentSecurityPolicy=field_mapjson__"contentSecurityPolicy"String_.of_jsoninletcacheControl=field_mapjson__"cacheControl"String_.of_jsoninletaccessControlExposeHeaders=field_mapjson__"accessControlExposeHeaders"String_.of_jsoninletaccessControlAllowOrigin=field_mapjson__"accessControlAllowOrigin"String_.of_jsoninmake?exceptionMessage?xAmznErrorType?xFrameOptions?xContentTypeOptions?strictTransportSecurity?contentSecurityPolicy?cacheControl?accessControlExposeHeaders?accessControlAllowOrigin()letto_jsonv=composed_to_jsonto_valuevendmoduleThrottlingException=structtypenonrect={accessControlAllowOrigin:String_.toption;accessControlExposeHeaders:String_.toption;cacheControl:String_.toption;contentSecurityPolicy:String_.toption;strictTransportSecurity:String_.toption;xContentTypeOptions:String_.toption;xFrameOptions:String_.toption;xAmznErrorType:String_.toption;exceptionMessage:ErrorMessage.toption[@ocaml.doc"Request was denied due to request throttling."]}letmake?accessControlAllowOrigin=fun?accessControlExposeHeaders->fun?cacheControl->fun?contentSecurityPolicy->fun?strictTransportSecurity->fun?xContentTypeOptions->fun?xFrameOptions->fun?xAmznErrorType->fun?exceptionMessage->fun()->{accessControlAllowOrigin;accessControlExposeHeaders;cacheControl;contentSecurityPolicy;strictTransportSecurity;xContentTypeOptions;xFrameOptions;xAmznErrorType;exceptionMessage}letto_valuex=structure_to_value[("Access-Control-Allow-Origin",(Option.mapx.accessControlAllowOrigin~f:String_.to_value));("Access-Control-Expose-Headers",(Option.mapx.accessControlExposeHeaders~f:String_.to_value));("Cache-Control",(Option.mapx.cacheControl~f:String_.to_value));("Content-Security-Policy",(Option.mapx.contentSecurityPolicy~f:String_.to_value));("Strict-Transport-Security",(Option.mapx.strictTransportSecurity~f:String_.to_value));("X-Content-Type-Options",(Option.mapx.xContentTypeOptions~f:String_.to_value));("X-Frame-Options",(Option.mapx.xFrameOptions~f:String_.to_value));("x-amzn-ErrorType",(Option.mapx.xAmznErrorType~f:String_.to_value));("exceptionMessage",(Option.mapx.exceptionMessage~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexceptionMessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"exceptionMessage")inletxAmznErrorType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"x-amzn-ErrorType")inletxFrameOptions=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"X-Frame-Options")inletxContentTypeOptions=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"X-Content-Type-Options")inletstrictTransportSecurity=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Strict-Transport-Security")inletcontentSecurityPolicy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Content-Security-Policy")inletcacheControl=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Cache-Control")inletaccessControlExposeHeaders=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Access-Control-Expose-Headers")inletaccessControlAllowOrigin=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Access-Control-Allow-Origin")inmake?exceptionMessage?xAmznErrorType?xFrameOptions?xContentTypeOptions?strictTransportSecurity?contentSecurityPolicy?cacheControl?accessControlExposeHeaders?accessControlAllowOrigin()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexceptionMessage=field_mapjson__"exceptionMessage"ErrorMessage.of_jsoninletxAmznErrorType=field_mapjson__"xAmznErrorType"String_.of_jsoninletxFrameOptions=field_mapjson__"xFrameOptions"String_.of_jsoninletxContentTypeOptions=field_mapjson__"xContentTypeOptions"String_.of_jsoninletstrictTransportSecurity=field_mapjson__"strictTransportSecurity"String_.of_jsoninletcontentSecurityPolicy=field_mapjson__"contentSecurityPolicy"String_.of_jsoninletcacheControl=field_mapjson__"cacheControl"String_.of_jsoninletaccessControlExposeHeaders=field_mapjson__"accessControlExposeHeaders"String_.of_jsoninletaccessControlAllowOrigin=field_mapjson__"accessControlAllowOrigin"String_.of_jsoninmake?exceptionMessage?xAmznErrorType?xFrameOptions?xContentTypeOptions?strictTransportSecurity?contentSecurityPolicy?cacheControl?accessControlExposeHeaders?accessControlAllowOrigin()letto_jsonv=composed_to_jsonto_valuevendmoduleStreamMetadata=structtypenonrect=stringletcontext_="StreamMetadata"letmakei=letopenResultinok_or_failwith(check_string_mini~min:1);iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"StreamMetadata"jletto_json=simple_to_jsonto_valueendmodulePaginationToken=structtypenonrect=stringletcontext_="PaginationToken"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:1024)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9+/=_-]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PaginationToken"jletto_json=simple_to_jsonto_valueendmoduleStreamList=structtypenonrect=StreamSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:StreamSummary.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:StreamSummary.of_xml)letof_jsonj=list_of_json~kind:"StreamList"~of_json:StreamSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMaxStreamResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MaxStreamResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleStreamFilters=structtypenonrect={health:StreamHealth.toption[@ocaml.doc"The stream\226\128\153s health."]}letmake?health=fun()->{health}letto_valuex=structure_to_value[("health",(Option.mapx.health~f:StreamHealth.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lethealth=(Option.map~f:StreamHealth.of_xml)(Xml.childxml_arg0"health")inmake?health()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lethealth=field_mapjson__"health"StreamHealth.of_jsoninmake?health()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Object specifying the stream attribute on which to filter."]moduleStreamSessionList=structtypenonrect=StreamSessionSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:StreamSessionSummary.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:StreamSessionSummary.of_xml)letof_jsonj=list_of_json~kind:"StreamSessionList"~of_json:StreamSessionSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleStreamKeyList=structtypenonrect=StreamKeySummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:StreamKeySummary.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:StreamKeySummary.of_xml)letof_jsonj=list_of_json~kind:"StreamKeyList"~of_json:StreamKeySummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMaxStreamKeyResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:50)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MaxStreamKeyResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleRecordingConfigurationList=structtypenonrect=RecordingConfigurationSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:RecordingConfigurationSummary.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:RecordingConfigurationSummary.of_xml)letof_jsonj=list_of_json~kind:"RecordingConfigurationList"~of_json:RecordingConfigurationSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMaxRecordingConfigurationResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MaxRecordingConfigurationResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmodulePlaybackRestrictionPolicyList=structtypenonrect=PlaybackRestrictionPolicySummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PlaybackRestrictionPolicySummary.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:PlaybackRestrictionPolicySummary.of_xml)letof_jsonj=list_of_json~kind:"PlaybackRestrictionPolicyList"~of_json:PlaybackRestrictionPolicySummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMaxPlaybackRestrictionPolicyResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MaxPlaybackRestrictionPolicyResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmodulePlaybackKeyPairList=structtypenonrect=PlaybackKeyPairSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PlaybackKeyPairSummary.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:PlaybackKeyPairSummary.of_xml)letof_jsonj=list_of_json~kind:"PlaybackKeyPairList"~of_json:PlaybackKeyPairSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMaxPlaybackKeyPairResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MaxPlaybackKeyPairResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleChannelList=structtypenonrect=ChannelSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ChannelSummary.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:ChannelSummary.of_xml)letof_jsonj=list_of_json~kind:"ChannelList"~of_json:ChannelSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMaxChannelResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MaxChannelResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleAdConfigurationList=structtypenonrect=AdConfigurationSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AdConfigurationSummary.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:AdConfigurationSummary.of_xml)letof_jsonj=list_of_json~kind:"AdConfigurationList"~of_json:AdConfigurationSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMaxAdConfigurationResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MaxAdConfigurationResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleAdBreakId=structtypenonrect=stringletcontext_="AdBreakId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:12)>>=(fun()->(check_string_maxi~max:12)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AdBreakId"jletto_json=simple_to_jsonto_valueendmoduleAdDurationSeconds=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:300)>>=(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 AdDurationSeconds"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmodulePlaybackKeyPair=structtypenonrect={arn:PlaybackKeyPairArn.toption[@ocaml.doc"Key-pair ARN."];name:PlaybackKeyPairName.toption[@ocaml.doc"Playback-key-pair name. The value does not need to be unique."];fingerprint:PlaybackKeyPairFingerprint.toption[@ocaml.doc"Key-pair identifier."];tags:Tags.toption[@ocaml.doc"Tags attached to the resource. Array of 1-50 maps, each of the form string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and \"Tag naming limits and requirements\"; Amazon IVS has no service-specific constraints beyond what is documented there."]}letmake?arn=fun?name->fun?fingerprint->fun?tags->fun()->{arn;name;fingerprint;tags}letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:PlaybackKeyPairArn.to_value));("name",(Option.mapx.name~f:PlaybackKeyPairName.to_value));("fingerprint",(Option.mapx.fingerprint~f:PlaybackKeyPairFingerprint.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")inletfingerprint=(Option.map~f:PlaybackKeyPairFingerprint.of_xml)(Xml.childxml_arg0"fingerprint")inletname=(Option.map~f:PlaybackKeyPairName.of_xml)(Xml.childxml_arg0"name")inletarn=(Option.map~f:PlaybackKeyPairArn.of_xml)(Xml.childxml_arg0"arn")inmake?tags?fingerprint?name?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninletfingerprint=field_mapjson__"fingerprint"PlaybackKeyPairFingerprint.of_jsoninletname=field_mapjson__"name"PlaybackKeyPairName.of_jsoninletarn=field_mapjson__"arn"PlaybackKeyPairArn.of_jsoninmake?tags?fingerprint?name?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A key pair used to sign and validate a playback authorization token."]moduleServiceQuotaExceededException=structtypenonrect={accessControlAllowOrigin:String_.toption;accessControlExposeHeaders:String_.toption;cacheControl:String_.toption;contentSecurityPolicy:String_.toption;strictTransportSecurity:String_.toption;xContentTypeOptions:String_.toption;xFrameOptions:String_.toption;xAmznErrorType:String_.toption;exceptionMessage:ErrorMessage.toption[@ocaml.doc"Request would cause a service quota to be exceeded."]}letmake?accessControlAllowOrigin=fun?accessControlExposeHeaders->fun?cacheControl->fun?contentSecurityPolicy->fun?strictTransportSecurity->fun?xContentTypeOptions->fun?xFrameOptions->fun?xAmznErrorType->fun?exceptionMessage->fun()->{accessControlAllowOrigin;accessControlExposeHeaders;cacheControl;contentSecurityPolicy;strictTransportSecurity;xContentTypeOptions;xFrameOptions;xAmznErrorType;exceptionMessage}letto_valuex=structure_to_value[("Access-Control-Allow-Origin",(Option.mapx.accessControlAllowOrigin~f:String_.to_value));("Access-Control-Expose-Headers",(Option.mapx.accessControlExposeHeaders~f:String_.to_value));("Cache-Control",(Option.mapx.cacheControl~f:String_.to_value));("Content-Security-Policy",(Option.mapx.contentSecurityPolicy~f:String_.to_value));("Strict-Transport-Security",(Option.mapx.strictTransportSecurity~f:String_.to_value));("X-Content-Type-Options",(Option.mapx.xContentTypeOptions~f:String_.to_value));("X-Frame-Options",(Option.mapx.xFrameOptions~f:String_.to_value));("x-amzn-ErrorType",(Option.mapx.xAmznErrorType~f:String_.to_value));("exceptionMessage",(Option.mapx.exceptionMessage~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexceptionMessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"exceptionMessage")inletxAmznErrorType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"x-amzn-ErrorType")inletxFrameOptions=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"X-Frame-Options")inletxContentTypeOptions=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"X-Content-Type-Options")inletstrictTransportSecurity=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Strict-Transport-Security")inletcontentSecurityPolicy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Content-Security-Policy")inletcacheControl=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Cache-Control")inletaccessControlExposeHeaders=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Access-Control-Expose-Headers")inletaccessControlAllowOrigin=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Access-Control-Allow-Origin")inmake?exceptionMessage?xAmznErrorType?xFrameOptions?xContentTypeOptions?strictTransportSecurity?contentSecurityPolicy?cacheControl?accessControlExposeHeaders?accessControlAllowOrigin()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexceptionMessage=field_mapjson__"exceptionMessage"ErrorMessage.of_jsoninletxAmznErrorType=field_mapjson__"xAmznErrorType"String_.of_jsoninletxFrameOptions=field_mapjson__"xFrameOptions"String_.of_jsoninletxContentTypeOptions=field_mapjson__"xContentTypeOptions"String_.of_jsoninletstrictTransportSecurity=field_mapjson__"strictTransportSecurity"String_.of_jsoninletcontentSecurityPolicy=field_mapjson__"contentSecurityPolicy"String_.of_jsoninletcacheControl=field_mapjson__"cacheControl"String_.of_jsoninletaccessControlExposeHeaders=field_mapjson__"accessControlExposeHeaders"String_.of_jsoninletaccessControlAllowOrigin=field_mapjson__"accessControlAllowOrigin"String_.of_jsoninmake?exceptionMessage?xAmznErrorType?xFrameOptions?xContentTypeOptions?strictTransportSecurity?contentSecurityPolicy?cacheControl?accessControlExposeHeaders?accessControlAllowOrigin()letto_jsonv=composed_to_jsonto_valuevendmodulePlaybackPublicKeyMaterial=structtypenonrect=stringletcontext_="PlaybackPublicKeyMaterial"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:"PlaybackPublicKeyMaterial"jletto_json=simple_to_jsonto_valueendmoduleStreamSession=structtypenonrect={streamId:StreamId.toption[@ocaml.doc"Unique identifier for a live or previously live stream in the specified channel."];startTime:Time.toption[@ocaml.doc"Time when the channel went live. This is an ISO 8601 timestamp; note that this is returned as a string."];endTime:Time.toption[@ocaml.doc"Time when the channel went offline. This is an ISO 8601 timestamp; note that this is returned as a string. For live streams, this is NULL."];channel:Channel.toption[@ocaml.doc"The properties of the channel at the time of going live."];ingestConfiguration:IngestConfiguration.toption[@ocaml.doc"The properties of the incoming RTMP stream. Note: ingestConfiguration is deprecated in favor of ingestConfigurations but retained to ensure backward compatibility. If multitrack is not enabled, ingestConfiguration and ingestConfigurations contain the same data, namely information about Track0 (the sole track). If multitrack is enabled, ingestConfiguration contains data for only the first track (Track0) and ingestConfigurations contains data for all tracks."];ingestConfigurations:IngestConfigurations.toption[@ocaml.doc"The properties of the incoming RTMP stream. If multitrack is enabled, ingestConfigurations contains data for all tracks; otherwise, it contains data only for Track0 (the sole track)."];recordingConfiguration:RecordingConfiguration.toption[@ocaml.doc"The properties of recording the live stream."];truncatedEvents:StreamEvents.toption[@ocaml.doc"List of Amazon IVS events that the stream encountered. The list is sorted by most recent events and contains up to 500 events. For Amazon IVS events, see Using Amazon EventBridge with Amazon IVS."]}letmake?streamId=fun?startTime->fun?endTime->fun?channel->fun?ingestConfiguration->fun?ingestConfigurations->fun?recordingConfiguration->fun?truncatedEvents->fun()->{streamId;startTime;endTime;channel;ingestConfiguration;ingestConfigurations;recordingConfiguration;truncatedEvents}letto_valuex=structure_to_value[("streamId",(Option.mapx.streamId~f:StreamId.to_value));("startTime",(Option.mapx.startTime~f:Time.to_value));("endTime",(Option.mapx.endTime~f:Time.to_value));("channel",(Option.mapx.channel~f:Channel.to_value));("ingestConfiguration",(Option.mapx.ingestConfiguration~f:IngestConfiguration.to_value));("ingestConfigurations",(Option.mapx.ingestConfigurations~f:IngestConfigurations.to_value));("recordingConfiguration",(Option.mapx.recordingConfiguration~f:RecordingConfiguration.to_value));("truncatedEvents",(Option.mapx.truncatedEvents~f:StreamEvents.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettruncatedEvents=(Option.map~f:StreamEvents.of_xml)(Xml.childxml_arg0"truncatedEvents")inletrecordingConfiguration=(Option.map~f:RecordingConfiguration.of_xml)(Xml.childxml_arg0"recordingConfiguration")inletingestConfigurations=(Option.map~f:IngestConfigurations.of_xml)(Xml.childxml_arg0"ingestConfigurations")inletingestConfiguration=(Option.map~f:IngestConfiguration.of_xml)(Xml.childxml_arg0"ingestConfiguration")inletchannel=(Option.map~f:Channel.of_xml)(Xml.childxml_arg0"channel")inletendTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"endTime")inletstartTime=(Option.map~f:Time.of_xml)(Xml.childxml_arg0"startTime")inletstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"streamId")inmake?truncatedEvents?recordingConfiguration?ingestConfigurations?ingestConfiguration?channel?endTime?startTime?streamId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettruncatedEvents=field_mapjson__"truncatedEvents"StreamEvents.of_jsoninletrecordingConfiguration=field_mapjson__"recordingConfiguration"RecordingConfiguration.of_jsoninletingestConfigurations=field_mapjson__"ingestConfigurations"IngestConfigurations.of_jsoninletingestConfiguration=field_mapjson__"ingestConfiguration"IngestConfiguration.of_jsoninletchannel=field_mapjson__"channel"Channel.of_jsoninletendTime=field_mapjson__"endTime"Time.of_jsoninletstartTime=field_mapjson__"startTime"Time.of_jsoninletstreamId=field_mapjson__"streamId"StreamId.of_jsoninmake?truncatedEvents?recordingConfiguration?ingestConfigurations?ingestConfiguration?channel?endTime?startTime?streamId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Object that captures the Amazon IVS configuration that the customer provisioned, the ingest configurations that the broadcaster used, and the most recent Amazon IVS stream events it encountered."]moduleStream=structtypenonrect={channelArn:ChannelArn.toption[@ocaml.doc"Channel ARN for the stream."];streamId:StreamId.toption[@ocaml.doc"Unique identifier for a live or previously live stream in the specified channel."];playbackUrl:PlaybackURL.toption[@ocaml.doc"URL of the master playlist, required by the video player to play the HLS stream."];startTime:StreamStartTime.toption[@ocaml.doc"Time of the stream\226\128\153s start. This is an ISO 8601 timestamp; note that this is returned as a string."];state:StreamState.toption[@ocaml.doc"The stream\226\128\153s state. Do not rely on the OFFLINE state, as the API may not return it; instead, a \"NotBroadcasting\" error will indicate that the stream is not live."];health:StreamHealth.toption[@ocaml.doc"The stream\226\128\153s health."];viewerCount:StreamViewerCount.toption[@ocaml.doc"A count of concurrent views of the stream. Typically, a new view appears in viewerCount within 15 seconds of when video playback starts and a view is removed from viewerCount within 1 minute of when video playback ends. A value of -1 indicates that the request timed out; in this case, retry."]}letmake?channelArn=fun?streamId->fun?playbackUrl->fun?startTime->fun?state->fun?health->fun?viewerCount->fun()->{channelArn;streamId;playbackUrl;startTime;state;health;viewerCount}letto_valuex=structure_to_value[("channelArn",(Option.mapx.channelArn~f:ChannelArn.to_value));("streamId",(Option.mapx.streamId~f:StreamId.to_value));("playbackUrl",(Option.mapx.playbackUrl~f:PlaybackURL.to_value));("startTime",(Option.mapx.startTime~f:StreamStartTime.to_value));("state",(Option.mapx.state~f:StreamState.to_value));("health",(Option.mapx.health~f:StreamHealth.to_value));("viewerCount",(Option.mapx.viewerCount~f:StreamViewerCount.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letviewerCount=(Option.map~f:StreamViewerCount.of_xml)(Xml.childxml_arg0"viewerCount")inlethealth=(Option.map~f:StreamHealth.of_xml)(Xml.childxml_arg0"health")inletstate=(Option.map~f:StreamState.of_xml)(Xml.childxml_arg0"state")inletstartTime=(Option.map~f:StreamStartTime.of_xml)(Xml.childxml_arg0"startTime")inletplaybackUrl=(Option.map~f:PlaybackURL.of_xml)(Xml.childxml_arg0"playbackUrl")inletstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"streamId")inletchannelArn=(Option.map~f:ChannelArn.of_xml)(Xml.childxml_arg0"channelArn")inmake?viewerCount?health?state?startTime?playbackUrl?streamId?channelArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letviewerCount=field_mapjson__"viewerCount"StreamViewerCount.of_jsoninlethealth=field_mapjson__"health"StreamHealth.of_jsoninletstate=field_mapjson__"state"StreamState.of_jsoninletstartTime=field_mapjson__"startTime"StreamStartTime.of_jsoninletplaybackUrl=field_mapjson__"playbackUrl"PlaybackURL.of_jsoninletstreamId=field_mapjson__"streamId"StreamId.of_jsoninletchannelArn=field_mapjson__"channelArn"ChannelArn.of_jsoninmake?viewerCount?health?state?startTime?playbackUrl?streamId?channelArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies a live video stream that has been ingested and distributed."]moduleAdConfiguration=structtypenonrect={arn:AdConfigurationArn.toption[@ocaml.doc"Ad configuration ARN."];name:AdConfigurationName.toption[@ocaml.doc"Ad configuration name. Defaults to \226\128\156\226\128\157."];mediaTailorPlaybackConfigurations:MediaTailorPlaybackConfigurationsList.toption[@ocaml.doc"List of integration configurations with media tailor resources."];tags:Tags.toption[@ocaml.doc"Tags attached to the resource. Array of 1-50 maps, each of the form string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and \"Tag naming limits and requirements\"; Amazon IVS has no service-specific constraints beyond what is documented there."]}letmake?arn=fun?name->fun?mediaTailorPlaybackConfigurations->fun?tags->fun()->{arn;name;mediaTailorPlaybackConfigurations;tags}letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:AdConfigurationArn.to_value));("name",(Option.mapx.name~f:AdConfigurationName.to_value));("mediaTailorPlaybackConfigurations",(Option.mapx.mediaTailorPlaybackConfigurations~f:MediaTailorPlaybackConfigurationsList.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")inletmediaTailorPlaybackConfigurations=(Option.map~f:MediaTailorPlaybackConfigurationsList.of_xml)(Xml.childxml_arg0"mediaTailorPlaybackConfigurations")inletname=(Option.map~f:AdConfigurationName.of_xml)(Xml.childxml_arg0"name")inletarn=(Option.map~f:AdConfigurationArn.of_xml)(Xml.childxml_arg0"arn")inmake?tags?mediaTailorPlaybackConfigurations?name?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninletmediaTailorPlaybackConfigurations=field_mapjson__"mediaTailorPlaybackConfigurations"MediaTailorPlaybackConfigurationsList.of_jsoninletname=field_mapjson__"name"AdConfigurationName.of_jsoninletarn=field_mapjson__"arn"AdConfigurationArn.of_jsoninmake?tags?mediaTailorPlaybackConfigurations?name?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Object specifying a configuration for a server-side advertising insertion (which can be triggered with the operation)."]moduleBatchStartViewerSessionRevocationErrors=structtypenonrect=BatchStartViewerSessionRevocationError.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:BatchStartViewerSessionRevocationError.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:BatchStartViewerSessionRevocationError.of_xml)letof_jsonj=list_of_json~kind:"BatchStartViewerSessionRevocationErrors"~of_json:BatchStartViewerSessionRevocationError.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBatchStartViewerSessionRevocationViewerSessionList=structtypenonrect=BatchStartViewerSessionRevocationViewerSession.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:20)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:BatchStartViewerSessionRevocationViewerSession.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:BatchStartViewerSessionRevocationViewerSession.of_xml)letof_jsonj=list_of_json~kind:"BatchStartViewerSessionRevocationViewerSessionList"~of_json:BatchStartViewerSessionRevocationViewerSession.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBatchErrors=structtypenonrect=BatchError.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:BatchError.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:BatchError.of_xml)letof_jsonj=list_of_json~kind:"BatchErrors"~of_json:BatchError.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleServiceUnavailable=structtypenonrect={accessControlAllowOrigin:String_.toption;accessControlExposeHeaders:String_.toption;cacheControl:String_.toption;contentSecurityPolicy:String_.toption;strictTransportSecurity:String_.toption;xContentTypeOptions:String_.toption;xFrameOptions:String_.toption;xAmznErrorType:String_.toption;exceptionMessage:ErrorMessage.toption}letmake?accessControlAllowOrigin=fun?accessControlExposeHeaders->fun?cacheControl->fun?contentSecurityPolicy->fun?strictTransportSecurity->fun?xContentTypeOptions->fun?xFrameOptions->fun?xAmznErrorType->fun?exceptionMessage->fun()->{accessControlAllowOrigin;accessControlExposeHeaders;cacheControl;contentSecurityPolicy;strictTransportSecurity;xContentTypeOptions;xFrameOptions;xAmznErrorType;exceptionMessage}letto_valuex=structure_to_value[("Access-Control-Allow-Origin",(Option.mapx.accessControlAllowOrigin~f:String_.to_value));("Access-Control-Expose-Headers",(Option.mapx.accessControlExposeHeaders~f:String_.to_value));("Cache-Control",(Option.mapx.cacheControl~f:String_.to_value));("Content-Security-Policy",(Option.mapx.contentSecurityPolicy~f:String_.to_value));("Strict-Transport-Security",(Option.mapx.strictTransportSecurity~f:String_.to_value));("X-Content-Type-Options",(Option.mapx.xContentTypeOptions~f:String_.to_value));("X-Frame-Options",(Option.mapx.xFrameOptions~f:String_.to_value));("x-amzn-ErrorType",(Option.mapx.xAmznErrorType~f:String_.to_value));("exceptionMessage",(Option.mapx.exceptionMessage~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexceptionMessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"exceptionMessage")inletxAmznErrorType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"x-amzn-ErrorType")inletxFrameOptions=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"X-Frame-Options")inletxContentTypeOptions=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"X-Content-Type-Options")inletstrictTransportSecurity=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Strict-Transport-Security")inletcontentSecurityPolicy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Content-Security-Policy")inletcacheControl=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Cache-Control")inletaccessControlExposeHeaders=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Access-Control-Expose-Headers")inletaccessControlAllowOrigin=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Access-Control-Allow-Origin")inmake?exceptionMessage?xAmznErrorType?xFrameOptions?xContentTypeOptions?strictTransportSecurity?contentSecurityPolicy?cacheControl?accessControlExposeHeaders?accessControlAllowOrigin()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexceptionMessage=field_mapjson__"exceptionMessage"ErrorMessage.of_jsoninletxAmznErrorType=field_mapjson__"xAmznErrorType"String_.of_jsoninletxFrameOptions=field_mapjson__"xFrameOptions"String_.of_jsoninletxContentTypeOptions=field_mapjson__"xContentTypeOptions"String_.of_jsoninletstrictTransportSecurity=field_mapjson__"strictTransportSecurity"String_.of_jsoninletcontentSecurityPolicy=field_mapjson__"contentSecurityPolicy"String_.of_jsoninletcacheControl=field_mapjson__"cacheControl"String_.of_jsoninletaccessControlExposeHeaders=field_mapjson__"accessControlExposeHeaders"String_.of_jsoninletaccessControlAllowOrigin=field_mapjson__"accessControlAllowOrigin"String_.of_jsoninmake?exceptionMessage?xAmznErrorType?xFrameOptions?xContentTypeOptions?strictTransportSecurity?contentSecurityPolicy?cacheControl?accessControlExposeHeaders?accessControlAllowOrigin()letto_jsonv=composed_to_jsonto_valuevendmoduleStreamKeys=structtypenonrect=StreamKey.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:StreamKey.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:StreamKey.of_xml)letof_jsonj=list_of_json~kind:"StreamKeys"~of_json:StreamKey.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleStreamKeyArnList=structtypenonrect=StreamKeyArn.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:StreamKeyArn.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:StreamKeyArn.of_xml)letof_jsonj=list_of_json~kind:"StreamKeyArnList"~of_json:StreamKeyArn.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleChannels=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:"Channels"~of_json:Channel.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleChannelArnList=structtypenonrect=ChannelArn.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ChannelArn.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:ChannelArn.of_xml)letof_jsonj=list_of_json~kind:"ChannelArnList"~of_json:ChannelArn.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUpdatePlaybackRestrictionPolicyResponse=structtypenonrect={playbackRestrictionPolicy:PlaybackRestrictionPolicy.toption[@ocaml.doc"Object specifying the updated policy."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`PendingVerificationofPendingVerification.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?playbackRestrictionPolicy=fun()->{playbackRestrictionPolicy}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"PendingVerification"->`PendingVerification(PendingVerification.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"PendingVerification"->`PendingVerification(PendingVerification.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`PendingVerificatione->`Assoc[("error",(`String"PendingVerification"));("details",(PendingVerification.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("playbackRestrictionPolicy",(Option.mapx.playbackRestrictionPolicy~f:PlaybackRestrictionPolicy.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letplaybackRestrictionPolicy=(Option.map~f:PlaybackRestrictionPolicy.of_xml)(Xml.childxml_arg0"playbackRestrictionPolicy")inmake?playbackRestrictionPolicy()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letplaybackRestrictionPolicy=field_mapjson__"playbackRestrictionPolicy"PlaybackRestrictionPolicy.of_jsoninmake?playbackRestrictionPolicy()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates a specified playback restriction policy."]moduleUpdatePlaybackRestrictionPolicyRequest=structtypenonrect={arn:PlaybackRestrictionPolicyArn.t[@ocaml.doc"ARN of the playback-restriction-policy to be updated."];allowedCountries:PlaybackRestrictionPolicyAllowedCountryList.toption[@ocaml.doc"A list of country codes that control geoblocking restriction. Allowed values are the officially assigned ISO 3166-1 alpha-2 codes. Default: All countries (an empty array)."];allowedOrigins:PlaybackRestrictionPolicyAllowedOriginList.toption[@ocaml.doc"A list of origin sites that control CORS restriction. Allowed values are the same as valid values of the Origin header defined at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin. Default: All origins (an empty array)."];enableStrictOriginEnforcement:PlaybackRestrictionPolicyEnableStrictOriginEnforcement.toption[@ocaml.doc"Whether channel playback is constrained by origin site. Default: false."];name:PlaybackRestrictionPolicyName.toption[@ocaml.doc"Playback-restriction-policy name. The value does not need to be unique."]}letcontext_="UpdatePlaybackRestrictionPolicyRequest"letmake?allowedCountries=fun?allowedOrigins->fun?enableStrictOriginEnforcement->fun?name->fun~arn->fun()->{allowedCountries;allowedOrigins;enableStrictOriginEnforcement;name;arn}letto_valuex=structure_to_value[("arn",(Some(PlaybackRestrictionPolicyArn.to_valuex.arn)));("allowedCountries",(Option.mapx.allowedCountries~f:PlaybackRestrictionPolicyAllowedCountryList.to_value));("allowedOrigins",(Option.mapx.allowedOrigins~f:PlaybackRestrictionPolicyAllowedOriginList.to_value));("enableStrictOriginEnforcement",(Option.mapx.enableStrictOriginEnforcement~f:PlaybackRestrictionPolicyEnableStrictOriginEnforcement.to_value));("name",(Option.mapx.name~f:PlaybackRestrictionPolicyName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=(Option.map~f:PlaybackRestrictionPolicyName.of_xml)(Xml.childxml_arg0"name")inletenableStrictOriginEnforcement=(Option.map~f:PlaybackRestrictionPolicyEnableStrictOriginEnforcement.of_xml)(Xml.childxml_arg0"enableStrictOriginEnforcement")inletallowedOrigins=(Option.map~f:PlaybackRestrictionPolicyAllowedOriginList.of_xml)(Xml.childxml_arg0"allowedOrigins")inletallowedCountries=(Option.map~f:PlaybackRestrictionPolicyAllowedCountryList.of_xml)(Xml.childxml_arg0"allowedCountries")inletarn=PlaybackRestrictionPolicyArn.of_xml(Xml.child_exn~context:context_xml_arg0"arn")inmake?name?enableStrictOriginEnforcement?allowedOrigins?allowedCountries~arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_mapjson__"name"PlaybackRestrictionPolicyName.of_jsoninletenableStrictOriginEnforcement=field_mapjson__"enableStrictOriginEnforcement"PlaybackRestrictionPolicyEnableStrictOriginEnforcement.of_jsoninletallowedOrigins=field_mapjson__"allowedOrigins"PlaybackRestrictionPolicyAllowedOriginList.of_jsoninletallowedCountries=field_mapjson__"allowedCountries"PlaybackRestrictionPolicyAllowedCountryList.of_jsoninletarn=field_map_exnjson__"arn"PlaybackRestrictionPolicyArn.of_jsoninmake?name?enableStrictOriginEnforcement?allowedOrigins?allowedCountries~arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates a specified playback restriction policy."]moduleUpdateChannelResponse=structtypenonrect={channel:Channel.toption[@ocaml.doc"Object specifying the updated channel."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`PendingVerificationofPendingVerification.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?channel=fun()->{channel}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"PendingVerification"->`PendingVerification(PendingVerification.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"PendingVerification"->`PendingVerification(PendingVerification.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`PendingVerificatione->`Assoc[("error",(`String"PendingVerification"));("details",(PendingVerification.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("channel",(Option.mapx.channel~f:Channel.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letchannel=(Option.map~f:Channel.of_xml)(Xml.childxml_arg0"channel")inmake?channel()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letchannel=field_mapjson__"channel"Channel.of_jsoninmake?channel()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates a channel's configuration. Live channels cannot be updated. You must stop the ongoing stream, update the channel, and restart the stream for the changes to take effect."]moduleUpdateChannelRequest=structtypenonrect={arn:ChannelArn.t[@ocaml.doc"ARN of the channel to be updated."];name:ChannelName.toption[@ocaml.doc"Channel name."];latencyMode:ChannelLatencyMode.toption[@ocaml.doc"Channel latency mode. Use NORMAL to broadcast and deliver live video up to Full HD. Use LOW for near-real-time interaction with viewers."];type_:ChannelType.toption[@ocaml.doc"Channel type, which determines the allowable resolution and bitrate. If you exceed the allowable input resolution or bitrate, the stream probably will disconnect immediately. Default: STANDARD. For details, see Channel Types."];authorized:Boolean.toption[@ocaml.doc"Whether the channel is private (enabled for playback authorization)."];recordingConfigurationArn:ChannelRecordingConfigurationArn.toption[@ocaml.doc"Recording-configuration ARN. A valid ARN value here both specifies the ARN and enables recording. If this is set to an empty string, recording is disabled."];insecureIngest:Boolean.toption[@ocaml.doc"Whether the channel allows insecure RTMP and SRT ingest. Default: false."];preset:TranscodePreset.toption[@ocaml.doc"Optional transcode preset for the channel. This is selectable only for ADVANCED_HD and ADVANCED_SD channel types. For those channel types, the default preset is HIGHER_BANDWIDTH_DELIVERY. For other channel types (BASIC and STANDARD), preset is the empty string (\"\")."];playbackRestrictionPolicyArn:ChannelPlaybackRestrictionPolicyArn.toption[@ocaml.doc"Playback-restriction-policy ARN. A valid ARN value here both specifies the ARN and enables playback restriction. If this is set to an empty string, playback restriction policy is disabled."];multitrackInputConfiguration:MultitrackInputConfiguration.toption[@ocaml.doc"Object specifying multitrack input configuration. Default: no multitrack input configuration is specified."];containerFormat:ContainerFormat.toption[@ocaml.doc"Indicates which content-packaging format is used (MPEG-TS or fMP4). If multitrackInputConfiguration is specified and enabled is true, then containerFormat is required and must be set to FRAGMENTED_MP4. Otherwise, containerFormat may be set to TS or FRAGMENTED_MP4. Default: TS."];adConfigurationArn:ChannelAdConfigurationArn.toption[@ocaml.doc"ARN of the ad configuration associated with the channel."]}letcontext_="UpdateChannelRequest"letmake?name=fun?latencyMode->fun?type_->fun?authorized->fun?recordingConfigurationArn->fun?insecureIngest->fun?preset->fun?playbackRestrictionPolicyArn->fun?multitrackInputConfiguration->fun?containerFormat->fun?adConfigurationArn->fun~arn->fun()->{name;latencyMode;type_;authorized;recordingConfigurationArn;insecureIngest;preset;playbackRestrictionPolicyArn;multitrackInputConfiguration;containerFormat;adConfigurationArn;arn}letto_valuex=structure_to_value[("arn",(Some(ChannelArn.to_valuex.arn)));("name",(Option.mapx.name~f:ChannelName.to_value));("latencyMode",(Option.mapx.latencyMode~f:ChannelLatencyMode.to_value));("type",(Option.mapx.type_~f:ChannelType.to_value));("authorized",(Option.mapx.authorized~f:Boolean.to_value));("recordingConfigurationArn",(Option.mapx.recordingConfigurationArn~f:ChannelRecordingConfigurationArn.to_value));("insecureIngest",(Option.mapx.insecureIngest~f:Boolean.to_value));("preset",(Option.mapx.preset~f:TranscodePreset.to_value));("playbackRestrictionPolicyArn",(Option.mapx.playbackRestrictionPolicyArn~f:ChannelPlaybackRestrictionPolicyArn.to_value));("multitrackInputConfiguration",(Option.mapx.multitrackInputConfiguration~f:MultitrackInputConfiguration.to_value));("containerFormat",(Option.mapx.containerFormat~f:ContainerFormat.to_value));("adConfigurationArn",(Option.mapx.adConfigurationArn~f:ChannelAdConfigurationArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letadConfigurationArn=(Option.map~f:ChannelAdConfigurationArn.of_xml)(Xml.childxml_arg0"adConfigurationArn")inletcontainerFormat=(Option.map~f:ContainerFormat.of_xml)(Xml.childxml_arg0"containerFormat")inletmultitrackInputConfiguration=(Option.map~f:MultitrackInputConfiguration.of_xml)(Xml.childxml_arg0"multitrackInputConfiguration")inletplaybackRestrictionPolicyArn=(Option.map~f:ChannelPlaybackRestrictionPolicyArn.of_xml)(Xml.childxml_arg0"playbackRestrictionPolicyArn")inletpreset=(Option.map~f:TranscodePreset.of_xml)(Xml.childxml_arg0"preset")inletinsecureIngest=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"insecureIngest")inletrecordingConfigurationArn=(Option.map~f:ChannelRecordingConfigurationArn.of_xml)(Xml.childxml_arg0"recordingConfigurationArn")inletauthorized=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"authorized")inlettype_=(Option.map~f:ChannelType.of_xml)(Xml.childxml_arg0"type")inletlatencyMode=(Option.map~f:ChannelLatencyMode.of_xml)(Xml.childxml_arg0"latencyMode")inletname=(Option.map~f:ChannelName.of_xml)(Xml.childxml_arg0"name")inletarn=ChannelArn.of_xml(Xml.child_exn~context:context_xml_arg0"arn")inmake?adConfigurationArn?containerFormat?multitrackInputConfiguration?playbackRestrictionPolicyArn?preset?insecureIngest?recordingConfigurationArn?authorized?type_?latencyMode?name~arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letadConfigurationArn=field_mapjson__"adConfigurationArn"ChannelAdConfigurationArn.of_jsoninletcontainerFormat=field_mapjson__"containerFormat"ContainerFormat.of_jsoninletmultitrackInputConfiguration=field_mapjson__"multitrackInputConfiguration"MultitrackInputConfiguration.of_jsoninletplaybackRestrictionPolicyArn=field_mapjson__"playbackRestrictionPolicyArn"ChannelPlaybackRestrictionPolicyArn.of_jsoninletpreset=field_mapjson__"preset"TranscodePreset.of_jsoninletinsecureIngest=field_mapjson__"insecureIngest"Boolean.of_jsoninletrecordingConfigurationArn=field_mapjson__"recordingConfigurationArn"ChannelRecordingConfigurationArn.of_jsoninletauthorized=field_mapjson__"authorized"Boolean.of_jsoninlettype_=field_mapjson__"type"ChannelType.of_jsoninletlatencyMode=field_mapjson__"latencyMode"ChannelLatencyMode.of_jsoninletname=field_mapjson__"name"ChannelName.of_jsoninletarn=field_map_exnjson__"arn"ChannelArn.of_jsoninmake?adConfigurationArn?containerFormat?multitrackInputConfiguration?playbackRestrictionPolicyArn?preset?insecureIngest?recordingConfigurationArn?authorized?type_?latencyMode?name~arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates a channel's configuration. Live channels cannot be updated. You must stop the ongoing stream, update the channel, and restart the stream for the changes to take effect."]moduleUntagResourceResponse=structtypenonrect=unittypenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes tags from the resource with the specified ARN."]moduleUntagResourceRequest=structtypenonrect={resourceArn:ResourceArn.t[@ocaml.doc"ARN of the resource for which tags are to be removed. The ARN must be URL-encoded."];tagKeys:TagKeyList.t[@ocaml.doc"Array of tag keys (strings) for the tags to be removed. See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and \"Tag naming limits and requirements\"; Amazon IVS has no service-specific constraints beyond what is documented there."]}letcontext_="UntagResourceRequest"letmake~resourceArn=fun~tagKeys->fun()->{resourceArn;tagKeys}letto_valuex=structure_to_value[("resourceArn",(Some(ResourceArn.to_valuex.resourceArn)));("tagKeys",(Some(TagKeyList.to_valuex.tagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagKeys=TagKeyList.of_xml(Xml.child_exn~context:context_xml_arg0"tagKeys")inletresourceArn=ResourceArn.of_xml(Xml.child_exn~context:context_xml_arg0"resourceArn")inmake~tagKeys~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagKeys=field_map_exnjson__"tagKeys"TagKeyList.of_jsoninletresourceArn=field_map_exnjson__"resourceArn"ResourceArn.of_jsoninmake~tagKeys~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes tags from the resource with the specified ARN."]moduleTagResourceResponse=structtypenonrect=unittypenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds or updates tags for the Amazon Web Services resource with the specified ARN."]moduleTagResourceRequest=structtypenonrect={resourceArn:ResourceArn.t[@ocaml.doc"ARN of the resource for which tags are to be added or updated. The ARN must be URL-encoded."];tags:Tags.t[@ocaml.doc"Array of tags to be added or updated. Array of maps, each of the form string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and \"Tag naming limits and requirements\"; Amazon IVS has no service-specific constraints beyond what is documented there."]}letcontext_="TagResourceRequest"letmake~resourceArn=fun~tags->fun()->{resourceArn;tags}letto_valuex=structure_to_value[("resourceArn",(Some(ResourceArn.to_valuex.resourceArn)));("tags",(Some(Tags.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=Tags.of_xml(Xml.child_exn~context:context_xml_arg0"tags")inletresourceArn=ResourceArn.of_xml(Xml.child_exn~context:context_xml_arg0"resourceArn")inmake~tags~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_map_exnjson__"tags"Tags.of_jsoninletresourceArn=field_map_exnjson__"resourceArn"ResourceArn.of_jsoninmake~tags~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds or updates tags for the Amazon Web Services resource with the specified ARN."]moduleStopStreamResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ChannelNotBroadcastingofChannelNotBroadcasting.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`StreamUnavailableofStreamUnavailable.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ChannelNotBroadcasting"->`ChannelNotBroadcasting(ChannelNotBroadcasting.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"StreamUnavailable"->`StreamUnavailable(StreamUnavailable.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ChannelNotBroadcasting"->`ChannelNotBroadcasting(ChannelNotBroadcasting.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"StreamUnavailable"->`StreamUnavailable(StreamUnavailable.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ChannelNotBroadcastinge->`Assoc[("error",(`String"ChannelNotBroadcasting"));("details",(ChannelNotBroadcasting.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`StreamUnavailablee->`Assoc[("error",(`String"StreamUnavailable"));("details",(StreamUnavailable.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Disconnects the incoming RTMPS stream for the specified channel. Can be used in conjunction with DeleteStreamKey to prevent further streaming to a channel. Many streaming client-software libraries automatically reconnect a dropped RTMPS session, so to stop the stream permanently, you may want to first revoke the streamKey attached to the channel."]moduleStopStreamRequest=structtypenonrect={channelArn:ChannelArn.t[@ocaml.doc"ARN of the channel for which the stream is to be stopped."]}letcontext_="StopStreamRequest"letmake~channelArn=fun()->{channelArn}letto_valuex=structure_to_value[("channelArn",(Some(ChannelArn.to_valuex.channelArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letchannelArn=ChannelArn.of_xml(Xml.child_exn~context:context_xml_arg0"channelArn")inmake~channelArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letchannelArn=field_map_exnjson__"channelArn"ChannelArn.of_jsoninmake~channelArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Disconnects the incoming RTMPS stream for the specified channel. Can be used in conjunction with DeleteStreamKey to prevent further streaming to a channel. Many streaming client-software libraries automatically reconnect a dropped RTMPS session, so to stop the stream permanently, you may want to first revoke the streamKey attached to the channel."]moduleStartViewerSessionRevocationResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`PendingVerificationofPendingVerification.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"PendingVerification"->`PendingVerification(PendingVerification.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"PendingVerification"->`PendingVerification(PendingVerification.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`PendingVerificatione->`Assoc[("error",(`String"PendingVerification"));("details",(PendingVerification.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Starts the process of revoking the viewer session associated with a specified channel ARN and viewer ID. Optionally, you can provide a version to revoke viewer sessions less than and including that version. For instructions on associating a viewer ID with a viewer session, see Setting Up Private Channels."]moduleStartViewerSessionRevocationRequest=structtypenonrect={channelArn:ChannelArn.t[@ocaml.doc"The ARN of the channel associated with the viewer session to revoke."];viewerId:ViewerId.t[@ocaml.doc"The ID of the viewer associated with the viewer session to revoke. Do not use this field for personally identifying, confidential, or sensitive information."];viewerSessionVersionsLessThanOrEqualTo:ViewerSessionVersion.toption[@ocaml.doc"An optional filter on which versions of the viewer session to revoke. All versions less than or equal to the specified version will be revoked. Default: 0."]}letcontext_="StartViewerSessionRevocationRequest"letmake?viewerSessionVersionsLessThanOrEqualTo=fun~channelArn->fun~viewerId->fun()->{viewerSessionVersionsLessThanOrEqualTo;channelArn;viewerId}letto_valuex=structure_to_value[("channelArn",(Some(ChannelArn.to_valuex.channelArn)));("viewerId",(Some(ViewerId.to_valuex.viewerId)));("viewerSessionVersionsLessThanOrEqualTo",(Option.mapx.viewerSessionVersionsLessThanOrEqualTo~f:ViewerSessionVersion.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letviewerSessionVersionsLessThanOrEqualTo=(Option.map~f:ViewerSessionVersion.of_xml)(Xml.childxml_arg0"viewerSessionVersionsLessThanOrEqualTo")inletviewerId=ViewerId.of_xml(Xml.child_exn~context:context_xml_arg0"viewerId")inletchannelArn=ChannelArn.of_xml(Xml.child_exn~context:context_xml_arg0"channelArn")inmake?viewerSessionVersionsLessThanOrEqualTo~viewerId~channelArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letviewerSessionVersionsLessThanOrEqualTo=field_mapjson__"viewerSessionVersionsLessThanOrEqualTo"ViewerSessionVersion.of_jsoninletviewerId=field_map_exnjson__"viewerId"ViewerId.of_jsoninletchannelArn=field_map_exnjson__"channelArn"ChannelArn.of_jsoninmake?viewerSessionVersionsLessThanOrEqualTo~viewerId~channelArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Starts the process of revoking the viewer session associated with a specified channel ARN and viewer ID. Optionally, you can provide a version to revoke viewer sessions less than and including that version. For instructions on associating a viewer ID with a viewer session, see Setting Up Private Channels."]modulePutMetadataRequest=structtypenonrect={channelArn:ChannelArn.t[@ocaml.doc"ARN of the channel into which metadata is inserted. This channel must have an active stream."];metadata:StreamMetadata.t[@ocaml.doc"Metadata to insert into the stream. Maximum: 1 KB per request."]}letcontext_="PutMetadataRequest"letmake~channelArn=fun~metadata->fun()->{channelArn;metadata}letto_valuex=structure_to_value[("channelArn",(Some(ChannelArn.to_valuex.channelArn)));("metadata",(Some(StreamMetadata.to_valuex.metadata)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmetadata=StreamMetadata.of_xml(Xml.child_exn~context:context_xml_arg0"metadata")inletchannelArn=ChannelArn.of_xml(Xml.child_exn~context:context_xml_arg0"channelArn")inmake~metadata~channelArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmetadata=field_map_exnjson__"metadata"StreamMetadata.of_jsoninletchannelArn=field_map_exnjson__"channelArn"ChannelArn.of_jsoninmake~metadata~channelArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Inserts metadata into the active stream of the specified channel. At most 5 requests per second per channel are allowed, each with a maximum 1 KB payload. (If 5 TPS is not sufficient for your needs, we recommend batching your data into a single PutMetadata call.) At most 155 requests per second per account are allowed. Also see Embedding Metadata within a Video Stream in the Amazon IVS User Guide."]moduleListTagsForResourceResponse=structtypenonrect={tags:Tags.toption[@ocaml.doc"Tags attached to the resource. Array of maps, each of the form string:string (key:value)."]}typenonrecerror=[`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun()->{tags}leterror_of_jsonnamejson=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("tags",(Option.mapx.tags~f:Tags.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inmake?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninmake?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets information about Amazon Web Services tags for the specified ARN."]moduleListTagsForResourceRequest=structtypenonrect={resourceArn:ResourceArn.t[@ocaml.doc"The ARN of the resource to be retrieved. The ARN must be URL-encoded."]}letcontext_="ListTagsForResourceRequest"letmake~resourceArn=fun()->{resourceArn}letto_valuex=structure_to_value[("resourceArn",(Some(ResourceArn.to_valuex.resourceArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=ResourceArn.of_xml(Xml.child_exn~context:context_xml_arg0"resourceArn")inmake~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceArn=field_map_exnjson__"resourceArn"ResourceArn.of_jsoninmake~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets information about Amazon Web Services tags for the specified ARN."]moduleListStreamsResponse=structtypenonrect={streams:StreamList.toption[@ocaml.doc"List of streams."];nextToken:PaginationToken.toption[@ocaml.doc"If there are more streams than maxResults, use nextToken in the request to get the next set."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?streams=fun?nextToken->fun()->{streams;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("streams",(Option.mapx.streams~f:StreamList.to_value));("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inletstreams=(Option.map~f:StreamList.of_xml)(Xml.childxml_arg0"streams")inmake?nextToken?streams()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninletstreams=field_mapjson__"streams"StreamList.of_jsoninmake?nextToken?streams()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets summary information about live streams in your account, in the Amazon Web Services region where the API request is processed."]moduleListStreamsRequest=structtypenonrect={filterBy:StreamFilters.toption[@ocaml.doc"Filters the stream list to match the specified criterion."];nextToken:PaginationToken.toption[@ocaml.doc"The first stream to retrieve. This is used for pagination; see the nextToken response field."];maxResults:MaxStreamResults.toption[@ocaml.doc"Maximum number of streams to return. Default: 100."]}letmake?filterBy=fun?nextToken->fun?maxResults->fun()->{filterBy;nextToken;maxResults}letto_valuex=structure_to_value[("filterBy",(Option.mapx.filterBy~f:StreamFilters.to_value));("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("maxResults",(Option.mapx.maxResults~f:MaxStreamResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxStreamResults.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inletfilterBy=(Option.map~f:StreamFilters.of_xml)(Xml.childxml_arg0"filterBy")inmake?maxResults?nextToken?filterBy()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"maxResults"MaxStreamResults.of_jsoninletnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninletfilterBy=field_mapjson__"filterBy"StreamFilters.of_jsoninmake?maxResults?nextToken?filterBy()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets summary information about live streams in your account, in the Amazon Web Services region where the API request is processed."]moduleListStreamSessionsResponse=structtypenonrect={streamSessions:StreamSessionList.toption[@ocaml.doc"List of stream sessions."];nextToken:PaginationToken.toption[@ocaml.doc"If there are more streams than maxResults, use nextToken in the request to get the next set."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?streamSessions=fun?nextToken->fun()->{streamSessions;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("streamSessions",(Option.mapx.streamSessions~f:StreamSessionList.to_value));("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inletstreamSessions=(Option.map~f:StreamSessionList.of_xml)(Xml.childxml_arg0"streamSessions")inmake?nextToken?streamSessions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninletstreamSessions=field_mapjson__"streamSessions"StreamSessionList.of_jsoninmake?nextToken?streamSessions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets a summary of current and previous streams for a specified channel in your account, in the AWS region where the API request is processed."]moduleListStreamSessionsRequest=structtypenonrect={channelArn:ChannelArn.t[@ocaml.doc"Channel ARN used to filter the list."];nextToken:PaginationToken.toption[@ocaml.doc"The first stream to retrieve. This is used for pagination; see the nextToken response field."];maxResults:MaxStreamResults.toption[@ocaml.doc"Maximum number of streams to return. Default: 100."]}letcontext_="ListStreamSessionsRequest"letmake?nextToken=fun?maxResults->fun~channelArn->fun()->{nextToken;maxResults;channelArn}letto_valuex=structure_to_value[("channelArn",(Some(ChannelArn.to_valuex.channelArn)));("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("maxResults",(Option.mapx.maxResults~f:MaxStreamResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxStreamResults.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inletchannelArn=ChannelArn.of_xml(Xml.child_exn~context:context_xml_arg0"channelArn")inmake?maxResults?nextToken~channelArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"maxResults"MaxStreamResults.of_jsoninletnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninletchannelArn=field_map_exnjson__"channelArn"ChannelArn.of_jsoninmake?maxResults?nextToken~channelArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets a summary of current and previous streams for a specified channel in your account, in the AWS region where the API request is processed."]moduleListStreamKeysResponse=structtypenonrect={streamKeys:StreamKeyList.toption[@ocaml.doc"List of stream keys."];nextToken:PaginationToken.toption[@ocaml.doc"If there are more stream keys than maxResults, use nextToken in the request to get the next set."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?streamKeys=fun?nextToken->fun()->{streamKeys;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("streamKeys",(Option.mapx.streamKeys~f:StreamKeyList.to_value));("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inletstreamKeys=(Option.map~f:StreamKeyList.of_xml)(Xml.childxml_arg0"streamKeys")inmake?nextToken?streamKeys()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninletstreamKeys=field_mapjson__"streamKeys"StreamKeyList.of_jsoninmake?nextToken?streamKeys()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets summary information about stream keys for the specified channel."]moduleListStreamKeysRequest=structtypenonrect={channelArn:ChannelArn.t[@ocaml.doc"Channel ARN used to filter the list."];nextToken:PaginationToken.toption[@ocaml.doc"The first stream key to retrieve. This is used for pagination; see the nextToken response field."];maxResults:MaxStreamKeyResults.toption[@ocaml.doc"Maximum number of streamKeys to return. Default: 1."]}letcontext_="ListStreamKeysRequest"letmake?nextToken=fun?maxResults->fun~channelArn->fun()->{nextToken;maxResults;channelArn}letto_valuex=structure_to_value[("channelArn",(Some(ChannelArn.to_valuex.channelArn)));("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("maxResults",(Option.mapx.maxResults~f:MaxStreamKeyResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxStreamKeyResults.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inletchannelArn=ChannelArn.of_xml(Xml.child_exn~context:context_xml_arg0"channelArn")inmake?maxResults?nextToken~channelArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"maxResults"MaxStreamKeyResults.of_jsoninletnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninletchannelArn=field_map_exnjson__"channelArn"ChannelArn.of_jsoninmake?maxResults?nextToken~channelArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets summary information about stream keys for the specified channel."]moduleListRecordingConfigurationsResponse=structtypenonrect={recordingConfigurations:RecordingConfigurationList.toption[@ocaml.doc"List of the matching recording configurations."];nextToken:PaginationToken.toption[@ocaml.doc"If there are more recording configurations than maxResults, use nextToken in the request to get the next set."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?recordingConfigurations=fun?nextToken->fun()->{recordingConfigurations;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("recordingConfigurations",(Option.mapx.recordingConfigurations~f:RecordingConfigurationList.to_value));("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inletrecordingConfigurations=(Option.map~f:RecordingConfigurationList.of_xml)(Xml.childxml_arg0"recordingConfigurations")inmake?nextToken?recordingConfigurations()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninletrecordingConfigurations=field_mapjson__"recordingConfigurations"RecordingConfigurationList.of_jsoninmake?nextToken?recordingConfigurations()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets summary information about all recording configurations in your account, in the Amazon Web Services region where the API request is processed."]moduleListRecordingConfigurationsRequest=structtypenonrect={nextToken:PaginationToken.toption[@ocaml.doc"The first recording configuration to retrieve. This is used for pagination; see the nextToken response field."];maxResults:MaxRecordingConfigurationResults.toption[@ocaml.doc"Maximum number of recording configurations to return. Default: your service quota or 100, whichever is smaller."]}letmake?nextToken=fun?maxResults->fun()->{nextToken;maxResults}letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("maxResults",(Option.mapx.maxResults~f:MaxRecordingConfigurationResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxRecordingConfigurationResults.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inmake?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"maxResults"MaxRecordingConfigurationResults.of_jsoninletnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninmake?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets summary information about all recording configurations in your account, in the Amazon Web Services region where the API request is processed."]moduleListPlaybackRestrictionPoliciesResponse=structtypenonrect={playbackRestrictionPolicies:PlaybackRestrictionPolicyList.toption[@ocaml.doc"List of the matching policies."];nextToken:PaginationToken.toption[@ocaml.doc"If there are more channels than maxResults, use nextToken in the request to get the next set."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`PendingVerificationofPendingVerification.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?playbackRestrictionPolicies=fun?nextToken->fun()->{playbackRestrictionPolicies;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"PendingVerification"->`PendingVerification(PendingVerification.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"PendingVerification"->`PendingVerification(PendingVerification.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`PendingVerificatione->`Assoc[("error",(`String"PendingVerification"));("details",(PendingVerification.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("playbackRestrictionPolicies",(Option.mapx.playbackRestrictionPolicies~f:PlaybackRestrictionPolicyList.to_value));("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inletplaybackRestrictionPolicies=(Option.map~f:PlaybackRestrictionPolicyList.of_xml)(Xml.childxml_arg0"playbackRestrictionPolicies")inmake?nextToken?playbackRestrictionPolicies()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninletplaybackRestrictionPolicies=field_mapjson__"playbackRestrictionPolicies"PlaybackRestrictionPolicyList.of_jsoninmake?nextToken?playbackRestrictionPolicies()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets summary information about playback restriction policies."]moduleListPlaybackRestrictionPoliciesRequest=structtypenonrect={nextToken:PaginationToken.toption[@ocaml.doc"The first policy to retrieve. This is used for pagination; see the nextToken response field."];maxResults:MaxPlaybackRestrictionPolicyResults.toption[@ocaml.doc"Maximum number of policies to return. Default: 1."]}letmake?nextToken=fun?maxResults->fun()->{nextToken;maxResults}letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("maxResults",(Option.mapx.maxResults~f:MaxPlaybackRestrictionPolicyResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxPlaybackRestrictionPolicyResults.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inmake?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"maxResults"MaxPlaybackRestrictionPolicyResults.of_jsoninletnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninmake?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets summary information about playback restriction policies."]moduleListPlaybackKeyPairsResponse=structtypenonrect={keyPairs:PlaybackKeyPairList.toption[@ocaml.doc"List of key pairs."];nextToken:PaginationToken.toption[@ocaml.doc"If there are more key pairs than maxResults, use nextToken in the request to get the next set."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?keyPairs=fun?nextToken->fun()->{keyPairs;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("keyPairs",(Option.mapx.keyPairs~f:PlaybackKeyPairList.to_value));("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inletkeyPairs=(Option.map~f:PlaybackKeyPairList.of_xml)(Xml.childxml_arg0"keyPairs")inmake?nextToken?keyPairs()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninletkeyPairs=field_mapjson__"keyPairs"PlaybackKeyPairList.of_jsoninmake?nextToken?keyPairs()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets summary information about playback key pairs. For more information, see Setting Up Private Channels in the Amazon IVS User Guide."]moduleListPlaybackKeyPairsRequest=structtypenonrect={nextToken:PaginationToken.toption[@ocaml.doc"The first key pair to retrieve. This is used for pagination; see the nextToken response field."];maxResults:MaxPlaybackKeyPairResults.toption[@ocaml.doc"Maximum number of key pairs to return. Default: your service quota or 100, whichever is smaller."]}letmake?nextToken=fun?maxResults->fun()->{nextToken;maxResults}letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("maxResults",(Option.mapx.maxResults~f:MaxPlaybackKeyPairResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxPlaybackKeyPairResults.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inmake?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"maxResults"MaxPlaybackKeyPairResults.of_jsoninletnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninmake?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets summary information about playback key pairs. For more information, see Setting Up Private Channels in the Amazon IVS User Guide."]moduleListChannelsResponse=structtypenonrect={channels:ChannelList.toption[@ocaml.doc"List of the matching channels."];nextToken:PaginationToken.toption[@ocaml.doc"If there are more channels than maxResults, use nextToken in the request to get the next set."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?channels=fun?nextToken->fun()->{channels;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("channels",(Option.mapx.channels~f:ChannelList.to_value));("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inletchannels=(Option.map~f:ChannelList.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"PaginationToken.of_jsoninletchannels=field_mapjson__"channels"ChannelList.of_jsoninmake?nextToken?channels()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets summary information about all channels in your account, in the Amazon Web Services region where the API request is processed. This list can be filtered to match a specified name or recording-configuration ARN. Filters are mutually exclusive and cannot be used together. If you try to use both filters, you will get an error (409 ConflictException)."]moduleListChannelsRequest=structtypenonrect={filterByName:ChannelName.toption[@ocaml.doc"Filters the channel list to match the specified name."];filterByRecordingConfigurationArn:ChannelRecordingConfigurationArn.toption[@ocaml.doc"Filters the channel list to match the specified recording-configuration ARN."];filterByPlaybackRestrictionPolicyArn:ChannelPlaybackRestrictionPolicyArn.toption[@ocaml.doc"Filters the channel list to match the specified policy."];filterByAdConfigurationArn:ChannelAdConfigurationArn.toption[@ocaml.doc"Filters the channel list to match the specified ad configuration ARN."];nextToken:PaginationToken.toption[@ocaml.doc"The first channel to retrieve. This is used for pagination; see the nextToken response field."];maxResults:MaxChannelResults.toption[@ocaml.doc"Maximum number of channels to return. Default: 100."]}letmake?filterByName=fun?filterByRecordingConfigurationArn->fun?filterByPlaybackRestrictionPolicyArn->fun?filterByAdConfigurationArn->fun?nextToken->fun?maxResults->fun()->{filterByName;filterByRecordingConfigurationArn;filterByPlaybackRestrictionPolicyArn;filterByAdConfigurationArn;nextToken;maxResults}letto_valuex=structure_to_value[("filterByName",(Option.mapx.filterByName~f:ChannelName.to_value));("filterByRecordingConfigurationArn",(Option.mapx.filterByRecordingConfigurationArn~f:ChannelRecordingConfigurationArn.to_value));("filterByPlaybackRestrictionPolicyArn",(Option.mapx.filterByPlaybackRestrictionPolicyArn~f:ChannelPlaybackRestrictionPolicyArn.to_value));("filterByAdConfigurationArn",(Option.mapx.filterByAdConfigurationArn~f:ChannelAdConfigurationArn.to_value));("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("maxResults",(Option.mapx.maxResults~f:MaxChannelResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxChannelResults.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inletfilterByAdConfigurationArn=(Option.map~f:ChannelAdConfigurationArn.of_xml)(Xml.childxml_arg0"filterByAdConfigurationArn")inletfilterByPlaybackRestrictionPolicyArn=(Option.map~f:ChannelPlaybackRestrictionPolicyArn.of_xml)(Xml.childxml_arg0"filterByPlaybackRestrictionPolicyArn")inletfilterByRecordingConfigurationArn=(Option.map~f:ChannelRecordingConfigurationArn.of_xml)(Xml.childxml_arg0"filterByRecordingConfigurationArn")inletfilterByName=(Option.map~f:ChannelName.of_xml)(Xml.childxml_arg0"filterByName")inmake?maxResults?nextToken?filterByAdConfigurationArn?filterByPlaybackRestrictionPolicyArn?filterByRecordingConfigurationArn?filterByName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"maxResults"MaxChannelResults.of_jsoninletnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninletfilterByAdConfigurationArn=field_mapjson__"filterByAdConfigurationArn"ChannelAdConfigurationArn.of_jsoninletfilterByPlaybackRestrictionPolicyArn=field_mapjson__"filterByPlaybackRestrictionPolicyArn"ChannelPlaybackRestrictionPolicyArn.of_jsoninletfilterByRecordingConfigurationArn=field_mapjson__"filterByRecordingConfigurationArn"ChannelRecordingConfigurationArn.of_jsoninletfilterByName=field_mapjson__"filterByName"ChannelName.of_jsoninmake?maxResults?nextToken?filterByAdConfigurationArn?filterByPlaybackRestrictionPolicyArn?filterByRecordingConfigurationArn?filterByName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets summary information about all channels in your account, in the Amazon Web Services region where the API request is processed. This list can be filtered to match a specified name or recording-configuration ARN. Filters are mutually exclusive and cannot be used together. If you try to use both filters, you will get an error (409 ConflictException)."]moduleListAdConfigurationsResponse=structtypenonrect={adConfigurations:AdConfigurationList.toption[@ocaml.doc"List of the matching ad configurations."];nextToken:PaginationToken.toption[@ocaml.doc"If there are more ad configurations than maxResults, use nextToken in the request to get the next set."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?adConfigurations=fun?nextToken->fun()->{adConfigurations;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("adConfigurations",(Option.mapx.adConfigurations~f:AdConfigurationList.to_value));("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inletadConfigurations=(Option.map~f:AdConfigurationList.of_xml)(Xml.childxml_arg0"adConfigurations")inmake?nextToken?adConfigurations()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninletadConfigurations=field_mapjson__"adConfigurations"AdConfigurationList.of_jsoninmake?nextToken?adConfigurations()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets summary information about all ad configurations in your account, in the AWS region where the API request is processed."]moduleListAdConfigurationsRequest=structtypenonrect={nextToken:PaginationToken.toption[@ocaml.doc"The first ad configuration to retrieve. This is used for pagination; see the nextToken response field."];maxResults:MaxAdConfigurationResults.toption[@ocaml.doc"Maximum number of ad configurations to return. Default: your service quota or 100, whichever is smaller."]}letmake?nextToken=fun?maxResults->fun()->{nextToken;maxResults}letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:PaginationToken.to_value));("maxResults",(Option.mapx.maxResults~f:MaxAdConfigurationResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxAdConfigurationResults.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:PaginationToken.of_xml)(Xml.childxml_arg0"nextToken")inmake?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"maxResults"MaxAdConfigurationResults.of_jsoninletnextToken=field_mapjson__"nextToken"PaginationToken.of_jsoninmake?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets summary information about all ad configurations in your account, in the AWS region where the API request is processed."]moduleInsertAdBreakResponse=structtypenonrect={adBreakId:AdBreakId.toption[@ocaml.doc"Unique identifier for the ad break that was inserted into the playlist."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ChannelNotBroadcastingofChannelNotBroadcasting.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?adBreakId=fun()->{adBreakId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ChannelNotBroadcasting"->`ChannelNotBroadcasting(ChannelNotBroadcasting.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ChannelNotBroadcasting"->`ChannelNotBroadcasting(ChannelNotBroadcasting.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ChannelNotBroadcastinge->`Assoc[("error",(`String"ChannelNotBroadcasting"));("details",(ChannelNotBroadcasting.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("adBreakId",(Option.mapx.adBreakId~f:AdBreakId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letadBreakId=(Option.map~f:AdBreakId.of_xml)(Xml.childxml_arg0"adBreakId")inmake?adBreakId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letadBreakId=field_mapjson__"adBreakId"AdBreakId.of_jsoninmake?adBreakId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Inserts an ad marker in the playlist for the specified channel and duration using the ad configuration associated with the channel. Note: AWS Elemental MediaTailor (EMT), the service that handles ad requests, provides CloudWatch metrics to help you monitor the success or failure of each InsertAdBreak operation. See Monitoring AWS Elemental MediaTailor with Amazon CloudWatch metrics in the AWS Elemental MediaTailor User Guide for details on available metrics."]moduleInsertAdBreakRequest=structtypenonrect={channelArn:ChannelArn.t[@ocaml.doc"ARN of the channel into which the ad break is inserted."];durationSeconds:AdDurationSeconds.t[@ocaml.doc"Maximum duration of the ad break, in seconds."]}letcontext_="InsertAdBreakRequest"letmake~channelArn=fun~durationSeconds->fun()->{channelArn;durationSeconds}letto_valuex=structure_to_value[("channelArn",(Some(ChannelArn.to_valuex.channelArn)));("durationSeconds",(Some(AdDurationSeconds.to_valuex.durationSeconds)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdurationSeconds=AdDurationSeconds.of_xml(Xml.child_exn~context:context_xml_arg0"durationSeconds")inletchannelArn=ChannelArn.of_xml(Xml.child_exn~context:context_xml_arg0"channelArn")inmake~durationSeconds~channelArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdurationSeconds=field_map_exnjson__"durationSeconds"AdDurationSeconds.of_jsoninletchannelArn=field_map_exnjson__"channelArn"ChannelArn.of_jsoninmake~durationSeconds~channelArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Inserts an ad marker in the playlist for the specified channel and duration using the ad configuration associated with the channel. Note: AWS Elemental MediaTailor (EMT), the service that handles ad requests, provides CloudWatch metrics to help you monitor the success or failure of each InsertAdBreak operation. See Monitoring AWS Elemental MediaTailor with Amazon CloudWatch metrics in the AWS Elemental MediaTailor User Guide for details on available metrics."]moduleImportPlaybackKeyPairResponse=structtypenonrect={keyPair:PlaybackKeyPair.toption}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`PendingVerificationofPendingVerification.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?keyPair=fun()->{keyPair}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"PendingVerification"->`PendingVerification(PendingVerification.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"PendingVerification"->`PendingVerification(PendingVerification.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`PendingVerificatione->`Assoc[("error",(`String"PendingVerification"));("details",(PendingVerification.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("keyPair",(Option.mapx.keyPair~f:PlaybackKeyPair.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkeyPair=(Option.map~f:PlaybackKeyPair.of_xml)(Xml.childxml_arg0"keyPair")inmake?keyPair()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkeyPair=field_mapjson__"keyPair"PlaybackKeyPair.of_jsoninmake?keyPair()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Imports the public portion of a new key pair and returns its arn and fingerprint. The privateKey can then be used to generate viewer authorization tokens, to grant viewers access to private channels. For more information, see Setting Up Private Channels in the Amazon IVS User Guide."]moduleImportPlaybackKeyPairRequest=structtypenonrect={publicKeyMaterial:PlaybackPublicKeyMaterial.t[@ocaml.doc"The public portion of a customer-generated key pair."];name:PlaybackKeyPairName.toption[@ocaml.doc"Playback-key-pair name. The value does not need to be unique."];tags:Tags.toption[@ocaml.doc"Any tags provided with the request are added to the playback key pair tags. See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and \"Tag naming limits and requirements\"; Amazon IVS has no service-specific constraints beyond what is documented there."]}letcontext_="ImportPlaybackKeyPairRequest"letmake?name=fun?tags->fun~publicKeyMaterial->fun()->{name;tags;publicKeyMaterial}letto_valuex=structure_to_value[("publicKeyMaterial",(Some(PlaybackPublicKeyMaterial.to_valuex.publicKeyMaterial)));("name",(Option.mapx.name~f:PlaybackKeyPairName.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")inletname=(Option.map~f:PlaybackKeyPairName.of_xml)(Xml.childxml_arg0"name")inletpublicKeyMaterial=PlaybackPublicKeyMaterial.of_xml(Xml.child_exn~context:context_xml_arg0"publicKeyMaterial")inmake?tags?name~publicKeyMaterial()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninletname=field_mapjson__"name"PlaybackKeyPairName.of_jsoninletpublicKeyMaterial=field_map_exnjson__"publicKeyMaterial"PlaybackPublicKeyMaterial.of_jsoninmake?tags?name~publicKeyMaterial()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Imports the public portion of a new key pair and returns its arn and fingerprint. The privateKey can then be used to generate viewer authorization tokens, to grant viewers access to private channels. For more information, see Setting Up Private Channels in the Amazon IVS User Guide."]moduleGetStreamSessionResponse=structtypenonrect={streamSession:StreamSession.toption[@ocaml.doc"List of stream details."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?streamSession=fun()->{streamSession}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("streamSession",(Option.mapx.streamSession~f:StreamSession.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamSession=(Option.map~f:StreamSession.of_xml)(Xml.childxml_arg0"streamSession")inmake?streamSession()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamSession=field_mapjson__"streamSession"StreamSession.of_jsoninmake?streamSession()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets metadata on a specified stream."]moduleGetStreamSessionRequest=structtypenonrect={channelArn:ChannelArn.t[@ocaml.doc"ARN of the channel resource"];streamId:StreamId.toption[@ocaml.doc"Unique identifier for a live or previously live stream in the specified channel. If no streamId is provided, this returns the most recent stream session for the channel, if it exists."]}letcontext_="GetStreamSessionRequest"letmake?streamId=fun~channelArn->fun()->{streamId;channelArn}letto_valuex=structure_to_value[("channelArn",(Some(ChannelArn.to_valuex.channelArn)));("streamId",(Option.mapx.streamId~f:StreamId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamId=(Option.map~f:StreamId.of_xml)(Xml.childxml_arg0"streamId")inletchannelArn=ChannelArn.of_xml(Xml.child_exn~context:context_xml_arg0"channelArn")inmake?streamId~channelArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamId=field_mapjson__"streamId"StreamId.of_jsoninletchannelArn=field_map_exnjson__"channelArn"ChannelArn.of_jsoninmake?streamId~channelArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets metadata on a specified stream."]moduleGetStreamResponse=structtypenonrect={stream:Stream.toption}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ChannelNotBroadcastingofChannelNotBroadcasting.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?stream=fun()->{stream}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ChannelNotBroadcasting"->`ChannelNotBroadcasting(ChannelNotBroadcasting.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ChannelNotBroadcasting"->`ChannelNotBroadcasting(ChannelNotBroadcasting.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ChannelNotBroadcastinge->`Assoc[("error",(`String"ChannelNotBroadcasting"));("details",(ChannelNotBroadcasting.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("stream",(Option.mapx.stream~f:Stream.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstream=(Option.map~f:Stream.of_xml)(Xml.childxml_arg0"stream")inmake?stream()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstream=field_mapjson__"stream"Stream.of_jsoninmake?stream()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets information about the active (live) stream on a specified channel."]moduleGetStreamRequest=structtypenonrect={channelArn:ChannelArn.t[@ocaml.doc"Channel ARN for stream to be accessed."]}letcontext_="GetStreamRequest"letmake~channelArn=fun()->{channelArn}letto_valuex=structure_to_value[("channelArn",(Some(ChannelArn.to_valuex.channelArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letchannelArn=ChannelArn.of_xml(Xml.child_exn~context:context_xml_arg0"channelArn")inmake~channelArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letchannelArn=field_map_exnjson__"channelArn"ChannelArn.of_jsoninmake~channelArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets information about the active (live) stream on a specified channel."]moduleGetStreamKeyResponse=structtypenonrect={streamKey:StreamKey.toption}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?streamKey=fun()->{streamKey}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("streamKey",(Option.mapx.streamKey~f:StreamKey.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamKey=(Option.map~f:StreamKey.of_xml)(Xml.childxml_arg0"streamKey")inmake?streamKey()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamKey=field_mapjson__"streamKey"StreamKey.of_jsoninmake?streamKey()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets stream-key information for a specified ARN."]moduleGetStreamKeyRequest=structtypenonrect={arn:StreamKeyArn.t[@ocaml.doc"ARN for the stream key to be retrieved."]}letcontext_="GetStreamKeyRequest"letmake~arn=fun()->{arn}letto_valuex=structure_to_value[("arn",(Some(StreamKeyArn.to_valuex.arn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letarn=StreamKeyArn.of_xml(Xml.child_exn~context:context_xml_arg0"arn")inmake~arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letarn=field_map_exnjson__"arn"StreamKeyArn.of_jsoninmake~arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets stream-key information for a specified ARN."]moduleGetRecordingConfigurationResponse=structtypenonrect={recordingConfiguration:RecordingConfiguration.toption}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?recordingConfiguration=fun()->{recordingConfiguration}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("recordingConfiguration",(Option.mapx.recordingConfiguration~f:RecordingConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrecordingConfiguration=(Option.map~f:RecordingConfiguration.of_xml)(Xml.childxml_arg0"recordingConfiguration")inmake?recordingConfiguration()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrecordingConfiguration=field_mapjson__"recordingConfiguration"RecordingConfiguration.of_jsoninmake?recordingConfiguration()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the recording configuration for the specified ARN."]moduleGetRecordingConfigurationRequest=structtypenonrect={arn:RecordingConfigurationArn.t[@ocaml.doc"ARN of the recording configuration to be retrieved."]}letcontext_="GetRecordingConfigurationRequest"letmake~arn=fun()->{arn}letto_valuex=structure_to_value[("arn",(Some(RecordingConfigurationArn.to_valuex.arn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letarn=RecordingConfigurationArn.of_xml(Xml.child_exn~context:context_xml_arg0"arn")inmake~arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letarn=field_map_exnjson__"arn"RecordingConfigurationArn.of_jsoninmake~arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the recording configuration for the specified ARN."]moduleGetPlaybackRestrictionPolicyResponse=structtypenonrect={playbackRestrictionPolicy:PlaybackRestrictionPolicy.toption}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`PendingVerificationofPendingVerification.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?playbackRestrictionPolicy=fun()->{playbackRestrictionPolicy}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"PendingVerification"->`PendingVerification(PendingVerification.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"PendingVerification"->`PendingVerification(PendingVerification.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`PendingVerificatione->`Assoc[("error",(`String"PendingVerification"));("details",(PendingVerification.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("playbackRestrictionPolicy",(Option.mapx.playbackRestrictionPolicy~f:PlaybackRestrictionPolicy.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letplaybackRestrictionPolicy=(Option.map~f:PlaybackRestrictionPolicy.of_xml)(Xml.childxml_arg0"playbackRestrictionPolicy")inmake?playbackRestrictionPolicy()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letplaybackRestrictionPolicy=field_mapjson__"playbackRestrictionPolicy"PlaybackRestrictionPolicy.of_jsoninmake?playbackRestrictionPolicy()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the specified playback restriction policy."]moduleGetPlaybackRestrictionPolicyRequest=structtypenonrect={arn:PlaybackRestrictionPolicyArn.t[@ocaml.doc"ARN of the playback restriction policy to be returned."]}letcontext_="GetPlaybackRestrictionPolicyRequest"letmake~arn=fun()->{arn}letto_valuex=structure_to_value[("arn",(Some(PlaybackRestrictionPolicyArn.to_valuex.arn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letarn=PlaybackRestrictionPolicyArn.of_xml(Xml.child_exn~context:context_xml_arg0"arn")inmake~arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letarn=field_map_exnjson__"arn"PlaybackRestrictionPolicyArn.of_jsoninmake~arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the specified playback restriction policy."]moduleGetPlaybackKeyPairResponse=structtypenonrect={keyPair:PlaybackKeyPair.toption}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?keyPair=fun()->{keyPair}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("keyPair",(Option.mapx.keyPair~f:PlaybackKeyPair.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkeyPair=(Option.map~f:PlaybackKeyPair.of_xml)(Xml.childxml_arg0"keyPair")inmake?keyPair()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkeyPair=field_mapjson__"keyPair"PlaybackKeyPair.of_jsoninmake?keyPair()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets a specified playback authorization key pair and returns the arn and fingerprint. The privateKey held by the caller can be used to generate viewer authorization tokens, to grant viewers access to private channels. For more information, see Setting Up Private Channels in the Amazon IVS User Guide."]moduleGetPlaybackKeyPairRequest=structtypenonrect={arn:PlaybackKeyPairArn.t[@ocaml.doc"ARN of the key pair to be returned."]}letcontext_="GetPlaybackKeyPairRequest"letmake~arn=fun()->{arn}letto_valuex=structure_to_value[("arn",(Some(PlaybackKeyPairArn.to_valuex.arn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letarn=PlaybackKeyPairArn.of_xml(Xml.child_exn~context:context_xml_arg0"arn")inmake~arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letarn=field_map_exnjson__"arn"PlaybackKeyPairArn.of_jsoninmake~arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets a specified playback authorization key pair and returns the arn and fingerprint. The privateKey held by the caller can be used to generate viewer authorization tokens, to grant viewers access to private channels. For more information, see Setting Up Private Channels in the Amazon IVS User Guide."]moduleGetChannelResponse=structtypenonrect={channel:Channel.toption}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?channel=fun()->{channel}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("channel",(Option.mapx.channel~f:Channel.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letchannel=(Option.map~f:Channel.of_xml)(Xml.childxml_arg0"channel")inmake?channel()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letchannel=field_mapjson__"channel"Channel.of_jsoninmake?channel()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the channel configuration for the specified channel ARN. See also BatchGetChannel."]moduleGetChannelRequest=structtypenonrect={arn:ChannelArn.t[@ocaml.doc"ARN of the channel for which the configuration is to be retrieved."]}letcontext_="GetChannelRequest"letmake~arn=fun()->{arn}letto_valuex=structure_to_value[("arn",(Some(ChannelArn.to_valuex.arn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letarn=ChannelArn.of_xml(Xml.child_exn~context:context_xml_arg0"arn")inmake~arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letarn=field_map_exnjson__"arn"ChannelArn.of_jsoninmake~arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the channel configuration for the specified channel ARN. See also BatchGetChannel."]moduleGetAdConfigurationResponse=structtypenonrect={adConfiguration:AdConfiguration.toption}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?adConfiguration=fun()->{adConfiguration}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("adConfiguration",(Option.mapx.adConfiguration~f:AdConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letadConfiguration=(Option.map~f:AdConfiguration.of_xml)(Xml.childxml_arg0"adConfiguration")inmake?adConfiguration()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letadConfiguration=field_mapjson__"adConfiguration"AdConfiguration.of_jsoninmake?adConfiguration()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the ad configuration represented by the specified ARN."]moduleGetAdConfigurationRequest=structtypenonrect={arn:AdConfigurationArn.t[@ocaml.doc"ARN of the ad configuration to be retrieved."]}letcontext_="GetAdConfigurationRequest"letmake~arn=fun()->{arn}letto_valuex=structure_to_value[("arn",(Some(AdConfigurationArn.to_valuex.arn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letarn=AdConfigurationArn.of_xml(Xml.child_exn~context:context_xml_arg0"arn")inmake~arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letarn=field_map_exnjson__"arn"AdConfigurationArn.of_jsoninmake~arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Gets the ad configuration represented by the specified ARN."]moduleDeleteStreamKeyRequest=structtypenonrect={arn:StreamKeyArn.t[@ocaml.doc"ARN of the stream key to be deleted."]}letcontext_="DeleteStreamKeyRequest"letmake~arn=fun()->{arn}letto_valuex=structure_to_value[("arn",(Some(StreamKeyArn.to_valuex.arn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letarn=StreamKeyArn.of_xml(Xml.child_exn~context:context_xml_arg0"arn")inmake~arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letarn=field_map_exnjson__"arn"StreamKeyArn.of_jsoninmake~arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the stream key for the specified ARN, so it can no longer be used to stream."]moduleDeleteRecordingConfigurationRequest=structtypenonrect={arn:RecordingConfigurationArn.t[@ocaml.doc"ARN of the recording configuration to be deleted."]}letcontext_="DeleteRecordingConfigurationRequest"letmake~arn=fun()->{arn}letto_valuex=structure_to_value[("arn",(Some(RecordingConfigurationArn.to_valuex.arn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letarn=RecordingConfigurationArn.of_xml(Xml.child_exn~context:context_xml_arg0"arn")inmake~arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letarn=field_map_exnjson__"arn"RecordingConfigurationArn.of_jsoninmake~arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the recording configuration for the specified ARN. If you try to delete a recording configuration that is associated with a channel, you will get an error (409 ConflictException). To avoid this, for all channels that reference the recording configuration, first use UpdateChannel to set the recordingConfigurationArn field to an empty string, then use DeleteRecordingConfiguration."]moduleDeletePlaybackRestrictionPolicyRequest=structtypenonrect={arn:PlaybackRestrictionPolicyArn.t[@ocaml.doc"ARN of the playback restriction policy to be deleted."]}letcontext_="DeletePlaybackRestrictionPolicyRequest"letmake~arn=fun()->{arn}letto_valuex=structure_to_value[("arn",(Some(PlaybackRestrictionPolicyArn.to_valuex.arn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letarn=PlaybackRestrictionPolicyArn.of_xml(Xml.child_exn~context:context_xml_arg0"arn")inmake~arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letarn=field_map_exnjson__"arn"PlaybackRestrictionPolicyArn.of_jsoninmake~arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the specified playback restriction policy."]moduleDeletePlaybackKeyPairResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`PendingVerificationofPendingVerification.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"PendingVerification"->`PendingVerification(PendingVerification.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"PendingVerification"->`PendingVerification(PendingVerification.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`PendingVerificatione->`Assoc[("error",(`String"PendingVerification"));("details",(PendingVerification.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a specified authorization key pair. This invalidates future viewer tokens generated using the key pair\226\128\153s privateKey. For more information, see Setting Up Private Channels in the Amazon IVS User Guide."]moduleDeletePlaybackKeyPairRequest=structtypenonrect={arn:PlaybackKeyPairArn.t[@ocaml.doc"ARN of the key pair to be deleted."]}letcontext_="DeletePlaybackKeyPairRequest"letmake~arn=fun()->{arn}letto_valuex=structure_to_value[("arn",(Some(PlaybackKeyPairArn.to_valuex.arn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letarn=PlaybackKeyPairArn.of_xml(Xml.child_exn~context:context_xml_arg0"arn")inmake~arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letarn=field_map_exnjson__"arn"PlaybackKeyPairArn.of_jsoninmake~arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a specified authorization key pair. This invalidates future viewer tokens generated using the key pair\226\128\153s privateKey. For more information, see Setting Up Private Channels in the Amazon IVS User Guide."]moduleDeleteChannelRequest=structtypenonrect={arn:ChannelArn.t[@ocaml.doc"ARN of the channel to be deleted."]}letcontext_="DeleteChannelRequest"letmake~arn=fun()->{arn}letto_valuex=structure_to_value[("arn",(Some(ChannelArn.to_valuex.arn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letarn=ChannelArn.of_xml(Xml.child_exn~context:context_xml_arg0"arn")inmake~arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letarn=field_map_exnjson__"arn"ChannelArn.of_jsoninmake~arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the specified channel and its associated stream keys. If you try to delete a live channel, you will get an error (409 ConflictException). To delete a channel that is live, call StopStream, wait for the Amazon EventBridge \"Stream End\" event (to verify that the stream's state is no longer Live), then call DeleteChannel. (See Using EventBridge with Amazon IVS.)"]moduleDeleteAdConfigurationRequest=structtypenonrect={arn:AdConfigurationArn.t[@ocaml.doc"ARN of the ad configuration to be deleted."]}letcontext_="DeleteAdConfigurationRequest"letmake~arn=fun()->{arn}letto_valuex=structure_to_value[("arn",(Some(AdConfigurationArn.to_valuex.arn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letarn=AdConfigurationArn.of_xml(Xml.child_exn~context:context_xml_arg0"arn")inmake~arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letarn=field_map_exnjson__"arn"AdConfigurationArn.of_jsoninmake~arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the specified ad configuration."]moduleCreateStreamKeyResponse=structtypenonrect={streamKey:StreamKey.toption[@ocaml.doc"Stream key used to authenticate an RTMPS stream for ingestion."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`PendingVerificationofPendingVerification.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?streamKey=fun()->{streamKey}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"PendingVerification"->`PendingVerification(PendingVerification.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"PendingVerification"->`PendingVerification(PendingVerification.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`PendingVerificatione->`Assoc[("error",(`String"PendingVerification"));("details",(PendingVerification.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("streamKey",(Option.mapx.streamKey~f:StreamKey.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamKey=(Option.map~f:StreamKey.of_xml)(Xml.childxml_arg0"streamKey")inmake?streamKey()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamKey=field_mapjson__"streamKey"StreamKey.of_jsoninmake?streamKey()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a stream key, used to initiate a stream, for the specified channel ARN. Note that CreateChannel creates a stream key. If you subsequently use CreateStreamKey on the same channel, it will fail because a stream key already exists and there is a limit of 1 stream key per channel. To reset the stream key on a channel, use DeleteStreamKey and then CreateStreamKey."]moduleCreateStreamKeyRequest=structtypenonrect={channelArn:ChannelArn.t[@ocaml.doc"ARN of the channel for which to create the stream key."];tags:Tags.toption[@ocaml.doc"Array of 1-50 maps, each of the form string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and \"Tag naming limits and requirements\"; Amazon IVS has no service-specific constraints beyond what is documented there."]}letcontext_="CreateStreamKeyRequest"letmake?tags=fun~channelArn->fun()->{tags;channelArn}letto_valuex=structure_to_value[("channelArn",(Some(ChannelArn.to_valuex.channelArn)));("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")inletchannelArn=ChannelArn.of_xml(Xml.child_exn~context:context_xml_arg0"channelArn")inmake?tags~channelArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninletchannelArn=field_map_exnjson__"channelArn"ChannelArn.of_jsoninmake?tags~channelArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a stream key, used to initiate a stream, for the specified channel ARN. Note that CreateChannel creates a stream key. If you subsequently use CreateStreamKey on the same channel, it will fail because a stream key already exists and there is a limit of 1 stream key per channel. To reset the stream key on a channel, use DeleteStreamKey and then CreateStreamKey."]moduleCreateRecordingConfigurationResponse=structtypenonrect={recordingConfiguration:RecordingConfiguration.toption}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`PendingVerificationofPendingVerification.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?recordingConfiguration=fun()->{recordingConfiguration}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"PendingVerification"->`PendingVerification(PendingVerification.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"PendingVerification"->`PendingVerification(PendingVerification.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`PendingVerificatione->`Assoc[("error",(`String"PendingVerification"));("details",(PendingVerification.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("recordingConfiguration",(Option.mapx.recordingConfiguration~f:RecordingConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrecordingConfiguration=(Option.map~f:RecordingConfiguration.of_xml)(Xml.childxml_arg0"recordingConfiguration")inmake?recordingConfiguration()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrecordingConfiguration=field_mapjson__"recordingConfiguration"RecordingConfiguration.of_jsoninmake?recordingConfiguration()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a new recording configuration, used to enable recording to Amazon S3. Known issue: In the us-east-1 region, if you use the Amazon Web Services CLI to create a recording configuration, it returns success even if the S3 bucket is in a different region. In this case, the state of the recording configuration is CREATE_FAILED (instead of ACTIVE). (In other regions, the CLI correctly returns failure if the bucket is in a different region.) Workaround: Ensure that your S3 bucket is in the same region as the recording configuration. If you create a recording configuration in a different region as your S3 bucket, delete that recording configuration and create a new one with an S3 bucket from the correct region."]moduleCreateRecordingConfigurationRequest=structtypenonrect={name:RecordingConfigurationName.toption[@ocaml.doc"Recording-configuration name. The value does not need to be unique."];destinationConfiguration:DestinationConfiguration.t[@ocaml.doc"A complex type that contains a destination configuration for where recorded video will be stored."];tags:Tags.toption[@ocaml.doc"Array of 1-50 maps, each of the form string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and \"Tag naming limits and requirements\"; Amazon IVS has no service-specific constraints beyond what is documented there."];thumbnailConfiguration:ThumbnailConfiguration.toption[@ocaml.doc"A complex type that allows you to enable/disable the recording of thumbnails for a live session and modify the interval at which thumbnails are generated for the live session."];recordingReconnectWindowSeconds:RecordingReconnectWindowSeconds.toption[@ocaml.doc"If a broadcast disconnects and then reconnects within the specified interval, the multiple streams will be considered a single broadcast and merged together. Default: 0."];renditionConfiguration:RenditionConfiguration.toption[@ocaml.doc"Object that describes which renditions should be recorded for a stream."]}letcontext_="CreateRecordingConfigurationRequest"letmake?name=fun?tags->fun?thumbnailConfiguration->fun?recordingReconnectWindowSeconds->fun?renditionConfiguration->fun~destinationConfiguration->fun()->{name;tags;thumbnailConfiguration;recordingReconnectWindowSeconds;renditionConfiguration;destinationConfiguration}letto_valuex=structure_to_value[("name",(Option.mapx.name~f:RecordingConfigurationName.to_value));("destinationConfiguration",(Some(DestinationConfiguration.to_valuex.destinationConfiguration)));("tags",(Option.mapx.tags~f:Tags.to_value));("thumbnailConfiguration",(Option.mapx.thumbnailConfiguration~f:ThumbnailConfiguration.to_value));("recordingReconnectWindowSeconds",(Option.mapx.recordingReconnectWindowSeconds~f:RecordingReconnectWindowSeconds.to_value));("renditionConfiguration",(Option.mapx.renditionConfiguration~f:RenditionConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrenditionConfiguration=(Option.map~f:RenditionConfiguration.of_xml)(Xml.childxml_arg0"renditionConfiguration")inletrecordingReconnectWindowSeconds=(Option.map~f:RecordingReconnectWindowSeconds.of_xml)(Xml.childxml_arg0"recordingReconnectWindowSeconds")inletthumbnailConfiguration=(Option.map~f:ThumbnailConfiguration.of_xml)(Xml.childxml_arg0"thumbnailConfiguration")inlettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletdestinationConfiguration=DestinationConfiguration.of_xml(Xml.child_exn~context:context_xml_arg0"destinationConfiguration")inletname=(Option.map~f:RecordingConfigurationName.of_xml)(Xml.childxml_arg0"name")inmake?renditionConfiguration?recordingReconnectWindowSeconds?thumbnailConfiguration?tags~destinationConfiguration?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrenditionConfiguration=field_mapjson__"renditionConfiguration"RenditionConfiguration.of_jsoninletrecordingReconnectWindowSeconds=field_mapjson__"recordingReconnectWindowSeconds"RecordingReconnectWindowSeconds.of_jsoninletthumbnailConfiguration=field_mapjson__"thumbnailConfiguration"ThumbnailConfiguration.of_jsoninlettags=field_mapjson__"tags"Tags.of_jsoninletdestinationConfiguration=field_map_exnjson__"destinationConfiguration"DestinationConfiguration.of_jsoninletname=field_mapjson__"name"RecordingConfigurationName.of_jsoninmake?renditionConfiguration?recordingReconnectWindowSeconds?thumbnailConfiguration?tags~destinationConfiguration?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a new recording configuration, used to enable recording to Amazon S3. Known issue: In the us-east-1 region, if you use the Amazon Web Services CLI to create a recording configuration, it returns success even if the S3 bucket is in a different region. In this case, the state of the recording configuration is CREATE_FAILED (instead of ACTIVE). (In other regions, the CLI correctly returns failure if the bucket is in a different region.) Workaround: Ensure that your S3 bucket is in the same region as the recording configuration. If you create a recording configuration in a different region as your S3 bucket, delete that recording configuration and create a new one with an S3 bucket from the correct region."]moduleCreatePlaybackRestrictionPolicyResponse=structtypenonrect={playbackRestrictionPolicy:PlaybackRestrictionPolicy.toption}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`PendingVerificationofPendingVerification.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?playbackRestrictionPolicy=fun()->{playbackRestrictionPolicy}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"PendingVerification"->`PendingVerification(PendingVerification.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"PendingVerification"->`PendingVerification(PendingVerification.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`PendingVerificatione->`Assoc[("error",(`String"PendingVerification"));("details",(PendingVerification.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("playbackRestrictionPolicy",(Option.mapx.playbackRestrictionPolicy~f:PlaybackRestrictionPolicy.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letplaybackRestrictionPolicy=(Option.map~f:PlaybackRestrictionPolicy.of_xml)(Xml.childxml_arg0"playbackRestrictionPolicy")inmake?playbackRestrictionPolicy()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letplaybackRestrictionPolicy=field_mapjson__"playbackRestrictionPolicy"PlaybackRestrictionPolicy.of_jsoninmake?playbackRestrictionPolicy()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a new playback restriction policy, for constraining playback by countries and/or origins."]moduleCreatePlaybackRestrictionPolicyRequest=structtypenonrect={allowedCountries:PlaybackRestrictionPolicyAllowedCountryList.toption[@ocaml.doc"A list of country codes that control geoblocking restriction. Allowed values are the officially assigned ISO 3166-1 alpha-2 codes. Default: All countries (an empty array)."];allowedOrigins:PlaybackRestrictionPolicyAllowedOriginList.toption[@ocaml.doc"A list of origin sites that control CORS restriction. Allowed values are the same as valid values of the Origin header defined at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin. Default: All origins (an empty array)."];enableStrictOriginEnforcement:PlaybackRestrictionPolicyEnableStrictOriginEnforcement.toption[@ocaml.doc"Whether channel playback is constrained by origin site. Default: false."];name:PlaybackRestrictionPolicyName.toption[@ocaml.doc"Playback-restriction-policy name. The value does not need to be unique."];tags:Tags.toption[@ocaml.doc"Array of 1-50 maps, each of the form string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and \"Tag naming limits and requirements\"; Amazon IVS has no service-specific constraints beyond what is documented there."]}letmake?allowedCountries=fun?allowedOrigins->fun?enableStrictOriginEnforcement->fun?name->fun?tags->fun()->{allowedCountries;allowedOrigins;enableStrictOriginEnforcement;name;tags}letto_valuex=structure_to_value[("allowedCountries",(Option.mapx.allowedCountries~f:PlaybackRestrictionPolicyAllowedCountryList.to_value));("allowedOrigins",(Option.mapx.allowedOrigins~f:PlaybackRestrictionPolicyAllowedOriginList.to_value));("enableStrictOriginEnforcement",(Option.mapx.enableStrictOriginEnforcement~f:PlaybackRestrictionPolicyEnableStrictOriginEnforcement.to_value));("name",(Option.mapx.name~f:PlaybackRestrictionPolicyName.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")inletname=(Option.map~f:PlaybackRestrictionPolicyName.of_xml)(Xml.childxml_arg0"name")inletenableStrictOriginEnforcement=(Option.map~f:PlaybackRestrictionPolicyEnableStrictOriginEnforcement.of_xml)(Xml.childxml_arg0"enableStrictOriginEnforcement")inletallowedOrigins=(Option.map~f:PlaybackRestrictionPolicyAllowedOriginList.of_xml)(Xml.childxml_arg0"allowedOrigins")inletallowedCountries=(Option.map~f:PlaybackRestrictionPolicyAllowedCountryList.of_xml)(Xml.childxml_arg0"allowedCountries")inmake?tags?name?enableStrictOriginEnforcement?allowedOrigins?allowedCountries()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninletname=field_mapjson__"name"PlaybackRestrictionPolicyName.of_jsoninletenableStrictOriginEnforcement=field_mapjson__"enableStrictOriginEnforcement"PlaybackRestrictionPolicyEnableStrictOriginEnforcement.of_jsoninletallowedOrigins=field_mapjson__"allowedOrigins"PlaybackRestrictionPolicyAllowedOriginList.of_jsoninletallowedCountries=field_mapjson__"allowedCountries"PlaybackRestrictionPolicyAllowedCountryList.of_jsoninmake?tags?name?enableStrictOriginEnforcement?allowedOrigins?allowedCountries()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a new playback restriction policy, for constraining playback by countries and/or origins."]moduleCreateChannelResponse=structtypenonrect={channel:Channel.toption;streamKey:StreamKey.toption}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`PendingVerificationofPendingVerification.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?channel=fun?streamKey->fun()->{channel;streamKey}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"PendingVerification"->`PendingVerification(PendingVerification.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"PendingVerification"->`PendingVerification(PendingVerification.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`PendingVerificatione->`Assoc[("error",(`String"PendingVerification"));("details",(PendingVerification.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("channel",(Option.mapx.channel~f:Channel.to_value));("streamKey",(Option.mapx.streamKey~f:StreamKey.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamKey=(Option.map~f:StreamKey.of_xml)(Xml.childxml_arg0"streamKey")inletchannel=(Option.map~f:Channel.of_xml)(Xml.childxml_arg0"channel")inmake?streamKey?channel()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamKey=field_mapjson__"streamKey"StreamKey.of_jsoninletchannel=field_mapjson__"channel"Channel.of_jsoninmake?streamKey?channel()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a new channel and an associated stream key to start streaming."]moduleCreateChannelRequest=structtypenonrect={name:ChannelName.toption[@ocaml.doc"Channel name."];latencyMode:ChannelLatencyMode.toption[@ocaml.doc"Channel latency mode. Use NORMAL to broadcast and deliver live video up to Full HD. Use LOW for near-real-time interaction with viewers. Default: LOW."];type_:ChannelType.toption[@ocaml.doc"Channel type, which determines the allowable resolution and bitrate. If you exceed the allowable input resolution or bitrate, the stream probably will disconnect immediately. Default: STANDARD. For details, see Channel Types."];authorized:Boolean.toption[@ocaml.doc"Whether the channel is private (enabled for playback authorization). Default: false."];recordingConfigurationArn:ChannelRecordingConfigurationArn.toption[@ocaml.doc"Recording-configuration ARN. A valid ARN value here both specifies the ARN and enables recording. Default: \"\" (empty string, recording is disabled)."];tags:Tags.toption[@ocaml.doc"Array of 1-50 maps, each of the form string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and \"Tag naming limits and requirements\"; Amazon IVS has no service-specific constraints beyond what is documented there."];insecureIngest:Boolean.toption[@ocaml.doc"Whether the channel allows insecure RTMP and SRT ingest. Default: false."];preset:TranscodePreset.toption[@ocaml.doc"Optional transcode preset for the channel. This is selectable only for ADVANCED_HD and ADVANCED_SD channel types. For those channel types, the default preset is HIGHER_BANDWIDTH_DELIVERY. For other channel types (BASIC and STANDARD), preset is the empty string (\"\")."];playbackRestrictionPolicyArn:ChannelPlaybackRestrictionPolicyArn.toption[@ocaml.doc"Playback-restriction-policy ARN. A valid ARN value here both specifies the ARN and enables playback restriction. Default: \"\" (empty string, no playback restriction policy is applied)."];multitrackInputConfiguration:MultitrackInputConfiguration.toption[@ocaml.doc"Object specifying multitrack input configuration. Default: no multitrack input configuration is specified."];containerFormat:ContainerFormat.toption[@ocaml.doc"Indicates which content-packaging format is used (MPEG-TS or fMP4). If multitrackInputConfiguration is specified and enabled is true, then containerFormat is required and must be set to FRAGMENTED_MP4. Otherwise, containerFormat may be set to TS or FRAGMENTED_MP4. Default: TS."];adConfigurationArn:ChannelAdConfigurationArn.toption[@ocaml.doc"ARN of the ad configuration associated with the channel."]}letmake?name=fun?latencyMode->fun?type_->fun?authorized->fun?recordingConfigurationArn->fun?tags->fun?insecureIngest->fun?preset->fun?playbackRestrictionPolicyArn->fun?multitrackInputConfiguration->fun?containerFormat->fun?adConfigurationArn->fun()->{name;latencyMode;type_;authorized;recordingConfigurationArn;tags;insecureIngest;preset;playbackRestrictionPolicyArn;multitrackInputConfiguration;containerFormat;adConfigurationArn}letto_valuex=structure_to_value[("name",(Option.mapx.name~f:ChannelName.to_value));("latencyMode",(Option.mapx.latencyMode~f:ChannelLatencyMode.to_value));("type",(Option.mapx.type_~f:ChannelType.to_value));("authorized",(Option.mapx.authorized~f:Boolean.to_value));("recordingConfigurationArn",(Option.mapx.recordingConfigurationArn~f:ChannelRecordingConfigurationArn.to_value));("tags",(Option.mapx.tags~f:Tags.to_value));("insecureIngest",(Option.mapx.insecureIngest~f:Boolean.to_value));("preset",(Option.mapx.preset~f:TranscodePreset.to_value));("playbackRestrictionPolicyArn",(Option.mapx.playbackRestrictionPolicyArn~f:ChannelPlaybackRestrictionPolicyArn.to_value));("multitrackInputConfiguration",(Option.mapx.multitrackInputConfiguration~f:MultitrackInputConfiguration.to_value));("containerFormat",(Option.mapx.containerFormat~f:ContainerFormat.to_value));("adConfigurationArn",(Option.mapx.adConfigurationArn~f:ChannelAdConfigurationArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letadConfigurationArn=(Option.map~f:ChannelAdConfigurationArn.of_xml)(Xml.childxml_arg0"adConfigurationArn")inletcontainerFormat=(Option.map~f:ContainerFormat.of_xml)(Xml.childxml_arg0"containerFormat")inletmultitrackInputConfiguration=(Option.map~f:MultitrackInputConfiguration.of_xml)(Xml.childxml_arg0"multitrackInputConfiguration")inletplaybackRestrictionPolicyArn=(Option.map~f:ChannelPlaybackRestrictionPolicyArn.of_xml)(Xml.childxml_arg0"playbackRestrictionPolicyArn")inletpreset=(Option.map~f:TranscodePreset.of_xml)(Xml.childxml_arg0"preset")inletinsecureIngest=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"insecureIngest")inlettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletrecordingConfigurationArn=(Option.map~f:ChannelRecordingConfigurationArn.of_xml)(Xml.childxml_arg0"recordingConfigurationArn")inletauthorized=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"authorized")inlettype_=(Option.map~f:ChannelType.of_xml)(Xml.childxml_arg0"type")inletlatencyMode=(Option.map~f:ChannelLatencyMode.of_xml)(Xml.childxml_arg0"latencyMode")inletname=(Option.map~f:ChannelName.of_xml)(Xml.childxml_arg0"name")inmake?adConfigurationArn?containerFormat?multitrackInputConfiguration?playbackRestrictionPolicyArn?preset?insecureIngest?tags?recordingConfigurationArn?authorized?type_?latencyMode?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letadConfigurationArn=field_mapjson__"adConfigurationArn"ChannelAdConfigurationArn.of_jsoninletcontainerFormat=field_mapjson__"containerFormat"ContainerFormat.of_jsoninletmultitrackInputConfiguration=field_mapjson__"multitrackInputConfiguration"MultitrackInputConfiguration.of_jsoninletplaybackRestrictionPolicyArn=field_mapjson__"playbackRestrictionPolicyArn"ChannelPlaybackRestrictionPolicyArn.of_jsoninletpreset=field_mapjson__"preset"TranscodePreset.of_jsoninletinsecureIngest=field_mapjson__"insecureIngest"Boolean.of_jsoninlettags=field_mapjson__"tags"Tags.of_jsoninletrecordingConfigurationArn=field_mapjson__"recordingConfigurationArn"ChannelRecordingConfigurationArn.of_jsoninletauthorized=field_mapjson__"authorized"Boolean.of_jsoninlettype_=field_mapjson__"type"ChannelType.of_jsoninletlatencyMode=field_mapjson__"latencyMode"ChannelLatencyMode.of_jsoninletname=field_mapjson__"name"ChannelName.of_jsoninmake?adConfigurationArn?containerFormat?multitrackInputConfiguration?playbackRestrictionPolicyArn?preset?insecureIngest?tags?recordingConfigurationArn?authorized?type_?latencyMode?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a new channel and an associated stream key to start streaming."]moduleCreateAdConfigurationResponse=structtypenonrect={adConfiguration:AdConfiguration.toption}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`PendingVerificationofPendingVerification.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?adConfiguration=fun()->{adConfiguration}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"PendingVerification"->`PendingVerification(PendingVerification.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"PendingVerification"->`PendingVerification(PendingVerification.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`PendingVerificatione->`Assoc[("error",(`String"PendingVerification"));("details",(PendingVerification.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("adConfiguration",(Option.mapx.adConfiguration~f:AdConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letadConfiguration=(Option.map~f:AdConfiguration.of_xml)(Xml.childxml_arg0"adConfiguration")inmake?adConfiguration()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letadConfiguration=field_mapjson__"adConfiguration"AdConfiguration.of_jsoninmake?adConfiguration()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a new ad configuration to be used for server-side ad insertion."]moduleCreateAdConfigurationRequest=structtypenonrect={name:AdConfigurationName.toption[@ocaml.doc"Ad configuration name. Defaults to \226\128\156\226\128\157."];mediaTailorPlaybackConfigurations:MediaTailorPlaybackConfigurationsList.t[@ocaml.doc"List of integration configurations with media tailor resources."];tags:Tags.toption[@ocaml.doc"Array of 1-50 maps, each of the form string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and \"Tag naming limits and requirements\"; Amazon IVS has no service-specific constraints beyond what is documented there."]}letcontext_="CreateAdConfigurationRequest"letmake?name=fun?tags->fun~mediaTailorPlaybackConfigurations->fun()->{name;tags;mediaTailorPlaybackConfigurations}letto_valuex=structure_to_value[("name",(Option.mapx.name~f:AdConfigurationName.to_value));("mediaTailorPlaybackConfigurations",(Some(MediaTailorPlaybackConfigurationsList.to_valuex.mediaTailorPlaybackConfigurations)));("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")inletmediaTailorPlaybackConfigurations=MediaTailorPlaybackConfigurationsList.of_xml(Xml.child_exn~context:context_xml_arg0"mediaTailorPlaybackConfigurations")inletname=(Option.map~f:AdConfigurationName.of_xml)(Xml.childxml_arg0"name")inmake?tags~mediaTailorPlaybackConfigurations?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninletmediaTailorPlaybackConfigurations=field_map_exnjson__"mediaTailorPlaybackConfigurations"MediaTailorPlaybackConfigurationsList.of_jsoninletname=field_mapjson__"name"AdConfigurationName.of_jsoninmake?tags~mediaTailorPlaybackConfigurations?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a new ad configuration to be used for server-side ad insertion."]moduleBatchStartViewerSessionRevocationResponse=structtypenonrect={accessControlAllowOrigin:String_.toption[@ocaml.doc"See Access-Control-Allow-Origin in the MDN Web Docs."];accessControlExposeHeaders:String_.toption[@ocaml.doc"See Access-Control-Expose-Headers in the MDN Web Docs."];cacheControl:String_.toption[@ocaml.doc"See Cache-Control in the MDN Web Docs."];contentSecurityPolicy:String_.toption[@ocaml.doc"See Content-Security-Policy in the MDN Web Docs."];strictTransportSecurity:String_.toption[@ocaml.doc"See Strict-Transport-Security in the MDN Web Docs."];xContentTypeOptions:String_.toption[@ocaml.doc"See X-Content-Type-Options in the MDN Web Docs."];xFrameOptions:String_.toption[@ocaml.doc"See X-Frame-Options in the MDN Web Docs."];errors:BatchStartViewerSessionRevocationErrors.toption[@ocaml.doc"Each error object is related to a specific channelArn and viewerId pair in the request."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`PendingVerificationofPendingVerification.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?accessControlAllowOrigin=fun?accessControlExposeHeaders->fun?cacheControl->fun?contentSecurityPolicy->fun?strictTransportSecurity->fun?xContentTypeOptions->fun?xFrameOptions->fun?errors->fun()->{accessControlAllowOrigin;accessControlExposeHeaders;cacheControl;contentSecurityPolicy;strictTransportSecurity;xContentTypeOptions;xFrameOptions;errors}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"PendingVerification"->`PendingVerification(PendingVerification.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"PendingVerification"->`PendingVerification(PendingVerification.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`PendingVerificatione->`Assoc[("error",(`String"PendingVerification"));("details",(PendingVerification.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Access-Control-Allow-Origin",(Option.mapx.accessControlAllowOrigin~f:String_.to_value));("Access-Control-Expose-Headers",(Option.mapx.accessControlExposeHeaders~f:String_.to_value));("Cache-Control",(Option.mapx.cacheControl~f:String_.to_value));("Content-Security-Policy",(Option.mapx.contentSecurityPolicy~f:String_.to_value));("Strict-Transport-Security",(Option.mapx.strictTransportSecurity~f:String_.to_value));("X-Content-Type-Options",(Option.mapx.xContentTypeOptions~f:String_.to_value));("X-Frame-Options",(Option.mapx.xFrameOptions~f:String_.to_value));("errors",(Option.mapx.errors~f:BatchStartViewerSessionRevocationErrors.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrors=(Option.map~f:BatchStartViewerSessionRevocationErrors.of_xml)(Xml.childxml_arg0"errors")inletxFrameOptions=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"X-Frame-Options")inletxContentTypeOptions=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"X-Content-Type-Options")inletstrictTransportSecurity=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Strict-Transport-Security")inletcontentSecurityPolicy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Content-Security-Policy")inletcacheControl=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Cache-Control")inletaccessControlExposeHeaders=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Access-Control-Expose-Headers")inletaccessControlAllowOrigin=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Access-Control-Allow-Origin")inmake?errors?xFrameOptions?xContentTypeOptions?strictTransportSecurity?contentSecurityPolicy?cacheControl?accessControlExposeHeaders?accessControlAllowOrigin()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrors=field_mapjson__"errors"BatchStartViewerSessionRevocationErrors.of_jsoninletxFrameOptions=field_mapjson__"xFrameOptions"String_.of_jsoninletxContentTypeOptions=field_mapjson__"xContentTypeOptions"String_.of_jsoninletstrictTransportSecurity=field_mapjson__"strictTransportSecurity"String_.of_jsoninletcontentSecurityPolicy=field_mapjson__"contentSecurityPolicy"String_.of_jsoninletcacheControl=field_mapjson__"cacheControl"String_.of_jsoninletaccessControlExposeHeaders=field_mapjson__"accessControlExposeHeaders"String_.of_jsoninletaccessControlAllowOrigin=field_mapjson__"accessControlAllowOrigin"String_.of_jsoninmake?errors?xFrameOptions?xContentTypeOptions?strictTransportSecurity?contentSecurityPolicy?cacheControl?accessControlExposeHeaders?accessControlAllowOrigin()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Performs StartViewerSessionRevocation on multiple channel ARN and viewer ID pairs simultaneously."]moduleBatchStartViewerSessionRevocationRequest=structtypenonrect={viewerSessions:BatchStartViewerSessionRevocationViewerSessionList.t[@ocaml.doc"Array of viewer sessions, one per channel-ARN and viewer-ID pair."]}letcontext_="BatchStartViewerSessionRevocationRequest"letmake~viewerSessions=fun()->{viewerSessions}letto_valuex=structure_to_value[("viewerSessions",(Some(BatchStartViewerSessionRevocationViewerSessionList.to_valuex.viewerSessions)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letviewerSessions=BatchStartViewerSessionRevocationViewerSessionList.of_xml(Xml.child_exn~context:context_xml_arg0"viewerSessions")inmake~viewerSessions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letviewerSessions=field_map_exnjson__"viewerSessions"BatchStartViewerSessionRevocationViewerSessionList.of_jsoninmake~viewerSessions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Performs StartViewerSessionRevocation on multiple channel ARN and viewer ID pairs simultaneously."]moduleBatchGetStreamKeyResponse=structtypenonrect={accessControlAllowOrigin:String_.toption[@ocaml.doc"See Access-Control-Allow-Origin in the MDN Web Docs."];accessControlExposeHeaders:String_.toption[@ocaml.doc"See Access-Control-Expose-Headers in the MDN Web Docs."];cacheControl:String_.toption[@ocaml.doc"See Cache-Control in the MDN Web Docs."];contentSecurityPolicy:String_.toption[@ocaml.doc"See Content-Security-Policy in the MDN Web Docs."];strictTransportSecurity:String_.toption[@ocaml.doc"See Strict-Transport-Security in the MDN Web Docs."];xContentTypeOptions:String_.toption[@ocaml.doc"See X-Content-Type-Options in the MDN Web Docs."];xFrameOptions:String_.toption[@ocaml.doc"See X-Frame-Options in the MDN Web Docs."];streamKeys:StreamKeys.toption;errors:BatchErrors.toption}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ServiceUnavailableofServiceUnavailable.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?accessControlAllowOrigin=fun?accessControlExposeHeaders->fun?cacheControl->fun?contentSecurityPolicy->fun?strictTransportSecurity->fun?xContentTypeOptions->fun?xFrameOptions->fun?streamKeys->fun?errors->fun()->{accessControlAllowOrigin;accessControlExposeHeaders;cacheControl;contentSecurityPolicy;strictTransportSecurity;xContentTypeOptions;xFrameOptions;streamKeys;errors}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ServiceUnavailable"->`ServiceUnavailable(ServiceUnavailable.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ServiceUnavailable"->`ServiceUnavailable(ServiceUnavailable.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ServiceUnavailablee->`Assoc[("error",(`String"ServiceUnavailable"));("details",(ServiceUnavailable.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Access-Control-Allow-Origin",(Option.mapx.accessControlAllowOrigin~f:String_.to_value));("Access-Control-Expose-Headers",(Option.mapx.accessControlExposeHeaders~f:String_.to_value));("Cache-Control",(Option.mapx.cacheControl~f:String_.to_value));("Content-Security-Policy",(Option.mapx.contentSecurityPolicy~f:String_.to_value));("Strict-Transport-Security",(Option.mapx.strictTransportSecurity~f:String_.to_value));("X-Content-Type-Options",(Option.mapx.xContentTypeOptions~f:String_.to_value));("X-Frame-Options",(Option.mapx.xFrameOptions~f:String_.to_value));("streamKeys",(Option.mapx.streamKeys~f:StreamKeys.to_value));("errors",(Option.mapx.errors~f:BatchErrors.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrors=(Option.map~f:BatchErrors.of_xml)(Xml.childxml_arg0"errors")inletstreamKeys=(Option.map~f:StreamKeys.of_xml)(Xml.childxml_arg0"streamKeys")inletxFrameOptions=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"X-Frame-Options")inletxContentTypeOptions=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"X-Content-Type-Options")inletstrictTransportSecurity=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Strict-Transport-Security")inletcontentSecurityPolicy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Content-Security-Policy")inletcacheControl=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Cache-Control")inletaccessControlExposeHeaders=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Access-Control-Expose-Headers")inletaccessControlAllowOrigin=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Access-Control-Allow-Origin")inmake?errors?streamKeys?xFrameOptions?xContentTypeOptions?strictTransportSecurity?contentSecurityPolicy?cacheControl?accessControlExposeHeaders?accessControlAllowOrigin()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrors=field_mapjson__"errors"BatchErrors.of_jsoninletstreamKeys=field_mapjson__"streamKeys"StreamKeys.of_jsoninletxFrameOptions=field_mapjson__"xFrameOptions"String_.of_jsoninletxContentTypeOptions=field_mapjson__"xContentTypeOptions"String_.of_jsoninletstrictTransportSecurity=field_mapjson__"strictTransportSecurity"String_.of_jsoninletcontentSecurityPolicy=field_mapjson__"contentSecurityPolicy"String_.of_jsoninletcacheControl=field_mapjson__"cacheControl"String_.of_jsoninletaccessControlExposeHeaders=field_mapjson__"accessControlExposeHeaders"String_.of_jsoninletaccessControlAllowOrigin=field_mapjson__"accessControlAllowOrigin"String_.of_jsoninmake?errors?streamKeys?xFrameOptions?xContentTypeOptions?strictTransportSecurity?contentSecurityPolicy?cacheControl?accessControlExposeHeaders?accessControlAllowOrigin()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Performs GetStreamKey on multiple ARNs simultaneously."]moduleBatchGetStreamKeyRequest=structtypenonrect={arns:StreamKeyArnList.t[@ocaml.doc"Array of ARNs, one per stream key."]}letcontext_="BatchGetStreamKeyRequest"letmake~arns=fun()->{arns}letto_valuex=structure_to_value[("arns",(Some(StreamKeyArnList.to_valuex.arns)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letarns=StreamKeyArnList.of_xml(Xml.child_exn~context:context_xml_arg0"arns")inmake~arns()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letarns=field_map_exnjson__"arns"StreamKeyArnList.of_jsoninmake~arns()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Performs GetStreamKey on multiple ARNs simultaneously."]moduleBatchGetChannelResponse=structtypenonrect={accessControlAllowOrigin:String_.toption[@ocaml.doc"See Access-Control-Allow-Origin in the MDN Web Docs."];accessControlExposeHeaders:String_.toption[@ocaml.doc"See Access-Control-Expose-Headers in the MDN Web Docs."];cacheControl:String_.toption[@ocaml.doc"See Cache-Control in the MDN Web Docs."];contentSecurityPolicy:String_.toption[@ocaml.doc"See Content-Security-Policy in the MDN Web Docs."];strictTransportSecurity:String_.toption[@ocaml.doc"See Strict-Transport-Security in the MDN Web Docs."];xContentTypeOptions:String_.toption[@ocaml.doc"See X-Content-Type-Options in the MDN Web Docs."];xFrameOptions:String_.toption[@ocaml.doc"See X-Frame-Options in the MDN Web Docs."];channels:Channels.toption;errors:BatchErrors.toption[@ocaml.doc"Each error object is related to a specific ARN in the request."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ServiceUnavailableofServiceUnavailable.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?accessControlAllowOrigin=fun?accessControlExposeHeaders->fun?cacheControl->fun?contentSecurityPolicy->fun?strictTransportSecurity->fun?xContentTypeOptions->fun?xFrameOptions->fun?channels->fun?errors->fun()->{accessControlAllowOrigin;accessControlExposeHeaders;cacheControl;contentSecurityPolicy;strictTransportSecurity;xContentTypeOptions;xFrameOptions;channels;errors}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ServiceUnavailable"->`ServiceUnavailable(ServiceUnavailable.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ServiceUnavailable"->`ServiceUnavailable(ServiceUnavailable.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ServiceUnavailablee->`Assoc[("error",(`String"ServiceUnavailable"));("details",(ServiceUnavailable.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Access-Control-Allow-Origin",(Option.mapx.accessControlAllowOrigin~f:String_.to_value));("Access-Control-Expose-Headers",(Option.mapx.accessControlExposeHeaders~f:String_.to_value));("Cache-Control",(Option.mapx.cacheControl~f:String_.to_value));("Content-Security-Policy",(Option.mapx.contentSecurityPolicy~f:String_.to_value));("Strict-Transport-Security",(Option.mapx.strictTransportSecurity~f:String_.to_value));("X-Content-Type-Options",(Option.mapx.xContentTypeOptions~f:String_.to_value));("X-Frame-Options",(Option.mapx.xFrameOptions~f:String_.to_value));("channels",(Option.mapx.channels~f:Channels.to_value));("errors",(Option.mapx.errors~f:BatchErrors.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leterrors=(Option.map~f:BatchErrors.of_xml)(Xml.childxml_arg0"errors")inletchannels=(Option.map~f:Channels.of_xml)(Xml.childxml_arg0"channels")inletxFrameOptions=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"X-Frame-Options")inletxContentTypeOptions=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"X-Content-Type-Options")inletstrictTransportSecurity=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Strict-Transport-Security")inletcontentSecurityPolicy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Content-Security-Policy")inletcacheControl=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Cache-Control")inletaccessControlExposeHeaders=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Access-Control-Expose-Headers")inletaccessControlAllowOrigin=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"Access-Control-Allow-Origin")inmake?errors?channels?xFrameOptions?xContentTypeOptions?strictTransportSecurity?contentSecurityPolicy?cacheControl?accessControlExposeHeaders?accessControlAllowOrigin()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leterrors=field_mapjson__"errors"BatchErrors.of_jsoninletchannels=field_mapjson__"channels"Channels.of_jsoninletxFrameOptions=field_mapjson__"xFrameOptions"String_.of_jsoninletxContentTypeOptions=field_mapjson__"xContentTypeOptions"String_.of_jsoninletstrictTransportSecurity=field_mapjson__"strictTransportSecurity"String_.of_jsoninletcontentSecurityPolicy=field_mapjson__"contentSecurityPolicy"String_.of_jsoninletcacheControl=field_mapjson__"cacheControl"String_.of_jsoninletaccessControlExposeHeaders=field_mapjson__"accessControlExposeHeaders"String_.of_jsoninletaccessControlAllowOrigin=field_mapjson__"accessControlAllowOrigin"String_.of_jsoninmake?errors?channels?xFrameOptions?xContentTypeOptions?strictTransportSecurity?contentSecurityPolicy?cacheControl?accessControlExposeHeaders?accessControlAllowOrigin()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Performs GetChannel on multiple ARNs simultaneously."]moduleBatchGetChannelRequest=structtypenonrect={arns:ChannelArnList.t[@ocaml.doc"Array of ARNs, one per channel."]}letcontext_="BatchGetChannelRequest"letmake~arns=fun()->{arns}letto_valuex=structure_to_value[("arns",(Some(ChannelArnList.to_valuex.arns)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letarns=ChannelArnList.of_xml(Xml.child_exn~context:context_xml_arg0"arns")inmake~arns()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letarns=field_map_exnjson__"arns"ChannelArnList.of_jsoninmake~arns()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Performs GetChannel on multiple ARNs simultaneously."]