123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543(* 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.kinesisanalyticsletapiVersion="2015-08-14"letendpointPrefix="kinesisanalytics"letserviceFullName="Amazon Kinesis Analytics"letsignatureVersion="v4"letprotocol="json"letglobalEndpoint=endpointPrefix^".amazonaws.com"letserviceAbbreviation="Kinesis Analytics"lettargetPrefix="KinesisAnalytics_20150814"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[]))])moduleRecordColumnDelimiter=structtypenonrect=stringletcontext_="RecordColumnDelimiter"letmakei=letopenResultinok_or_failwith(check_string_mini~min:1);iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"RecordColumnDelimiter"jletto_json=simple_to_jsonto_valueendmoduleRecordRowDelimiter=structtypenonrect=stringletcontext_="RecordRowDelimiter"letmakei=letopenResultinok_or_failwith(check_string_mini~min:1);iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"RecordRowDelimiter"jletto_json=simple_to_jsonto_valueendmoduleRecordRowPath=structtypenonrect=stringletcontext_="RecordRowPath"letmakei=letopenResultinok_or_failwith(check_string_mini~min:1);iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"RecordRowPath"jletto_json=simple_to_jsonto_valueendmoduleRecordColumnMapping=structtypenonrect=stringletcontext_="RecordColumnMapping"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:"RecordColumnMapping"jletto_json=simple_to_jsonto_valueendmoduleRecordColumnName=structtypenonrect=stringletcontext_="RecordColumnName"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:"RecordColumnName"jletto_json=simple_to_jsonto_valueendmoduleRecordColumnSqlType=structtypenonrect=stringletcontext_="RecordColumnSqlType"letmakei=letopenResultinok_or_failwith(check_string_mini~min:1);iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"RecordColumnSqlType"jletto_json=simple_to_jsonto_valueendmoduleCSVMappingParameters=structtypenonrect={recordRowDelimiter:RecordRowDelimiter.t[@ocaml.doc"Row delimiter. For example, in a CSV format, '\\n' is the typical row delimiter."];recordColumnDelimiter:RecordColumnDelimiter.t[@ocaml.doc"Column delimiter. For example, in a CSV format, a comma (\",\") is the typical column delimiter."]}letcontext_="CSVMappingParameters"letmake~recordRowDelimiter=fun~recordColumnDelimiter->fun()->{recordRowDelimiter;recordColumnDelimiter}letto_valuex=structure_to_value[("RecordRowDelimiter",(Some(RecordRowDelimiter.to_valuex.recordRowDelimiter)));("RecordColumnDelimiter",(Some(RecordColumnDelimiter.to_valuex.recordColumnDelimiter)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrecordColumnDelimiter=RecordColumnDelimiter.of_xml(Xml.child_exn~context:context_xml_arg0"RecordColumnDelimiter")inletrecordRowDelimiter=RecordRowDelimiter.of_xml(Xml.child_exn~context:context_xml_arg0"RecordRowDelimiter")inmake~recordColumnDelimiter~recordRowDelimiter()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrecordColumnDelimiter=field_map_exnjson__"RecordColumnDelimiter"RecordColumnDelimiter.of_jsoninletrecordRowDelimiter=field_map_exnjson__"RecordRowDelimiter"RecordRowDelimiter.of_jsoninmake~recordColumnDelimiter~recordRowDelimiter()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides additional mapping information when the record format uses delimiters, such as CSV. For example, the following sample records use CSV format, where the records use the '\\n' as the row delimiter and a comma (\",\") as the column delimiter: \"name1\", \"address1\" \"name2\", \"address2\""]moduleJSONMappingParameters=structtypenonrect={recordRowPath:RecordRowPath.t[@ocaml.doc"Path to the top-level parent that contains the records."]}letcontext_="JSONMappingParameters"letmake~recordRowPath=fun()->{recordRowPath}letto_valuex=structure_to_value[("RecordRowPath",(Some(RecordRowPath.to_valuex.recordRowPath)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrecordRowPath=RecordRowPath.of_xml(Xml.child_exn~context:context_xml_arg0"RecordRowPath")inmake~recordRowPath()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrecordRowPath=field_map_exnjson__"RecordRowPath"RecordRowPath.of_jsoninmake~recordRowPath()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides additional mapping information when JSON is the record format on the streaming source."]moduleResourceARN=structtypenonrect=stringletcontext_="ResourceARN"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"arn:.*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ResourceARN"jletto_json=simple_to_jsonto_valueendmoduleRoleARN=structtypenonrect=stringletcontext_="RoleARN"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"arn:aws:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"RoleARN"jletto_json=simple_to_jsonto_valueendmoduleRecordColumn=structtypenonrect={name:RecordColumnName.t[@ocaml.doc"Name of the column created in the in-application input stream or reference table."];mapping:RecordColumnMapping.toption[@ocaml.doc"Reference to the data element in the streaming input or the reference data source. This element is required if the RecordFormatType is JSON."];sqlType:RecordColumnSqlType.t[@ocaml.doc"Type of column created in the in-application input stream or reference table."]}letcontext_="RecordColumn"letmake?mapping=fun~name->fun~sqlType->fun()->{mapping;name;sqlType}letto_valuex=structure_to_value[("Name",(Some(RecordColumnName.to_valuex.name)));("Mapping",(Option.mapx.mapping~f:RecordColumnMapping.to_value));("SqlType",(Some(RecordColumnSqlType.to_valuex.sqlType)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsqlType=RecordColumnSqlType.of_xml(Xml.child_exn~context:context_xml_arg0"SqlType")inletmapping=(Option.map~f:RecordColumnMapping.of_xml)(Xml.childxml_arg0"Mapping")inletname=RecordColumnName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake~sqlType?mapping~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsqlType=field_map_exnjson__"SqlType"RecordColumnSqlType.of_jsoninletmapping=field_mapjson__"Mapping"RecordColumnMapping.of_jsoninletname=field_map_exnjson__"Name"RecordColumnName.of_jsoninmake~sqlType?mapping~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the mapping of each data element in the streaming source to the corresponding column in the in-application stream. Also used to describe the format of the reference data source."]moduleMappingParameters=structtypenonrect={jSONMappingParameters:JSONMappingParameters.toption[@ocaml.doc"Provides additional mapping information when JSON is the record format on the streaming source."];cSVMappingParameters:CSVMappingParameters.toption[@ocaml.doc"Provides additional mapping information when the record format uses delimiters (for example, CSV)."]}letmake?jSONMappingParameters=fun?cSVMappingParameters->fun()->{jSONMappingParameters;cSVMappingParameters}letto_valuex=structure_to_value[("JSONMappingParameters",(Option.mapx.jSONMappingParameters~f:JSONMappingParameters.to_value));("CSVMappingParameters",(Option.mapx.cSVMappingParameters~f:CSVMappingParameters.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcSVMappingParameters=(Option.map~f:CSVMappingParameters.of_xml)(Xml.childxml_arg0"CSVMappingParameters")inletjSONMappingParameters=(Option.map~f:JSONMappingParameters.of_xml)(Xml.childxml_arg0"JSONMappingParameters")inmake?cSVMappingParameters?jSONMappingParameters()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcSVMappingParameters=field_mapjson__"CSVMappingParameters"CSVMappingParameters.of_jsoninletjSONMappingParameters=field_mapjson__"JSONMappingParameters"JSONMappingParameters.of_jsoninmake?cSVMappingParameters?jSONMappingParameters()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"When configuring application input at the time of creating or updating an application, provides additional mapping information specific to the record format (such as JSON, CSV, or record fields delimited by some delimiter) on the streaming source."]moduleRecordFormatType=structtypenonrect=|JSON|CSV|Non_static_idofstringletmakei=iletto_string=function|JSON->"JSON"|CSV->"CSV"|Non_static_ids->sletof_string=function|"JSON"->JSON|"CSV"->CSV|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 RecordFormatType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"RecordFormatType"j)letto_json=simple_to_jsonto_valueendmoduleInputParallelismCount=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:64)>>=(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 InputParallelismCount"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleInputLambdaProcessorUpdate=structtypenonrect={resourceARNUpdate:ResourceARN.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the new AWS Lambda function that is used to preprocess the records in the stream. To specify an earlier version of the Lambda function than the latest, include the Lambda function version in the Lambda function ARN. For more information about Lambda ARNs, see Example ARNs: AWS Lambda"];roleARNUpdate:RoleARN.toption[@ocaml.doc"The ARN of the new IAM role that is used to access the AWS Lambda function."]}letmake?resourceARNUpdate=fun?roleARNUpdate->fun()->{resourceARNUpdate;roleARNUpdate}letto_valuex=structure_to_value[("ResourceARNUpdate",(Option.mapx.resourceARNUpdate~f:ResourceARN.to_value));("RoleARNUpdate",(Option.mapx.roleARNUpdate~f:RoleARN.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroleARNUpdate=(Option.map~f:RoleARN.of_xml)(Xml.childxml_arg0"RoleARNUpdate")inletresourceARNUpdate=(Option.map~f:ResourceARN.of_xml)(Xml.childxml_arg0"ResourceARNUpdate")inmake?roleARNUpdate?resourceARNUpdate()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroleARNUpdate=field_mapjson__"RoleARNUpdate"RoleARN.of_jsoninletresourceARNUpdate=field_mapjson__"ResourceARNUpdate"ResourceARN.of_jsoninmake?roleARNUpdate?resourceARNUpdate()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents an update to the InputLambdaProcessor that is used to preprocess the records in the stream."]moduleRecordColumns=structtypenonrect=RecordColumn.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:1000)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:RecordColumn.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:RecordColumn.of_xml)letof_jsonj=list_of_json~kind:"RecordColumns"~of_json:RecordColumn.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRecordEncoding=structtypenonrect=stringletcontext_="RecordEncoding"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"UTF-8");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"RecordEncoding"jletto_json=simple_to_jsonto_valueendmoduleRecordFormat=structtypenonrect={recordFormatType:RecordFormatType.t[@ocaml.doc"The type of record format."];mappingParameters:MappingParameters.toption[@ocaml.doc"When configuring application input at the time of creating or updating an application, provides additional mapping information specific to the record format (such as JSON, CSV, or record fields delimited by some delimiter) on the streaming source."]}letcontext_="RecordFormat"letmake?mappingParameters=fun~recordFormatType->fun()->{mappingParameters;recordFormatType}letto_valuex=structure_to_value[("RecordFormatType",(Some(RecordFormatType.to_valuex.recordFormatType)));("MappingParameters",(Option.mapx.mappingParameters~f:MappingParameters.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmappingParameters=(Option.map~f:MappingParameters.of_xml)(Xml.childxml_arg0"MappingParameters")inletrecordFormatType=RecordFormatType.of_xml(Xml.child_exn~context:context_xml_arg0"RecordFormatType")inmake?mappingParameters~recordFormatType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmappingParameters=field_mapjson__"MappingParameters"MappingParameters.of_jsoninletrecordFormatType=field_map_exnjson__"RecordFormatType"RecordFormatType.of_jsoninmake?mappingParameters~recordFormatType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the record format and relevant mapping information that should be applied to schematize the records on the stream."]moduleBucketARN=structtypenonrect=stringletcontext_="BucketARN"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"arn:.*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"BucketARN"jletto_json=simple_to_jsonto_valueendmoduleFileKey=structtypenonrect=stringletcontext_="FileKey"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"FileKey"jletto_json=simple_to_jsonto_valueendmoduleInAppStreamName=structtypenonrect=stringletcontext_="InAppStreamName"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:32)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"InAppStreamName"jletto_json=simple_to_jsonto_valueendmoduleInputLambdaProcessorDescription=structtypenonrect={resourceARN:ResourceARN.toption[@ocaml.doc"The ARN of the AWS Lambda function that is used to preprocess the records in the stream."];roleARN:RoleARN.toption[@ocaml.doc"The ARN of the IAM role that is used to access the AWS Lambda function."]}letmake?resourceARN=fun?roleARN->fun()->{resourceARN;roleARN}letto_valuex=structure_to_value[("ResourceARN",(Option.mapx.resourceARN~f:ResourceARN.to_value));("RoleARN",(Option.mapx.roleARN~f:RoleARN.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroleARN=(Option.map~f:RoleARN.of_xml)(Xml.childxml_arg0"RoleARN")inletresourceARN=(Option.map~f:ResourceARN.of_xml)(Xml.childxml_arg0"ResourceARN")inmake?roleARN?resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroleARN=field_mapjson__"RoleARN"RoleARN.of_jsoninletresourceARN=field_mapjson__"ResourceARN"ResourceARN.of_jsoninmake?roleARN?resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that contains the Amazon Resource Name (ARN) of the AWS Lambda function that is used to preprocess records in the stream, and the ARN of the IAM role that is used to access the AWS Lambda expression."]moduleInputStartingPosition=structtypenonrect=|NOW|TRIM_HORIZON|LAST_STOPPED_POINT|Non_static_idofstringletmakei=iletto_string=function|NOW->"NOW"|TRIM_HORIZON->"TRIM_HORIZON"|LAST_STOPPED_POINT->"LAST_STOPPED_POINT"|Non_static_ids->sletof_string=function|"NOW"->NOW|"TRIM_HORIZON"->TRIM_HORIZON|"LAST_STOPPED_POINT"->LAST_STOPPED_POINT|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 InputStartingPosition"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"InputStartingPosition"j)letto_json=simple_to_jsonto_valueendmoduleId=structtypenonrect=stringletcontext_="Id"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:50)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9_.-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Id"jletto_json=simple_to_jsonto_valueendmoduleLogStreamARN=structtypenonrect=stringletcontext_="LogStreamARN"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"arn:.*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"LogStreamARN"jletto_json=simple_to_jsonto_valueendmoduleInputParallelismUpdate=structtypenonrect={countUpdate:InputParallelismCount.toption[@ocaml.doc"Number of in-application streams to create for the specified streaming source."]}letmake?countUpdate=fun()->{countUpdate}letto_valuex=structure_to_value[("CountUpdate",(Option.mapx.countUpdate~f:InputParallelismCount.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcountUpdate=(Option.map~f:InputParallelismCount.of_xml)(Xml.childxml_arg0"CountUpdate")inmake?countUpdate()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcountUpdate=field_mapjson__"CountUpdate"InputParallelismCount.of_jsoninmake?countUpdate()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides updates to the parallelism count."]moduleInputProcessingConfigurationUpdate=structtypenonrect={inputLambdaProcessorUpdate:InputLambdaProcessorUpdate.t[@ocaml.doc"Provides update information for an InputLambdaProcessor."]}letcontext_="InputProcessingConfigurationUpdate"letmake~inputLambdaProcessorUpdate=fun()->{inputLambdaProcessorUpdate}letto_valuex=structure_to_value[("InputLambdaProcessorUpdate",(Some(InputLambdaProcessorUpdate.to_valuex.inputLambdaProcessorUpdate)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinputLambdaProcessorUpdate=InputLambdaProcessorUpdate.of_xml(Xml.child_exn~context:context_xml_arg0"InputLambdaProcessorUpdate")inmake~inputLambdaProcessorUpdate()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinputLambdaProcessorUpdate=field_map_exnjson__"InputLambdaProcessorUpdate"InputLambdaProcessorUpdate.of_jsoninmake~inputLambdaProcessorUpdate()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes updates to an InputProcessingConfiguration."]moduleInputSchemaUpdate=structtypenonrect={recordFormatUpdate:RecordFormat.toption[@ocaml.doc"Specifies the format of the records on the streaming source."];recordEncodingUpdate:RecordEncoding.toption[@ocaml.doc"Specifies the encoding of the records in the streaming source. For example, UTF-8."];recordColumnUpdates:RecordColumns.toption[@ocaml.doc"A list of RecordColumn objects. Each object describes the mapping of the streaming source element to the corresponding column in the in-application stream."]}letmake?recordFormatUpdate=fun?recordEncodingUpdate->fun?recordColumnUpdates->fun()->{recordFormatUpdate;recordEncodingUpdate;recordColumnUpdates}letto_valuex=structure_to_value[("RecordFormatUpdate",(Option.mapx.recordFormatUpdate~f:RecordFormat.to_value));("RecordEncodingUpdate",(Option.mapx.recordEncodingUpdate~f:RecordEncoding.to_value));("RecordColumnUpdates",(Option.mapx.recordColumnUpdates~f:RecordColumns.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrecordColumnUpdates=(Option.map~f:RecordColumns.of_xml)(Xml.childxml_arg0"RecordColumnUpdates")inletrecordEncodingUpdate=(Option.map~f:RecordEncoding.of_xml)(Xml.childxml_arg0"RecordEncodingUpdate")inletrecordFormatUpdate=(Option.map~f:RecordFormat.of_xml)(Xml.childxml_arg0"RecordFormatUpdate")inmake?recordColumnUpdates?recordEncodingUpdate?recordFormatUpdate()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrecordColumnUpdates=field_mapjson__"RecordColumnUpdates"RecordColumns.of_jsoninletrecordEncodingUpdate=field_mapjson__"RecordEncodingUpdate"RecordEncoding.of_jsoninletrecordFormatUpdate=field_mapjson__"RecordFormatUpdate"RecordFormat.of_jsoninmake?recordColumnUpdates?recordEncodingUpdate?recordFormatUpdate()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes updates for the application's input schema."]moduleKinesisFirehoseInputUpdate=structtypenonrect={resourceARNUpdate:ResourceARN.toption[@ocaml.doc"Amazon Resource Name (ARN) of the input Amazon Kinesis Firehose delivery stream to read."];roleARNUpdate:RoleARN.toption[@ocaml.doc"ARN of the IAM role that Amazon Kinesis Analytics can assume to access the stream on your behalf. You need to grant the necessary permissions to this role."]}letmake?resourceARNUpdate=fun?roleARNUpdate->fun()->{resourceARNUpdate;roleARNUpdate}letto_valuex=structure_to_value[("ResourceARNUpdate",(Option.mapx.resourceARNUpdate~f:ResourceARN.to_value));("RoleARNUpdate",(Option.mapx.roleARNUpdate~f:RoleARN.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroleARNUpdate=(Option.map~f:RoleARN.of_xml)(Xml.childxml_arg0"RoleARNUpdate")inletresourceARNUpdate=(Option.map~f:ResourceARN.of_xml)(Xml.childxml_arg0"ResourceARNUpdate")inmake?roleARNUpdate?resourceARNUpdate()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroleARNUpdate=field_mapjson__"RoleARNUpdate"RoleARN.of_jsoninletresourceARNUpdate=field_mapjson__"ResourceARNUpdate"ResourceARN.of_jsoninmake?roleARNUpdate?resourceARNUpdate()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"When updating application input configuration, provides information about an Amazon Kinesis Firehose delivery stream as the streaming source."]moduleKinesisStreamsInputUpdate=structtypenonrect={resourceARNUpdate:ResourceARN.toption[@ocaml.doc"Amazon Resource Name (ARN) of the input Amazon Kinesis stream to read."];roleARNUpdate:RoleARN.toption[@ocaml.doc"ARN of the IAM role that Amazon Kinesis Analytics can assume to access the stream on your behalf. You need to grant the necessary permissions to this role."]}letmake?resourceARNUpdate=fun?roleARNUpdate->fun()->{resourceARNUpdate;roleARNUpdate}letto_valuex=structure_to_value[("ResourceARNUpdate",(Option.mapx.resourceARNUpdate~f:ResourceARN.to_value));("RoleARNUpdate",(Option.mapx.roleARNUpdate~f:RoleARN.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroleARNUpdate=(Option.map~f:RoleARN.of_xml)(Xml.childxml_arg0"RoleARNUpdate")inletresourceARNUpdate=(Option.map~f:ResourceARN.of_xml)(Xml.childxml_arg0"ResourceARNUpdate")inmake?roleARNUpdate?resourceARNUpdate()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroleARNUpdate=field_mapjson__"RoleARNUpdate"RoleARN.of_jsoninletresourceARNUpdate=field_mapjson__"ResourceARNUpdate"ResourceARN.of_jsoninmake?roleARNUpdate?resourceARNUpdate()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"When updating application input configuration, provides information about an Amazon Kinesis stream as the streaming source."]moduleDestinationSchema=structtypenonrect={recordFormatType:RecordFormatType.t[@ocaml.doc"Specifies the format of the records on the output stream."]}letcontext_="DestinationSchema"letmake~recordFormatType=fun()->{recordFormatType}letto_valuex=structure_to_value[("RecordFormatType",(Some(RecordFormatType.to_valuex.recordFormatType)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrecordFormatType=RecordFormatType.of_xml(Xml.child_exn~context:context_xml_arg0"RecordFormatType")inmake~recordFormatType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrecordFormatType=field_map_exnjson__"RecordFormatType"RecordFormatType.of_jsoninmake~recordFormatType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the data format when records are written to the destination. For more information, see Configuring Application Output."]moduleKinesisFirehoseOutputUpdate=structtypenonrect={resourceARNUpdate:ResourceARN.toption[@ocaml.doc"Amazon Resource Name (ARN) of the Amazon Kinesis Firehose delivery stream to write to."];roleARNUpdate:RoleARN.toption[@ocaml.doc"ARN of the IAM role that Amazon Kinesis Analytics can assume to access the stream on your behalf. You need to grant the necessary permissions to this role."]}letmake?resourceARNUpdate=fun?roleARNUpdate->fun()->{resourceARNUpdate;roleARNUpdate}letto_valuex=structure_to_value[("ResourceARNUpdate",(Option.mapx.resourceARNUpdate~f:ResourceARN.to_value));("RoleARNUpdate",(Option.mapx.roleARNUpdate~f:RoleARN.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroleARNUpdate=(Option.map~f:RoleARN.of_xml)(Xml.childxml_arg0"RoleARNUpdate")inletresourceARNUpdate=(Option.map~f:ResourceARN.of_xml)(Xml.childxml_arg0"ResourceARNUpdate")inmake?roleARNUpdate?resourceARNUpdate()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroleARNUpdate=field_mapjson__"RoleARNUpdate"RoleARN.of_jsoninletresourceARNUpdate=field_mapjson__"ResourceARNUpdate"ResourceARN.of_jsoninmake?roleARNUpdate?resourceARNUpdate()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"When updating an output configuration using the UpdateApplication operation, provides information about an Amazon Kinesis Firehose delivery stream configured as the destination."]moduleKinesisStreamsOutputUpdate=structtypenonrect={resourceARNUpdate:ResourceARN.toption[@ocaml.doc"Amazon Resource Name (ARN) of the Amazon Kinesis stream where you want to write the output."];roleARNUpdate:RoleARN.toption[@ocaml.doc"ARN of the IAM role that Amazon Kinesis Analytics can assume to access the stream on your behalf. You need to grant the necessary permissions to this role."]}letmake?resourceARNUpdate=fun?roleARNUpdate->fun()->{resourceARNUpdate;roleARNUpdate}letto_valuex=structure_to_value[("ResourceARNUpdate",(Option.mapx.resourceARNUpdate~f:ResourceARN.to_value));("RoleARNUpdate",(Option.mapx.roleARNUpdate~f:RoleARN.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroleARNUpdate=(Option.map~f:RoleARN.of_xml)(Xml.childxml_arg0"RoleARNUpdate")inletresourceARNUpdate=(Option.map~f:ResourceARN.of_xml)(Xml.childxml_arg0"ResourceARNUpdate")inmake?roleARNUpdate?resourceARNUpdate()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroleARNUpdate=field_mapjson__"RoleARNUpdate"RoleARN.of_jsoninletresourceARNUpdate=field_mapjson__"ResourceARNUpdate"ResourceARN.of_jsoninmake?roleARNUpdate?resourceARNUpdate()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"When updating an output configuration using the UpdateApplication operation, provides information about an Amazon Kinesis stream configured as the destination."]moduleLambdaOutputUpdate=structtypenonrect={resourceARNUpdate:ResourceARN.toption[@ocaml.doc"Amazon Resource Name (ARN) of the destination Lambda function. To specify an earlier version of the Lambda function than the latest, include the Lambda function version in the Lambda function ARN. For more information about Lambda ARNs, see Example ARNs: AWS Lambda"];roleARNUpdate:RoleARN.toption[@ocaml.doc"ARN of the IAM role that Amazon Kinesis Analytics can assume to write to the destination function on your behalf. You need to grant the necessary permissions to this role."]}letmake?resourceARNUpdate=fun?roleARNUpdate->fun()->{resourceARNUpdate;roleARNUpdate}letto_valuex=structure_to_value[("ResourceARNUpdate",(Option.mapx.resourceARNUpdate~f:ResourceARN.to_value));("RoleARNUpdate",(Option.mapx.roleARNUpdate~f:RoleARN.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroleARNUpdate=(Option.map~f:RoleARN.of_xml)(Xml.childxml_arg0"RoleARNUpdate")inletresourceARNUpdate=(Option.map~f:ResourceARN.of_xml)(Xml.childxml_arg0"ResourceARNUpdate")inmake?roleARNUpdate?resourceARNUpdate()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroleARNUpdate=field_mapjson__"RoleARNUpdate"RoleARN.of_jsoninletresourceARNUpdate=field_mapjson__"ResourceARNUpdate"ResourceARN.of_jsoninmake?roleARNUpdate?resourceARNUpdate()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"When updating an output configuration using the UpdateApplication operation, provides information about an AWS Lambda function configured as the destination."]moduleInAppTableName=structtypenonrect=stringletcontext_="InAppTableName"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:32)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"InAppTableName"jletto_json=simple_to_jsonto_valueendmoduleS3ReferenceDataSourceUpdate=structtypenonrect={bucketARNUpdate:BucketARN.toption[@ocaml.doc"Amazon Resource Name (ARN) of the S3 bucket."];fileKeyUpdate:FileKey.toption[@ocaml.doc"Object key name."];referenceRoleARNUpdate:RoleARN.toption[@ocaml.doc"ARN of the IAM role that Amazon Kinesis Analytics can assume to read the Amazon S3 object and populate the in-application."]}letmake?bucketARNUpdate=fun?fileKeyUpdate->fun?referenceRoleARNUpdate->fun()->{bucketARNUpdate;fileKeyUpdate;referenceRoleARNUpdate}letto_valuex=structure_to_value[("BucketARNUpdate",(Option.mapx.bucketARNUpdate~f:BucketARN.to_value));("FileKeyUpdate",(Option.mapx.fileKeyUpdate~f:FileKey.to_value));("ReferenceRoleARNUpdate",(Option.mapx.referenceRoleARNUpdate~f:RoleARN.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreferenceRoleARNUpdate=(Option.map~f:RoleARN.of_xml)(Xml.childxml_arg0"ReferenceRoleARNUpdate")inletfileKeyUpdate=(Option.map~f:FileKey.of_xml)(Xml.childxml_arg0"FileKeyUpdate")inletbucketARNUpdate=(Option.map~f:BucketARN.of_xml)(Xml.childxml_arg0"BucketARNUpdate")inmake?referenceRoleARNUpdate?fileKeyUpdate?bucketARNUpdate()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreferenceRoleARNUpdate=field_mapjson__"ReferenceRoleARNUpdate"RoleARN.of_jsoninletfileKeyUpdate=field_mapjson__"FileKeyUpdate"FileKey.of_jsoninletbucketARNUpdate=field_mapjson__"BucketARNUpdate"BucketARN.of_jsoninmake?referenceRoleARNUpdate?fileKeyUpdate?bucketARNUpdate()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the S3 bucket name, object key name, and IAM role that Amazon Kinesis Analytics can assume to read the Amazon S3 object on your behalf and populate the in-application reference table."]moduleSourceSchema=structtypenonrect={recordFormat:RecordFormat.t[@ocaml.doc"Specifies the format of the records on the streaming source."];recordEncoding:RecordEncoding.toption[@ocaml.doc"Specifies the encoding of the records in the streaming source. For example, UTF-8."];recordColumns:RecordColumns.t[@ocaml.doc"A list of RecordColumn objects."]}letcontext_="SourceSchema"letmake?recordEncoding=fun~recordFormat->fun~recordColumns->fun()->{recordEncoding;recordFormat;recordColumns}letto_valuex=structure_to_value[("RecordFormat",(Some(RecordFormat.to_valuex.recordFormat)));("RecordEncoding",(Option.mapx.recordEncoding~f:RecordEncoding.to_value));("RecordColumns",(Some(RecordColumns.to_valuex.recordColumns)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrecordColumns=RecordColumns.of_xml(Xml.child_exn~context:context_xml_arg0"RecordColumns")inletrecordEncoding=(Option.map~f:RecordEncoding.of_xml)(Xml.childxml_arg0"RecordEncoding")inletrecordFormat=RecordFormat.of_xml(Xml.child_exn~context:context_xml_arg0"RecordFormat")inmake~recordColumns?recordEncoding~recordFormat()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrecordColumns=field_map_exnjson__"RecordColumns"RecordColumns.of_jsoninletrecordEncoding=field_mapjson__"RecordEncoding"RecordEncoding.of_jsoninletrecordFormat=field_map_exnjson__"RecordFormat"RecordFormat.of_jsoninmake~recordColumns?recordEncoding~recordFormat()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the format of the data in the streaming source, and how each data element maps to corresponding columns created in the in-application stream."]moduleInAppStreamNames=structtypenonrect=InAppStreamName.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:InAppStreamName.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:InAppStreamName.of_xml)letof_jsonj=list_of_json~kind:"InAppStreamNames"~of_json:InAppStreamName.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleInputParallelism=structtypenonrect={count:InputParallelismCount.toption[@ocaml.doc"Number of in-application streams to create. For more information, see Limits."]}letmake?count=fun()->{count}letto_valuex=structure_to_value[("Count",(Option.mapx.count~f:InputParallelismCount.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcount=(Option.map~f:InputParallelismCount.of_xml)(Xml.childxml_arg0"Count")inmake?count()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcount=field_mapjson__"Count"InputParallelismCount.of_jsoninmake?count()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the number of in-application streams to create for a given streaming source. For information about parallelism, see Configuring Application Input."]moduleInputProcessingConfigurationDescription=structtypenonrect={inputLambdaProcessorDescription:InputLambdaProcessorDescription.toption[@ocaml.doc"Provides configuration information about the associated InputLambdaProcessorDescription."]}letmake?inputLambdaProcessorDescription=fun()->{inputLambdaProcessorDescription}letto_valuex=structure_to_value[("InputLambdaProcessorDescription",(Option.mapx.inputLambdaProcessorDescription~f:InputLambdaProcessorDescription.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinputLambdaProcessorDescription=(Option.map~f:InputLambdaProcessorDescription.of_xml)(Xml.childxml_arg0"InputLambdaProcessorDescription")inmake?inputLambdaProcessorDescription()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinputLambdaProcessorDescription=field_mapjson__"InputLambdaProcessorDescription"InputLambdaProcessorDescription.of_jsoninmake?inputLambdaProcessorDescription()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides configuration information about an input processor. Currently, the only input processor available is AWS Lambda."]moduleInputStartingPositionConfiguration=structtypenonrect={inputStartingPosition:InputStartingPosition.toption[@ocaml.doc"The starting position on the stream. NOW - Start reading just after the most recent record in the stream, start at the request time stamp that the customer issued. TRIM_HORIZON - Start reading at the last untrimmed record in the stream, which is the oldest record available in the stream. This option is not available for an Amazon Kinesis Firehose delivery stream. LAST_STOPPED_POINT - Resume reading from where the application last stopped reading."]}letmake?inputStartingPosition=fun()->{inputStartingPosition}letto_valuex=structure_to_value[("InputStartingPosition",(Option.mapx.inputStartingPosition~f:InputStartingPosition.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinputStartingPosition=(Option.map~f:InputStartingPosition.of_xml)(Xml.childxml_arg0"InputStartingPosition")inmake?inputStartingPosition()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinputStartingPosition=field_mapjson__"InputStartingPosition"InputStartingPosition.of_jsoninmake?inputStartingPosition()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the point at which the application reads from the streaming source."]moduleKinesisFirehoseInputDescription=structtypenonrect={resourceARN:ResourceARN.toption[@ocaml.doc"Amazon Resource Name (ARN) of the Amazon Kinesis Firehose delivery stream."];roleARN:RoleARN.toption[@ocaml.doc"ARN of the IAM role that Amazon Kinesis Analytics assumes to access the stream."]}letmake?resourceARN=fun?roleARN->fun()->{resourceARN;roleARN}letto_valuex=structure_to_value[("ResourceARN",(Option.mapx.resourceARN~f:ResourceARN.to_value));("RoleARN",(Option.mapx.roleARN~f:RoleARN.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroleARN=(Option.map~f:RoleARN.of_xml)(Xml.childxml_arg0"RoleARN")inletresourceARN=(Option.map~f:ResourceARN.of_xml)(Xml.childxml_arg0"ResourceARN")inmake?roleARN?resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroleARN=field_mapjson__"RoleARN"RoleARN.of_jsoninletresourceARN=field_mapjson__"ResourceARN"ResourceARN.of_jsoninmake?roleARN?resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the Amazon Kinesis Firehose delivery stream that is configured as the streaming source in the application input configuration."]moduleKinesisStreamsInputDescription=structtypenonrect={resourceARN:ResourceARN.toption[@ocaml.doc"Amazon Resource Name (ARN) of the Amazon Kinesis stream."];roleARN:RoleARN.toption[@ocaml.doc"ARN of the IAM role that Amazon Kinesis Analytics can assume to access the stream."]}letmake?resourceARN=fun?roleARN->fun()->{resourceARN;roleARN}letto_valuex=structure_to_value[("ResourceARN",(Option.mapx.resourceARN~f:ResourceARN.to_value));("RoleARN",(Option.mapx.roleARN~f:RoleARN.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroleARN=(Option.map~f:RoleARN.of_xml)(Xml.childxml_arg0"RoleARN")inletresourceARN=(Option.map~f:ResourceARN.of_xml)(Xml.childxml_arg0"ResourceARN")inmake?roleARN?resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroleARN=field_mapjson__"RoleARN"RoleARN.of_jsoninletresourceARN=field_mapjson__"ResourceARN"ResourceARN.of_jsoninmake?roleARN?resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the Amazon Kinesis stream that is configured as the streaming source in the application input configuration."]moduleKinesisFirehoseOutputDescription=structtypenonrect={resourceARN:ResourceARN.toption[@ocaml.doc"Amazon Resource Name (ARN) of the Amazon Kinesis Firehose delivery stream."];roleARN:RoleARN.toption[@ocaml.doc"ARN of the IAM role that Amazon Kinesis Analytics can assume to access the stream."]}letmake?resourceARN=fun?roleARN->fun()->{resourceARN;roleARN}letto_valuex=structure_to_value[("ResourceARN",(Option.mapx.resourceARN~f:ResourceARN.to_value));("RoleARN",(Option.mapx.roleARN~f:RoleARN.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroleARN=(Option.map~f:RoleARN.of_xml)(Xml.childxml_arg0"RoleARN")inletresourceARN=(Option.map~f:ResourceARN.of_xml)(Xml.childxml_arg0"ResourceARN")inmake?roleARN?resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroleARN=field_mapjson__"RoleARN"RoleARN.of_jsoninletresourceARN=field_mapjson__"ResourceARN"ResourceARN.of_jsoninmake?roleARN?resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"For an application output, describes the Amazon Kinesis Firehose delivery stream configured as its destination."]moduleKinesisStreamsOutputDescription=structtypenonrect={resourceARN:ResourceARN.toption[@ocaml.doc"Amazon Resource Name (ARN) of the Amazon Kinesis stream."];roleARN:RoleARN.toption[@ocaml.doc"ARN of the IAM role that Amazon Kinesis Analytics can assume to access the stream."]}letmake?resourceARN=fun?roleARN->fun()->{resourceARN;roleARN}letto_valuex=structure_to_value[("ResourceARN",(Option.mapx.resourceARN~f:ResourceARN.to_value));("RoleARN",(Option.mapx.roleARN~f:RoleARN.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroleARN=(Option.map~f:RoleARN.of_xml)(Xml.childxml_arg0"RoleARN")inletresourceARN=(Option.map~f:ResourceARN.of_xml)(Xml.childxml_arg0"ResourceARN")inmake?roleARN?resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroleARN=field_mapjson__"RoleARN"RoleARN.of_jsoninletresourceARN=field_mapjson__"ResourceARN"ResourceARN.of_jsoninmake?roleARN?resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"For an application output, describes the Amazon Kinesis stream configured as its destination."]moduleLambdaOutputDescription=structtypenonrect={resourceARN:ResourceARN.toption[@ocaml.doc"Amazon Resource Name (ARN) of the destination Lambda function."];roleARN:RoleARN.toption[@ocaml.doc"ARN of the IAM role that Amazon Kinesis Analytics can assume to write to the destination function."]}letmake?resourceARN=fun?roleARN->fun()->{resourceARN;roleARN}letto_valuex=structure_to_value[("ResourceARN",(Option.mapx.resourceARN~f:ResourceARN.to_value));("RoleARN",(Option.mapx.roleARN~f:RoleARN.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroleARN=(Option.map~f:RoleARN.of_xml)(Xml.childxml_arg0"RoleARN")inletresourceARN=(Option.map~f:ResourceARN.of_xml)(Xml.childxml_arg0"ResourceARN")inmake?roleARN?resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroleARN=field_mapjson__"RoleARN"RoleARN.of_jsoninletresourceARN=field_mapjson__"ResourceARN"ResourceARN.of_jsoninmake?roleARN?resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"For an application output, describes the AWS Lambda function configured as its destination."]moduleS3ReferenceDataSourceDescription=structtypenonrect={bucketARN:BucketARN.toption[@ocaml.doc"Amazon Resource Name (ARN) of the S3 bucket."];fileKey:FileKey.toption[@ocaml.doc"Amazon S3 object key name."];referenceRoleARN:RoleARN.toption[@ocaml.doc"ARN of the IAM role that Amazon Kinesis Analytics can assume to read the Amazon S3 object on your behalf to populate the in-application reference table."]}letmake?bucketARN=fun?fileKey->fun?referenceRoleARN->fun()->{bucketARN;fileKey;referenceRoleARN}letto_valuex=structure_to_value[("BucketARN",(Option.mapx.bucketARN~f:BucketARN.to_value));("FileKey",(Option.mapx.fileKey~f:FileKey.to_value));("ReferenceRoleARN",(Option.mapx.referenceRoleARN~f:RoleARN.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreferenceRoleARN=(Option.map~f:RoleARN.of_xml)(Xml.childxml_arg0"ReferenceRoleARN")inletfileKey=(Option.map~f:FileKey.of_xml)(Xml.childxml_arg0"FileKey")inletbucketARN=(Option.map~f:BucketARN.of_xml)(Xml.childxml_arg0"BucketARN")inmake?referenceRoleARN?fileKey?bucketARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreferenceRoleARN=field_mapjson__"ReferenceRoleARN"RoleARN.of_jsoninletfileKey=field_mapjson__"FileKey"FileKey.of_jsoninletbucketARN=field_mapjson__"BucketARN"BucketARN.of_jsoninmake?referenceRoleARN?fileKey?bucketARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides the bucket name and object key name that stores the reference data."]moduleInputLambdaProcessor=structtypenonrect={resourceARN:ResourceARN.t[@ocaml.doc"The ARN of the AWS Lambda function that operates on records in the stream. To specify an earlier version of the Lambda function than the latest, include the Lambda function version in the Lambda function ARN. For more information about Lambda ARNs, see Example ARNs: AWS Lambda"];roleARN:RoleARN.t[@ocaml.doc"The ARN of the IAM role that is used to access the AWS Lambda function."]}letcontext_="InputLambdaProcessor"letmake~resourceARN=fun~roleARN->fun()->{resourceARN;roleARN}letto_valuex=structure_to_value[("ResourceARN",(Some(ResourceARN.to_valuex.resourceARN)));("RoleARN",(Some(RoleARN.to_valuex.roleARN)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroleARN=RoleARN.of_xml(Xml.child_exn~context:context_xml_arg0"RoleARN")inletresourceARN=ResourceARN.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceARN")inmake~roleARN~resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroleARN=field_map_exnjson__"RoleARN"RoleARN.of_jsoninletresourceARN=field_map_exnjson__"ResourceARN"ResourceARN.of_jsoninmake~roleARN~resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that contains the Amazon Resource Name (ARN) of the AWS Lambda function that is used to preprocess records in the stream, and the ARN of the IAM role that is used to access the AWS Lambda function."]moduleCloudWatchLoggingOptionUpdate=structtypenonrect={cloudWatchLoggingOptionId:Id.t[@ocaml.doc"ID of the CloudWatch logging option to update"];logStreamARNUpdate:LogStreamARN.toption[@ocaml.doc"ARN of the CloudWatch log to receive application messages."];roleARNUpdate:RoleARN.toption[@ocaml.doc"IAM ARN of the role to use to send application messages. Note: To write application messages to CloudWatch, the IAM role used must have the PutLogEvents policy action enabled."]}letcontext_="CloudWatchLoggingOptionUpdate"letmake?logStreamARNUpdate=fun?roleARNUpdate->fun~cloudWatchLoggingOptionId->fun()->{logStreamARNUpdate;roleARNUpdate;cloudWatchLoggingOptionId}letto_valuex=structure_to_value[("CloudWatchLoggingOptionId",(Some(Id.to_valuex.cloudWatchLoggingOptionId)));("LogStreamARNUpdate",(Option.mapx.logStreamARNUpdate~f:LogStreamARN.to_value));("RoleARNUpdate",(Option.mapx.roleARNUpdate~f:RoleARN.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroleARNUpdate=(Option.map~f:RoleARN.of_xml)(Xml.childxml_arg0"RoleARNUpdate")inletlogStreamARNUpdate=(Option.map~f:LogStreamARN.of_xml)(Xml.childxml_arg0"LogStreamARNUpdate")inletcloudWatchLoggingOptionId=Id.of_xml(Xml.child_exn~context:context_xml_arg0"CloudWatchLoggingOptionId")inmake?roleARNUpdate?logStreamARNUpdate~cloudWatchLoggingOptionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroleARNUpdate=field_mapjson__"RoleARNUpdate"RoleARN.of_jsoninletlogStreamARNUpdate=field_mapjson__"LogStreamARNUpdate"LogStreamARN.of_jsoninletcloudWatchLoggingOptionId=field_map_exnjson__"CloudWatchLoggingOptionId"Id.of_jsoninmake?roleARNUpdate?logStreamARNUpdate~cloudWatchLoggingOptionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes CloudWatch logging option updates."]moduleInputUpdate=structtypenonrect={inputId:Id.t[@ocaml.doc"Input ID of the application input to be updated."];namePrefixUpdate:InAppStreamName.toption[@ocaml.doc"Name prefix for in-application streams that Amazon Kinesis Analytics creates for the specific streaming source."];inputProcessingConfigurationUpdate:InputProcessingConfigurationUpdate.toption[@ocaml.doc"Describes updates for an input processing configuration."];kinesisStreamsInputUpdate:KinesisStreamsInputUpdate.toption[@ocaml.doc"If an Amazon Kinesis stream is the streaming source to be updated, provides an updated stream Amazon Resource Name (ARN) and IAM role ARN."];kinesisFirehoseInputUpdate:KinesisFirehoseInputUpdate.toption[@ocaml.doc"If an Amazon Kinesis Firehose delivery stream is the streaming source to be updated, provides an updated stream ARN and IAM role ARN."];inputSchemaUpdate:InputSchemaUpdate.toption[@ocaml.doc"Describes the data format on the streaming source, and how record elements on the streaming source map to columns of the in-application stream that is created."];inputParallelismUpdate:InputParallelismUpdate.toption[@ocaml.doc"Describes the parallelism updates (the number in-application streams Amazon Kinesis Analytics creates for the specific streaming source)."]}letcontext_="InputUpdate"letmake?namePrefixUpdate=fun?inputProcessingConfigurationUpdate->fun?kinesisStreamsInputUpdate->fun?kinesisFirehoseInputUpdate->fun?inputSchemaUpdate->fun?inputParallelismUpdate->fun~inputId->fun()->{namePrefixUpdate;inputProcessingConfigurationUpdate;kinesisStreamsInputUpdate;kinesisFirehoseInputUpdate;inputSchemaUpdate;inputParallelismUpdate;inputId}letto_valuex=structure_to_value[("InputId",(Some(Id.to_valuex.inputId)));("NamePrefixUpdate",(Option.mapx.namePrefixUpdate~f:InAppStreamName.to_value));("InputProcessingConfigurationUpdate",(Option.mapx.inputProcessingConfigurationUpdate~f:InputProcessingConfigurationUpdate.to_value));("KinesisStreamsInputUpdate",(Option.mapx.kinesisStreamsInputUpdate~f:KinesisStreamsInputUpdate.to_value));("KinesisFirehoseInputUpdate",(Option.mapx.kinesisFirehoseInputUpdate~f:KinesisFirehoseInputUpdate.to_value));("InputSchemaUpdate",(Option.mapx.inputSchemaUpdate~f:InputSchemaUpdate.to_value));("InputParallelismUpdate",(Option.mapx.inputParallelismUpdate~f:InputParallelismUpdate.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinputParallelismUpdate=(Option.map~f:InputParallelismUpdate.of_xml)(Xml.childxml_arg0"InputParallelismUpdate")inletinputSchemaUpdate=(Option.map~f:InputSchemaUpdate.of_xml)(Xml.childxml_arg0"InputSchemaUpdate")inletkinesisFirehoseInputUpdate=(Option.map~f:KinesisFirehoseInputUpdate.of_xml)(Xml.childxml_arg0"KinesisFirehoseInputUpdate")inletkinesisStreamsInputUpdate=(Option.map~f:KinesisStreamsInputUpdate.of_xml)(Xml.childxml_arg0"KinesisStreamsInputUpdate")inletinputProcessingConfigurationUpdate=(Option.map~f:InputProcessingConfigurationUpdate.of_xml)(Xml.childxml_arg0"InputProcessingConfigurationUpdate")inletnamePrefixUpdate=(Option.map~f:InAppStreamName.of_xml)(Xml.childxml_arg0"NamePrefixUpdate")inletinputId=Id.of_xml(Xml.child_exn~context:context_xml_arg0"InputId")inmake?inputParallelismUpdate?inputSchemaUpdate?kinesisFirehoseInputUpdate?kinesisStreamsInputUpdate?inputProcessingConfigurationUpdate?namePrefixUpdate~inputId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinputParallelismUpdate=field_mapjson__"InputParallelismUpdate"InputParallelismUpdate.of_jsoninletinputSchemaUpdate=field_mapjson__"InputSchemaUpdate"InputSchemaUpdate.of_jsoninletkinesisFirehoseInputUpdate=field_mapjson__"KinesisFirehoseInputUpdate"KinesisFirehoseInputUpdate.of_jsoninletkinesisStreamsInputUpdate=field_mapjson__"KinesisStreamsInputUpdate"KinesisStreamsInputUpdate.of_jsoninletinputProcessingConfigurationUpdate=field_mapjson__"InputProcessingConfigurationUpdate"InputProcessingConfigurationUpdate.of_jsoninletnamePrefixUpdate=field_mapjson__"NamePrefixUpdate"InAppStreamName.of_jsoninletinputId=field_map_exnjson__"InputId"Id.of_jsoninmake?inputParallelismUpdate?inputSchemaUpdate?kinesisFirehoseInputUpdate?kinesisStreamsInputUpdate?inputProcessingConfigurationUpdate?namePrefixUpdate~inputId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes updates to a specific input configuration (identified by the InputId of an application)."]moduleOutputUpdate=structtypenonrect={outputId:Id.t[@ocaml.doc"Identifies the specific output configuration that you want to update."];nameUpdate:InAppStreamName.toption[@ocaml.doc"If you want to specify a different in-application stream for this output configuration, use this field to specify the new in-application stream name."];kinesisStreamsOutputUpdate:KinesisStreamsOutputUpdate.toption[@ocaml.doc"Describes an Amazon Kinesis stream as the destination for the output."];kinesisFirehoseOutputUpdate:KinesisFirehoseOutputUpdate.toption[@ocaml.doc"Describes an Amazon Kinesis Firehose delivery stream as the destination for the output."];lambdaOutputUpdate:LambdaOutputUpdate.toption[@ocaml.doc"Describes an AWS Lambda function as the destination for the output."];destinationSchemaUpdate:DestinationSchema.toption[@ocaml.doc"Describes the data format when records are written to the destination. For more information, see Configuring Application Output."]}letcontext_="OutputUpdate"letmake?nameUpdate=fun?kinesisStreamsOutputUpdate->fun?kinesisFirehoseOutputUpdate->fun?lambdaOutputUpdate->fun?destinationSchemaUpdate->fun~outputId->fun()->{nameUpdate;kinesisStreamsOutputUpdate;kinesisFirehoseOutputUpdate;lambdaOutputUpdate;destinationSchemaUpdate;outputId}letto_valuex=structure_to_value[("OutputId",(Some(Id.to_valuex.outputId)));("NameUpdate",(Option.mapx.nameUpdate~f:InAppStreamName.to_value));("KinesisStreamsOutputUpdate",(Option.mapx.kinesisStreamsOutputUpdate~f:KinesisStreamsOutputUpdate.to_value));("KinesisFirehoseOutputUpdate",(Option.mapx.kinesisFirehoseOutputUpdate~f:KinesisFirehoseOutputUpdate.to_value));("LambdaOutputUpdate",(Option.mapx.lambdaOutputUpdate~f:LambdaOutputUpdate.to_value));("DestinationSchemaUpdate",(Option.mapx.destinationSchemaUpdate~f:DestinationSchema.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdestinationSchemaUpdate=(Option.map~f:DestinationSchema.of_xml)(Xml.childxml_arg0"DestinationSchemaUpdate")inletlambdaOutputUpdate=(Option.map~f:LambdaOutputUpdate.of_xml)(Xml.childxml_arg0"LambdaOutputUpdate")inletkinesisFirehoseOutputUpdate=(Option.map~f:KinesisFirehoseOutputUpdate.of_xml)(Xml.childxml_arg0"KinesisFirehoseOutputUpdate")inletkinesisStreamsOutputUpdate=(Option.map~f:KinesisStreamsOutputUpdate.of_xml)(Xml.childxml_arg0"KinesisStreamsOutputUpdate")inletnameUpdate=(Option.map~f:InAppStreamName.of_xml)(Xml.childxml_arg0"NameUpdate")inletoutputId=Id.of_xml(Xml.child_exn~context:context_xml_arg0"OutputId")inmake?destinationSchemaUpdate?lambdaOutputUpdate?kinesisFirehoseOutputUpdate?kinesisStreamsOutputUpdate?nameUpdate~outputId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdestinationSchemaUpdate=field_mapjson__"DestinationSchemaUpdate"DestinationSchema.of_jsoninletlambdaOutputUpdate=field_mapjson__"LambdaOutputUpdate"LambdaOutputUpdate.of_jsoninletkinesisFirehoseOutputUpdate=field_mapjson__"KinesisFirehoseOutputUpdate"KinesisFirehoseOutputUpdate.of_jsoninletkinesisStreamsOutputUpdate=field_mapjson__"KinesisStreamsOutputUpdate"KinesisStreamsOutputUpdate.of_jsoninletnameUpdate=field_mapjson__"NameUpdate"InAppStreamName.of_jsoninletoutputId=field_map_exnjson__"OutputId"Id.of_jsoninmake?destinationSchemaUpdate?lambdaOutputUpdate?kinesisFirehoseOutputUpdate?kinesisStreamsOutputUpdate?nameUpdate~outputId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes updates to the output configuration identified by the OutputId."]moduleReferenceDataSourceUpdate=structtypenonrect={referenceId:Id.t[@ocaml.doc"ID of the reference data source being updated. You can use the DescribeApplication operation to get this value."];tableNameUpdate:InAppTableName.toption[@ocaml.doc"In-application table name that is created by this update."];s3ReferenceDataSourceUpdate:S3ReferenceDataSourceUpdate.toption[@ocaml.doc"Describes the S3 bucket name, object key name, and IAM role that Amazon Kinesis Analytics can assume to read the Amazon S3 object on your behalf and populate the in-application reference table."];referenceSchemaUpdate:SourceSchema.toption[@ocaml.doc"Describes the format of the data in the streaming source, and how each data element maps to corresponding columns created in the in-application stream."]}letcontext_="ReferenceDataSourceUpdate"letmake?tableNameUpdate=fun?s3ReferenceDataSourceUpdate->fun?referenceSchemaUpdate->fun~referenceId->fun()->{tableNameUpdate;s3ReferenceDataSourceUpdate;referenceSchemaUpdate;referenceId}letto_valuex=structure_to_value[("ReferenceId",(Some(Id.to_valuex.referenceId)));("TableNameUpdate",(Option.mapx.tableNameUpdate~f:InAppTableName.to_value));("S3ReferenceDataSourceUpdate",(Option.mapx.s3ReferenceDataSourceUpdate~f:S3ReferenceDataSourceUpdate.to_value));("ReferenceSchemaUpdate",(Option.mapx.referenceSchemaUpdate~f:SourceSchema.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreferenceSchemaUpdate=(Option.map~f:SourceSchema.of_xml)(Xml.childxml_arg0"ReferenceSchemaUpdate")inlets3ReferenceDataSourceUpdate=(Option.map~f:S3ReferenceDataSourceUpdate.of_xml)(Xml.childxml_arg0"S3ReferenceDataSourceUpdate")inlettableNameUpdate=(Option.map~f:InAppTableName.of_xml)(Xml.childxml_arg0"TableNameUpdate")inletreferenceId=Id.of_xml(Xml.child_exn~context:context_xml_arg0"ReferenceId")inmake?referenceSchemaUpdate?s3ReferenceDataSourceUpdate?tableNameUpdate~referenceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreferenceSchemaUpdate=field_mapjson__"ReferenceSchemaUpdate"SourceSchema.of_jsoninlets3ReferenceDataSourceUpdate=field_mapjson__"S3ReferenceDataSourceUpdate"S3ReferenceDataSourceUpdate.of_jsoninlettableNameUpdate=field_mapjson__"TableNameUpdate"InAppTableName.of_jsoninletreferenceId=field_map_exnjson__"ReferenceId"Id.of_jsoninmake?referenceSchemaUpdate?s3ReferenceDataSourceUpdate?tableNameUpdate~referenceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"When you update a reference data source configuration for an application, this object provides all the updated values (such as the source bucket name and object key name), the in-application table name that is created, and updated mapping information that maps the data in the Amazon S3 object to the in-application reference table that is created."]moduleTagKey=structtypenonrect=stringletcontext_="TagKey"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagKey"jletto_json=simple_to_jsonto_valueendmoduleTagValue=structtypenonrect=stringletcontext_="TagValue"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagValue"jletto_json=simple_to_jsonto_valueendmoduleApplicationName=structtypenonrect=stringletcontext_="ApplicationName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9_.-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ApplicationName"jletto_json=simple_to_jsonto_valueendmoduleApplicationStatus=structtypenonrect=|DELETING|STARTING|STOPPING|READY|RUNNING|UPDATING|Non_static_idofstringletmakei=iletto_string=function|DELETING->"DELETING"|STARTING->"STARTING"|STOPPING->"STOPPING"|READY->"READY"|RUNNING->"RUNNING"|UPDATING->"UPDATING"|Non_static_ids->sletof_string=function|"DELETING"->DELETING|"STARTING"->STARTING|"STOPPING"->STOPPING|"READY"->READY|"RUNNING"->RUNNING|"UPDATING"->UPDATING|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 ApplicationStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ApplicationStatus"j)letto_json=simple_to_jsonto_valueendmoduleParsedInputRecordField=structtypenonrect=stringletcontext_="ParsedInputRecordField"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:"ParsedInputRecordField"jletto_json=simple_to_jsonto_valueendmoduleProcessedInputRecord=structtypenonrect=stringletcontext_="ProcessedInputRecord"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:"ProcessedInputRecord"jletto_json=simple_to_jsonto_valueendmoduleRawInputRecord=structtypenonrect=stringletcontext_="RawInputRecord"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:"RawInputRecord"jletto_json=simple_to_jsonto_valueendmoduleCloudWatchLoggingOptionDescription=structtypenonrect={cloudWatchLoggingOptionId:Id.toption[@ocaml.doc"ID of the CloudWatch logging option description."];logStreamARN:LogStreamARN.toption[@ocaml.doc"ARN of the CloudWatch log to receive application messages."];roleARN:RoleARN.toption[@ocaml.doc"IAM ARN of the role to use to send application messages. Note: To write application messages to CloudWatch, the IAM role used must have the PutLogEvents policy action enabled."]}letmake?cloudWatchLoggingOptionId=fun?logStreamARN->fun?roleARN->fun()->{cloudWatchLoggingOptionId;logStreamARN;roleARN}letto_valuex=structure_to_value[("CloudWatchLoggingOptionId",(Option.mapx.cloudWatchLoggingOptionId~f:Id.to_value));("LogStreamARN",(Option.mapx.logStreamARN~f:LogStreamARN.to_value));("RoleARN",(Option.mapx.roleARN~f:RoleARN.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroleARN=(Option.map~f:RoleARN.of_xml)(Xml.childxml_arg0"RoleARN")inletlogStreamARN=(Option.map~f:LogStreamARN.of_xml)(Xml.childxml_arg0"LogStreamARN")inletcloudWatchLoggingOptionId=(Option.map~f:Id.of_xml)(Xml.childxml_arg0"CloudWatchLoggingOptionId")inmake?roleARN?logStreamARN?cloudWatchLoggingOptionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroleARN=field_mapjson__"RoleARN"RoleARN.of_jsoninletlogStreamARN=field_mapjson__"LogStreamARN"LogStreamARN.of_jsoninletcloudWatchLoggingOptionId=field_mapjson__"CloudWatchLoggingOptionId"Id.of_jsoninmake?roleARN?logStreamARN?cloudWatchLoggingOptionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Description of the CloudWatch logging option."]moduleInputDescription=structtypenonrect={inputId:Id.toption[@ocaml.doc"Input ID associated with the application input. This is the ID that Amazon Kinesis Analytics assigns to each input configuration you add to your application."];namePrefix:InAppStreamName.toption[@ocaml.doc"In-application name prefix."];inAppStreamNames:InAppStreamNames.toption[@ocaml.doc"Returns the in-application stream names that are mapped to the stream source."];inputProcessingConfigurationDescription:InputProcessingConfigurationDescription.toption[@ocaml.doc"The description of the preprocessor that executes on records in this input before the application's code is run."];kinesisStreamsInputDescription:KinesisStreamsInputDescription.toption[@ocaml.doc"If an Amazon Kinesis stream is configured as streaming source, provides Amazon Kinesis stream's Amazon Resource Name (ARN) and an IAM role that enables Amazon Kinesis Analytics to access the stream on your behalf."];kinesisFirehoseInputDescription:KinesisFirehoseInputDescription.toption[@ocaml.doc"If an Amazon Kinesis Firehose delivery stream is configured as a streaming source, provides the delivery stream's ARN and an IAM role that enables Amazon Kinesis Analytics to access the stream on your behalf."];inputSchema:SourceSchema.toption[@ocaml.doc"Describes the format of the data in the streaming source, and how each data element maps to corresponding columns in the in-application stream that is being created."];inputParallelism:InputParallelism.toption[@ocaml.doc"Describes the configured parallelism (number of in-application streams mapped to the streaming source)."];inputStartingPositionConfiguration:InputStartingPositionConfiguration.toption[@ocaml.doc"Point at which the application is configured to read from the input stream."]}letmake?inputId=fun?namePrefix->fun?inAppStreamNames->fun?inputProcessingConfigurationDescription->fun?kinesisStreamsInputDescription->fun?kinesisFirehoseInputDescription->fun?inputSchema->fun?inputParallelism->fun?inputStartingPositionConfiguration->fun()->{inputId;namePrefix;inAppStreamNames;inputProcessingConfigurationDescription;kinesisStreamsInputDescription;kinesisFirehoseInputDescription;inputSchema;inputParallelism;inputStartingPositionConfiguration}letto_valuex=structure_to_value[("InputId",(Option.mapx.inputId~f:Id.to_value));("NamePrefix",(Option.mapx.namePrefix~f:InAppStreamName.to_value));("InAppStreamNames",(Option.mapx.inAppStreamNames~f:InAppStreamNames.to_value));("InputProcessingConfigurationDescription",(Option.mapx.inputProcessingConfigurationDescription~f:InputProcessingConfigurationDescription.to_value));("KinesisStreamsInputDescription",(Option.mapx.kinesisStreamsInputDescription~f:KinesisStreamsInputDescription.to_value));("KinesisFirehoseInputDescription",(Option.mapx.kinesisFirehoseInputDescription~f:KinesisFirehoseInputDescription.to_value));("InputSchema",(Option.mapx.inputSchema~f:SourceSchema.to_value));("InputParallelism",(Option.mapx.inputParallelism~f:InputParallelism.to_value));("InputStartingPositionConfiguration",(Option.mapx.inputStartingPositionConfiguration~f:InputStartingPositionConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinputStartingPositionConfiguration=(Option.map~f:InputStartingPositionConfiguration.of_xml)(Xml.childxml_arg0"InputStartingPositionConfiguration")inletinputParallelism=(Option.map~f:InputParallelism.of_xml)(Xml.childxml_arg0"InputParallelism")inletinputSchema=(Option.map~f:SourceSchema.of_xml)(Xml.childxml_arg0"InputSchema")inletkinesisFirehoseInputDescription=(Option.map~f:KinesisFirehoseInputDescription.of_xml)(Xml.childxml_arg0"KinesisFirehoseInputDescription")inletkinesisStreamsInputDescription=(Option.map~f:KinesisStreamsInputDescription.of_xml)(Xml.childxml_arg0"KinesisStreamsInputDescription")inletinputProcessingConfigurationDescription=(Option.map~f:InputProcessingConfigurationDescription.of_xml)(Xml.childxml_arg0"InputProcessingConfigurationDescription")inletinAppStreamNames=(Option.map~f:InAppStreamNames.of_xml)(Xml.childxml_arg0"InAppStreamNames")inletnamePrefix=(Option.map~f:InAppStreamName.of_xml)(Xml.childxml_arg0"NamePrefix")inletinputId=(Option.map~f:Id.of_xml)(Xml.childxml_arg0"InputId")inmake?inputStartingPositionConfiguration?inputParallelism?inputSchema?kinesisFirehoseInputDescription?kinesisStreamsInputDescription?inputProcessingConfigurationDescription?inAppStreamNames?namePrefix?inputId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinputStartingPositionConfiguration=field_mapjson__"InputStartingPositionConfiguration"InputStartingPositionConfiguration.of_jsoninletinputParallelism=field_mapjson__"InputParallelism"InputParallelism.of_jsoninletinputSchema=field_mapjson__"InputSchema"SourceSchema.of_jsoninletkinesisFirehoseInputDescription=field_mapjson__"KinesisFirehoseInputDescription"KinesisFirehoseInputDescription.of_jsoninletkinesisStreamsInputDescription=field_mapjson__"KinesisStreamsInputDescription"KinesisStreamsInputDescription.of_jsoninletinputProcessingConfigurationDescription=field_mapjson__"InputProcessingConfigurationDescription"InputProcessingConfigurationDescription.of_jsoninletinAppStreamNames=field_mapjson__"InAppStreamNames"InAppStreamNames.of_jsoninletnamePrefix=field_mapjson__"NamePrefix"InAppStreamName.of_jsoninletinputId=field_mapjson__"InputId"Id.of_jsoninmake?inputStartingPositionConfiguration?inputParallelism?inputSchema?kinesisFirehoseInputDescription?kinesisStreamsInputDescription?inputProcessingConfigurationDescription?inAppStreamNames?namePrefix?inputId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the application input configuration. For more information, see Configuring Application Input."]moduleOutputDescription=structtypenonrect={outputId:Id.toption[@ocaml.doc"A unique identifier for the output configuration."];name:InAppStreamName.toption[@ocaml.doc"Name of the in-application stream configured as output."];kinesisStreamsOutputDescription:KinesisStreamsOutputDescription.toption[@ocaml.doc"Describes Amazon Kinesis stream configured as the destination where output is written."];kinesisFirehoseOutputDescription:KinesisFirehoseOutputDescription.toption[@ocaml.doc"Describes the Amazon Kinesis Firehose delivery stream configured as the destination where output is written."];lambdaOutputDescription:LambdaOutputDescription.toption[@ocaml.doc"Describes the AWS Lambda function configured as the destination where output is written."];destinationSchema:DestinationSchema.toption[@ocaml.doc"Data format used for writing data to the destination."]}letmake?outputId=fun?name->fun?kinesisStreamsOutputDescription->fun?kinesisFirehoseOutputDescription->fun?lambdaOutputDescription->fun?destinationSchema->fun()->{outputId;name;kinesisStreamsOutputDescription;kinesisFirehoseOutputDescription;lambdaOutputDescription;destinationSchema}letto_valuex=structure_to_value[("OutputId",(Option.mapx.outputId~f:Id.to_value));("Name",(Option.mapx.name~f:InAppStreamName.to_value));("KinesisStreamsOutputDescription",(Option.mapx.kinesisStreamsOutputDescription~f:KinesisStreamsOutputDescription.to_value));("KinesisFirehoseOutputDescription",(Option.mapx.kinesisFirehoseOutputDescription~f:KinesisFirehoseOutputDescription.to_value));("LambdaOutputDescription",(Option.mapx.lambdaOutputDescription~f:LambdaOutputDescription.to_value));("DestinationSchema",(Option.mapx.destinationSchema~f:DestinationSchema.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdestinationSchema=(Option.map~f:DestinationSchema.of_xml)(Xml.childxml_arg0"DestinationSchema")inletlambdaOutputDescription=(Option.map~f:LambdaOutputDescription.of_xml)(Xml.childxml_arg0"LambdaOutputDescription")inletkinesisFirehoseOutputDescription=(Option.map~f:KinesisFirehoseOutputDescription.of_xml)(Xml.childxml_arg0"KinesisFirehoseOutputDescription")inletkinesisStreamsOutputDescription=(Option.map~f:KinesisStreamsOutputDescription.of_xml)(Xml.childxml_arg0"KinesisStreamsOutputDescription")inletname=(Option.map~f:InAppStreamName.of_xml)(Xml.childxml_arg0"Name")inletoutputId=(Option.map~f:Id.of_xml)(Xml.childxml_arg0"OutputId")inmake?destinationSchema?lambdaOutputDescription?kinesisFirehoseOutputDescription?kinesisStreamsOutputDescription?name?outputId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdestinationSchema=field_mapjson__"DestinationSchema"DestinationSchema.of_jsoninletlambdaOutputDescription=field_mapjson__"LambdaOutputDescription"LambdaOutputDescription.of_jsoninletkinesisFirehoseOutputDescription=field_mapjson__"KinesisFirehoseOutputDescription"KinesisFirehoseOutputDescription.of_jsoninletkinesisStreamsOutputDescription=field_mapjson__"KinesisStreamsOutputDescription"KinesisStreamsOutputDescription.of_jsoninletname=field_mapjson__"Name"InAppStreamName.of_jsoninletoutputId=field_mapjson__"OutputId"Id.of_jsoninmake?destinationSchema?lambdaOutputDescription?kinesisFirehoseOutputDescription?kinesisStreamsOutputDescription?name?outputId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the application output configuration, which includes the in-application stream name and the destination where the stream data is written. The destination can be an Amazon Kinesis stream or an Amazon Kinesis Firehose delivery stream."]moduleReferenceDataSourceDescription=structtypenonrect={referenceId:Id.toption[@ocaml.doc"ID of the reference data source. This is the ID that Amazon Kinesis Analytics assigns when you add the reference data source to your application using the AddApplicationReferenceDataSource operation."];tableName:InAppTableName.toption[@ocaml.doc"The in-application table name created by the specific reference data source configuration."];s3ReferenceDataSourceDescription:S3ReferenceDataSourceDescription.toption[@ocaml.doc"Provides the S3 bucket name, the object key name that contains the reference data. It also provides the Amazon Resource Name (ARN) of the IAM role that Amazon Kinesis Analytics can assume to read the Amazon S3 object and populate the in-application reference table."];referenceSchema:SourceSchema.toption[@ocaml.doc"Describes the format of the data in the streaming source, and how each data element maps to corresponding columns created in the in-application stream."]}letmake?referenceId=fun?tableName->fun?s3ReferenceDataSourceDescription->fun?referenceSchema->fun()->{referenceId;tableName;s3ReferenceDataSourceDescription;referenceSchema}letto_valuex=structure_to_value[("ReferenceId",(Option.mapx.referenceId~f:Id.to_value));("TableName",(Option.mapx.tableName~f:InAppTableName.to_value));("S3ReferenceDataSourceDescription",(Option.mapx.s3ReferenceDataSourceDescription~f:S3ReferenceDataSourceDescription.to_value));("ReferenceSchema",(Option.mapx.referenceSchema~f:SourceSchema.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreferenceSchema=(Option.map~f:SourceSchema.of_xml)(Xml.childxml_arg0"ReferenceSchema")inlets3ReferenceDataSourceDescription=(Option.map~f:S3ReferenceDataSourceDescription.of_xml)(Xml.childxml_arg0"S3ReferenceDataSourceDescription")inlettableName=(Option.map~f:InAppTableName.of_xml)(Xml.childxml_arg0"TableName")inletreferenceId=(Option.map~f:Id.of_xml)(Xml.childxml_arg0"ReferenceId")inmake?referenceSchema?s3ReferenceDataSourceDescription?tableName?referenceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreferenceSchema=field_mapjson__"ReferenceSchema"SourceSchema.of_jsoninlets3ReferenceDataSourceDescription=field_mapjson__"S3ReferenceDataSourceDescription"S3ReferenceDataSourceDescription.of_jsoninlettableName=field_mapjson__"TableName"InAppTableName.of_jsoninletreferenceId=field_mapjson__"ReferenceId"Id.of_jsoninmake?referenceSchema?s3ReferenceDataSourceDescription?tableName?referenceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the reference data source configured for an application."]moduleInputProcessingConfiguration=structtypenonrect={inputLambdaProcessor:InputLambdaProcessor.t[@ocaml.doc"The InputLambdaProcessor that is used to preprocess the records in the stream before being processed by your application code."]}letcontext_="InputProcessingConfiguration"letmake~inputLambdaProcessor=fun()->{inputLambdaProcessor}letto_valuex=structure_to_value[("InputLambdaProcessor",(Some(InputLambdaProcessor.to_valuex.inputLambdaProcessor)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinputLambdaProcessor=InputLambdaProcessor.of_xml(Xml.child_exn~context:context_xml_arg0"InputLambdaProcessor")inmake~inputLambdaProcessor()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinputLambdaProcessor=field_map_exnjson__"InputLambdaProcessor"InputLambdaProcessor.of_jsoninmake~inputLambdaProcessor()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides a description of a processor that is used to preprocess the records in the stream before being processed by your application code. Currently, the only input processor available is AWS Lambda."]moduleKinesisFirehoseInput=structtypenonrect={resourceARN:ResourceARN.t[@ocaml.doc"ARN of the input delivery stream."];roleARN:RoleARN.t[@ocaml.doc"ARN of the IAM role that Amazon Kinesis Analytics can assume to access the stream on your behalf. You need to make sure that the role has the necessary permissions to access the stream."]}letcontext_="KinesisFirehoseInput"letmake~resourceARN=fun~roleARN->fun()->{resourceARN;roleARN}letto_valuex=structure_to_value[("ResourceARN",(Some(ResourceARN.to_valuex.resourceARN)));("RoleARN",(Some(RoleARN.to_valuex.roleARN)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroleARN=RoleARN.of_xml(Xml.child_exn~context:context_xml_arg0"RoleARN")inletresourceARN=ResourceARN.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceARN")inmake~roleARN~resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroleARN=field_map_exnjson__"RoleARN"RoleARN.of_jsoninletresourceARN=field_map_exnjson__"ResourceARN"ResourceARN.of_jsoninmake~roleARN~resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Identifies an Amazon Kinesis Firehose delivery stream as the streaming source. You provide the delivery stream's Amazon Resource Name (ARN) and an IAM role ARN that enables Amazon Kinesis Analytics to access the stream on your behalf."]moduleKinesisStreamsInput=structtypenonrect={resourceARN:ResourceARN.t[@ocaml.doc"ARN of the input Amazon Kinesis stream to read."];roleARN:RoleARN.t[@ocaml.doc"ARN of the IAM role that Amazon Kinesis Analytics can assume to access the stream on your behalf. You need to grant the necessary permissions to this role."]}letcontext_="KinesisStreamsInput"letmake~resourceARN=fun~roleARN->fun()->{resourceARN;roleARN}letto_valuex=structure_to_value[("ResourceARN",(Some(ResourceARN.to_valuex.resourceARN)));("RoleARN",(Some(RoleARN.to_valuex.roleARN)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroleARN=RoleARN.of_xml(Xml.child_exn~context:context_xml_arg0"RoleARN")inletresourceARN=ResourceARN.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceARN")inmake~roleARN~resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroleARN=field_map_exnjson__"RoleARN"RoleARN.of_jsoninletresourceARN=field_map_exnjson__"ResourceARN"ResourceARN.of_jsoninmake~roleARN~resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Identifies an Amazon Kinesis stream as the streaming source. You provide the stream's Amazon Resource Name (ARN) and an IAM role ARN that enables Amazon Kinesis Analytics to access the stream on your behalf."]moduleKinesisFirehoseOutput=structtypenonrect={resourceARN:ResourceARN.t[@ocaml.doc"ARN of the destination Amazon Kinesis Firehose delivery stream to write to."];roleARN:RoleARN.t[@ocaml.doc"ARN of the IAM role that Amazon Kinesis Analytics can assume to write to the destination stream on your behalf. You need to grant the necessary permissions to this role."]}letcontext_="KinesisFirehoseOutput"letmake~resourceARN=fun~roleARN->fun()->{resourceARN;roleARN}letto_valuex=structure_to_value[("ResourceARN",(Some(ResourceARN.to_valuex.resourceARN)));("RoleARN",(Some(RoleARN.to_valuex.roleARN)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroleARN=RoleARN.of_xml(Xml.child_exn~context:context_xml_arg0"RoleARN")inletresourceARN=ResourceARN.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceARN")inmake~roleARN~resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroleARN=field_map_exnjson__"RoleARN"RoleARN.of_jsoninletresourceARN=field_map_exnjson__"ResourceARN"ResourceARN.of_jsoninmake~roleARN~resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"When configuring application output, identifies an Amazon Kinesis Firehose delivery stream as the destination. You provide the stream Amazon Resource Name (ARN) and an IAM role that enables Amazon Kinesis Analytics to write to the stream on your behalf."]moduleKinesisStreamsOutput=structtypenonrect={resourceARN:ResourceARN.t[@ocaml.doc"ARN of the destination Amazon Kinesis stream to write to."];roleARN:RoleARN.t[@ocaml.doc"ARN of the IAM role that Amazon Kinesis Analytics can assume to write to the destination stream on your behalf. You need to grant the necessary permissions to this role."]}letcontext_="KinesisStreamsOutput"letmake~resourceARN=fun~roleARN->fun()->{resourceARN;roleARN}letto_valuex=structure_to_value[("ResourceARN",(Some(ResourceARN.to_valuex.resourceARN)));("RoleARN",(Some(RoleARN.to_valuex.roleARN)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroleARN=RoleARN.of_xml(Xml.child_exn~context:context_xml_arg0"RoleARN")inletresourceARN=ResourceARN.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceARN")inmake~roleARN~resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroleARN=field_map_exnjson__"RoleARN"RoleARN.of_jsoninletresourceARN=field_map_exnjson__"ResourceARN"ResourceARN.of_jsoninmake~roleARN~resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"When configuring application output, identifies an Amazon Kinesis stream as the destination. You provide the stream Amazon Resource Name (ARN) and also an IAM role ARN that Amazon Kinesis Analytics can use to write to the stream on your behalf."]moduleLambdaOutput=structtypenonrect={resourceARN:ResourceARN.t[@ocaml.doc"Amazon Resource Name (ARN) of the destination Lambda function to write to. To specify an earlier version of the Lambda function than the latest, include the Lambda function version in the Lambda function ARN. For more information about Lambda ARNs, see Example ARNs: AWS Lambda"];roleARN:RoleARN.t[@ocaml.doc"ARN of the IAM role that Amazon Kinesis Analytics can assume to write to the destination function on your behalf. You need to grant the necessary permissions to this role."]}letcontext_="LambdaOutput"letmake~resourceARN=fun~roleARN->fun()->{resourceARN;roleARN}letto_valuex=structure_to_value[("ResourceARN",(Some(ResourceARN.to_valuex.resourceARN)));("RoleARN",(Some(RoleARN.to_valuex.roleARN)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroleARN=RoleARN.of_xml(Xml.child_exn~context:context_xml_arg0"RoleARN")inletresourceARN=ResourceARN.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceARN")inmake~roleARN~resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroleARN=field_map_exnjson__"RoleARN"RoleARN.of_jsoninletresourceARN=field_map_exnjson__"ResourceARN"ResourceARN.of_jsoninmake~roleARN~resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"When configuring application output, identifies an AWS Lambda function as the destination. You provide the function Amazon Resource Name (ARN) and also an IAM role ARN that Amazon Kinesis Analytics can use to write to the function on your behalf."]moduleErrorMessage=structtypenonrect=stringletcontext_="ErrorMessage"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ErrorMessage"jletto_json=simple_to_jsonto_valueendmoduleApplicationCode=structtypenonrect=stringletcontext_="ApplicationCode"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:102400)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ApplicationCode"jletto_json=simple_to_jsonto_valueendmoduleCloudWatchLoggingOptionUpdates=structtypenonrect=CloudWatchLoggingOptionUpdate.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:CloudWatchLoggingOptionUpdate.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:CloudWatchLoggingOptionUpdate.of_xml)letof_jsonj=list_of_json~kind:"CloudWatchLoggingOptionUpdates"~of_json:CloudWatchLoggingOptionUpdate.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleInputUpdates=structtypenonrect=InputUpdate.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:InputUpdate.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:InputUpdate.of_xml)letof_jsonj=list_of_json~kind:"InputUpdates"~of_json:InputUpdate.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleOutputUpdates=structtypenonrect=OutputUpdate.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:OutputUpdate.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:OutputUpdate.of_xml)letof_jsonj=list_of_json~kind:"OutputUpdates"~of_json:OutputUpdate.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleReferenceDataSourceUpdates=structtypenonrect=ReferenceDataSourceUpdate.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ReferenceDataSourceUpdate.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:ReferenceDataSourceUpdate.of_xml)letof_jsonj=list_of_json~kind:"ReferenceDataSourceUpdates"~of_json:ReferenceDataSourceUpdate.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTag=structtypenonrect={key:TagKey.t[@ocaml.doc"The key of the key-value tag."];value:TagValue.toption[@ocaml.doc"The value of the key-value tag. The value is optional."]}letcontext_="Tag"letmake?value=fun~key->fun()->{value;key}letto_valuex=structure_to_value[("Key",(Some(TagKey.to_valuex.key)));("Value",(Option.mapx.value~f:TagValue.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=(Option.map~f:TagValue.of_xml)(Xml.childxml_arg0"Value")inletkey=TagKey.of_xml(Xml.child_exn~context:context_xml_arg0"Key")inmake?value~key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_mapjson__"Value"TagValue.of_jsoninletkey=field_map_exnjson__"Key"TagKey.of_jsoninmake?value~key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A key-value pair (the value is optional) that you can define and assign to AWS resources. If you specify a tag that already exists, the tag value is replaced with the value that you specify in the request. Note that the maximum number of application tags includes system tags. The maximum number of user-defined application tags is 50. For more information, see Using Tagging."]moduleInputConfiguration=structtypenonrect={id:Id.t[@ocaml.doc"Input source ID. You can get this ID by calling the DescribeApplication operation."];inputStartingPositionConfiguration:InputStartingPositionConfiguration.t[@ocaml.doc"Point at which you want the application to start processing records from the streaming source."]}letcontext_="InputConfiguration"letmake~id=fun~inputStartingPositionConfiguration->fun()->{id;inputStartingPositionConfiguration}letto_valuex=structure_to_value[("Id",(Some(Id.to_valuex.id)));("InputStartingPositionConfiguration",(Some(InputStartingPositionConfiguration.to_valuex.inputStartingPositionConfiguration)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinputStartingPositionConfiguration=InputStartingPositionConfiguration.of_xml(Xml.child_exn~context:context_xml_arg0"InputStartingPositionConfiguration")inletid=Id.of_xml(Xml.child_exn~context:context_xml_arg0"Id")inmake~inputStartingPositionConfiguration~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinputStartingPositionConfiguration=field_map_exnjson__"InputStartingPositionConfiguration"InputStartingPositionConfiguration.of_jsoninletid=field_map_exnjson__"Id"Id.of_jsoninmake~inputStartingPositionConfiguration~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"When you start your application, you provide this configuration, which identifies the input source and the point in the input source at which you want the application to start processing records."]moduleApplicationSummary=structtypenonrect={applicationName:ApplicationName.toption[@ocaml.doc"Name of the application."];applicationARN:ResourceARN.toption[@ocaml.doc"ARN of the application."];applicationStatus:ApplicationStatus.toption[@ocaml.doc"Status of the application."]}letmake?applicationName=fun?applicationARN->fun?applicationStatus->fun()->{applicationName;applicationARN;applicationStatus}letto_valuex=structure_to_value[("ApplicationName",(Option.mapx.applicationName~f:ApplicationName.to_value));("ApplicationARN",(Option.mapx.applicationARN~f:ResourceARN.to_value));("ApplicationStatus",(Option.mapx.applicationStatus~f:ApplicationStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letapplicationStatus=(Option.map~f:ApplicationStatus.of_xml)(Xml.childxml_arg0"ApplicationStatus")inletapplicationARN=(Option.map~f:ResourceARN.of_xml)(Xml.childxml_arg0"ApplicationARN")inletapplicationName=(Option.map~f:ApplicationName.of_xml)(Xml.childxml_arg0"ApplicationName")inmake?applicationStatus?applicationARN?applicationName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letapplicationStatus=field_mapjson__"ApplicationStatus"ApplicationStatus.of_jsoninletapplicationARN=field_mapjson__"ApplicationARN"ResourceARN.of_jsoninletapplicationName=field_mapjson__"ApplicationName"ApplicationName.of_jsoninmake?applicationStatus?applicationARN?applicationName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This documentation is for version 1 of the Amazon Kinesis Data Analytics API, which only supports SQL applications. Version 2 of the API supports SQL and Java applications. For more information about version 2, see Amazon Kinesis Data Analytics API V2 Documentation. Provides application summary information, including the application Amazon Resource Name (ARN), name, and status."]moduleParsedInputRecord=structtypenonrect=ParsedInputRecordField.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ParsedInputRecordField.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:ParsedInputRecordField.of_xml)letof_jsonj=list_of_json~kind:"ParsedInputRecord"~of_json:ParsedInputRecordField.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleProcessedInputRecords=structtypenonrect=ProcessedInputRecord.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ProcessedInputRecord.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:ProcessedInputRecord.of_xml)letof_jsonj=list_of_json~kind:"ProcessedInputRecords"~of_json:ProcessedInputRecord.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRawInputRecords=structtypenonrect=RawInputRecord.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:RawInputRecord.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:RawInputRecord.of_xml)letof_jsonj=list_of_json~kind:"RawInputRecords"~of_json:RawInputRecord.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleApplicationDescription=structtypenonrect=stringletcontext_="ApplicationDescription"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ApplicationDescription"jletto_json=simple_to_jsonto_valueendmoduleApplicationVersionId=structtypenonrect=Int64.tletmakei=letopenResultinok_or_failwith((check_int64_maxi~max:999999999L)>>=(fun()->check_int64_mini~min:1L));iletof_string=Int64.of_stringletto_valuex=`Longxletto_queryv=to_queryto_valuevletto_headerx=Int64.to_stringxletof_xmlxml_arg0=Int64.of_string(string_of_xml~kind:"a long"xml_arg0)letof_jsonj=Int64.of_float(float_of_json~kind:"a long"j)letto_json=simple_to_jsonto_valueendmoduleCloudWatchLoggingOptionDescriptions=structtypenonrect=CloudWatchLoggingOptionDescription.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:CloudWatchLoggingOptionDescription.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:CloudWatchLoggingOptionDescription.of_xml)letof_jsonj=list_of_json~kind:"CloudWatchLoggingOptionDescriptions"~of_json:CloudWatchLoggingOptionDescription.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleInputDescriptions=structtypenonrect=InputDescription.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:InputDescription.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:InputDescription.of_xml)letof_jsonj=list_of_json~kind:"InputDescriptions"~of_json:InputDescription.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleOutputDescriptions=structtypenonrect=OutputDescription.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:OutputDescription.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:OutputDescription.of_xml)letof_jsonj=list_of_json~kind:"OutputDescriptions"~of_json:OutputDescription.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleReferenceDataSourceDescriptions=structtypenonrect=ReferenceDataSourceDescription.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ReferenceDataSourceDescription.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:ReferenceDataSourceDescription.of_xml)letof_jsonj=list_of_json~kind:"ReferenceDataSourceDescriptions"~of_json:ReferenceDataSourceDescription.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTimestamp=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Timestampxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=string_of_xml~kind:"a timestamp"letof_json=timestamp_of_jsonletto_json=simple_to_jsonto_valueendmoduleCloudWatchLoggingOption=structtypenonrect={logStreamARN:LogStreamARN.t[@ocaml.doc"ARN of the CloudWatch log to receive application messages."];roleARN:RoleARN.t[@ocaml.doc"IAM ARN of the role to use to send application messages. Note: To write application messages to CloudWatch, the IAM role that is used must have the PutLogEvents policy action enabled."]}letcontext_="CloudWatchLoggingOption"letmake~logStreamARN=fun~roleARN->fun()->{logStreamARN;roleARN}letto_valuex=structure_to_value[("LogStreamARN",(Some(LogStreamARN.to_valuex.logStreamARN)));("RoleARN",(Some(RoleARN.to_valuex.roleARN)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroleARN=RoleARN.of_xml(Xml.child_exn~context:context_xml_arg0"RoleARN")inletlogStreamARN=LogStreamARN.of_xml(Xml.child_exn~context:context_xml_arg0"LogStreamARN")inmake~roleARN~logStreamARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroleARN=field_map_exnjson__"RoleARN"RoleARN.of_jsoninletlogStreamARN=field_map_exnjson__"LogStreamARN"LogStreamARN.of_jsoninmake~roleARN~logStreamARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides a description of CloudWatch logging options, including the log stream Amazon Resource Name (ARN) and the role ARN."]moduleInput=structtypenonrect={namePrefix:InAppStreamName.t[@ocaml.doc"Name prefix to use when creating an in-application stream. Suppose that you specify a prefix \"MyInApplicationStream.\" Amazon Kinesis Analytics then creates one or more (as per the InputParallelism count you specified) in-application streams with names \"MyInApplicationStream_001,\" \"MyInApplicationStream_002,\" and so on."];inputProcessingConfiguration:InputProcessingConfiguration.toption[@ocaml.doc"The InputProcessingConfiguration for the input. An input processor transforms records as they are received from the stream, before the application's SQL code executes. Currently, the only input processing configuration available is InputLambdaProcessor."];kinesisStreamsInput:KinesisStreamsInput.toption[@ocaml.doc"If the streaming source is an Amazon Kinesis stream, identifies the stream's Amazon Resource Name (ARN) and an IAM role that enables Amazon Kinesis Analytics to access the stream on your behalf. Note: Either KinesisStreamsInput or KinesisFirehoseInput is required."];kinesisFirehoseInput:KinesisFirehoseInput.toption[@ocaml.doc"If the streaming source is an Amazon Kinesis Firehose delivery stream, identifies the delivery stream's ARN and an IAM role that enables Amazon Kinesis Analytics to access the stream on your behalf. Note: Either KinesisStreamsInput or KinesisFirehoseInput is required."];inputParallelism:InputParallelism.toption[@ocaml.doc"Describes the number of in-application streams to create. Data from your source is routed to these in-application input streams. (see Configuring Application Input."];inputSchema:SourceSchema.t[@ocaml.doc"Describes the format of the data in the streaming source, and how each data element maps to corresponding columns in the in-application stream that is being created. Also used to describe the format of the reference data source."]}letcontext_="Input"letmake?inputProcessingConfiguration=fun?kinesisStreamsInput->fun?kinesisFirehoseInput->fun?inputParallelism->fun~namePrefix->fun~inputSchema->fun()->{inputProcessingConfiguration;kinesisStreamsInput;kinesisFirehoseInput;inputParallelism;namePrefix;inputSchema}letto_valuex=structure_to_value[("NamePrefix",(Some(InAppStreamName.to_valuex.namePrefix)));("InputProcessingConfiguration",(Option.mapx.inputProcessingConfiguration~f:InputProcessingConfiguration.to_value));("KinesisStreamsInput",(Option.mapx.kinesisStreamsInput~f:KinesisStreamsInput.to_value));("KinesisFirehoseInput",(Option.mapx.kinesisFirehoseInput~f:KinesisFirehoseInput.to_value));("InputParallelism",(Option.mapx.inputParallelism~f:InputParallelism.to_value));("InputSchema",(Some(SourceSchema.to_valuex.inputSchema)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinputSchema=SourceSchema.of_xml(Xml.child_exn~context:context_xml_arg0"InputSchema")inletinputParallelism=(Option.map~f:InputParallelism.of_xml)(Xml.childxml_arg0"InputParallelism")inletkinesisFirehoseInput=(Option.map~f:KinesisFirehoseInput.of_xml)(Xml.childxml_arg0"KinesisFirehoseInput")inletkinesisStreamsInput=(Option.map~f:KinesisStreamsInput.of_xml)(Xml.childxml_arg0"KinesisStreamsInput")inletinputProcessingConfiguration=(Option.map~f:InputProcessingConfiguration.of_xml)(Xml.childxml_arg0"InputProcessingConfiguration")inletnamePrefix=InAppStreamName.of_xml(Xml.child_exn~context:context_xml_arg0"NamePrefix")inmake~inputSchema?inputParallelism?kinesisFirehoseInput?kinesisStreamsInput?inputProcessingConfiguration~namePrefix()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinputSchema=field_map_exnjson__"InputSchema"SourceSchema.of_jsoninletinputParallelism=field_mapjson__"InputParallelism"InputParallelism.of_jsoninletkinesisFirehoseInput=field_mapjson__"KinesisFirehoseInput"KinesisFirehoseInput.of_jsoninletkinesisStreamsInput=field_mapjson__"KinesisStreamsInput"KinesisStreamsInput.of_jsoninletinputProcessingConfiguration=field_mapjson__"InputProcessingConfiguration"InputProcessingConfiguration.of_jsoninletnamePrefix=field_map_exnjson__"NamePrefix"InAppStreamName.of_jsoninmake~inputSchema?inputParallelism?kinesisFirehoseInput?kinesisStreamsInput?inputProcessingConfiguration~namePrefix()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"When you configure the application input, you specify the streaming source, the in-application stream name that is created, and the mapping between the two. For more information, see Configuring Application Input."]moduleOutput=structtypenonrect={name:InAppStreamName.t[@ocaml.doc"Name of the in-application stream."];kinesisStreamsOutput:KinesisStreamsOutput.toption[@ocaml.doc"Identifies an Amazon Kinesis stream as the destination."];kinesisFirehoseOutput:KinesisFirehoseOutput.toption[@ocaml.doc"Identifies an Amazon Kinesis Firehose delivery stream as the destination."];lambdaOutput:LambdaOutput.toption[@ocaml.doc"Identifies an AWS Lambda function as the destination."];destinationSchema:DestinationSchema.t[@ocaml.doc"Describes the data format when records are written to the destination. For more information, see Configuring Application Output."]}letcontext_="Output"letmake?kinesisStreamsOutput=fun?kinesisFirehoseOutput->fun?lambdaOutput->fun~name->fun~destinationSchema->fun()->{kinesisStreamsOutput;kinesisFirehoseOutput;lambdaOutput;name;destinationSchema}letto_valuex=structure_to_value[("Name",(Some(InAppStreamName.to_valuex.name)));("KinesisStreamsOutput",(Option.mapx.kinesisStreamsOutput~f:KinesisStreamsOutput.to_value));("KinesisFirehoseOutput",(Option.mapx.kinesisFirehoseOutput~f:KinesisFirehoseOutput.to_value));("LambdaOutput",(Option.mapx.lambdaOutput~f:LambdaOutput.to_value));("DestinationSchema",(Some(DestinationSchema.to_valuex.destinationSchema)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdestinationSchema=DestinationSchema.of_xml(Xml.child_exn~context:context_xml_arg0"DestinationSchema")inletlambdaOutput=(Option.map~f:LambdaOutput.of_xml)(Xml.childxml_arg0"LambdaOutput")inletkinesisFirehoseOutput=(Option.map~f:KinesisFirehoseOutput.of_xml)(Xml.childxml_arg0"KinesisFirehoseOutput")inletkinesisStreamsOutput=(Option.map~f:KinesisStreamsOutput.of_xml)(Xml.childxml_arg0"KinesisStreamsOutput")inletname=InAppStreamName.of_xml(Xml.child_exn~context:context_xml_arg0"Name")inmake~destinationSchema?lambdaOutput?kinesisFirehoseOutput?kinesisStreamsOutput~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdestinationSchema=field_map_exnjson__"DestinationSchema"DestinationSchema.of_jsoninletlambdaOutput=field_mapjson__"LambdaOutput"LambdaOutput.of_jsoninletkinesisFirehoseOutput=field_mapjson__"KinesisFirehoseOutput"KinesisFirehoseOutput.of_jsoninletkinesisStreamsOutput=field_mapjson__"KinesisStreamsOutput"KinesisStreamsOutput.of_jsoninletname=field_map_exnjson__"Name"InAppStreamName.of_jsoninmake~destinationSchema?lambdaOutput?kinesisFirehoseOutput?kinesisStreamsOutput~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes application output configuration in which you identify an in-application stream and a destination where you want the in-application stream data to be written. The destination can be an Amazon Kinesis stream or an Amazon Kinesis Firehose delivery stream. For limits on how many destinations an application can write and other limitations, see Limits."]moduleS3ReferenceDataSource=structtypenonrect={bucketARN:BucketARN.t[@ocaml.doc"Amazon Resource Name (ARN) of the S3 bucket."];fileKey:FileKey.t[@ocaml.doc"Object key name containing reference data."];referenceRoleARN:RoleARN.t[@ocaml.doc"ARN of the IAM role that the service can assume to read data on your behalf. This role must have permission for the s3:GetObject action on the object and trust policy that allows Amazon Kinesis Analytics service principal to assume this role."]}letcontext_="S3ReferenceDataSource"letmake~bucketARN=fun~fileKey->fun~referenceRoleARN->fun()->{bucketARN;fileKey;referenceRoleARN}letto_valuex=structure_to_value[("BucketARN",(Some(BucketARN.to_valuex.bucketARN)));("FileKey",(Some(FileKey.to_valuex.fileKey)));("ReferenceRoleARN",(Some(RoleARN.to_valuex.referenceRoleARN)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreferenceRoleARN=RoleARN.of_xml(Xml.child_exn~context:context_xml_arg0"ReferenceRoleARN")inletfileKey=FileKey.of_xml(Xml.child_exn~context:context_xml_arg0"FileKey")inletbucketARN=BucketARN.of_xml(Xml.child_exn~context:context_xml_arg0"BucketARN")inmake~referenceRoleARN~fileKey~bucketARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreferenceRoleARN=field_map_exnjson__"ReferenceRoleARN"RoleARN.of_jsoninletfileKey=field_map_exnjson__"FileKey"FileKey.of_jsoninletbucketARN=field_map_exnjson__"BucketARN"BucketARN.of_jsoninmake~referenceRoleARN~fileKey~bucketARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Identifies the S3 bucket and object that contains the reference data. Also identifies the IAM role Amazon Kinesis Analytics can assume to read this object on your behalf. An Amazon Kinesis Analytics application loads reference data only once. If the data changes, you call the UpdateApplication operation to trigger reloading of data into your application."]moduleCodeValidationException=structtypenonrect={message:ErrorMessage.toption[@ocaml.doc"Test"]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"User-provided application code (query) is invalid. This can be a simple syntax error."]moduleConcurrentModificationException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Exception thrown as a result of concurrent modification to an application. For example, two individuals attempting to edit the same application at the same time."]moduleInvalidArgumentException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specified input parameter value is invalid."]moduleResourceInUseException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Application is not available for this operation."]moduleResourceNotFoundException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specified application can't be found."]moduleUnsupportedOperationException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request was rejected because a specified parameter is not supported or a specified resource is not valid for this operation."]moduleApplicationUpdate=structtypenonrect={inputUpdates:InputUpdates.toption[@ocaml.doc"Describes application input configuration updates."];applicationCodeUpdate:ApplicationCode.toption[@ocaml.doc"Describes application code updates."];outputUpdates:OutputUpdates.toption[@ocaml.doc"Describes application output configuration updates."];referenceDataSourceUpdates:ReferenceDataSourceUpdates.toption[@ocaml.doc"Describes application reference data source updates."];cloudWatchLoggingOptionUpdates:CloudWatchLoggingOptionUpdates.toption[@ocaml.doc"Describes application CloudWatch logging option updates."]}letmake?inputUpdates=fun?applicationCodeUpdate->fun?outputUpdates->fun?referenceDataSourceUpdates->fun?cloudWatchLoggingOptionUpdates->fun()->{inputUpdates;applicationCodeUpdate;outputUpdates;referenceDataSourceUpdates;cloudWatchLoggingOptionUpdates}letto_valuex=structure_to_value[("InputUpdates",(Option.mapx.inputUpdates~f:InputUpdates.to_value));("ApplicationCodeUpdate",(Option.mapx.applicationCodeUpdate~f:ApplicationCode.to_value));("OutputUpdates",(Option.mapx.outputUpdates~f:OutputUpdates.to_value));("ReferenceDataSourceUpdates",(Option.mapx.referenceDataSourceUpdates~f:ReferenceDataSourceUpdates.to_value));("CloudWatchLoggingOptionUpdates",(Option.mapx.cloudWatchLoggingOptionUpdates~f:CloudWatchLoggingOptionUpdates.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcloudWatchLoggingOptionUpdates=(Option.map~f:CloudWatchLoggingOptionUpdates.of_xml)(Xml.childxml_arg0"CloudWatchLoggingOptionUpdates")inletreferenceDataSourceUpdates=(Option.map~f:ReferenceDataSourceUpdates.of_xml)(Xml.childxml_arg0"ReferenceDataSourceUpdates")inletoutputUpdates=(Option.map~f:OutputUpdates.of_xml)(Xml.childxml_arg0"OutputUpdates")inletapplicationCodeUpdate=(Option.map~f:ApplicationCode.of_xml)(Xml.childxml_arg0"ApplicationCodeUpdate")inletinputUpdates=(Option.map~f:InputUpdates.of_xml)(Xml.childxml_arg0"InputUpdates")inmake?cloudWatchLoggingOptionUpdates?referenceDataSourceUpdates?outputUpdates?applicationCodeUpdate?inputUpdates()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcloudWatchLoggingOptionUpdates=field_mapjson__"CloudWatchLoggingOptionUpdates"CloudWatchLoggingOptionUpdates.of_jsoninletreferenceDataSourceUpdates=field_mapjson__"ReferenceDataSourceUpdates"ReferenceDataSourceUpdates.of_jsoninletoutputUpdates=field_mapjson__"OutputUpdates"OutputUpdates.of_jsoninletapplicationCodeUpdate=field_mapjson__"ApplicationCodeUpdate"ApplicationCode.of_jsoninletinputUpdates=field_mapjson__"InputUpdates"InputUpdates.of_jsoninmake?cloudWatchLoggingOptionUpdates?referenceDataSourceUpdates?outputUpdates?applicationCodeUpdate?inputUpdates()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes updates to apply to an existing Amazon Kinesis Analytics application."]moduleTooManyTagsException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Application created with too many tags, or too many tags added to an application. Note that the maximum number of application tags includes system tags. The maximum number of user-defined application tags is 50."]moduleKinesisAnalyticsARN=structtypenonrect=stringletcontext_="KinesisAnalyticsARN"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"arn:aws:kinesisanalytics:[a-z]{2}-[a-z]+-\\d{1}+:\\d{12}+:application/[a-zA-Z0-9_.-]{1,128}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"KinesisAnalyticsARN"jletto_json=simple_to_jsonto_valueendmoduleTagKeys=structtypenonrect=TagKey.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:200)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TagKey.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:TagKey.of_xml)letof_jsonj=list_of_json~kind:"TagKeys"~of_json:TagKey.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTags=structtypenonrect=Tag.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:200)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Tag.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:Tag.of_xml)letof_jsonj=list_of_json~kind:"Tags"~of_json:Tag.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleInvalidApplicationConfigurationException=structtypenonrect={message:ErrorMessage.toption[@ocaml.doc"test"]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"User-provided application configuration is not valid."]moduleInputConfigurations=structtypenonrect=InputConfiguration.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:InputConfiguration.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:InputConfiguration.of_xml)letof_jsonj=list_of_json~kind:"InputConfigurations"~of_json:InputConfiguration.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleApplicationSummaries=structtypenonrect=ApplicationSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ApplicationSummary.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:ApplicationSummary.of_xml)letof_jsonj=list_of_json~kind:"ApplicationSummaries"~of_json:ApplicationSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleBooleanObject=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_valueendmoduleListApplicationsInputLimit=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:50)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ListApplicationsInputLimit"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleParsedInputRecords=structtypenonrect=ParsedInputRecord.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ParsedInputRecord.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:ParsedInputRecord.of_xml)letof_jsonj=list_of_json~kind:"ParsedInputRecords"~of_json:ParsedInputRecord.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleResourceProvisionedThroughputExceededException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Discovery failed to get a record from the streaming source because of the Amazon Kinesis Streams ProvisionedThroughputExceededException. For more information, see GetRecords in the Amazon Kinesis Streams API Reference."]moduleServiceUnavailableException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The service is unavailable. Back off and retry the operation."]moduleUnableToDetectSchemaException=structtypenonrect={message:ErrorMessage.toption;rawInputRecords:RawInputRecords.toption;processedInputRecords:ProcessedInputRecords.toption}letmake?message=fun?rawInputRecords->fun?processedInputRecords->fun()->{message;rawInputRecords;processedInputRecords}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value));("RawInputRecords",(Option.mapx.rawInputRecords~f:RawInputRecords.to_value));("ProcessedInputRecords",(Option.mapx.processedInputRecords~f:ProcessedInputRecords.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprocessedInputRecords=(Option.map~f:ProcessedInputRecords.of_xml)(Xml.childxml_arg0"ProcessedInputRecords")inletrawInputRecords=(Option.map~f:RawInputRecords.of_xml)(Xml.childxml_arg0"RawInputRecords")inletmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?processedInputRecords?rawInputRecords?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprocessedInputRecords=field_mapjson__"ProcessedInputRecords"ProcessedInputRecords.of_jsoninletrawInputRecords=field_mapjson__"RawInputRecords"RawInputRecords.of_jsoninletmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?processedInputRecords?rawInputRecords?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Data format is not valid. Amazon Kinesis Analytics is not able to detect schema for the given streaming source."]moduleS3Configuration=structtypenonrect={roleARN:RoleARN.t[@ocaml.doc"IAM ARN of the role used to access the data."];bucketARN:BucketARN.t[@ocaml.doc"ARN of the S3 bucket that contains the data."];fileKey:FileKey.t[@ocaml.doc"The name of the object that contains the data."]}letcontext_="S3Configuration"letmake~roleARN=fun~bucketARN->fun~fileKey->fun()->{roleARN;bucketARN;fileKey}letto_valuex=structure_to_value[("RoleARN",(Some(RoleARN.to_valuex.roleARN)));("BucketARN",(Some(BucketARN.to_valuex.bucketARN)));("FileKey",(Some(FileKey.to_valuex.fileKey)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfileKey=FileKey.of_xml(Xml.child_exn~context:context_xml_arg0"FileKey")inletbucketARN=BucketARN.of_xml(Xml.child_exn~context:context_xml_arg0"BucketARN")inletroleARN=RoleARN.of_xml(Xml.child_exn~context:context_xml_arg0"RoleARN")inmake~fileKey~bucketARN~roleARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfileKey=field_map_exnjson__"FileKey"FileKey.of_jsoninletbucketARN=field_map_exnjson__"BucketARN"BucketARN.of_jsoninletroleARN=field_map_exnjson__"RoleARN"RoleARN.of_jsoninmake~fileKey~bucketARN~roleARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides a description of an Amazon S3 data source, including the Amazon Resource Name (ARN) of the S3 bucket, the ARN of the IAM role that is used to access the bucket, and the name of the Amazon S3 object that contains the data."]moduleApplicationDetail=structtypenonrect={applicationName:ApplicationName.toption[@ocaml.doc"Name of the application."];applicationDescription:ApplicationDescription.toption[@ocaml.doc"Description of the application."];applicationARN:ResourceARN.toption[@ocaml.doc"ARN of the application."];applicationStatus:ApplicationStatus.toption[@ocaml.doc"Status of the application."];createTimestamp:Timestamp.toption[@ocaml.doc"Time stamp when the application version was created."];lastUpdateTimestamp:Timestamp.toption[@ocaml.doc"Time stamp when the application was last updated."];inputDescriptions:InputDescriptions.toption[@ocaml.doc"Describes the application input configuration. For more information, see Configuring Application Input."];outputDescriptions:OutputDescriptions.toption[@ocaml.doc"Describes the application output configuration. For more information, see Configuring Application Output."];referenceDataSourceDescriptions:ReferenceDataSourceDescriptions.toption[@ocaml.doc"Describes reference data sources configured for the application. For more information, see Configuring Application Input."];cloudWatchLoggingOptionDescriptions:CloudWatchLoggingOptionDescriptions.toption[@ocaml.doc"Describes the CloudWatch log streams that are configured to receive application messages. For more information about using CloudWatch log streams with Amazon Kinesis Analytics applications, see Working with Amazon CloudWatch Logs."];applicationCode:ApplicationCode.toption[@ocaml.doc"Returns the application code that you provided to perform data analysis on any of the in-application streams in your application."];applicationVersionId:ApplicationVersionId.toption[@ocaml.doc"Provides the current application version."]}letmake?applicationName=fun?applicationDescription->fun?applicationARN->fun?applicationStatus->fun?createTimestamp->fun?lastUpdateTimestamp->fun?inputDescriptions->fun?outputDescriptions->fun?referenceDataSourceDescriptions->fun?cloudWatchLoggingOptionDescriptions->fun?applicationCode->fun?applicationVersionId->fun()->{applicationName;applicationDescription;applicationARN;applicationStatus;createTimestamp;lastUpdateTimestamp;inputDescriptions;outputDescriptions;referenceDataSourceDescriptions;cloudWatchLoggingOptionDescriptions;applicationCode;applicationVersionId}letto_valuex=structure_to_value[("ApplicationName",(Option.mapx.applicationName~f:ApplicationName.to_value));("ApplicationDescription",(Option.mapx.applicationDescription~f:ApplicationDescription.to_value));("ApplicationARN",(Option.mapx.applicationARN~f:ResourceARN.to_value));("ApplicationStatus",(Option.mapx.applicationStatus~f:ApplicationStatus.to_value));("CreateTimestamp",(Option.mapx.createTimestamp~f:Timestamp.to_value));("LastUpdateTimestamp",(Option.mapx.lastUpdateTimestamp~f:Timestamp.to_value));("InputDescriptions",(Option.mapx.inputDescriptions~f:InputDescriptions.to_value));("OutputDescriptions",(Option.mapx.outputDescriptions~f:OutputDescriptions.to_value));("ReferenceDataSourceDescriptions",(Option.mapx.referenceDataSourceDescriptions~f:ReferenceDataSourceDescriptions.to_value));("CloudWatchLoggingOptionDescriptions",(Option.mapx.cloudWatchLoggingOptionDescriptions~f:CloudWatchLoggingOptionDescriptions.to_value));("ApplicationCode",(Option.mapx.applicationCode~f:ApplicationCode.to_value));("ApplicationVersionId",(Option.mapx.applicationVersionId~f:ApplicationVersionId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letapplicationVersionId=(Option.map~f:ApplicationVersionId.of_xml)(Xml.childxml_arg0"ApplicationVersionId")inletapplicationCode=(Option.map~f:ApplicationCode.of_xml)(Xml.childxml_arg0"ApplicationCode")inletcloudWatchLoggingOptionDescriptions=(Option.map~f:CloudWatchLoggingOptionDescriptions.of_xml)(Xml.childxml_arg0"CloudWatchLoggingOptionDescriptions")inletreferenceDataSourceDescriptions=(Option.map~f:ReferenceDataSourceDescriptions.of_xml)(Xml.childxml_arg0"ReferenceDataSourceDescriptions")inletoutputDescriptions=(Option.map~f:OutputDescriptions.of_xml)(Xml.childxml_arg0"OutputDescriptions")inletinputDescriptions=(Option.map~f:InputDescriptions.of_xml)(Xml.childxml_arg0"InputDescriptions")inletlastUpdateTimestamp=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"LastUpdateTimestamp")inletcreateTimestamp=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"CreateTimestamp")inletapplicationStatus=(Option.map~f:ApplicationStatus.of_xml)(Xml.childxml_arg0"ApplicationStatus")inletapplicationARN=(Option.map~f:ResourceARN.of_xml)(Xml.childxml_arg0"ApplicationARN")inletapplicationDescription=(Option.map~f:ApplicationDescription.of_xml)(Xml.childxml_arg0"ApplicationDescription")inletapplicationName=(Option.map~f:ApplicationName.of_xml)(Xml.childxml_arg0"ApplicationName")inmake?applicationVersionId?applicationCode?cloudWatchLoggingOptionDescriptions?referenceDataSourceDescriptions?outputDescriptions?inputDescriptions?lastUpdateTimestamp?createTimestamp?applicationStatus?applicationARN?applicationDescription?applicationName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letapplicationVersionId=field_mapjson__"ApplicationVersionId"ApplicationVersionId.of_jsoninletapplicationCode=field_mapjson__"ApplicationCode"ApplicationCode.of_jsoninletcloudWatchLoggingOptionDescriptions=field_mapjson__"CloudWatchLoggingOptionDescriptions"CloudWatchLoggingOptionDescriptions.of_jsoninletreferenceDataSourceDescriptions=field_mapjson__"ReferenceDataSourceDescriptions"ReferenceDataSourceDescriptions.of_jsoninletoutputDescriptions=field_mapjson__"OutputDescriptions"OutputDescriptions.of_jsoninletinputDescriptions=field_mapjson__"InputDescriptions"InputDescriptions.of_jsoninletlastUpdateTimestamp=field_mapjson__"LastUpdateTimestamp"Timestamp.of_jsoninletcreateTimestamp=field_mapjson__"CreateTimestamp"Timestamp.of_jsoninletapplicationStatus=field_mapjson__"ApplicationStatus"ApplicationStatus.of_jsoninletapplicationARN=field_mapjson__"ApplicationARN"ResourceARN.of_jsoninletapplicationDescription=field_mapjson__"ApplicationDescription"ApplicationDescription.of_jsoninletapplicationName=field_mapjson__"ApplicationName"ApplicationName.of_jsoninmake?applicationVersionId?applicationCode?cloudWatchLoggingOptionDescriptions?referenceDataSourceDescriptions?outputDescriptions?inputDescriptions?lastUpdateTimestamp?createTimestamp?applicationStatus?applicationARN?applicationDescription?applicationName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This documentation is for version 1 of the Amazon Kinesis Data Analytics API, which only supports SQL applications. Version 2 of the API supports SQL and Java applications. For more information about version 2, see Amazon Kinesis Data Analytics API V2 Documentation. Provides a description of the application, including the application Amazon Resource Name (ARN), status, latest version, and input and output configuration."]moduleLimitExceededException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Exceeded the number of applications allowed."]moduleCloudWatchLoggingOptions=structtypenonrect=CloudWatchLoggingOption.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:CloudWatchLoggingOption.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:CloudWatchLoggingOption.of_xml)letof_jsonj=list_of_json~kind:"CloudWatchLoggingOptions"~of_json:CloudWatchLoggingOption.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleInputs=structtypenonrect=Input.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Input.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:Input.of_xml)letof_jsonj=list_of_json~kind:"Inputs"~of_json:Input.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleOutputs=structtypenonrect=Output.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Output.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:Output.of_xml)letof_jsonj=list_of_json~kind:"Outputs"~of_json:Output.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleReferenceDataSource=structtypenonrect={tableName:InAppTableName.t[@ocaml.doc"Name of the in-application table to create."];s3ReferenceDataSource:S3ReferenceDataSource.toption[@ocaml.doc"Identifies the S3 bucket and object that contains the reference data. Also identifies the IAM role Amazon Kinesis Analytics can assume to read this object on your behalf. An Amazon Kinesis Analytics application loads reference data only once. If the data changes, you call the UpdateApplication operation to trigger reloading of data into your application."];referenceSchema:SourceSchema.t[@ocaml.doc"Describes the format of the data in the streaming source, and how each data element maps to corresponding columns created in the in-application stream."]}letcontext_="ReferenceDataSource"letmake?s3ReferenceDataSource=fun~tableName->fun~referenceSchema->fun()->{s3ReferenceDataSource;tableName;referenceSchema}letto_valuex=structure_to_value[("TableName",(Some(InAppTableName.to_valuex.tableName)));("S3ReferenceDataSource",(Option.mapx.s3ReferenceDataSource~f:S3ReferenceDataSource.to_value));("ReferenceSchema",(Some(SourceSchema.to_valuex.referenceSchema)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreferenceSchema=SourceSchema.of_xml(Xml.child_exn~context:context_xml_arg0"ReferenceSchema")inlets3ReferenceDataSource=(Option.map~f:S3ReferenceDataSource.of_xml)(Xml.childxml_arg0"S3ReferenceDataSource")inlettableName=InAppTableName.of_xml(Xml.child_exn~context:context_xml_arg0"TableName")inmake~referenceSchema?s3ReferenceDataSource~tableName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreferenceSchema=field_map_exnjson__"ReferenceSchema"SourceSchema.of_jsoninlets3ReferenceDataSource=field_mapjson__"S3ReferenceDataSource"S3ReferenceDataSource.of_jsoninlettableName=field_map_exnjson__"TableName"InAppTableName.of_jsoninmake~referenceSchema?s3ReferenceDataSource~tableName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes the reference data source by providing the source information (S3 bucket name and object key name), the resulting in-application table name that is created, and the necessary schema to map the data elements in the Amazon S3 object to the in-application table."]moduleUpdateApplicationResponse=structtypenonrect=unittypenonrecerror=[`CodeValidationExceptionofCodeValidationException.t|`ConcurrentModificationExceptionofConcurrentModificationException.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`ResourceInUseExceptionofResourceInUseException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`UnsupportedOperationExceptionofUnsupportedOperationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"CodeValidationException"->`CodeValidationException(CodeValidationException.of_jsonjson)|"ConcurrentModificationException"->`ConcurrentModificationException(ConcurrentModificationException.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"UnsupportedOperationException"->`UnsupportedOperationException(UnsupportedOperationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"CodeValidationException"->`CodeValidationException(CodeValidationException.of_xmlxml)|"ConcurrentModificationException"->`ConcurrentModificationException(ConcurrentModificationException.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"UnsupportedOperationException"->`UnsupportedOperationException(UnsupportedOperationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`CodeValidationExceptione->`Assoc[("error",(`String"CodeValidationException"));("details",(CodeValidationException.to_jsone))]|`ConcurrentModificationExceptione->`Assoc[("error",(`String"ConcurrentModificationException"));("details",(ConcurrentModificationException.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`ResourceInUseExceptione->`Assoc[("error",(`String"ResourceInUseException"));("details",(ResourceInUseException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`UnsupportedOperationExceptione->`Assoc[("error",(`String"UnsupportedOperationException"));("details",(UnsupportedOperationException.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"This documentation is for version 1 of the Amazon Kinesis Data Analytics API, which only supports SQL applications. Version 2 of the API supports SQL and Java applications. For more information about version 2, see Amazon Kinesis Data Analytics API V2 Documentation. Updates an existing Amazon Kinesis Analytics application. Using this API, you can update application code, input configuration, and output configuration. Note that Amazon Kinesis Analytics updates the CurrentApplicationVersionId each time you update your application. This operation requires permission for the kinesisanalytics:UpdateApplication action."]moduleUpdateApplicationRequest=structtypenonrect={applicationName:ApplicationName.t[@ocaml.doc"Name of the Amazon Kinesis Analytics application to update."];currentApplicationVersionId:ApplicationVersionId.t[@ocaml.doc"The current application version ID. You can use the DescribeApplication operation to get this value."];applicationUpdate:ApplicationUpdate.t[@ocaml.doc"Describes application updates."]}letcontext_="UpdateApplicationRequest"letmake~applicationName=fun~currentApplicationVersionId->fun~applicationUpdate->fun()->{applicationName;currentApplicationVersionId;applicationUpdate}letto_valuex=structure_to_value[("ApplicationName",(Some(ApplicationName.to_valuex.applicationName)));("CurrentApplicationVersionId",(Some(ApplicationVersionId.to_valuex.currentApplicationVersionId)));("ApplicationUpdate",(Some(ApplicationUpdate.to_valuex.applicationUpdate)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letapplicationUpdate=ApplicationUpdate.of_xml(Xml.child_exn~context:context_xml_arg0"ApplicationUpdate")inletcurrentApplicationVersionId=ApplicationVersionId.of_xml(Xml.child_exn~context:context_xml_arg0"CurrentApplicationVersionId")inletapplicationName=ApplicationName.of_xml(Xml.child_exn~context:context_xml_arg0"ApplicationName")inmake~applicationUpdate~currentApplicationVersionId~applicationName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letapplicationUpdate=field_map_exnjson__"ApplicationUpdate"ApplicationUpdate.of_jsoninletcurrentApplicationVersionId=field_map_exnjson__"CurrentApplicationVersionId"ApplicationVersionId.of_jsoninletapplicationName=field_map_exnjson__"ApplicationName"ApplicationName.of_jsoninmake~applicationUpdate~currentApplicationVersionId~applicationName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This documentation is for version 1 of the Amazon Kinesis Data Analytics API, which only supports SQL applications. Version 2 of the API supports SQL and Java applications. For more information about version 2, see Amazon Kinesis Data Analytics API V2 Documentation. Updates an existing Amazon Kinesis Analytics application. Using this API, you can update application code, input configuration, and output configuration. Note that Amazon Kinesis Analytics updates the CurrentApplicationVersionId each time you update your application. This operation requires permission for the kinesisanalytics:UpdateApplication action."]moduleUntagResourceResponse=structtypenonrect=unittypenonrecerror=[`ConcurrentModificationExceptionofConcurrentModificationException.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`ResourceInUseExceptionofResourceInUseException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`TooManyTagsExceptionofTooManyTagsException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ConcurrentModificationException"->`ConcurrentModificationException(ConcurrentModificationException.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"TooManyTagsException"->`TooManyTagsException(TooManyTagsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ConcurrentModificationException"->`ConcurrentModificationException(ConcurrentModificationException.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"TooManyTagsException"->`TooManyTagsException(TooManyTagsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ConcurrentModificationExceptione->`Assoc[("error",(`String"ConcurrentModificationException"));("details",(ConcurrentModificationException.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`ResourceInUseExceptione->`Assoc[("error",(`String"ResourceInUseException"));("details",(ResourceInUseException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`TooManyTagsExceptione->`Assoc[("error",(`String"TooManyTagsException"));("details",(TooManyTagsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes one or more tags from a Kinesis Analytics application. For more information, see Using Tagging."]moduleUntagResourceRequest=structtypenonrect={resourceARN:KinesisAnalyticsARN.t[@ocaml.doc"The ARN of the Kinesis Analytics application from which to remove the tags."];tagKeys:TagKeys.t[@ocaml.doc"A list of keys of tags to remove from the specified application."]}letcontext_="UntagResourceRequest"letmake~resourceARN=fun~tagKeys->fun()->{resourceARN;tagKeys}letto_valuex=structure_to_value[("ResourceARN",(Some(KinesisAnalyticsARN.to_valuex.resourceARN)));("TagKeys",(Some(TagKeys.to_valuex.tagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagKeys=TagKeys.of_xml(Xml.child_exn~context:context_xml_arg0"TagKeys")inletresourceARN=KinesisAnalyticsARN.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceARN")inmake~tagKeys~resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagKeys=field_map_exnjson__"TagKeys"TagKeys.of_jsoninletresourceARN=field_map_exnjson__"ResourceARN"KinesisAnalyticsARN.of_jsoninmake~tagKeys~resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes one or more tags from a Kinesis Analytics application. For more information, see Using Tagging."]moduleTagResourceResponse=structtypenonrect=unittypenonrecerror=[`ConcurrentModificationExceptionofConcurrentModificationException.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`ResourceInUseExceptionofResourceInUseException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`TooManyTagsExceptionofTooManyTagsException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ConcurrentModificationException"->`ConcurrentModificationException(ConcurrentModificationException.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"TooManyTagsException"->`TooManyTagsException(TooManyTagsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ConcurrentModificationException"->`ConcurrentModificationException(ConcurrentModificationException.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"TooManyTagsException"->`TooManyTagsException(TooManyTagsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ConcurrentModificationExceptione->`Assoc[("error",(`String"ConcurrentModificationException"));("details",(ConcurrentModificationException.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`ResourceInUseExceptione->`Assoc[("error",(`String"ResourceInUseException"));("details",(ResourceInUseException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`TooManyTagsExceptione->`Assoc[("error",(`String"TooManyTagsException"));("details",(TooManyTagsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds one or more key-value tags to a Kinesis Analytics application. Note that the maximum number of application tags includes system tags. The maximum number of user-defined application tags is 50. For more information, see Using Tagging."]moduleTagResourceRequest=structtypenonrect={resourceARN:KinesisAnalyticsARN.t[@ocaml.doc"The ARN of the application to assign the tags."];tags:Tags.t[@ocaml.doc"The key-value tags to assign to the application."]}letcontext_="TagResourceRequest"letmake~resourceARN=fun~tags->fun()->{resourceARN;tags}letto_valuex=structure_to_value[("ResourceARN",(Some(KinesisAnalyticsARN.to_valuex.resourceARN)));("Tags",(Some(Tags.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=Tags.of_xml(Xml.child_exn~context:context_xml_arg0"Tags")inletresourceARN=KinesisAnalyticsARN.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceARN")inmake~tags~resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_map_exnjson__"Tags"Tags.of_jsoninletresourceARN=field_map_exnjson__"ResourceARN"KinesisAnalyticsARN.of_jsoninmake~tags~resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds one or more key-value tags to a Kinesis Analytics application. Note that the maximum number of application tags includes system tags. The maximum number of user-defined application tags is 50. For more information, see Using Tagging."]moduleStopApplicationResponse=structtypenonrect=unittypenonrecerror=[`ResourceInUseExceptionofResourceInUseException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`UnsupportedOperationExceptionofUnsupportedOperationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"UnsupportedOperationException"->`UnsupportedOperationException(UnsupportedOperationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"UnsupportedOperationException"->`UnsupportedOperationException(UnsupportedOperationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ResourceInUseExceptione->`Assoc[("error",(`String"ResourceInUseException"));("details",(ResourceInUseException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`UnsupportedOperationExceptione->`Assoc[("error",(`String"UnsupportedOperationException"));("details",(UnsupportedOperationException.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_valuevendmoduleStopApplicationRequest=structtypenonrect={applicationName:ApplicationName.t[@ocaml.doc"Name of the running application to stop."]}letcontext_="StopApplicationRequest"letmake~applicationName=fun()->{applicationName}letto_valuex=structure_to_value[("ApplicationName",(Some(ApplicationName.to_valuex.applicationName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letapplicationName=ApplicationName.of_xml(Xml.child_exn~context:context_xml_arg0"ApplicationName")inmake~applicationName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letapplicationName=field_map_exnjson__"ApplicationName"ApplicationName.of_jsoninmake~applicationName()letto_jsonv=composed_to_jsonto_valuevendmoduleStartApplicationResponse=structtypenonrect=unittypenonrecerror=[`InvalidApplicationConfigurationExceptionofInvalidApplicationConfigurationException.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`ResourceInUseExceptionofResourceInUseException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`UnsupportedOperationExceptionofUnsupportedOperationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InvalidApplicationConfigurationException"->`InvalidApplicationConfigurationException(InvalidApplicationConfigurationException.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"UnsupportedOperationException"->`UnsupportedOperationException(UnsupportedOperationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidApplicationConfigurationException"->`InvalidApplicationConfigurationException(InvalidApplicationConfigurationException.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"UnsupportedOperationException"->`UnsupportedOperationException(UnsupportedOperationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidApplicationConfigurationExceptione->`Assoc[("error",(`String"InvalidApplicationConfigurationException"));("details",(InvalidApplicationConfigurationException.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`ResourceInUseExceptione->`Assoc[("error",(`String"ResourceInUseException"));("details",(ResourceInUseException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`UnsupportedOperationExceptione->`Assoc[("error",(`String"UnsupportedOperationException"));("details",(UnsupportedOperationException.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_valuevendmoduleStartApplicationRequest=structtypenonrect={applicationName:ApplicationName.t[@ocaml.doc"Name of the application."];inputConfigurations:InputConfigurations.t[@ocaml.doc"Identifies the specific input, by ID, that the application starts consuming. Amazon Kinesis Analytics starts reading the streaming source associated with the input. You can also specify where in the streaming source you want Amazon Kinesis Analytics to start reading."]}letcontext_="StartApplicationRequest"letmake~applicationName=fun~inputConfigurations->fun()->{applicationName;inputConfigurations}letto_valuex=structure_to_value[("ApplicationName",(Some(ApplicationName.to_valuex.applicationName)));("InputConfigurations",(Some(InputConfigurations.to_valuex.inputConfigurations)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinputConfigurations=InputConfigurations.of_xml(Xml.child_exn~context:context_xml_arg0"InputConfigurations")inletapplicationName=ApplicationName.of_xml(Xml.child_exn~context:context_xml_arg0"ApplicationName")inmake~inputConfigurations~applicationName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinputConfigurations=field_map_exnjson__"InputConfigurations"InputConfigurations.of_jsoninletapplicationName=field_map_exnjson__"ApplicationName"ApplicationName.of_jsoninmake~inputConfigurations~applicationName()letto_jsonv=composed_to_jsonto_valuevendmoduleListTagsForResourceResponse=structtypenonrect={tags:Tags.toption[@ocaml.doc"The key-value tags assigned to the application."]}typenonrecerror=[`ConcurrentModificationExceptionofConcurrentModificationException.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun()->{tags}leterror_of_jsonnamejson=matchnamewith|"ConcurrentModificationException"->`ConcurrentModificationException(ConcurrentModificationException.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ConcurrentModificationException"->`ConcurrentModificationException(ConcurrentModificationException.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ConcurrentModificationExceptione->`Assoc[("error",(`String"ConcurrentModificationException"));("details",(ConcurrentModificationException.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Tags",(Option.mapx.tags~f:Tags.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"Tags")inmake?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"Tags.of_jsoninmake?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the list of key-value tags assigned to the application. For more information, see Using Tagging."]moduleListTagsForResourceRequest=structtypenonrect={resourceARN:KinesisAnalyticsARN.t[@ocaml.doc"The ARN of the application for which to retrieve tags."]}letcontext_="ListTagsForResourceRequest"letmake~resourceARN=fun()->{resourceARN}letto_valuex=structure_to_value[("ResourceARN",(Some(KinesisAnalyticsARN.to_valuex.resourceARN)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceARN=KinesisAnalyticsARN.of_xml(Xml.child_exn~context:context_xml_arg0"ResourceARN")inmake~resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceARN=field_map_exnjson__"ResourceARN"KinesisAnalyticsARN.of_jsoninmake~resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the list of key-value tags assigned to the application. For more information, see Using Tagging."]moduleListApplicationsResponse=structtypenonrect={applicationSummaries:ApplicationSummaries.toption[@ocaml.doc"List of ApplicationSummary objects."];hasMoreApplications:BooleanObject.toption[@ocaml.doc"Returns true if there are more applications to retrieve."]}typenonrecerror=[`Unknown_operation_errorof(string*stringoption)]letmake?applicationSummaries=fun?hasMoreApplications->fun()->{applicationSummaries;hasMoreApplications}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[("ApplicationSummaries",(Option.mapx.applicationSummaries~f:ApplicationSummaries.to_value));("HasMoreApplications",(Option.mapx.hasMoreApplications~f:BooleanObject.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lethasMoreApplications=(Option.map~f:BooleanObject.of_xml)(Xml.childxml_arg0"HasMoreApplications")inletapplicationSummaries=(Option.map~f:ApplicationSummaries.of_xml)(Xml.childxml_arg0"ApplicationSummaries")inmake?hasMoreApplications?applicationSummaries()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lethasMoreApplications=field_mapjson__"HasMoreApplications"BooleanObject.of_jsoninletapplicationSummaries=field_mapjson__"ApplicationSummaries"ApplicationSummaries.of_jsoninmake?hasMoreApplications?applicationSummaries()letto_jsonv=composed_to_jsonto_valuevendmoduleListApplicationsRequest=structtypenonrect={limit:ListApplicationsInputLimit.toption[@ocaml.doc"Maximum number of applications to list."];exclusiveStartApplicationName:ApplicationName.toption[@ocaml.doc"Name of the application to start the list with. When using pagination to retrieve the list, you don't need to specify this parameter in the first request. However, in subsequent requests, you add the last application name from the previous response to get the next page of applications."]}letmake?limit=fun?exclusiveStartApplicationName->fun()->{limit;exclusiveStartApplicationName}letto_valuex=structure_to_value[("Limit",(Option.mapx.limit~f:ListApplicationsInputLimit.to_value));("ExclusiveStartApplicationName",(Option.mapx.exclusiveStartApplicationName~f:ApplicationName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexclusiveStartApplicationName=(Option.map~f:ApplicationName.of_xml)(Xml.childxml_arg0"ExclusiveStartApplicationName")inletlimit=(Option.map~f:ListApplicationsInputLimit.of_xml)(Xml.childxml_arg0"Limit")inmake?exclusiveStartApplicationName?limit()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexclusiveStartApplicationName=field_mapjson__"ExclusiveStartApplicationName"ApplicationName.of_jsoninletlimit=field_mapjson__"Limit"ListApplicationsInputLimit.of_jsoninmake?exclusiveStartApplicationName?limit()letto_jsonv=composed_to_jsonto_valuevendmoduleDiscoverInputSchemaResponse=structtypenonrect={inputSchema:SourceSchema.toption[@ocaml.doc"Schema inferred from the streaming source. It identifies the format of the data in the streaming source and how each data element maps to corresponding columns in the in-application stream that you can create."];parsedInputRecords:ParsedInputRecords.toption[@ocaml.doc"An array of elements, where each element corresponds to a row in a stream record (a stream record can have more than one row)."];processedInputRecords:ProcessedInputRecords.toption[@ocaml.doc"Stream data that was modified by the processor specified in the InputProcessingConfiguration parameter."];rawInputRecords:RawInputRecords.toption[@ocaml.doc"Raw stream data that was sampled to infer the schema."]}typenonrecerror=[`InvalidArgumentExceptionofInvalidArgumentException.t|`ResourceProvisionedThroughputExceededExceptionofResourceProvisionedThroughputExceededException.t|`ServiceUnavailableExceptionofServiceUnavailableException.t|`UnableToDetectSchemaExceptionofUnableToDetectSchemaException.t|`Unknown_operation_errorof(string*stringoption)]letmake?inputSchema=fun?parsedInputRecords->fun?processedInputRecords->fun?rawInputRecords->fun()->{inputSchema;parsedInputRecords;processedInputRecords;rawInputRecords}leterror_of_jsonnamejson=matchnamewith|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"ResourceProvisionedThroughputExceededException"->`ResourceProvisionedThroughputExceededException(ResourceProvisionedThroughputExceededException.of_jsonjson)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_jsonjson)|"UnableToDetectSchemaException"->`UnableToDetectSchemaException(UnableToDetectSchemaException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"ResourceProvisionedThroughputExceededException"->`ResourceProvisionedThroughputExceededException(ResourceProvisionedThroughputExceededException.of_xmlxml)|"ServiceUnavailableException"->`ServiceUnavailableException(ServiceUnavailableException.of_xmlxml)|"UnableToDetectSchemaException"->`UnableToDetectSchemaException(UnableToDetectSchemaException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`ResourceProvisionedThroughputExceededExceptione->`Assoc[("error",(`String"ResourceProvisionedThroughputExceededException"));("details",(ResourceProvisionedThroughputExceededException.to_jsone))]|`ServiceUnavailableExceptione->`Assoc[("error",(`String"ServiceUnavailableException"));("details",(ServiceUnavailableException.to_jsone))]|`UnableToDetectSchemaExceptione->`Assoc[("error",(`String"UnableToDetectSchemaException"));("details",(UnableToDetectSchemaException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("InputSchema",(Option.mapx.inputSchema~f:SourceSchema.to_value));("ParsedInputRecords",(Option.mapx.parsedInputRecords~f:ParsedInputRecords.to_value));("ProcessedInputRecords",(Option.mapx.processedInputRecords~f:ProcessedInputRecords.to_value));("RawInputRecords",(Option.mapx.rawInputRecords~f:RawInputRecords.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrawInputRecords=(Option.map~f:RawInputRecords.of_xml)(Xml.childxml_arg0"RawInputRecords")inletprocessedInputRecords=(Option.map~f:ProcessedInputRecords.of_xml)(Xml.childxml_arg0"ProcessedInputRecords")inletparsedInputRecords=(Option.map~f:ParsedInputRecords.of_xml)(Xml.childxml_arg0"ParsedInputRecords")inletinputSchema=(Option.map~f:SourceSchema.of_xml)(Xml.childxml_arg0"InputSchema")inmake?rawInputRecords?processedInputRecords?parsedInputRecords?inputSchema()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrawInputRecords=field_mapjson__"RawInputRecords"RawInputRecords.of_jsoninletprocessedInputRecords=field_mapjson__"ProcessedInputRecords"ProcessedInputRecords.of_jsoninletparsedInputRecords=field_mapjson__"ParsedInputRecords"ParsedInputRecords.of_jsoninletinputSchema=field_mapjson__"InputSchema"SourceSchema.of_jsoninmake?rawInputRecords?processedInputRecords?parsedInputRecords?inputSchema()letto_jsonv=composed_to_jsonto_valuevendmoduleDiscoverInputSchemaRequest=structtypenonrect={resourceARN:ResourceARN.toption[@ocaml.doc"Amazon Resource Name (ARN) of the streaming source."];roleARN:RoleARN.toption[@ocaml.doc"ARN of the IAM role that Amazon Kinesis Analytics can assume to access the stream on your behalf."];inputStartingPositionConfiguration:InputStartingPositionConfiguration.toption[@ocaml.doc"Point at which you want Amazon Kinesis Analytics to start reading records from the specified streaming source discovery purposes."];s3Configuration:S3Configuration.toption[@ocaml.doc"Specify this parameter to discover a schema from data in an Amazon S3 object."];inputProcessingConfiguration:InputProcessingConfiguration.toption[@ocaml.doc"The InputProcessingConfiguration to use to preprocess the records before discovering the schema of the records."]}letmake?resourceARN=fun?roleARN->fun?inputStartingPositionConfiguration->fun?s3Configuration->fun?inputProcessingConfiguration->fun()->{resourceARN;roleARN;inputStartingPositionConfiguration;s3Configuration;inputProcessingConfiguration}letto_valuex=structure_to_value[("ResourceARN",(Option.mapx.resourceARN~f:ResourceARN.to_value));("RoleARN",(Option.mapx.roleARN~f:RoleARN.to_value));("InputStartingPositionConfiguration",(Option.mapx.inputStartingPositionConfiguration~f:InputStartingPositionConfiguration.to_value));("S3Configuration",(Option.mapx.s3Configuration~f:S3Configuration.to_value));("InputProcessingConfiguration",(Option.mapx.inputProcessingConfiguration~f:InputProcessingConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinputProcessingConfiguration=(Option.map~f:InputProcessingConfiguration.of_xml)(Xml.childxml_arg0"InputProcessingConfiguration")inlets3Configuration=(Option.map~f:S3Configuration.of_xml)(Xml.childxml_arg0"S3Configuration")inletinputStartingPositionConfiguration=(Option.map~f:InputStartingPositionConfiguration.of_xml)(Xml.childxml_arg0"InputStartingPositionConfiguration")inletroleARN=(Option.map~f:RoleARN.of_xml)(Xml.childxml_arg0"RoleARN")inletresourceARN=(Option.map~f:ResourceARN.of_xml)(Xml.childxml_arg0"ResourceARN")inmake?inputProcessingConfiguration?s3Configuration?inputStartingPositionConfiguration?roleARN?resourceARN()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinputProcessingConfiguration=field_mapjson__"InputProcessingConfiguration"InputProcessingConfiguration.of_jsoninlets3Configuration=field_mapjson__"S3Configuration"S3Configuration.of_jsoninletinputStartingPositionConfiguration=field_mapjson__"InputStartingPositionConfiguration"InputStartingPositionConfiguration.of_jsoninletroleARN=field_mapjson__"RoleARN"RoleARN.of_jsoninletresourceARN=field_mapjson__"ResourceARN"ResourceARN.of_jsoninmake?inputProcessingConfiguration?s3Configuration?inputStartingPositionConfiguration?roleARN?resourceARN()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This documentation is for version 1 of the Amazon Kinesis Data Analytics API, which only supports SQL applications. Version 2 of the API supports SQL and Java applications. For more information about version 2, see Amazon Kinesis Data Analytics API V2 Documentation. Infers a schema by evaluating sample records on the specified streaming source (Amazon Kinesis stream or Amazon Kinesis Firehose delivery stream) or S3 object. In the response, the operation returns the inferred schema and also the sample records that the operation used to infer the schema. You can use the inferred schema when configuring a streaming source for your application. For conceptual information, see Configuring Application Input. Note that when you create an application using the Amazon Kinesis Analytics console, the console uses this operation to infer a schema and show it in the console user interface. This operation requires permissions to perform the kinesisanalytics:DiscoverInputSchema action."]moduleDescribeApplicationResponse=structtypenonrect={applicationDetail:ApplicationDetail.toption[@ocaml.doc"Provides a description of the application, such as the application Amazon Resource Name (ARN), status, latest version, and input and output configuration details."]}typenonrecerror=[`ResourceNotFoundExceptionofResourceNotFoundException.t|`UnsupportedOperationExceptionofUnsupportedOperationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?applicationDetail=fun()->{applicationDetail}leterror_of_jsonnamejson=matchnamewith|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"UnsupportedOperationException"->`UnsupportedOperationException(UnsupportedOperationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"UnsupportedOperationException"->`UnsupportedOperationException(UnsupportedOperationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`UnsupportedOperationExceptione->`Assoc[("error",(`String"UnsupportedOperationException"));("details",(UnsupportedOperationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ApplicationDetail",(Option.mapx.applicationDetail~f:ApplicationDetail.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letapplicationDetail=(Option.map~f:ApplicationDetail.of_xml)(Xml.childxml_arg0"ApplicationDetail")inmake?applicationDetail()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letapplicationDetail=field_mapjson__"ApplicationDetail"ApplicationDetail.of_jsoninmake?applicationDetail()letto_jsonv=composed_to_jsonto_valuevendmoduleDescribeApplicationRequest=structtypenonrect={applicationName:ApplicationName.t[@ocaml.doc"Name of the application."]}letcontext_="DescribeApplicationRequest"letmake~applicationName=fun()->{applicationName}letto_valuex=structure_to_value[("ApplicationName",(Some(ApplicationName.to_valuex.applicationName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letapplicationName=ApplicationName.of_xml(Xml.child_exn~context:context_xml_arg0"ApplicationName")inmake~applicationName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letapplicationName=field_map_exnjson__"ApplicationName"ApplicationName.of_jsoninmake~applicationName()letto_jsonv=composed_to_jsonto_valuevendmoduleDeleteApplicationResponse=structtypenonrect=unittypenonrecerror=[`ConcurrentModificationExceptionofConcurrentModificationException.t|`ResourceInUseExceptionofResourceInUseException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`UnsupportedOperationExceptionofUnsupportedOperationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ConcurrentModificationException"->`ConcurrentModificationException(ConcurrentModificationException.of_jsonjson)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"UnsupportedOperationException"->`UnsupportedOperationException(UnsupportedOperationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ConcurrentModificationException"->`ConcurrentModificationException(ConcurrentModificationException.of_xmlxml)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"UnsupportedOperationException"->`UnsupportedOperationException(UnsupportedOperationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ConcurrentModificationExceptione->`Assoc[("error",(`String"ConcurrentModificationException"));("details",(ConcurrentModificationException.to_jsone))]|`ResourceInUseExceptione->`Assoc[("error",(`String"ResourceInUseException"));("details",(ResourceInUseException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`UnsupportedOperationExceptione->`Assoc[("error",(`String"UnsupportedOperationException"));("details",(UnsupportedOperationException.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_valuevendmoduleDeleteApplicationRequest=structtypenonrect={applicationName:ApplicationName.t[@ocaml.doc"Name of the Amazon Kinesis Analytics application to delete."];createTimestamp:Timestamp.t[@ocaml.doc"You can use the DescribeApplication operation to get this value."]}letcontext_="DeleteApplicationRequest"letmake~applicationName=fun~createTimestamp->fun()->{applicationName;createTimestamp}letto_valuex=structure_to_value[("ApplicationName",(Some(ApplicationName.to_valuex.applicationName)));("CreateTimestamp",(Some(Timestamp.to_valuex.createTimestamp)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcreateTimestamp=Timestamp.of_xml(Xml.child_exn~context:context_xml_arg0"CreateTimestamp")inletapplicationName=ApplicationName.of_xml(Xml.child_exn~context:context_xml_arg0"ApplicationName")inmake~createTimestamp~applicationName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcreateTimestamp=field_map_exnjson__"CreateTimestamp"Timestamp.of_jsoninletapplicationName=field_map_exnjson__"ApplicationName"ApplicationName.of_jsoninmake~createTimestamp~applicationName()letto_jsonv=composed_to_jsonto_valuevendmoduleDeleteApplicationReferenceDataSourceResponse=structtypenonrect=unittypenonrecerror=[`ConcurrentModificationExceptionofConcurrentModificationException.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`ResourceInUseExceptionofResourceInUseException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`UnsupportedOperationExceptionofUnsupportedOperationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ConcurrentModificationException"->`ConcurrentModificationException(ConcurrentModificationException.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"UnsupportedOperationException"->`UnsupportedOperationException(UnsupportedOperationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ConcurrentModificationException"->`ConcurrentModificationException(ConcurrentModificationException.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"UnsupportedOperationException"->`UnsupportedOperationException(UnsupportedOperationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ConcurrentModificationExceptione->`Assoc[("error",(`String"ConcurrentModificationException"));("details",(ConcurrentModificationException.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`ResourceInUseExceptione->`Assoc[("error",(`String"ResourceInUseException"));("details",(ResourceInUseException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`UnsupportedOperationExceptione->`Assoc[("error",(`String"UnsupportedOperationException"));("details",(UnsupportedOperationException.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"This documentation is for version 1 of the Amazon Kinesis Data Analytics API, which only supports SQL applications. Version 2 of the API supports SQL and Java applications. For more information about version 2, see Amazon Kinesis Data Analytics API V2 Documentation. Deletes a reference data source configuration from the specified application configuration. If the application is running, Amazon Kinesis Analytics immediately removes the in-application table that you created using the AddApplicationReferenceDataSource operation. This operation requires permissions to perform the kinesisanalytics.DeleteApplicationReferenceDataSource action."]moduleDeleteApplicationReferenceDataSourceRequest=structtypenonrect={applicationName:ApplicationName.t[@ocaml.doc"Name of an existing application."];currentApplicationVersionId:ApplicationVersionId.t[@ocaml.doc"Version of the application. You can use the DescribeApplication operation to get the current application version. If the version specified is not the current version, the ConcurrentModificationException is returned."];referenceId:Id.t[@ocaml.doc"ID of the reference data source. When you add a reference data source to your application using the AddApplicationReferenceDataSource, Amazon Kinesis Analytics assigns an ID. You can use the DescribeApplication operation to get the reference ID."]}letcontext_="DeleteApplicationReferenceDataSourceRequest"letmake~applicationName=fun~currentApplicationVersionId->fun~referenceId->fun()->{applicationName;currentApplicationVersionId;referenceId}letto_valuex=structure_to_value[("ApplicationName",(Some(ApplicationName.to_valuex.applicationName)));("CurrentApplicationVersionId",(Some(ApplicationVersionId.to_valuex.currentApplicationVersionId)));("ReferenceId",(Some(Id.to_valuex.referenceId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreferenceId=Id.of_xml(Xml.child_exn~context:context_xml_arg0"ReferenceId")inletcurrentApplicationVersionId=ApplicationVersionId.of_xml(Xml.child_exn~context:context_xml_arg0"CurrentApplicationVersionId")inletapplicationName=ApplicationName.of_xml(Xml.child_exn~context:context_xml_arg0"ApplicationName")inmake~referenceId~currentApplicationVersionId~applicationName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreferenceId=field_map_exnjson__"ReferenceId"Id.of_jsoninletcurrentApplicationVersionId=field_map_exnjson__"CurrentApplicationVersionId"ApplicationVersionId.of_jsoninletapplicationName=field_map_exnjson__"ApplicationName"ApplicationName.of_jsoninmake~referenceId~currentApplicationVersionId~applicationName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This documentation is for version 1 of the Amazon Kinesis Data Analytics API, which only supports SQL applications. Version 2 of the API supports SQL and Java applications. For more information about version 2, see Amazon Kinesis Data Analytics API V2 Documentation. Deletes a reference data source configuration from the specified application configuration. If the application is running, Amazon Kinesis Analytics immediately removes the in-application table that you created using the AddApplicationReferenceDataSource operation. This operation requires permissions to perform the kinesisanalytics.DeleteApplicationReferenceDataSource action."]moduleDeleteApplicationOutputResponse=structtypenonrect=unittypenonrecerror=[`ConcurrentModificationExceptionofConcurrentModificationException.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`ResourceInUseExceptionofResourceInUseException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`UnsupportedOperationExceptionofUnsupportedOperationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ConcurrentModificationException"->`ConcurrentModificationException(ConcurrentModificationException.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"UnsupportedOperationException"->`UnsupportedOperationException(UnsupportedOperationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ConcurrentModificationException"->`ConcurrentModificationException(ConcurrentModificationException.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"UnsupportedOperationException"->`UnsupportedOperationException(UnsupportedOperationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ConcurrentModificationExceptione->`Assoc[("error",(`String"ConcurrentModificationException"));("details",(ConcurrentModificationException.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`ResourceInUseExceptione->`Assoc[("error",(`String"ResourceInUseException"));("details",(ResourceInUseException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`UnsupportedOperationExceptione->`Assoc[("error",(`String"UnsupportedOperationException"));("details",(UnsupportedOperationException.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_valuevendmoduleDeleteApplicationOutputRequest=structtypenonrect={applicationName:ApplicationName.t[@ocaml.doc"Amazon Kinesis Analytics application name."];currentApplicationVersionId:ApplicationVersionId.t[@ocaml.doc"Amazon Kinesis Analytics application version. You can use the DescribeApplication operation to get the current application version. If the version specified is not the current version, the ConcurrentModificationException is returned."];outputId:Id.t[@ocaml.doc"The ID of the configuration to delete. Each output configuration that is added to the application, either when the application is created or later using the AddApplicationOutput operation, has a unique ID. You need to provide the ID to uniquely identify the output configuration that you want to delete from the application configuration. You can use the DescribeApplication operation to get the specific OutputId."]}letcontext_="DeleteApplicationOutputRequest"letmake~applicationName=fun~currentApplicationVersionId->fun~outputId->fun()->{applicationName;currentApplicationVersionId;outputId}letto_valuex=structure_to_value[("ApplicationName",(Some(ApplicationName.to_valuex.applicationName)));("CurrentApplicationVersionId",(Some(ApplicationVersionId.to_valuex.currentApplicationVersionId)));("OutputId",(Some(Id.to_valuex.outputId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoutputId=Id.of_xml(Xml.child_exn~context:context_xml_arg0"OutputId")inletcurrentApplicationVersionId=ApplicationVersionId.of_xml(Xml.child_exn~context:context_xml_arg0"CurrentApplicationVersionId")inletapplicationName=ApplicationName.of_xml(Xml.child_exn~context:context_xml_arg0"ApplicationName")inmake~outputId~currentApplicationVersionId~applicationName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoutputId=field_map_exnjson__"OutputId"Id.of_jsoninletcurrentApplicationVersionId=field_map_exnjson__"CurrentApplicationVersionId"ApplicationVersionId.of_jsoninletapplicationName=field_map_exnjson__"ApplicationName"ApplicationName.of_jsoninmake~outputId~currentApplicationVersionId~applicationName()letto_jsonv=composed_to_jsonto_valuevendmoduleDeleteApplicationInputProcessingConfigurationResponse=structtypenonrect=unittypenonrecerror=[`ConcurrentModificationExceptionofConcurrentModificationException.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`ResourceInUseExceptionofResourceInUseException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`UnsupportedOperationExceptionofUnsupportedOperationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ConcurrentModificationException"->`ConcurrentModificationException(ConcurrentModificationException.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"UnsupportedOperationException"->`UnsupportedOperationException(UnsupportedOperationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ConcurrentModificationException"->`ConcurrentModificationException(ConcurrentModificationException.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"UnsupportedOperationException"->`UnsupportedOperationException(UnsupportedOperationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ConcurrentModificationExceptione->`Assoc[("error",(`String"ConcurrentModificationException"));("details",(ConcurrentModificationException.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`ResourceInUseExceptione->`Assoc[("error",(`String"ResourceInUseException"));("details",(ResourceInUseException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`UnsupportedOperationExceptione->`Assoc[("error",(`String"UnsupportedOperationException"));("details",(UnsupportedOperationException.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"This documentation is for version 1 of the Amazon Kinesis Data Analytics API, which only supports SQL applications. Version 2 of the API supports SQL and Java applications. For more information about version 2, see Amazon Kinesis Data Analytics API V2 Documentation. Deletes an InputProcessingConfiguration from an input."]moduleDeleteApplicationInputProcessingConfigurationRequest=structtypenonrect={applicationName:ApplicationName.t[@ocaml.doc"The Kinesis Analytics application name."];currentApplicationVersionId:ApplicationVersionId.t[@ocaml.doc"The version ID of the Kinesis Analytics application."];inputId:Id.t[@ocaml.doc"The ID of the input configuration from which to delete the input processing configuration. You can get a list of the input IDs for an application by using the DescribeApplication operation."]}letcontext_="DeleteApplicationInputProcessingConfigurationRequest"letmake~applicationName=fun~currentApplicationVersionId->fun~inputId->fun()->{applicationName;currentApplicationVersionId;inputId}letto_valuex=structure_to_value[("ApplicationName",(Some(ApplicationName.to_valuex.applicationName)));("CurrentApplicationVersionId",(Some(ApplicationVersionId.to_valuex.currentApplicationVersionId)));("InputId",(Some(Id.to_valuex.inputId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinputId=Id.of_xml(Xml.child_exn~context:context_xml_arg0"InputId")inletcurrentApplicationVersionId=ApplicationVersionId.of_xml(Xml.child_exn~context:context_xml_arg0"CurrentApplicationVersionId")inletapplicationName=ApplicationName.of_xml(Xml.child_exn~context:context_xml_arg0"ApplicationName")inmake~inputId~currentApplicationVersionId~applicationName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinputId=field_map_exnjson__"InputId"Id.of_jsoninletcurrentApplicationVersionId=field_map_exnjson__"CurrentApplicationVersionId"ApplicationVersionId.of_jsoninletapplicationName=field_map_exnjson__"ApplicationName"ApplicationName.of_jsoninmake~inputId~currentApplicationVersionId~applicationName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This documentation is for version 1 of the Amazon Kinesis Data Analytics API, which only supports SQL applications. Version 2 of the API supports SQL and Java applications. For more information about version 2, see Amazon Kinesis Data Analytics API V2 Documentation. Deletes an InputProcessingConfiguration from an input."]moduleDeleteApplicationCloudWatchLoggingOptionResponse=structtypenonrect=unittypenonrecerror=[`ConcurrentModificationExceptionofConcurrentModificationException.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`ResourceInUseExceptionofResourceInUseException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`UnsupportedOperationExceptionofUnsupportedOperationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ConcurrentModificationException"->`ConcurrentModificationException(ConcurrentModificationException.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"UnsupportedOperationException"->`UnsupportedOperationException(UnsupportedOperationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ConcurrentModificationException"->`ConcurrentModificationException(ConcurrentModificationException.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"UnsupportedOperationException"->`UnsupportedOperationException(UnsupportedOperationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ConcurrentModificationExceptione->`Assoc[("error",(`String"ConcurrentModificationException"));("details",(ConcurrentModificationException.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`ResourceInUseExceptione->`Assoc[("error",(`String"ResourceInUseException"));("details",(ResourceInUseException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`UnsupportedOperationExceptione->`Assoc[("error",(`String"UnsupportedOperationException"));("details",(UnsupportedOperationException.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"This documentation is for version 1 of the Amazon Kinesis Data Analytics API, which only supports SQL applications. Version 2 of the API supports SQL and Java applications. For more information about version 2, see Amazon Kinesis Data Analytics API V2 Documentation. Deletes a CloudWatch log stream from an application. For more information about using CloudWatch log streams with Amazon Kinesis Analytics applications, see Working with Amazon CloudWatch Logs."]moduleDeleteApplicationCloudWatchLoggingOptionRequest=structtypenonrect={applicationName:ApplicationName.t[@ocaml.doc"The Kinesis Analytics application name."];currentApplicationVersionId:ApplicationVersionId.t[@ocaml.doc"The version ID of the Kinesis Analytics application."];cloudWatchLoggingOptionId:Id.t[@ocaml.doc"The CloudWatchLoggingOptionId of the CloudWatch logging option to delete. You can get the CloudWatchLoggingOptionId by using the DescribeApplication operation."]}letcontext_="DeleteApplicationCloudWatchLoggingOptionRequest"letmake~applicationName=fun~currentApplicationVersionId->fun~cloudWatchLoggingOptionId->fun()->{applicationName;currentApplicationVersionId;cloudWatchLoggingOptionId}letto_valuex=structure_to_value[("ApplicationName",(Some(ApplicationName.to_valuex.applicationName)));("CurrentApplicationVersionId",(Some(ApplicationVersionId.to_valuex.currentApplicationVersionId)));("CloudWatchLoggingOptionId",(Some(Id.to_valuex.cloudWatchLoggingOptionId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcloudWatchLoggingOptionId=Id.of_xml(Xml.child_exn~context:context_xml_arg0"CloudWatchLoggingOptionId")inletcurrentApplicationVersionId=ApplicationVersionId.of_xml(Xml.child_exn~context:context_xml_arg0"CurrentApplicationVersionId")inletapplicationName=ApplicationName.of_xml(Xml.child_exn~context:context_xml_arg0"ApplicationName")inmake~cloudWatchLoggingOptionId~currentApplicationVersionId~applicationName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcloudWatchLoggingOptionId=field_map_exnjson__"CloudWatchLoggingOptionId"Id.of_jsoninletcurrentApplicationVersionId=field_map_exnjson__"CurrentApplicationVersionId"ApplicationVersionId.of_jsoninletapplicationName=field_map_exnjson__"ApplicationName"ApplicationName.of_jsoninmake~cloudWatchLoggingOptionId~currentApplicationVersionId~applicationName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This documentation is for version 1 of the Amazon Kinesis Data Analytics API, which only supports SQL applications. Version 2 of the API supports SQL and Java applications. For more information about version 2, see Amazon Kinesis Data Analytics API V2 Documentation. Deletes a CloudWatch log stream from an application. For more information about using CloudWatch log streams with Amazon Kinesis Analytics applications, see Working with Amazon CloudWatch Logs."]moduleCreateApplicationResponse=structtypenonrect={applicationSummary:ApplicationSummary.toption[@ocaml.doc"In response to your CreateApplication request, Amazon Kinesis Analytics returns a response with a summary of the application it created, including the application Amazon Resource Name (ARN), name, and status."]}typenonrecerror=[`CodeValidationExceptionofCodeValidationException.t|`ConcurrentModificationExceptionofConcurrentModificationException.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`LimitExceededExceptionofLimitExceededException.t|`ResourceInUseExceptionofResourceInUseException.t|`TooManyTagsExceptionofTooManyTagsException.t|`Unknown_operation_errorof(string*stringoption)]letmake?applicationSummary=fun()->{applicationSummary}leterror_of_jsonnamejson=matchnamewith|"CodeValidationException"->`CodeValidationException(CodeValidationException.of_jsonjson)|"ConcurrentModificationException"->`ConcurrentModificationException(ConcurrentModificationException.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_jsonjson)|"TooManyTagsException"->`TooManyTagsException(TooManyTagsException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"CodeValidationException"->`CodeValidationException(CodeValidationException.of_xmlxml)|"ConcurrentModificationException"->`ConcurrentModificationException(ConcurrentModificationException.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_xmlxml)|"TooManyTagsException"->`TooManyTagsException(TooManyTagsException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`CodeValidationExceptione->`Assoc[("error",(`String"CodeValidationException"));("details",(CodeValidationException.to_jsone))]|`ConcurrentModificationExceptione->`Assoc[("error",(`String"ConcurrentModificationException"));("details",(ConcurrentModificationException.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`LimitExceededExceptione->`Assoc[("error",(`String"LimitExceededException"));("details",(LimitExceededException.to_jsone))]|`ResourceInUseExceptione->`Assoc[("error",(`String"ResourceInUseException"));("details",(ResourceInUseException.to_jsone))]|`TooManyTagsExceptione->`Assoc[("error",(`String"TooManyTagsException"));("details",(TooManyTagsException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("ApplicationSummary",(Option.mapx.applicationSummary~f:ApplicationSummary.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letapplicationSummary=(Option.map~f:ApplicationSummary.of_xml)(Xml.childxml_arg0"ApplicationSummary")inmake?applicationSummary()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letapplicationSummary=field_mapjson__"ApplicationSummary"ApplicationSummary.of_jsoninmake?applicationSummary()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"TBD"]moduleCreateApplicationRequest=structtypenonrect={applicationName:ApplicationName.t[@ocaml.doc"Name of your Amazon Kinesis Analytics application (for example, sample-app)."];applicationDescription:ApplicationDescription.toption[@ocaml.doc"Summary description of the application."];inputs:Inputs.toption[@ocaml.doc"Use this parameter to configure the application input. You can configure your application to receive input from a single streaming source. In this configuration, you map this streaming source to an in-application stream that is created. Your application code can then query the in-application stream like a table (you can think of it as a constantly updating table). For the streaming source, you provide its Amazon Resource Name (ARN) and format of data on the stream (for example, JSON, CSV, etc.). You also must provide an IAM role that Amazon Kinesis Analytics can assume to read this stream on your behalf. To create the in-application stream, you need to specify a schema to transform your data into a schematized version used in SQL. In the schema, you provide the necessary mapping of the data elements in the streaming source to record columns in the in-app stream."];outputs:Outputs.toption[@ocaml.doc"You can configure application output to write data from any of the in-application streams to up to three destinations. These destinations can be Amazon Kinesis streams, Amazon Kinesis Firehose delivery streams, AWS Lambda destinations, or any combination of the three. In the configuration, you specify the in-application stream name, the destination stream or Lambda function Amazon Resource Name (ARN), and the format to use when writing data. You must also provide an IAM role that Amazon Kinesis Analytics can assume to write to the destination stream or Lambda function on your behalf. In the output configuration, you also provide the output stream or Lambda function ARN. For stream destinations, you provide the format of data in the stream (for example, JSON, CSV). You also must provide an IAM role that Amazon Kinesis Analytics can assume to write to the stream or Lambda function on your behalf."];cloudWatchLoggingOptions:CloudWatchLoggingOptions.toption[@ocaml.doc"Use this parameter to configure a CloudWatch log stream to monitor application configuration errors. For more information, see Working with Amazon CloudWatch Logs."];applicationCode:ApplicationCode.toption[@ocaml.doc"One or more SQL statements that read input data, transform it, and generate output. For example, you can write a SQL statement that reads data from one in-application stream, generates a running average of the number of advertisement clicks by vendor, and insert resulting rows in another in-application stream using pumps. For more information about the typical pattern, see Application Code. You can provide such series of SQL statements, where output of one statement can be used as the input for the next statement. You store intermediate results by creating in-application streams and pumps. Note that the application code must create the streams with names specified in the Outputs. For example, if your Outputs defines output streams named ExampleOutputStream1 and ExampleOutputStream2, then your application code must create these streams."];tags:Tags.toption[@ocaml.doc"A list of one or more tags to assign to the application. A tag is a key-value pair that identifies an application. Note that the maximum number of application tags includes system tags. The maximum number of user-defined application tags is 50. For more information, see Using Tagging."]}letcontext_="CreateApplicationRequest"letmake?applicationDescription=fun?inputs->fun?outputs->fun?cloudWatchLoggingOptions->fun?applicationCode->fun?tags->fun~applicationName->fun()->{applicationDescription;inputs;outputs;cloudWatchLoggingOptions;applicationCode;tags;applicationName}letto_valuex=structure_to_value[("ApplicationName",(Some(ApplicationName.to_valuex.applicationName)));("ApplicationDescription",(Option.mapx.applicationDescription~f:ApplicationDescription.to_value));("Inputs",(Option.mapx.inputs~f:Inputs.to_value));("Outputs",(Option.mapx.outputs~f:Outputs.to_value));("CloudWatchLoggingOptions",(Option.mapx.cloudWatchLoggingOptions~f:CloudWatchLoggingOptions.to_value));("ApplicationCode",(Option.mapx.applicationCode~f:ApplicationCode.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")inletapplicationCode=(Option.map~f:ApplicationCode.of_xml)(Xml.childxml_arg0"ApplicationCode")inletcloudWatchLoggingOptions=(Option.map~f:CloudWatchLoggingOptions.of_xml)(Xml.childxml_arg0"CloudWatchLoggingOptions")inletoutputs=(Option.map~f:Outputs.of_xml)(Xml.childxml_arg0"Outputs")inletinputs=(Option.map~f:Inputs.of_xml)(Xml.childxml_arg0"Inputs")inletapplicationDescription=(Option.map~f:ApplicationDescription.of_xml)(Xml.childxml_arg0"ApplicationDescription")inletapplicationName=ApplicationName.of_xml(Xml.child_exn~context:context_xml_arg0"ApplicationName")inmake?tags?applicationCode?cloudWatchLoggingOptions?outputs?inputs?applicationDescription~applicationName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"Tags"Tags.of_jsoninletapplicationCode=field_mapjson__"ApplicationCode"ApplicationCode.of_jsoninletcloudWatchLoggingOptions=field_mapjson__"CloudWatchLoggingOptions"CloudWatchLoggingOptions.of_jsoninletoutputs=field_mapjson__"Outputs"Outputs.of_jsoninletinputs=field_mapjson__"Inputs"Inputs.of_jsoninletapplicationDescription=field_mapjson__"ApplicationDescription"ApplicationDescription.of_jsoninletapplicationName=field_map_exnjson__"ApplicationName"ApplicationName.of_jsoninmake?tags?applicationCode?cloudWatchLoggingOptions?outputs?inputs?applicationDescription~applicationName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"TBD"]moduleAddApplicationReferenceDataSourceResponse=structtypenonrect=unittypenonrecerror=[`ConcurrentModificationExceptionofConcurrentModificationException.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`ResourceInUseExceptionofResourceInUseException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`UnsupportedOperationExceptionofUnsupportedOperationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ConcurrentModificationException"->`ConcurrentModificationException(ConcurrentModificationException.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"UnsupportedOperationException"->`UnsupportedOperationException(UnsupportedOperationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ConcurrentModificationException"->`ConcurrentModificationException(ConcurrentModificationException.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"UnsupportedOperationException"->`UnsupportedOperationException(UnsupportedOperationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ConcurrentModificationExceptione->`Assoc[("error",(`String"ConcurrentModificationException"));("details",(ConcurrentModificationException.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`ResourceInUseExceptione->`Assoc[("error",(`String"ResourceInUseException"));("details",(ResourceInUseException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`UnsupportedOperationExceptione->`Assoc[("error",(`String"UnsupportedOperationException"));("details",(UnsupportedOperationException.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_valuevendmoduleAddApplicationReferenceDataSourceRequest=structtypenonrect={applicationName:ApplicationName.t[@ocaml.doc"Name of an existing application."];currentApplicationVersionId:ApplicationVersionId.t[@ocaml.doc"Version of the application for which you are adding the reference data source. You can use the DescribeApplication operation to get the current application version. If the version specified is not the current version, the ConcurrentModificationException is returned."];referenceDataSource:ReferenceDataSource.t[@ocaml.doc"The reference data source can be an object in your Amazon S3 bucket. Amazon Kinesis Analytics reads the object and copies the data into the in-application table that is created. You provide an S3 bucket, object key name, and the resulting in-application table that is created. You must also provide an IAM role with the necessary permissions that Amazon Kinesis Analytics can assume to read the object from your S3 bucket on your behalf."]}letcontext_="AddApplicationReferenceDataSourceRequest"letmake~applicationName=fun~currentApplicationVersionId->fun~referenceDataSource->fun()->{applicationName;currentApplicationVersionId;referenceDataSource}letto_valuex=structure_to_value[("ApplicationName",(Some(ApplicationName.to_valuex.applicationName)));("CurrentApplicationVersionId",(Some(ApplicationVersionId.to_valuex.currentApplicationVersionId)));("ReferenceDataSource",(Some(ReferenceDataSource.to_valuex.referenceDataSource)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreferenceDataSource=ReferenceDataSource.of_xml(Xml.child_exn~context:context_xml_arg0"ReferenceDataSource")inletcurrentApplicationVersionId=ApplicationVersionId.of_xml(Xml.child_exn~context:context_xml_arg0"CurrentApplicationVersionId")inletapplicationName=ApplicationName.of_xml(Xml.child_exn~context:context_xml_arg0"ApplicationName")inmake~referenceDataSource~currentApplicationVersionId~applicationName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreferenceDataSource=field_map_exnjson__"ReferenceDataSource"ReferenceDataSource.of_jsoninletcurrentApplicationVersionId=field_map_exnjson__"CurrentApplicationVersionId"ApplicationVersionId.of_jsoninletapplicationName=field_map_exnjson__"ApplicationName"ApplicationName.of_jsoninmake~referenceDataSource~currentApplicationVersionId~applicationName()letto_jsonv=composed_to_jsonto_valuevendmoduleAddApplicationOutputResponse=structtypenonrect=unittypenonrecerror=[`ConcurrentModificationExceptionofConcurrentModificationException.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`ResourceInUseExceptionofResourceInUseException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`UnsupportedOperationExceptionofUnsupportedOperationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ConcurrentModificationException"->`ConcurrentModificationException(ConcurrentModificationException.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"UnsupportedOperationException"->`UnsupportedOperationException(UnsupportedOperationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ConcurrentModificationException"->`ConcurrentModificationException(ConcurrentModificationException.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"UnsupportedOperationException"->`UnsupportedOperationException(UnsupportedOperationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ConcurrentModificationExceptione->`Assoc[("error",(`String"ConcurrentModificationException"));("details",(ConcurrentModificationException.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`ResourceInUseExceptione->`Assoc[("error",(`String"ResourceInUseException"));("details",(ResourceInUseException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`UnsupportedOperationExceptione->`Assoc[("error",(`String"UnsupportedOperationException"));("details",(UnsupportedOperationException.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_valuevendmoduleAddApplicationOutputRequest=structtypenonrect={applicationName:ApplicationName.t[@ocaml.doc"Name of the application to which you want to add the output configuration."];currentApplicationVersionId:ApplicationVersionId.t[@ocaml.doc"Version of the application to which you want to add the output configuration. You can use the DescribeApplication operation to get the current application version. If the version specified is not the current version, the ConcurrentModificationException is returned."];output:Output.t[@ocaml.doc"An array of objects, each describing one output configuration. In the output configuration, you specify the name of an in-application stream, a destination (that is, an Amazon Kinesis stream, an Amazon Kinesis Firehose delivery stream, or an AWS Lambda function), and record the formation to use when writing to the destination."]}letcontext_="AddApplicationOutputRequest"letmake~applicationName=fun~currentApplicationVersionId->fun~output->fun()->{applicationName;currentApplicationVersionId;output}letto_valuex=structure_to_value[("ApplicationName",(Some(ApplicationName.to_valuex.applicationName)));("CurrentApplicationVersionId",(Some(ApplicationVersionId.to_valuex.currentApplicationVersionId)));("Output",(Some(Output.to_valuex.output)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoutput=Output.of_xml(Xml.child_exn~context:context_xml_arg0"Output")inletcurrentApplicationVersionId=ApplicationVersionId.of_xml(Xml.child_exn~context:context_xml_arg0"CurrentApplicationVersionId")inletapplicationName=ApplicationName.of_xml(Xml.child_exn~context:context_xml_arg0"ApplicationName")inmake~output~currentApplicationVersionId~applicationName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoutput=field_map_exnjson__"Output"Output.of_jsoninletcurrentApplicationVersionId=field_map_exnjson__"CurrentApplicationVersionId"ApplicationVersionId.of_jsoninletapplicationName=field_map_exnjson__"ApplicationName"ApplicationName.of_jsoninmake~output~currentApplicationVersionId~applicationName()letto_jsonv=composed_to_jsonto_valuevendmoduleAddApplicationInputResponse=structtypenonrect=unittypenonrecerror=[`CodeValidationExceptionofCodeValidationException.t|`ConcurrentModificationExceptionofConcurrentModificationException.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`ResourceInUseExceptionofResourceInUseException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`UnsupportedOperationExceptionofUnsupportedOperationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"CodeValidationException"->`CodeValidationException(CodeValidationException.of_jsonjson)|"ConcurrentModificationException"->`ConcurrentModificationException(ConcurrentModificationException.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"UnsupportedOperationException"->`UnsupportedOperationException(UnsupportedOperationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"CodeValidationException"->`CodeValidationException(CodeValidationException.of_xmlxml)|"ConcurrentModificationException"->`ConcurrentModificationException(ConcurrentModificationException.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"UnsupportedOperationException"->`UnsupportedOperationException(UnsupportedOperationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`CodeValidationExceptione->`Assoc[("error",(`String"CodeValidationException"));("details",(CodeValidationException.to_jsone))]|`ConcurrentModificationExceptione->`Assoc[("error",(`String"ConcurrentModificationException"));("details",(ConcurrentModificationException.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`ResourceInUseExceptione->`Assoc[("error",(`String"ResourceInUseException"));("details",(ResourceInUseException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`UnsupportedOperationExceptione->`Assoc[("error",(`String"UnsupportedOperationException"));("details",(UnsupportedOperationException.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_valuevendmoduleAddApplicationInputRequest=structtypenonrect={applicationName:ApplicationName.t[@ocaml.doc"Name of your existing Amazon Kinesis Analytics application to which you want to add the streaming source."];currentApplicationVersionId:ApplicationVersionId.t[@ocaml.doc"Current version of your Amazon Kinesis Analytics application. You can use the DescribeApplication operation to find the current application version."];input:Input.t[@ocaml.doc"The Input to add."]}letcontext_="AddApplicationInputRequest"letmake~applicationName=fun~currentApplicationVersionId->fun~input->fun()->{applicationName;currentApplicationVersionId;input}letto_valuex=structure_to_value[("ApplicationName",(Some(ApplicationName.to_valuex.applicationName)));("CurrentApplicationVersionId",(Some(ApplicationVersionId.to_valuex.currentApplicationVersionId)));("Input",(Some(Input.to_valuex.input)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinput=Input.of_xml(Xml.child_exn~context:context_xml_arg0"Input")inletcurrentApplicationVersionId=ApplicationVersionId.of_xml(Xml.child_exn~context:context_xml_arg0"CurrentApplicationVersionId")inletapplicationName=ApplicationName.of_xml(Xml.child_exn~context:context_xml_arg0"ApplicationName")inmake~input~currentApplicationVersionId~applicationName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinput=field_map_exnjson__"Input"Input.of_jsoninletcurrentApplicationVersionId=field_map_exnjson__"CurrentApplicationVersionId"ApplicationVersionId.of_jsoninletapplicationName=field_map_exnjson__"ApplicationName"ApplicationName.of_jsoninmake~input~currentApplicationVersionId~applicationName()letto_jsonv=composed_to_jsonto_valuevendmoduleAddApplicationInputProcessingConfigurationResponse=structtypenonrect=unittypenonrecerror=[`ConcurrentModificationExceptionofConcurrentModificationException.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`ResourceInUseExceptionofResourceInUseException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`UnsupportedOperationExceptionofUnsupportedOperationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ConcurrentModificationException"->`ConcurrentModificationException(ConcurrentModificationException.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"UnsupportedOperationException"->`UnsupportedOperationException(UnsupportedOperationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ConcurrentModificationException"->`ConcurrentModificationException(ConcurrentModificationException.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"UnsupportedOperationException"->`UnsupportedOperationException(UnsupportedOperationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ConcurrentModificationExceptione->`Assoc[("error",(`String"ConcurrentModificationException"));("details",(ConcurrentModificationException.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`ResourceInUseExceptione->`Assoc[("error",(`String"ResourceInUseException"));("details",(ResourceInUseException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`UnsupportedOperationExceptione->`Assoc[("error",(`String"UnsupportedOperationException"));("details",(UnsupportedOperationException.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"This documentation is for version 1 of the Amazon Kinesis Data Analytics API, which only supports SQL applications. Version 2 of the API supports SQL and Java applications. For more information about version 2, see Amazon Kinesis Data Analytics API V2 Documentation. Adds an InputProcessingConfiguration to an application. An input processor preprocesses records on the input stream before the application's SQL code executes. Currently, the only input processor available is AWS Lambda."]moduleAddApplicationInputProcessingConfigurationRequest=structtypenonrect={applicationName:ApplicationName.t[@ocaml.doc"Name of the application to which you want to add the input processing configuration."];currentApplicationVersionId:ApplicationVersionId.t[@ocaml.doc"Version of the application to which you want to add the input processing configuration. You can use the DescribeApplication operation to get the current application version. If the version specified is not the current version, the ConcurrentModificationException is returned."];inputId:Id.t[@ocaml.doc"The ID of the input configuration to add the input processing configuration to. You can get a list of the input IDs for an application using the DescribeApplication operation."];inputProcessingConfiguration:InputProcessingConfiguration.t[@ocaml.doc"The InputProcessingConfiguration to add to the application."]}letcontext_="AddApplicationInputProcessingConfigurationRequest"letmake~applicationName=fun~currentApplicationVersionId->fun~inputId->fun~inputProcessingConfiguration->fun()->{applicationName;currentApplicationVersionId;inputId;inputProcessingConfiguration}letto_valuex=structure_to_value[("ApplicationName",(Some(ApplicationName.to_valuex.applicationName)));("CurrentApplicationVersionId",(Some(ApplicationVersionId.to_valuex.currentApplicationVersionId)));("InputId",(Some(Id.to_valuex.inputId)));("InputProcessingConfiguration",(Some(InputProcessingConfiguration.to_valuex.inputProcessingConfiguration)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinputProcessingConfiguration=InputProcessingConfiguration.of_xml(Xml.child_exn~context:context_xml_arg0"InputProcessingConfiguration")inletinputId=Id.of_xml(Xml.child_exn~context:context_xml_arg0"InputId")inletcurrentApplicationVersionId=ApplicationVersionId.of_xml(Xml.child_exn~context:context_xml_arg0"CurrentApplicationVersionId")inletapplicationName=ApplicationName.of_xml(Xml.child_exn~context:context_xml_arg0"ApplicationName")inmake~inputProcessingConfiguration~inputId~currentApplicationVersionId~applicationName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinputProcessingConfiguration=field_map_exnjson__"InputProcessingConfiguration"InputProcessingConfiguration.of_jsoninletinputId=field_map_exnjson__"InputId"Id.of_jsoninletcurrentApplicationVersionId=field_map_exnjson__"CurrentApplicationVersionId"ApplicationVersionId.of_jsoninletapplicationName=field_map_exnjson__"ApplicationName"ApplicationName.of_jsoninmake~inputProcessingConfiguration~inputId~currentApplicationVersionId~applicationName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This documentation is for version 1 of the Amazon Kinesis Data Analytics API, which only supports SQL applications. Version 2 of the API supports SQL and Java applications. For more information about version 2, see Amazon Kinesis Data Analytics API V2 Documentation. Adds an InputProcessingConfiguration to an application. An input processor preprocesses records on the input stream before the application's SQL code executes. Currently, the only input processor available is AWS Lambda."]moduleAddApplicationCloudWatchLoggingOptionResponse=structtypenonrect=unittypenonrecerror=[`ConcurrentModificationExceptionofConcurrentModificationException.t|`InvalidArgumentExceptionofInvalidArgumentException.t|`ResourceInUseExceptionofResourceInUseException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`UnsupportedOperationExceptionofUnsupportedOperationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ConcurrentModificationException"->`ConcurrentModificationException(ConcurrentModificationException.of_jsonjson)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_jsonjson)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"UnsupportedOperationException"->`UnsupportedOperationException(UnsupportedOperationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ConcurrentModificationException"->`ConcurrentModificationException(ConcurrentModificationException.of_xmlxml)|"InvalidArgumentException"->`InvalidArgumentException(InvalidArgumentException.of_xmlxml)|"ResourceInUseException"->`ResourceInUseException(ResourceInUseException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"UnsupportedOperationException"->`UnsupportedOperationException(UnsupportedOperationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ConcurrentModificationExceptione->`Assoc[("error",(`String"ConcurrentModificationException"));("details",(ConcurrentModificationException.to_jsone))]|`InvalidArgumentExceptione->`Assoc[("error",(`String"InvalidArgumentException"));("details",(InvalidArgumentException.to_jsone))]|`ResourceInUseExceptione->`Assoc[("error",(`String"ResourceInUseException"));("details",(ResourceInUseException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`UnsupportedOperationExceptione->`Assoc[("error",(`String"UnsupportedOperationException"));("details",(UnsupportedOperationException.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"This documentation is for version 1 of the Amazon Kinesis Data Analytics API, which only supports SQL applications. Version 2 of the API supports SQL and Java applications. For more information about version 2, see Amazon Kinesis Data Analytics API V2 Documentation. Adds a CloudWatch log stream to monitor application configuration errors. For more information about using CloudWatch log streams with Amazon Kinesis Analytics applications, see Working with Amazon CloudWatch Logs."]moduleAddApplicationCloudWatchLoggingOptionRequest=structtypenonrect={applicationName:ApplicationName.t[@ocaml.doc"The Kinesis Analytics application name."];currentApplicationVersionId:ApplicationVersionId.t[@ocaml.doc"The version ID of the Kinesis Analytics application."];cloudWatchLoggingOption:CloudWatchLoggingOption.t[@ocaml.doc"Provides the CloudWatch log stream Amazon Resource Name (ARN) and the IAM role ARN. Note: To write application messages to CloudWatch, the IAM role that is used must have the PutLogEvents policy action enabled."]}letcontext_="AddApplicationCloudWatchLoggingOptionRequest"letmake~applicationName=fun~currentApplicationVersionId->fun~cloudWatchLoggingOption->fun()->{applicationName;currentApplicationVersionId;cloudWatchLoggingOption}letto_valuex=structure_to_value[("ApplicationName",(Some(ApplicationName.to_valuex.applicationName)));("CurrentApplicationVersionId",(Some(ApplicationVersionId.to_valuex.currentApplicationVersionId)));("CloudWatchLoggingOption",(Some(CloudWatchLoggingOption.to_valuex.cloudWatchLoggingOption)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcloudWatchLoggingOption=CloudWatchLoggingOption.of_xml(Xml.child_exn~context:context_xml_arg0"CloudWatchLoggingOption")inletcurrentApplicationVersionId=ApplicationVersionId.of_xml(Xml.child_exn~context:context_xml_arg0"CurrentApplicationVersionId")inletapplicationName=ApplicationName.of_xml(Xml.child_exn~context:context_xml_arg0"ApplicationName")inmake~cloudWatchLoggingOption~currentApplicationVersionId~applicationName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcloudWatchLoggingOption=field_map_exnjson__"CloudWatchLoggingOption"CloudWatchLoggingOption.of_jsoninletcurrentApplicationVersionId=field_map_exnjson__"CurrentApplicationVersionId"ApplicationVersionId.of_jsoninletapplicationName=field_map_exnjson__"ApplicationName"ApplicationName.of_jsoninmake~cloudWatchLoggingOption~currentApplicationVersionId~applicationName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This documentation is for version 1 of the Amazon Kinesis Data Analytics API, which only supports SQL applications. Version 2 of the API supports SQL and Java applications. For more information about version 2, see Amazon Kinesis Data Analytics API V2 Documentation. Adds a CloudWatch log stream to monitor application configuration errors. For more information about using CloudWatch log streams with Amazon Kinesis Analytics applications, see Working with Amazon CloudWatch Logs."]