123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917(* 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.mediapackage_vodletapiVersion="2018-11-07"letendpointPrefix="mediapackage-vod"letserviceFullName="AWS Elemental MediaPackage VOD"letsignatureVersion="v4"letprotocol="rest_json"letglobalEndpoint=endpointPrefix^".amazonaws.com"letserviceAbbreviation="MediaPackage Vod"letsimple_to_jsonto_valuex=Botodata.Json.value_to_json_scalar(to_valuex)letcomposed_to_jsonto_valuex=Botodata.Json.value_to_json(to_valuex)letto_queryto_valuex=Client.Query.of_value(to_valuex)letstructure_to_value_auxst~f=letfilter=function|(k,Somev)->Some(k,v)|_->Noneinletpairkv=(k,v)inletdefer_value(k,dv)=pairkdvin((List.filter_mapst~f:filter)|>(List.map~f:defer_value))|>(funx->`Structure(fx))letstructure_to_value=structure_to_value_aux~f:Fn.idletstructure_to_wrapped_value~wrapper~response=structure_to_value_aux~f:(funx->[(wrapper,(`Structurex));(response,(`Structure[]))])modulePresetSpeke20Audio=structtypenonrect=|PRESET_AUDIO_1|PRESET_AUDIO_2|PRESET_AUDIO_3|SHARED|UNENCRYPTED|Non_static_idofstringletmakei=iletto_string=function|PRESET_AUDIO_1->"PRESET-AUDIO-1"|PRESET_AUDIO_2->"PRESET-AUDIO-2"|PRESET_AUDIO_3->"PRESET-AUDIO-3"|SHARED->"SHARED"|UNENCRYPTED->"UNENCRYPTED"|Non_static_ids->sletof_string=function|"PRESET-AUDIO-1"->PRESET_AUDIO_1|"PRESET-AUDIO-2"->PRESET_AUDIO_2|"PRESET-AUDIO-3"->PRESET_AUDIO_3|"SHARED"->SHARED|"UNENCRYPTED"->UNENCRYPTED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration PresetSpeke20Audio"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"PresetSpeke20Audio"j)letto_json=simple_to_jsonto_valueendmodulePresetSpeke20Video=structtypenonrect=|PRESET_VIDEO_1|PRESET_VIDEO_2|PRESET_VIDEO_3|PRESET_VIDEO_4|PRESET_VIDEO_5|PRESET_VIDEO_6|PRESET_VIDEO_7|PRESET_VIDEO_8|SHARED|UNENCRYPTED|Non_static_idofstringletmakei=iletto_string=function|PRESET_VIDEO_1->"PRESET-VIDEO-1"|PRESET_VIDEO_2->"PRESET-VIDEO-2"|PRESET_VIDEO_3->"PRESET-VIDEO-3"|PRESET_VIDEO_4->"PRESET-VIDEO-4"|PRESET_VIDEO_5->"PRESET-VIDEO-5"|PRESET_VIDEO_6->"PRESET-VIDEO-6"|PRESET_VIDEO_7->"PRESET-VIDEO-7"|PRESET_VIDEO_8->"PRESET-VIDEO-8"|SHARED->"SHARED"|UNENCRYPTED->"UNENCRYPTED"|Non_static_ids->sletof_string=function|"PRESET-VIDEO-1"->PRESET_VIDEO_1|"PRESET-VIDEO-2"->PRESET_VIDEO_2|"PRESET-VIDEO-3"->PRESET_VIDEO_3|"PRESET-VIDEO-4"->PRESET_VIDEO_4|"PRESET-VIDEO-5"->PRESET_VIDEO_5|"PRESET-VIDEO-6"->PRESET_VIDEO_6|"PRESET-VIDEO-7"->PRESET_VIDEO_7|"PRESET-VIDEO-8"->PRESET_VIDEO_8|"SHARED"->SHARED|"UNENCRYPTED"->UNENCRYPTED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration PresetSpeke20Video"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"PresetSpeke20Video"j)letto_json=simple_to_jsonto_valueendmoduleZz__string=structtypenonrect=stringletcontext_="__string"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"__string"jletto_json=simple_to_jsonto_valueendmoduleStreamOrder=structtypenonrect=|ORIGINAL|VIDEO_BITRATE_ASCENDING|VIDEO_BITRATE_DESCENDING|Non_static_idofstringletmakei=iletto_string=function|ORIGINAL->"ORIGINAL"|VIDEO_BITRATE_ASCENDING->"VIDEO_BITRATE_ASCENDING"|VIDEO_BITRATE_DESCENDING->"VIDEO_BITRATE_DESCENDING"|Non_static_ids->sletof_string=function|"ORIGINAL"->ORIGINAL|"VIDEO_BITRATE_ASCENDING"->VIDEO_BITRATE_ASCENDING|"VIDEO_BITRATE_DESCENDING"->VIDEO_BITRATE_DESCENDING|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration StreamOrder"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"StreamOrder"j)letto_json=simple_to_jsonto_valueendmoduleZz__integer=structtypenonrect=intletmakei=iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for __integer"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleEncryptionContractConfiguration=structtypenonrect={presetSpeke20Audio:PresetSpeke20Audio.t[@ocaml.doc"A collection of audio encryption presets."];presetSpeke20Video:PresetSpeke20Video.t[@ocaml.doc"A collection of video encryption presets."]}letcontext_="EncryptionContractConfiguration"letmake~presetSpeke20Audio=fun~presetSpeke20Video->fun()->{presetSpeke20Audio;presetSpeke20Video}letto_valuex=structure_to_value[("presetSpeke20Audio",(Some(PresetSpeke20Audio.to_valuex.presetSpeke20Audio)));("presetSpeke20Video",(Some(PresetSpeke20Video.to_valuex.presetSpeke20Video)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpresetSpeke20Video=PresetSpeke20Video.of_xml(Xml.child_exn~context:context_xml_arg0"presetSpeke20Video")inletpresetSpeke20Audio=PresetSpeke20Audio.of_xml(Xml.child_exn~context:context_xml_arg0"presetSpeke20Audio")inmake~presetSpeke20Video~presetSpeke20Audio()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpresetSpeke20Video=field_map_exnjson__"PresetSpeke20Video"PresetSpeke20Video.of_jsoninletpresetSpeke20Audio=field_map_exnjson__"PresetSpeke20Audio"PresetSpeke20Audio.of_jsoninmake~presetSpeke20Video~presetSpeke20Audio()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Use encryptionContractConfiguration to configure one or more content encryption keys for your endpoints that use SPEKE 2.0. The encryption contract defines which content keys are used to encrypt the audio and video tracks in your stream. To configure the encryption contract, specify which audio and video encryption presets to use. Note the following considerations when using encryptionContractConfiguration: encryptionContractConfiguration can be used for DASH endpoints that use SPEKE 2.0. SPEKE 2.0 relies on the CPIX 2.3 specification. You must disable key rotation for this endpoint by setting keyRotationIntervalSeconds to 0."]moduleZz__listOf__string=structtypenonrect=Zz__string.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Zz__string.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:Zz__string.of_xml)letof_jsonj=list_of_json~kind:"__listOf__string"~of_json:Zz__string.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAdMarkers=structtypenonrect=|NONE|SCTE35_ENHANCED|PASSTHROUGH|Non_static_idofstringletmakei=iletto_string=function|NONE->"NONE"|SCTE35_ENHANCED->"SCTE35_ENHANCED"|PASSTHROUGH->"PASSTHROUGH"|Non_static_ids->sletof_string=function|"NONE"->NONE|"SCTE35_ENHANCED"->SCTE35_ENHANCED|"PASSTHROUGH"->PASSTHROUGH|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration AdMarkers"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AdMarkers"j)letto_json=simple_to_jsonto_valueendmoduleStreamSelection=structtypenonrect={maxVideoBitsPerSecond:Zz__integer.toption[@ocaml.doc"The maximum video bitrate (bps) to include in output."];minVideoBitsPerSecond:Zz__integer.toption[@ocaml.doc"The minimum video bitrate (bps) to include in output."];streamOrder:StreamOrder.toption[@ocaml.doc"A directive that determines the order of streams in the output."]}letmake?maxVideoBitsPerSecond=fun?minVideoBitsPerSecond->fun?streamOrder->fun()->{maxVideoBitsPerSecond;minVideoBitsPerSecond;streamOrder}letto_valuex=structure_to_value[("maxVideoBitsPerSecond",(Option.mapx.maxVideoBitsPerSecond~f:Zz__integer.to_value));("minVideoBitsPerSecond",(Option.mapx.minVideoBitsPerSecond~f:Zz__integer.to_value));("streamOrder",(Option.mapx.streamOrder~f:StreamOrder.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamOrder=(Option.map~f:StreamOrder.of_xml)(Xml.childxml_arg0"streamOrder")inletminVideoBitsPerSecond=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"minVideoBitsPerSecond")inletmaxVideoBitsPerSecond=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"maxVideoBitsPerSecond")inmake?streamOrder?minVideoBitsPerSecond?maxVideoBitsPerSecond()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamOrder=field_mapjson__"StreamOrder"StreamOrder.of_jsoninletminVideoBitsPerSecond=field_mapjson__"MinVideoBitsPerSecond"Zz__integer.of_jsoninletmaxVideoBitsPerSecond=field_mapjson__"MaxVideoBitsPerSecond"Zz__integer.of_jsoninmake?streamOrder?minVideoBitsPerSecond?maxVideoBitsPerSecond()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A StreamSelection configuration."]moduleZz__boolean=structtypenonrect=boolletmakei=iletof_string=Bool.of_stringletto_valuex=`Booleanxletto_queryv=to_queryto_valuevletto_headerx=Bool.to_stringxletof_xmlxml_arg0=Bool.of_string(string_of_xml~kind:"a boolean"xml_arg0)letof_json=bool_of_jsonletto_json=simple_to_jsonto_valueendmoduleManifestLayout=structtypenonrect=|FULL|COMPACT|Non_static_idofstringletmakei=iletto_string=function|FULL->"FULL"|COMPACT->"COMPACT"|Non_static_ids->sletof_string=function|"FULL"->FULL|"COMPACT"->COMPACT|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration ManifestLayout"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ManifestLayout"j)letto_json=simple_to_jsonto_valueendmoduleProfile=structtypenonrect=|NONE|HBBTV_1_5|Non_static_idofstringletmakei=iletto_string=function|NONE->"NONE"|HBBTV_1_5->"HBBTV_1_5"|Non_static_ids->sletof_string=function|"NONE"->NONE|"HBBTV_1_5"->HBBTV_1_5|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration Profile"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Profile"j)letto_json=simple_to_jsonto_valueendmoduleScteMarkersSource=structtypenonrect=|SEGMENTS|MANIFEST|Non_static_idofstringletmakei=iletto_string=function|SEGMENTS->"SEGMENTS"|MANIFEST->"MANIFEST"|Non_static_ids->sletof_string=function|"SEGMENTS"->SEGMENTS|"MANIFEST"->MANIFEST|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 ScteMarkersSource"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ScteMarkersSource"j)letto_json=simple_to_jsonto_valueendmoduleSpekeKeyProvider=structtypenonrect={encryptionContractConfiguration:EncryptionContractConfiguration.toption;roleArn:Zz__string.t[@ocaml.doc"An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service."];systemIds:Zz__listOf__string.t[@ocaml.doc"The system IDs to include in key requests."];url:Zz__string.t[@ocaml.doc"The URL of the external key provider service."]}letcontext_="SpekeKeyProvider"letmake?encryptionContractConfiguration=fun~roleArn->fun~systemIds->fun~url->fun()->{encryptionContractConfiguration;roleArn;systemIds;url}letto_valuex=structure_to_value[("encryptionContractConfiguration",(Option.mapx.encryptionContractConfiguration~f:EncryptionContractConfiguration.to_value));("roleArn",(Some(Zz__string.to_valuex.roleArn)));("systemIds",(Some(Zz__listOf__string.to_valuex.systemIds)));("url",(Some(Zz__string.to_valuex.url)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leturl=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"url")inletsystemIds=Zz__listOf__string.of_xml(Xml.child_exn~context:context_xml_arg0"systemIds")inletroleArn=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"roleArn")inletencryptionContractConfiguration=(Option.map~f:EncryptionContractConfiguration.of_xml)(Xml.childxml_arg0"encryptionContractConfiguration")inmake~url~systemIds~roleArn?encryptionContractConfiguration()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leturl=field_map_exnjson__"Url"Zz__string.of_jsoninletsystemIds=field_map_exnjson__"SystemIds"Zz__listOf__string.of_jsoninletroleArn=field_map_exnjson__"RoleArn"Zz__string.of_jsoninletencryptionContractConfiguration=field_mapjson__"EncryptionContractConfiguration"EncryptionContractConfiguration.of_jsoninmake~url~systemIds~roleArn?encryptionContractConfiguration()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys."]moduleHlsManifest=structtypenonrect={adMarkers:AdMarkers.toption[@ocaml.doc"This setting controls how ad markers are included in the packaged OriginEndpoint. \"NONE\" will omit all SCTE-35 ad markers from the output. \"PASSTHROUGH\" causes the manifest to contain a copy of the SCTE-35 ad markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. \"SCTE35_ENHANCED\" generates ad markers and blackout tags based on SCTE-35 messages in the input source."];includeIframeOnlyStream:Zz__boolean.toption[@ocaml.doc"When enabled, an I-Frame only stream will be included in the output."];manifestName:Zz__string.toption[@ocaml.doc"An optional string to include in the name of the manifest."];programDateTimeIntervalSeconds:Zz__integer.toption[@ocaml.doc"The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally, when an interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the ingest time of the content. If the interval is not specified, or set to 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no ID3Timed Metadata messages will be generated. Note that irrespective of this parameter, if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS output."];repeatExtXKey:Zz__boolean.toption[@ocaml.doc"When enabled, the EXT-X-KEY tag will be repeated in output manifests."];streamSelection:StreamSelection.toption}letmake?adMarkers=fun?includeIframeOnlyStream->fun?manifestName->fun?programDateTimeIntervalSeconds->fun?repeatExtXKey->fun?streamSelection->fun()->{adMarkers;includeIframeOnlyStream;manifestName;programDateTimeIntervalSeconds;repeatExtXKey;streamSelection}letto_valuex=structure_to_value[("adMarkers",(Option.mapx.adMarkers~f:AdMarkers.to_value));("includeIframeOnlyStream",(Option.mapx.includeIframeOnlyStream~f:Zz__boolean.to_value));("manifestName",(Option.mapx.manifestName~f:Zz__string.to_value));("programDateTimeIntervalSeconds",(Option.mapx.programDateTimeIntervalSeconds~f:Zz__integer.to_value));("repeatExtXKey",(Option.mapx.repeatExtXKey~f:Zz__boolean.to_value));("streamSelection",(Option.mapx.streamSelection~f:StreamSelection.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamSelection=(Option.map~f:StreamSelection.of_xml)(Xml.childxml_arg0"streamSelection")inletrepeatExtXKey=(Option.map~f:Zz__boolean.of_xml)(Xml.childxml_arg0"repeatExtXKey")inletprogramDateTimeIntervalSeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"programDateTimeIntervalSeconds")inletmanifestName=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"manifestName")inletincludeIframeOnlyStream=(Option.map~f:Zz__boolean.of_xml)(Xml.childxml_arg0"includeIframeOnlyStream")inletadMarkers=(Option.map~f:AdMarkers.of_xml)(Xml.childxml_arg0"adMarkers")inmake?streamSelection?repeatExtXKey?programDateTimeIntervalSeconds?manifestName?includeIframeOnlyStream?adMarkers()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamSelection=field_mapjson__"StreamSelection"StreamSelection.of_jsoninletrepeatExtXKey=field_mapjson__"RepeatExtXKey"Zz__boolean.of_jsoninletprogramDateTimeIntervalSeconds=field_mapjson__"ProgramDateTimeIntervalSeconds"Zz__integer.of_jsoninletmanifestName=field_mapjson__"ManifestName"Zz__string.of_jsoninletincludeIframeOnlyStream=field_mapjson__"IncludeIframeOnlyStream"Zz__boolean.of_jsoninletadMarkers=field_mapjson__"AdMarkers"AdMarkers.of_jsoninmake?streamSelection?repeatExtXKey?programDateTimeIntervalSeconds?manifestName?includeIframeOnlyStream?adMarkers()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An HTTP Live Streaming (HLS) manifest configuration."]moduleDashManifest=structtypenonrect={manifestLayout:ManifestLayout.toption[@ocaml.doc"Determines the position of some tags in the Media Presentation Description (MPD). When set to FULL, elements like SegmentTemplate and ContentProtection are included in each Representation. When set to COMPACT, duplicate elements are combined and presented at the AdaptationSet level."];manifestName:Zz__string.toption[@ocaml.doc"An optional string to include in the name of the manifest."];minBufferTimeSeconds:Zz__integer.toption[@ocaml.doc"Minimum duration (in seconds) that a player will buffer media before starting the presentation."];profile:Profile.toption[@ocaml.doc"The Dynamic Adaptive Streaming over HTTP (DASH) profile type. When set to \"HBBTV_1_5\", HbbTV 1.5 compliant output is enabled."];scteMarkersSource:ScteMarkersSource.toption[@ocaml.doc"The source of scte markers used. When set to SEGMENTS, the scte markers are sourced from the segments of the ingested content. When set to MANIFEST, the scte markers are sourced from the manifest of the ingested content."];streamSelection:StreamSelection.toption}letmake?manifestLayout=fun?manifestName->fun?minBufferTimeSeconds->fun?profile->fun?scteMarkersSource->fun?streamSelection->fun()->{manifestLayout;manifestName;minBufferTimeSeconds;profile;scteMarkersSource;streamSelection}letto_valuex=structure_to_value[("manifestLayout",(Option.mapx.manifestLayout~f:ManifestLayout.to_value));("manifestName",(Option.mapx.manifestName~f:Zz__string.to_value));("minBufferTimeSeconds",(Option.mapx.minBufferTimeSeconds~f:Zz__integer.to_value));("profile",(Option.mapx.profile~f:Profile.to_value));("scteMarkersSource",(Option.mapx.scteMarkersSource~f:ScteMarkersSource.to_value));("streamSelection",(Option.mapx.streamSelection~f:StreamSelection.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamSelection=(Option.map~f:StreamSelection.of_xml)(Xml.childxml_arg0"streamSelection")inletscteMarkersSource=(Option.map~f:ScteMarkersSource.of_xml)(Xml.childxml_arg0"scteMarkersSource")inletprofile=(Option.map~f:Profile.of_xml)(Xml.childxml_arg0"profile")inletminBufferTimeSeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"minBufferTimeSeconds")inletmanifestName=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"manifestName")inletmanifestLayout=(Option.map~f:ManifestLayout.of_xml)(Xml.childxml_arg0"manifestLayout")inmake?streamSelection?scteMarkersSource?profile?minBufferTimeSeconds?manifestName?manifestLayout()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamSelection=field_mapjson__"StreamSelection"StreamSelection.of_jsoninletscteMarkersSource=field_mapjson__"ScteMarkersSource"ScteMarkersSource.of_jsoninletprofile=field_mapjson__"Profile"Profile.of_jsoninletminBufferTimeSeconds=field_mapjson__"MinBufferTimeSeconds"Zz__integer.of_jsoninletmanifestName=field_mapjson__"ManifestName"Zz__string.of_jsoninletmanifestLayout=field_mapjson__"ManifestLayout"ManifestLayout.of_jsoninmake?streamSelection?scteMarkersSource?profile?minBufferTimeSeconds?manifestName?manifestLayout()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A DASH manifest configuration."]moduleZz__PeriodTriggersElement=structtypenonrect=|ADS|Non_static_idofstringletmakei=iletto_string=function|ADS->"ADS"|Non_static_ids->sletof_string=function|"ADS"->ADS|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration __PeriodTriggersElement"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"__PeriodTriggersElement"j)letto_json=simple_to_jsonto_valueendmoduleEncryptionMethod=structtypenonrect=|AES_128|SAMPLE_AES|Non_static_idofstringletmakei=iletto_string=function|AES_128->"AES_128"|SAMPLE_AES->"SAMPLE_AES"|Non_static_ids->sletof_string=function|"AES_128"->AES_128|"SAMPLE_AES"->SAMPLE_AES|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration EncryptionMethod"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"EncryptionMethod"j)letto_json=simple_to_jsonto_valueendmoduleMssManifest=structtypenonrect={manifestName:Zz__string.toption[@ocaml.doc"An optional string to include in the name of the manifest."];streamSelection:StreamSelection.toption}letmake?manifestName=fun?streamSelection->fun()->{manifestName;streamSelection}letto_valuex=structure_to_value[("manifestName",(Option.mapx.manifestName~f:Zz__string.to_value));("streamSelection",(Option.mapx.streamSelection~f:StreamSelection.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstreamSelection=(Option.map~f:StreamSelection.of_xml)(Xml.childxml_arg0"streamSelection")inletmanifestName=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"manifestName")inmake?streamSelection?manifestName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstreamSelection=field_mapjson__"StreamSelection"StreamSelection.of_jsoninletmanifestName=field_mapjson__"ManifestName"Zz__string.of_jsoninmake?streamSelection?manifestName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A Microsoft Smooth Streaming (MSS) manifest configuration."]moduleCmafEncryption=structtypenonrect={constantInitializationVector:Zz__string.toption[@ocaml.doc"An optional 128-bit, 16-byte hex value represented by a 32-character string, used in conjunction with the key for encrypting blocks. If you don't specify a value, then MediaPackage creates the constant initialization vector (IV)."];spekeKeyProvider:SpekeKeyProvider.t}letcontext_="CmafEncryption"letmake?constantInitializationVector=fun~spekeKeyProvider->fun()->{constantInitializationVector;spekeKeyProvider}letto_valuex=structure_to_value[("constantInitializationVector",(Option.mapx.constantInitializationVector~f:Zz__string.to_value));("spekeKeyProvider",(Some(SpekeKeyProvider.to_valuex.spekeKeyProvider)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letspekeKeyProvider=SpekeKeyProvider.of_xml(Xml.child_exn~context:context_xml_arg0"spekeKeyProvider")inletconstantInitializationVector=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"constantInitializationVector")inmake~spekeKeyProvider?constantInitializationVector()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letspekeKeyProvider=field_map_exnjson__"SpekeKeyProvider"SpekeKeyProvider.of_jsoninletconstantInitializationVector=field_mapjson__"ConstantInitializationVector"Zz__string.of_jsoninmake~spekeKeyProvider?constantInitializationVector()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A CMAF encryption configuration."]moduleZz__listOfHlsManifest=structtypenonrect=HlsManifest.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:HlsManifest.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:HlsManifest.of_xml)letof_jsonj=list_of_json~kind:"__listOfHlsManifest"~of_json:HlsManifest.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDashEncryption=structtypenonrect={spekeKeyProvider:SpekeKeyProvider.t}letcontext_="DashEncryption"letmake~spekeKeyProvider=fun()->{spekeKeyProvider}letto_valuex=structure_to_value[("spekeKeyProvider",(Some(SpekeKeyProvider.to_valuex.spekeKeyProvider)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letspekeKeyProvider=SpekeKeyProvider.of_xml(Xml.child_exn~context:context_xml_arg0"spekeKeyProvider")inmake~spekeKeyProvider()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letspekeKeyProvider=field_map_exnjson__"SpekeKeyProvider"SpekeKeyProvider.of_jsoninmake~spekeKeyProvider()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A Dynamic Adaptive Streaming over HTTP (DASH) encryption configuration."]moduleSegmentTemplateFormat=structtypenonrect=|NUMBER_WITH_TIMELINE|TIME_WITH_TIMELINE|NUMBER_WITH_DURATION|Non_static_idofstringletmakei=iletto_string=function|NUMBER_WITH_TIMELINE->"NUMBER_WITH_TIMELINE"|TIME_WITH_TIMELINE->"TIME_WITH_TIMELINE"|NUMBER_WITH_DURATION->"NUMBER_WITH_DURATION"|Non_static_ids->sletof_string=function|"NUMBER_WITH_TIMELINE"->NUMBER_WITH_TIMELINE|"TIME_WITH_TIMELINE"->TIME_WITH_TIMELINE|"NUMBER_WITH_DURATION"->NUMBER_WITH_DURATION|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration SegmentTemplateFormat"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SegmentTemplateFormat"j)letto_json=simple_to_jsonto_valueendmoduleZz__listOfDashManifest=structtypenonrect=DashManifest.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DashManifest.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:DashManifest.of_xml)letof_jsonj=list_of_json~kind:"__listOfDashManifest"~of_json:DashManifest.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleZz__listOf__PeriodTriggersElement=structtypenonrect=Zz__PeriodTriggersElement.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Zz__PeriodTriggersElement.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:Zz__PeriodTriggersElement.of_xml)letof_jsonj=list_of_json~kind:"__listOf__PeriodTriggersElement"~of_json:Zz__PeriodTriggersElement.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleHlsEncryption=structtypenonrect={constantInitializationVector:Zz__string.toption[@ocaml.doc"A constant initialization vector for encryption (optional). When not specified the initialization vector will be periodically rotated."];encryptionMethod:EncryptionMethod.toption[@ocaml.doc"The encryption method to use."];spekeKeyProvider:SpekeKeyProvider.t}letcontext_="HlsEncryption"letmake?constantInitializationVector=fun?encryptionMethod->fun~spekeKeyProvider->fun()->{constantInitializationVector;encryptionMethod;spekeKeyProvider}letto_valuex=structure_to_value[("constantInitializationVector",(Option.mapx.constantInitializationVector~f:Zz__string.to_value));("encryptionMethod",(Option.mapx.encryptionMethod~f:EncryptionMethod.to_value));("spekeKeyProvider",(Some(SpekeKeyProvider.to_valuex.spekeKeyProvider)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letspekeKeyProvider=SpekeKeyProvider.of_xml(Xml.child_exn~context:context_xml_arg0"spekeKeyProvider")inletencryptionMethod=(Option.map~f:EncryptionMethod.of_xml)(Xml.childxml_arg0"encryptionMethod")inletconstantInitializationVector=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"constantInitializationVector")inmake~spekeKeyProvider?encryptionMethod?constantInitializationVector()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letspekeKeyProvider=field_map_exnjson__"SpekeKeyProvider"SpekeKeyProvider.of_jsoninletencryptionMethod=field_mapjson__"EncryptionMethod"EncryptionMethod.of_jsoninletconstantInitializationVector=field_mapjson__"ConstantInitializationVector"Zz__string.of_jsoninmake~spekeKeyProvider?encryptionMethod?constantInitializationVector()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An HTTP Live Streaming (HLS) encryption configuration."]moduleMssEncryption=structtypenonrect={spekeKeyProvider:SpekeKeyProvider.t}letcontext_="MssEncryption"letmake~spekeKeyProvider=fun()->{spekeKeyProvider}letto_valuex=structure_to_value[("spekeKeyProvider",(Some(SpekeKeyProvider.to_valuex.spekeKeyProvider)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letspekeKeyProvider=SpekeKeyProvider.of_xml(Xml.child_exn~context:context_xml_arg0"spekeKeyProvider")inmake~spekeKeyProvider()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letspekeKeyProvider=field_map_exnjson__"SpekeKeyProvider"SpekeKeyProvider.of_jsoninmake~spekeKeyProvider()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A Microsoft Smooth Streaming (MSS) encryption configuration."]moduleZz__listOfMssManifest=structtypenonrect=MssManifest.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:MssManifest.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:MssManifest.of_xml)letof_jsonj=list_of_json~kind:"__listOfMssManifest"~of_json:MssManifest.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAuthorization=structtypenonrect={cdnIdentifierSecret:Zz__string.t[@ocaml.doc"The Amazon Resource Name (ARN) for the secret in AWS Secrets Manager that is used for CDN authorization."];secretsRoleArn:Zz__string.t[@ocaml.doc"The Amazon Resource Name (ARN) for the IAM role that allows MediaPackage to communicate with AWS Secrets Manager."]}letcontext_="Authorization"letmake~cdnIdentifierSecret=fun~secretsRoleArn->fun()->{cdnIdentifierSecret;secretsRoleArn}letto_valuex=structure_to_value[("cdnIdentifierSecret",(Some(Zz__string.to_valuex.cdnIdentifierSecret)));("secretsRoleArn",(Some(Zz__string.to_valuex.secretsRoleArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsecretsRoleArn=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"secretsRoleArn")inletcdnIdentifierSecret=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"cdnIdentifierSecret")inmake~secretsRoleArn~cdnIdentifierSecret()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsecretsRoleArn=field_map_exnjson__"SecretsRoleArn"Zz__string.of_jsoninletcdnIdentifierSecret=field_map_exnjson__"CdnIdentifierSecret"Zz__string.of_jsoninmake~secretsRoleArn~cdnIdentifierSecret()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"CDN Authorization credentials"]moduleEgressAccessLogs=structtypenonrect={logGroupName:Zz__string.toption[@ocaml.doc"Customize the log group name."]}letmake?logGroupName=fun()->{logGroupName}letto_valuex=structure_to_value[("logGroupName",(Option.mapx.logGroupName~f:Zz__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlogGroupName=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"logGroupName")inmake?logGroupName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlogGroupName=field_mapjson__"LogGroupName"Zz__string.of_jsoninmake?logGroupName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configure egress access logging."]moduleTags=structtypenonrect=(Zz__string.t*Zz__string.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((Zz__string.of_stringchopped),(Zz__string.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(Zz__string.to_valuex)|>(funx->(Zz__string.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:Zz__string.of_string~of_json:Zz__string.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleCmafPackage=structtypenonrect={encryption:CmafEncryption.toption;hlsManifests:Zz__listOfHlsManifest.t[@ocaml.doc"A list of HLS manifest configurations."];includeEncoderConfigurationInSegments:Zz__boolean.toption[@ocaml.doc"When includeEncoderConfigurationInSegments is set to true, MediaPackage places your encoder's Sequence Parameter Set (SPS), Picture Parameter Set (PPS), and Video Parameter Set (VPS) metadata in every video segment instead of in the init fragment. This lets you use different SPS/PPS/VPS settings for your assets during content playback."];segmentDurationSeconds:Zz__integer.toption[@ocaml.doc"Duration (in seconds) of each fragment. Actual fragments will be rounded to the nearest multiple of the source fragment duration."]}letcontext_="CmafPackage"letmake?encryption=fun?includeEncoderConfigurationInSegments->fun?segmentDurationSeconds->fun~hlsManifests->fun()->{encryption;includeEncoderConfigurationInSegments;segmentDurationSeconds;hlsManifests}letto_valuex=structure_to_value[("encryption",(Option.mapx.encryption~f:CmafEncryption.to_value));("hlsManifests",(Some(Zz__listOfHlsManifest.to_valuex.hlsManifests)));("includeEncoderConfigurationInSegments",(Option.mapx.includeEncoderConfigurationInSegments~f:Zz__boolean.to_value));("segmentDurationSeconds",(Option.mapx.segmentDurationSeconds~f:Zz__integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsegmentDurationSeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"segmentDurationSeconds")inletincludeEncoderConfigurationInSegments=(Option.map~f:Zz__boolean.of_xml)(Xml.childxml_arg0"includeEncoderConfigurationInSegments")inlethlsManifests=Zz__listOfHlsManifest.of_xml(Xml.child_exn~context:context_xml_arg0"hlsManifests")inletencryption=(Option.map~f:CmafEncryption.of_xml)(Xml.childxml_arg0"encryption")inmake?segmentDurationSeconds?includeEncoderConfigurationInSegments~hlsManifests?encryption()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsegmentDurationSeconds=field_mapjson__"SegmentDurationSeconds"Zz__integer.of_jsoninletincludeEncoderConfigurationInSegments=field_mapjson__"IncludeEncoderConfigurationInSegments"Zz__boolean.of_jsoninlethlsManifests=field_map_exnjson__"HlsManifests"Zz__listOfHlsManifest.of_jsoninletencryption=field_mapjson__"Encryption"CmafEncryption.of_jsoninmake?segmentDurationSeconds?includeEncoderConfigurationInSegments~hlsManifests?encryption()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A CMAF packaging configuration."]moduleDashPackage=structtypenonrect={dashManifests:Zz__listOfDashManifest.t[@ocaml.doc"A list of DASH manifest configurations."];encryption:DashEncryption.toption;includeEncoderConfigurationInSegments:Zz__boolean.toption[@ocaml.doc"When includeEncoderConfigurationInSegments is set to true, MediaPackage places your encoder's Sequence Parameter Set (SPS), Picture Parameter Set (PPS), and Video Parameter Set (VPS) metadata in every video segment instead of in the init fragment. This lets you use different SPS/PPS/VPS settings for your assets during content playback."];includeIframeOnlyStream:Zz__boolean.toption[@ocaml.doc"When enabled, an I-Frame only stream will be included in the output."];periodTriggers:Zz__listOf__PeriodTriggersElement.toption[@ocaml.doc"A list of triggers that controls when the outgoing Dynamic Adaptive Streaming over HTTP (DASH) Media Presentation Description (MPD) will be partitioned into multiple periods. If empty, the content will not be partitioned into more than one period. If the list contains \"ADS\", new periods will be created where the Asset contains SCTE-35 ad markers."];segmentDurationSeconds:Zz__integer.toption[@ocaml.doc"Duration (in seconds) of each segment. Actual segments will be rounded to the nearest multiple of the source segment duration."];segmentTemplateFormat:SegmentTemplateFormat.toption[@ocaml.doc"Determines the type of SegmentTemplate included in the Media Presentation Description (MPD). When set to NUMBER_WITH_TIMELINE, a full timeline is presented in each SegmentTemplate, with $Number$ media URLs. When set to TIME_WITH_TIMELINE, a full timeline is presented in each SegmentTemplate, with $Time$ media URLs. When set to NUMBER_WITH_DURATION, only a duration is included in each SegmentTemplate, with $Number$ media URLs."]}letcontext_="DashPackage"letmake?encryption=fun?includeEncoderConfigurationInSegments->fun?includeIframeOnlyStream->fun?periodTriggers->fun?segmentDurationSeconds->fun?segmentTemplateFormat->fun~dashManifests->fun()->{encryption;includeEncoderConfigurationInSegments;includeIframeOnlyStream;periodTriggers;segmentDurationSeconds;segmentTemplateFormat;dashManifests}letto_valuex=structure_to_value[("dashManifests",(Some(Zz__listOfDashManifest.to_valuex.dashManifests)));("encryption",(Option.mapx.encryption~f:DashEncryption.to_value));("includeEncoderConfigurationInSegments",(Option.mapx.includeEncoderConfigurationInSegments~f:Zz__boolean.to_value));("includeIframeOnlyStream",(Option.mapx.includeIframeOnlyStream~f:Zz__boolean.to_value));("periodTriggers",(Option.mapx.periodTriggers~f:Zz__listOf__PeriodTriggersElement.to_value));("segmentDurationSeconds",(Option.mapx.segmentDurationSeconds~f:Zz__integer.to_value));("segmentTemplateFormat",(Option.mapx.segmentTemplateFormat~f:SegmentTemplateFormat.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsegmentTemplateFormat=(Option.map~f:SegmentTemplateFormat.of_xml)(Xml.childxml_arg0"segmentTemplateFormat")inletsegmentDurationSeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"segmentDurationSeconds")inletperiodTriggers=(Option.map~f:Zz__listOf__PeriodTriggersElement.of_xml)(Xml.childxml_arg0"periodTriggers")inletincludeIframeOnlyStream=(Option.map~f:Zz__boolean.of_xml)(Xml.childxml_arg0"includeIframeOnlyStream")inletincludeEncoderConfigurationInSegments=(Option.map~f:Zz__boolean.of_xml)(Xml.childxml_arg0"includeEncoderConfigurationInSegments")inletencryption=(Option.map~f:DashEncryption.of_xml)(Xml.childxml_arg0"encryption")inletdashManifests=Zz__listOfDashManifest.of_xml(Xml.child_exn~context:context_xml_arg0"dashManifests")inmake?segmentTemplateFormat?segmentDurationSeconds?periodTriggers?includeIframeOnlyStream?includeEncoderConfigurationInSegments?encryption~dashManifests()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsegmentTemplateFormat=field_mapjson__"SegmentTemplateFormat"SegmentTemplateFormat.of_jsoninletsegmentDurationSeconds=field_mapjson__"SegmentDurationSeconds"Zz__integer.of_jsoninletperiodTriggers=field_mapjson__"PeriodTriggers"Zz__listOf__PeriodTriggersElement.of_jsoninletincludeIframeOnlyStream=field_mapjson__"IncludeIframeOnlyStream"Zz__boolean.of_jsoninletincludeEncoderConfigurationInSegments=field_mapjson__"IncludeEncoderConfigurationInSegments"Zz__boolean.of_jsoninletencryption=field_mapjson__"Encryption"DashEncryption.of_jsoninletdashManifests=field_map_exnjson__"DashManifests"Zz__listOfDashManifest.of_jsoninmake?segmentTemplateFormat?segmentDurationSeconds?periodTriggers?includeIframeOnlyStream?includeEncoderConfigurationInSegments?encryption~dashManifests()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration."]moduleHlsPackage=structtypenonrect={encryption:HlsEncryption.toption;hlsManifests:Zz__listOfHlsManifest.t[@ocaml.doc"A list of HLS manifest configurations."];includeDvbSubtitles:Zz__boolean.toption[@ocaml.doc"When enabled, MediaPackage passes through digital video broadcasting (DVB) subtitles into the output."];segmentDurationSeconds:Zz__integer.toption[@ocaml.doc"Duration (in seconds) of each fragment. Actual fragments will be rounded to the nearest multiple of the source fragment duration."];useAudioRenditionGroup:Zz__boolean.toption[@ocaml.doc"When enabled, audio streams will be placed in rendition groups in the output."]}letcontext_="HlsPackage"letmake?encryption=fun?includeDvbSubtitles->fun?segmentDurationSeconds->fun?useAudioRenditionGroup->fun~hlsManifests->fun()->{encryption;includeDvbSubtitles;segmentDurationSeconds;useAudioRenditionGroup;hlsManifests}letto_valuex=structure_to_value[("encryption",(Option.mapx.encryption~f:HlsEncryption.to_value));("hlsManifests",(Some(Zz__listOfHlsManifest.to_valuex.hlsManifests)));("includeDvbSubtitles",(Option.mapx.includeDvbSubtitles~f:Zz__boolean.to_value));("segmentDurationSeconds",(Option.mapx.segmentDurationSeconds~f:Zz__integer.to_value));("useAudioRenditionGroup",(Option.mapx.useAudioRenditionGroup~f:Zz__boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuseAudioRenditionGroup=(Option.map~f:Zz__boolean.of_xml)(Xml.childxml_arg0"useAudioRenditionGroup")inletsegmentDurationSeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"segmentDurationSeconds")inletincludeDvbSubtitles=(Option.map~f:Zz__boolean.of_xml)(Xml.childxml_arg0"includeDvbSubtitles")inlethlsManifests=Zz__listOfHlsManifest.of_xml(Xml.child_exn~context:context_xml_arg0"hlsManifests")inletencryption=(Option.map~f:HlsEncryption.of_xml)(Xml.childxml_arg0"encryption")inmake?useAudioRenditionGroup?segmentDurationSeconds?includeDvbSubtitles~hlsManifests?encryption()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuseAudioRenditionGroup=field_mapjson__"UseAudioRenditionGroup"Zz__boolean.of_jsoninletsegmentDurationSeconds=field_mapjson__"SegmentDurationSeconds"Zz__integer.of_jsoninletincludeDvbSubtitles=field_mapjson__"IncludeDvbSubtitles"Zz__boolean.of_jsoninlethlsManifests=field_map_exnjson__"HlsManifests"Zz__listOfHlsManifest.of_jsoninletencryption=field_mapjson__"Encryption"HlsEncryption.of_jsoninmake?useAudioRenditionGroup?segmentDurationSeconds?includeDvbSubtitles~hlsManifests?encryption()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An HTTP Live Streaming (HLS) packaging configuration."]moduleMssPackage=structtypenonrect={encryption:MssEncryption.toption;mssManifests:Zz__listOfMssManifest.t[@ocaml.doc"A list of MSS manifest configurations."];segmentDurationSeconds:Zz__integer.toption[@ocaml.doc"The duration (in seconds) of each segment."]}letcontext_="MssPackage"letmake?encryption=fun?segmentDurationSeconds->fun~mssManifests->fun()->{encryption;segmentDurationSeconds;mssManifests}letto_valuex=structure_to_value[("encryption",(Option.mapx.encryption~f:MssEncryption.to_value));("mssManifests",(Some(Zz__listOfMssManifest.to_valuex.mssManifests)));("segmentDurationSeconds",(Option.mapx.segmentDurationSeconds~f:Zz__integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsegmentDurationSeconds=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"segmentDurationSeconds")inletmssManifests=Zz__listOfMssManifest.of_xml(Xml.child_exn~context:context_xml_arg0"mssManifests")inletencryption=(Option.map~f:MssEncryption.of_xml)(Xml.childxml_arg0"encryption")inmake?segmentDurationSeconds~mssManifests?encryption()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsegmentDurationSeconds=field_mapjson__"SegmentDurationSeconds"Zz__integer.of_jsoninletmssManifests=field_map_exnjson__"MssManifests"Zz__listOfMssManifest.of_jsoninletencryption=field_mapjson__"Encryption"MssEncryption.of_jsoninmake?segmentDurationSeconds~mssManifests?encryption()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A Microsoft Smooth Streaming (MSS) PackagingConfiguration."]modulePackagingGroup=structtypenonrect={approximateAssetCount:Zz__integer.toption[@ocaml.doc"The approximate asset count of the PackagingGroup."];arn:Zz__string.toption[@ocaml.doc"The ARN of the PackagingGroup."];authorization:Authorization.toption;createdAt:Zz__string.toption[@ocaml.doc"The time the PackagingGroup was created."];domainName:Zz__string.toption[@ocaml.doc"The fully qualified domain name for Assets in the PackagingGroup."];egressAccessLogs:EgressAccessLogs.toption;id:Zz__string.toption[@ocaml.doc"The ID of the PackagingGroup."];tags:Tags.toption}letmake?approximateAssetCount=fun?arn->fun?authorization->fun?createdAt->fun?domainName->fun?egressAccessLogs->fun?id->fun?tags->fun()->{approximateAssetCount;arn;authorization;createdAt;domainName;egressAccessLogs;id;tags}letto_valuex=structure_to_value[("approximateAssetCount",(Option.mapx.approximateAssetCount~f:Zz__integer.to_value));("arn",(Option.mapx.arn~f:Zz__string.to_value));("authorization",(Option.mapx.authorization~f:Authorization.to_value));("createdAt",(Option.mapx.createdAt~f:Zz__string.to_value));("domainName",(Option.mapx.domainName~f:Zz__string.to_value));("egressAccessLogs",(Option.mapx.egressAccessLogs~f:EgressAccessLogs.to_value));("id",(Option.mapx.id~f:Zz__string.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")inletid=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"id")inletegressAccessLogs=(Option.map~f:EgressAccessLogs.of_xml)(Xml.childxml_arg0"egressAccessLogs")inletdomainName=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"domainName")inletcreatedAt=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"createdAt")inletauthorization=(Option.map~f:Authorization.of_xml)(Xml.childxml_arg0"authorization")inletarn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"arn")inletapproximateAssetCount=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"approximateAssetCount")inmake?tags?id?egressAccessLogs?domainName?createdAt?authorization?arn?approximateAssetCount()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"Tags.of_jsoninletid=field_mapjson__"Id"Zz__string.of_jsoninletegressAccessLogs=field_mapjson__"EgressAccessLogs"EgressAccessLogs.of_jsoninletdomainName=field_mapjson__"DomainName"Zz__string.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"Zz__string.of_jsoninletauthorization=field_mapjson__"Authorization"Authorization.of_jsoninletarn=field_mapjson__"Arn"Zz__string.of_jsoninletapproximateAssetCount=field_mapjson__"ApproximateAssetCount"Zz__integer.of_jsoninmake?tags?id?egressAccessLogs?domainName?createdAt?authorization?arn?approximateAssetCount()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A MediaPackage VOD PackagingGroup resource."]modulePackagingConfiguration=structtypenonrect={arn:Zz__string.toption[@ocaml.doc"The ARN of the PackagingConfiguration."];cmafPackage:CmafPackage.toption;createdAt:Zz__string.toption[@ocaml.doc"The time the PackagingConfiguration was created."];dashPackage:DashPackage.toption;hlsPackage:HlsPackage.toption;id:Zz__string.toption[@ocaml.doc"The ID of the PackagingConfiguration."];mssPackage:MssPackage.toption;packagingGroupId:Zz__string.toption[@ocaml.doc"The ID of a PackagingGroup."];tags:Tags.toption}letmake?arn=fun?cmafPackage->fun?createdAt->fun?dashPackage->fun?hlsPackage->fun?id->fun?mssPackage->fun?packagingGroupId->fun?tags->fun()->{arn;cmafPackage;createdAt;dashPackage;hlsPackage;id;mssPackage;packagingGroupId;tags}letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:Zz__string.to_value));("cmafPackage",(Option.mapx.cmafPackage~f:CmafPackage.to_value));("createdAt",(Option.mapx.createdAt~f:Zz__string.to_value));("dashPackage",(Option.mapx.dashPackage~f:DashPackage.to_value));("hlsPackage",(Option.mapx.hlsPackage~f:HlsPackage.to_value));("id",(Option.mapx.id~f:Zz__string.to_value));("mssPackage",(Option.mapx.mssPackage~f:MssPackage.to_value));("packagingGroupId",(Option.mapx.packagingGroupId~f:Zz__string.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")inletpackagingGroupId=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"packagingGroupId")inletmssPackage=(Option.map~f:MssPackage.of_xml)(Xml.childxml_arg0"mssPackage")inletid=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"id")inlethlsPackage=(Option.map~f:HlsPackage.of_xml)(Xml.childxml_arg0"hlsPackage")inletdashPackage=(Option.map~f:DashPackage.of_xml)(Xml.childxml_arg0"dashPackage")inletcreatedAt=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"createdAt")inletcmafPackage=(Option.map~f:CmafPackage.of_xml)(Xml.childxml_arg0"cmafPackage")inletarn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"arn")inmake?tags?packagingGroupId?mssPackage?id?hlsPackage?dashPackage?createdAt?cmafPackage?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"Tags.of_jsoninletpackagingGroupId=field_mapjson__"PackagingGroupId"Zz__string.of_jsoninletmssPackage=field_mapjson__"MssPackage"MssPackage.of_jsoninletid=field_mapjson__"Id"Zz__string.of_jsoninlethlsPackage=field_mapjson__"HlsPackage"HlsPackage.of_jsoninletdashPackage=field_mapjson__"DashPackage"DashPackage.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"Zz__string.of_jsoninletcmafPackage=field_mapjson__"CmafPackage"CmafPackage.of_jsoninletarn=field_mapjson__"Arn"Zz__string.of_jsoninmake?tags?packagingGroupId?mssPackage?id?hlsPackage?dashPackage?createdAt?cmafPackage?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A MediaPackage VOD PackagingConfiguration resource."]moduleAssetShallow=structtypenonrect={arn:Zz__string.toption[@ocaml.doc"The ARN of the Asset."];createdAt:Zz__string.toption[@ocaml.doc"The time the Asset was initially submitted for Ingest."];id:Zz__string.toption[@ocaml.doc"The unique identifier for the Asset."];packagingGroupId:Zz__string.toption[@ocaml.doc"The ID of the PackagingGroup for the Asset."];resourceId:Zz__string.toption[@ocaml.doc"The resource ID to include in SPEKE key requests."];sourceArn:Zz__string.toption[@ocaml.doc"ARN of the source object in S3."];sourceRoleArn:Zz__string.toption[@ocaml.doc"The IAM role ARN used to access the source S3 bucket."];tags:Tags.toption}letmake?arn=fun?createdAt->fun?id->fun?packagingGroupId->fun?resourceId->fun?sourceArn->fun?sourceRoleArn->fun?tags->fun()->{arn;createdAt;id;packagingGroupId;resourceId;sourceArn;sourceRoleArn;tags}letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:Zz__string.to_value));("createdAt",(Option.mapx.createdAt~f:Zz__string.to_value));("id",(Option.mapx.id~f:Zz__string.to_value));("packagingGroupId",(Option.mapx.packagingGroupId~f:Zz__string.to_value));("resourceId",(Option.mapx.resourceId~f:Zz__string.to_value));("sourceArn",(Option.mapx.sourceArn~f:Zz__string.to_value));("sourceRoleArn",(Option.mapx.sourceRoleArn~f:Zz__string.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")inletsourceRoleArn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"sourceRoleArn")inletsourceArn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"sourceArn")inletresourceId=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"resourceId")inletpackagingGroupId=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"packagingGroupId")inletid=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"id")inletcreatedAt=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"createdAt")inletarn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"arn")inmake?tags?sourceRoleArn?sourceArn?resourceId?packagingGroupId?id?createdAt?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"Tags.of_jsoninletsourceRoleArn=field_mapjson__"SourceRoleArn"Zz__string.of_jsoninletsourceArn=field_mapjson__"SourceArn"Zz__string.of_jsoninletresourceId=field_mapjson__"ResourceId"Zz__string.of_jsoninletpackagingGroupId=field_mapjson__"PackagingGroupId"Zz__string.of_jsoninletid=field_mapjson__"Id"Zz__string.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"Zz__string.of_jsoninletarn=field_mapjson__"Arn"Zz__string.of_jsoninmake?tags?sourceRoleArn?sourceArn?resourceId?packagingGroupId?id?createdAt?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A MediaPackage VOD Asset resource."]moduleEgressEndpoint=structtypenonrect={packagingConfigurationId:Zz__string.toption[@ocaml.doc"The ID of the PackagingConfiguration being applied to the Asset."];status:Zz__string.toption[@ocaml.doc"The current processing status of the asset used for the packaging configuration. The status can be either QUEUED, PROCESSING, PLAYABLE, or FAILED. Status information won't be available for most assets ingested before 2021-09-30."];url:Zz__string.toption[@ocaml.doc"The URL of the parent manifest for the repackaged Asset."]}letmake?packagingConfigurationId=fun?status->fun?url->fun()->{packagingConfigurationId;status;url}letto_valuex=structure_to_value[("packagingConfigurationId",(Option.mapx.packagingConfigurationId~f:Zz__string.to_value));("status",(Option.mapx.status~f:Zz__string.to_value));("url",(Option.mapx.url~f:Zz__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leturl=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"url")inletstatus=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"status")inletpackagingConfigurationId=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"packagingConfigurationId")inmake?url?status?packagingConfigurationId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leturl=field_mapjson__"Url"Zz__string.of_jsoninletstatus=field_mapjson__"Status"Zz__string.of_jsoninletpackagingConfigurationId=field_mapjson__"PackagingConfigurationId"Zz__string.of_jsoninmake?url?status?packagingConfigurationId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The endpoint URL used to access an Asset using one PackagingConfiguration."]moduleForbiddenException=structtypenonrect={message:Zz__string.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:Zz__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"Zz__string.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The client is not authorized to access the requested resource."]moduleInternalServerErrorException=structtypenonrect={message:Zz__string.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:Zz__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"Zz__string.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An unexpected error occurred."]moduleNotFoundException=structtypenonrect={message:Zz__string.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:Zz__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"Zz__string.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The requested resource does not exist."]moduleServiceUnavailableException=structtypenonrect={message:Zz__string.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:Zz__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"Zz__string.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An unexpected error occurred."]moduleTooManyRequestsException=structtypenonrect={message:Zz__string.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:Zz__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"Zz__string.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The client has exceeded their resource or throttling limits."]moduleUnprocessableEntityException=structtypenonrect={message:Zz__string.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:Zz__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"Zz__string.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The parameters sent in the request are not valid."]moduleZz__mapOf__string=structtypenonrect=(Zz__string.t*Zz__string.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((Zz__string.of_stringchopped),(Zz__string.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(Zz__string.to_valuex)|>(funx->(Zz__string.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:Zz__string.of_string~of_json:Zz__string.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleZz__listOfPackagingGroup=structtypenonrect=PackagingGroup.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PackagingGroup.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:PackagingGroup.of_xml)letof_jsonj=list_of_json~kind:"__listOfPackagingGroup"~of_json:PackagingGroup.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleZz__listOfPackagingConfiguration=structtypenonrect=PackagingConfiguration.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PackagingConfiguration.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:PackagingConfiguration.of_xml)letof_jsonj=list_of_json~kind:"__listOfPackagingConfiguration"~of_json:PackagingConfiguration.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:1000)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleZz__listOfAssetShallow=structtypenonrect=AssetShallow.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AssetShallow.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:AssetShallow.of_xml)letof_jsonj=list_of_json~kind:"__listOfAssetShallow"~of_json:AssetShallow.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleZz__listOfEgressEndpoint=structtypenonrect=EgressEndpoint.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:EgressEndpoint.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:EgressEndpoint.of_xml)letof_jsonj=list_of_json~kind:"__listOfEgressEndpoint"~of_json:EgressEndpoint.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleZz__long=structtypenonrect=Int64.tletmakei=iletof_string=Int64.of_stringletto_valuex=`Longxletto_queryv=to_queryto_valuevletto_headerx=Int64.to_stringxletof_xmlxml_arg0=Int64.of_string(string_of_xml~kind:"a long"xml_arg0)letof_jsonj=Int64.of_float(float_of_json~kind:"a long"j)letto_json=simple_to_jsonto_valueendmoduleZz__double=structtypenonrect=floatletmakei=iletof_string=Float.of_stringletto_valuex=`Doublexletto_queryv=to_queryto_valuevletto_headerx=Stdlib.Float.to_stringxletof_xmlxml_arg0=Float.of_string(string_of_xml~kind:"a double"xml_arg0)letof_jsonj=float_of_json~kind:"a double"jletto_json=simple_to_jsonto_valueendmoduleUpdatePackagingGroupResponse=structtypenonrect={approximateAssetCount:Zz__integer.toption[@ocaml.doc"The approximate asset count of the PackagingGroup."];arn:Zz__string.toption[@ocaml.doc"The ARN of the PackagingGroup."];authorization:Authorization.toption;createdAt:Zz__string.toption[@ocaml.doc"The time the PackagingGroup was created."];domainName:Zz__string.toption[@ocaml.doc"The fully qualified domain name for Assets in the PackagingGroup."];egressAccessLogs:EgressAccessLogs.toption;id:Zz__string.toption[@ocaml.doc"The ID of the PackagingGroup."];tags:Tags.toption}typenonrecerror=[`ForbiddenExceptionofForbiddenException.t|`InternalServerErrorExceptionofInternalServerErrorException.t|`NotFoundExceptionofNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`UnprocessableEntityExceptionofUnprocessableEntityException.t|`Unknown_operation_errorof(string*stringoption)]letmake?approximateAssetCount=fun?arn->fun?authorization->fun?createdAt->fun?domainName->fun?egressAccessLogs->fun?id->fun?tags->fun()->{approximateAssetCount;arn;authorization;createdAt;domainName;egressAccessLogs;id;tags}leterror_of_jsonnamejson=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`InternalServerErrorExceptione->`Assoc[("error",(`String"InternalServerErrorException"));("details",(InternalServerErrorException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`UnprocessableEntityExceptione->`Assoc[("error",(`String"UnprocessableEntityException"));("details",(UnprocessableEntityException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("approximateAssetCount",(Option.mapx.approximateAssetCount~f:Zz__integer.to_value));("arn",(Option.mapx.arn~f:Zz__string.to_value));("authorization",(Option.mapx.authorization~f:Authorization.to_value));("createdAt",(Option.mapx.createdAt~f:Zz__string.to_value));("domainName",(Option.mapx.domainName~f:Zz__string.to_value));("egressAccessLogs",(Option.mapx.egressAccessLogs~f:EgressAccessLogs.to_value));("id",(Option.mapx.id~f:Zz__string.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")inletid=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"id")inletegressAccessLogs=(Option.map~f:EgressAccessLogs.of_xml)(Xml.childxml_arg0"egressAccessLogs")inletdomainName=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"domainName")inletcreatedAt=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"createdAt")inletauthorization=(Option.map~f:Authorization.of_xml)(Xml.childxml_arg0"authorization")inletarn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"arn")inletapproximateAssetCount=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"approximateAssetCount")inmake?tags?id?egressAccessLogs?domainName?createdAt?authorization?arn?approximateAssetCount()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"Tags.of_jsoninletid=field_mapjson__"Id"Zz__string.of_jsoninletegressAccessLogs=field_mapjson__"EgressAccessLogs"EgressAccessLogs.of_jsoninletdomainName=field_mapjson__"DomainName"Zz__string.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"Zz__string.of_jsoninletauthorization=field_mapjson__"Authorization"Authorization.of_jsoninletarn=field_mapjson__"Arn"Zz__string.of_jsoninletapproximateAssetCount=field_mapjson__"ApproximateAssetCount"Zz__integer.of_jsoninmake?tags?id?egressAccessLogs?domainName?createdAt?authorization?arn?approximateAssetCount()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates a specific packaging group. You can't change the id attribute or any other system-generated attributes."]moduleUpdatePackagingGroupRequest=structtypenonrect={authorization:Authorization.toption;id:Zz__string.t[@ocaml.doc"The ID of a MediaPackage VOD PackagingGroup resource."]}letcontext_="UpdatePackagingGroupRequest"letmake?authorization=fun~id->fun()->{authorization;id}letto_valuex=structure_to_value[("authorization",(Option.mapx.authorization~f:Authorization.to_value));("id",(Some(Zz__string.to_valuex.id)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"id")inletauthorization=(Option.map~f:Authorization.of_xml)(Xml.childxml_arg0"authorization")inmake~id?authorization()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_map_exnjson__"Id"Zz__string.of_jsoninletauthorization=field_mapjson__"Authorization"Authorization.of_jsoninmake~id?authorization()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A MediaPackage VOD PackagingGroup resource configuration."]moduleUntagResourceRequest=structtypenonrect={resourceArn:Zz__string.t[@ocaml.doc"The Amazon Resource Name (ARN) for the resource. You can get this from the response to any request to the resource."];tagKeys:Zz__listOf__string.t[@ocaml.doc"A comma-separated list of the tag keys to remove from the resource."]}letcontext_="UntagResourceRequest"letmake~resourceArn=fun~tagKeys->fun()->{resourceArn;tagKeys}letto_valuex=structure_to_value[("resource-arn",(Some(Zz__string.to_valuex.resourceArn)));("tagKeys",(Some(Zz__listOf__string.to_valuex.tagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagKeys=Zz__listOf__string.of_xml(Xml.child_exn~context:context_xml_arg0"tagKeys")inletresourceArn=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"resource-arn")inmake~tagKeys~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagKeys=field_map_exnjson__"TagKeys"Zz__listOf__string.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"Zz__string.of_jsoninmake~tagKeys~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes tags from the specified resource. You can specify one or more tags to remove."]moduleTagsModel=structtypenonrect={tags:Zz__mapOf__string.t[@ocaml.doc"A collection of tags associated with a resource"]}letcontext_="TagsModel"letmake~tags=fun()->{tags}letto_valuex=structure_to_value[("tags",(Some(Zz__mapOf__string.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=Zz__mapOf__string.of_xml(Xml.child_exn~context:context_xml_arg0"tags")inmake~tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_map_exnjson__"Tags"Zz__mapOf__string.of_jsoninmake~tags()letto_jsonv=composed_to_jsonto_valuevendmoduleTagResourceRequest=structtypenonrect={resourceArn:Zz__string.t[@ocaml.doc"The Amazon Resource Name (ARN) for the resource. You can get this from the response to any request to the resource."];tags:Zz__mapOf__string.t[@ocaml.doc"A collection of tags associated with a resource"]}letcontext_="TagResourceRequest"letmake~resourceArn=fun~tags->fun()->{resourceArn;tags}letto_valuex=structure_to_value[("resource-arn",(Some(Zz__string.to_valuex.resourceArn)));("tags",(Some(Zz__mapOf__string.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=Zz__mapOf__string.of_xml(Xml.child_exn~context:context_xml_arg0"tags")inletresourceArn=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"resource-arn")inmake~tags~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_map_exnjson__"Tags"Zz__mapOf__string.of_jsoninletresourceArn=field_map_exnjson__"ResourceArn"Zz__string.of_jsoninmake~tags~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds tags to the specified resource. You can specify one or more tags to add."]modulePackagingGroupUpdateParameters=structtypenonrect={authorization:Authorization.toption}letmake?authorization=fun()->{authorization}letto_valuex=structure_to_value[("authorization",(Option.mapx.authorization~f:Authorization.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letauthorization=(Option.map~f:Authorization.of_xml)(Xml.childxml_arg0"authorization")inmake?authorization()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letauthorization=field_mapjson__"Authorization"Authorization.of_jsoninmake?authorization()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Parameters used to update a MediaPackage packaging group."]modulePackagingGroupList=structtypenonrect={nextToken:Zz__string.toption[@ocaml.doc"A token that can be used to resume pagination from the end of the collection."];packagingGroups:Zz__listOfPackagingGroup.toption[@ocaml.doc"A list of MediaPackage VOD PackagingGroup resources."]}letmake?nextToken=fun?packagingGroups->fun()->{nextToken;packagingGroups}letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:Zz__string.to_value));("packagingGroups",(Option.mapx.packagingGroups~f:Zz__listOfPackagingGroup.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpackagingGroups=(Option.map~f:Zz__listOfPackagingGroup.of_xml)(Xml.childxml_arg0"packagingGroups")inletnextToken=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"nextToken")inmake?packagingGroups?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpackagingGroups=field_mapjson__"PackagingGroups"Zz__listOfPackagingGroup.of_jsoninletnextToken=field_mapjson__"NextToken"Zz__string.of_jsoninmake?packagingGroups?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A collection of MediaPackage VOD PackagingGroup resources."]modulePackagingGroupCreateParameters=structtypenonrect={authorization:Authorization.toption;egressAccessLogs:EgressAccessLogs.toption;id:Zz__string.t[@ocaml.doc"The ID of the PackagingGroup."];tags:Tags.toption}letcontext_="PackagingGroupCreateParameters"letmake?authorization=fun?egressAccessLogs->fun?tags->fun~id->fun()->{authorization;egressAccessLogs;tags;id}letto_valuex=structure_to_value[("authorization",(Option.mapx.authorization~f:Authorization.to_value));("egressAccessLogs",(Option.mapx.egressAccessLogs~f:EgressAccessLogs.to_value));("id",(Some(Zz__string.to_valuex.id)));("tags",(Option.mapx.tags~f:Tags.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletid=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"id")inletegressAccessLogs=(Option.map~f:EgressAccessLogs.of_xml)(Xml.childxml_arg0"egressAccessLogs")inletauthorization=(Option.map~f:Authorization.of_xml)(Xml.childxml_arg0"authorization")inmake?tags~id?egressAccessLogs?authorization()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"Tags.of_jsoninletid=field_map_exnjson__"Id"Zz__string.of_jsoninletegressAccessLogs=field_mapjson__"EgressAccessLogs"EgressAccessLogs.of_jsoninletauthorization=field_mapjson__"Authorization"Authorization.of_jsoninmake?tags~id?egressAccessLogs?authorization()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Parameters used to create a new MediaPackage VOD PackagingGroup resource."]modulePackagingConfigurationList=structtypenonrect={nextToken:Zz__string.toption[@ocaml.doc"A token that can be used to resume pagination from the end of the collection."];packagingConfigurations:Zz__listOfPackagingConfiguration.toption[@ocaml.doc"A list of MediaPackage VOD PackagingConfiguration resources."]}letmake?nextToken=fun?packagingConfigurations->fun()->{nextToken;packagingConfigurations}letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:Zz__string.to_value));("packagingConfigurations",(Option.mapx.packagingConfigurations~f:Zz__listOfPackagingConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpackagingConfigurations=(Option.map~f:Zz__listOfPackagingConfiguration.of_xml)(Xml.childxml_arg0"packagingConfigurations")inletnextToken=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"nextToken")inmake?packagingConfigurations?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpackagingConfigurations=field_mapjson__"PackagingConfigurations"Zz__listOfPackagingConfiguration.of_jsoninletnextToken=field_mapjson__"NextToken"Zz__string.of_jsoninmake?packagingConfigurations?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A collection of MediaPackage VOD PackagingConfiguration resources."]modulePackagingConfigurationCreateParameters=structtypenonrect={cmafPackage:CmafPackage.toption;dashPackage:DashPackage.toption;hlsPackage:HlsPackage.toption;id:Zz__string.t[@ocaml.doc"The ID of the PackagingConfiguration."];mssPackage:MssPackage.toption;packagingGroupId:Zz__string.t[@ocaml.doc"The ID of a PackagingGroup."];tags:Tags.toption}letcontext_="PackagingConfigurationCreateParameters"letmake?cmafPackage=fun?dashPackage->fun?hlsPackage->fun?mssPackage->fun?tags->fun~id->fun~packagingGroupId->fun()->{cmafPackage;dashPackage;hlsPackage;mssPackage;tags;id;packagingGroupId}letto_valuex=structure_to_value[("cmafPackage",(Option.mapx.cmafPackage~f:CmafPackage.to_value));("dashPackage",(Option.mapx.dashPackage~f:DashPackage.to_value));("hlsPackage",(Option.mapx.hlsPackage~f:HlsPackage.to_value));("id",(Some(Zz__string.to_valuex.id)));("mssPackage",(Option.mapx.mssPackage~f:MssPackage.to_value));("packagingGroupId",(Some(Zz__string.to_valuex.packagingGroupId)));("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")inletpackagingGroupId=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"packagingGroupId")inletmssPackage=(Option.map~f:MssPackage.of_xml)(Xml.childxml_arg0"mssPackage")inletid=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"id")inlethlsPackage=(Option.map~f:HlsPackage.of_xml)(Xml.childxml_arg0"hlsPackage")inletdashPackage=(Option.map~f:DashPackage.of_xml)(Xml.childxml_arg0"dashPackage")inletcmafPackage=(Option.map~f:CmafPackage.of_xml)(Xml.childxml_arg0"cmafPackage")inmake?tags~packagingGroupId?mssPackage~id?hlsPackage?dashPackage?cmafPackage()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"Tags.of_jsoninletpackagingGroupId=field_map_exnjson__"PackagingGroupId"Zz__string.of_jsoninletmssPackage=field_mapjson__"MssPackage"MssPackage.of_jsoninletid=field_map_exnjson__"Id"Zz__string.of_jsoninlethlsPackage=field_mapjson__"HlsPackage"HlsPackage.of_jsoninletdashPackage=field_mapjson__"DashPackage"DashPackage.of_jsoninletcmafPackage=field_mapjson__"CmafPackage"CmafPackage.of_jsoninmake?tags~packagingGroupId?mssPackage~id?hlsPackage?dashPackage?cmafPackage()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Parameters used to create a new MediaPackage VOD PackagingConfiguration resource."]moduleListTagsForResourceResponse=structtypenonrect={tags:Zz__mapOf__string.toption[@ocaml.doc"A collection of tags associated with a resource"]}typenonrecerror=[`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun()->{tags}leterror_of_jsonnamejson=matchnamewith|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("tags",(Option.mapx.tags~f:Zz__mapOf__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:Zz__mapOf__string.of_xml)(Xml.childxml_arg0"tags")inmake?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"Zz__mapOf__string.of_jsoninmake?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of the tags assigned to the specified resource."]moduleListTagsForResourceRequest=structtypenonrect={resourceArn:Zz__string.t[@ocaml.doc"The Amazon Resource Name (ARN) for the resource. You can get this from the response to any request to the resource."]}letcontext_="ListTagsForResourceRequest"letmake~resourceArn=fun()->{resourceArn}letto_valuex=structure_to_value[("resource-arn",(Some(Zz__string.to_valuex.resourceArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"resource-arn")inmake~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceArn=field_map_exnjson__"ResourceArn"Zz__string.of_jsoninmake~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of the tags assigned to the specified resource."]moduleListPackagingGroupsResponse=structtypenonrect={nextToken:Zz__string.toption[@ocaml.doc"A token that can be used to resume pagination from the end of the collection."];packagingGroups:Zz__listOfPackagingGroup.toption[@ocaml.doc"A list of MediaPackage VOD PackagingGroup resources."]}typenonrecerror=[`ForbiddenExceptionofForbiddenException.t|`InternalServerErrorExceptionofInternalServerErrorException.t|`NotFoundExceptionofNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`UnprocessableEntityExceptionofUnprocessableEntityException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?packagingGroups->fun()->{nextToken;packagingGroups}leterror_of_jsonnamejson=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`InternalServerErrorExceptione->`Assoc[("error",(`String"InternalServerErrorException"));("details",(InternalServerErrorException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`UnprocessableEntityExceptione->`Assoc[("error",(`String"UnprocessableEntityException"));("details",(UnprocessableEntityException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:Zz__string.to_value));("packagingGroups",(Option.mapx.packagingGroups~f:Zz__listOfPackagingGroup.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpackagingGroups=(Option.map~f:Zz__listOfPackagingGroup.of_xml)(Xml.childxml_arg0"packagingGroups")inletnextToken=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"nextToken")inmake?packagingGroups?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpackagingGroups=field_mapjson__"PackagingGroups"Zz__listOfPackagingGroup.of_jsoninletnextToken=field_mapjson__"NextToken"Zz__string.of_jsoninmake?packagingGroups?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a collection of MediaPackage VOD PackagingGroup resources."]moduleListPackagingGroupsRequest=structtypenonrect={maxResults:MaxResults.toption[@ocaml.doc"Upper bound on number of records to return."];nextToken:Zz__string.toption[@ocaml.doc"A token used to resume pagination from the end of a previous request."]}letmake?maxResults=fun?nextToken->fun()->{maxResults;nextToken}letto_valuex=structure_to_value[("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("nextToken",(Option.mapx.nextToken~f:Zz__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inmake?nextToken?maxResults()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Zz__string.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninmake?nextToken?maxResults()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a collection of MediaPackage VOD PackagingGroup resources."]moduleListPackagingConfigurationsResponse=structtypenonrect={nextToken:Zz__string.toption[@ocaml.doc"A token that can be used to resume pagination from the end of the collection."];packagingConfigurations:Zz__listOfPackagingConfiguration.toption[@ocaml.doc"A list of MediaPackage VOD PackagingConfiguration resources."]}typenonrecerror=[`ForbiddenExceptionofForbiddenException.t|`InternalServerErrorExceptionofInternalServerErrorException.t|`NotFoundExceptionofNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`UnprocessableEntityExceptionofUnprocessableEntityException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?packagingConfigurations->fun()->{nextToken;packagingConfigurations}leterror_of_jsonnamejson=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`InternalServerErrorExceptione->`Assoc[("error",(`String"InternalServerErrorException"));("details",(InternalServerErrorException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`UnprocessableEntityExceptione->`Assoc[("error",(`String"UnprocessableEntityException"));("details",(UnprocessableEntityException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:Zz__string.to_value));("packagingConfigurations",(Option.mapx.packagingConfigurations~f:Zz__listOfPackagingConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpackagingConfigurations=(Option.map~f:Zz__listOfPackagingConfiguration.of_xml)(Xml.childxml_arg0"packagingConfigurations")inletnextToken=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"nextToken")inmake?packagingConfigurations?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpackagingConfigurations=field_mapjson__"PackagingConfigurations"Zz__listOfPackagingConfiguration.of_jsoninletnextToken=field_mapjson__"NextToken"Zz__string.of_jsoninmake?packagingConfigurations?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a collection of MediaPackage VOD PackagingConfiguration resources."]moduleListPackagingConfigurationsRequest=structtypenonrect={maxResults:MaxResults.toption[@ocaml.doc"Upper bound on number of records to return."];nextToken:Zz__string.toption[@ocaml.doc"A token used to resume pagination from the end of a previous request."];packagingGroupId:Zz__string.toption[@ocaml.doc"Returns MediaPackage VOD PackagingConfigurations associated with the specified PackagingGroup."]}letmake?maxResults=fun?nextToken->fun?packagingGroupId->fun()->{maxResults;nextToken;packagingGroupId}letto_valuex=structure_to_value[("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("nextToken",(Option.mapx.nextToken~f:Zz__string.to_value));("packagingGroupId",(Option.mapx.packagingGroupId~f:Zz__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpackagingGroupId=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"packagingGroupId")inletnextToken=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inmake?packagingGroupId?nextToken?maxResults()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpackagingGroupId=field_mapjson__"PackagingGroupId"Zz__string.of_jsoninletnextToken=field_mapjson__"NextToken"Zz__string.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninmake?packagingGroupId?nextToken?maxResults()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a collection of MediaPackage VOD PackagingConfiguration resources."]moduleListAssetsResponse=structtypenonrect={assets:Zz__listOfAssetShallow.toption[@ocaml.doc"A list of MediaPackage VOD Asset resources."];nextToken:Zz__string.toption[@ocaml.doc"A token that can be used to resume pagination from the end of the collection."]}typenonrecerror=[`ForbiddenExceptionofForbiddenException.t|`InternalServerErrorExceptionofInternalServerErrorException.t|`NotFoundExceptionofNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`UnprocessableEntityExceptionofUnprocessableEntityException.t|`Unknown_operation_errorof(string*stringoption)]letmake?assets=fun?nextToken->fun()->{assets;nextToken}leterror_of_jsonnamejson=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`InternalServerErrorExceptione->`Assoc[("error",(`String"InternalServerErrorException"));("details",(InternalServerErrorException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`UnprocessableEntityExceptione->`Assoc[("error",(`String"UnprocessableEntityException"));("details",(UnprocessableEntityException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("assets",(Option.mapx.assets~f:Zz__listOfAssetShallow.to_value));("nextToken",(Option.mapx.nextToken~f:Zz__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"nextToken")inletassets=(Option.map~f:Zz__listOfAssetShallow.of_xml)(Xml.childxml_arg0"assets")inmake?nextToken?assets()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Zz__string.of_jsoninletassets=field_mapjson__"Assets"Zz__listOfAssetShallow.of_jsoninmake?nextToken?assets()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a collection of MediaPackage VOD Asset resources."]moduleListAssetsRequest=structtypenonrect={maxResults:MaxResults.toption[@ocaml.doc"Upper bound on number of records to return."];nextToken:Zz__string.toption[@ocaml.doc"A token used to resume pagination from the end of a previous request."];packagingGroupId:Zz__string.toption[@ocaml.doc"Returns Assets associated with the specified PackagingGroup."]}letmake?maxResults=fun?nextToken->fun?packagingGroupId->fun()->{maxResults;nextToken;packagingGroupId}letto_valuex=structure_to_value[("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("nextToken",(Option.mapx.nextToken~f:Zz__string.to_value));("packagingGroupId",(Option.mapx.packagingGroupId~f:Zz__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpackagingGroupId=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"packagingGroupId")inletnextToken=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inmake?packagingGroupId?nextToken?maxResults()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpackagingGroupId=field_mapjson__"PackagingGroupId"Zz__string.of_jsoninletnextToken=field_mapjson__"NextToken"Zz__string.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninmake?packagingGroupId?nextToken?maxResults()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a collection of MediaPackage VOD Asset resources."]moduleDescribePackagingGroupResponse=structtypenonrect={approximateAssetCount:Zz__integer.toption[@ocaml.doc"The approximate asset count of the PackagingGroup."];arn:Zz__string.toption[@ocaml.doc"The ARN of the PackagingGroup."];authorization:Authorization.toption;createdAt:Zz__string.toption[@ocaml.doc"The time the PackagingGroup was created."];domainName:Zz__string.toption[@ocaml.doc"The fully qualified domain name for Assets in the PackagingGroup."];egressAccessLogs:EgressAccessLogs.toption;id:Zz__string.toption[@ocaml.doc"The ID of the PackagingGroup."];tags:Tags.toption}typenonrecerror=[`ForbiddenExceptionofForbiddenException.t|`InternalServerErrorExceptionofInternalServerErrorException.t|`NotFoundExceptionofNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`UnprocessableEntityExceptionofUnprocessableEntityException.t|`Unknown_operation_errorof(string*stringoption)]letmake?approximateAssetCount=fun?arn->fun?authorization->fun?createdAt->fun?domainName->fun?egressAccessLogs->fun?id->fun?tags->fun()->{approximateAssetCount;arn;authorization;createdAt;domainName;egressAccessLogs;id;tags}leterror_of_jsonnamejson=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`InternalServerErrorExceptione->`Assoc[("error",(`String"InternalServerErrorException"));("details",(InternalServerErrorException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`UnprocessableEntityExceptione->`Assoc[("error",(`String"UnprocessableEntityException"));("details",(UnprocessableEntityException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("approximateAssetCount",(Option.mapx.approximateAssetCount~f:Zz__integer.to_value));("arn",(Option.mapx.arn~f:Zz__string.to_value));("authorization",(Option.mapx.authorization~f:Authorization.to_value));("createdAt",(Option.mapx.createdAt~f:Zz__string.to_value));("domainName",(Option.mapx.domainName~f:Zz__string.to_value));("egressAccessLogs",(Option.mapx.egressAccessLogs~f:EgressAccessLogs.to_value));("id",(Option.mapx.id~f:Zz__string.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")inletid=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"id")inletegressAccessLogs=(Option.map~f:EgressAccessLogs.of_xml)(Xml.childxml_arg0"egressAccessLogs")inletdomainName=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"domainName")inletcreatedAt=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"createdAt")inletauthorization=(Option.map~f:Authorization.of_xml)(Xml.childxml_arg0"authorization")inletarn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"arn")inletapproximateAssetCount=(Option.map~f:Zz__integer.of_xml)(Xml.childxml_arg0"approximateAssetCount")inmake?tags?id?egressAccessLogs?domainName?createdAt?authorization?arn?approximateAssetCount()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"Tags.of_jsoninletid=field_mapjson__"Id"Zz__string.of_jsoninletegressAccessLogs=field_mapjson__"EgressAccessLogs"EgressAccessLogs.of_jsoninletdomainName=field_mapjson__"DomainName"Zz__string.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"Zz__string.of_jsoninletauthorization=field_mapjson__"Authorization"Authorization.of_jsoninletarn=field_mapjson__"Arn"Zz__string.of_jsoninletapproximateAssetCount=field_mapjson__"ApproximateAssetCount"Zz__integer.of_jsoninmake?tags?id?egressAccessLogs?domainName?createdAt?authorization?arn?approximateAssetCount()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a description of a MediaPackage VOD PackagingGroup resource."]moduleDescribePackagingGroupRequest=structtypenonrect={id:Zz__string.t[@ocaml.doc"The ID of a MediaPackage VOD PackagingGroup resource."]}letcontext_="DescribePackagingGroupRequest"letmake~id=fun()->{id}letto_valuex=structure_to_value[("id",(Some(Zz__string.to_valuex.id)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"id")inmake~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_map_exnjson__"Id"Zz__string.of_jsoninmake~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a description of a MediaPackage VOD PackagingGroup resource."]moduleDescribePackagingConfigurationResponse=structtypenonrect={arn:Zz__string.toption[@ocaml.doc"The ARN of the PackagingConfiguration."];cmafPackage:CmafPackage.toption;createdAt:Zz__string.toption[@ocaml.doc"The time the PackagingConfiguration was created."];dashPackage:DashPackage.toption;hlsPackage:HlsPackage.toption;id:Zz__string.toption[@ocaml.doc"The ID of the PackagingConfiguration."];mssPackage:MssPackage.toption;packagingGroupId:Zz__string.toption[@ocaml.doc"The ID of a PackagingGroup."];tags:Tags.toption}typenonrecerror=[`ForbiddenExceptionofForbiddenException.t|`InternalServerErrorExceptionofInternalServerErrorException.t|`NotFoundExceptionofNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`UnprocessableEntityExceptionofUnprocessableEntityException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun?cmafPackage->fun?createdAt->fun?dashPackage->fun?hlsPackage->fun?id->fun?mssPackage->fun?packagingGroupId->fun?tags->fun()->{arn;cmafPackage;createdAt;dashPackage;hlsPackage;id;mssPackage;packagingGroupId;tags}leterror_of_jsonnamejson=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`InternalServerErrorExceptione->`Assoc[("error",(`String"InternalServerErrorException"));("details",(InternalServerErrorException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`UnprocessableEntityExceptione->`Assoc[("error",(`String"UnprocessableEntityException"));("details",(UnprocessableEntityException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:Zz__string.to_value));("cmafPackage",(Option.mapx.cmafPackage~f:CmafPackage.to_value));("createdAt",(Option.mapx.createdAt~f:Zz__string.to_value));("dashPackage",(Option.mapx.dashPackage~f:DashPackage.to_value));("hlsPackage",(Option.mapx.hlsPackage~f:HlsPackage.to_value));("id",(Option.mapx.id~f:Zz__string.to_value));("mssPackage",(Option.mapx.mssPackage~f:MssPackage.to_value));("packagingGroupId",(Option.mapx.packagingGroupId~f:Zz__string.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")inletpackagingGroupId=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"packagingGroupId")inletmssPackage=(Option.map~f:MssPackage.of_xml)(Xml.childxml_arg0"mssPackage")inletid=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"id")inlethlsPackage=(Option.map~f:HlsPackage.of_xml)(Xml.childxml_arg0"hlsPackage")inletdashPackage=(Option.map~f:DashPackage.of_xml)(Xml.childxml_arg0"dashPackage")inletcreatedAt=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"createdAt")inletcmafPackage=(Option.map~f:CmafPackage.of_xml)(Xml.childxml_arg0"cmafPackage")inletarn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"arn")inmake?tags?packagingGroupId?mssPackage?id?hlsPackage?dashPackage?createdAt?cmafPackage?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"Tags.of_jsoninletpackagingGroupId=field_mapjson__"PackagingGroupId"Zz__string.of_jsoninletmssPackage=field_mapjson__"MssPackage"MssPackage.of_jsoninletid=field_mapjson__"Id"Zz__string.of_jsoninlethlsPackage=field_mapjson__"HlsPackage"HlsPackage.of_jsoninletdashPackage=field_mapjson__"DashPackage"DashPackage.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"Zz__string.of_jsoninletcmafPackage=field_mapjson__"CmafPackage"CmafPackage.of_jsoninletarn=field_mapjson__"Arn"Zz__string.of_jsoninmake?tags?packagingGroupId?mssPackage?id?hlsPackage?dashPackage?createdAt?cmafPackage?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a description of a MediaPackage VOD PackagingConfiguration resource."]moduleDescribePackagingConfigurationRequest=structtypenonrect={id:Zz__string.t[@ocaml.doc"The ID of a MediaPackage VOD PackagingConfiguration resource."]}letcontext_="DescribePackagingConfigurationRequest"letmake~id=fun()->{id}letto_valuex=structure_to_value[("id",(Some(Zz__string.to_valuex.id)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"id")inmake~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_map_exnjson__"Id"Zz__string.of_jsoninmake~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a description of a MediaPackage VOD PackagingConfiguration resource."]moduleDescribeAssetResponse=structtypenonrect={arn:Zz__string.toption[@ocaml.doc"The ARN of the Asset."];createdAt:Zz__string.toption[@ocaml.doc"The time the Asset was initially submitted for Ingest."];egressEndpoints:Zz__listOfEgressEndpoint.toption[@ocaml.doc"The list of egress endpoints available for the Asset."];id:Zz__string.toption[@ocaml.doc"The unique identifier for the Asset."];packagingGroupId:Zz__string.toption[@ocaml.doc"The ID of the PackagingGroup for the Asset."];resourceId:Zz__string.toption[@ocaml.doc"The resource ID to include in SPEKE key requests."];sourceArn:Zz__string.toption[@ocaml.doc"ARN of the source object in S3."];sourceRoleArn:Zz__string.toption[@ocaml.doc"The IAM role_arn used to access the source S3 bucket."];tags:Tags.toption}typenonrecerror=[`ForbiddenExceptionofForbiddenException.t|`InternalServerErrorExceptionofInternalServerErrorException.t|`NotFoundExceptionofNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`UnprocessableEntityExceptionofUnprocessableEntityException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun?createdAt->fun?egressEndpoints->fun?id->fun?packagingGroupId->fun?resourceId->fun?sourceArn->fun?sourceRoleArn->fun?tags->fun()->{arn;createdAt;egressEndpoints;id;packagingGroupId;resourceId;sourceArn;sourceRoleArn;tags}leterror_of_jsonnamejson=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`InternalServerErrorExceptione->`Assoc[("error",(`String"InternalServerErrorException"));("details",(InternalServerErrorException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`UnprocessableEntityExceptione->`Assoc[("error",(`String"UnprocessableEntityException"));("details",(UnprocessableEntityException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:Zz__string.to_value));("createdAt",(Option.mapx.createdAt~f:Zz__string.to_value));("egressEndpoints",(Option.mapx.egressEndpoints~f:Zz__listOfEgressEndpoint.to_value));("id",(Option.mapx.id~f:Zz__string.to_value));("packagingGroupId",(Option.mapx.packagingGroupId~f:Zz__string.to_value));("resourceId",(Option.mapx.resourceId~f:Zz__string.to_value));("sourceArn",(Option.mapx.sourceArn~f:Zz__string.to_value));("sourceRoleArn",(Option.mapx.sourceRoleArn~f:Zz__string.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")inletsourceRoleArn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"sourceRoleArn")inletsourceArn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"sourceArn")inletresourceId=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"resourceId")inletpackagingGroupId=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"packagingGroupId")inletid=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"id")inletegressEndpoints=(Option.map~f:Zz__listOfEgressEndpoint.of_xml)(Xml.childxml_arg0"egressEndpoints")inletcreatedAt=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"createdAt")inletarn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"arn")inmake?tags?sourceRoleArn?sourceArn?resourceId?packagingGroupId?id?egressEndpoints?createdAt?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"Tags.of_jsoninletsourceRoleArn=field_mapjson__"SourceRoleArn"Zz__string.of_jsoninletsourceArn=field_mapjson__"SourceArn"Zz__string.of_jsoninletresourceId=field_mapjson__"ResourceId"Zz__string.of_jsoninletpackagingGroupId=field_mapjson__"PackagingGroupId"Zz__string.of_jsoninletid=field_mapjson__"Id"Zz__string.of_jsoninletegressEndpoints=field_mapjson__"EgressEndpoints"Zz__listOfEgressEndpoint.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"Zz__string.of_jsoninletarn=field_mapjson__"Arn"Zz__string.of_jsoninmake?tags?sourceRoleArn?sourceArn?resourceId?packagingGroupId?id?egressEndpoints?createdAt?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a description of a MediaPackage VOD Asset resource."]moduleDescribeAssetRequest=structtypenonrect={id:Zz__string.t[@ocaml.doc"The ID of an MediaPackage VOD Asset resource."]}letcontext_="DescribeAssetRequest"letmake~id=fun()->{id}letto_valuex=structure_to_value[("id",(Some(Zz__string.to_valuex.id)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"id")inmake~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_map_exnjson__"Id"Zz__string.of_jsoninmake~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a description of a MediaPackage VOD Asset resource."]moduleDeletePackagingGroupResponse=structtypenonrect=unittypenonrecerror=[`ForbiddenExceptionofForbiddenException.t|`InternalServerErrorExceptionofInternalServerErrorException.t|`NotFoundExceptionofNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`UnprocessableEntityExceptionofUnprocessableEntityException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`InternalServerErrorExceptione->`Assoc[("error",(`String"InternalServerErrorException"));("details",(InternalServerErrorException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`UnprocessableEntityExceptione->`Assoc[("error",(`String"UnprocessableEntityException"));("details",(UnprocessableEntityException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a MediaPackage VOD PackagingGroup resource."]moduleDeletePackagingGroupRequest=structtypenonrect={id:Zz__string.t[@ocaml.doc"The ID of the MediaPackage VOD PackagingGroup resource to delete."]}letcontext_="DeletePackagingGroupRequest"letmake~id=fun()->{id}letto_valuex=structure_to_value[("id",(Some(Zz__string.to_valuex.id)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"id")inmake~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_map_exnjson__"Id"Zz__string.of_jsoninmake~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a MediaPackage VOD PackagingGroup resource."]moduleDeletePackagingConfigurationResponse=structtypenonrect=unittypenonrecerror=[`ForbiddenExceptionofForbiddenException.t|`InternalServerErrorExceptionofInternalServerErrorException.t|`NotFoundExceptionofNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`UnprocessableEntityExceptionofUnprocessableEntityException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`InternalServerErrorExceptione->`Assoc[("error",(`String"InternalServerErrorException"));("details",(InternalServerErrorException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`UnprocessableEntityExceptione->`Assoc[("error",(`String"UnprocessableEntityException"));("details",(UnprocessableEntityException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a MediaPackage VOD PackagingConfiguration resource."]moduleDeletePackagingConfigurationRequest=structtypenonrect={id:Zz__string.t[@ocaml.doc"The ID of the MediaPackage VOD PackagingConfiguration resource to delete."]}letcontext_="DeletePackagingConfigurationRequest"letmake~id=fun()->{id}letto_valuex=structure_to_value[("id",(Some(Zz__string.to_valuex.id)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"id")inmake~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_map_exnjson__"Id"Zz__string.of_jsoninmake~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a MediaPackage VOD PackagingConfiguration resource."]moduleDeleteAssetResponse=structtypenonrect=unittypenonrecerror=[`ForbiddenExceptionofForbiddenException.t|`InternalServerErrorExceptionofInternalServerErrorException.t|`NotFoundExceptionofNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`UnprocessableEntityExceptionofUnprocessableEntityException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`InternalServerErrorExceptione->`Assoc[("error",(`String"InternalServerErrorException"));("details",(InternalServerErrorException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`UnprocessableEntityExceptione->`Assoc[("error",(`String"UnprocessableEntityException"));("details",(UnprocessableEntityException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes an existing MediaPackage VOD Asset resource."]moduleDeleteAssetRequest=structtypenonrect={id:Zz__string.t[@ocaml.doc"The ID of the MediaPackage VOD Asset resource to delete."]}letcontext_="DeleteAssetRequest"letmake~id=fun()->{id}letto_valuex=structure_to_value[("id",(Some(Zz__string.to_valuex.id)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"id")inmake~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_map_exnjson__"Id"Zz__string.of_jsoninmake~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes an existing MediaPackage VOD Asset resource."]moduleCreatePackagingGroupResponse=structtypenonrect={arn:Zz__string.toption[@ocaml.doc"The ARN of the PackagingGroup."];authorization:Authorization.toption;createdAt:Zz__string.toption[@ocaml.doc"The time the PackagingGroup was created."];domainName:Zz__string.toption[@ocaml.doc"The fully qualified domain name for Assets in the PackagingGroup."];egressAccessLogs:EgressAccessLogs.toption;id:Zz__string.toption[@ocaml.doc"The ID of the PackagingGroup."];tags:Tags.toption}typenonrecerror=[`ForbiddenExceptionofForbiddenException.t|`InternalServerErrorExceptionofInternalServerErrorException.t|`NotFoundExceptionofNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`UnprocessableEntityExceptionofUnprocessableEntityException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun?authorization->fun?createdAt->fun?domainName->fun?egressAccessLogs->fun?id->fun?tags->fun()->{arn;authorization;createdAt;domainName;egressAccessLogs;id;tags}leterror_of_jsonnamejson=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`InternalServerErrorExceptione->`Assoc[("error",(`String"InternalServerErrorException"));("details",(InternalServerErrorException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`UnprocessableEntityExceptione->`Assoc[("error",(`String"UnprocessableEntityException"));("details",(UnprocessableEntityException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:Zz__string.to_value));("authorization",(Option.mapx.authorization~f:Authorization.to_value));("createdAt",(Option.mapx.createdAt~f:Zz__string.to_value));("domainName",(Option.mapx.domainName~f:Zz__string.to_value));("egressAccessLogs",(Option.mapx.egressAccessLogs~f:EgressAccessLogs.to_value));("id",(Option.mapx.id~f:Zz__string.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")inletid=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"id")inletegressAccessLogs=(Option.map~f:EgressAccessLogs.of_xml)(Xml.childxml_arg0"egressAccessLogs")inletdomainName=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"domainName")inletcreatedAt=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"createdAt")inletauthorization=(Option.map~f:Authorization.of_xml)(Xml.childxml_arg0"authorization")inletarn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"arn")inmake?tags?id?egressAccessLogs?domainName?createdAt?authorization?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"Tags.of_jsoninletid=field_mapjson__"Id"Zz__string.of_jsoninletegressAccessLogs=field_mapjson__"EgressAccessLogs"EgressAccessLogs.of_jsoninletdomainName=field_mapjson__"DomainName"Zz__string.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"Zz__string.of_jsoninletauthorization=field_mapjson__"Authorization"Authorization.of_jsoninletarn=field_mapjson__"Arn"Zz__string.of_jsoninmake?tags?id?egressAccessLogs?domainName?createdAt?authorization?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a new MediaPackage VOD PackagingGroup resource."]moduleCreatePackagingGroupRequest=structtypenonrect={authorization:Authorization.toption;egressAccessLogs:EgressAccessLogs.toption;id:Zz__string.t[@ocaml.doc"The ID of the PackagingGroup."];tags:Tags.toption}letcontext_="CreatePackagingGroupRequest"letmake?authorization=fun?egressAccessLogs->fun?tags->fun~id->fun()->{authorization;egressAccessLogs;tags;id}letto_valuex=structure_to_value[("authorization",(Option.mapx.authorization~f:Authorization.to_value));("egressAccessLogs",(Option.mapx.egressAccessLogs~f:EgressAccessLogs.to_value));("id",(Some(Zz__string.to_valuex.id)));("tags",(Option.mapx.tags~f:Tags.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletid=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"id")inletegressAccessLogs=(Option.map~f:EgressAccessLogs.of_xml)(Xml.childxml_arg0"egressAccessLogs")inletauthorization=(Option.map~f:Authorization.of_xml)(Xml.childxml_arg0"authorization")inmake?tags~id?egressAccessLogs?authorization()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"Tags.of_jsoninletid=field_map_exnjson__"Id"Zz__string.of_jsoninletegressAccessLogs=field_mapjson__"EgressAccessLogs"EgressAccessLogs.of_jsoninletauthorization=field_mapjson__"Authorization"Authorization.of_jsoninmake?tags~id?egressAccessLogs?authorization()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A new MediaPackage VOD PackagingGroup resource configuration."]moduleCreatePackagingConfigurationResponse=structtypenonrect={arn:Zz__string.toption[@ocaml.doc"The ARN of the PackagingConfiguration."];cmafPackage:CmafPackage.toption;createdAt:Zz__string.toption[@ocaml.doc"The time the PackagingConfiguration was created."];dashPackage:DashPackage.toption;hlsPackage:HlsPackage.toption;id:Zz__string.toption[@ocaml.doc"The ID of the PackagingConfiguration."];mssPackage:MssPackage.toption;packagingGroupId:Zz__string.toption[@ocaml.doc"The ID of a PackagingGroup."];tags:Tags.toption}typenonrecerror=[`ForbiddenExceptionofForbiddenException.t|`InternalServerErrorExceptionofInternalServerErrorException.t|`NotFoundExceptionofNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`UnprocessableEntityExceptionofUnprocessableEntityException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun?cmafPackage->fun?createdAt->fun?dashPackage->fun?hlsPackage->fun?id->fun?mssPackage->fun?packagingGroupId->fun?tags->fun()->{arn;cmafPackage;createdAt;dashPackage;hlsPackage;id;mssPackage;packagingGroupId;tags}leterror_of_jsonnamejson=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`InternalServerErrorExceptione->`Assoc[("error",(`String"InternalServerErrorException"));("details",(InternalServerErrorException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`UnprocessableEntityExceptione->`Assoc[("error",(`String"UnprocessableEntityException"));("details",(UnprocessableEntityException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:Zz__string.to_value));("cmafPackage",(Option.mapx.cmafPackage~f:CmafPackage.to_value));("createdAt",(Option.mapx.createdAt~f:Zz__string.to_value));("dashPackage",(Option.mapx.dashPackage~f:DashPackage.to_value));("hlsPackage",(Option.mapx.hlsPackage~f:HlsPackage.to_value));("id",(Option.mapx.id~f:Zz__string.to_value));("mssPackage",(Option.mapx.mssPackage~f:MssPackage.to_value));("packagingGroupId",(Option.mapx.packagingGroupId~f:Zz__string.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")inletpackagingGroupId=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"packagingGroupId")inletmssPackage=(Option.map~f:MssPackage.of_xml)(Xml.childxml_arg0"mssPackage")inletid=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"id")inlethlsPackage=(Option.map~f:HlsPackage.of_xml)(Xml.childxml_arg0"hlsPackage")inletdashPackage=(Option.map~f:DashPackage.of_xml)(Xml.childxml_arg0"dashPackage")inletcreatedAt=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"createdAt")inletcmafPackage=(Option.map~f:CmafPackage.of_xml)(Xml.childxml_arg0"cmafPackage")inletarn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"arn")inmake?tags?packagingGroupId?mssPackage?id?hlsPackage?dashPackage?createdAt?cmafPackage?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"Tags.of_jsoninletpackagingGroupId=field_mapjson__"PackagingGroupId"Zz__string.of_jsoninletmssPackage=field_mapjson__"MssPackage"MssPackage.of_jsoninletid=field_mapjson__"Id"Zz__string.of_jsoninlethlsPackage=field_mapjson__"HlsPackage"HlsPackage.of_jsoninletdashPackage=field_mapjson__"DashPackage"DashPackage.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"Zz__string.of_jsoninletcmafPackage=field_mapjson__"CmafPackage"CmafPackage.of_jsoninletarn=field_mapjson__"Arn"Zz__string.of_jsoninmake?tags?packagingGroupId?mssPackage?id?hlsPackage?dashPackage?createdAt?cmafPackage?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a new MediaPackage VOD PackagingConfiguration resource."]moduleCreatePackagingConfigurationRequest=structtypenonrect={cmafPackage:CmafPackage.toption;dashPackage:DashPackage.toption;hlsPackage:HlsPackage.toption;id:Zz__string.t[@ocaml.doc"The ID of the PackagingConfiguration."];mssPackage:MssPackage.toption;packagingGroupId:Zz__string.t[@ocaml.doc"The ID of a PackagingGroup."];tags:Tags.toption}letcontext_="CreatePackagingConfigurationRequest"letmake?cmafPackage=fun?dashPackage->fun?hlsPackage->fun?mssPackage->fun?tags->fun~id->fun~packagingGroupId->fun()->{cmafPackage;dashPackage;hlsPackage;mssPackage;tags;id;packagingGroupId}letto_valuex=structure_to_value[("cmafPackage",(Option.mapx.cmafPackage~f:CmafPackage.to_value));("dashPackage",(Option.mapx.dashPackage~f:DashPackage.to_value));("hlsPackage",(Option.mapx.hlsPackage~f:HlsPackage.to_value));("id",(Some(Zz__string.to_valuex.id)));("mssPackage",(Option.mapx.mssPackage~f:MssPackage.to_value));("packagingGroupId",(Some(Zz__string.to_valuex.packagingGroupId)));("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")inletpackagingGroupId=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"packagingGroupId")inletmssPackage=(Option.map~f:MssPackage.of_xml)(Xml.childxml_arg0"mssPackage")inletid=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"id")inlethlsPackage=(Option.map~f:HlsPackage.of_xml)(Xml.childxml_arg0"hlsPackage")inletdashPackage=(Option.map~f:DashPackage.of_xml)(Xml.childxml_arg0"dashPackage")inletcmafPackage=(Option.map~f:CmafPackage.of_xml)(Xml.childxml_arg0"cmafPackage")inmake?tags~packagingGroupId?mssPackage~id?hlsPackage?dashPackage?cmafPackage()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"Tags.of_jsoninletpackagingGroupId=field_map_exnjson__"PackagingGroupId"Zz__string.of_jsoninletmssPackage=field_mapjson__"MssPackage"MssPackage.of_jsoninletid=field_map_exnjson__"Id"Zz__string.of_jsoninlethlsPackage=field_mapjson__"HlsPackage"HlsPackage.of_jsoninletdashPackage=field_mapjson__"DashPackage"DashPackage.of_jsoninletcmafPackage=field_mapjson__"CmafPackage"CmafPackage.of_jsoninmake?tags~packagingGroupId?mssPackage~id?hlsPackage?dashPackage?cmafPackage()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A new MediaPackage VOD PackagingConfiguration resource configuration."]moduleCreateAssetResponse=structtypenonrect={arn:Zz__string.toption[@ocaml.doc"The ARN of the Asset."];createdAt:Zz__string.toption[@ocaml.doc"The time the Asset was initially submitted for Ingest."];egressEndpoints:Zz__listOfEgressEndpoint.toption[@ocaml.doc"The list of egress endpoints available for the Asset."];id:Zz__string.toption[@ocaml.doc"The unique identifier for the Asset."];packagingGroupId:Zz__string.toption[@ocaml.doc"The ID of the PackagingGroup for the Asset."];resourceId:Zz__string.toption[@ocaml.doc"The resource ID to include in SPEKE key requests."];sourceArn:Zz__string.toption[@ocaml.doc"ARN of the source object in S3."];sourceRoleArn:Zz__string.toption[@ocaml.doc"The IAM role_arn used to access the source S3 bucket."];tags:Tags.toption}typenonrecerror=[`ForbiddenExceptionofForbiddenException.t|`InternalServerErrorExceptionofInternalServerErrorException.t|`NotFoundExceptionofNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`UnprocessableEntityExceptionofUnprocessableEntityException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun?createdAt->fun?egressEndpoints->fun?id->fun?packagingGroupId->fun?resourceId->fun?sourceArn->fun?sourceRoleArn->fun?tags->fun()->{arn;createdAt;egressEndpoints;id;packagingGroupId;resourceId;sourceArn;sourceRoleArn;tags}leterror_of_jsonnamejson=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`InternalServerErrorExceptione->`Assoc[("error",(`String"InternalServerErrorException"));("details",(InternalServerErrorException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`UnprocessableEntityExceptione->`Assoc[("error",(`String"UnprocessableEntityException"));("details",(UnprocessableEntityException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:Zz__string.to_value));("createdAt",(Option.mapx.createdAt~f:Zz__string.to_value));("egressEndpoints",(Option.mapx.egressEndpoints~f:Zz__listOfEgressEndpoint.to_value));("id",(Option.mapx.id~f:Zz__string.to_value));("packagingGroupId",(Option.mapx.packagingGroupId~f:Zz__string.to_value));("resourceId",(Option.mapx.resourceId~f:Zz__string.to_value));("sourceArn",(Option.mapx.sourceArn~f:Zz__string.to_value));("sourceRoleArn",(Option.mapx.sourceRoleArn~f:Zz__string.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")inletsourceRoleArn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"sourceRoleArn")inletsourceArn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"sourceArn")inletresourceId=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"resourceId")inletpackagingGroupId=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"packagingGroupId")inletid=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"id")inletegressEndpoints=(Option.map~f:Zz__listOfEgressEndpoint.of_xml)(Xml.childxml_arg0"egressEndpoints")inletcreatedAt=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"createdAt")inletarn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"arn")inmake?tags?sourceRoleArn?sourceArn?resourceId?packagingGroupId?id?egressEndpoints?createdAt?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"Tags.of_jsoninletsourceRoleArn=field_mapjson__"SourceRoleArn"Zz__string.of_jsoninletsourceArn=field_mapjson__"SourceArn"Zz__string.of_jsoninletresourceId=field_mapjson__"ResourceId"Zz__string.of_jsoninletpackagingGroupId=field_mapjson__"PackagingGroupId"Zz__string.of_jsoninletid=field_mapjson__"Id"Zz__string.of_jsoninletegressEndpoints=field_mapjson__"EgressEndpoints"Zz__listOfEgressEndpoint.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"Zz__string.of_jsoninletarn=field_mapjson__"Arn"Zz__string.of_jsoninmake?tags?sourceRoleArn?sourceArn?resourceId?packagingGroupId?id?egressEndpoints?createdAt?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a new MediaPackage VOD Asset resource."]moduleCreateAssetRequest=structtypenonrect={id:Zz__string.t[@ocaml.doc"The unique identifier for the Asset."];packagingGroupId:Zz__string.t[@ocaml.doc"The ID of the PackagingGroup for the Asset."];resourceId:Zz__string.toption[@ocaml.doc"The resource ID to include in SPEKE key requests."];sourceArn:Zz__string.t[@ocaml.doc"ARN of the source object in S3."];sourceRoleArn:Zz__string.t[@ocaml.doc"The IAM role ARN used to access the source S3 bucket."];tags:Tags.toption}letcontext_="CreateAssetRequest"letmake?resourceId=fun?tags->fun~id->fun~packagingGroupId->fun~sourceArn->fun~sourceRoleArn->fun()->{resourceId;tags;id;packagingGroupId;sourceArn;sourceRoleArn}letto_valuex=structure_to_value[("id",(Some(Zz__string.to_valuex.id)));("packagingGroupId",(Some(Zz__string.to_valuex.packagingGroupId)));("resourceId",(Option.mapx.resourceId~f:Zz__string.to_value));("sourceArn",(Some(Zz__string.to_valuex.sourceArn)));("sourceRoleArn",(Some(Zz__string.to_valuex.sourceRoleArn)));("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")inletsourceRoleArn=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"sourceRoleArn")inletsourceArn=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"sourceArn")inletresourceId=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"resourceId")inletpackagingGroupId=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"packagingGroupId")inletid=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"id")inmake?tags~sourceRoleArn~sourceArn?resourceId~packagingGroupId~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"Tags.of_jsoninletsourceRoleArn=field_map_exnjson__"SourceRoleArn"Zz__string.of_jsoninletsourceArn=field_map_exnjson__"SourceArn"Zz__string.of_jsoninletresourceId=field_mapjson__"ResourceId"Zz__string.of_jsoninletpackagingGroupId=field_map_exnjson__"PackagingGroupId"Zz__string.of_jsoninletid=field_map_exnjson__"Id"Zz__string.of_jsoninmake?tags~sourceRoleArn~sourceArn?resourceId~packagingGroupId~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A new MediaPackage VOD Asset configuration."]moduleConfigureLogsResponse=structtypenonrect={arn:Zz__string.toption[@ocaml.doc"The ARN of the PackagingGroup."];authorization:Authorization.toption;createdAt:Zz__string.toption[@ocaml.doc"The time the PackagingGroup was created."];domainName:Zz__string.toption[@ocaml.doc"The fully qualified domain name for Assets in the PackagingGroup."];egressAccessLogs:EgressAccessLogs.toption;id:Zz__string.toption[@ocaml.doc"The ID of the PackagingGroup."];tags:Tags.toption}typenonrecerror=[`ForbiddenExceptionofForbiddenException.t|`InternalServerErrorExceptionofInternalServerErrorException.t|`NotFoundExceptionofNotFoundException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`TooManyRequestsExceptionofTooManyRequestsException.t|`UnprocessableEntityExceptionofUnprocessableEntityException.t|`Unknown_operation_errorof(string*stringoption)]letmake?arn=fun?authorization->fun?createdAt->fun?domainName->fun?egressAccessLogs->fun?id->fun?tags->fun()->{arn;authorization;createdAt;domainName;egressAccessLogs;id;tags}leterror_of_jsonnamejson=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_jsonjson)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_jsonjson)|"NotFoundException"->`NotFoundException(NotFoundException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_jsonjson)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ForbiddenException"->`ForbiddenException(ForbiddenException.of_xmlxml)|"InternalServerErrorException"->`InternalServerErrorException(InternalServerErrorException.of_xmlxml)|"NotFoundException"->`NotFoundException(NotFoundException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"TooManyRequestsException"->`TooManyRequestsException(TooManyRequestsException.of_xmlxml)|"UnprocessableEntityException"->`UnprocessableEntityException(UnprocessableEntityException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ForbiddenExceptione->`Assoc[("error",(`String"ForbiddenException"));("details",(ForbiddenException.to_jsone))]|`InternalServerErrorExceptione->`Assoc[("error",(`String"InternalServerErrorException"));("details",(InternalServerErrorException.to_jsone))]|`NotFoundExceptione->`Assoc[("error",(`String"NotFoundException"));("details",(NotFoundException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`TooManyRequestsExceptione->`Assoc[("error",(`String"TooManyRequestsException"));("details",(TooManyRequestsException.to_jsone))]|`UnprocessableEntityExceptione->`Assoc[("error",(`String"UnprocessableEntityException"));("details",(UnprocessableEntityException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:Zz__string.to_value));("authorization",(Option.mapx.authorization~f:Authorization.to_value));("createdAt",(Option.mapx.createdAt~f:Zz__string.to_value));("domainName",(Option.mapx.domainName~f:Zz__string.to_value));("egressAccessLogs",(Option.mapx.egressAccessLogs~f:EgressAccessLogs.to_value));("id",(Option.mapx.id~f:Zz__string.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")inletid=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"id")inletegressAccessLogs=(Option.map~f:EgressAccessLogs.of_xml)(Xml.childxml_arg0"egressAccessLogs")inletdomainName=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"domainName")inletcreatedAt=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"createdAt")inletauthorization=(Option.map~f:Authorization.of_xml)(Xml.childxml_arg0"authorization")inletarn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"arn")inmake?tags?id?egressAccessLogs?domainName?createdAt?authorization?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"Tags.of_jsoninletid=field_mapjson__"Id"Zz__string.of_jsoninletegressAccessLogs=field_mapjson__"EgressAccessLogs"EgressAccessLogs.of_jsoninletdomainName=field_mapjson__"DomainName"Zz__string.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"Zz__string.of_jsoninletauthorization=field_mapjson__"Authorization"Authorization.of_jsoninletarn=field_mapjson__"Arn"Zz__string.of_jsoninmake?tags?id?egressAccessLogs?domainName?createdAt?authorization?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Changes the packaging group's properities to configure log subscription"]moduleConfigureLogsRequest=structtypenonrect={egressAccessLogs:EgressAccessLogs.toption;id:Zz__string.t[@ocaml.doc"The ID of a MediaPackage VOD PackagingGroup resource."]}letcontext_="ConfigureLogsRequest"letmake?egressAccessLogs=fun~id->fun()->{egressAccessLogs;id}letto_valuex=structure_to_value[("egressAccessLogs",(Option.mapx.egressAccessLogs~f:EgressAccessLogs.to_value));("id",(Some(Zz__string.to_valuex.id)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"id")inletegressAccessLogs=(Option.map~f:EgressAccessLogs.of_xml)(Xml.childxml_arg0"egressAccessLogs")inmake~id?egressAccessLogs()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_map_exnjson__"Id"Zz__string.of_jsoninletegressAccessLogs=field_mapjson__"EgressAccessLogs"EgressAccessLogs.of_jsoninmake~id?egressAccessLogs()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The option to configure log subscription."]moduleConfigureLogsParameters=structtypenonrect={egressAccessLogs:EgressAccessLogs.toption}letmake?egressAccessLogs=fun()->{egressAccessLogs}letto_valuex=structure_to_value[("egressAccessLogs",(Option.mapx.egressAccessLogs~f:EgressAccessLogs.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letegressAccessLogs=(Option.map~f:EgressAccessLogs.of_xml)(Xml.childxml_arg0"egressAccessLogs")inmake?egressAccessLogs()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letegressAccessLogs=field_mapjson__"EgressAccessLogs"EgressAccessLogs.of_jsoninmake?egressAccessLogs()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The configuration parameters for egress access logging."]moduleAssetList=structtypenonrect={assets:Zz__listOfAssetShallow.toption[@ocaml.doc"A list of MediaPackage VOD Asset resources."];nextToken:Zz__string.toption[@ocaml.doc"A token that can be used to resume pagination from the end of the collection."]}letmake?assets=fun?nextToken->fun()->{assets;nextToken}letto_valuex=structure_to_value[("assets",(Option.mapx.assets~f:Zz__listOfAssetShallow.to_value));("nextToken",(Option.mapx.nextToken~f:Zz__string.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"nextToken")inletassets=(Option.map~f:Zz__listOfAssetShallow.of_xml)(Xml.childxml_arg0"assets")inmake?nextToken?assets()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"Zz__string.of_jsoninletassets=field_mapjson__"Assets"Zz__listOfAssetShallow.of_jsoninmake?nextToken?assets()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A collection of MediaPackage VOD Asset resources."]moduleAssetCreateParameters=structtypenonrect={id:Zz__string.t[@ocaml.doc"The unique identifier for the Asset."];packagingGroupId:Zz__string.t[@ocaml.doc"The ID of the PackagingGroup for the Asset."];resourceId:Zz__string.toption[@ocaml.doc"The resource ID to include in SPEKE key requests."];sourceArn:Zz__string.t[@ocaml.doc"ARN of the source object in S3."];sourceRoleArn:Zz__string.t[@ocaml.doc"The IAM role ARN used to access the source S3 bucket."];tags:Tags.toption}letcontext_="AssetCreateParameters"letmake?resourceId=fun?tags->fun~id->fun~packagingGroupId->fun~sourceArn->fun~sourceRoleArn->fun()->{resourceId;tags;id;packagingGroupId;sourceArn;sourceRoleArn}letto_valuex=structure_to_value[("id",(Some(Zz__string.to_valuex.id)));("packagingGroupId",(Some(Zz__string.to_valuex.packagingGroupId)));("resourceId",(Option.mapx.resourceId~f:Zz__string.to_value));("sourceArn",(Some(Zz__string.to_valuex.sourceArn)));("sourceRoleArn",(Some(Zz__string.to_valuex.sourceRoleArn)));("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")inletsourceRoleArn=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"sourceRoleArn")inletsourceArn=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"sourceArn")inletresourceId=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"resourceId")inletpackagingGroupId=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"packagingGroupId")inletid=Zz__string.of_xml(Xml.child_exn~context:context_xml_arg0"id")inmake?tags~sourceRoleArn~sourceArn?resourceId~packagingGroupId~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"Tags.of_jsoninletsourceRoleArn=field_map_exnjson__"SourceRoleArn"Zz__string.of_jsoninletsourceArn=field_map_exnjson__"SourceArn"Zz__string.of_jsoninletresourceId=field_mapjson__"ResourceId"Zz__string.of_jsoninletpackagingGroupId=field_map_exnjson__"PackagingGroupId"Zz__string.of_jsoninletid=field_map_exnjson__"Id"Zz__string.of_jsoninmake?tags~sourceRoleArn~sourceArn?resourceId~packagingGroupId~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Parameters used to create a MediaPackage VOD Asset."]moduleAsset=structtypenonrect={arn:Zz__string.toption[@ocaml.doc"The ARN of the Asset."];createdAt:Zz__string.toption[@ocaml.doc"The time the Asset was initially submitted for Ingest."];egressEndpoints:Zz__listOfEgressEndpoint.toption[@ocaml.doc"The list of egress endpoints available for the Asset."];id:Zz__string.toption[@ocaml.doc"The unique identifier for the Asset."];packagingGroupId:Zz__string.toption[@ocaml.doc"The ID of the PackagingGroup for the Asset."];resourceId:Zz__string.toption[@ocaml.doc"The resource ID to include in SPEKE key requests."];sourceArn:Zz__string.toption[@ocaml.doc"ARN of the source object in S3."];sourceRoleArn:Zz__string.toption[@ocaml.doc"The IAM role_arn used to access the source S3 bucket."];tags:Tags.toption}letmake?arn=fun?createdAt->fun?egressEndpoints->fun?id->fun?packagingGroupId->fun?resourceId->fun?sourceArn->fun?sourceRoleArn->fun?tags->fun()->{arn;createdAt;egressEndpoints;id;packagingGroupId;resourceId;sourceArn;sourceRoleArn;tags}letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:Zz__string.to_value));("createdAt",(Option.mapx.createdAt~f:Zz__string.to_value));("egressEndpoints",(Option.mapx.egressEndpoints~f:Zz__listOfEgressEndpoint.to_value));("id",(Option.mapx.id~f:Zz__string.to_value));("packagingGroupId",(Option.mapx.packagingGroupId~f:Zz__string.to_value));("resourceId",(Option.mapx.resourceId~f:Zz__string.to_value));("sourceArn",(Option.mapx.sourceArn~f:Zz__string.to_value));("sourceRoleArn",(Option.mapx.sourceRoleArn~f:Zz__string.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")inletsourceRoleArn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"sourceRoleArn")inletsourceArn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"sourceArn")inletresourceId=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"resourceId")inletpackagingGroupId=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"packagingGroupId")inletid=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"id")inletegressEndpoints=(Option.map~f:Zz__listOfEgressEndpoint.of_xml)(Xml.childxml_arg0"egressEndpoints")inletcreatedAt=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"createdAt")inletarn=(Option.map~f:Zz__string.of_xml)(Xml.childxml_arg0"arn")inmake?tags?sourceRoleArn?sourceArn?resourceId?packagingGroupId?id?egressEndpoints?createdAt?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"Tags.of_jsoninletsourceRoleArn=field_mapjson__"SourceRoleArn"Zz__string.of_jsoninletsourceArn=field_mapjson__"SourceArn"Zz__string.of_jsoninletresourceId=field_mapjson__"ResourceId"Zz__string.of_jsoninletpackagingGroupId=field_mapjson__"PackagingGroupId"Zz__string.of_jsoninletid=field_mapjson__"Id"Zz__string.of_jsoninletegressEndpoints=field_mapjson__"EgressEndpoints"Zz__listOfEgressEndpoint.of_jsoninletcreatedAt=field_mapjson__"CreatedAt"Zz__string.of_jsoninletarn=field_mapjson__"Arn"Zz__string.of_jsoninmake?tags?sourceRoleArn?sourceArn?resourceId?packagingGroupId?id?egressEndpoints?createdAt?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A MediaPackage VOD Asset resource."]